@ws-ui/code-editor 0.1.30-rc.6 → 0.1.30-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/demo/common.d.ts +1 -1
- package/dist/editor/extensions/4d-language-extension/index.d.ts +2 -0
- package/dist/editor/extensions/theme-defaults-extension/index.d.ts +2 -0
- package/dist/editor/extensions/theme-defaults-extension/types.d.ts +6 -0
- package/dist/editor/extensions/types.d.ts +12 -0
- package/dist/editor/services/theme-service-override.d.ts +2 -0
- package/dist/index.cjs.js +96 -80
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +7923 -7925
- package/dist/index.es.js.map +1 -1
- package/dist/studio/assets/textmate.worker.bundle.js +18090 -0
- package/package.json +18 -11
- package/dist/editor/configurations/4d.d.ts +0 -3
- package/dist/editor/themes/4d-dark.d.ts +0 -3
- package/dist/editor/themes/index.d.ts +0 -1
- /package/dist/{languages → editor/languages}/index.d.ts +0 -0
- /package/dist/{languages → editor/languages}/utils.d.ts +0 -0
- /package/dist/editor/loader/{setup-workers.d.ts → monaco-workers.d.ts} +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -1,160 +1,176 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var Ky=Object.defineProperty;var Gy=(t,e,n)=>e in t?Ky(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Nt=(t,e,n)=>(Gy(t,typeof e!="symbol"?e+"":e,n),n),Nl=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var Dt=(t,e,n)=>(Nl(t,e,"read from private field"),n?n.call(t):e.get(t)),ns=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},da=(t,e,n,i)=>(Nl(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n);var Js=(t,e,n)=>(Nl(t,e,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ht=require("react"),G1=require("@monaco-editor/react"),Jn=require("@ws-ui/shared"),Jy=require("vscode-languageclient/lib/common/client.js"),b2=require("monaco-languageclient/vscode/services"),sn=require("monaco-editor"),Sg=require("@codingame/monaco-vscode-configuration-service-override"),Xy=require("@codingame/monaco-vscode-theme-service-override"),Zy=require("@codingame/monaco-vscode-textmate-service-override"),Yy=require("@codingame/monaco-vscode-languages-service-override");require("@codingame/monaco-vscode-theme-defaults-default-extension");const Qy=require("monaco-languageclient/tools"),Dg=require("vscode/services");require("@codingame/monaco-vscode-standalone-languages");require("@codingame/monaco-vscode-standalone-html-language-features");require("@codingame/monaco-vscode-standalone-css-language-features");require("@codingame/monaco-vscode-standalone-json-language-features");require("@codingame/monaco-vscode-standalone-typescript-language-features");require("@codingame/monaco-vscode-css-default-extension");require("@codingame/monaco-vscode-json-default-extension");require("@codingame/monaco-vscode-html-default-extension");require("@codingame/monaco-vscode-javascript-default-extension");const eb=require("vscode/extensions");var Tg=typeof document<"u"?document.currentScript:null;function tb(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const _e=tb(sn);var _t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function v2(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),n}var Au={exports:{}},is={};/*
|
|
2
2
|
object-assign
|
|
3
3
|
(c) Sindre Sorhus
|
|
4
4
|
@license MIT
|
|
5
|
-
*/var
|
|
5
|
+
*/var $l,kg;function w2(){if(kg)return $l;kg=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function r(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var o={},a=0;a<10;a++)o["_"+String.fromCharCode(a)]=a;var c=Object.getOwnPropertyNames(o).map(function(f){return o[f]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(f){l[f]=f}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $l=r()?Object.assign:function(s,o){for(var a,c=i(s),l,f=1;f<arguments.length;f++){a=Object(arguments[f]);for(var g in a)e.call(a,g)&&(c[g]=a[g]);if(t){l=t(a);for(var p=0;p<l.length;p++)n.call(a,l[p])&&(c[l[p]]=a[l[p]])}}return c},$l}/** @license React v17.0.2
|
|
6
6
|
* react-jsx-runtime.production.min.js
|
|
7
7
|
*
|
|
8
8
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/var
|
|
12
|
+
*/var Rg;function nb(){if(Rg)return is;Rg=1,w2();var t=ht,e=60103;if(is.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;e=n("react.element"),is.Fragment=n("react.fragment")}var i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,l){var f,g={},p=null,_=null;l!==void 0&&(p=""+l),c.key!==void 0&&(p=""+c.key),c.ref!==void 0&&(_=c.ref);for(f in c)r.call(c,f)&&!s.hasOwnProperty(f)&&(g[f]=c[f]);if(a&&a.defaultProps)for(f in c=a.defaultProps,c)g[f]===void 0&&(g[f]=c[f]);return{$$typeof:e,type:a,key:p,ref:_,props:g,_owner:i.current}}return is.jsx=o,is.jsxs=o,is}var ql={};/** @license React v17.0.2
|
|
13
13
|
* react-jsx-runtime.development.js
|
|
14
14
|
*
|
|
15
15
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var
|
|
20
|
-
`+Ft+T}}var
|
|
19
|
+
*/var xg;function ib(){return xg||(xg=1,function(t){process.env.NODE_ENV!=="production"&&function(){var e=ht,n=w2(),i=60103,r=60106;t.Fragment=60107;var s=60108,o=60114,a=60109,c=60110,l=60112,f=60113,g=60120,p=60115,_=60116,C=60121,k=60122,A=60117,H=60129,K=60131;if(typeof Symbol=="function"&&Symbol.for){var j=Symbol.for;i=j("react.element"),r=j("react.portal"),t.Fragment=j("react.fragment"),s=j("react.strict_mode"),o=j("react.profiler"),a=j("react.provider"),c=j("react.context"),l=j("react.forward_ref"),f=j("react.suspense"),g=j("react.suspense_list"),p=j("react.memo"),_=j("react.lazy"),C=j("react.block"),k=j("react.server.block"),A=j("react.fundamental"),j("react.scope"),j("react.opaque.id"),H=j("react.debug_trace_mode"),j("react.offscreen"),K=j("react.legacy_hidden")}var B=typeof Symbol=="function"&&Symbol.iterator,z="@@iterator";function ne(T){if(T===null||typeof T!="object")return null;var U=B&&T[B]||T[z];return typeof U=="function"?U:null}var G=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Z(T){{for(var U=arguments.length,Y=new Array(U>1?U-1:0),w=1;w<U;w++)Y[w-1]=arguments[w];ie("error",T,Y)}}function ie(T,U,Y){{var w=G.ReactDebugCurrentFrame,pe=w.getStackAddendum();pe!==""&&(U+="%s",Y=Y.concat([pe]));var me=Y.map(function(X){return""+X});me.unshift("Warning: "+U),Function.prototype.apply.call(console[T],console,me)}}var Le=!1;function $(T){return!!(typeof T=="string"||typeof T=="function"||T===t.Fragment||T===o||T===H||T===s||T===f||T===g||T===K||Le||typeof T=="object"&&T!==null&&(T.$$typeof===_||T.$$typeof===p||T.$$typeof===a||T.$$typeof===c||T.$$typeof===l||T.$$typeof===A||T.$$typeof===C||T[0]===k))}function E(T,U,Y){var w=U.displayName||U.name||"";return T.displayName||(w!==""?Y+"("+w+")":Y)}function v(T){return T.displayName||"Context"}function R(T){if(T==null)return null;if(typeof T.tag=="number"&&Z("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof T=="function")return T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case t.Fragment:return"Fragment";case r:return"Portal";case o:return"Profiler";case s:return"StrictMode";case f:return"Suspense";case g:return"SuspenseList"}if(typeof T=="object")switch(T.$$typeof){case c:var U=T;return v(U)+".Consumer";case a:var Y=T;return v(Y._context)+".Provider";case l:return E(T,T.render,"ForwardRef");case p:return R(T.type);case C:return R(T._render);case _:{var w=T,pe=w._payload,me=w._init;try{return R(me(pe))}catch{return null}}}return null}var P=0,I,V,Ae,ve,lt,He,Ee;function st(){}st.__reactDisabledLog=!0;function Fe(){{if(P===0){I=console.log,V=console.info,Ae=console.warn,ve=console.error,lt=console.group,He=console.groupCollapsed,Ee=console.groupEnd;var T={configurable:!0,enumerable:!0,value:st,writable:!0};Object.defineProperties(console,{info:T,log:T,warn:T,error:T,group:T,groupCollapsed:T,groupEnd:T})}P++}}function ot(){{if(P--,P===0){var T={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},T,{value:I}),info:n({},T,{value:V}),warn:n({},T,{value:Ae}),error:n({},T,{value:ve}),group:n({},T,{value:lt}),groupCollapsed:n({},T,{value:He}),groupEnd:n({},T,{value:Ee})})}P<0&&Z("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Je=G.ReactCurrentDispatcher,Ft;function Xe(T,U,Y){{if(Ft===void 0)try{throw Error()}catch(pe){var w=pe.stack.trim().match(/\n( *(at )?)/);Ft=w&&w[1]||""}return`
|
|
20
|
+
`+Ft+T}}var Ye=!1,vt;{var at=typeof WeakMap=="function"?WeakMap:Map;vt=new at}function oe(T,U){if(!T||Ye)return"";{var Y=vt.get(T);if(Y!==void 0)return Y}var w;Ye=!0;var pe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var me;me=Je.current,Je.current=null,Fe();try{if(U){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(d){w=d}Reflect.construct(T,[],X)}else{try{X.call()}catch(d){w=d}T.call(X.prototype)}}else{try{throw Error()}catch(d){w=d}T()}}catch(d){if(d&&w&&typeof d.stack=="string"){for(var h=d.stack.split(`
|
|
21
21
|
`),D=w.stack.split(`
|
|
22
22
|
`),x=h.length-1,N=D.length-1;x>=1&&N>=0&&h[x]!==D[N];)N--;for(;x>=1&&N>=0;x--,N--)if(h[x]!==D[N]){if(x!==1||N!==1)do if(x--,N--,N<0||h[x]!==D[N]){var le=`
|
|
23
|
-
`+h[x].replace(" at new "," at ");return typeof T=="function"&&vt.set(T,le),le}while(x>=1&&N>=0);break}}}finally{
|
|
24
|
-
|
|
25
|
-
Check the render method of \``+T+"`."}return""}}function
|
|
26
|
-
|
|
27
|
-
Check your code at `+U+":"+
|
|
28
|
-
|
|
29
|
-
Check the top-level render call using <`+X+">.")}return U}}function En(T,U){{if(!T._store||T._store.validated||T.key!=null)return;T._store.validated=!0;var X=mt(U);if(vn[X])return;vn[X]=!0;var w="";T&&T._owner&&T._owner!==nn.current&&(w=" It was passed a child from "+R(T._owner.type)+"."),Gt(T),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',X,w),Gt(null)}}function $n(T,U){{if(typeof T!="object")return;if(Array.isArray(T))for(var X=0;X<T.length;X++){var w=T[X];bn(w)&&En(w,U)}else if(bn(T))T._store&&(T._store.validated=!0);else if(T){var ge=ne(T);if(typeof ge=="function"&&ge!==T.entries)for(var me=ge.call(T),J;!(J=me.next()).done;)bn(J.value)&&En(J.value,U)}}}function Lt(T){{var U=T.type;if(U==null||typeof U=="string")return;var X;if(typeof U=="function")X=U.propTypes;else if(typeof U=="object"&&(U.$$typeof===l||U.$$typeof===g))X=U.propTypes;else return;if(X){var w=R(U);Rt(X,T.props,"prop",w,T)}else if(U.PropTypes!==void 0&&!Rn){Rn=!0;var ge=R(U);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ge||"Unknown")}typeof U.getDefaultProps=="function"&&!U.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function y(T){{for(var U=Object.keys(T.props),X=0;X<U.length;X++){var w=U[X];if(w!=="children"&&w!=="key"){Gt(T),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",w),Gt(null);break}}T.ref!==null&&(Gt(T),Y("Invalid attribute `ref` supplied to `React.Fragment`."),Gt(null))}}function L(T,U,X,w,ge,me){{var J=$(T);if(!J){var h="";(T===void 0||typeof T=="object"&&T!==null&&Object.keys(T).length===0)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var D=Vn(ge);D?h+=D:h+=xn();var x;T===null?x="null":Array.isArray(T)?x="array":T!==void 0&&T.$$typeof===r?(x="<"+(R(T.type)||"Unknown")+" />",h=" Did you accidentally export a JSX literal instead of a component?"):x=typeof T,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,h)}var N=Kt(T,U,X,ge,me);if(N==null)return N;if(J){var le=U.children;if(le!==void 0)if(w)if(Array.isArray(le)){for(var ce=0;ce<le.length;ce++)$n(le[ce],T);Object.freeze&&Object.freeze(le)}else Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else $n(le,T)}return T===t.Fragment?y(N):Lt(N),N}}function te(T,U,X){return L(T,U,X,!0)}function Te(T,U,X){return L(T,U,X,!1)}var xe=Te,ut=te;t.jsx=xe,t.jsxs=ut}()}($l)),$l}process.env.NODE_ENV==="production"?Iu.exports=Jy():Iu.exports=Yy();var wt=Iu.exports;class Xy extends Ky.BaseLanguageClient{constructor({id:n,name:r,clientOptions:i,connectionProvider:s}){super(n??r.toLowerCase(),r,i);Nt(this,"connectionProvider");this.connectionProvider=s}createMessageTransports(n){return this.connectionProvider.get(n)}}const Zy=async t=>{var i;const e=t.serviceConfig??{};e.debugLogging=((i=t.logger)==null?void 0:i.isEnabled())===!0&&(e.debugLogging===!0||t.logger.isDebugEnabled()===!0),e.userServices=e.userServices??{};const n=e.userServices.configurationService??void 0,r=e.workspaceConfig??void 0;if(n===void 0){if(r)throw new Error("You provided a workspaceConfig without using the configurationServiceOverride");const s={};m2.mergeServices(s,e.userServices)}return r||(e.workspaceConfig={workspaceProvider:{trusted:!0,workspace:{workspaceUri:ve.Uri.file("/workspace")},async open(){return!1}}}),e};var Mu={},Ou={},ye={},Xi={},G1={},Oa={},pe={},jt={};Object.defineProperty(jt,"__esModule",{value:!0});jt.stringArray=jt.array=jt.func=jt.error=jt.number=jt.string=jt.boolean=void 0;function eb(t){return t===!0||t===!1}jt.boolean=eb;function v2(t){return typeof t=="string"||t instanceof String}jt.string=v2;function tb(t){return typeof t=="number"||t instanceof Number}jt.number=tb;function nb(t){return t instanceof Error}jt.error=nb;function rb(t){return typeof t=="function"}jt.func=rb;function w2(t){return Array.isArray(t)}jt.array=w2;function ib(t){return w2(t)&&t.every(e=>v2(e))}jt.stringArray=ib;Object.defineProperty(pe,"__esModule",{value:!0});pe.Message=pe.NotificationType9=pe.NotificationType8=pe.NotificationType7=pe.NotificationType6=pe.NotificationType5=pe.NotificationType4=pe.NotificationType3=pe.NotificationType2=pe.NotificationType1=pe.NotificationType0=pe.NotificationType=pe.RequestType9=pe.RequestType8=pe.RequestType7=pe.RequestType6=pe.RequestType5=pe.RequestType4=pe.RequestType3=pe.RequestType2=pe.RequestType1=pe.RequestType=pe.RequestType0=pe.AbstractMessageSignature=pe.ParameterStructures=pe.ResponseError=pe.ErrorCodes=void 0;const xi=jt;var Au;(function(t){t.ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=-32099,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.PendingResponseRejected=-32097,t.ConnectionInactive=-32096,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=-32e3})(Au||(pe.ErrorCodes=Au={}));class Q1 extends Error{constructor(e,n,r){super(n),this.code=xi.number(e)?e:Au.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,Q1.prototype)}toJson(){const e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}}pe.ResponseError=Q1;class pn{constructor(e){this.kind=e}static is(e){return e===pn.auto||e===pn.byName||e===pn.byPosition}toString(){return this.kind}}pe.ParameterStructures=pn;pn.auto=new pn("auto");pn.byPosition=new pn("byPosition");pn.byName=new pn("byName");class kt{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return pn.auto}}pe.AbstractMessageSignature=kt;class sb extends kt{constructor(e){super(e,0)}}pe.RequestType0=sb;class ob extends kt{constructor(e,n=pn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}pe.RequestType=ob;class ab extends kt{constructor(e,n=pn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}pe.RequestType1=ab;class cb extends kt{constructor(e){super(e,2)}}pe.RequestType2=cb;class lb extends kt{constructor(e){super(e,3)}}pe.RequestType3=lb;class ub extends kt{constructor(e){super(e,4)}}pe.RequestType4=ub;class db extends kt{constructor(e){super(e,5)}}pe.RequestType5=db;class fb extends kt{constructor(e){super(e,6)}}pe.RequestType6=fb;class hb extends kt{constructor(e){super(e,7)}}pe.RequestType7=hb;class pb extends kt{constructor(e){super(e,8)}}pe.RequestType8=pb;class gb extends kt{constructor(e){super(e,9)}}pe.RequestType9=gb;class mb extends kt{constructor(e,n=pn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}pe.NotificationType=mb;class yb extends kt{constructor(e){super(e,0)}}pe.NotificationType0=yb;class bb extends kt{constructor(e,n=pn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}pe.NotificationType1=bb;class vb extends kt{constructor(e){super(e,2)}}pe.NotificationType2=vb;class wb extends kt{constructor(e){super(e,3)}}pe.NotificationType3=wb;class Cb extends kt{constructor(e){super(e,4)}}pe.NotificationType4=Cb;class _b extends kt{constructor(e){super(e,5)}}pe.NotificationType5=_b;class Sb extends kt{constructor(e){super(e,6)}}pe.NotificationType6=Sb;class Db extends kt{constructor(e){super(e,7)}}pe.NotificationType7=Db;class Tb extends kt{constructor(e){super(e,8)}}pe.NotificationType8=Tb;class kb extends kt{constructor(e){super(e,9)}}pe.NotificationType9=kb;var Rp;(function(t){function e(i){const s=i;return s&&xi.string(s.method)&&(xi.string(s.id)||xi.number(s.id))}t.isRequest=e;function n(i){const s=i;return s&&xi.string(s.method)&&i.id===void 0}t.isNotification=n;function r(i){const s=i;return s&&(s.result!==void 0||!!s.error)&&(xi.string(s.id)||xi.number(s.id)||s.id===null)}t.isResponse=r})(Rp||(pe.Message=Rp={}));var jr={},xp;Object.defineProperty(jr,"__esModule",{value:!0});jr.LRUCache=jr.LinkedMap=jr.Touch=void 0;var dn;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(dn||(jr.Touch=dn={}));let C2=class{constructor(){this[xp]="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(){var e;return(e=this._head)==null?void 0:e.value}get last(){var e;return(e=this._tail)==null?void 0:e.value}has(e){return this._map.has(e)}get(e,n=dn.None){const r=this._map.get(e);if(r)return n!==dn.None&&this.touch(r,n),r.value}set(e,n,r=dn.None){let i=this._map.get(e);if(i)i.value=n,r!==dn.None&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case dn.None:this.addItemLast(i);break;case dn.First:this.addItemFirst(i);break;case dn.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.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,n){const r=this._state;let i=this._head;for(;i;){if(n?e.bind(n)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){const i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){const e=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){const i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){const e=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){const i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(xp=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");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 n=e.next,r=e.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==dn.First&&n!==dn.Last)){if(n===dn.First){if(e===this._head)return;const r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===dn.Last){if(e===this._tail)return;const r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((n,r)=>{e.push([r,n])}),e}fromJSON(e){this.clear();for(const[n,r]of e)this.set(n,r)}};jr.LinkedMap=C2;let Rb=class extends C2{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),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,n=dn.AsNew){return super.get(e,n)}peek(e){return super.get(e,dn.None)}set(e,n){return super.set(e,n,dn.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};jr.LRUCache=Rb;var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0});Pc.Disposable=void 0;var Ep;(function(t){function e(n){return{dispose:n}}t.create=e})(Ep||(Pc.Disposable=Ep={}));var Cr={},Gr={};Object.defineProperty(Gr,"__esModule",{value:!0});let Fu;function Lu(){if(Fu===void 0)throw new Error("No runtime abstraction layer installed");return Fu}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");Fu=n}t.install=e})(Lu||(Lu={}));Gr.default=Lu;Object.defineProperty(Cr,"__esModule",{value:!0});Cr.Emitter=Cr.Event=void 0;const xb=Gr;var Pp;(function(t){const e={dispose(){}};t.None=function(){return e}})(Pp||(Cr.Event=Pp={}));let Eb=class{add(e,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,s=this._callbacks.length;i<s;i++)if(this._callbacks[i]===e)if(this._contexts[i]===n){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];const n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let s=0,o=r.length;s<o;s++)try{n.push(r[s].apply(i[s],e))}catch(a){(0,xb.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},_2=class S2{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,r)=>{this._callbacks||(this._callbacks=new Eb),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);const i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,n),i.dispose=S2._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Cr.Emitter=_2;_2._noop=function(){};var vi={};Object.defineProperty(vi,"__esModule",{value:!0});vi.CancellationTokenSource=vi.CancellationToken=void 0;const Pb=Gr,Ib=jt,Nu=Cr;var Aa;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Nu.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Nu.Event.None});function e(n){const r=n;return r&&(r===t.None||r===t.Cancelled||Ib.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}t.is=e})(Aa||(vi.CancellationToken=Aa={}));const Mb=Object.freeze(function(t,e){const n=(0,Pb.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}});let Ip=class{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?Mb:(this._emitter||(this._emitter=new Nu.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},Ob=class{get token(){return this._token||(this._token=new Ip),this._token}cancel(){this._token?this._token.cancel():this._token=Aa.Cancelled}dispose(){this._token?this._token instanceof Ip&&this._token.dispose():this._token=Aa.None}};vi.CancellationTokenSource=Ob;var Rs={};Object.defineProperty(Rs,"__esModule",{value:!0});Rs.SharedArrayReceiverStrategy=Rs.SharedArraySenderStrategy=void 0;const Ab=vi;var Eo;(function(t){t.Continue=0,t.Cancelled=1})(Eo||(Eo={}));class Fb{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;const n=new SharedArrayBuffer(4),r=new Int32Array(n,0,1);r[0]=Eo.Continue,this.buffers.set(e.id,n),e.$cancellationData=n}async sendCancellation(e,n){const r=this.buffers.get(n);if(r===void 0)return;const i=new Int32Array(r,0,1);Atomics.store(i,0,Eo.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}}Rs.SharedArraySenderStrategy=Fb;class Lb{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Eo.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class Nb{constructor(e){this.token=new Lb(e)}cancel(){}dispose(){}}class $b{constructor(){this.kind="request"}createCancellationTokenSource(e){const n=e.$cancellationData;return n===void 0?new Ab.CancellationTokenSource:new Nb(n)}}Rs.SharedArrayReceiverStrategy=$b;var si={},Zo={};Object.defineProperty(Zo,"__esModule",{value:!0});Zo.Semaphore=void 0;const qb=Gr;let jb=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((n,r)=>{this._waiting.push({thunk:e,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,qb.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||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 n=e.thunk();n instanceof Promise?n.then(r=>{this._active--,e.resolve(r),this.runNext()},r=>{this._active--,e.reject(r),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};Zo.Semaphore=jb;Object.defineProperty(si,"__esModule",{value:!0});si.ReadableStreamMessageReader=si.AbstractMessageReader=si.MessageReader=void 0;const $u=Gr,ls=jt,ql=Cr,Hb=Zo;var Mp;(function(t){function e(n){let r=n;return r&&ls.func(r.listen)&&ls.func(r.dispose)&&ls.func(r.onError)&&ls.func(r.onClose)&&ls.func(r.onPartialMessage)}t.is=e})(Mp||(si.MessageReader=Mp={}));let D2=class{constructor(){this.errorEmitter=new ql.Emitter,this.closeEmitter=new ql.Emitter,this.partialMessageEmitter=new ql.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: ${ls.string(e.message)?e.message:"unknown"}`)}};si.AbstractMessageReader=D2;var qu;(function(t){function e(n){let r,i;const s=new Map;let o;const a=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(i=n.contentDecoder,s.set(i.name,i)),n.contentDecoders!==void 0)for(const c of n.contentDecoders)s.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(o=n.contentTypeDecoder,a.set(o.name,o)),n.contentTypeDecoders!==void 0)for(const c of n.contentTypeDecoders)a.set(c.name,c)}return o===void 0&&(o=(0,$u.default)().applicationJson.decoder,a.set(o.name,o)),{charset:r,contentDecoder:i,contentDecoders:s,contentTypeDecoder:o,contentTypeDecoders:a}}t.fromOptions=e})(qu||(qu={}));let Wb=class extends D2{constructor(e,n){super(),this.readable=e,this.options=qu.fromOptions(n),this.buffer=(0,$u.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new Hb.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 n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){const r=this.buffer.tryReadHeaders(!0);if(!r)return;const i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
23
|
+
`+h[x].replace(" at new "," at ");return typeof T=="function"&&vt.set(T,le),le}while(x>=1&&N>=0);break}}}finally{Ye=!1,Je.current=me,ot(),Error.prepareStackTrace=pe}var ce=T?T.displayName||T.name:"",fe=ce?Xe(ce):"";return typeof T=="function"&&vt.set(T,fe),fe}function pt(T,U,Y){return oe(T,!1)}function we(T){var U=T.prototype;return!!(U&&U.isReactComponent)}function Qe(T,U,Y){if(T==null)return"";if(typeof T=="function")return oe(T,we(T));if(typeof T=="string")return Xe(T);switch(T){case f:return Xe("Suspense");case g:return Xe("SuspenseList")}if(typeof T=="object")switch(T.$$typeof){case l:return pt(T.render);case p:return Qe(T.type,U,Y);case C:return pt(T._render);case _:{var w=T,pe=w._payload,me=w._init;try{return Qe(me(pe),U,Y)}catch{}}}return""}var en={},tn=G.ReactDebugCurrentFrame;function Wt(T){if(T){var U=T._owner,Y=Qe(T.type,T._source,U?U.type:null);tn.setExtraStackFrame(Y)}else tn.setExtraStackFrame(null)}function Rt(T,U,Y,w,pe){{var me=Function.call.bind(Object.prototype.hasOwnProperty);for(var X in T)if(me(T,X)){var h=void 0;try{if(typeof T[X]!="function"){var D=Error((w||"React class")+": "+Y+" type `"+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof T[X]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw D.name="Invariant Violation",D}h=T[X](U,X,w,Y,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(x){h=x}h&&!(h instanceof Error)&&(Wt(pe),Z("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",w||"React class",Y,X,typeof h),Wt(null)),h instanceof Error&&!(h.message in en)&&(en[h.message]=!0,Wt(pe),Z("Failed %s type: %s",Y,h.message),Wt(null))}}}var xt=G.ReactCurrentOwner,qe=Object.prototype.hasOwnProperty,Ut={key:!0,ref:!0,__self:!0,__source:!0},Ln,Dn,Tn;Tn={};function Nn(T){if(qe.call(T,"ref")){var U=Object.getOwnPropertyDescriptor(T,"ref").get;if(U&&U.isReactWarning)return!1}return T.ref!==void 0}function kn(T){if(qe.call(T,"key")){var U=Object.getOwnPropertyDescriptor(T,"key").get;if(U&&U.isReactWarning)return!1}return T.key!==void 0}function ln(T,U){if(typeof T.ref=="string"&&xt.current&&U&&xt.current.stateNode!==U){var Y=R(xt.current.type);Tn[Y]||(Z('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',R(xt.current.type),T.ref),Tn[Y]=!0)}}function St(T,U){{var Y=function(){Ln||(Ln=!0,Z("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",U))};Y.isReactWarning=!0,Object.defineProperty(T,"key",{get:Y,configurable:!0})}}function mn(T,U){{var Y=function(){Dn||(Dn=!0,Z("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",U))};Y.isReactWarning=!0,Object.defineProperty(T,"ref",{get:Y,configurable:!0})}}var zn=function(T,U,Y,w,pe,me,X){var h={$$typeof:i,type:T,key:U,ref:Y,props:X,_owner:me};return h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(h,"_self",{configurable:!1,enumerable:!1,writable:!1,value:w}),Object.defineProperty(h,"_source",{configurable:!1,enumerable:!1,writable:!1,value:pe}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h};function Kt(T,U,Y,w,pe){{var me,X={},h=null,D=null;Y!==void 0&&(h=""+Y),kn(U)&&(h=""+U.key),Nn(U)&&(D=U.ref,ln(U,pe));for(me in U)qe.call(U,me)&&!Ut.hasOwnProperty(me)&&(X[me]=U[me]);if(T&&T.defaultProps){var x=T.defaultProps;for(me in x)X[me]===void 0&&(X[me]=x[me])}if(h||D){var N=typeof T=="function"?T.displayName||T.name||"Unknown":T;h&&St(X,N),D&&mn(X,N)}return zn(T,h,D,pe,w,xt.current,X)}}var nn=G.ReactCurrentOwner,yn=G.ReactDebugCurrentFrame;function Gt(T){if(T){var U=T._owner,Y=Qe(T.type,T._source,U?U.type:null);yn.setExtraStackFrame(Y)}else yn.setExtraStackFrame(null)}var Rn;Rn=!1;function bn(T){return typeof T=="object"&&T!==null&&T.$$typeof===i}function xn(){{if(nn.current){var T=R(nn.current.type);if(T)return`
|
|
24
|
+
|
|
25
|
+
Check the render method of \``+T+"`."}return""}}function Bn(T){{if(T!==void 0){var U=T.fileName.replace(/^.*[\\\/]/,""),Y=T.lineNumber;return`
|
|
26
|
+
|
|
27
|
+
Check your code at `+U+":"+Y+"."}return""}}var vn={};function mt(T){{var U=xn();if(!U){var Y=typeof T=="string"?T:T.displayName||T.name;Y&&(U=`
|
|
28
|
+
|
|
29
|
+
Check the top-level render call using <`+Y+">.")}return U}}function In(T,U){{if(!T._store||T._store.validated||T.key!=null)return;T._store.validated=!0;var Y=mt(U);if(vn[Y])return;vn[Y]=!0;var w="";T&&T._owner&&T._owner!==nn.current&&(w=" It was passed a child from "+R(T._owner.type)+"."),Gt(T),Z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Y,w),Gt(null)}}function $n(T,U){{if(typeof T!="object")return;if(Array.isArray(T))for(var Y=0;Y<T.length;Y++){var w=T[Y];bn(w)&&In(w,U)}else if(bn(T))T._store&&(T._store.validated=!0);else if(T){var pe=ne(T);if(typeof pe=="function"&&pe!==T.entries)for(var me=pe.call(T),X;!(X=me.next()).done;)bn(X.value)&&In(X.value,U)}}}function Lt(T){{var U=T.type;if(U==null||typeof U=="string")return;var Y;if(typeof U=="function")Y=U.propTypes;else if(typeof U=="object"&&(U.$$typeof===l||U.$$typeof===p))Y=U.propTypes;else return;if(Y){var w=R(U);Rt(Y,T.props,"prop",w,T)}else if(U.PropTypes!==void 0&&!Rn){Rn=!0;var pe=R(U);Z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",pe||"Unknown")}typeof U.getDefaultProps=="function"&&!U.getDefaultProps.isReactClassApproved&&Z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function y(T){{for(var U=Object.keys(T.props),Y=0;Y<U.length;Y++){var w=U[Y];if(w!=="children"&&w!=="key"){Gt(T),Z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",w),Gt(null);break}}T.ref!==null&&(Gt(T),Z("Invalid attribute `ref` supplied to `React.Fragment`."),Gt(null))}}function L(T,U,Y,w,pe,me){{var X=$(T);if(!X){var h="";(T===void 0||typeof T=="object"&&T!==null&&Object.keys(T).length===0)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var D=Bn(pe);D?h+=D:h+=xn();var x;T===null?x="null":Array.isArray(T)?x="array":T!==void 0&&T.$$typeof===i?(x="<"+(R(T.type)||"Unknown")+" />",h=" Did you accidentally export a JSX literal instead of a component?"):x=typeof T,Z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,h)}var N=Kt(T,U,Y,pe,me);if(N==null)return N;if(X){var le=U.children;if(le!==void 0)if(w)if(Array.isArray(le)){for(var ce=0;ce<le.length;ce++)$n(le[ce],T);Object.freeze&&Object.freeze(le)}else Z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else $n(le,T)}return T===t.Fragment?y(N):Lt(N),N}}function te(T,U,Y){return L(T,U,Y,!0)}function Te(T,U,Y){return L(T,U,Y,!1)}var xe=Te,ut=te;t.jsx=xe,t.jsxs=ut}()}(ql)),ql}process.env.NODE_ENV==="production"?Au.exports=nb():Au.exports=ib();var wt=Au.exports;class rb extends Jy.BaseLanguageClient{constructor({id:n,name:i,clientOptions:r,connectionProvider:s}){super(n??i.toLowerCase(),i,r);Nt(this,"connectionProvider");this.connectionProvider=s}createMessageTransports(n){return this.connectionProvider.get(n)}}const sb=()=>{const t=Xy(),e=t.themeService.ctor.prototype;return e.defineTheme=()=>{},t},ob=`{
|
|
30
|
+
"workbench.colorTheme": "Default Dark+",
|
|
31
|
+
"workbench.iconTheme": "vs-seti",
|
|
32
|
+
"editor.autoClosingBrackets": "languageDefined",
|
|
33
|
+
"editor.autoClosingQuotes": "languageDefined",
|
|
34
|
+
"editor.scrollBeyondLastLine": true,
|
|
35
|
+
"editor.mouseWheelZoom": true,
|
|
36
|
+
"editor.wordBasedSuggestions": false,
|
|
37
|
+
"editor.acceptSuggestionOnEnter": "on",
|
|
38
|
+
"editor.foldingHighlight": false,
|
|
39
|
+
"editor.semanticHighlighting.enabled": true,
|
|
40
|
+
"editor.bracketPairColorization.enabled": false,
|
|
41
|
+
"editor.fontSize": 12,
|
|
42
|
+
"files.autoSave": "off",
|
|
43
|
+
"editor.experimental.asyncTokenization": true
|
|
44
|
+
}
|
|
45
|
+
`,ab=async t=>{var r;const e=t.serviceConfig??{};e.debugLogging=((r=t.logger)==null?void 0:r.isEnabled())===!0&&(e.debugLogging===!0||t.logger.isDebugEnabled()===!0),await Sg.initUserConfiguration(ob),e.userServices=e.userServices??{};const n=e.userServices.configurationService??void 0,i=e.workspaceConfig??void 0;if(n===void 0){if(i)throw new Error("You provided a workspaceConfig without using the configurationServiceOverride");const s={...Sg(),...sb(),...Zy(),...Yy()};b2.mergeServices(s,e.userServices)}return i||(e.workspaceConfig={workspaceProvider:{trusted:!0,workspace:{workspaceUri:_e.Uri.file("/workspace")},async open(){return!1}}}),e};var Mu={},Ou={},ye={},Yr={},J1={},Ma={},ge={},jt={};Object.defineProperty(jt,"__esModule",{value:!0});jt.stringArray=jt.array=jt.func=jt.error=jt.number=jt.string=jt.boolean=void 0;function cb(t){return t===!0||t===!1}jt.boolean=cb;function C2(t){return typeof t=="string"||t instanceof String}jt.string=C2;function lb(t){return typeof t=="number"||t instanceof Number}jt.number=lb;function ub(t){return t instanceof Error}jt.error=ub;function db(t){return typeof t=="function"}jt.func=db;function _2(t){return Array.isArray(t)}jt.array=_2;function fb(t){return _2(t)&&t.every(e=>C2(e))}jt.stringArray=fb;Object.defineProperty(ge,"__esModule",{value:!0});ge.Message=ge.NotificationType9=ge.NotificationType8=ge.NotificationType7=ge.NotificationType6=ge.NotificationType5=ge.NotificationType4=ge.NotificationType3=ge.NotificationType2=ge.NotificationType1=ge.NotificationType0=ge.NotificationType=ge.RequestType9=ge.RequestType8=ge.RequestType7=ge.RequestType6=ge.RequestType5=ge.RequestType4=ge.RequestType3=ge.RequestType2=ge.RequestType1=ge.RequestType=ge.RequestType0=ge.AbstractMessageSignature=ge.ParameterStructures=ge.ResponseError=ge.ErrorCodes=void 0;const xr=jt;var Fu;(function(t){t.ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=-32099,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.PendingResponseRejected=-32097,t.ConnectionInactive=-32096,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=-32e3})(Fu||(ge.ErrorCodes=Fu={}));class X1 extends Error{constructor(e,n,i){super(n),this.code=xr.number(e)?e:Fu.UnknownErrorCode,this.data=i,Object.setPrototypeOf(this,X1.prototype)}toJson(){const e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}}ge.ResponseError=X1;class gn{constructor(e){this.kind=e}static is(e){return e===gn.auto||e===gn.byName||e===gn.byPosition}toString(){return this.kind}}ge.ParameterStructures=gn;gn.auto=new gn("auto");gn.byPosition=new gn("byPosition");gn.byName=new gn("byName");class kt{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return gn.auto}}ge.AbstractMessageSignature=kt;class hb extends kt{constructor(e){super(e,0)}}ge.RequestType0=hb;class gb extends kt{constructor(e,n=gn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ge.RequestType=gb;class pb extends kt{constructor(e,n=gn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ge.RequestType1=pb;class mb extends kt{constructor(e){super(e,2)}}ge.RequestType2=mb;class yb extends kt{constructor(e){super(e,3)}}ge.RequestType3=yb;class bb extends kt{constructor(e){super(e,4)}}ge.RequestType4=bb;class vb extends kt{constructor(e){super(e,5)}}ge.RequestType5=vb;class wb extends kt{constructor(e){super(e,6)}}ge.RequestType6=wb;class Cb extends kt{constructor(e){super(e,7)}}ge.RequestType7=Cb;class _b extends kt{constructor(e){super(e,8)}}ge.RequestType8=_b;class Sb extends kt{constructor(e){super(e,9)}}ge.RequestType9=Sb;class Db extends kt{constructor(e,n=gn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ge.NotificationType=Db;class Tb extends kt{constructor(e){super(e,0)}}ge.NotificationType0=Tb;class kb extends kt{constructor(e,n=gn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ge.NotificationType1=kb;class Rb extends kt{constructor(e){super(e,2)}}ge.NotificationType2=Rb;class xb extends kt{constructor(e){super(e,3)}}ge.NotificationType3=xb;class Ib extends kt{constructor(e){super(e,4)}}ge.NotificationType4=Ib;class Eb extends kt{constructor(e){super(e,5)}}ge.NotificationType5=Eb;class Pb extends kt{constructor(e){super(e,6)}}ge.NotificationType6=Pb;class Ab extends kt{constructor(e){super(e,7)}}ge.NotificationType7=Ab;class Mb extends kt{constructor(e){super(e,8)}}ge.NotificationType8=Mb;class Ob extends kt{constructor(e){super(e,9)}}ge.NotificationType9=Ob;var Ig;(function(t){function e(r){const s=r;return s&&xr.string(s.method)&&(xr.string(s.id)||xr.number(s.id))}t.isRequest=e;function n(r){const s=r;return s&&xr.string(s.method)&&r.id===void 0}t.isNotification=n;function i(r){const s=r;return s&&(s.result!==void 0||!!s.error)&&(xr.string(s.id)||xr.number(s.id)||s.id===null)}t.isResponse=i})(Ig||(ge.Message=Ig={}));var ji={},Eg;Object.defineProperty(ji,"__esModule",{value:!0});ji.LRUCache=ji.LinkedMap=ji.Touch=void 0;var dn;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(dn||(ji.Touch=dn={}));let S2=class{constructor(){this[Eg]="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(){var e;return(e=this._head)==null?void 0:e.value}get last(){var e;return(e=this._tail)==null?void 0:e.value}has(e){return this._map.has(e)}get(e,n=dn.None){const i=this._map.get(e);if(i)return n!==dn.None&&this.touch(i,n),i.value}set(e,n,i=dn.None){let r=this._map.get(e);if(r)r.value=n,i!==dn.None&&this.touch(r,i);else{switch(r={key:e,value:n,next:void 0,previous:void 0},i){case dn.None:this.addItemLast(r);break;case dn.First:this.addItemFirst(r);break;case dn.Last:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.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,n){const i=this._state;let r=this._head;for(;r;){if(n?e.bind(n)(r.value,r.key,this):e(r.value,r.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){const r={value:n.key,done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}values(){const e=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){const r={value:n.value,done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}entries(){const e=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){const r={value:[n.key,n.value],done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}[(Eg=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.next,i--;this._head=n,this._size=i,n&&(n.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");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 n=e.next,i=e.previous;if(!n||!i)throw new Error("Invalid list");n.previous=i,i.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==dn.First&&n!==dn.Last)){if(n===dn.First){if(e===this._head)return;const i=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===dn.Last){if(e===this._tail)return;const i=e.next,r=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((n,i)=>{e.push([i,n])}),e}fromJSON(e){this.clear();for(const[n,i]of e)this.set(n,i)}};ji.LinkedMap=S2;let Fb=class extends S2{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),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,n=dn.AsNew){return super.get(e,n)}peek(e){return super.get(e,dn.None)}set(e,n){return super.set(e,n,dn.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};ji.LRUCache=Fb;var Ec={};Object.defineProperty(Ec,"__esModule",{value:!0});Ec.Disposable=void 0;var Pg;(function(t){function e(n){return{dispose:n}}t.create=e})(Pg||(Ec.Disposable=Pg={}));var Ci={},Gi={};Object.defineProperty(Gi,"__esModule",{value:!0});let Lu;function Nu(){if(Lu===void 0)throw new Error("No runtime abstraction layer installed");return Lu}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");Lu=n}t.install=e})(Nu||(Nu={}));Gi.default=Nu;Object.defineProperty(Ci,"__esModule",{value:!0});Ci.Emitter=Ci.Event=void 0;const Lb=Gi;var Ag;(function(t){const e={dispose(){}};t.None=function(){return e}})(Ag||(Ci.Event=Ag={}));let Nb=class{add(e,n=null,i){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(i)&&i.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let i=!1;for(let r=0,s=this._callbacks.length;r<s;r++)if(this._callbacks[r]===e)if(this._contexts[r]===n){this._callbacks.splice(r,1),this._contexts.splice(r,1);return}else i=!0;if(i)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];const n=[],i=this._callbacks.slice(0),r=this._contexts.slice(0);for(let s=0,o=i.length;s<o;s++)try{n.push(i[s].apply(r[s],e))}catch(a){(0,Lb.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},D2=class T2{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,i)=>{this._callbacks||(this._callbacks=new Nb),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);const r={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,n),r.dispose=T2._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(i)&&i.push(r),r}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Ci.Emitter=D2;D2._noop=function(){};var vr={};Object.defineProperty(vr,"__esModule",{value:!0});vr.CancellationTokenSource=vr.CancellationToken=void 0;const $b=Gi,qb=jt,$u=Ci;var Oa;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:$u.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:$u.Event.None});function e(n){const i=n;return i&&(i===t.None||i===t.Cancelled||qb.boolean(i.isCancellationRequested)&&!!i.onCancellationRequested)}t.is=e})(Oa||(vr.CancellationToken=Oa={}));const jb=Object.freeze(function(t,e){const n=(0,$b.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}});let Mg=class{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?jb:(this._emitter||(this._emitter=new $u.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},Hb=class{get token(){return this._token||(this._token=new Mg),this._token}cancel(){this._token?this._token.cancel():this._token=Oa.Cancelled}dispose(){this._token?this._token instanceof Mg&&this._token.dispose():this._token=Oa.None}};vr.CancellationTokenSource=Hb;var Rs={};Object.defineProperty(Rs,"__esModule",{value:!0});Rs.SharedArrayReceiverStrategy=Rs.SharedArraySenderStrategy=void 0;const Wb=vr;var Io;(function(t){t.Continue=0,t.Cancelled=1})(Io||(Io={}));class Ub{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;const n=new SharedArrayBuffer(4),i=new Int32Array(n,0,1);i[0]=Io.Continue,this.buffers.set(e.id,n),e.$cancellationData=n}async sendCancellation(e,n){const i=this.buffers.get(n);if(i===void 0)return;const r=new Int32Array(i,0,1);Atomics.store(r,0,Io.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}}Rs.SharedArraySenderStrategy=Ub;class zb{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Io.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class Bb{constructor(e){this.token=new zb(e)}cancel(){}dispose(){}}class Vb{constructor(){this.kind="request"}createCancellationTokenSource(e){const n=e.$cancellationData;return n===void 0?new Wb.CancellationTokenSource:new Bb(n)}}Rs.SharedArrayReceiverStrategy=Vb;var sr={},Qo={};Object.defineProperty(Qo,"__esModule",{value:!0});Qo.Semaphore=void 0;const Kb=Gi;let Gb=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((n,i)=>{this._waiting.push({thunk:e,resolve:n,reject:i}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,Kb.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||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 n=e.thunk();n instanceof Promise?n.then(i=>{this._active--,e.resolve(i),this.runNext()},i=>{this._active--,e.reject(i),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};Qo.Semaphore=Gb;Object.defineProperty(sr,"__esModule",{value:!0});sr.ReadableStreamMessageReader=sr.AbstractMessageReader=sr.MessageReader=void 0;const qu=Gi,ls=jt,jl=Ci,Jb=Qo;var Og;(function(t){function e(n){let i=n;return i&&ls.func(i.listen)&&ls.func(i.dispose)&&ls.func(i.onError)&&ls.func(i.onClose)&&ls.func(i.onPartialMessage)}t.is=e})(Og||(sr.MessageReader=Og={}));let k2=class{constructor(){this.errorEmitter=new jl.Emitter,this.closeEmitter=new jl.Emitter,this.partialMessageEmitter=new jl.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: ${ls.string(e.message)?e.message:"unknown"}`)}};sr.AbstractMessageReader=k2;var ju;(function(t){function e(n){let i,r;const s=new Map;let o;const a=new Map;if(n===void 0||typeof n=="string")i=n??"utf-8";else{if(i=n.charset??"utf-8",n.contentDecoder!==void 0&&(r=n.contentDecoder,s.set(r.name,r)),n.contentDecoders!==void 0)for(const c of n.contentDecoders)s.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(o=n.contentTypeDecoder,a.set(o.name,o)),n.contentTypeDecoders!==void 0)for(const c of n.contentTypeDecoders)a.set(c.name,c)}return o===void 0&&(o=(0,qu.default)().applicationJson.decoder,a.set(o.name,o)),{charset:i,contentDecoder:r,contentDecoders:s,contentTypeDecoder:o,contentTypeDecoders:a}}t.fromOptions=e})(ju||(ju={}));let Xb=class extends k2{constructor(e,n){super(),this.readable=e,this.options=ju.fromOptions(n),this.buffer=(0,qu.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new Jb.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 n=this.readable.onData(i=>{this.onData(i)});return this.readable.onError(i=>this.fireError(i)),this.readable.onClose(()=>this.fireClose()),n}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){const i=this.buffer.tryReadHeaders(!0);if(!i)return;const r=i.get("content-length");if(!r){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
46
|
+
${JSON.stringify(Object.fromEntries(i))}`));return}const s=parseInt(r);if(isNaN(s)){this.fireError(new Error(`Content-Length value must be a number. Got ${r}`));return}this.nextMessageLength=s}const n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{const i=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,r=await this.options.contentTypeDecoder.decode(i,this.options);this.callback(r)}).catch(i=>{this.fireError(i)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,qu.default)().timer.setTimeout((e,n)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:n}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};sr.ReadableStreamMessageReader=Xb;var or={};Object.defineProperty(or,"__esModule",{value:!0});or.WriteableStreamMessageWriter=or.AbstractMessageWriter=or.MessageWriter=void 0;const Fg=Gi,go=jt,Zb=Qo,Lg=Ci,Yb="Content-Length: ",Ng=`\r
|
|
47
|
+
`;var $g;(function(t){function e(n){let i=n;return i&&go.func(i.dispose)&&go.func(i.onClose)&&go.func(i.onError)&&go.func(i.write)}t.is=e})($g||(or.MessageWriter=$g={}));let R2=class{constructor(){this.errorEmitter=new Lg.Emitter,this.closeEmitter=new Lg.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,n,i){this.errorEmitter.fire([this.asError(e),n,i])}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: ${go.string(e.message)?e.message:"unknown"}`)}};or.AbstractMessageWriter=R2;var Hu;(function(t){function e(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,Fg.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,Fg.default)().applicationJson.encoder}}t.fromOptions=e})(Hu||(Hu={}));let Qb=class extends R2{constructor(e,n){super(),this.writable=e,this.options=Hu.fromOptions(n),this.errorCount=0,this.writeSemaphore=new Zb.Semaphore(1),this.writable.onError(i=>this.fireError(i)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(i=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(i):i).then(i=>{const r=[];return r.push(Yb,i.byteLength.toString(),Ng),r.push(Ng),this.doWrite(e,r,i)},i=>{throw this.fireError(i),i}))}async doWrite(e,n,i){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(i)}catch(r){return this.handleError(r,e),Promise.reject(r)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){this.writable.end()}};or.WriteableStreamMessageWriter=Qb;var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0});Pc.AbstractMessageBuffer=void 0;const e4=13,t4=10,n4=`\r
|
|
48
|
+
`;class i4{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const n=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(n),this._totalLength+=n.byteLength}tryReadHeaders(e=!1){if(this._chunks.length===0)return;let n=0,i=0,r=0,s=0;e:for(;i<this._chunks.length;){const l=this._chunks[i];for(r=0;r<l.length;){switch(l[r]){case e4:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case t4:switch(n){case 1:n=2;break;case 3:n=4,r++;break e;default:n=0}break;default:n=0}r++}s+=l.byteLength,i++}if(n!==4)return;const o=this._read(s+r),a=new Map,c=this.toString(o,"ascii").split(n4);if(c.length<2)return a;for(let l=0;l<c.length-2;l++){const f=c[l],g=f.indexOf(":");if(g===-1)throw new Error(`Message header must separate key and value using ':'
|
|
49
|
+
${f}`);const p=f.substr(0,g),_=f.substr(g+1).trim();a.set(e?p.toLowerCase():p,_)}return a}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(e===0)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const s=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(s)}if(this._chunks[0].byteLength>e){const s=this._chunks[0],o=this.asNative(s,e);return this._chunks[0]=s.slice(e),this._totalLength-=e,o}const n=this.allocNative(e);let i=0,r=0;for(;e>0;){const s=this._chunks[r];if(s.byteLength>e){const o=s.slice(0,e);n.set(o,i),i+=e,this._chunks[r]=s.slice(e),this._totalLength-=e,e-=e}else n.set(s,i),i+=s.byteLength,this._chunks.shift(),this._totalLength-=s.byteLength,e-=s.byteLength}return n}}Pc.AbstractMessageBuffer=i4;var x2={};(function(t){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 e=Gi,n=jt,i=ge,r=ji,s=Ci,o=vr;var a;(function(v){v.type=new i.NotificationType("$/cancelRequest")})(a||(a={}));var c;(function(v){function R(P){return typeof P=="string"||typeof P=="number"}v.is=R})(c||(t.ProgressToken=c={}));var l;(function(v){v.type=new i.NotificationType("$/progress")})(l||(l={}));class f{constructor(){}}t.ProgressType=f;var g;(function(v){function R(P){return n.func(P)}v.is=R})(g||(g={})),t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var p;(function(v){v[v.Off=0]="Off",v[v.Messages=1]="Messages",v[v.Compact=2]="Compact",v[v.Verbose=3]="Verbose"})(p||(t.Trace=p={}));var _;(function(v){v.Off="off",v.Messages="messages",v.Compact="compact",v.Verbose="verbose"})(_||(t.TraceValues=_={})),function(v){function R(I){if(!n.string(I))return v.Off;switch(I=I.toLowerCase(),I){case"off":return v.Off;case"messages":return v.Messages;case"compact":return v.Compact;case"verbose":return v.Verbose;default:return v.Off}}v.fromString=R;function P(I){switch(I){case v.Off:return"off";case v.Messages:return"messages";case v.Compact:return"compact";case v.Verbose:return"verbose";default:return"off"}}v.toString=P}(p||(t.Trace=p={}));var C;(function(v){v.Text="text",v.JSON="json"})(C||(t.TraceFormat=C={})),function(v){function R(P){return n.string(P)?(P=P.toLowerCase(),P==="json"?v.JSON:v.Text):v.Text}v.fromString=R}(C||(t.TraceFormat=C={}));var k;(function(v){v.type=new i.NotificationType("$/setTrace")})(k||(t.SetTraceNotification=k={}));var A;(function(v){v.type=new i.NotificationType("$/logTrace")})(A||(t.LogTraceNotification=A={}));var H;(function(v){v[v.Closed=1]="Closed",v[v.Disposed=2]="Disposed",v[v.AlreadyListening=3]="AlreadyListening"})(H||(t.ConnectionErrors=H={}));class K extends Error{constructor(R,P){super(P),this.code=R,Object.setPrototypeOf(this,K.prototype)}}t.ConnectionError=K;var j;(function(v){function R(P){const I=P;return I&&n.func(I.cancelUndispatched)}v.is=R})(j||(t.ConnectionStrategy=j={}));var B;(function(v){function R(P){const I=P;return I&&(I.kind===void 0||I.kind==="id")&&n.func(I.createCancellationTokenSource)&&(I.dispose===void 0||n.func(I.dispose))}v.is=R})(B||(t.IdCancellationReceiverStrategy=B={}));var z;(function(v){function R(P){const I=P;return I&&I.kind==="request"&&n.func(I.createCancellationTokenSource)&&(I.dispose===void 0||n.func(I.dispose))}v.is=R})(z||(t.RequestCancellationReceiverStrategy=z={}));var ne;(function(v){v.Message=Object.freeze({createCancellationTokenSource(P){return new o.CancellationTokenSource}});function R(P){return B.is(P)||z.is(P)}v.is=R})(ne||(t.CancellationReceiverStrategy=ne={}));var G;(function(v){v.Message=Object.freeze({sendCancellation(P,I){return P.sendNotification(a.type,{id:I})},cleanup(P){}});function R(P){const I=P;return I&&n.func(I.sendCancellation)&&n.func(I.cleanup)}v.is=R})(G||(t.CancellationSenderStrategy=G={}));var Z;(function(v){v.Message=Object.freeze({receiver:ne.Message,sender:G.Message});function R(P){const I=P;return I&&ne.is(I.receiver)&&G.is(I.sender)}v.is=R})(Z||(t.CancellationStrategy=Z={}));var ie;(function(v){function R(P){const I=P;return I&&n.func(I.handleMessage)}v.is=R})(ie||(t.MessageStrategy=ie={}));var Le;(function(v){function R(P){const I=P;return I&&(Z.is(I.cancellationStrategy)||j.is(I.connectionStrategy)||ie.is(I.messageStrategy))}v.is=R})(Le||(t.ConnectionOptions=Le={}));var $;(function(v){v[v.New=1]="New",v[v.Listening=2]="Listening",v[v.Closed=3]="Closed",v[v.Disposed=4]="Disposed"})($||($={}));function E(v,R,P,I){const V=P!==void 0?P:t.NullLogger;let Ae=0,ve=0,lt=0;const He="2.0";let Ee;const st=new Map;let Fe;const ot=new Map,Je=new Map;let Ft,Xe=new r.LinkedMap,Ye=new Map,vt=new Set,at=new Map,oe=p.Off,pt=C.Text,we,Qe=$.New;const en=new s.Emitter,tn=new s.Emitter,Wt=new s.Emitter,Rt=new s.Emitter,xt=new s.Emitter,qe=I&&I.cancellationStrategy?I.cancellationStrategy:Z.Message;function Ut(h){if(h===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+h.toString()}function Ln(h){return h===null?"res-unknown-"+(++lt).toString():"res-"+h.toString()}function Dn(){return"not-"+(++ve).toString()}function Tn(h,D){i.Message.isRequest(D)?h.set(Ut(D.id),D):i.Message.isResponse(D)?h.set(Ln(D.id),D):h.set(Dn(),D)}function Nn(h){}function kn(){return Qe===$.Listening}function ln(){return Qe===$.Closed}function St(){return Qe===$.Disposed}function mn(){(Qe===$.New||Qe===$.Listening)&&(Qe=$.Closed,tn.fire(void 0))}function zn(h){en.fire([h,void 0,void 0])}function Kt(h){en.fire(h)}v.onClose(mn),v.onError(zn),R.onClose(mn),R.onError(Kt);function nn(){Ft||Xe.size===0||(Ft=(0,e.default)().timer.setImmediate(()=>{Ft=void 0,Gt()}))}function yn(h){i.Message.isRequest(h)?bn(h):i.Message.isNotification(h)?Bn(h):i.Message.isResponse(h)?xn(h):vn(h)}function Gt(){if(Xe.size===0)return;const h=Xe.shift();try{const D=I==null?void 0:I.messageStrategy;ie.is(D)?D.handleMessage(h,yn):yn(h)}finally{nn()}}const Rn=h=>{try{if(i.Message.isNotification(h)&&h.method===a.type.method){const D=h.params.id,x=Ut(D),N=Xe.get(x);if(i.Message.isRequest(N)){const ce=I==null?void 0:I.connectionStrategy,fe=ce&&ce.cancelUndispatched?ce.cancelUndispatched(N,Nn):void 0;if(fe&&(fe.error!==void 0||fe.result!==void 0)){Xe.delete(x),at.delete(D),fe.id=N.id,Lt(fe,h.method,Date.now()),R.write(fe).catch(()=>V.error("Sending response for canceled message failed."));return}}const le=at.get(D);if(le!==void 0){le.cancel(),L(h);return}else vt.add(D)}Tn(Xe,h)}finally{nn()}};function bn(h){if(St())return;function D(S,M,W){const de={jsonrpc:He,id:h.id};S instanceof i.ResponseError?de.error=S.toJson():de.result=S===void 0?null:S,Lt(de,M,W),R.write(de).catch(()=>V.error("Sending response failed."))}function x(S,M,W){const de={jsonrpc:He,id:h.id,error:S.toJson()};Lt(de,M,W),R.write(de).catch(()=>V.error("Sending response failed."))}function N(S,M,W){S===void 0&&(S=null);const de={jsonrpc:He,id:h.id,result:S};Lt(de,M,W),R.write(de).catch(()=>V.error("Sending response failed."))}y(h);const le=st.get(h.method);let ce,fe;le&&(ce=le.type,fe=le.handler);const d=Date.now();if(fe||Ee){const S=h.id??String(Date.now()),M=B.is(qe.receiver)?qe.receiver.createCancellationTokenSource(S):qe.receiver.createCancellationTokenSource(h);h.id!==null&&vt.has(h.id)&&M.cancel(),h.id!==null&&at.set(S,M);try{let W;if(fe)if(h.params===void 0){if(ce!==void 0&&ce.numberOfParams!==0){x(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${h.method} defines ${ce.numberOfParams} params but received none.`),h.method,d);return}W=fe(M.token)}else if(Array.isArray(h.params)){if(ce!==void 0&&ce.parameterStructures===i.ParameterStructures.byName){x(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${h.method} defines parameters by name but received parameters by position`),h.method,d);return}W=fe(...h.params,M.token)}else{if(ce!==void 0&&ce.parameterStructures===i.ParameterStructures.byPosition){x(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${h.method} defines parameters by position but received parameters by name`),h.method,d);return}W=fe(h.params,M.token)}else Ee&&(W=Ee(h.method,h.params,M.token));const de=W;W?de.then?de.then(be=>{at.delete(S),D(be,h.method,d)},be=>{at.delete(S),be instanceof i.ResponseError?x(be,h.method,d):be&&n.string(be.message)?x(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${h.method} failed with message: ${be.message}`),h.method,d):x(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${h.method} failed unexpectedly without providing any details.`),h.method,d)}):(at.delete(S),D(W,h.method,d)):(at.delete(S),N(W,h.method,d))}catch(W){at.delete(S),W instanceof i.ResponseError?D(W,h.method,d):W&&n.string(W.message)?x(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${h.method} failed with message: ${W.message}`),h.method,d):x(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${h.method} failed unexpectedly without providing any details.`),h.method,d)}}else x(new i.ResponseError(i.ErrorCodes.MethodNotFound,`Unhandled method ${h.method}`),h.method,d)}function xn(h){if(!St())if(h.id===null)h.error?V.error(`Received response message without id: Error is:
|
|
50
|
+
${JSON.stringify(h.error,void 0,4)}`):V.error("Received response message without id. No further error information provided.");else{const D=h.id,x=Ye.get(D);if(te(h,x),x!==void 0){Ye.delete(D);try{if(h.error){const N=h.error;x.reject(new i.ResponseError(N.code,N.message,N.data))}else if(h.result!==void 0)x.resolve(h.result);else throw new Error("Should never happen.")}catch(N){N.message?V.error(`Response handler '${x.method}' failed with message: ${N.message}`):V.error(`Response handler '${x.method}' failed unexpectedly.`)}}}}function Bn(h){if(St())return;let D,x;if(h.method===a.type.method){const N=h.params.id;vt.delete(N),L(h);return}else{const N=ot.get(h.method);N&&(x=N.handler,D=N.type)}if(x||Fe)try{if(L(h),x)if(h.params===void 0)D!==void 0&&D.numberOfParams!==0&&D.parameterStructures!==i.ParameterStructures.byName&&V.error(`Notification ${h.method} defines ${D.numberOfParams} params but received none.`),x();else if(Array.isArray(h.params)){const N=h.params;h.method===l.type.method&&N.length===2&&c.is(N[0])?x({token:N[0],value:N[1]}):(D!==void 0&&(D.parameterStructures===i.ParameterStructures.byName&&V.error(`Notification ${h.method} defines parameters by name but received parameters by position`),D.numberOfParams!==h.params.length&&V.error(`Notification ${h.method} defines ${D.numberOfParams} params but received ${N.length} arguments`)),x(...N))}else D!==void 0&&D.parameterStructures===i.ParameterStructures.byPosition&&V.error(`Notification ${h.method} defines parameters by position but received parameters by name`),x(h.params);else Fe&&Fe(h.method,h.params)}catch(N){N.message?V.error(`Notification handler '${h.method}' failed with message: ${N.message}`):V.error(`Notification handler '${h.method}' failed unexpectedly.`)}else Wt.fire(h)}function vn(h){if(!h){V.error("Received empty message.");return}V.error(`Received message which is neither a response nor a notification message:
|
|
51
|
+
${JSON.stringify(h,null,4)}`);const D=h;if(n.string(D.id)||n.number(D.id)){const x=D.id,N=Ye.get(x);N&&N.reject(new Error("The received response has neither a result nor an error property."))}}function mt(h){if(h!=null)switch(oe){case p.Verbose:return JSON.stringify(h,null,4);case p.Compact:return JSON.stringify(h);default:return}}function In(h){if(!(oe===p.Off||!we))if(pt===C.Text){let D;(oe===p.Verbose||oe===p.Compact)&&h.params&&(D=`Params: ${mt(h.params)}
|
|
52
|
+
|
|
53
|
+
`),we.log(`Sending request '${h.method} - (${h.id})'.`,D)}else Te("send-request",h)}function $n(h){if(!(oe===p.Off||!we))if(pt===C.Text){let D;(oe===p.Verbose||oe===p.Compact)&&(h.params?D=`Params: ${mt(h.params)}
|
|
38
54
|
|
|
39
55
|
`:D=`No parameters provided.
|
|
40
56
|
|
|
41
|
-
`),
|
|
57
|
+
`),we.log(`Sending notification '${h.method}'.`,D)}else Te("send-notification",h)}function Lt(h,D,x){if(!(oe===p.Off||!we))if(pt===C.Text){let N;(oe===p.Verbose||oe===p.Compact)&&(h.error&&h.error.data?N=`Error data: ${mt(h.error.data)}
|
|
42
58
|
|
|
43
59
|
`:h.result?N=`Result: ${mt(h.result)}
|
|
44
60
|
|
|
45
61
|
`:h.error===void 0&&(N=`No result returned.
|
|
46
62
|
|
|
47
|
-
`)),
|
|
63
|
+
`)),we.log(`Sending response '${D} - (${h.id})'. Processing request took ${Date.now()-x}ms`,N)}else Te("send-response",h)}function y(h){if(!(oe===p.Off||!we))if(pt===C.Text){let D;(oe===p.Verbose||oe===p.Compact)&&h.params&&(D=`Params: ${mt(h.params)}
|
|
48
64
|
|
|
49
|
-
`),
|
|
65
|
+
`),we.log(`Received request '${h.method} - (${h.id})'.`,D)}else Te("receive-request",h)}function L(h){if(!(oe===p.Off||!we||h.method===A.type.method))if(pt===C.Text){let D;(oe===p.Verbose||oe===p.Compact)&&(h.params?D=`Params: ${mt(h.params)}
|
|
50
66
|
|
|
51
67
|
`:D=`No parameters provided.
|
|
52
68
|
|
|
53
|
-
`),
|
|
69
|
+
`),we.log(`Received notification '${h.method}'.`,D)}else Te("receive-notification",h)}function te(h,D){if(!(oe===p.Off||!we))if(pt===C.Text){let x;if((oe===p.Verbose||oe===p.Compact)&&(h.error&&h.error.data?x=`Error data: ${mt(h.error.data)}
|
|
54
70
|
|
|
55
71
|
`:h.result?x=`Result: ${mt(h.result)}
|
|
56
72
|
|
|
57
73
|
`:h.error===void 0&&(x=`No result returned.
|
|
58
74
|
|
|
59
|
-
`)),D){const N=h.error?` Request failed: ${h.error.message} (${h.error.code}).`:"";Ce.log(`Received response '${D.method} - (${h.id})' in ${Date.now()-D.timerStart}ms.${N}`,x)}else Ce.log(`Received response ${h.id} without active response promise.`,x)}else Te("receive-response",h)}function Te(h,D){if(!Ce||oe===g.Off)return;const x={isLSPMessage:!0,type:h,message:D,timestamp:Date.now()};Ce.log(x)}function xe(){if(ln())throw new K(H.Closed,"Connection is closed.");if(St())throw new K(H.Disposed,"Connection is disposed.")}function ut(){if(kn())throw new K(H.AlreadyListening,"Connection is already listening")}function T(){if(!kn())throw new Error("Call listen() first.")}function U(h){return h===void 0?null:h}function X(h){if(h!==null)return h}function w(h){return h!=null&&!Array.isArray(h)&&typeof h=="object"}function ge(h,D){switch(h){case r.ParameterStructures.auto:return w(D)?X(D):[U(D)];case r.ParameterStructures.byName:if(!w(D))throw new Error("Received parameters by name but param is not an object literal.");return X(D);case r.ParameterStructures.byPosition:return[U(D)];default:throw new Error(`Unknown parameter structure ${h.toString()}`)}}function me(h,D){let x;const N=h.numberOfParams;switch(N){case 0:x=void 0;break;case 1:x=ge(h.parameterStructures,D[0]);break;default:x=[];for(let le=0;le<D.length&&le<N;le++)x.push(U(D[le]));if(D.length<N)for(let le=D.length;le<N;le++)x.push(null);break}return x}const J={sendNotification:(h,...D)=>{xe();let x,N;if(n.string(h)){x=h;const ce=D[0];let fe=0,d=r.ParameterStructures.auto;r.ParameterStructures.is(ce)&&(fe=1,d=ce);let S=D.length;const O=S-fe;switch(O){case 0:N=void 0;break;case 1:N=ge(d,D[fe]);break;default:if(d===r.ParameterStructures.byName)throw new Error(`Received ${O} parameters for 'by Name' notification parameter structure.`);N=D.slice(fe,S).map(W=>U(W));break}}else{const ce=D;x=h.method,N=me(h,ce)}const le={jsonrpc:He,method:x,params:N};return $n(le),R.write(le).catch(ce=>{throw V.error("Sending notification failed."),ce})},onNotification:(h,D)=>{xe();let x;return n.func(h)?Fe=h:D&&(n.string(h)?(x=h,ot.set(h,{type:void 0,handler:D})):(x=h.method,ot.set(h.method,{type:h,handler:D}))),{dispose:()=>{x!==void 0?ot.delete(x):Fe=void 0}}},onProgress:(h,D,x)=>{if(Qe.has(D))throw new Error(`Progress handler for token ${D} already registered`);return Qe.set(D,x),{dispose:()=>{Qe.delete(D)}}},sendProgress:(h,D,x)=>J.sendNotification(l.type,{token:D,value:x}),onUnhandledProgress:Rt.event,sendRequest:(h,...D)=>{xe(),T();let x,N,le;if(n.string(h)){x=h;const S=D[0],O=D[D.length-1];let W=0,de=r.ParameterStructures.auto;r.ParameterStructures.is(S)&&(W=1,de=S);let be=D.length;o.CancellationToken.is(O)&&(be=be-1,le=O);const _e=be-W;switch(_e){case 0:N=void 0;break;case 1:N=ge(de,D[W]);break;default:if(de===r.ParameterStructures.byName)throw new Error(`Received ${_e} parameters for 'by Name' request parameter structure.`);N=D.slice(W,be).map(Pn=>U(Pn));break}}else{const S=D;x=h.method,N=me(h,S);const O=h.numberOfParams;le=o.CancellationToken.is(S[O])?S[O]:void 0}const ce=Me++;let fe;le&&(fe=le.onCancellationRequested(()=>{const S=qe.sender.sendCancellation(J,ce);return S===void 0?(V.log(`Received no promise from cancellation strategy when cancelling id ${ce}`),Promise.resolve()):S.catch(()=>{V.log(`Sending cancellation messages for id ${ce} failed`)})}));const d={jsonrpc:He,id:ce,method:x,params:N};return En(d),typeof qe.sender.enableCancellation=="function"&&qe.sender.enableCancellation(d),new Promise(async(S,O)=>{const W=_e=>{S(_e),qe.sender.cleanup(ce),fe==null||fe.dispose()},de=_e=>{O(_e),qe.sender.cleanup(ce),fe==null||fe.dispose()},be={method:x,timerStart:Date.now(),resolve:W,reject:de};try{await R.write(d),Xe.set(ce,be)}catch(_e){throw V.error("Sending request failed."),be.reject(new r.ResponseError(r.ErrorCodes.MessageWriteError,_e.message?_e.message:"Unknown reason")),_e}})},onRequest:(h,D)=>{xe();let x=null;return p.is(h)?(x=void 0,Pe=h):n.string(h)?(x=null,D!==void 0&&(x=h,st.set(h,{handler:D,type:void 0}))):D!==void 0&&(x=h.method,st.set(h.method,{type:h,handler:D})),{dispose:()=>{x!==null&&(x!==void 0?st.delete(x):Pe=void 0)}}},hasPendingResponse:()=>Xe.size>0,trace:async(h,D,x)=>{let N=!1,le=C.Text;x!==void 0&&(n.boolean(x)?N=x:(N=x.sendNotification||!1,le=x.traceFormat||C.Text)),oe=h,gt=le,oe===g.Off?Ce=void 0:Ce=D,N&&!ln()&&!St()&&await J.sendNotification(k.type,{value:g.toString(h)})},onError:en.event,onClose:tn.event,onUnhandledNotification:Wt.event,onDispose:xt.event,end:()=>{R.end()},dispose:()=>{if(St())return;Ze=$.Disposed,xt.fire(void 0);const h=new r.ResponseError(r.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const D of Xe.values())D.reject(h);Xe=new Map,at=new Map,vt=new Set,Je=new i.LinkedMap,n.func(R.dispose)&&R.dispose(),n.func(v.dispose)&&v.dispose()},listen:()=>{xe(),ut(),Ze=$.Listening,v.listen(Rn)},inspect:()=>{(0,e.default)().console.log("inspect")}};return J.onNotification(M.type,h=>{if(oe===g.Off||!Ce)return;const D=oe===g.Verbose||oe===g.Compact;Ce.log(h.message,D?h.verbose:void 0)}),J.onNotification(l.type,h=>{const D=Qe.get(h.token);D?D(h.value):Rt.fire(h)}),J}t.createMessageConnection=P})(k2);(function(t){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 e=pe;Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return e.Message}}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return e.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return e.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return e.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return e.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return e.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return e.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return e.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return e.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return e.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return e.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return e.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return e.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return e.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return e.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return e.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return e.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return e.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return e.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return e.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return e.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return e.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return e.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return e.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return e.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return e.ParameterStructures}});const n=jr;Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:function(){return n.LinkedMap}}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:function(){return n.LRUCache}}),Object.defineProperty(t,"Touch",{enumerable:!0,get:function(){return n.Touch}});const r=Pc;Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return r.Disposable}});const i=Cr;Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return i.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return i.Emitter}});const s=vi;Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return s.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return s.CancellationToken}});const o=Rs;Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return o.SharedArraySenderStrategy}}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return o.SharedArrayReceiverStrategy}});const a=si;Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return a.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return a.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return a.ReadableStreamMessageReader}});const c=oi;Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return c.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return c.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return c.WriteableStreamMessageWriter}});const l=Ic;Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:function(){return l.AbstractMessageBuffer}});const f=k2;Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return f.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return f.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return f.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return f.createMessageConnection}}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:function(){return f.ProgressToken}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return f.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return f.Trace}}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:function(){return f.TraceValues}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return f.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return f.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return f.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return f.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return f.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return f.CancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return f.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return f.CancellationStrategy}}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:function(){return f.MessageStrategy}});const p=Gr;t.RAL=p.default})(Oa);Object.defineProperty(G1,"__esModule",{value:!0});const br=Oa;let R2=class x2 extends br.AbstractMessageBuffer{constructor(e="utf-8"){super(e),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return x2.emptyBuffer}fromString(e,n){return new TextEncoder().encode(e)}toString(e,n){return n==="ascii"?this.asciiDecoder.decode(e):new TextDecoder(n).decode(e)}asNative(e,n){return n===void 0?e:e.slice(0,n)}allocNative(e){return new Uint8Array(e)}};R2.emptyBuffer=new Uint8Array(0);let Jb=class{constructor(e){this.socket=e,this._onData=new br.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,br.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(e){return this.socket.addEventListener("close",e),br.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),br.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),br.Disposable.create(()=>this.socket.removeEventListener("end",e))}onData(e){return this._onData.event(e)}},Yb=class{constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener("close",e),br.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),br.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),br.Disposable.create(()=>this.socket.removeEventListener("end",e))}write(e,n){if(typeof e=="string"){if(n!==void 0&&n!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${n}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}};const Xb=new TextEncoder,E2=Object.freeze({messageBuffer:Object.freeze({create:t=>new R2(t)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(t,e)=>{if(e.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${e.charset}`);return Promise.resolve(Xb.encode(JSON.stringify(t,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(t,e)=>{if(!(t instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(e.charset).decode(t)))}})}),stream:Object.freeze({asReadableStream:t=>new Jb(t),asWritableStream:t=>new Yb(t)}),console,timer:Object.freeze({setTimeout(t,e,...n){const r=setTimeout(t,e,...n);return{dispose:()=>clearTimeout(r)}},setImmediate(t,...e){const n=setTimeout(t,0,...e);return{dispose:()=>clearTimeout(n)}},setInterval(t,e,...n){const r=setInterval(t,e,...n);return{dispose:()=>clearInterval(r)}}})});function Hu(){return E2}(function(t){function e(){br.RAL.install(E2)}t.install=e})(Hu||(Hu={}));G1.default=Hu;(function(t){var e=_t&&_t.__createBinding||(Object.create?function(c,l,f,p){p===void 0&&(p=f);var g=Object.getOwnPropertyDescriptor(l,f);(!g||("get"in g?!l.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return l[f]}}),Object.defineProperty(c,p,g)}:function(c,l,f,p){p===void 0&&(p=f),c[p]=l[f]}),n=_t&&_t.__exportStar||function(c,l){for(var f in c)f!=="default"&&!Object.prototype.hasOwnProperty.call(l,f)&&e(l,c,f)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.BrowserMessageWriter=t.BrowserMessageReader=void 0,G1.default.install();const i=Oa;n(Oa,t);class s extends i.AbstractMessageReader{constructor(l){super(),this._onData=new i.Emitter,this._messageListener=f=>{this._onData.fire(f.data)},l.addEventListener("error",f=>this.fireError(f)),l.onmessage=this._messageListener}listen(l){return this._onData.event(l)}}t.BrowserMessageReader=s;class o extends i.AbstractMessageWriter{constructor(l){super(),this.port=l,this.errorCount=0,l.addEventListener("error",f=>this.fireError(f))}write(l){try{return this.port.postMessage(l),Promise.resolve()}catch(f){return this.handleError(f,l),Promise.reject(f)}}handleError(l,f){this.errorCount++,this.fireError(l,f,this.errorCount)}end(){}}t.BrowserMessageWriter=o;function a(c,l,f,p){return f===void 0&&(f=i.NullLogger),i.ConnectionStrategy.is(p)&&(p={connectionStrategy:p}),(0,i.createMessageConnection)(c,l,f,p)}t.createMessageConnection=a})(Xi);var Np=Xi,P2={},Wu;(function(t){function e(n){return typeof n=="string"}t.is=e})(Wu||(Wu={}));var Fa;(function(t){function e(n){return typeof n=="string"}t.is=e})(Fa||(Fa={}));var Uu;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(Uu||(Uu={}));var Po;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(Po||(Po={}));var Jn;(function(t){function e(r,i){return r===Number.MAX_VALUE&&(r=Po.MAX_VALUE),i===Number.MAX_VALUE&&(i=Po.MAX_VALUE),{line:r,character:i}}t.create=e;function n(r){let i=r;return A.objectLiteral(i)&&A.uinteger(i.line)&&A.uinteger(i.character)}t.is=n})(Jn||(Jn={}));var At;(function(t){function e(r,i,s,o){if(A.uinteger(r)&&A.uinteger(i)&&A.uinteger(s)&&A.uinteger(o))return{start:Jn.create(r,i),end:Jn.create(s,o)};if(Jn.is(r)&&Jn.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${s}, ${o}]`)}t.create=e;function n(r){let i=r;return A.objectLiteral(i)&&Jn.is(i.start)&&Jn.is(i.end)}t.is=n})(At||(At={}));var Io;(function(t){function e(r,i){return{uri:r,range:i}}t.create=e;function n(r){let i=r;return A.objectLiteral(i)&&At.is(i.range)&&(A.string(i.uri)||A.undefined(i.uri))}t.is=n})(Io||(Io={}));var zu;(function(t){function e(r,i,s,o){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:o}}t.create=e;function n(r){let i=r;return A.objectLiteral(i)&&At.is(i.targetRange)&&A.string(i.targetUri)&&At.is(i.targetSelectionRange)&&(At.is(i.originSelectionRange)||A.undefined(i.originSelectionRange))}t.is=n})(zu||(zu={}));var La;(function(t){function e(r,i,s,o){return{red:r,green:i,blue:s,alpha:o}}t.create=e;function n(r){const i=r;return A.objectLiteral(i)&&A.numberRange(i.red,0,1)&&A.numberRange(i.green,0,1)&&A.numberRange(i.blue,0,1)&&A.numberRange(i.alpha,0,1)}t.is=n})(La||(La={}));var Bu;(function(t){function e(r,i){return{range:r,color:i}}t.create=e;function n(r){const i=r;return A.objectLiteral(i)&&At.is(i.range)&&La.is(i.color)}t.is=n})(Bu||(Bu={}));var Vu;(function(t){function e(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}t.create=e;function n(r){const i=r;return A.objectLiteral(i)&&A.string(i.label)&&(A.undefined(i.textEdit)||wr.is(i))&&(A.undefined(i.additionalTextEdits)||A.typedArray(i.additionalTextEdits,wr.is))}t.is=n})(Vu||(Vu={}));var Ku;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Ku||(Ku={}));var Gu;(function(t){function e(r,i,s,o,a,c){const l={startLine:r,endLine:i};return A.defined(s)&&(l.startCharacter=s),A.defined(o)&&(l.endCharacter=o),A.defined(a)&&(l.kind=a),A.defined(c)&&(l.collapsedText=c),l}t.create=e;function n(r){const i=r;return A.objectLiteral(i)&&A.uinteger(i.startLine)&&A.uinteger(i.startLine)&&(A.undefined(i.startCharacter)||A.uinteger(i.startCharacter))&&(A.undefined(i.endCharacter)||A.uinteger(i.endCharacter))&&(A.undefined(i.kind)||A.string(i.kind))}t.is=n})(Gu||(Gu={}));var Na;(function(t){function e(r,i){return{location:r,message:i}}t.create=e;function n(r){let i=r;return A.defined(i)&&Io.is(i.location)&&A.string(i.message)}t.is=n})(Na||(Na={}));var Qu;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Qu||(Qu={}));var Ju;(function(t){t.Unnecessary=1,t.Deprecated=2})(Ju||(Ju={}));var Yu;(function(t){function e(n){const r=n;return A.objectLiteral(r)&&A.string(r.href)}t.is=e})(Yu||(Yu={}));var Mo;(function(t){function e(r,i,s,o,a,c){let l={range:r,message:i};return A.defined(s)&&(l.severity=s),A.defined(o)&&(l.code=o),A.defined(a)&&(l.source=a),A.defined(c)&&(l.relatedInformation=c),l}t.create=e;function n(r){var i;let s=r;return A.defined(s)&&At.is(s.range)&&A.string(s.message)&&(A.number(s.severity)||A.undefined(s.severity))&&(A.integer(s.code)||A.string(s.code)||A.undefined(s.code))&&(A.undefined(s.codeDescription)||A.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(A.string(s.source)||A.undefined(s.source))&&(A.undefined(s.relatedInformation)||A.typedArray(s.relatedInformation,Na.is))}t.is=n})(Mo||(Mo={}));var Qi;(function(t){function e(r,i,...s){let o={title:r,command:i};return A.defined(s)&&s.length>0&&(o.arguments=s),o}t.create=e;function n(r){let i=r;return A.defined(i)&&A.string(i.title)&&A.string(i.command)}t.is=n})(Qi||(Qi={}));var wr;(function(t){function e(s,o){return{range:s,newText:o}}t.replace=e;function n(s,o){return{range:{start:s,end:s},newText:o}}t.insert=n;function r(s){return{range:s,newText:""}}t.del=r;function i(s){const o=s;return A.objectLiteral(o)&&A.string(o.newText)&&At.is(o.range)}t.is=i})(wr||(wr={}));var Wi;(function(t){function e(r,i,s){const o={label:r};return i!==void 0&&(o.needsConfirmation=i),s!==void 0&&(o.description=s),o}t.create=e;function n(r){const i=r;return A.objectLiteral(i)&&A.string(i.label)&&(A.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(A.string(i.description)||i.description===void 0)}t.is=n})(Wi||(Wi={}));var an;(function(t){function e(n){const r=n;return A.string(r)}t.is=e})(an||(an={}));var Or;(function(t){function e(s,o,a){return{range:s,newText:o,annotationId:a}}t.replace=e;function n(s,o,a){return{range:{start:s,end:s},newText:o,annotationId:a}}t.insert=n;function r(s,o){return{range:s,newText:"",annotationId:o}}t.del=r;function i(s){const o=s;return wr.is(o)&&(Wi.is(o.annotationId)||an.is(o.annotationId))}t.is=i})(Or||(Or={}));var Oo;(function(t){function e(r,i){return{textDocument:r,edits:i}}t.create=e;function n(r){let i=r;return A.defined(i)&&Ao.is(i.textDocument)&&Array.isArray(i.edits)}t.is=n})(Oo||(Oo={}));var xs;(function(t){function e(r,i,s){let o={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(r){let i=r;return i&&i.kind==="create"&&A.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||A.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||A.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||an.is(i.annotationId))}t.is=n})(xs||(xs={}));var Es;(function(t){function e(r,i,s,o){let a={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(a.options=s),o!==void 0&&(a.annotationId=o),a}t.create=e;function n(r){let i=r;return i&&i.kind==="rename"&&A.string(i.oldUri)&&A.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||A.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||A.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||an.is(i.annotationId))}t.is=n})(Es||(Es={}));var Ps;(function(t){function e(r,i,s){let o={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(r){let i=r;return i&&i.kind==="delete"&&A.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||A.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||A.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||an.is(i.annotationId))}t.is=n})(Ps||(Ps={}));var $a;(function(t){function e(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>A.string(i.kind)?xs.is(i)||Es.is(i)||Ps.is(i):Oo.is(i)))}t.is=e})($a||($a={}));class fa{constructor(e,n){this.edits=e,this.changeAnnotations=n}insert(e,n,r){let i,s;if(r===void 0?i=wr.insert(e,n):an.is(r)?(s=r,i=Or.insert(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=Or.insert(e,n,s)),this.edits.push(i),s!==void 0)return s}replace(e,n,r){let i,s;if(r===void 0?i=wr.replace(e,n):an.is(r)?(s=r,i=Or.replace(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=Or.replace(e,n,s)),this.edits.push(i),s!==void 0)return s}delete(e,n){let r,i;if(n===void 0?r=wr.del(e):an.is(n)?(i=n,r=Or.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Or.del(e,i)),this.edits.push(r),i!==void 0)return i}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}}class $p{constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,n){let r;if(an.is(e)?r=e:(r=this.nextId(),n=e),this._annotations[r]!==void 0)throw new Error(`Id ${r} is already in use.`);if(n===void 0)throw new Error(`No annotation provided for id ${r}`);return this._annotations[r]=n,this._size++,r}nextId(){return this._counter++,this._counter.toString()}}class Zb{constructor(e){this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new $p(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(n=>{if(Oo.is(n)){const r=new fa(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):e.changes&&Object.keys(e.changes).forEach(n=>{const r=new fa(e.changes[n]);this._textEditChanges[n]=r})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(Ao.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const n={uri:e.uri,version:e.version};let r=this._textEditChanges[n.uri];if(!r){const i=[],s={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(s),r=new fa(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let n=this._textEditChanges[e];if(!n){let r=[];this._workspaceEdit.changes[e]=r,n=new fa(r),this._textEditChanges[e]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new $p,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;Wi.is(n)||an.is(n)?i=n:r=n;let s,o;if(i===void 0?s=xs.create(e,r):(o=an.is(i)?i:this._changeAnnotations.manage(i),s=xs.create(e,r,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o}renameFile(e,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let s;Wi.is(r)||an.is(r)?s=r:i=r;let o,a;if(s===void 0?o=Es.create(e,n,i):(a=an.is(s)?s:this._changeAnnotations.manage(s),o=Es.create(e,n,i,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a}deleteFile(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;Wi.is(n)||an.is(n)?i=n:r=n;let s,o;if(i===void 0?s=Ps.create(e,r):(o=an.is(i)?i:this._changeAnnotations.manage(i),s=Ps.create(e,r,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o}}var Xu;(function(t){function e(r){return{uri:r}}t.create=e;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)}t.is=n})(Xu||(Xu={}));var Zu;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)&&A.integer(i.version)}t.is=n})(Zu||(Zu={}));var Ao;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)&&(i.version===null||A.integer(i.version))}t.is=n})(Ao||(Ao={}));var ed;(function(t){function e(r,i,s,o){return{uri:r,languageId:i,version:s,text:o}}t.create=e;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)&&A.string(i.languageId)&&A.integer(i.version)&&A.string(i.text)}t.is=n})(ed||(ed={}));var qa;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){const r=n;return r===t.PlainText||r===t.Markdown}t.is=e})(qa||(qa={}));var Is;(function(t){function e(n){const r=n;return A.objectLiteral(n)&&qa.is(r.kind)&&A.string(r.value)}t.is=e})(Is||(Is={}));var td;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(td||(td={}));var nd;(function(t){t.PlainText=1,t.Snippet=2})(nd||(nd={}));var rd;(function(t){t.Deprecated=1})(rd||(rd={}));var id;(function(t){function e(r,i,s){return{newText:r,insert:i,replace:s}}t.create=e;function n(r){const i=r;return i&&A.string(i.newText)&&At.is(i.insert)&&At.is(i.replace)}t.is=n})(id||(id={}));var sd;(function(t){t.asIs=1,t.adjustIndentation=2})(sd||(sd={}));var od;(function(t){function e(n){const r=n;return r&&(A.string(r.detail)||r.detail===void 0)&&(A.string(r.description)||r.description===void 0)}t.is=e})(od||(od={}));var ad;(function(t){function e(n){return{label:n}}t.create=e})(ad||(ad={}));var cd;(function(t){function e(n,r){return{items:n||[],isIncomplete:!!r}}t.create=e})(cd||(cd={}));var Fo;(function(t){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(r){const i=r;return A.string(i)||A.objectLiteral(i)&&A.string(i.language)&&A.string(i.value)}t.is=n})(Fo||(Fo={}));var ld;(function(t){function e(n){let r=n;return!!r&&A.objectLiteral(r)&&(Is.is(r.contents)||Fo.is(r.contents)||A.typedArray(r.contents,Fo.is))&&(n.range===void 0||At.is(n.range))}t.is=e})(ld||(ld={}));var ud;(function(t){function e(n,r){return r?{label:n,documentation:r}:{label:n}}t.create=e})(ud||(ud={}));var dd;(function(t){function e(n,r,...i){let s={label:n};return A.defined(r)&&(s.documentation=r),A.defined(i)?s.parameters=i:s.parameters=[],s}t.create=e})(dd||(dd={}));var fd;(function(t){t.Text=1,t.Read=2,t.Write=3})(fd||(fd={}));var hd;(function(t){function e(n,r){let i={range:n};return A.number(r)&&(i.kind=r),i}t.create=e})(hd||(hd={}));var pd;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(pd||(pd={}));var gd;(function(t){t.Deprecated=1})(gd||(gd={}));var md;(function(t){function e(n,r,i,s,o){let a={name:n,kind:r,location:{uri:s,range:i}};return o&&(a.containerName=o),a}t.create=e})(md||(md={}));var yd;(function(t){function e(n,r,i,s){return s!==void 0?{name:n,kind:r,location:{uri:i,range:s}}:{name:n,kind:r,location:{uri:i}}}t.create=e})(yd||(yd={}));var bd;(function(t){function e(r,i,s,o,a,c){let l={name:r,detail:i,kind:s,range:o,selectionRange:a};return c!==void 0&&(l.children=c),l}t.create=e;function n(r){let i=r;return i&&A.string(i.name)&&A.number(i.kind)&&At.is(i.range)&&At.is(i.selectionRange)&&(i.detail===void 0||A.string(i.detail))&&(i.deprecated===void 0||A.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}t.is=n})(bd||(bd={}));var vd;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(vd||(vd={}));var Lo;(function(t){t.Invoked=1,t.Automatic=2})(Lo||(Lo={}));var wd;(function(t){function e(r,i,s){let o={diagnostics:r};return i!=null&&(o.only=i),s!=null&&(o.triggerKind=s),o}t.create=e;function n(r){let i=r;return A.defined(i)&&A.typedArray(i.diagnostics,Mo.is)&&(i.only===void 0||A.typedArray(i.only,A.string))&&(i.triggerKind===void 0||i.triggerKind===Lo.Invoked||i.triggerKind===Lo.Automatic)}t.is=n})(wd||(wd={}));var Cd;(function(t){function e(r,i,s){let o={title:r},a=!0;return typeof i=="string"?(a=!1,o.kind=i):Qi.is(i)?o.command=i:o.edit=i,a&&s!==void 0&&(o.kind=s),o}t.create=e;function n(r){let i=r;return i&&A.string(i.title)&&(i.diagnostics===void 0||A.typedArray(i.diagnostics,Mo.is))&&(i.kind===void 0||A.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Qi.is(i.command))&&(i.isPreferred===void 0||A.boolean(i.isPreferred))&&(i.edit===void 0||$a.is(i.edit))}t.is=n})(Cd||(Cd={}));var _d;(function(t){function e(r,i){let s={range:r};return A.defined(i)&&(s.data=i),s}t.create=e;function n(r){let i=r;return A.defined(i)&&At.is(i.range)&&(A.undefined(i.command)||Qi.is(i.command))}t.is=n})(_d||(_d={}));var Sd;(function(t){function e(r,i){return{tabSize:r,insertSpaces:i}}t.create=e;function n(r){let i=r;return A.defined(i)&&A.uinteger(i.tabSize)&&A.boolean(i.insertSpaces)}t.is=n})(Sd||(Sd={}));var Dd;(function(t){function e(r,i,s){return{range:r,target:i,data:s}}t.create=e;function n(r){let i=r;return A.defined(i)&&At.is(i.range)&&(A.undefined(i.target)||A.string(i.target))}t.is=n})(Dd||(Dd={}));var Td;(function(t){function e(r,i){return{range:r,parent:i}}t.create=e;function n(r){let i=r;return A.objectLiteral(i)&&At.is(i.range)&&(i.parent===void 0||t.is(i.parent))}t.is=n})(Td||(Td={}));var kd;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(kd||(kd={}));var Rd;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Rd||(Rd={}));var xd;(function(t){function e(n){const r=n;return A.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}t.is=e})(xd||(xd={}));var Ed;(function(t){function e(r,i){return{range:r,text:i}}t.create=e;function n(r){const i=r;return i!=null&&At.is(i.range)&&A.string(i.text)}t.is=n})(Ed||(Ed={}));var Pd;(function(t){function e(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}t.create=e;function n(r){const i=r;return i!=null&&At.is(i.range)&&A.boolean(i.caseSensitiveLookup)&&(A.string(i.variableName)||i.variableName===void 0)}t.is=n})(Pd||(Pd={}));var Id;(function(t){function e(r,i){return{range:r,expression:i}}t.create=e;function n(r){const i=r;return i!=null&&At.is(i.range)&&(A.string(i.expression)||i.expression===void 0)}t.is=n})(Id||(Id={}));var Md;(function(t){function e(r,i){return{frameId:r,stoppedLocation:i}}t.create=e;function n(r){const i=r;return A.defined(i)&&At.is(r.stoppedLocation)}t.is=n})(Md||(Md={}));var ja;(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}t.is=e})(ja||(ja={}));var Ha;(function(t){function e(r){return{value:r}}t.create=e;function n(r){const i=r;return A.objectLiteral(i)&&(i.tooltip===void 0||A.string(i.tooltip)||Is.is(i.tooltip))&&(i.location===void 0||Io.is(i.location))&&(i.command===void 0||Qi.is(i.command))}t.is=n})(Ha||(Ha={}));var Od;(function(t){function e(r,i,s){const o={position:r,label:i};return s!==void 0&&(o.kind=s),o}t.create=e;function n(r){const i=r;return A.objectLiteral(i)&&Jn.is(i.position)&&(A.string(i.label)||A.typedArray(i.label,Ha.is))&&(i.kind===void 0||ja.is(i.kind))&&i.textEdits===void 0||A.typedArray(i.textEdits,wr.is)&&(i.tooltip===void 0||A.string(i.tooltip)||Is.is(i.tooltip))&&(i.paddingLeft===void 0||A.boolean(i.paddingLeft))&&(i.paddingRight===void 0||A.boolean(i.paddingRight))}t.is=n})(Od||(Od={}));var Ad;(function(t){function e(n){return{kind:"snippet",value:n}}t.createSnippet=e})(Ad||(Ad={}));var Fd;(function(t){function e(n,r,i,s){return{insertText:n,filterText:r,range:i,command:s}}t.create=e})(Fd||(Fd={}));var Ld;(function(t){function e(n){return{items:n}}t.create=e})(Ld||(Ld={}));var Nd;(function(t){t.Invoked=0,t.Automatic=1})(Nd||(Nd={}));var $d;(function(t){function e(n,r){return{range:n,text:r}}t.create=e})($d||($d={}));var qd;(function(t){function e(n,r){return{triggerKind:n,selectedCompletionInfo:r}}t.create=e})(qd||(qd={}));var jd;(function(t){function e(n){const r=n;return A.objectLiteral(r)&&Fa.is(r.uri)&&A.string(r.name)}t.is=e})(jd||(jd={}));const e4=[`
|
|
75
|
+
`)),D){const N=h.error?` Request failed: ${h.error.message} (${h.error.code}).`:"";we.log(`Received response '${D.method} - (${h.id})' in ${Date.now()-D.timerStart}ms.${N}`,x)}else we.log(`Received response ${h.id} without active response promise.`,x)}else Te("receive-response",h)}function Te(h,D){if(!we||oe===p.Off)return;const x={isLSPMessage:!0,type:h,message:D,timestamp:Date.now()};we.log(x)}function xe(){if(ln())throw new K(H.Closed,"Connection is closed.");if(St())throw new K(H.Disposed,"Connection is disposed.")}function ut(){if(kn())throw new K(H.AlreadyListening,"Connection is already listening")}function T(){if(!kn())throw new Error("Call listen() first.")}function U(h){return h===void 0?null:h}function Y(h){if(h!==null)return h}function w(h){return h!=null&&!Array.isArray(h)&&typeof h=="object"}function pe(h,D){switch(h){case i.ParameterStructures.auto:return w(D)?Y(D):[U(D)];case i.ParameterStructures.byName:if(!w(D))throw new Error("Received parameters by name but param is not an object literal.");return Y(D);case i.ParameterStructures.byPosition:return[U(D)];default:throw new Error(`Unknown parameter structure ${h.toString()}`)}}function me(h,D){let x;const N=h.numberOfParams;switch(N){case 0:x=void 0;break;case 1:x=pe(h.parameterStructures,D[0]);break;default:x=[];for(let le=0;le<D.length&&le<N;le++)x.push(U(D[le]));if(D.length<N)for(let le=D.length;le<N;le++)x.push(null);break}return x}const X={sendNotification:(h,...D)=>{xe();let x,N;if(n.string(h)){x=h;const ce=D[0];let fe=0,d=i.ParameterStructures.auto;i.ParameterStructures.is(ce)&&(fe=1,d=ce);let S=D.length;const M=S-fe;switch(M){case 0:N=void 0;break;case 1:N=pe(d,D[fe]);break;default:if(d===i.ParameterStructures.byName)throw new Error(`Received ${M} parameters for 'by Name' notification parameter structure.`);N=D.slice(fe,S).map(W=>U(W));break}}else{const ce=D;x=h.method,N=me(h,ce)}const le={jsonrpc:He,method:x,params:N};return $n(le),R.write(le).catch(ce=>{throw V.error("Sending notification failed."),ce})},onNotification:(h,D)=>{xe();let x;return n.func(h)?Fe=h:D&&(n.string(h)?(x=h,ot.set(h,{type:void 0,handler:D})):(x=h.method,ot.set(h.method,{type:h,handler:D}))),{dispose:()=>{x!==void 0?ot.delete(x):Fe=void 0}}},onProgress:(h,D,x)=>{if(Je.has(D))throw new Error(`Progress handler for token ${D} already registered`);return Je.set(D,x),{dispose:()=>{Je.delete(D)}}},sendProgress:(h,D,x)=>X.sendNotification(l.type,{token:D,value:x}),onUnhandledProgress:Rt.event,sendRequest:(h,...D)=>{xe(),T();let x,N,le;if(n.string(h)){x=h;const S=D[0],M=D[D.length-1];let W=0,de=i.ParameterStructures.auto;i.ParameterStructures.is(S)&&(W=1,de=S);let be=D.length;o.CancellationToken.is(M)&&(be=be-1,le=M);const Ce=be-W;switch(Ce){case 0:N=void 0;break;case 1:N=pe(de,D[W]);break;default:if(de===i.ParameterStructures.byName)throw new Error(`Received ${Ce} parameters for 'by Name' request parameter structure.`);N=D.slice(W,be).map(En=>U(En));break}}else{const S=D;x=h.method,N=me(h,S);const M=h.numberOfParams;le=o.CancellationToken.is(S[M])?S[M]:void 0}const ce=Ae++;let fe;le&&(fe=le.onCancellationRequested(()=>{const S=qe.sender.sendCancellation(X,ce);return S===void 0?(V.log(`Received no promise from cancellation strategy when cancelling id ${ce}`),Promise.resolve()):S.catch(()=>{V.log(`Sending cancellation messages for id ${ce} failed`)})}));const d={jsonrpc:He,id:ce,method:x,params:N};return In(d),typeof qe.sender.enableCancellation=="function"&&qe.sender.enableCancellation(d),new Promise(async(S,M)=>{const W=Ce=>{S(Ce),qe.sender.cleanup(ce),fe==null||fe.dispose()},de=Ce=>{M(Ce),qe.sender.cleanup(ce),fe==null||fe.dispose()},be={method:x,timerStart:Date.now(),resolve:W,reject:de};try{await R.write(d),Ye.set(ce,be)}catch(Ce){throw V.error("Sending request failed."),be.reject(new i.ResponseError(i.ErrorCodes.MessageWriteError,Ce.message?Ce.message:"Unknown reason")),Ce}})},onRequest:(h,D)=>{xe();let x=null;return g.is(h)?(x=void 0,Ee=h):n.string(h)?(x=null,D!==void 0&&(x=h,st.set(h,{handler:D,type:void 0}))):D!==void 0&&(x=h.method,st.set(h.method,{type:h,handler:D})),{dispose:()=>{x!==null&&(x!==void 0?st.delete(x):Ee=void 0)}}},hasPendingResponse:()=>Ye.size>0,trace:async(h,D,x)=>{let N=!1,le=C.Text;x!==void 0&&(n.boolean(x)?N=x:(N=x.sendNotification||!1,le=x.traceFormat||C.Text)),oe=h,pt=le,oe===p.Off?we=void 0:we=D,N&&!ln()&&!St()&&await X.sendNotification(k.type,{value:p.toString(h)})},onError:en.event,onClose:tn.event,onUnhandledNotification:Wt.event,onDispose:xt.event,end:()=>{R.end()},dispose:()=>{if(St())return;Qe=$.Disposed,xt.fire(void 0);const h=new i.ResponseError(i.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const D of Ye.values())D.reject(h);Ye=new Map,at=new Map,vt=new Set,Xe=new r.LinkedMap,n.func(R.dispose)&&R.dispose(),n.func(v.dispose)&&v.dispose()},listen:()=>{xe(),ut(),Qe=$.Listening,v.listen(Rn)},inspect:()=>{(0,e.default)().console.log("inspect")}};return X.onNotification(A.type,h=>{if(oe===p.Off||!we)return;const D=oe===p.Verbose||oe===p.Compact;we.log(h.message,D?h.verbose:void 0)}),X.onNotification(l.type,h=>{const D=Je.get(h.token);D?D(h.value):Rt.fire(h)}),X}t.createMessageConnection=E})(x2);(function(t){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 e=ge;Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return e.Message}}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return e.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return e.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return e.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return e.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return e.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return e.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return e.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return e.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return e.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return e.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return e.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return e.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return e.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return e.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return e.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return e.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return e.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return e.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return e.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return e.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return e.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return e.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return e.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return e.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return e.ParameterStructures}});const n=ji;Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:function(){return n.LinkedMap}}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:function(){return n.LRUCache}}),Object.defineProperty(t,"Touch",{enumerable:!0,get:function(){return n.Touch}});const i=Ec;Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return i.Disposable}});const r=Ci;Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return r.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return r.Emitter}});const s=vr;Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return s.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return s.CancellationToken}});const o=Rs;Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return o.SharedArraySenderStrategy}}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return o.SharedArrayReceiverStrategy}});const a=sr;Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return a.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return a.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return a.ReadableStreamMessageReader}});const c=or;Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return c.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return c.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return c.WriteableStreamMessageWriter}});const l=Pc;Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:function(){return l.AbstractMessageBuffer}});const f=x2;Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return f.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return f.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return f.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return f.createMessageConnection}}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:function(){return f.ProgressToken}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return f.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return f.Trace}}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:function(){return f.TraceValues}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return f.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return f.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return f.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return f.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return f.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return f.CancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return f.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return f.CancellationStrategy}}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:function(){return f.MessageStrategy}});const g=Gi;t.RAL=g.default})(Ma);Object.defineProperty(J1,"__esModule",{value:!0});const bi=Ma;let I2=class E2 extends bi.AbstractMessageBuffer{constructor(e="utf-8"){super(e),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return E2.emptyBuffer}fromString(e,n){return new TextEncoder().encode(e)}toString(e,n){return n==="ascii"?this.asciiDecoder.decode(e):new TextDecoder(n).decode(e)}asNative(e,n){return n===void 0?e:e.slice(0,n)}allocNative(e){return new Uint8Array(e)}};I2.emptyBuffer=new Uint8Array(0);let r4=class{constructor(e){this.socket=e,this._onData=new bi.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(r=>{this._onData.fire(new Uint8Array(r))},()=>{(0,bi.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(e){return this.socket.addEventListener("close",e),bi.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),bi.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),bi.Disposable.create(()=>this.socket.removeEventListener("end",e))}onData(e){return this._onData.event(e)}},s4=class{constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener("close",e),bi.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),bi.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),bi.Disposable.create(()=>this.socket.removeEventListener("end",e))}write(e,n){if(typeof e=="string"){if(n!==void 0&&n!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${n}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}};const o4=new TextEncoder,P2=Object.freeze({messageBuffer:Object.freeze({create:t=>new I2(t)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(t,e)=>{if(e.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${e.charset}`);return Promise.resolve(o4.encode(JSON.stringify(t,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(t,e)=>{if(!(t instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(e.charset).decode(t)))}})}),stream:Object.freeze({asReadableStream:t=>new r4(t),asWritableStream:t=>new s4(t)}),console,timer:Object.freeze({setTimeout(t,e,...n){const i=setTimeout(t,e,...n);return{dispose:()=>clearTimeout(i)}},setImmediate(t,...e){const n=setTimeout(t,0,...e);return{dispose:()=>clearTimeout(n)}},setInterval(t,e,...n){const i=setInterval(t,e,...n);return{dispose:()=>clearInterval(i)}}})});function Wu(){return P2}(function(t){function e(){bi.RAL.install(P2)}t.install=e})(Wu||(Wu={}));J1.default=Wu;(function(t){var e=_t&&_t.__createBinding||(Object.create?function(c,l,f,g){g===void 0&&(g=f);var p=Object.getOwnPropertyDescriptor(l,f);(!p||("get"in p?!l.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return l[f]}}),Object.defineProperty(c,g,p)}:function(c,l,f,g){g===void 0&&(g=f),c[g]=l[f]}),n=_t&&_t.__exportStar||function(c,l){for(var f in c)f!=="default"&&!Object.prototype.hasOwnProperty.call(l,f)&&e(l,c,f)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.BrowserMessageWriter=t.BrowserMessageReader=void 0,J1.default.install();const r=Ma;n(Ma,t);class s extends r.AbstractMessageReader{constructor(l){super(),this._onData=new r.Emitter,this._messageListener=f=>{this._onData.fire(f.data)},l.addEventListener("error",f=>this.fireError(f)),l.onmessage=this._messageListener}listen(l){return this._onData.event(l)}}t.BrowserMessageReader=s;class o extends r.AbstractMessageWriter{constructor(l){super(),this.port=l,this.errorCount=0,l.addEventListener("error",f=>this.fireError(f))}write(l){try{return this.port.postMessage(l),Promise.resolve()}catch(f){return this.handleError(f,l),Promise.reject(f)}}handleError(l,f){this.errorCount++,this.fireError(l,f,this.errorCount)}end(){}}t.BrowserMessageWriter=o;function a(c,l,f,g){return f===void 0&&(f=r.NullLogger),r.ConnectionStrategy.is(g)&&(g={connectionStrategy:g}),(0,r.createMessageConnection)(c,l,f,g)}t.createMessageConnection=a})(Yr);var qg=Yr,A2={},Uu;(function(t){function e(n){return typeof n=="string"}t.is=e})(Uu||(Uu={}));var Fa;(function(t){function e(n){return typeof n=="string"}t.is=e})(Fa||(Fa={}));var zu;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(zu||(zu={}));var Eo;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(Eo||(Eo={}));var Xn;(function(t){function e(i,r){return i===Number.MAX_VALUE&&(i=Eo.MAX_VALUE),r===Number.MAX_VALUE&&(r=Eo.MAX_VALUE),{line:i,character:r}}t.create=e;function n(i){let r=i;return O.objectLiteral(r)&&O.uinteger(r.line)&&O.uinteger(r.character)}t.is=n})(Xn||(Xn={}));var Ot;(function(t){function e(i,r,s,o){if(O.uinteger(i)&&O.uinteger(r)&&O.uinteger(s)&&O.uinteger(o))return{start:Xn.create(i,r),end:Xn.create(s,o)};if(Xn.is(i)&&Xn.is(r))return{start:i,end:r};throw new Error(`Range#create called with invalid arguments[${i}, ${r}, ${s}, ${o}]`)}t.create=e;function n(i){let r=i;return O.objectLiteral(r)&&Xn.is(r.start)&&Xn.is(r.end)}t.is=n})(Ot||(Ot={}));var Po;(function(t){function e(i,r){return{uri:i,range:r}}t.create=e;function n(i){let r=i;return O.objectLiteral(r)&&Ot.is(r.range)&&(O.string(r.uri)||O.undefined(r.uri))}t.is=n})(Po||(Po={}));var Bu;(function(t){function e(i,r,s,o){return{targetUri:i,targetRange:r,targetSelectionRange:s,originSelectionRange:o}}t.create=e;function n(i){let r=i;return O.objectLiteral(r)&&Ot.is(r.targetRange)&&O.string(r.targetUri)&&Ot.is(r.targetSelectionRange)&&(Ot.is(r.originSelectionRange)||O.undefined(r.originSelectionRange))}t.is=n})(Bu||(Bu={}));var La;(function(t){function e(i,r,s,o){return{red:i,green:r,blue:s,alpha:o}}t.create=e;function n(i){const r=i;return O.objectLiteral(r)&&O.numberRange(r.red,0,1)&&O.numberRange(r.green,0,1)&&O.numberRange(r.blue,0,1)&&O.numberRange(r.alpha,0,1)}t.is=n})(La||(La={}));var Vu;(function(t){function e(i,r){return{range:i,color:r}}t.create=e;function n(i){const r=i;return O.objectLiteral(r)&&Ot.is(r.range)&&La.is(r.color)}t.is=n})(Vu||(Vu={}));var Ku;(function(t){function e(i,r,s){return{label:i,textEdit:r,additionalTextEdits:s}}t.create=e;function n(i){const r=i;return O.objectLiteral(r)&&O.string(r.label)&&(O.undefined(r.textEdit)||wi.is(r))&&(O.undefined(r.additionalTextEdits)||O.typedArray(r.additionalTextEdits,wi.is))}t.is=n})(Ku||(Ku={}));var Gu;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Gu||(Gu={}));var Ju;(function(t){function e(i,r,s,o,a,c){const l={startLine:i,endLine:r};return O.defined(s)&&(l.startCharacter=s),O.defined(o)&&(l.endCharacter=o),O.defined(a)&&(l.kind=a),O.defined(c)&&(l.collapsedText=c),l}t.create=e;function n(i){const r=i;return O.objectLiteral(r)&&O.uinteger(r.startLine)&&O.uinteger(r.startLine)&&(O.undefined(r.startCharacter)||O.uinteger(r.startCharacter))&&(O.undefined(r.endCharacter)||O.uinteger(r.endCharacter))&&(O.undefined(r.kind)||O.string(r.kind))}t.is=n})(Ju||(Ju={}));var Na;(function(t){function e(i,r){return{location:i,message:r}}t.create=e;function n(i){let r=i;return O.defined(r)&&Po.is(r.location)&&O.string(r.message)}t.is=n})(Na||(Na={}));var Xu;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Xu||(Xu={}));var Zu;(function(t){t.Unnecessary=1,t.Deprecated=2})(Zu||(Zu={}));var Yu;(function(t){function e(n){const i=n;return O.objectLiteral(i)&&O.string(i.href)}t.is=e})(Yu||(Yu={}));var Ao;(function(t){function e(i,r,s,o,a,c){let l={range:i,message:r};return O.defined(s)&&(l.severity=s),O.defined(o)&&(l.code=o),O.defined(a)&&(l.source=a),O.defined(c)&&(l.relatedInformation=c),l}t.create=e;function n(i){var r;let s=i;return O.defined(s)&&Ot.is(s.range)&&O.string(s.message)&&(O.number(s.severity)||O.undefined(s.severity))&&(O.integer(s.code)||O.string(s.code)||O.undefined(s.code))&&(O.undefined(s.codeDescription)||O.string((r=s.codeDescription)===null||r===void 0?void 0:r.href))&&(O.string(s.source)||O.undefined(s.source))&&(O.undefined(s.relatedInformation)||O.typedArray(s.relatedInformation,Na.is))}t.is=n})(Ao||(Ao={}));var Jr;(function(t){function e(i,r,...s){let o={title:i,command:r};return O.defined(s)&&s.length>0&&(o.arguments=s),o}t.create=e;function n(i){let r=i;return O.defined(r)&&O.string(r.title)&&O.string(r.command)}t.is=n})(Jr||(Jr={}));var wi;(function(t){function e(s,o){return{range:s,newText:o}}t.replace=e;function n(s,o){return{range:{start:s,end:s},newText:o}}t.insert=n;function i(s){return{range:s,newText:""}}t.del=i;function r(s){const o=s;return O.objectLiteral(o)&&O.string(o.newText)&&Ot.is(o.range)}t.is=r})(wi||(wi={}));var Wr;(function(t){function e(i,r,s){const o={label:i};return r!==void 0&&(o.needsConfirmation=r),s!==void 0&&(o.description=s),o}t.create=e;function n(i){const r=i;return O.objectLiteral(r)&&O.string(r.label)&&(O.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(O.string(r.description)||r.description===void 0)}t.is=n})(Wr||(Wr={}));var an;(function(t){function e(n){const i=n;return O.string(i)}t.is=e})(an||(an={}));var Mi;(function(t){function e(s,o,a){return{range:s,newText:o,annotationId:a}}t.replace=e;function n(s,o,a){return{range:{start:s,end:s},newText:o,annotationId:a}}t.insert=n;function i(s,o){return{range:s,newText:"",annotationId:o}}t.del=i;function r(s){const o=s;return wi.is(o)&&(Wr.is(o.annotationId)||an.is(o.annotationId))}t.is=r})(Mi||(Mi={}));var Mo;(function(t){function e(i,r){return{textDocument:i,edits:r}}t.create=e;function n(i){let r=i;return O.defined(r)&&Oo.is(r.textDocument)&&Array.isArray(r.edits)}t.is=n})(Mo||(Mo={}));var xs;(function(t){function e(i,r,s){let o={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(o.options=r),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(i){let r=i;return r&&r.kind==="create"&&O.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||O.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||O.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||an.is(r.annotationId))}t.is=n})(xs||(xs={}));var Is;(function(t){function e(i,r,s,o){let a={kind:"rename",oldUri:i,newUri:r};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(a.options=s),o!==void 0&&(a.annotationId=o),a}t.create=e;function n(i){let r=i;return r&&r.kind==="rename"&&O.string(r.oldUri)&&O.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||O.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||O.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||an.is(r.annotationId))}t.is=n})(Is||(Is={}));var Es;(function(t){function e(i,r,s){let o={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(o.options=r),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(i){let r=i;return r&&r.kind==="delete"&&O.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||O.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||O.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||an.is(r.annotationId))}t.is=n})(Es||(Es={}));var $a;(function(t){function e(n){let i=n;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(r=>O.string(r.kind)?xs.is(r)||Is.is(r)||Es.is(r):Mo.is(r)))}t.is=e})($a||($a={}));class fa{constructor(e,n){this.edits=e,this.changeAnnotations=n}insert(e,n,i){let r,s;if(i===void 0?r=wi.insert(e,n):an.is(i)?(s=i,r=Mi.insert(e,n,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),r=Mi.insert(e,n,s)),this.edits.push(r),s!==void 0)return s}replace(e,n,i){let r,s;if(i===void 0?r=wi.replace(e,n):an.is(i)?(s=i,r=Mi.replace(e,n,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),r=Mi.replace(e,n,s)),this.edits.push(r),s!==void 0)return s}delete(e,n){let i,r;if(n===void 0?i=wi.del(e):an.is(n)?(r=n,i=Mi.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),i=Mi.del(e,r)),this.edits.push(i),r!==void 0)return r}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}}class jg{constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,n){let i;if(an.is(e)?i=e:(i=this.nextId(),n=e),this._annotations[i]!==void 0)throw new Error(`Id ${i} is already in use.`);if(n===void 0)throw new Error(`No annotation provided for id ${i}`);return this._annotations[i]=n,this._size++,i}nextId(){return this._counter++,this._counter.toString()}}class a4{constructor(e){this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new jg(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(n=>{if(Mo.is(n)){const i=new fa(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(n=>{const i=new fa(e.changes[n]);this._textEditChanges[n]=i})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(Oo.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const n={uri:e.uri,version:e.version};let i=this._textEditChanges[n.uri];if(!i){const r=[],s={textDocument:n,edits:r};this._workspaceEdit.documentChanges.push(s),i=new fa(r,this._changeAnnotations),this._textEditChanges[n.uri]=i}return i}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let n=this._textEditChanges[e];if(!n){let i=[];this._workspaceEdit.changes[e]=i,n=new fa(i),this._textEditChanges[e]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new jg,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,n,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let r;Wr.is(n)||an.is(n)?r=n:i=n;let s,o;if(r===void 0?s=xs.create(e,i):(o=an.is(r)?r:this._changeAnnotations.manage(r),s=xs.create(e,i,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o}renameFile(e,n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let s;Wr.is(i)||an.is(i)?s=i:r=i;let o,a;if(s===void 0?o=Is.create(e,n,r):(a=an.is(s)?s:this._changeAnnotations.manage(s),o=Is.create(e,n,r,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a}deleteFile(e,n,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let r;Wr.is(n)||an.is(n)?r=n:i=n;let s,o;if(r===void 0?s=Es.create(e,i):(o=an.is(r)?r:this._changeAnnotations.manage(r),s=Es.create(e,i,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o}}var Qu;(function(t){function e(i){return{uri:i}}t.create=e;function n(i){let r=i;return O.defined(r)&&O.string(r.uri)}t.is=n})(Qu||(Qu={}));var ed;(function(t){function e(i,r){return{uri:i,version:r}}t.create=e;function n(i){let r=i;return O.defined(r)&&O.string(r.uri)&&O.integer(r.version)}t.is=n})(ed||(ed={}));var Oo;(function(t){function e(i,r){return{uri:i,version:r}}t.create=e;function n(i){let r=i;return O.defined(r)&&O.string(r.uri)&&(r.version===null||O.integer(r.version))}t.is=n})(Oo||(Oo={}));var td;(function(t){function e(i,r,s,o){return{uri:i,languageId:r,version:s,text:o}}t.create=e;function n(i){let r=i;return O.defined(r)&&O.string(r.uri)&&O.string(r.languageId)&&O.integer(r.version)&&O.string(r.text)}t.is=n})(td||(td={}));var qa;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){const i=n;return i===t.PlainText||i===t.Markdown}t.is=e})(qa||(qa={}));var Ps;(function(t){function e(n){const i=n;return O.objectLiteral(n)&&qa.is(i.kind)&&O.string(i.value)}t.is=e})(Ps||(Ps={}));var nd;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(nd||(nd={}));var id;(function(t){t.PlainText=1,t.Snippet=2})(id||(id={}));var rd;(function(t){t.Deprecated=1})(rd||(rd={}));var sd;(function(t){function e(i,r,s){return{newText:i,insert:r,replace:s}}t.create=e;function n(i){const r=i;return r&&O.string(r.newText)&&Ot.is(r.insert)&&Ot.is(r.replace)}t.is=n})(sd||(sd={}));var od;(function(t){t.asIs=1,t.adjustIndentation=2})(od||(od={}));var ad;(function(t){function e(n){const i=n;return i&&(O.string(i.detail)||i.detail===void 0)&&(O.string(i.description)||i.description===void 0)}t.is=e})(ad||(ad={}));var cd;(function(t){function e(n){return{label:n}}t.create=e})(cd||(cd={}));var ld;(function(t){function e(n,i){return{items:n||[],isIncomplete:!!i}}t.create=e})(ld||(ld={}));var Fo;(function(t){function e(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(i){const r=i;return O.string(r)||O.objectLiteral(r)&&O.string(r.language)&&O.string(r.value)}t.is=n})(Fo||(Fo={}));var ud;(function(t){function e(n){let i=n;return!!i&&O.objectLiteral(i)&&(Ps.is(i.contents)||Fo.is(i.contents)||O.typedArray(i.contents,Fo.is))&&(n.range===void 0||Ot.is(n.range))}t.is=e})(ud||(ud={}));var dd;(function(t){function e(n,i){return i?{label:n,documentation:i}:{label:n}}t.create=e})(dd||(dd={}));var fd;(function(t){function e(n,i,...r){let s={label:n};return O.defined(i)&&(s.documentation=i),O.defined(r)?s.parameters=r:s.parameters=[],s}t.create=e})(fd||(fd={}));var hd;(function(t){t.Text=1,t.Read=2,t.Write=3})(hd||(hd={}));var gd;(function(t){function e(n,i){let r={range:n};return O.number(i)&&(r.kind=i),r}t.create=e})(gd||(gd={}));var pd;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(pd||(pd={}));var md;(function(t){t.Deprecated=1})(md||(md={}));var yd;(function(t){function e(n,i,r,s,o){let a={name:n,kind:i,location:{uri:s,range:r}};return o&&(a.containerName=o),a}t.create=e})(yd||(yd={}));var bd;(function(t){function e(n,i,r,s){return s!==void 0?{name:n,kind:i,location:{uri:r,range:s}}:{name:n,kind:i,location:{uri:r}}}t.create=e})(bd||(bd={}));var vd;(function(t){function e(i,r,s,o,a,c){let l={name:i,detail:r,kind:s,range:o,selectionRange:a};return c!==void 0&&(l.children=c),l}t.create=e;function n(i){let r=i;return r&&O.string(r.name)&&O.number(r.kind)&&Ot.is(r.range)&&Ot.is(r.selectionRange)&&(r.detail===void 0||O.string(r.detail))&&(r.deprecated===void 0||O.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}t.is=n})(vd||(vd={}));var wd;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(wd||(wd={}));var Lo;(function(t){t.Invoked=1,t.Automatic=2})(Lo||(Lo={}));var Cd;(function(t){function e(i,r,s){let o={diagnostics:i};return r!=null&&(o.only=r),s!=null&&(o.triggerKind=s),o}t.create=e;function n(i){let r=i;return O.defined(r)&&O.typedArray(r.diagnostics,Ao.is)&&(r.only===void 0||O.typedArray(r.only,O.string))&&(r.triggerKind===void 0||r.triggerKind===Lo.Invoked||r.triggerKind===Lo.Automatic)}t.is=n})(Cd||(Cd={}));var _d;(function(t){function e(i,r,s){let o={title:i},a=!0;return typeof r=="string"?(a=!1,o.kind=r):Jr.is(r)?o.command=r:o.edit=r,a&&s!==void 0&&(o.kind=s),o}t.create=e;function n(i){let r=i;return r&&O.string(r.title)&&(r.diagnostics===void 0||O.typedArray(r.diagnostics,Ao.is))&&(r.kind===void 0||O.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||Jr.is(r.command))&&(r.isPreferred===void 0||O.boolean(r.isPreferred))&&(r.edit===void 0||$a.is(r.edit))}t.is=n})(_d||(_d={}));var Sd;(function(t){function e(i,r){let s={range:i};return O.defined(r)&&(s.data=r),s}t.create=e;function n(i){let r=i;return O.defined(r)&&Ot.is(r.range)&&(O.undefined(r.command)||Jr.is(r.command))}t.is=n})(Sd||(Sd={}));var Dd;(function(t){function e(i,r){return{tabSize:i,insertSpaces:r}}t.create=e;function n(i){let r=i;return O.defined(r)&&O.uinteger(r.tabSize)&&O.boolean(r.insertSpaces)}t.is=n})(Dd||(Dd={}));var Td;(function(t){function e(i,r,s){return{range:i,target:r,data:s}}t.create=e;function n(i){let r=i;return O.defined(r)&&Ot.is(r.range)&&(O.undefined(r.target)||O.string(r.target))}t.is=n})(Td||(Td={}));var kd;(function(t){function e(i,r){return{range:i,parent:r}}t.create=e;function n(i){let r=i;return O.objectLiteral(r)&&Ot.is(r.range)&&(r.parent===void 0||t.is(r.parent))}t.is=n})(kd||(kd={}));var Rd;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(Rd||(Rd={}));var xd;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(xd||(xd={}));var Id;(function(t){function e(n){const i=n;return O.objectLiteral(i)&&(i.resultId===void 0||typeof i.resultId=="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]=="number")}t.is=e})(Id||(Id={}));var Ed;(function(t){function e(i,r){return{range:i,text:r}}t.create=e;function n(i){const r=i;return r!=null&&Ot.is(r.range)&&O.string(r.text)}t.is=n})(Ed||(Ed={}));var Pd;(function(t){function e(i,r,s){return{range:i,variableName:r,caseSensitiveLookup:s}}t.create=e;function n(i){const r=i;return r!=null&&Ot.is(r.range)&&O.boolean(r.caseSensitiveLookup)&&(O.string(r.variableName)||r.variableName===void 0)}t.is=n})(Pd||(Pd={}));var Ad;(function(t){function e(i,r){return{range:i,expression:r}}t.create=e;function n(i){const r=i;return r!=null&&Ot.is(r.range)&&(O.string(r.expression)||r.expression===void 0)}t.is=n})(Ad||(Ad={}));var Md;(function(t){function e(i,r){return{frameId:i,stoppedLocation:r}}t.create=e;function n(i){const r=i;return O.defined(r)&&Ot.is(i.stoppedLocation)}t.is=n})(Md||(Md={}));var ja;(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}t.is=e})(ja||(ja={}));var Ha;(function(t){function e(i){return{value:i}}t.create=e;function n(i){const r=i;return O.objectLiteral(r)&&(r.tooltip===void 0||O.string(r.tooltip)||Ps.is(r.tooltip))&&(r.location===void 0||Po.is(r.location))&&(r.command===void 0||Jr.is(r.command))}t.is=n})(Ha||(Ha={}));var Od;(function(t){function e(i,r,s){const o={position:i,label:r};return s!==void 0&&(o.kind=s),o}t.create=e;function n(i){const r=i;return O.objectLiteral(r)&&Xn.is(r.position)&&(O.string(r.label)||O.typedArray(r.label,Ha.is))&&(r.kind===void 0||ja.is(r.kind))&&r.textEdits===void 0||O.typedArray(r.textEdits,wi.is)&&(r.tooltip===void 0||O.string(r.tooltip)||Ps.is(r.tooltip))&&(r.paddingLeft===void 0||O.boolean(r.paddingLeft))&&(r.paddingRight===void 0||O.boolean(r.paddingRight))}t.is=n})(Od||(Od={}));var Fd;(function(t){function e(n){return{kind:"snippet",value:n}}t.createSnippet=e})(Fd||(Fd={}));var Ld;(function(t){function e(n,i,r,s){return{insertText:n,filterText:i,range:r,command:s}}t.create=e})(Ld||(Ld={}));var Nd;(function(t){function e(n){return{items:n}}t.create=e})(Nd||(Nd={}));var $d;(function(t){t.Invoked=0,t.Automatic=1})($d||($d={}));var qd;(function(t){function e(n,i){return{range:n,text:i}}t.create=e})(qd||(qd={}));var jd;(function(t){function e(n,i){return{triggerKind:n,selectedCompletionInfo:i}}t.create=e})(jd||(jd={}));var Hd;(function(t){function e(n){const i=n;return O.objectLiteral(i)&&Fa.is(i.uri)&&O.string(i.name)}t.is=e})(Hd||(Hd={}));const c4=[`
|
|
60
76
|
`,`\r
|
|
61
|
-
`,"\r"];var
|
|
62
|
-
`,s==="\r"&&
|
|
63
|
-
`&&i++}r&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Jn.create(0,e);for(;r<i;){let o=Math.floor((r+i)/2);n[o]>e?i=o:r=o+1}let s=r-1;return Jn.create(s,e-n[s])}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let r=n[e.line],i=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(r+e.character,i),r)}get lineCount(){return this.getLineOffsets().length}}var A;(function(t){const e=Object.prototype.toString;function n(_){return typeof _<"u"}t.defined=n;function r(_){return typeof _>"u"}t.undefined=r;function i(_){return _===!0||_===!1}t.boolean=i;function s(_){return e.call(_)==="[object String]"}t.string=s;function o(_){return e.call(_)==="[object Number]"}t.number=o;function a(_,C,k){return e.call(_)==="[object Number]"&&C<=_&&_<=k}t.numberRange=a;function c(_){return e.call(_)==="[object Number]"&&-2147483648<=_&&_<=2147483647}t.integer=c;function l(_){return e.call(_)==="[object Number]"&&0<=_&&_<=2147483647}t.uinteger=l;function f(_){return e.call(_)==="[object Function]"}t.func=f;function p(_){return _!==null&&typeof _=="object"}t.objectLiteral=p;function g(_,C){return Array.isArray(_)&&_.every(C)}t.typedArray=g})(A||(A={}));const n4=Object.freeze(Object.defineProperty({__proto__:null,get AnnotatedTextEdit(){return Or},get ChangeAnnotation(){return Wi},get ChangeAnnotationIdentifier(){return an},get CodeAction(){return Cd},get CodeActionContext(){return wd},get CodeActionKind(){return vd},get CodeActionTriggerKind(){return Lo},get CodeDescription(){return Yu},get CodeLens(){return _d},get Color(){return La},get ColorInformation(){return Bu},get ColorPresentation(){return Vu},get Command(){return Qi},get CompletionItem(){return ad},get CompletionItemKind(){return td},get CompletionItemLabelDetails(){return od},get CompletionItemTag(){return rd},get CompletionList(){return cd},get CreateFile(){return xs},get DeleteFile(){return Ps},get Diagnostic(){return Mo},get DiagnosticRelatedInformation(){return Na},get DiagnosticSeverity(){return Qu},get DiagnosticTag(){return Ju},get DocumentHighlight(){return hd},get DocumentHighlightKind(){return fd},get DocumentLink(){return Dd},get DocumentSymbol(){return bd},get DocumentUri(){return Wu},EOL:e4,get FoldingRange(){return Gu},get FoldingRangeKind(){return Ku},get FormattingOptions(){return Sd},get Hover(){return ld},get InlayHint(){return Od},get InlayHintKind(){return ja},get InlayHintLabelPart(){return Ha},get InlineCompletionContext(){return qd},get InlineCompletionItem(){return Fd},get InlineCompletionList(){return Ld},get InlineCompletionTriggerKind(){return Nd},get InlineValueContext(){return Md},get InlineValueEvaluatableExpression(){return Id},get InlineValueText(){return Ed},get InlineValueVariableLookup(){return Pd},get InsertReplaceEdit(){return id},get InsertTextFormat(){return nd},get InsertTextMode(){return sd},get Location(){return Io},get LocationLink(){return zu},get MarkedString(){return Fo},get MarkupContent(){return Is},get MarkupKind(){return qa},get OptionalVersionedTextDocumentIdentifier(){return Ao},get ParameterInformation(){return ud},get Position(){return Jn},get Range(){return At},get RenameFile(){return Es},get SelectedCompletionInfo(){return $d},get SelectionRange(){return Td},get SemanticTokenModifiers(){return Rd},get SemanticTokenTypes(){return kd},get SemanticTokens(){return xd},get SignatureInformation(){return dd},get StringValue(){return Ad},get SymbolInformation(){return md},get SymbolKind(){return pd},get SymbolTag(){return gd},get TextDocument(){return Hd},get TextDocumentEdit(){return Oo},get TextDocumentIdentifier(){return Xu},get TextDocumentItem(){return ed},get TextEdit(){return wr},get URI(){return Fa},get VersionedTextDocumentIdentifier(){return Zu},WorkspaceChange:Zb,get WorkspaceEdit(){return $a},get WorkspaceFolder(){return jd},get WorkspaceSymbol(){return yd},get integer(){return Uu},get uinteger(){return Po}},Symbol.toStringTag,{value:"Module"})),J1=y2(n4);var ze={};Object.defineProperty(ze,"__esModule",{value:!0});ze.ProtocolNotificationType=ze.ProtocolNotificationType0=ze.ProtocolRequestType=ze.ProtocolRequestType0=ze.RegistrationType=ze.MessageDirection=void 0;const Ms=Xi;var qp;(function(t){t.clientToServer="clientToServer",t.serverToClient="serverToClient",t.both="both"})(qp||(ze.MessageDirection=qp={}));class r4{constructor(e){this.method=e}}ze.RegistrationType=r4;class i4 extends Ms.RequestType0{constructor(e){super(e)}}ze.ProtocolRequestType0=i4;class s4 extends Ms.RequestType{constructor(e){super(e,Ms.ParameterStructures.byName)}}ze.ProtocolRequestType=s4;class o4 extends Ms.NotificationType0{constructor(e){super(e)}}ze.ProtocolNotificationType0=o4;class a4 extends Ms.NotificationType{constructor(e){super(e,Ms.ParameterStructures.byName)}}ze.ProtocolNotificationType=a4;var I2={},Mt={};Object.defineProperty(Mt,"__esModule",{value:!0});Mt.objectLiteral=Mt.typedArray=Mt.stringArray=Mt.array=Mt.func=Mt.error=Mt.number=Mt.string=Mt.boolean=void 0;function c4(t){return t===!0||t===!1}Mt.boolean=c4;function M2(t){return typeof t=="string"||t instanceof String}Mt.string=M2;function l4(t){return typeof t=="number"||t instanceof Number}Mt.number=l4;function u4(t){return t instanceof Error}Mt.error=u4;function d4(t){return typeof t=="function"}Mt.func=d4;function O2(t){return Array.isArray(t)}Mt.array=O2;function f4(t){return O2(t)&&t.every(e=>M2(e))}Mt.stringArray=f4;function h4(t,e){return Array.isArray(t)&&t.every(e)}Mt.typedArray=h4;function p4(t){return t!==null&&typeof t=="object"}Mt.objectLiteral=p4;var Mc={};Object.defineProperty(Mc,"__esModule",{value:!0});Mc.ImplementationRequest=void 0;const jp=ze;var Hp;(function(t){t.method="textDocument/implementation",t.messageDirection=jp.MessageDirection.clientToServer,t.type=new jp.ProtocolRequestType(t.method)})(Hp||(Mc.ImplementationRequest=Hp={}));var Oc={};Object.defineProperty(Oc,"__esModule",{value:!0});Oc.TypeDefinitionRequest=void 0;const Wp=ze;var Up;(function(t){t.method="textDocument/typeDefinition",t.messageDirection=Wp.MessageDirection.clientToServer,t.type=new Wp.ProtocolRequestType(t.method)})(Up||(Oc.TypeDefinitionRequest=Up={}));var Os={};Object.defineProperty(Os,"__esModule",{value:!0});Os.DidChangeWorkspaceFoldersNotification=Os.WorkspaceFoldersRequest=void 0;const Wa=ze;var zp;(function(t){t.method="workspace/workspaceFolders",t.messageDirection=Wa.MessageDirection.serverToClient,t.type=new Wa.ProtocolRequestType0(t.method)})(zp||(Os.WorkspaceFoldersRequest=zp={}));var Bp;(function(t){t.method="workspace/didChangeWorkspaceFolders",t.messageDirection=Wa.MessageDirection.clientToServer,t.type=new Wa.ProtocolNotificationType(t.method)})(Bp||(Os.DidChangeWorkspaceFoldersNotification=Bp={}));var Ac={};Object.defineProperty(Ac,"__esModule",{value:!0});Ac.ConfigurationRequest=void 0;const Vp=ze;var Kp;(function(t){t.method="workspace/configuration",t.messageDirection=Vp.MessageDirection.serverToClient,t.type=new Vp.ProtocolRequestType(t.method)})(Kp||(Ac.ConfigurationRequest=Kp={}));var As={};Object.defineProperty(As,"__esModule",{value:!0});As.ColorPresentationRequest=As.DocumentColorRequest=void 0;const Ua=ze;var Gp;(function(t){t.method="textDocument/documentColor",t.messageDirection=Ua.MessageDirection.clientToServer,t.type=new Ua.ProtocolRequestType(t.method)})(Gp||(As.DocumentColorRequest=Gp={}));var Qp;(function(t){t.method="textDocument/colorPresentation",t.messageDirection=Ua.MessageDirection.clientToServer,t.type=new Ua.ProtocolRequestType(t.method)})(Qp||(As.ColorPresentationRequest=Qp={}));var Fs={};Object.defineProperty(Fs,"__esModule",{value:!0});Fs.FoldingRangeRefreshRequest=Fs.FoldingRangeRequest=void 0;const za=ze;var Jp;(function(t){t.method="textDocument/foldingRange",t.messageDirection=za.MessageDirection.clientToServer,t.type=new za.ProtocolRequestType(t.method)})(Jp||(Fs.FoldingRangeRequest=Jp={}));var Yp;(function(t){t.method="workspace/foldingRange/refresh",t.messageDirection=za.MessageDirection.serverToClient,t.type=new za.ProtocolRequestType0(t.method)})(Yp||(Fs.FoldingRangeRefreshRequest=Yp={}));var Fc={};Object.defineProperty(Fc,"__esModule",{value:!0});Fc.DeclarationRequest=void 0;const Xp=ze;var Zp;(function(t){t.method="textDocument/declaration",t.messageDirection=Xp.MessageDirection.clientToServer,t.type=new Xp.ProtocolRequestType(t.method)})(Zp||(Fc.DeclarationRequest=Zp={}));var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});Lc.SelectionRangeRequest=void 0;const eg=ze;var tg;(function(t){t.method="textDocument/selectionRange",t.messageDirection=eg.MessageDirection.clientToServer,t.type=new eg.ProtocolRequestType(t.method)})(tg||(Lc.SelectionRangeRequest=tg={}));var ai={};Object.defineProperty(ai,"__esModule",{value:!0});ai.WorkDoneProgressCancelNotification=ai.WorkDoneProgressCreateRequest=ai.WorkDoneProgress=void 0;const g4=Xi,Ba=ze;var ng;(function(t){t.type=new g4.ProgressType;function e(n){return n===t.type}t.is=e})(ng||(ai.WorkDoneProgress=ng={}));var rg;(function(t){t.method="window/workDoneProgress/create",t.messageDirection=Ba.MessageDirection.serverToClient,t.type=new Ba.ProtocolRequestType(t.method)})(rg||(ai.WorkDoneProgressCreateRequest=rg={}));var ig;(function(t){t.method="window/workDoneProgress/cancel",t.messageDirection=Ba.MessageDirection.clientToServer,t.type=new Ba.ProtocolNotificationType(t.method)})(ig||(ai.WorkDoneProgressCancelNotification=ig={}));var ci={};Object.defineProperty(ci,"__esModule",{value:!0});ci.CallHierarchyOutgoingCallsRequest=ci.CallHierarchyIncomingCallsRequest=ci.CallHierarchyPrepareRequest=void 0;const Ls=ze;var sg;(function(t){t.method="textDocument/prepareCallHierarchy",t.messageDirection=Ls.MessageDirection.clientToServer,t.type=new Ls.ProtocolRequestType(t.method)})(sg||(ci.CallHierarchyPrepareRequest=sg={}));var og;(function(t){t.method="callHierarchy/incomingCalls",t.messageDirection=Ls.MessageDirection.clientToServer,t.type=new Ls.ProtocolRequestType(t.method)})(og||(ci.CallHierarchyIncomingCallsRequest=og={}));var ag;(function(t){t.method="callHierarchy/outgoingCalls",t.messageDirection=Ls.MessageDirection.clientToServer,t.type=new Ls.ProtocolRequestType(t.method)})(ag||(ci.CallHierarchyOutgoingCallsRequest=ag={}));var On={};Object.defineProperty(On,"__esModule",{value:!0});On.SemanticTokensRefreshRequest=On.SemanticTokensRangeRequest=On.SemanticTokensDeltaRequest=On.SemanticTokensRequest=On.SemanticTokensRegistrationType=On.TokenFormat=void 0;const Vr=ze;var cg;(function(t){t.Relative="relative"})(cg||(On.TokenFormat=cg={}));var No;(function(t){t.method="textDocument/semanticTokens",t.type=new Vr.RegistrationType(t.method)})(No||(On.SemanticTokensRegistrationType=No={}));var lg;(function(t){t.method="textDocument/semanticTokens/full",t.messageDirection=Vr.MessageDirection.clientToServer,t.type=new Vr.ProtocolRequestType(t.method),t.registrationMethod=No.method})(lg||(On.SemanticTokensRequest=lg={}));var ug;(function(t){t.method="textDocument/semanticTokens/full/delta",t.messageDirection=Vr.MessageDirection.clientToServer,t.type=new Vr.ProtocolRequestType(t.method),t.registrationMethod=No.method})(ug||(On.SemanticTokensDeltaRequest=ug={}));var dg;(function(t){t.method="textDocument/semanticTokens/range",t.messageDirection=Vr.MessageDirection.clientToServer,t.type=new Vr.ProtocolRequestType(t.method),t.registrationMethod=No.method})(dg||(On.SemanticTokensRangeRequest=dg={}));var fg;(function(t){t.method="workspace/semanticTokens/refresh",t.messageDirection=Vr.MessageDirection.serverToClient,t.type=new Vr.ProtocolRequestType0(t.method)})(fg||(On.SemanticTokensRefreshRequest=fg={}));var Nc={};Object.defineProperty(Nc,"__esModule",{value:!0});Nc.ShowDocumentRequest=void 0;const hg=ze;var pg;(function(t){t.method="window/showDocument",t.messageDirection=hg.MessageDirection.serverToClient,t.type=new hg.ProtocolRequestType(t.method)})(pg||(Nc.ShowDocumentRequest=pg={}));var $c={};Object.defineProperty($c,"__esModule",{value:!0});$c.LinkedEditingRangeRequest=void 0;const gg=ze;var mg;(function(t){t.method="textDocument/linkedEditingRange",t.messageDirection=gg.MessageDirection.clientToServer,t.type=new gg.ProtocolRequestType(t.method)})(mg||($c.LinkedEditingRangeRequest=mg={}));var hn={};Object.defineProperty(hn,"__esModule",{value:!0});hn.WillDeleteFilesRequest=hn.DidDeleteFilesNotification=hn.DidRenameFilesNotification=hn.WillRenameFilesRequest=hn.DidCreateFilesNotification=hn.WillCreateFilesRequest=hn.FileOperationPatternKind=void 0;const Zn=ze;var yg;(function(t){t.file="file",t.folder="folder"})(yg||(hn.FileOperationPatternKind=yg={}));var bg;(function(t){t.method="workspace/willCreateFiles",t.messageDirection=Zn.MessageDirection.clientToServer,t.type=new Zn.ProtocolRequestType(t.method)})(bg||(hn.WillCreateFilesRequest=bg={}));var vg;(function(t){t.method="workspace/didCreateFiles",t.messageDirection=Zn.MessageDirection.clientToServer,t.type=new Zn.ProtocolNotificationType(t.method)})(vg||(hn.DidCreateFilesNotification=vg={}));var wg;(function(t){t.method="workspace/willRenameFiles",t.messageDirection=Zn.MessageDirection.clientToServer,t.type=new Zn.ProtocolRequestType(t.method)})(wg||(hn.WillRenameFilesRequest=wg={}));var Cg;(function(t){t.method="workspace/didRenameFiles",t.messageDirection=Zn.MessageDirection.clientToServer,t.type=new Zn.ProtocolNotificationType(t.method)})(Cg||(hn.DidRenameFilesNotification=Cg={}));var _g;(function(t){t.method="workspace/didDeleteFiles",t.messageDirection=Zn.MessageDirection.clientToServer,t.type=new Zn.ProtocolNotificationType(t.method)})(_g||(hn.DidDeleteFilesNotification=_g={}));var Sg;(function(t){t.method="workspace/willDeleteFiles",t.messageDirection=Zn.MessageDirection.clientToServer,t.type=new Zn.ProtocolRequestType(t.method)})(Sg||(hn.WillDeleteFilesRequest=Sg={}));var li={};Object.defineProperty(li,"__esModule",{value:!0});li.MonikerRequest=li.MonikerKind=li.UniquenessLevel=void 0;const Dg=ze;var Tg;(function(t){t.document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global"})(Tg||(li.UniquenessLevel=Tg={}));var kg;(function(t){t.$import="import",t.$export="export",t.local="local"})(kg||(li.MonikerKind=kg={}));var Rg;(function(t){t.method="textDocument/moniker",t.messageDirection=Dg.MessageDirection.clientToServer,t.type=new Dg.ProtocolRequestType(t.method)})(Rg||(li.MonikerRequest=Rg={}));var ui={};Object.defineProperty(ui,"__esModule",{value:!0});ui.TypeHierarchySubtypesRequest=ui.TypeHierarchySupertypesRequest=ui.TypeHierarchyPrepareRequest=void 0;const Ns=ze;var xg;(function(t){t.method="textDocument/prepareTypeHierarchy",t.messageDirection=Ns.MessageDirection.clientToServer,t.type=new Ns.ProtocolRequestType(t.method)})(xg||(ui.TypeHierarchyPrepareRequest=xg={}));var Eg;(function(t){t.method="typeHierarchy/supertypes",t.messageDirection=Ns.MessageDirection.clientToServer,t.type=new Ns.ProtocolRequestType(t.method)})(Eg||(ui.TypeHierarchySupertypesRequest=Eg={}));var Pg;(function(t){t.method="typeHierarchy/subtypes",t.messageDirection=Ns.MessageDirection.clientToServer,t.type=new Ns.ProtocolRequestType(t.method)})(Pg||(ui.TypeHierarchySubtypesRequest=Pg={}));var $s={};Object.defineProperty($s,"__esModule",{value:!0});$s.InlineValueRefreshRequest=$s.InlineValueRequest=void 0;const Va=ze;var Ig;(function(t){t.method="textDocument/inlineValue",t.messageDirection=Va.MessageDirection.clientToServer,t.type=new Va.ProtocolRequestType(t.method)})(Ig||($s.InlineValueRequest=Ig={}));var Mg;(function(t){t.method="workspace/inlineValue/refresh",t.messageDirection=Va.MessageDirection.serverToClient,t.type=new Va.ProtocolRequestType0(t.method)})(Mg||($s.InlineValueRefreshRequest=Mg={}));var di={};Object.defineProperty(di,"__esModule",{value:!0});di.InlayHintRefreshRequest=di.InlayHintResolveRequest=di.InlayHintRequest=void 0;const qs=ze;var Og;(function(t){t.method="textDocument/inlayHint",t.messageDirection=qs.MessageDirection.clientToServer,t.type=new qs.ProtocolRequestType(t.method)})(Og||(di.InlayHintRequest=Og={}));var Ag;(function(t){t.method="inlayHint/resolve",t.messageDirection=qs.MessageDirection.clientToServer,t.type=new qs.ProtocolRequestType(t.method)})(Ag||(di.InlayHintResolveRequest=Ag={}));var Fg;(function(t){t.method="workspace/inlayHint/refresh",t.messageDirection=qs.MessageDirection.serverToClient,t.type=new qs.ProtocolRequestType0(t.method)})(Fg||(di.InlayHintRefreshRequest=Fg={}));var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.DiagnosticRefreshRequest=Yn.WorkspaceDiagnosticRequest=Yn.DocumentDiagnosticRequest=Yn.DocumentDiagnosticReportKind=Yn.DiagnosticServerCancellationData=void 0;const A2=Xi,m4=Mt,js=ze;var Lg;(function(t){function e(n){const r=n;return r&&m4.boolean(r.retriggerRequest)}t.is=e})(Lg||(Yn.DiagnosticServerCancellationData=Lg={}));var Ng;(function(t){t.Full="full",t.Unchanged="unchanged"})(Ng||(Yn.DocumentDiagnosticReportKind=Ng={}));var $g;(function(t){t.method="textDocument/diagnostic",t.messageDirection=js.MessageDirection.clientToServer,t.type=new js.ProtocolRequestType(t.method),t.partialResult=new A2.ProgressType})($g||(Yn.DocumentDiagnosticRequest=$g={}));var qg;(function(t){t.method="workspace/diagnostic",t.messageDirection=js.MessageDirection.clientToServer,t.type=new js.ProtocolRequestType(t.method),t.partialResult=new A2.ProgressType})(qg||(Yn.WorkspaceDiagnosticRequest=qg={}));var jg;(function(t){t.method="workspace/diagnostic/refresh",t.messageDirection=js.MessageDirection.serverToClient,t.type=new js.ProtocolRequestType0(t.method)})(jg||(Yn.DiagnosticRefreshRequest=jg={}));var It={};Object.defineProperty(It,"__esModule",{value:!0});It.DidCloseNotebookDocumentNotification=It.DidSaveNotebookDocumentNotification=It.DidChangeNotebookDocumentNotification=It.NotebookCellArrayChange=It.DidOpenNotebookDocumentNotification=It.NotebookDocumentSyncRegistrationType=It.NotebookDocument=It.NotebookCell=It.ExecutionSummary=It.NotebookCellKind=void 0;const $o=J1,lr=Mt,_r=ze;var Wd;(function(t){t.Markup=1,t.Code=2;function e(n){return n===1||n===2}t.is=e})(Wd||(It.NotebookCellKind=Wd={}));var Ud;(function(t){function e(i,s){const o={executionOrder:i};return(s===!0||s===!1)&&(o.success=s),o}t.create=e;function n(i){const s=i;return lr.objectLiteral(s)&&$o.uinteger.is(s.executionOrder)&&(s.success===void 0||lr.boolean(s.success))}t.is=n;function r(i,s){return i===s?!0:i==null||s===null||s===void 0?!1:i.executionOrder===s.executionOrder&&i.success===s.success}t.equals=r})(Ud||(It.ExecutionSummary=Ud={}));var Ka;(function(t){function e(s,o){return{kind:s,document:o}}t.create=e;function n(s){const o=s;return lr.objectLiteral(o)&&Wd.is(o.kind)&&$o.DocumentUri.is(o.document)&&(o.metadata===void 0||lr.objectLiteral(o.metadata))}t.is=n;function r(s,o){const a=new Set;return s.document!==o.document&&a.add("document"),s.kind!==o.kind&&a.add("kind"),s.executionSummary!==o.executionSummary&&a.add("executionSummary"),(s.metadata!==void 0||o.metadata!==void 0)&&!i(s.metadata,o.metadata)&&a.add("metadata"),(s.executionSummary!==void 0||o.executionSummary!==void 0)&&!Ud.equals(s.executionSummary,o.executionSummary)&&a.add("executionSummary"),a}t.diff=r;function i(s,o){if(s===o)return!0;if(s==null||o===null||o===void 0||typeof s!=typeof o||typeof s!="object")return!1;const a=Array.isArray(s),c=Array.isArray(o);if(a!==c)return!1;if(a&&c){if(s.length!==o.length)return!1;for(let l=0;l<s.length;l++)if(!i(s[l],o[l]))return!1}if(lr.objectLiteral(s)&&lr.objectLiteral(o)){const l=Object.keys(s),f=Object.keys(o);if(l.length!==f.length||(l.sort(),f.sort(),!i(l,f)))return!1;for(let p=0;p<l.length;p++){const g=l[p];if(!i(s[g],o[g]))return!1}}return!0}})(Ka||(It.NotebookCell=Ka={}));var Hg;(function(t){function e(r,i,s,o){return{uri:r,notebookType:i,version:s,cells:o}}t.create=e;function n(r){const i=r;return lr.objectLiteral(i)&&lr.string(i.uri)&&$o.integer.is(i.version)&&lr.typedArray(i.cells,Ka.is)}t.is=n})(Hg||(It.NotebookDocument=Hg={}));var Hs;(function(t){t.method="notebookDocument/sync",t.messageDirection=_r.MessageDirection.clientToServer,t.type=new _r.RegistrationType(t.method)})(Hs||(It.NotebookDocumentSyncRegistrationType=Hs={}));var Wg;(function(t){t.method="notebookDocument/didOpen",t.messageDirection=_r.MessageDirection.clientToServer,t.type=new _r.ProtocolNotificationType(t.method),t.registrationMethod=Hs.method})(Wg||(It.DidOpenNotebookDocumentNotification=Wg={}));var Ug;(function(t){function e(r){const i=r;return lr.objectLiteral(i)&&$o.uinteger.is(i.start)&&$o.uinteger.is(i.deleteCount)&&(i.cells===void 0||lr.typedArray(i.cells,Ka.is))}t.is=e;function n(r,i,s){const o={start:r,deleteCount:i};return s!==void 0&&(o.cells=s),o}t.create=n})(Ug||(It.NotebookCellArrayChange=Ug={}));var zg;(function(t){t.method="notebookDocument/didChange",t.messageDirection=_r.MessageDirection.clientToServer,t.type=new _r.ProtocolNotificationType(t.method),t.registrationMethod=Hs.method})(zg||(It.DidChangeNotebookDocumentNotification=zg={}));var Bg;(function(t){t.method="notebookDocument/didSave",t.messageDirection=_r.MessageDirection.clientToServer,t.type=new _r.ProtocolNotificationType(t.method),t.registrationMethod=Hs.method})(Bg||(It.DidSaveNotebookDocumentNotification=Bg={}));var Vg;(function(t){t.method="notebookDocument/didClose",t.messageDirection=_r.MessageDirection.clientToServer,t.type=new _r.ProtocolNotificationType(t.method),t.registrationMethod=Hs.method})(Vg||(It.DidCloseNotebookDocumentNotification=Vg={}));var qc={};Object.defineProperty(qc,"__esModule",{value:!0});qc.InlineCompletionRequest=void 0;const Kg=ze;var Gg;(function(t){t.method="textDocument/inlineCompletion",t.messageDirection=Kg.MessageDirection.clientToServer,t.type=new Kg.ProtocolRequestType(t.method)})(Gg||(qc.InlineCompletionRequest=Gg={}));(function(t){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.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.FoldingRangeRefreshRequest=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.DocumentRangesFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolResolveRequest=void 0,t.InlineCompletionRequest=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=t.TypeHierarchySubtypesRequest=t.TypeHierarchyPrepareRequest=void 0;const e=ze,n=J1,r=Mt,i=Mc;Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return i.ImplementationRequest}});const s=Oc;Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return s.TypeDefinitionRequest}});const o=Os;Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return o.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return o.DidChangeWorkspaceFoldersNotification}});const a=Ac;Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return a.ConfigurationRequest}});const c=As;Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return c.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return c.ColorPresentationRequest}});const l=Fs;Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return l.FoldingRangeRequest}}),Object.defineProperty(t,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return l.FoldingRangeRefreshRequest}});const f=Fc;Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return f.DeclarationRequest}});const p=Lc;Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return p.SelectionRangeRequest}});const g=ai;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 _=ci;Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return _.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return _.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return _.CallHierarchyPrepareRequest}});const C=On;Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return C.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return C.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return C.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return C.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return C.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return C.SemanticTokensRegistrationType}});const k=Nc;Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return k.ShowDocumentRequest}});const M=$c;Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return M.LinkedEditingRangeRequest}});const H=hn;Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return H.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return H.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return H.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return H.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return H.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return H.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return H.WillDeleteFilesRequest}});const K=li;Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return K.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return K.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return K.MonikerRequest}});const j=ui;Object.defineProperty(t,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return j.TypeHierarchyPrepareRequest}}),Object.defineProperty(t,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return j.TypeHierarchySubtypesRequest}}),Object.defineProperty(t,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return j.TypeHierarchySupertypesRequest}});const B=$s;Object.defineProperty(t,"InlineValueRequest",{enumerable:!0,get:function(){return B.InlineValueRequest}}),Object.defineProperty(t,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return B.InlineValueRefreshRequest}});const z=di;Object.defineProperty(t,"InlayHintRequest",{enumerable:!0,get:function(){return z.InlayHintRequest}}),Object.defineProperty(t,"InlayHintResolveRequest",{enumerable:!0,get:function(){return z.InlayHintResolveRequest}}),Object.defineProperty(t,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return z.InlayHintRefreshRequest}});const ne=Yn;Object.defineProperty(t,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return ne.DiagnosticServerCancellationData}}),Object.defineProperty(t,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return ne.DocumentDiagnosticReportKind}}),Object.defineProperty(t,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return ne.DocumentDiagnosticRequest}}),Object.defineProperty(t,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return ne.WorkspaceDiagnosticRequest}}),Object.defineProperty(t,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return ne.DiagnosticRefreshRequest}});const G=It;Object.defineProperty(t,"NotebookCellKind",{enumerable:!0,get:function(){return G.NotebookCellKind}}),Object.defineProperty(t,"ExecutionSummary",{enumerable:!0,get:function(){return G.ExecutionSummary}}),Object.defineProperty(t,"NotebookCell",{enumerable:!0,get:function(){return G.NotebookCell}}),Object.defineProperty(t,"NotebookDocument",{enumerable:!0,get:function(){return G.NotebookDocument}}),Object.defineProperty(t,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return G.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(t,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return G.DidOpenNotebookDocumentNotification}}),Object.defineProperty(t,"NotebookCellArrayChange",{enumerable:!0,get:function(){return G.NotebookCellArrayChange}}),Object.defineProperty(t,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return G.DidChangeNotebookDocumentNotification}}),Object.defineProperty(t,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return G.DidSaveNotebookDocumentNotification}}),Object.defineProperty(t,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return G.DidCloseNotebookDocumentNotification}});const Y=qc;Object.defineProperty(t,"InlineCompletionRequest",{enumerable:!0,get:function(){return Y.InlineCompletionRequest}});var re;(function(w){function ge(me){const J=me;return r.string(J)||r.string(J.language)||r.string(J.scheme)||r.string(J.pattern)}w.is=ge})(re||(t.TextDocumentFilter=re={}));var Le;(function(w){function ge(me){const J=me;return r.objectLiteral(J)&&(r.string(J.notebookType)||r.string(J.scheme)||r.string(J.pattern))}w.is=ge})(Le||(t.NotebookDocumentFilter=Le={}));var $;(function(w){function ge(me){const J=me;return r.objectLiteral(J)&&(r.string(J.notebook)||Le.is(J.notebook))&&(J.language===void 0||r.string(J.language))}w.is=ge})($||(t.NotebookCellTextDocumentFilter=$={}));var P;(function(w){function ge(me){if(!Array.isArray(me))return!1;for(let J of me)if(!r.string(J)&&!re.is(J)&&!$.is(J))return!1;return!0}w.is=ge})(P||(t.DocumentSelector=P={}));var v;(function(w){w.method="client/registerCapability",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolRequestType(w.method)})(v||(t.RegistrationRequest=v={}));var R;(function(w){w.method="client/unregisterCapability",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolRequestType(w.method)})(R||(t.UnregistrationRequest=R={}));var I;(function(w){w.Create="create",w.Rename="rename",w.Delete="delete"})(I||(t.ResourceOperationKind=I={}));var E;(function(w){w.Abort="abort",w.Transactional="transactional",w.TextOnlyTransactional="textOnlyTransactional",w.Undo="undo"})(E||(t.FailureHandlingKind=E={}));var V;(function(w){w.UTF8="utf-8",w.UTF16="utf-16",w.UTF32="utf-32"})(V||(t.PositionEncodingKind=V={}));var Me;(function(w){function ge(me){const J=me;return J&&r.string(J.id)&&J.id.length>0}w.hasId=ge})(Me||(t.StaticRegistrationOptions=Me={}));var we;(function(w){function ge(me){const J=me;return J&&(J.documentSelector===null||P.is(J.documentSelector))}w.is=ge})(we||(t.TextDocumentRegistrationOptions=we={}));var lt;(function(w){function ge(J){const h=J;return r.objectLiteral(h)&&(h.workDoneProgress===void 0||r.boolean(h.workDoneProgress))}w.is=ge;function me(J){const h=J;return h&&r.boolean(h.workDoneProgress)}w.hasWorkDoneProgress=me})(lt||(t.WorkDoneProgressOptions=lt={}));var He;(function(w){w.method="initialize",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(He||(t.InitializeRequest=He={}));var Pe;(function(w){w.unknownProtocolVersion=1})(Pe||(t.InitializeErrorCodes=Pe={}));var st;(function(w){w.method="initialized",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(st||(t.InitializedNotification=st={}));var Fe;(function(w){w.method="shutdown",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType0(w.method)})(Fe||(t.ShutdownRequest=Fe={}));var ot;(function(w){w.method="exit",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType0(w.method)})(ot||(t.ExitNotification=ot={}));var Qe;(function(w){w.method="workspace/didChangeConfiguration",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(Qe||(t.DidChangeConfigurationNotification=Qe={}));var Ft;(function(w){w.Error=1,w.Warning=2,w.Info=3,w.Log=4,w.Debug=5})(Ft||(t.MessageType=Ft={}));var Je;(function(w){w.method="window/showMessage",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolNotificationType(w.method)})(Je||(t.ShowMessageNotification=Je={}));var Xe;(function(w){w.method="window/showMessageRequest",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolRequestType(w.method)})(Xe||(t.ShowMessageRequest=Xe={}));var vt;(function(w){w.method="window/logMessage",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolNotificationType(w.method)})(vt||(t.LogMessageNotification=vt={}));var at;(function(w){w.method="telemetry/event",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolNotificationType(w.method)})(at||(t.TelemetryEventNotification=at={}));var oe;(function(w){w.None=0,w.Full=1,w.Incremental=2})(oe||(t.TextDocumentSyncKind=oe={}));var gt;(function(w){w.method="textDocument/didOpen",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(gt||(t.DidOpenTextDocumentNotification=gt={}));var Ce;(function(w){function ge(J){let h=J;return h!=null&&typeof h.text=="string"&&h.range!==void 0&&(h.rangeLength===void 0||typeof h.rangeLength=="number")}w.isIncremental=ge;function me(J){let h=J;return h!=null&&typeof h.text=="string"&&h.range===void 0&&h.rangeLength===void 0}w.isFull=me})(Ce||(t.TextDocumentContentChangeEvent=Ce={}));var Ze;(function(w){w.method="textDocument/didChange",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(Ze||(t.DidChangeTextDocumentNotification=Ze={}));var en;(function(w){w.method="textDocument/didClose",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(en||(t.DidCloseTextDocumentNotification=en={}));var tn;(function(w){w.method="textDocument/didSave",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(tn||(t.DidSaveTextDocumentNotification=tn={}));var Wt;(function(w){w.Manual=1,w.AfterDelay=2,w.FocusOut=3})(Wt||(t.TextDocumentSaveReason=Wt={}));var Rt;(function(w){w.method="textDocument/willSave",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(Rt||(t.WillSaveTextDocumentNotification=Rt={}));var xt;(function(w){w.method="textDocument/willSaveWaitUntil",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(xt||(t.WillSaveTextDocumentWaitUntilRequest=xt={}));var qe;(function(w){w.method="workspace/didChangeWatchedFiles",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(qe||(t.DidChangeWatchedFilesNotification=qe={}));var Ut;(function(w){w.Created=1,w.Changed=2,w.Deleted=3})(Ut||(t.FileChangeType=Ut={}));var Ln;(function(w){function ge(me){const J=me;return r.objectLiteral(J)&&(n.URI.is(J.baseUri)||n.WorkspaceFolder.is(J.baseUri))&&r.string(J.pattern)}w.is=ge})(Ln||(t.RelativePattern=Ln={}));var Dn;(function(w){w.Create=1,w.Change=2,w.Delete=4})(Dn||(t.WatchKind=Dn={}));var Tn;(function(w){w.method="textDocument/publishDiagnostics",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolNotificationType(w.method)})(Tn||(t.PublishDiagnosticsNotification=Tn={}));var Nn;(function(w){w.Invoked=1,w.TriggerCharacter=2,w.TriggerForIncompleteCompletions=3})(Nn||(t.CompletionTriggerKind=Nn={}));var kn;(function(w){w.method="textDocument/completion",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(kn||(t.CompletionRequest=kn={}));var ln;(function(w){w.method="completionItem/resolve",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(ln||(t.CompletionResolveRequest=ln={}));var St;(function(w){w.method="textDocument/hover",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(St||(t.HoverRequest=St={}));var mn;(function(w){w.Invoked=1,w.TriggerCharacter=2,w.ContentChange=3})(mn||(t.SignatureHelpTriggerKind=mn={}));var Bn;(function(w){w.method="textDocument/signatureHelp",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Bn||(t.SignatureHelpRequest=Bn={}));var Kt;(function(w){w.method="textDocument/definition",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Kt||(t.DefinitionRequest=Kt={}));var nn;(function(w){w.method="textDocument/references",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(nn||(t.ReferencesRequest=nn={}));var yn;(function(w){w.method="textDocument/documentHighlight",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(yn||(t.DocumentHighlightRequest=yn={}));var Gt;(function(w){w.method="textDocument/documentSymbol",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Gt||(t.DocumentSymbolRequest=Gt={}));var Rn;(function(w){w.method="textDocument/codeAction",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Rn||(t.CodeActionRequest=Rn={}));var bn;(function(w){w.method="codeAction/resolve",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(bn||(t.CodeActionResolveRequest=bn={}));var xn;(function(w){w.method="workspace/symbol",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(xn||(t.WorkspaceSymbolRequest=xn={}));var Vn;(function(w){w.method="workspaceSymbol/resolve",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Vn||(t.WorkspaceSymbolResolveRequest=Vn={}));var vn;(function(w){w.method="textDocument/codeLens",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(vn||(t.CodeLensRequest=vn={}));var mt;(function(w){w.method="codeLens/resolve",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(mt||(t.CodeLensResolveRequest=mt={}));var En;(function(w){w.method="workspace/codeLens/refresh",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolRequestType0(w.method)})(En||(t.CodeLensRefreshRequest=En={}));var $n;(function(w){w.method="textDocument/documentLink",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})($n||(t.DocumentLinkRequest=$n={}));var Lt;(function(w){w.method="documentLink/resolve",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Lt||(t.DocumentLinkResolveRequest=Lt={}));var y;(function(w){w.method="textDocument/formatting",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(y||(t.DocumentFormattingRequest=y={}));var L;(function(w){w.method="textDocument/rangeFormatting",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(L||(t.DocumentRangeFormattingRequest=L={}));var te;(function(w){w.method="textDocument/rangesFormatting",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(te||(t.DocumentRangesFormattingRequest=te={}));var Te;(function(w){w.method="textDocument/onTypeFormatting",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Te||(t.DocumentOnTypeFormattingRequest=Te={}));var xe;(function(w){w.Identifier=1})(xe||(t.PrepareSupportDefaultBehavior=xe={}));var ut;(function(w){w.method="textDocument/rename",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(ut||(t.RenameRequest=ut={}));var T;(function(w){w.method="textDocument/prepareRename",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(T||(t.PrepareRenameRequest=T={}));var U;(function(w){w.method="workspace/executeCommand",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(U||(t.ExecuteCommandRequest=U={}));var X;(function(w){w.method="workspace/applyEdit",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolRequestType("workspace/applyEdit")})(X||(t.ApplyWorkspaceEditRequest=X={}))})(I2);var jc={};Object.defineProperty(jc,"__esModule",{value:!0});jc.createProtocolConnection=void 0;const Qg=Xi;function y4(t,e,n,r){return Qg.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Qg.createMessageConnection)(t,e,n,r)}jc.createProtocolConnection=y4;(function(t){var e=_t&&_t.__createBinding||(Object.create?function(s,o,a,c){c===void 0&&(c=a);var l=Object.getOwnPropertyDescriptor(o,a);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(s,c,l)}:function(s,o,a,c){c===void 0&&(c=a),s[c]=o[a]}),n=_t&&_t.__exportStar||function(s,o){for(var a in s)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&e(o,s,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,n(Xi,t),n(J1,t),n(ze,t),n(I2,t);var r=jc;Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:function(){return r.createProtocolConnection}});var i;(function(s){s.lspReservedErrorRangeStart=-32899,s.RequestFailed=-32803,s.ServerCancelled=-32802,s.ContentModified=-32801,s.RequestCancelled=-32800,s.lspReservedErrorRangeEnd=-32800})(i||(t.LSPErrorCodes=i={}))})(P2);(function(t){var e=_t&&_t.__createBinding||(Object.create?function(s,o,a,c){c===void 0&&(c=a);var l=Object.getOwnPropertyDescriptor(o,a);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(s,c,l)}:function(s,o,a,c){c===void 0&&(c=a),s[c]=o[a]}),n=_t&&_t.__exportStar||function(s,o){for(var a in s)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&e(o,s,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const r=Np;n(Np,t),n(P2,t);function i(s,o,a,c){return(0,r.createMessageConnection)(s,o,a,c)}t.createProtocolConnection=i})(ye);var De={};function ie(t,e,n,r){var i=arguments.length,s=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}function b4(t,e,n=0,r=t.length){let i=n,s=r;for(;i<s;){const o=Math.floor((i+s)/2);e(t[o])?i=o+1:s=o}return i-1}const _c=class _c{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(_c.assertInvariants){if(this._prevFindLastPredicate){for(const r of this._array)if(this._prevFindLastPredicate(r)&&!e(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=e}const n=b4(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};_c.assertInvariants=!1;let Jg=_c;function zd(t,e,n=(r,i)=>r===i){if(t===e)return!0;if(!t||!e||t.length!==e.length)return!1;for(let r=0,i=t.length;r<i;r++)if(!n(t[r],e[r]))return!1;return!0}function v4(t){let e=0;for(let n=0;n<t.length;n++)t[n]&&(t[e]=t[n],e+=1);t.length=e}function Yg(t,e){let n;if(typeof e=="number"){let r=e;n=()=>{const i=Math.sin(r++)*179426549;return i-Math.floor(i)}}else n=Math.random;for(let r=t.length-1;r>0;r-=1){const i=Math.floor(n()*(r+1)),s=t[r];t[r]=t[i],t[i]=s}}function w4(t){return Array.isArray(t)?t:[t]}var Bd;(function(t){function e(s){return s<0}t.isLessThan=e;function n(s){return s<=0}t.isLessThanOrEqual=n;function r(s){return s>0}t.isGreaterThan=r;function i(s){return s===0}t.isNeitherLessOrGreaterThan=i,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(Bd||(Bd={}));function C4(t,e){return(n,r)=>e(t(n),t(r))}const _4=(t,e)=>t-e,hs=class hs{constructor(e){this.iterate=e}forEach(e){this.iterate(n=>(e(n),!0))}toArray(){const e=[];return this.iterate(n=>(e.push(n),!0)),e}filter(e){return new hs(n=>this.iterate(r=>e(r)?n(r):!0))}map(e){return new hs(n=>this.iterate(r=>n(e(r))))}some(e){let n=!1;return this.iterate(r=>(n=e(r),!n)),n}findFirst(e){let n;return this.iterate(r=>e(r)?(n=r,!1):!0),n}findLast(e){let n;return this.iterate(r=>(e(r)&&(n=r),!0)),n}findLastMaxBy(e){let n,r=!0;return this.iterate(i=>((r||Bd.isGreaterThan(e(i,n)))&&(r=!1,n=i),!0)),n}};hs.empty=new hs(e=>{});let Xg=hs;class S4{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?qo.isErrorNoTelemetry(e)?new qo(e.message+`
|
|
77
|
+
`,"\r"];var Wd;(function(t){function e(s,o,a,c){return new l4(s,o,a,c)}t.create=e;function n(s){let o=s;return!!(O.defined(o)&&O.string(o.uri)&&(O.undefined(o.languageId)||O.string(o.languageId))&&O.uinteger(o.lineCount)&&O.func(o.getText)&&O.func(o.positionAt)&&O.func(o.offsetAt))}t.is=n;function i(s,o){let a=s.getText(),c=r(o,(f,g)=>{let p=f.range.start.line-g.range.start.line;return p===0?f.range.start.character-g.range.start.character:p}),l=a.length;for(let f=c.length-1;f>=0;f--){let g=c[f],p=s.offsetAt(g.range.start),_=s.offsetAt(g.range.end);if(_<=l)a=a.substring(0,p)+g.newText+a.substring(_,a.length);else throw new Error("Overlapping edit");l=p}return a}t.applyEdits=i;function r(s,o){if(s.length<=1)return s;const a=s.length/2|0,c=s.slice(0,a),l=s.slice(a);r(c,o),r(l,o);let f=0,g=0,p=0;for(;f<c.length&&g<l.length;)o(c[f],l[g])<=0?s[p++]=c[f++]:s[p++]=l[g++];for(;f<c.length;)s[p++]=c[f++];for(;g<l.length;)s[p++]=l[g++];return s}})(Wd||(Wd={}));class l4{constructor(e,n,i,r){this._uri=e,this._languageId=n,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let n=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(n,i)}return this._content}update(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],n=this._content,i=!0;for(let r=0;r<n.length;r++){i&&(e.push(r),i=!1);let s=n.charAt(r);i=s==="\r"||s===`
|
|
78
|
+
`,s==="\r"&&r+1<n.length&&n.charAt(r+1)===`
|
|
79
|
+
`&&r++}i&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return Xn.create(0,e);for(;i<r;){let o=Math.floor((i+r)/2);n[o]>e?r=o:i=o+1}let s=i-1;return Xn.create(s,e-n[s])}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let i=n[e.line],r=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i)}get lineCount(){return this.getLineOffsets().length}}var O;(function(t){const e=Object.prototype.toString;function n(_){return typeof _<"u"}t.defined=n;function i(_){return typeof _>"u"}t.undefined=i;function r(_){return _===!0||_===!1}t.boolean=r;function s(_){return e.call(_)==="[object String]"}t.string=s;function o(_){return e.call(_)==="[object Number]"}t.number=o;function a(_,C,k){return e.call(_)==="[object Number]"&&C<=_&&_<=k}t.numberRange=a;function c(_){return e.call(_)==="[object Number]"&&-2147483648<=_&&_<=2147483647}t.integer=c;function l(_){return e.call(_)==="[object Number]"&&0<=_&&_<=2147483647}t.uinteger=l;function f(_){return e.call(_)==="[object Function]"}t.func=f;function g(_){return _!==null&&typeof _=="object"}t.objectLiteral=g;function p(_,C){return Array.isArray(_)&&_.every(C)}t.typedArray=p})(O||(O={}));const u4=Object.freeze(Object.defineProperty({__proto__:null,get AnnotatedTextEdit(){return Mi},get ChangeAnnotation(){return Wr},get ChangeAnnotationIdentifier(){return an},get CodeAction(){return _d},get CodeActionContext(){return Cd},get CodeActionKind(){return wd},get CodeActionTriggerKind(){return Lo},get CodeDescription(){return Yu},get CodeLens(){return Sd},get Color(){return La},get ColorInformation(){return Vu},get ColorPresentation(){return Ku},get Command(){return Jr},get CompletionItem(){return cd},get CompletionItemKind(){return nd},get CompletionItemLabelDetails(){return ad},get CompletionItemTag(){return rd},get CompletionList(){return ld},get CreateFile(){return xs},get DeleteFile(){return Es},get Diagnostic(){return Ao},get DiagnosticRelatedInformation(){return Na},get DiagnosticSeverity(){return Xu},get DiagnosticTag(){return Zu},get DocumentHighlight(){return gd},get DocumentHighlightKind(){return hd},get DocumentLink(){return Td},get DocumentSymbol(){return vd},get DocumentUri(){return Uu},EOL:c4,get FoldingRange(){return Ju},get FoldingRangeKind(){return Gu},get FormattingOptions(){return Dd},get Hover(){return ud},get InlayHint(){return Od},get InlayHintKind(){return ja},get InlayHintLabelPart(){return Ha},get InlineCompletionContext(){return jd},get InlineCompletionItem(){return Ld},get InlineCompletionList(){return Nd},get InlineCompletionTriggerKind(){return $d},get InlineValueContext(){return Md},get InlineValueEvaluatableExpression(){return Ad},get InlineValueText(){return Ed},get InlineValueVariableLookup(){return Pd},get InsertReplaceEdit(){return sd},get InsertTextFormat(){return id},get InsertTextMode(){return od},get Location(){return Po},get LocationLink(){return Bu},get MarkedString(){return Fo},get MarkupContent(){return Ps},get MarkupKind(){return qa},get OptionalVersionedTextDocumentIdentifier(){return Oo},get ParameterInformation(){return dd},get Position(){return Xn},get Range(){return Ot},get RenameFile(){return Is},get SelectedCompletionInfo(){return qd},get SelectionRange(){return kd},get SemanticTokenModifiers(){return xd},get SemanticTokenTypes(){return Rd},get SemanticTokens(){return Id},get SignatureInformation(){return fd},get StringValue(){return Fd},get SymbolInformation(){return yd},get SymbolKind(){return pd},get SymbolTag(){return md},get TextDocument(){return Wd},get TextDocumentEdit(){return Mo},get TextDocumentIdentifier(){return Qu},get TextDocumentItem(){return td},get TextEdit(){return wi},get URI(){return Fa},get VersionedTextDocumentIdentifier(){return ed},WorkspaceChange:a4,get WorkspaceEdit(){return $a},get WorkspaceFolder(){return Hd},get WorkspaceSymbol(){return bd},get integer(){return zu},get uinteger(){return Eo}},Symbol.toStringTag,{value:"Module"})),Z1=v2(u4);var ze={};Object.defineProperty(ze,"__esModule",{value:!0});ze.ProtocolNotificationType=ze.ProtocolNotificationType0=ze.ProtocolRequestType=ze.ProtocolRequestType0=ze.RegistrationType=ze.MessageDirection=void 0;const As=Yr;var Hg;(function(t){t.clientToServer="clientToServer",t.serverToClient="serverToClient",t.both="both"})(Hg||(ze.MessageDirection=Hg={}));class d4{constructor(e){this.method=e}}ze.RegistrationType=d4;class f4 extends As.RequestType0{constructor(e){super(e)}}ze.ProtocolRequestType0=f4;class h4 extends As.RequestType{constructor(e){super(e,As.ParameterStructures.byName)}}ze.ProtocolRequestType=h4;class g4 extends As.NotificationType0{constructor(e){super(e)}}ze.ProtocolNotificationType0=g4;class p4 extends As.NotificationType{constructor(e){super(e,As.ParameterStructures.byName)}}ze.ProtocolNotificationType=p4;var M2={},At={};Object.defineProperty(At,"__esModule",{value:!0});At.objectLiteral=At.typedArray=At.stringArray=At.array=At.func=At.error=At.number=At.string=At.boolean=void 0;function m4(t){return t===!0||t===!1}At.boolean=m4;function O2(t){return typeof t=="string"||t instanceof String}At.string=O2;function y4(t){return typeof t=="number"||t instanceof Number}At.number=y4;function b4(t){return t instanceof Error}At.error=b4;function v4(t){return typeof t=="function"}At.func=v4;function F2(t){return Array.isArray(t)}At.array=F2;function w4(t){return F2(t)&&t.every(e=>O2(e))}At.stringArray=w4;function C4(t,e){return Array.isArray(t)&&t.every(e)}At.typedArray=C4;function _4(t){return t!==null&&typeof t=="object"}At.objectLiteral=_4;var Ac={};Object.defineProperty(Ac,"__esModule",{value:!0});Ac.ImplementationRequest=void 0;const Wg=ze;var Ug;(function(t){t.method="textDocument/implementation",t.messageDirection=Wg.MessageDirection.clientToServer,t.type=new Wg.ProtocolRequestType(t.method)})(Ug||(Ac.ImplementationRequest=Ug={}));var Mc={};Object.defineProperty(Mc,"__esModule",{value:!0});Mc.TypeDefinitionRequest=void 0;const zg=ze;var Bg;(function(t){t.method="textDocument/typeDefinition",t.messageDirection=zg.MessageDirection.clientToServer,t.type=new zg.ProtocolRequestType(t.method)})(Bg||(Mc.TypeDefinitionRequest=Bg={}));var Ms={};Object.defineProperty(Ms,"__esModule",{value:!0});Ms.DidChangeWorkspaceFoldersNotification=Ms.WorkspaceFoldersRequest=void 0;const Wa=ze;var Vg;(function(t){t.method="workspace/workspaceFolders",t.messageDirection=Wa.MessageDirection.serverToClient,t.type=new Wa.ProtocolRequestType0(t.method)})(Vg||(Ms.WorkspaceFoldersRequest=Vg={}));var Kg;(function(t){t.method="workspace/didChangeWorkspaceFolders",t.messageDirection=Wa.MessageDirection.clientToServer,t.type=new Wa.ProtocolNotificationType(t.method)})(Kg||(Ms.DidChangeWorkspaceFoldersNotification=Kg={}));var Oc={};Object.defineProperty(Oc,"__esModule",{value:!0});Oc.ConfigurationRequest=void 0;const Gg=ze;var Jg;(function(t){t.method="workspace/configuration",t.messageDirection=Gg.MessageDirection.serverToClient,t.type=new Gg.ProtocolRequestType(t.method)})(Jg||(Oc.ConfigurationRequest=Jg={}));var Os={};Object.defineProperty(Os,"__esModule",{value:!0});Os.ColorPresentationRequest=Os.DocumentColorRequest=void 0;const Ua=ze;var Xg;(function(t){t.method="textDocument/documentColor",t.messageDirection=Ua.MessageDirection.clientToServer,t.type=new Ua.ProtocolRequestType(t.method)})(Xg||(Os.DocumentColorRequest=Xg={}));var Zg;(function(t){t.method="textDocument/colorPresentation",t.messageDirection=Ua.MessageDirection.clientToServer,t.type=new Ua.ProtocolRequestType(t.method)})(Zg||(Os.ColorPresentationRequest=Zg={}));var Fs={};Object.defineProperty(Fs,"__esModule",{value:!0});Fs.FoldingRangeRefreshRequest=Fs.FoldingRangeRequest=void 0;const za=ze;var Yg;(function(t){t.method="textDocument/foldingRange",t.messageDirection=za.MessageDirection.clientToServer,t.type=new za.ProtocolRequestType(t.method)})(Yg||(Fs.FoldingRangeRequest=Yg={}));var Qg;(function(t){t.method="workspace/foldingRange/refresh",t.messageDirection=za.MessageDirection.serverToClient,t.type=new za.ProtocolRequestType0(t.method)})(Qg||(Fs.FoldingRangeRefreshRequest=Qg={}));var Fc={};Object.defineProperty(Fc,"__esModule",{value:!0});Fc.DeclarationRequest=void 0;const ep=ze;var tp;(function(t){t.method="textDocument/declaration",t.messageDirection=ep.MessageDirection.clientToServer,t.type=new ep.ProtocolRequestType(t.method)})(tp||(Fc.DeclarationRequest=tp={}));var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});Lc.SelectionRangeRequest=void 0;const np=ze;var ip;(function(t){t.method="textDocument/selectionRange",t.messageDirection=np.MessageDirection.clientToServer,t.type=new np.ProtocolRequestType(t.method)})(ip||(Lc.SelectionRangeRequest=ip={}));var ar={};Object.defineProperty(ar,"__esModule",{value:!0});ar.WorkDoneProgressCancelNotification=ar.WorkDoneProgressCreateRequest=ar.WorkDoneProgress=void 0;const S4=Yr,Ba=ze;var rp;(function(t){t.type=new S4.ProgressType;function e(n){return n===t.type}t.is=e})(rp||(ar.WorkDoneProgress=rp={}));var sp;(function(t){t.method="window/workDoneProgress/create",t.messageDirection=Ba.MessageDirection.serverToClient,t.type=new Ba.ProtocolRequestType(t.method)})(sp||(ar.WorkDoneProgressCreateRequest=sp={}));var op;(function(t){t.method="window/workDoneProgress/cancel",t.messageDirection=Ba.MessageDirection.clientToServer,t.type=new Ba.ProtocolNotificationType(t.method)})(op||(ar.WorkDoneProgressCancelNotification=op={}));var cr={};Object.defineProperty(cr,"__esModule",{value:!0});cr.CallHierarchyOutgoingCallsRequest=cr.CallHierarchyIncomingCallsRequest=cr.CallHierarchyPrepareRequest=void 0;const Ls=ze;var ap;(function(t){t.method="textDocument/prepareCallHierarchy",t.messageDirection=Ls.MessageDirection.clientToServer,t.type=new Ls.ProtocolRequestType(t.method)})(ap||(cr.CallHierarchyPrepareRequest=ap={}));var cp;(function(t){t.method="callHierarchy/incomingCalls",t.messageDirection=Ls.MessageDirection.clientToServer,t.type=new Ls.ProtocolRequestType(t.method)})(cp||(cr.CallHierarchyIncomingCallsRequest=cp={}));var lp;(function(t){t.method="callHierarchy/outgoingCalls",t.messageDirection=Ls.MessageDirection.clientToServer,t.type=new Ls.ProtocolRequestType(t.method)})(lp||(cr.CallHierarchyOutgoingCallsRequest=lp={}));var Mn={};Object.defineProperty(Mn,"__esModule",{value:!0});Mn.SemanticTokensRefreshRequest=Mn.SemanticTokensRangeRequest=Mn.SemanticTokensDeltaRequest=Mn.SemanticTokensRequest=Mn.SemanticTokensRegistrationType=Mn.TokenFormat=void 0;const Vi=ze;var up;(function(t){t.Relative="relative"})(up||(Mn.TokenFormat=up={}));var No;(function(t){t.method="textDocument/semanticTokens",t.type=new Vi.RegistrationType(t.method)})(No||(Mn.SemanticTokensRegistrationType=No={}));var dp;(function(t){t.method="textDocument/semanticTokens/full",t.messageDirection=Vi.MessageDirection.clientToServer,t.type=new Vi.ProtocolRequestType(t.method),t.registrationMethod=No.method})(dp||(Mn.SemanticTokensRequest=dp={}));var fp;(function(t){t.method="textDocument/semanticTokens/full/delta",t.messageDirection=Vi.MessageDirection.clientToServer,t.type=new Vi.ProtocolRequestType(t.method),t.registrationMethod=No.method})(fp||(Mn.SemanticTokensDeltaRequest=fp={}));var hp;(function(t){t.method="textDocument/semanticTokens/range",t.messageDirection=Vi.MessageDirection.clientToServer,t.type=new Vi.ProtocolRequestType(t.method),t.registrationMethod=No.method})(hp||(Mn.SemanticTokensRangeRequest=hp={}));var gp;(function(t){t.method="workspace/semanticTokens/refresh",t.messageDirection=Vi.MessageDirection.serverToClient,t.type=new Vi.ProtocolRequestType0(t.method)})(gp||(Mn.SemanticTokensRefreshRequest=gp={}));var Nc={};Object.defineProperty(Nc,"__esModule",{value:!0});Nc.ShowDocumentRequest=void 0;const pp=ze;var mp;(function(t){t.method="window/showDocument",t.messageDirection=pp.MessageDirection.serverToClient,t.type=new pp.ProtocolRequestType(t.method)})(mp||(Nc.ShowDocumentRequest=mp={}));var $c={};Object.defineProperty($c,"__esModule",{value:!0});$c.LinkedEditingRangeRequest=void 0;const yp=ze;var bp;(function(t){t.method="textDocument/linkedEditingRange",t.messageDirection=yp.MessageDirection.clientToServer,t.type=new yp.ProtocolRequestType(t.method)})(bp||($c.LinkedEditingRangeRequest=bp={}));var hn={};Object.defineProperty(hn,"__esModule",{value:!0});hn.WillDeleteFilesRequest=hn.DidDeleteFilesNotification=hn.DidRenameFilesNotification=hn.WillRenameFilesRequest=hn.DidCreateFilesNotification=hn.WillCreateFilesRequest=hn.FileOperationPatternKind=void 0;const Qn=ze;var vp;(function(t){t.file="file",t.folder="folder"})(vp||(hn.FileOperationPatternKind=vp={}));var wp;(function(t){t.method="workspace/willCreateFiles",t.messageDirection=Qn.MessageDirection.clientToServer,t.type=new Qn.ProtocolRequestType(t.method)})(wp||(hn.WillCreateFilesRequest=wp={}));var Cp;(function(t){t.method="workspace/didCreateFiles",t.messageDirection=Qn.MessageDirection.clientToServer,t.type=new Qn.ProtocolNotificationType(t.method)})(Cp||(hn.DidCreateFilesNotification=Cp={}));var _p;(function(t){t.method="workspace/willRenameFiles",t.messageDirection=Qn.MessageDirection.clientToServer,t.type=new Qn.ProtocolRequestType(t.method)})(_p||(hn.WillRenameFilesRequest=_p={}));var Sp;(function(t){t.method="workspace/didRenameFiles",t.messageDirection=Qn.MessageDirection.clientToServer,t.type=new Qn.ProtocolNotificationType(t.method)})(Sp||(hn.DidRenameFilesNotification=Sp={}));var Dp;(function(t){t.method="workspace/didDeleteFiles",t.messageDirection=Qn.MessageDirection.clientToServer,t.type=new Qn.ProtocolNotificationType(t.method)})(Dp||(hn.DidDeleteFilesNotification=Dp={}));var Tp;(function(t){t.method="workspace/willDeleteFiles",t.messageDirection=Qn.MessageDirection.clientToServer,t.type=new Qn.ProtocolRequestType(t.method)})(Tp||(hn.WillDeleteFilesRequest=Tp={}));var lr={};Object.defineProperty(lr,"__esModule",{value:!0});lr.MonikerRequest=lr.MonikerKind=lr.UniquenessLevel=void 0;const kp=ze;var Rp;(function(t){t.document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global"})(Rp||(lr.UniquenessLevel=Rp={}));var xp;(function(t){t.$import="import",t.$export="export",t.local="local"})(xp||(lr.MonikerKind=xp={}));var Ip;(function(t){t.method="textDocument/moniker",t.messageDirection=kp.MessageDirection.clientToServer,t.type=new kp.ProtocolRequestType(t.method)})(Ip||(lr.MonikerRequest=Ip={}));var ur={};Object.defineProperty(ur,"__esModule",{value:!0});ur.TypeHierarchySubtypesRequest=ur.TypeHierarchySupertypesRequest=ur.TypeHierarchyPrepareRequest=void 0;const Ns=ze;var Ep;(function(t){t.method="textDocument/prepareTypeHierarchy",t.messageDirection=Ns.MessageDirection.clientToServer,t.type=new Ns.ProtocolRequestType(t.method)})(Ep||(ur.TypeHierarchyPrepareRequest=Ep={}));var Pp;(function(t){t.method="typeHierarchy/supertypes",t.messageDirection=Ns.MessageDirection.clientToServer,t.type=new Ns.ProtocolRequestType(t.method)})(Pp||(ur.TypeHierarchySupertypesRequest=Pp={}));var Ap;(function(t){t.method="typeHierarchy/subtypes",t.messageDirection=Ns.MessageDirection.clientToServer,t.type=new Ns.ProtocolRequestType(t.method)})(Ap||(ur.TypeHierarchySubtypesRequest=Ap={}));var $s={};Object.defineProperty($s,"__esModule",{value:!0});$s.InlineValueRefreshRequest=$s.InlineValueRequest=void 0;const Va=ze;var Mp;(function(t){t.method="textDocument/inlineValue",t.messageDirection=Va.MessageDirection.clientToServer,t.type=new Va.ProtocolRequestType(t.method)})(Mp||($s.InlineValueRequest=Mp={}));var Op;(function(t){t.method="workspace/inlineValue/refresh",t.messageDirection=Va.MessageDirection.serverToClient,t.type=new Va.ProtocolRequestType0(t.method)})(Op||($s.InlineValueRefreshRequest=Op={}));var dr={};Object.defineProperty(dr,"__esModule",{value:!0});dr.InlayHintRefreshRequest=dr.InlayHintResolveRequest=dr.InlayHintRequest=void 0;const qs=ze;var Fp;(function(t){t.method="textDocument/inlayHint",t.messageDirection=qs.MessageDirection.clientToServer,t.type=new qs.ProtocolRequestType(t.method)})(Fp||(dr.InlayHintRequest=Fp={}));var Lp;(function(t){t.method="inlayHint/resolve",t.messageDirection=qs.MessageDirection.clientToServer,t.type=new qs.ProtocolRequestType(t.method)})(Lp||(dr.InlayHintResolveRequest=Lp={}));var Np;(function(t){t.method="workspace/inlayHint/refresh",t.messageDirection=qs.MessageDirection.serverToClient,t.type=new qs.ProtocolRequestType0(t.method)})(Np||(dr.InlayHintRefreshRequest=Np={}));var Zn={};Object.defineProperty(Zn,"__esModule",{value:!0});Zn.DiagnosticRefreshRequest=Zn.WorkspaceDiagnosticRequest=Zn.DocumentDiagnosticRequest=Zn.DocumentDiagnosticReportKind=Zn.DiagnosticServerCancellationData=void 0;const L2=Yr,D4=At,js=ze;var $p;(function(t){function e(n){const i=n;return i&&D4.boolean(i.retriggerRequest)}t.is=e})($p||(Zn.DiagnosticServerCancellationData=$p={}));var qp;(function(t){t.Full="full",t.Unchanged="unchanged"})(qp||(Zn.DocumentDiagnosticReportKind=qp={}));var jp;(function(t){t.method="textDocument/diagnostic",t.messageDirection=js.MessageDirection.clientToServer,t.type=new js.ProtocolRequestType(t.method),t.partialResult=new L2.ProgressType})(jp||(Zn.DocumentDiagnosticRequest=jp={}));var Hp;(function(t){t.method="workspace/diagnostic",t.messageDirection=js.MessageDirection.clientToServer,t.type=new js.ProtocolRequestType(t.method),t.partialResult=new L2.ProgressType})(Hp||(Zn.WorkspaceDiagnosticRequest=Hp={}));var Wp;(function(t){t.method="workspace/diagnostic/refresh",t.messageDirection=js.MessageDirection.serverToClient,t.type=new js.ProtocolRequestType0(t.method)})(Wp||(Zn.DiagnosticRefreshRequest=Wp={}));var Pt={};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.DidCloseNotebookDocumentNotification=Pt.DidSaveNotebookDocumentNotification=Pt.DidChangeNotebookDocumentNotification=Pt.NotebookCellArrayChange=Pt.DidOpenNotebookDocumentNotification=Pt.NotebookDocumentSyncRegistrationType=Pt.NotebookDocument=Pt.NotebookCell=Pt.ExecutionSummary=Pt.NotebookCellKind=void 0;const $o=Z1,li=At,_i=ze;var Ud;(function(t){t.Markup=1,t.Code=2;function e(n){return n===1||n===2}t.is=e})(Ud||(Pt.NotebookCellKind=Ud={}));var zd;(function(t){function e(r,s){const o={executionOrder:r};return(s===!0||s===!1)&&(o.success=s),o}t.create=e;function n(r){const s=r;return li.objectLiteral(s)&&$o.uinteger.is(s.executionOrder)&&(s.success===void 0||li.boolean(s.success))}t.is=n;function i(r,s){return r===s?!0:r==null||s===null||s===void 0?!1:r.executionOrder===s.executionOrder&&r.success===s.success}t.equals=i})(zd||(Pt.ExecutionSummary=zd={}));var Ka;(function(t){function e(s,o){return{kind:s,document:o}}t.create=e;function n(s){const o=s;return li.objectLiteral(o)&&Ud.is(o.kind)&&$o.DocumentUri.is(o.document)&&(o.metadata===void 0||li.objectLiteral(o.metadata))}t.is=n;function i(s,o){const a=new Set;return s.document!==o.document&&a.add("document"),s.kind!==o.kind&&a.add("kind"),s.executionSummary!==o.executionSummary&&a.add("executionSummary"),(s.metadata!==void 0||o.metadata!==void 0)&&!r(s.metadata,o.metadata)&&a.add("metadata"),(s.executionSummary!==void 0||o.executionSummary!==void 0)&&!zd.equals(s.executionSummary,o.executionSummary)&&a.add("executionSummary"),a}t.diff=i;function r(s,o){if(s===o)return!0;if(s==null||o===null||o===void 0||typeof s!=typeof o||typeof s!="object")return!1;const a=Array.isArray(s),c=Array.isArray(o);if(a!==c)return!1;if(a&&c){if(s.length!==o.length)return!1;for(let l=0;l<s.length;l++)if(!r(s[l],o[l]))return!1}if(li.objectLiteral(s)&&li.objectLiteral(o)){const l=Object.keys(s),f=Object.keys(o);if(l.length!==f.length||(l.sort(),f.sort(),!r(l,f)))return!1;for(let g=0;g<l.length;g++){const p=l[g];if(!r(s[p],o[p]))return!1}}return!0}})(Ka||(Pt.NotebookCell=Ka={}));var Up;(function(t){function e(i,r,s,o){return{uri:i,notebookType:r,version:s,cells:o}}t.create=e;function n(i){const r=i;return li.objectLiteral(r)&&li.string(r.uri)&&$o.integer.is(r.version)&&li.typedArray(r.cells,Ka.is)}t.is=n})(Up||(Pt.NotebookDocument=Up={}));var Hs;(function(t){t.method="notebookDocument/sync",t.messageDirection=_i.MessageDirection.clientToServer,t.type=new _i.RegistrationType(t.method)})(Hs||(Pt.NotebookDocumentSyncRegistrationType=Hs={}));var zp;(function(t){t.method="notebookDocument/didOpen",t.messageDirection=_i.MessageDirection.clientToServer,t.type=new _i.ProtocolNotificationType(t.method),t.registrationMethod=Hs.method})(zp||(Pt.DidOpenNotebookDocumentNotification=zp={}));var Bp;(function(t){function e(i){const r=i;return li.objectLiteral(r)&&$o.uinteger.is(r.start)&&$o.uinteger.is(r.deleteCount)&&(r.cells===void 0||li.typedArray(r.cells,Ka.is))}t.is=e;function n(i,r,s){const o={start:i,deleteCount:r};return s!==void 0&&(o.cells=s),o}t.create=n})(Bp||(Pt.NotebookCellArrayChange=Bp={}));var Vp;(function(t){t.method="notebookDocument/didChange",t.messageDirection=_i.MessageDirection.clientToServer,t.type=new _i.ProtocolNotificationType(t.method),t.registrationMethod=Hs.method})(Vp||(Pt.DidChangeNotebookDocumentNotification=Vp={}));var Kp;(function(t){t.method="notebookDocument/didSave",t.messageDirection=_i.MessageDirection.clientToServer,t.type=new _i.ProtocolNotificationType(t.method),t.registrationMethod=Hs.method})(Kp||(Pt.DidSaveNotebookDocumentNotification=Kp={}));var Gp;(function(t){t.method="notebookDocument/didClose",t.messageDirection=_i.MessageDirection.clientToServer,t.type=new _i.ProtocolNotificationType(t.method),t.registrationMethod=Hs.method})(Gp||(Pt.DidCloseNotebookDocumentNotification=Gp={}));var qc={};Object.defineProperty(qc,"__esModule",{value:!0});qc.InlineCompletionRequest=void 0;const Jp=ze;var Xp;(function(t){t.method="textDocument/inlineCompletion",t.messageDirection=Jp.MessageDirection.clientToServer,t.type=new Jp.ProtocolRequestType(t.method)})(Xp||(qc.InlineCompletionRequest=Xp={}));(function(t){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.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.FoldingRangeRefreshRequest=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.DocumentRangesFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolResolveRequest=void 0,t.InlineCompletionRequest=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=t.TypeHierarchySubtypesRequest=t.TypeHierarchyPrepareRequest=void 0;const e=ze,n=Z1,i=At,r=Ac;Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return r.ImplementationRequest}});const s=Mc;Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return s.TypeDefinitionRequest}});const o=Ms;Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return o.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return o.DidChangeWorkspaceFoldersNotification}});const a=Oc;Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return a.ConfigurationRequest}});const c=Os;Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return c.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return c.ColorPresentationRequest}});const l=Fs;Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return l.FoldingRangeRequest}}),Object.defineProperty(t,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return l.FoldingRangeRefreshRequest}});const f=Fc;Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return f.DeclarationRequest}});const g=Lc;Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return g.SelectionRangeRequest}});const p=ar;Object.defineProperty(t,"WorkDoneProgress",{enumerable:!0,get:function(){return p.WorkDoneProgress}}),Object.defineProperty(t,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return p.WorkDoneProgressCreateRequest}}),Object.defineProperty(t,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return p.WorkDoneProgressCancelNotification}});const _=cr;Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return _.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return _.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return _.CallHierarchyPrepareRequest}});const C=Mn;Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return C.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return C.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return C.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return C.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return C.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return C.SemanticTokensRegistrationType}});const k=Nc;Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return k.ShowDocumentRequest}});const A=$c;Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return A.LinkedEditingRangeRequest}});const H=hn;Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return H.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return H.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return H.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return H.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return H.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return H.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return H.WillDeleteFilesRequest}});const K=lr;Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return K.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return K.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return K.MonikerRequest}});const j=ur;Object.defineProperty(t,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return j.TypeHierarchyPrepareRequest}}),Object.defineProperty(t,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return j.TypeHierarchySubtypesRequest}}),Object.defineProperty(t,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return j.TypeHierarchySupertypesRequest}});const B=$s;Object.defineProperty(t,"InlineValueRequest",{enumerable:!0,get:function(){return B.InlineValueRequest}}),Object.defineProperty(t,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return B.InlineValueRefreshRequest}});const z=dr;Object.defineProperty(t,"InlayHintRequest",{enumerable:!0,get:function(){return z.InlayHintRequest}}),Object.defineProperty(t,"InlayHintResolveRequest",{enumerable:!0,get:function(){return z.InlayHintResolveRequest}}),Object.defineProperty(t,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return z.InlayHintRefreshRequest}});const ne=Zn;Object.defineProperty(t,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return ne.DiagnosticServerCancellationData}}),Object.defineProperty(t,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return ne.DocumentDiagnosticReportKind}}),Object.defineProperty(t,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return ne.DocumentDiagnosticRequest}}),Object.defineProperty(t,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return ne.WorkspaceDiagnosticRequest}}),Object.defineProperty(t,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return ne.DiagnosticRefreshRequest}});const G=Pt;Object.defineProperty(t,"NotebookCellKind",{enumerable:!0,get:function(){return G.NotebookCellKind}}),Object.defineProperty(t,"ExecutionSummary",{enumerable:!0,get:function(){return G.ExecutionSummary}}),Object.defineProperty(t,"NotebookCell",{enumerable:!0,get:function(){return G.NotebookCell}}),Object.defineProperty(t,"NotebookDocument",{enumerable:!0,get:function(){return G.NotebookDocument}}),Object.defineProperty(t,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return G.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(t,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return G.DidOpenNotebookDocumentNotification}}),Object.defineProperty(t,"NotebookCellArrayChange",{enumerable:!0,get:function(){return G.NotebookCellArrayChange}}),Object.defineProperty(t,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return G.DidChangeNotebookDocumentNotification}}),Object.defineProperty(t,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return G.DidSaveNotebookDocumentNotification}}),Object.defineProperty(t,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return G.DidCloseNotebookDocumentNotification}});const Z=qc;Object.defineProperty(t,"InlineCompletionRequest",{enumerable:!0,get:function(){return Z.InlineCompletionRequest}});var ie;(function(w){function pe(me){const X=me;return i.string(X)||i.string(X.language)||i.string(X.scheme)||i.string(X.pattern)}w.is=pe})(ie||(t.TextDocumentFilter=ie={}));var Le;(function(w){function pe(me){const X=me;return i.objectLiteral(X)&&(i.string(X.notebookType)||i.string(X.scheme)||i.string(X.pattern))}w.is=pe})(Le||(t.NotebookDocumentFilter=Le={}));var $;(function(w){function pe(me){const X=me;return i.objectLiteral(X)&&(i.string(X.notebook)||Le.is(X.notebook))&&(X.language===void 0||i.string(X.language))}w.is=pe})($||(t.NotebookCellTextDocumentFilter=$={}));var E;(function(w){function pe(me){if(!Array.isArray(me))return!1;for(let X of me)if(!i.string(X)&&!ie.is(X)&&!$.is(X))return!1;return!0}w.is=pe})(E||(t.DocumentSelector=E={}));var v;(function(w){w.method="client/registerCapability",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolRequestType(w.method)})(v||(t.RegistrationRequest=v={}));var R;(function(w){w.method="client/unregisterCapability",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolRequestType(w.method)})(R||(t.UnregistrationRequest=R={}));var P;(function(w){w.Create="create",w.Rename="rename",w.Delete="delete"})(P||(t.ResourceOperationKind=P={}));var I;(function(w){w.Abort="abort",w.Transactional="transactional",w.TextOnlyTransactional="textOnlyTransactional",w.Undo="undo"})(I||(t.FailureHandlingKind=I={}));var V;(function(w){w.UTF8="utf-8",w.UTF16="utf-16",w.UTF32="utf-32"})(V||(t.PositionEncodingKind=V={}));var Ae;(function(w){function pe(me){const X=me;return X&&i.string(X.id)&&X.id.length>0}w.hasId=pe})(Ae||(t.StaticRegistrationOptions=Ae={}));var ve;(function(w){function pe(me){const X=me;return X&&(X.documentSelector===null||E.is(X.documentSelector))}w.is=pe})(ve||(t.TextDocumentRegistrationOptions=ve={}));var lt;(function(w){function pe(X){const h=X;return i.objectLiteral(h)&&(h.workDoneProgress===void 0||i.boolean(h.workDoneProgress))}w.is=pe;function me(X){const h=X;return h&&i.boolean(h.workDoneProgress)}w.hasWorkDoneProgress=me})(lt||(t.WorkDoneProgressOptions=lt={}));var He;(function(w){w.method="initialize",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(He||(t.InitializeRequest=He={}));var Ee;(function(w){w.unknownProtocolVersion=1})(Ee||(t.InitializeErrorCodes=Ee={}));var st;(function(w){w.method="initialized",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(st||(t.InitializedNotification=st={}));var Fe;(function(w){w.method="shutdown",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType0(w.method)})(Fe||(t.ShutdownRequest=Fe={}));var ot;(function(w){w.method="exit",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType0(w.method)})(ot||(t.ExitNotification=ot={}));var Je;(function(w){w.method="workspace/didChangeConfiguration",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(Je||(t.DidChangeConfigurationNotification=Je={}));var Ft;(function(w){w.Error=1,w.Warning=2,w.Info=3,w.Log=4,w.Debug=5})(Ft||(t.MessageType=Ft={}));var Xe;(function(w){w.method="window/showMessage",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolNotificationType(w.method)})(Xe||(t.ShowMessageNotification=Xe={}));var Ye;(function(w){w.method="window/showMessageRequest",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolRequestType(w.method)})(Ye||(t.ShowMessageRequest=Ye={}));var vt;(function(w){w.method="window/logMessage",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolNotificationType(w.method)})(vt||(t.LogMessageNotification=vt={}));var at;(function(w){w.method="telemetry/event",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolNotificationType(w.method)})(at||(t.TelemetryEventNotification=at={}));var oe;(function(w){w.None=0,w.Full=1,w.Incremental=2})(oe||(t.TextDocumentSyncKind=oe={}));var pt;(function(w){w.method="textDocument/didOpen",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(pt||(t.DidOpenTextDocumentNotification=pt={}));var we;(function(w){function pe(X){let h=X;return h!=null&&typeof h.text=="string"&&h.range!==void 0&&(h.rangeLength===void 0||typeof h.rangeLength=="number")}w.isIncremental=pe;function me(X){let h=X;return h!=null&&typeof h.text=="string"&&h.range===void 0&&h.rangeLength===void 0}w.isFull=me})(we||(t.TextDocumentContentChangeEvent=we={}));var Qe;(function(w){w.method="textDocument/didChange",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(Qe||(t.DidChangeTextDocumentNotification=Qe={}));var en;(function(w){w.method="textDocument/didClose",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(en||(t.DidCloseTextDocumentNotification=en={}));var tn;(function(w){w.method="textDocument/didSave",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(tn||(t.DidSaveTextDocumentNotification=tn={}));var Wt;(function(w){w.Manual=1,w.AfterDelay=2,w.FocusOut=3})(Wt||(t.TextDocumentSaveReason=Wt={}));var Rt;(function(w){w.method="textDocument/willSave",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(Rt||(t.WillSaveTextDocumentNotification=Rt={}));var xt;(function(w){w.method="textDocument/willSaveWaitUntil",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(xt||(t.WillSaveTextDocumentWaitUntilRequest=xt={}));var qe;(function(w){w.method="workspace/didChangeWatchedFiles",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(qe||(t.DidChangeWatchedFilesNotification=qe={}));var Ut;(function(w){w.Created=1,w.Changed=2,w.Deleted=3})(Ut||(t.FileChangeType=Ut={}));var Ln;(function(w){function pe(me){const X=me;return i.objectLiteral(X)&&(n.URI.is(X.baseUri)||n.WorkspaceFolder.is(X.baseUri))&&i.string(X.pattern)}w.is=pe})(Ln||(t.RelativePattern=Ln={}));var Dn;(function(w){w.Create=1,w.Change=2,w.Delete=4})(Dn||(t.WatchKind=Dn={}));var Tn;(function(w){w.method="textDocument/publishDiagnostics",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolNotificationType(w.method)})(Tn||(t.PublishDiagnosticsNotification=Tn={}));var Nn;(function(w){w.Invoked=1,w.TriggerCharacter=2,w.TriggerForIncompleteCompletions=3})(Nn||(t.CompletionTriggerKind=Nn={}));var kn;(function(w){w.method="textDocument/completion",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(kn||(t.CompletionRequest=kn={}));var ln;(function(w){w.method="completionItem/resolve",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(ln||(t.CompletionResolveRequest=ln={}));var St;(function(w){w.method="textDocument/hover",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(St||(t.HoverRequest=St={}));var mn;(function(w){w.Invoked=1,w.TriggerCharacter=2,w.ContentChange=3})(mn||(t.SignatureHelpTriggerKind=mn={}));var zn;(function(w){w.method="textDocument/signatureHelp",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(zn||(t.SignatureHelpRequest=zn={}));var Kt;(function(w){w.method="textDocument/definition",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Kt||(t.DefinitionRequest=Kt={}));var nn;(function(w){w.method="textDocument/references",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(nn||(t.ReferencesRequest=nn={}));var yn;(function(w){w.method="textDocument/documentHighlight",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(yn||(t.DocumentHighlightRequest=yn={}));var Gt;(function(w){w.method="textDocument/documentSymbol",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Gt||(t.DocumentSymbolRequest=Gt={}));var Rn;(function(w){w.method="textDocument/codeAction",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Rn||(t.CodeActionRequest=Rn={}));var bn;(function(w){w.method="codeAction/resolve",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(bn||(t.CodeActionResolveRequest=bn={}));var xn;(function(w){w.method="workspace/symbol",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(xn||(t.WorkspaceSymbolRequest=xn={}));var Bn;(function(w){w.method="workspaceSymbol/resolve",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Bn||(t.WorkspaceSymbolResolveRequest=Bn={}));var vn;(function(w){w.method="textDocument/codeLens",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(vn||(t.CodeLensRequest=vn={}));var mt;(function(w){w.method="codeLens/resolve",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(mt||(t.CodeLensResolveRequest=mt={}));var In;(function(w){w.method="workspace/codeLens/refresh",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolRequestType0(w.method)})(In||(t.CodeLensRefreshRequest=In={}));var $n;(function(w){w.method="textDocument/documentLink",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})($n||(t.DocumentLinkRequest=$n={}));var Lt;(function(w){w.method="documentLink/resolve",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Lt||(t.DocumentLinkResolveRequest=Lt={}));var y;(function(w){w.method="textDocument/formatting",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(y||(t.DocumentFormattingRequest=y={}));var L;(function(w){w.method="textDocument/rangeFormatting",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(L||(t.DocumentRangeFormattingRequest=L={}));var te;(function(w){w.method="textDocument/rangesFormatting",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(te||(t.DocumentRangesFormattingRequest=te={}));var Te;(function(w){w.method="textDocument/onTypeFormatting",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Te||(t.DocumentOnTypeFormattingRequest=Te={}));var xe;(function(w){w.Identifier=1})(xe||(t.PrepareSupportDefaultBehavior=xe={}));var ut;(function(w){w.method="textDocument/rename",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(ut||(t.RenameRequest=ut={}));var T;(function(w){w.method="textDocument/prepareRename",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(T||(t.PrepareRenameRequest=T={}));var U;(function(w){w.method="workspace/executeCommand",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(U||(t.ExecuteCommandRequest=U={}));var Y;(function(w){w.method="workspace/applyEdit",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolRequestType("workspace/applyEdit")})(Y||(t.ApplyWorkspaceEditRequest=Y={}))})(M2);var jc={};Object.defineProperty(jc,"__esModule",{value:!0});jc.createProtocolConnection=void 0;const Zp=Yr;function T4(t,e,n,i){return Zp.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,Zp.createMessageConnection)(t,e,n,i)}jc.createProtocolConnection=T4;(function(t){var e=_t&&_t.__createBinding||(Object.create?function(s,o,a,c){c===void 0&&(c=a);var l=Object.getOwnPropertyDescriptor(o,a);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(s,c,l)}:function(s,o,a,c){c===void 0&&(c=a),s[c]=o[a]}),n=_t&&_t.__exportStar||function(s,o){for(var a in s)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&e(o,s,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,n(Yr,t),n(Z1,t),n(ze,t),n(M2,t);var i=jc;Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:function(){return i.createProtocolConnection}});var r;(function(s){s.lspReservedErrorRangeStart=-32899,s.RequestFailed=-32803,s.ServerCancelled=-32802,s.ContentModified=-32801,s.RequestCancelled=-32800,s.lspReservedErrorRangeEnd=-32800})(r||(t.LSPErrorCodes=r={}))})(A2);(function(t){var e=_t&&_t.__createBinding||(Object.create?function(s,o,a,c){c===void 0&&(c=a);var l=Object.getOwnPropertyDescriptor(o,a);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(s,c,l)}:function(s,o,a,c){c===void 0&&(c=a),s[c]=o[a]}),n=_t&&_t.__exportStar||function(s,o){for(var a in s)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&e(o,s,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const i=qg;n(qg,t),n(A2,t);function r(s,o,a,c){return(0,i.createMessageConnection)(s,o,a,c)}t.createProtocolConnection=r})(ye);var De={};function re(t,e,n,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}function k4(t,e,n=0,i=t.length){let r=n,s=i;for(;r<s;){const o=Math.floor((r+s)/2);e(t[o])?r=o+1:s=o}return r-1}const _c=class _c{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(_c.assertInvariants){if(this._prevFindLastPredicate){for(const i of this._array)if(this._prevFindLastPredicate(i)&&!e(i))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=e}const n=k4(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};_c.assertInvariants=!1;let Yp=_c;function Bd(t,e,n=(i,r)=>i===r){if(t===e)return!0;if(!t||!e||t.length!==e.length)return!1;for(let i=0,r=t.length;i<r;i++)if(!n(t[i],e[i]))return!1;return!0}function R4(t){let e=0;for(let n=0;n<t.length;n++)t[n]&&(t[e]=t[n],e+=1);t.length=e}function Qp(t,e){let n;if(typeof e=="number"){let i=e;n=()=>{const r=Math.sin(i++)*179426549;return r-Math.floor(r)}}else n=Math.random;for(let i=t.length-1;i>0;i-=1){const r=Math.floor(n()*(i+1)),s=t[i];t[i]=t[r],t[r]=s}}function x4(t){return Array.isArray(t)?t:[t]}var Vd;(function(t){function e(s){return s<0}t.isLessThan=e;function n(s){return s<=0}t.isLessThanOrEqual=n;function i(s){return s>0}t.isGreaterThan=i;function r(s){return s===0}t.isNeitherLessOrGreaterThan=r,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(Vd||(Vd={}));function I4(t,e){return(n,i)=>e(t(n),t(i))}const E4=(t,e)=>t-e,hs=class hs{constructor(e){this.iterate=e}forEach(e){this.iterate(n=>(e(n),!0))}toArray(){const e=[];return this.iterate(n=>(e.push(n),!0)),e}filter(e){return new hs(n=>this.iterate(i=>e(i)?n(i):!0))}map(e){return new hs(n=>this.iterate(i=>n(e(i))))}some(e){let n=!1;return this.iterate(i=>(n=e(i),!n)),n}findFirst(e){let n;return this.iterate(i=>e(i)?(n=i,!1):!0),n}findLast(e){let n;return this.iterate(i=>(e(i)&&(n=i),!0)),n}findLastMaxBy(e){let n,i=!0;return this.iterate(r=>((i||Vd.isGreaterThan(e(r,n)))&&(i=!1,n=r),!0)),n}};hs.empty=new hs(e=>{});let em=hs;class P4{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?qo.isErrorNoTelemetry(e)?new qo(e.message+`
|
|
64
80
|
|
|
65
81
|
`+e.stack):new Error(e.message+`
|
|
66
82
|
|
|
67
|
-
`+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(n=>{n(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const D4=new S4;function F2(t){T4(t)||D4.onUnexpectedError(t)}const Vd="Canceled";function T4(t){return t instanceof L2?!0:t instanceof Error&&t.name===Vd&&t.message===Vd}let L2=class extends Error{constructor(){super(Vd),this.name=this.message}};function Ae(t){return t?new Error(`Illegal argument: ${t}`):new Error("Illegal argument")}function k4(t){return t?new Error(`Illegal state: ${t}`):new Error("Illegal state")}class qo extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof qo)return e;const n=new qo;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}var Zg,em;class R4{constructor(e,n){this.uri=e,this.value=n}}function x4(t){return Array.isArray(t)}const Li=class Li{constructor(e,n){if(this[Zg]="ResourceMap",e instanceof Li)this.map=new Map(e.map),this.toKey=n??Li.defaultToKey;else if(x4(e)){this.map=new Map,this.toKey=n??Li.defaultToKey;for(const[r,i]of e)this.set(r,i)}else this.map=new Map,this.toKey=e??Li.defaultToKey}set(e,n){return this.map.set(this.toKey(e),new R4(e,n)),this}get(e){var n;return(n=this.map.get(this.toKey(e)))==null?void 0:n.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,n){typeof n<"u"&&(e=e.bind(n));for(const[r,i]of this.map)e(i.value,i.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(Zg=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}};Li.defaultToKey=e=>e.toString();let Ga=Li;class E4{constructor(){this[em]="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(){var e;return(e=this._head)==null?void 0:e.value}get last(){var e;return(e=this._tail)==null?void 0:e.value}has(e){return this._map.has(e)}get(e,n=0){const r=this._map.get(e);if(r)return n!==0&&this.touch(r,n),r.value}set(e,n,r=0){let i=this._map.get(e);if(i)i.value=n,r!==0&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.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,n){const r=this._state;let i=this._head;for(;i;){if(n?e.bind(n)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.key,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}values(){const e=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.value,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}entries(){const e=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:[r.key,r.value],done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}[(em=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._tail,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.previous,r--;this._tail=n,this._size=r,n&&(n.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");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 n=e.next,r=e.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(e===this._head)return;const r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===2){if(e===this._tail)return;const r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((n,r)=>{e.push([r,n])}),e}fromJSON(e){this.clear();for(const[n,r]of e)this.set(n,r)}}class P4 extends E4{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),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,n=2){return super.get(e,n)}peek(e){return super.get(e,0)}set(e,n){return super.set(e,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class N2 extends P4{constructor(e,n=1){super(e,n)}trim(e){this.trimOld(e)}set(e,n){return super.set(e,n),this.checkTrim(),this}}class I4{constructor(){this.map=new Map}add(e,n){let r=this.map.get(e);r||(r=new Set,this.map.set(e,r)),r.add(n)}delete(e,n){const r=this.map.get(e);r&&(r.delete(n),r.size===0&&this.map.delete(e))}forEach(e,n){const r=this.map.get(e);r&&r.forEach(n)}get(e){const n=this.map.get(e);return n||new Set}}function M4(t,e){const n=this;let r=!1,i;return function(){if(r)return i;if(r=!0,e)try{i=t.apply(n,arguments)}finally{e()}else i=t.apply(n,arguments);return i}}function O4(t,e){const n=Object.create(null);for(const r of t){const i=e(r);let s=n[i];s||(s=n[i]=[]),s.push(r)}return n}var Kd;(function(t){function e(j){return j&&typeof j=="object"&&typeof j[Symbol.iterator]=="function"}t.is=e;const n=Object.freeze([]);function r(){return n}t.empty=r;function*i(j){yield j}t.single=i;function s(j){return e(j)?j:i(j)}t.wrap=s;function o(j){return j||n}t.from=o;function*a(j){for(let B=j.length-1;B>=0;B--)yield j[B]}t.reverse=a;function c(j){return!j||j[Symbol.iterator]().next().done===!0}t.isEmpty=c;function l(j){return j[Symbol.iterator]().next().value}t.first=l;function f(j,B){for(const z of j)if(B(z))return!0;return!1}t.some=f;function p(j,B){for(const z of j)if(B(z))return z}t.find=p;function*g(j,B){for(const z of j)B(z)&&(yield z)}t.filter=g;function*_(j,B){let z=0;for(const ne of j)yield B(ne,z++)}t.map=_;function*C(...j){for(const B of j)yield*B}t.concat=C;function k(j,B,z){let ne=z;for(const G of j)ne=B(ne,G);return ne}t.reduce=k;function*M(j,B,z=j.length){for(B<0&&(B+=j.length),z<0?z+=j.length:z>j.length&&(z=j.length);B<z;B++)yield j[B]}t.slice=M;function H(j,B=Number.POSITIVE_INFINITY){const z=[];if(B===0)return[z,j];const ne=j[Symbol.iterator]();for(let G=0;G<B;G++){const Y=ne.next();if(Y.done)return[z,t.empty()];z.push(Y.value)}return[z,{[Symbol.iterator](){return ne}}]}t.consume=H;async function K(j){const B=[];for await(const z of j)B.push(z);return Promise.resolve(B)}t.asyncToArray=K})(Kd||(Kd={}));const Sc=class Sc{constructor(){this.livingDisposables=new Map}getDisposableData(e){let n=this.livingDisposables.get(e);return n||(n={parent:null,source:null,isSingleton:!1,value:e,idx:Sc.idx++},this.livingDisposables.set(e,n)),n}trackDisposable(e){const n=this.getDisposableData(e);n.source||(n.source=new Error().stack)}setParent(e,n){const r=this.getDisposableData(e);r.parent=n}markAsDisposed(e){this.livingDisposables.delete(e)}markAsSingleton(e){this.getDisposableData(e).isSingleton=!0}getRootParent(e,n){const r=n.get(e);if(r)return r;const i=e.parent?this.getRootParent(this.getDisposableData(e.parent),n):e;return n.set(e,i),i}getTrackedDisposables(){const e=new Map;return[...this.livingDisposables.entries()].filter(([,r])=>r.source!==null&&!this.getRootParent(r,e).isSingleton).flatMap(([r])=>r)}computeLeakingDisposables(e=10,n){let r;if(n)r=n;else{const c=new Map,l=[...this.livingDisposables.values()].filter(p=>p.source!==null&&!this.getRootParent(p,c).isSingleton);if(l.length===0)return;const f=new Set(l.map(p=>p.value));if(r=l.filter(p=>!(p.parent&&f.has(p.parent))),r.length===0)throw new Error("There are cyclic diposable chains!")}if(!r)return;function i(c){function l(p,g){for(;p.length>0&&g.some(_=>typeof _=="string"?_===p[0]:p[0].match(_));)p.shift()}const f=c.source.split(`
|
|
68
|
-
`).map(
|
|
69
|
-
`),c)}
|
|
70
|
-
`)).size}/${
|
|
71
|
-
`)),k=
|
|
83
|
+
`+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(n=>{n(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const A4=new P4;function N2(t){M4(t)||A4.onUnexpectedError(t)}const Kd="Canceled";function M4(t){return t instanceof $2?!0:t instanceof Error&&t.name===Kd&&t.message===Kd}let $2=class extends Error{constructor(){super(Kd),this.name=this.message}};function Oe(t){return t?new Error(`Illegal argument: ${t}`):new Error("Illegal argument")}function O4(t){return t?new Error(`Illegal state: ${t}`):new Error("Illegal state")}class qo extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof qo)return e;const n=new qo;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}var tm,nm;class F4{constructor(e,n){this.uri=e,this.value=n}}function L4(t){return Array.isArray(t)}const Lr=class Lr{constructor(e,n){if(this[tm]="ResourceMap",e instanceof Lr)this.map=new Map(e.map),this.toKey=n??Lr.defaultToKey;else if(L4(e)){this.map=new Map,this.toKey=n??Lr.defaultToKey;for(const[i,r]of e)this.set(i,r)}else this.map=new Map,this.toKey=e??Lr.defaultToKey}set(e,n){return this.map.set(this.toKey(e),new F4(e,n)),this}get(e){var n;return(n=this.map.get(this.toKey(e)))==null?void 0:n.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,n){typeof n<"u"&&(e=e.bind(n));for(const[i,r]of this.map)e(r.value,r.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(tm=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}};Lr.defaultToKey=e=>e.toString();let Ga=Lr;class N4{constructor(){this[nm]="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(){var e;return(e=this._head)==null?void 0:e.value}get last(){var e;return(e=this._tail)==null?void 0:e.value}has(e){return this._map.has(e)}get(e,n=0){const i=this._map.get(e);if(i)return n!==0&&this.touch(i,n),i.value}set(e,n,i=0){let r=this._map.get(e);if(r)r.value=n,i!==0&&this.touch(r,i);else{switch(r={key:e,value:n,next:void 0,previous:void 0},i){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.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,n){const i=this._state;let r=this._head;for(;r;){if(n?e.bind(n)(r.value,r.key,this):e(r.value,r.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.key,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}values(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.value,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}entries(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:[i.key,i.value],done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}[(nm=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.next,i--;this._head=n,this._size=i,n&&(n.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._tail,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.previous,i--;this._tail=n,this._size=i,n&&(n.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");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 n=e.next,i=e.previous;if(!n||!i)throw new Error("Invalid list");n.previous=i,i.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(e===this._head)return;const i=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===2){if(e===this._tail)return;const i=e.next,r=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((n,i)=>{e.push([i,n])}),e}fromJSON(e){this.clear();for(const[n,i]of e)this.set(n,i)}}class $4 extends N4{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),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,n=2){return super.get(e,n)}peek(e){return super.get(e,0)}set(e,n){return super.set(e,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class q2 extends $4{constructor(e,n=1){super(e,n)}trim(e){this.trimOld(e)}set(e,n){return super.set(e,n),this.checkTrim(),this}}class q4{constructor(){this.map=new Map}add(e,n){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(n)}delete(e,n){const i=this.map.get(e);i&&(i.delete(n),i.size===0&&this.map.delete(e))}forEach(e,n){const i=this.map.get(e);i&&i.forEach(n)}get(e){const n=this.map.get(e);return n||new Set}}function j4(t,e){const n=this;let i=!1,r;return function(){if(i)return r;if(i=!0,e)try{r=t.apply(n,arguments)}finally{e()}else r=t.apply(n,arguments);return r}}function H4(t,e){const n=Object.create(null);for(const i of t){const r=e(i);let s=n[r];s||(s=n[r]=[]),s.push(i)}return n}var Gd;(function(t){function e(j){return j&&typeof j=="object"&&typeof j[Symbol.iterator]=="function"}t.is=e;const n=Object.freeze([]);function i(){return n}t.empty=i;function*r(j){yield j}t.single=r;function s(j){return e(j)?j:r(j)}t.wrap=s;function o(j){return j||n}t.from=o;function*a(j){for(let B=j.length-1;B>=0;B--)yield j[B]}t.reverse=a;function c(j){return!j||j[Symbol.iterator]().next().done===!0}t.isEmpty=c;function l(j){return j[Symbol.iterator]().next().value}t.first=l;function f(j,B){for(const z of j)if(B(z))return!0;return!1}t.some=f;function g(j,B){for(const z of j)if(B(z))return z}t.find=g;function*p(j,B){for(const z of j)B(z)&&(yield z)}t.filter=p;function*_(j,B){let z=0;for(const ne of j)yield B(ne,z++)}t.map=_;function*C(...j){for(const B of j)yield*B}t.concat=C;function k(j,B,z){let ne=z;for(const G of j)ne=B(ne,G);return ne}t.reduce=k;function*A(j,B,z=j.length){for(B<0&&(B+=j.length),z<0?z+=j.length:z>j.length&&(z=j.length);B<z;B++)yield j[B]}t.slice=A;function H(j,B=Number.POSITIVE_INFINITY){const z=[];if(B===0)return[z,j];const ne=j[Symbol.iterator]();for(let G=0;G<B;G++){const Z=ne.next();if(Z.done)return[z,t.empty()];z.push(Z.value)}return[z,{[Symbol.iterator](){return ne}}]}t.consume=H;async function K(j){const B=[];for await(const z of j)B.push(z);return Promise.resolve(B)}t.asyncToArray=K})(Gd||(Gd={}));const Sc=class Sc{constructor(){this.livingDisposables=new Map}getDisposableData(e){let n=this.livingDisposables.get(e);return n||(n={parent:null,source:null,isSingleton:!1,value:e,idx:Sc.idx++},this.livingDisposables.set(e,n)),n}trackDisposable(e){const n=this.getDisposableData(e);n.source||(n.source=new Error().stack)}setParent(e,n){const i=this.getDisposableData(e);i.parent=n}markAsDisposed(e){this.livingDisposables.delete(e)}markAsSingleton(e){this.getDisposableData(e).isSingleton=!0}getRootParent(e,n){const i=n.get(e);if(i)return i;const r=e.parent?this.getRootParent(this.getDisposableData(e.parent),n):e;return n.set(e,r),r}getTrackedDisposables(){const e=new Map;return[...this.livingDisposables.entries()].filter(([,i])=>i.source!==null&&!this.getRootParent(i,e).isSingleton).flatMap(([i])=>i)}computeLeakingDisposables(e=10,n){let i;if(n)i=n;else{const c=new Map,l=[...this.livingDisposables.values()].filter(g=>g.source!==null&&!this.getRootParent(g,c).isSingleton);if(l.length===0)return;const f=new Set(l.map(g=>g.value));if(i=l.filter(g=>!(g.parent&&f.has(g.parent))),i.length===0)throw new Error("There are cyclic diposable chains!")}if(!i)return;function r(c){function l(g,p){for(;g.length>0&&p.some(_=>typeof _=="string"?_===g[0]:g[0].match(_));)g.shift()}const f=c.source.split(`
|
|
84
|
+
`).map(g=>g.trim().replace("at ","")).filter(g=>g!=="");return l(f,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),f.reverse()}const s=new q4;for(const c of i){const l=r(c);for(let f=0;f<=l.length;f++)s.add(l.slice(0,f).join(`
|
|
85
|
+
`),c)}i.sort(I4(c=>c.idx,E4));let o="",a=0;for(const c of i.slice(0,e)){a++;const l=r(c),f=[];for(let g=0;g<l.length;g++){let p=l[g];p=`(shared with ${s.get(l.slice(0,g+1).join(`
|
|
86
|
+
`)).size}/${i.length} leaks) at ${p}`;const C=s.get(l.slice(0,g).join(`
|
|
87
|
+
`)),k=H4([...C].map(A=>r(A)[g]),A=>A);delete k[l[g]];for(const[A,H]of Object.entries(k))f.unshift(` - stacktraces of ${H.length} other leaks continue with ${A}`);f.unshift(p)}o+=`
|
|
72
88
|
|
|
73
89
|
|
|
74
|
-
==================== Leaking disposable ${a}/${
|
|
90
|
+
==================== Leaking disposable ${a}/${i.length}: ${c.value.constructor.name} ====================
|
|
75
91
|
${f.join(`
|
|
76
92
|
`)}
|
|
77
93
|
============================================================
|
|
78
94
|
|
|
79
|
-
`}return
|
|
95
|
+
`}return i.length>e&&(o+=`
|
|
80
96
|
|
|
81
97
|
|
|
82
|
-
... and ${
|
|
98
|
+
... and ${i.length-e} more leaking disposables
|
|
83
99
|
|
|
84
|
-
`),{leaks:
|
|
100
|
+
`),{leaks:i,details:o}}};Sc.idx=0;let im=Sc;function j2(t){if(Gd.is(t)){const e=[];for(const n of t)if(n)try{n.dispose()}catch(i){e.push(i)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function W4(...t){return Y1(()=>j2(t))}function Y1(t){return{dispose:j4(()=>{t()})}}const Dc=class Dc{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{j2(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?Dc.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}delete(e){if(e){if(e===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(e),e.dispose()}}deleteAndLeak(e){e&&this._toDispose.has(e)&&this._toDispose.delete(e)}};Dc.DISABLE_DISPOSED_WARNING=!1;let jo=Dc;var Zo;let Jd=(Zo=class{constructor(){this._store=new jo,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}},Zo.None=Object.freeze({dispose(){}}),Zo);const gs=class gs{constructor(e){this.element=e,this.next=gs.Undefined,this.prev=gs.Undefined}};gs.Undefined=new gs(void 0);let yt=gs;class U4{constructor(){this._first=yt.Undefined,this._last=yt.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===yt.Undefined}clear(){let e=this._first;for(;e!==yt.Undefined;){const n=e.next;e.prev=yt.Undefined,e.next=yt.Undefined,e=n}this._first=yt.Undefined,this._last=yt.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const i=new yt(e);if(this._first===yt.Undefined)this._first=i,this._last=i;else if(n){const s=this._last;this._last=i,i.prev=s,s.next=i}else{const s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(i))}}shift(){if(this._first!==yt.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==yt.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==yt.Undefined&&e.next!==yt.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===yt.Undefined&&e.next===yt.Undefined?(this._first=yt.Undefined,this._last=yt.Undefined):e.next===yt.Undefined?(this._last=this._last.prev,this._last.next=yt.Undefined):e.prev===yt.Undefined&&(this._first=this._first.next,this._first.prev=yt.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==yt.Undefined;)yield e.element,e=e.next}}const z4=globalThis.performance&&typeof globalThis.performance.now=="function";class Q1{static create(e){return new Q1(e)}constructor(e){this._now=z4&&e===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var Ja;(function(t){t.None=()=>Jd.None;function e($,E){return g($,()=>{},0,void 0,!0,void 0,E)}t.defer=e;function n($){return(E,v=null,R)=>{let P=!1,I;return I=$(V=>{if(!P)return I?I.dispose():P=!0,E.call(v,V)},null,R),P&&I.dispose(),I}}t.once=n;function i($,E,v){return l((R,P=null,I)=>$(V=>R.call(P,E(V)),null,I),v)}t.map=i;function r($,E,v){return l((R,P=null,I)=>$(V=>{E(V),R.call(P,V)},null,I),v)}t.forEach=r;function s($,E,v){return l((R,P=null,I)=>$(V=>E(V)&&R.call(P,V),null,I),v)}t.filter=s;function o($){return $}t.signal=o;function a(...$){return(E,v=null,R)=>{const P=W4(...$.map(I=>I(V=>E.call(v,V))));return f(P,R)}}t.any=a;function c($,E,v,R){let P=v;return i($,I=>(P=E(P,I),P),R)}t.reduce=c;function l($,E){let v;const R={onWillAddFirstListener(){v=$(P.fire,P)},onDidRemoveLastListener(){v==null||v.dispose()}},P=new pi(R);return E==null||E.add(P),P.event}function f($,E){return E instanceof Array?E.push($):E&&E.add($),$}function g($,E,v=100,R=!1,P=!1,I,V){let Ae,ve,lt,He=0,Ee;const st={leakWarningThreshold:I,onWillAddFirstListener(){Ae=$(ot=>{He++,ve=E(ve,ot),R&&!lt&&(Fe.fire(ve),ve=void 0),Ee=()=>{const Je=ve;ve=void 0,lt=void 0,(!R||He>1)&&Fe.fire(Je),He=0},typeof v=="number"?(clearTimeout(lt),lt=setTimeout(Ee,v)):lt===void 0&&(lt=0,queueMicrotask(Ee))})},onWillRemoveListener(){P&&He>0&&(Ee==null||Ee())},onDidRemoveLastListener(){Ee=void 0,Ae.dispose()}},Fe=new pi(st);return V==null||V.add(Fe),Fe.event}t.debounce=g;function p($,E=0,v){return t.debounce($,(R,P)=>R?(R.push(P),R):[P],E,void 0,!0,void 0,v)}t.accumulate=p;function _($,E=(R,P)=>R===P,v){let R=!0,P;return s($,I=>{const V=R||!E(I,P);return R=!1,P=I,V},v)}t.latch=_;function C($,E,v){return[t.filter($,E,v),t.filter($,R=>!E(R),v)]}t.split=C;function k($,E=!1,v=[],R){let P=v.slice(),I=$(ve=>{P?P.push(ve):Ae.fire(ve)});R&&R.add(I);const V=()=>{P==null||P.forEach(ve=>Ae.fire(ve)),P=null},Ae=new pi({onWillAddFirstListener(){I||(I=$(ve=>Ae.fire(ve)),R&&R.add(I))},onDidAddFirstListener(){P&&(E?setTimeout(V):V())},onDidRemoveLastListener(){I&&I.dispose(),I=null}});return R&&R.add(Ae),Ae.event}t.buffer=k;function A($,E){return(R,P,I)=>{const V=E(new K);return $(function(Ae){const ve=V.evaluate(Ae);ve!==H&&R.call(P,ve)},void 0,I)}}t.chain=A;const H=Symbol("HaltChainable");class K{constructor(){this.steps=[]}map(E){return this.steps.push(E),this}forEach(E){return this.steps.push(v=>(E(v),v)),this}filter(E){return this.steps.push(v=>E(v)?v:H),this}reduce(E,v){let R=v;return this.steps.push(P=>(R=E(R,P),R)),this}latch(E=(v,R)=>v===R){let v=!0,R;return this.steps.push(P=>{const I=v||!E(P,R);return v=!1,R=P,I?P:H}),this}evaluate(E){for(const v of this.steps)if(E=v(E),E===H)break;return E}}function j($,E,v=R=>R){const R=(...Ae)=>V.fire(v(...Ae)),P=()=>$.on(E,R),I=()=>$.removeListener(E,R),V=new pi({onWillAddFirstListener:P,onDidRemoveLastListener:I});return V.event}t.fromNodeEventEmitter=j;function B($,E,v=R=>R){const R=(...Ae)=>V.fire(v(...Ae)),P=()=>$.addEventListener(E,R),I=()=>$.removeEventListener(E,R),V=new pi({onWillAddFirstListener:P,onDidRemoveLastListener:I});return V.event}t.fromDOMEventEmitter=B;function z($){return new Promise(E=>n($)(E))}t.toPromise=z;function ne($){const E=new pi;return $.then(v=>{E.fire(v)},()=>{E.fire(void 0)}).finally(()=>{E.dispose()}),E.event}t.fromPromise=ne;function G($,E,v){return E(v),$(R=>E(R))}t.runAndSubscribe=G;class Z{constructor(E,v){this._observable=E,this._counter=0,this._hasChanged=!1;const R={onWillAddFirstListener:()=>{E.addObserver(this)},onDidRemoveLastListener:()=>{E.removeObserver(this)}};this.emitter=new pi(R),v&&v.add(this.emitter)}beginUpdate(E){this._counter++}handlePossibleChange(E){}handleChange(E,v){this._hasChanged=!0}endUpdate(E){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function ie($,E){return new Z($,E).emitter.event}t.fromObservable=ie;function Le($){return(E,v,R)=>{let P=0,I=!1;const V={beginUpdate(){P++},endUpdate(){P--,P===0&&($.reportChanges(),I&&(I=!1,E.call(v)))},handlePossibleChange(){},handleChange(){I=!0}};$.addObserver(V),$.reportChanges();const Ae={dispose(){$.removeObserver(V)}};return R instanceof jo?R.add(Ae):Array.isArray(R)&&R.push(Ae),Ae}}t.fromObservableLight=Le})(Ja||(Ja={}));const ps=class ps{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${ps._idPool++}`,ps.all.add(this)}start(e){this._stopWatch=new Q1,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}};ps.all=new Set,ps._idPool=0;let Xd=ps,B4=-1;class V4{constructor(e,n=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=n,this._warnCountdown=0}dispose(){var e;(e=this._stacks)==null||e.clear()}check(e,n){const i=this.threshold;if(i<=0||n<i)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;let s,o=0;for(const[a,c]of this._stacks)(!s||o<c)&&(s=a,o=c);console.warn(`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${o}):`),console.warn(s)}return()=>{const s=this._stacks.get(e.value)||0;this._stacks.set(e.value,s-1)}}}class eg{static create(){return new eg(new Error().stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split(`
|
|
85
101
|
`).slice(2).join(`
|
|
86
|
-
`))}}let q4=0;class jl{constructor(e){this.value=e,this.id=q4++}}const j4=2;let gr=class{constructor(e){var n,r,i,s;this._size=0,this._options=e,this._leakageMon=(n=this._options)!=null&&n.leakWarningThreshold?new $4(((r=this._options)==null?void 0:r.leakWarningThreshold)??N4):void 0,this._perfMon=(i=this._options)!=null&&i._profName?new Qd(this._options._profName):void 0,this._deliveryQueue=(s=this._options)==null?void 0:s.deliveryQueue}dispose(){var e,n,r,i;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)==null?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(r=(n=this._options)==null?void 0:n.onDidRemoveLastListener)==null||r.call(n),(i=this._leakageMon)==null||i.dispose())}get event(){return this._event??(this._event=(e,n,r)=>{var a,c,l,f;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),Gd.None;if(this._disposed)return Gd.None;n&&(e=e.bind(n));const i=new jl(e);let s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(i.stack=Z1.create(),s=this._leakageMon.check(i.stack,this._size+1)),this._listeners?this._listeners instanceof jl?(this._deliveryQueue??(this._deliveryQueue=new H4),this._listeners=[this._listeners,i]):this._listeners.push(i):((c=(a=this._options)==null?void 0:a.onWillAddFirstListener)==null||c.call(a,this),this._listeners=i,(f=(l=this._options)==null?void 0:l.onDidAddFirstListener)==null||f.call(l,this)),this._size++;const o=Y1(()=>{s==null||s(),this._removeListener(i)});return r instanceof jo?r.add(o):Array.isArray(r)&&r.push(o),o}),this._event}_removeListener(e){var s,o,a,c;if((o=(s=this._options)==null?void 0:s.onWillRemoveListener)==null||o.call(s,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(c=(a=this._options)==null?void 0:a.onDidRemoveLastListener)==null||c.call(a,this),this._size=0;return}const n=this._listeners,r=n.indexOf(e);if(r===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[r]=void 0;const i=this._deliveryQueue.current===this;if(this._size*j4<=n.length){let l=0;for(let f=0;f<n.length;f++)n[f]?n[l++]=n[f]:i&&(this._deliveryQueue.end--,l<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=l}}_deliver(e,n){var i;if(!e)return;const r=((i=this._options)==null?void 0:i.onListenerError)||F2;if(!r){e.value(n);return}try{e.value(n)}catch(s){r(s)}}_deliverQueue(e){const n=e.current._listeners;for(;e.i<e.end;)this._deliver(n[e.i++],e.value);e.reset()}fire(e){var n,r,i,s;if((n=this._deliveryQueue)!=null&&n.current&&(this._deliverQueue(this._deliveryQueue),(r=this._perfMon)==null||r.stop()),(i=this._perfMon)==null||i.start(this._size),this._listeners)if(this._listeners instanceof jl)this._deliver(this._listeners,e);else{const o=this._deliveryQueue;o.enqueue(this,e,this._listeners.length),this._deliverQueue(o)}(s=this._perfMon)==null||s.stop()}hasListeners(){return this._size>0}};class H4{constructor(){this.i=-1,this.end=0}enqueue(e,n,r){this.i=0,this.end=r,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}const q2=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});var Ja;(function(t){function e(n){return n===t.None||n===t.Cancelled||n instanceof ka?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Qa.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:q2})})(Ja||(Ja={}));class ka{constructor(){this._isCancelled=!1,this._emitter=null}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?q2:(this._emitter||(this._emitter=new gr),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}let W4=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new ka),this._token}cancel(){this._token?this._token instanceof ka&&this._token.cancel():this._token=Ja.Cancelled}dispose(e=!1){var n;e&&this.cancel(),(n=this._parentListener)==null||n.dispose(),this._token?this._token instanceof ka&&this._token.dispose():this._token=Ja.None}};function U4(t){return t}class z4{constructor(e,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=U4):(this._fn=n,this._computeKey=e.getCacheKey)}get(e){const n=this._computeKey(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(e)),this.lastCache}}class Ss{constructor(e){this.executor=e,this._didRun=!1}get hasValue(){return this._didRun}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function B4(t){return!t||typeof t!="string"?!0:t.trim().length===0}function V4(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Jd(t,e){return t<e?-1:t>e?1:0}function ep(t,e,n=0,r=t.length,i=0,s=e.length){for(;n<r&&i<s;n++,i++){const c=t.charCodeAt(n),l=e.charCodeAt(i);if(c<l)return-1;if(c>l)return 1}const o=r-n,a=s-i;return o<a?-1:o>a?1:0}function nm(t,e){return ea(t,e,0,t.length,0,e.length)}function ea(t,e,n=0,r=t.length,i=0,s=e.length){for(;n<r&&i<s;n++,i++){let c=t.charCodeAt(n),l=e.charCodeAt(i);if(c===l)continue;if(c>=128||l>=128)return ep(t.toLowerCase(),e.toLowerCase(),n,r,i,s);rm(c)&&(c-=32),rm(l)&&(l-=32);const f=c-l;if(f!==0)return f}const o=r-n,a=s-i;return o<a?-1:o>a?1:0}function rm(t){return t>=97&&t<=122}function K4(t,e){return t.length===e.length&&ea(t,e)===0}function j2(t,e){const n=e.length;return e.length>t.length?!1:ea(t,e,0,n)===0}function tp(t){return 55296<=t&&t<=56319}function Ya(t){return 56320<=t&&t<=57343}function np(t,e){return(t-55296<<10)+(e-56320)+65536}function G4(t,e,n){const r=t.charCodeAt(n);if(tp(r)&&n+1<e){const i=t.charCodeAt(n+1);if(Ya(i))return np(r,i)}return r}function Q4(t,e){const n=t.charCodeAt(e-1);if(Ya(n)&&e>1){const r=t.charCodeAt(e-2);if(tp(r))return np(r,n)}return n}class J4{get offset(){return this._offset}constructor(e,n=0){this._str=e,this._len=e.length,this._offset=n}setOffset(e){this._offset=e}prevCodePoint(){const e=Q4(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=G4(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class Y4{get offset(){return this._iterator.offset}constructor(e,n=0){this._iterator=new J4(e,n)}nextGraphemeLength(){const e=Xa.getInstance(),n=this._iterator,r=n.offset;let i=e.getGraphemeBreakType(n.nextCodePoint());for(;!n.eol();){const s=n.offset,o=e.getGraphemeBreakType(n.nextCodePoint());if(sm(i,o)){n.setOffset(s);break}i=o}return n.offset-r}prevGraphemeLength(){const e=Xa.getInstance(),n=this._iterator,r=n.offset;let i=e.getGraphemeBreakType(n.prevCodePoint());for(;n.offset>0;){const s=n.offset,o=e.getGraphemeBreakType(n.prevCodePoint());if(sm(o,i)){n.setOffset(s);break}i=o}return r-n.offset}eol(){return this._iterator.eol()}}function im(t,e){return new Y4(t,e).nextGraphemeLength()}function sm(t,e){return t===0?e!==5&&e!==7:t===2&&e===3?!1:t===4||t===2||t===3||e===4||e===2||e===3?!0:!(t===8&&(e===8||e===9||e===11||e===12)||(t===11||t===9)&&(e===9||e===10)||(t===12||t===10)&&e===10||e===5||e===13||e===7||t===1||t===13&&e===14||t===6&&e===6)}const Ni=class Ni{static getInstance(){return Ni._INSTANCE||(Ni._INSTANCE=new Ni),Ni._INSTANCE}constructor(){this._data=X4()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const n=this._data,r=n.length/3;let i=1;for(;i<=r;)if(e<n[3*i])i=2*i;else if(e>n[3*i+1])i=2*i+1;else return n[3*i+2];return 0}};Ni._INSTANCE=null;let Xa=Ni;function X4(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}const hr=class hr{static getInstance(e){return hr.cache.get(Array.from(e))}static getLocales(){return hr._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};hr.ambiguousCharacterData=new Ss(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),hr.cache=new z4({getCacheKey:JSON.stringify},e=>{function n(f){const p=new Map;for(let g=0;g<f.length;g+=2)p.set(f[g],f[g+1]);return p}function r(f,p){const g=new Map(f);for(const[_,C]of p)g.set(_,C);return g}function i(f,p){if(!f)return p;const g=new Map;for(const[_,C]of f)p.has(_)&&g.set(_,C);return g}const s=hr.ambiguousCharacterData.value;let o=e.filter(f=>!f.startsWith("_")&&f in s);o.length===0&&(o=["_default"]);let a;for(const f of o){const p=n(s[f]);a=i(a,p)}const c=n(s._common),l=r(c,a);return new hr(l)}),hr._locales=new Ss(()=>Object.keys(hr.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));let om=hr;const ms=class ms{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(ms.getRawData())),this._data}static isInvisibleCharacter(e){return ms.getData().has(e)}static get codePoints(){return ms.getData()}};ms._data=void 0;let am=ms;H2.bind(void 0,!1);H2.bind(void 0,!0);function H2(t,e,n){if(!n||n.length<e.length)return null;let r;return t?r=j2(n,e):r=n.indexOf(e)===0,r?e.length>0?[{start:0,end:e.length}]:[]:null}const Z4=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(t=>Z4.add(t.charCodeAt(0)));new N2(1e4);const cm=128;function rp(){const t=[],e=[];for(let n=0;n<=cm;n++)e[n]=0;for(let n=0;n<=cm;n++)t.push(e.slice(0));return t}rp();rp();rp();var lm;(function(t){t.Default=[-100,0];function e(n){return!n||n.length===2&&n[0]===-100&&n[1]===0}t.isDefault=e})(lm||(lm={}));const bp=class bp{constructor(e,n){this.firstMatchCanBeWeak=e,this.boostFullMatch=n}};bp.default={boostFullMatch:!0,firstMatchCanBeWeak:!1};let um=bp;function Hn(t){return typeof t=="string"}function ev(t){return Array.isArray(t)&&t.every(e=>Hn(e))}function dm(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}function Co(t){return typeof t=="number"&&!isNaN(t)}const fm=Object.create(null);function u(t,e){if(Hn(e)){const n=fm[e];if(n===void 0)throw new Error(`${t} references an unknown codicon: ${e}`);e=n}return fm[t]=e,{id:t}}const tv={add:u("add",6e4),plus:u("plus",6e4),gistNew:u("gist-new",6e4),repoCreate:u("repo-create",6e4),lightbulb:u("lightbulb",60001),lightBulb:u("light-bulb",60001),repo:u("repo",60002),repoDelete:u("repo-delete",60002),gistFork:u("gist-fork",60003),repoForked:u("repo-forked",60003),gitPullRequest:u("git-pull-request",60004),gitPullRequestAbandoned:u("git-pull-request-abandoned",60004),recordKeys:u("record-keys",60005),keyboard:u("keyboard",60005),tag:u("tag",60006),gitPullRequestLabel:u("git-pull-request-label",60006),tagAdd:u("tag-add",60006),tagRemove:u("tag-remove",60006),person:u("person",60007),personFollow:u("person-follow",60007),personOutline:u("person-outline",60007),personFilled:u("person-filled",60007),gitBranch:u("git-branch",60008),gitBranchCreate:u("git-branch-create",60008),gitBranchDelete:u("git-branch-delete",60008),sourceControl:u("source-control",60008),mirror:u("mirror",60009),mirrorPublic:u("mirror-public",60009),star:u("star",60010),starAdd:u("star-add",60010),starDelete:u("star-delete",60010),starEmpty:u("star-empty",60010),comment:u("comment",60011),commentAdd:u("comment-add",60011),alert:u("alert",60012),warning:u("warning",60012),search:u("search",60013),searchSave:u("search-save",60013),logOut:u("log-out",60014),signOut:u("sign-out",60014),logIn:u("log-in",60015),signIn:u("sign-in",60015),eye:u("eye",60016),eyeUnwatch:u("eye-unwatch",60016),eyeWatch:u("eye-watch",60016),circleFilled:u("circle-filled",60017),primitiveDot:u("primitive-dot",60017),closeDirty:u("close-dirty",60017),debugBreakpoint:u("debug-breakpoint",60017),debugBreakpointDisabled:u("debug-breakpoint-disabled",60017),debugHint:u("debug-hint",60017),terminalDecorationSuccess:u("terminal-decoration-success",60017),primitiveSquare:u("primitive-square",60018),edit:u("edit",60019),pencil:u("pencil",60019),info:u("info",60020),issueOpened:u("issue-opened",60020),gistPrivate:u("gist-private",60021),gitForkPrivate:u("git-fork-private",60021),lock:u("lock",60021),mirrorPrivate:u("mirror-private",60021),close:u("close",60022),removeClose:u("remove-close",60022),x:u("x",60022),repoSync:u("repo-sync",60023),sync:u("sync",60023),clone:u("clone",60024),desktopDownload:u("desktop-download",60024),beaker:u("beaker",60025),microscope:u("microscope",60025),vm:u("vm",60026),deviceDesktop:u("device-desktop",60026),file:u("file",60027),fileText:u("file-text",60027),more:u("more",60028),ellipsis:u("ellipsis",60028),kebabHorizontal:u("kebab-horizontal",60028),mailReply:u("mail-reply",60029),reply:u("reply",60029),organization:u("organization",60030),organizationFilled:u("organization-filled",60030),organizationOutline:u("organization-outline",60030),newFile:u("new-file",60031),fileAdd:u("file-add",60031),newFolder:u("new-folder",60032),fileDirectoryCreate:u("file-directory-create",60032),trash:u("trash",60033),trashcan:u("trashcan",60033),history:u("history",60034),clock:u("clock",60034),folder:u("folder",60035),fileDirectory:u("file-directory",60035),symbolFolder:u("symbol-folder",60035),logoGithub:u("logo-github",60036),markGithub:u("mark-github",60036),github:u("github",60036),terminal:u("terminal",60037),console:u("console",60037),repl:u("repl",60037),zap:u("zap",60038),symbolEvent:u("symbol-event",60038),error:u("error",60039),stop:u("stop",60039),variable:u("variable",60040),symbolVariable:u("symbol-variable",60040),array:u("array",60042),symbolArray:u("symbol-array",60042),symbolModule:u("symbol-module",60043),symbolPackage:u("symbol-package",60043),symbolNamespace:u("symbol-namespace",60043),symbolObject:u("symbol-object",60043),symbolMethod:u("symbol-method",60044),symbolFunction:u("symbol-function",60044),symbolConstructor:u("symbol-constructor",60044),symbolBoolean:u("symbol-boolean",60047),symbolNull:u("symbol-null",60047),symbolNumeric:u("symbol-numeric",60048),symbolNumber:u("symbol-number",60048),symbolStructure:u("symbol-structure",60049),symbolStruct:u("symbol-struct",60049),symbolParameter:u("symbol-parameter",60050),symbolTypeParameter:u("symbol-type-parameter",60050),symbolKey:u("symbol-key",60051),symbolText:u("symbol-text",60051),symbolReference:u("symbol-reference",60052),goToFile:u("go-to-file",60052),symbolEnum:u("symbol-enum",60053),symbolValue:u("symbol-value",60053),symbolRuler:u("symbol-ruler",60054),symbolUnit:u("symbol-unit",60054),activateBreakpoints:u("activate-breakpoints",60055),archive:u("archive",60056),arrowBoth:u("arrow-both",60057),arrowDown:u("arrow-down",60058),arrowLeft:u("arrow-left",60059),arrowRight:u("arrow-right",60060),arrowSmallDown:u("arrow-small-down",60061),arrowSmallLeft:u("arrow-small-left",60062),arrowSmallRight:u("arrow-small-right",60063),arrowSmallUp:u("arrow-small-up",60064),arrowUp:u("arrow-up",60065),bell:u("bell",60066),bold:u("bold",60067),book:u("book",60068),bookmark:u("bookmark",60069),debugBreakpointConditionalUnverified:u("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:u("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:u("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:u("debug-breakpoint-data-unverified",60072),debugBreakpointData:u("debug-breakpoint-data",60073),debugBreakpointDataDisabled:u("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:u("debug-breakpoint-log-unverified",60074),debugBreakpointLog:u("debug-breakpoint-log",60075),debugBreakpointLogDisabled:u("debug-breakpoint-log-disabled",60075),briefcase:u("briefcase",60076),broadcast:u("broadcast",60077),browser:u("browser",60078),bug:u("bug",60079),calendar:u("calendar",60080),caseSensitive:u("case-sensitive",60081),check:u("check",60082),checklist:u("checklist",60083),chevronDown:u("chevron-down",60084),chevronLeft:u("chevron-left",60085),chevronRight:u("chevron-right",60086),chevronUp:u("chevron-up",60087),chromeClose:u("chrome-close",60088),chromeMaximize:u("chrome-maximize",60089),chromeMinimize:u("chrome-minimize",60090),chromeRestore:u("chrome-restore",60091),circleOutline:u("circle-outline",60092),circle:u("circle",60092),debugBreakpointUnverified:u("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:u("terminal-decoration-incomplete",60092),circleSlash:u("circle-slash",60093),circuitBoard:u("circuit-board",60094),clearAll:u("clear-all",60095),clippy:u("clippy",60096),closeAll:u("close-all",60097),cloudDownload:u("cloud-download",60098),cloudUpload:u("cloud-upload",60099),code:u("code",60100),collapseAll:u("collapse-all",60101),colorMode:u("color-mode",60102),commentDiscussion:u("comment-discussion",60103),creditCard:u("credit-card",60105),dash:u("dash",60108),dashboard:u("dashboard",60109),database:u("database",60110),debugContinue:u("debug-continue",60111),debugDisconnect:u("debug-disconnect",60112),debugPause:u("debug-pause",60113),debugRestart:u("debug-restart",60114),debugStart:u("debug-start",60115),debugStepInto:u("debug-step-into",60116),debugStepOut:u("debug-step-out",60117),debugStepOver:u("debug-step-over",60118),debugStop:u("debug-stop",60119),debug:u("debug",60120),deviceCameraVideo:u("device-camera-video",60121),deviceCamera:u("device-camera",60122),deviceMobile:u("device-mobile",60123),diffAdded:u("diff-added",60124),diffIgnored:u("diff-ignored",60125),diffModified:u("diff-modified",60126),diffRemoved:u("diff-removed",60127),diffRenamed:u("diff-renamed",60128),diff:u("diff",60129),diffSidebyside:u("diff-sidebyside",60129),discard:u("discard",60130),editorLayout:u("editor-layout",60131),emptyWindow:u("empty-window",60132),exclude:u("exclude",60133),extensions:u("extensions",60134),eyeClosed:u("eye-closed",60135),fileBinary:u("file-binary",60136),fileCode:u("file-code",60137),fileMedia:u("file-media",60138),filePdf:u("file-pdf",60139),fileSubmodule:u("file-submodule",60140),fileSymlinkDirectory:u("file-symlink-directory",60141),fileSymlinkFile:u("file-symlink-file",60142),fileZip:u("file-zip",60143),files:u("files",60144),filter:u("filter",60145),flame:u("flame",60146),foldDown:u("fold-down",60147),foldUp:u("fold-up",60148),fold:u("fold",60149),folderActive:u("folder-active",60150),folderOpened:u("folder-opened",60151),gear:u("gear",60152),gift:u("gift",60153),gistSecret:u("gist-secret",60154),gist:u("gist",60155),gitCommit:u("git-commit",60156),gitCompare:u("git-compare",60157),compareChanges:u("compare-changes",60157),gitMerge:u("git-merge",60158),githubAction:u("github-action",60159),githubAlt:u("github-alt",60160),globe:u("globe",60161),grabber:u("grabber",60162),graph:u("graph",60163),gripper:u("gripper",60164),heart:u("heart",60165),home:u("home",60166),horizontalRule:u("horizontal-rule",60167),hubot:u("hubot",60168),inbox:u("inbox",60169),issueReopened:u("issue-reopened",60171),issues:u("issues",60172),italic:u("italic",60173),jersey:u("jersey",60174),json:u("json",60175),kebabVertical:u("kebab-vertical",60176),key:u("key",60177),law:u("law",60178),lightbulbAutofix:u("lightbulb-autofix",60179),linkExternal:u("link-external",60180),link:u("link",60181),listOrdered:u("list-ordered",60182),listUnordered:u("list-unordered",60183),liveShare:u("live-share",60184),loading:u("loading",60185),location:u("location",60186),mailRead:u("mail-read",60187),mail:u("mail",60188),markdown:u("markdown",60189),megaphone:u("megaphone",60190),mention:u("mention",60191),milestone:u("milestone",60192),gitPullRequestMilestone:u("git-pull-request-milestone",60192),mortarBoard:u("mortar-board",60193),move:u("move",60194),multipleWindows:u("multiple-windows",60195),mute:u("mute",60196),noNewline:u("no-newline",60197),note:u("note",60198),octoface:u("octoface",60199),openPreview:u("open-preview",60200),package:u("package",60201),paintcan:u("paintcan",60202),pin:u("pin",60203),play:u("play",60204),run:u("run",60204),plug:u("plug",60205),preserveCase:u("preserve-case",60206),preview:u("preview",60207),project:u("project",60208),pulse:u("pulse",60209),question:u("question",60210),quote:u("quote",60211),radioTower:u("radio-tower",60212),reactions:u("reactions",60213),references:u("references",60214),refresh:u("refresh",60215),regex:u("regex",60216),remoteExplorer:u("remote-explorer",60217),remote:u("remote",60218),remove:u("remove",60219),replaceAll:u("replace-all",60220),replace:u("replace",60221),repoClone:u("repo-clone",60222),repoForcePush:u("repo-force-push",60223),repoPull:u("repo-pull",60224),repoPush:u("repo-push",60225),report:u("report",60226),requestChanges:u("request-changes",60227),rocket:u("rocket",60228),rootFolderOpened:u("root-folder-opened",60229),rootFolder:u("root-folder",60230),rss:u("rss",60231),ruby:u("ruby",60232),saveAll:u("save-all",60233),saveAs:u("save-as",60234),save:u("save",60235),screenFull:u("screen-full",60236),screenNormal:u("screen-normal",60237),searchStop:u("search-stop",60238),server:u("server",60240),settingsGear:u("settings-gear",60241),settings:u("settings",60242),shield:u("shield",60243),smiley:u("smiley",60244),sortPrecedence:u("sort-precedence",60245),splitHorizontal:u("split-horizontal",60246),splitVertical:u("split-vertical",60247),squirrel:u("squirrel",60248),starFull:u("star-full",60249),starHalf:u("star-half",60250),symbolClass:u("symbol-class",60251),symbolColor:u("symbol-color",60252),symbolConstant:u("symbol-constant",60253),symbolEnumMember:u("symbol-enum-member",60254),symbolField:u("symbol-field",60255),symbolFile:u("symbol-file",60256),symbolInterface:u("symbol-interface",60257),symbolKeyword:u("symbol-keyword",60258),symbolMisc:u("symbol-misc",60259),symbolOperator:u("symbol-operator",60260),symbolProperty:u("symbol-property",60261),wrench:u("wrench",60261),wrenchSubaction:u("wrench-subaction",60261),symbolSnippet:u("symbol-snippet",60262),tasklist:u("tasklist",60263),telescope:u("telescope",60264),textSize:u("text-size",60265),threeBars:u("three-bars",60266),thumbsdown:u("thumbsdown",60267),thumbsup:u("thumbsup",60268),tools:u("tools",60269),triangleDown:u("triangle-down",60270),triangleLeft:u("triangle-left",60271),triangleRight:u("triangle-right",60272),triangleUp:u("triangle-up",60273),twitter:u("twitter",60274),unfold:u("unfold",60275),unlock:u("unlock",60276),unmute:u("unmute",60277),unverified:u("unverified",60278),verified:u("verified",60279),versions:u("versions",60280),vmActive:u("vm-active",60281),vmOutline:u("vm-outline",60282),vmRunning:u("vm-running",60283),watch:u("watch",60284),whitespace:u("whitespace",60285),wholeWord:u("whole-word",60286),window:u("window",60287),wordWrap:u("word-wrap",60288),zoomIn:u("zoom-in",60289),zoomOut:u("zoom-out",60290),listFilter:u("list-filter",60291),listFlat:u("list-flat",60292),listSelection:u("list-selection",60293),selection:u("selection",60293),listTree:u("list-tree",60294),debugBreakpointFunctionUnverified:u("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:u("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:u("debug-breakpoint-function-disabled",60296),debugStackframeActive:u("debug-stackframe-active",60297),circleSmallFilled:u("circle-small-filled",60298),debugStackframeDot:u("debug-stackframe-dot",60298),terminalDecorationMark:u("terminal-decoration-mark",60298),debugStackframe:u("debug-stackframe",60299),debugStackframeFocused:u("debug-stackframe-focused",60299),debugBreakpointUnsupported:u("debug-breakpoint-unsupported",60300),symbolString:u("symbol-string",60301),debugReverseContinue:u("debug-reverse-continue",60302),debugStepBack:u("debug-step-back",60303),debugRestartFrame:u("debug-restart-frame",60304),debugAlt:u("debug-alt",60305),callIncoming:u("call-incoming",60306),callOutgoing:u("call-outgoing",60307),menu:u("menu",60308),expandAll:u("expand-all",60309),feedback:u("feedback",60310),gitPullRequestReviewer:u("git-pull-request-reviewer",60310),groupByRefType:u("group-by-ref-type",60311),ungroupByRefType:u("ungroup-by-ref-type",60312),account:u("account",60313),gitPullRequestAssignee:u("git-pull-request-assignee",60313),bellDot:u("bell-dot",60314),debugConsole:u("debug-console",60315),library:u("library",60316),output:u("output",60317),runAll:u("run-all",60318),syncIgnored:u("sync-ignored",60319),pinned:u("pinned",60320),githubInverted:u("github-inverted",60321),serverProcess:u("server-process",60322),serverEnvironment:u("server-environment",60323),pass:u("pass",60324),issueClosed:u("issue-closed",60324),stopCircle:u("stop-circle",60325),playCircle:u("play-circle",60326),record:u("record",60327),debugAltSmall:u("debug-alt-small",60328),vmConnect:u("vm-connect",60329),cloud:u("cloud",60330),merge:u("merge",60331),export:u("export",60332),graphLeft:u("graph-left",60333),magnet:u("magnet",60334),notebook:u("notebook",60335),redo:u("redo",60336),checkAll:u("check-all",60337),pinnedDirty:u("pinned-dirty",60338),passFilled:u("pass-filled",60339),circleLargeFilled:u("circle-large-filled",60340),circleLarge:u("circle-large",60341),circleLargeOutline:u("circle-large-outline",60341),combine:u("combine",60342),gather:u("gather",60342),table:u("table",60343),variableGroup:u("variable-group",60344),typeHierarchy:u("type-hierarchy",60345),typeHierarchySub:u("type-hierarchy-sub",60346),typeHierarchySuper:u("type-hierarchy-super",60347),gitPullRequestCreate:u("git-pull-request-create",60348),runAbove:u("run-above",60349),runBelow:u("run-below",60350),notebookTemplate:u("notebook-template",60351),debugRerun:u("debug-rerun",60352),workspaceTrusted:u("workspace-trusted",60353),workspaceUntrusted:u("workspace-untrusted",60354),workspaceUnknown:u("workspace-unknown",60355),terminalCmd:u("terminal-cmd",60356),terminalDebian:u("terminal-debian",60357),terminalLinux:u("terminal-linux",60358),terminalPowershell:u("terminal-powershell",60359),terminalTmux:u("terminal-tmux",60360),terminalUbuntu:u("terminal-ubuntu",60361),terminalBash:u("terminal-bash",60362),arrowSwap:u("arrow-swap",60363),copy:u("copy",60364),personAdd:u("person-add",60365),filterFilled:u("filter-filled",60366),wand:u("wand",60367),debugLineByLine:u("debug-line-by-line",60368),inspect:u("inspect",60369),layers:u("layers",60370),layersDot:u("layers-dot",60371),layersActive:u("layers-active",60372),compass:u("compass",60373),compassDot:u("compass-dot",60374),compassActive:u("compass-active",60375),azure:u("azure",60376),issueDraft:u("issue-draft",60377),gitPullRequestClosed:u("git-pull-request-closed",60378),gitPullRequestDraft:u("git-pull-request-draft",60379),debugAll:u("debug-all",60380),debugCoverage:u("debug-coverage",60381),runErrors:u("run-errors",60382),folderLibrary:u("folder-library",60383),debugContinueSmall:u("debug-continue-small",60384),beakerStop:u("beaker-stop",60385),graphLine:u("graph-line",60386),graphScatter:u("graph-scatter",60387),pieChart:u("pie-chart",60388),bracket:u("bracket",60175),bracketDot:u("bracket-dot",60389),bracketError:u("bracket-error",60390),lockSmall:u("lock-small",60391),azureDevops:u("azure-devops",60392),verifiedFilled:u("verified-filled",60393),newline:u("newline",60394),layout:u("layout",60395),layoutActivitybarLeft:u("layout-activitybar-left",60396),layoutActivitybarRight:u("layout-activitybar-right",60397),layoutPanelLeft:u("layout-panel-left",60398),layoutPanelCenter:u("layout-panel-center",60399),layoutPanelJustify:u("layout-panel-justify",60400),layoutPanelRight:u("layout-panel-right",60401),layoutPanel:u("layout-panel",60402),layoutSidebarLeft:u("layout-sidebar-left",60403),layoutSidebarRight:u("layout-sidebar-right",60404),layoutStatusbar:u("layout-statusbar",60405),layoutMenubar:u("layout-menubar",60406),layoutCentered:u("layout-centered",60407),target:u("target",60408),indent:u("indent",60409),recordSmall:u("record-small",60410),errorSmall:u("error-small",60411),terminalDecorationError:u("terminal-decoration-error",60411),arrowCircleDown:u("arrow-circle-down",60412),arrowCircleLeft:u("arrow-circle-left",60413),arrowCircleRight:u("arrow-circle-right",60414),arrowCircleUp:u("arrow-circle-up",60415),layoutSidebarRightOff:u("layout-sidebar-right-off",60416),layoutPanelOff:u("layout-panel-off",60417),layoutSidebarLeftOff:u("layout-sidebar-left-off",60418),blank:u("blank",60419),heartFilled:u("heart-filled",60420),map:u("map",60421),mapHorizontal:u("map-horizontal",60421),foldHorizontal:u("fold-horizontal",60421),mapFilled:u("map-filled",60422),mapHorizontalFilled:u("map-horizontal-filled",60422),foldHorizontalFilled:u("fold-horizontal-filled",60422),circleSmall:u("circle-small",60423),bellSlash:u("bell-slash",60424),bellSlashDot:u("bell-slash-dot",60425),commentUnresolved:u("comment-unresolved",60426),gitPullRequestGoToChanges:u("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:u("git-pull-request-new-changes",60428),searchFuzzy:u("search-fuzzy",60429),commentDraft:u("comment-draft",60430),send:u("send",60431),sparkle:u("sparkle",60432),insert:u("insert",60433),mic:u("mic",60434),thumbsdownFilled:u("thumbsdown-filled",60435),thumbsupFilled:u("thumbsup-filled",60436),coffee:u("coffee",60437),snake:u("snake",60438),game:u("game",60439),vr:u("vr",60440),chip:u("chip",60441),piano:u("piano",60442),music:u("music",60443),micFilled:u("mic-filled",60444),repoFetch:u("repo-fetch",60445),copilot:u("copilot",60446),lightbulbSparkle:u("lightbulb-sparkle",60447),robot:u("robot",60448),sparkleFilled:u("sparkle-filled",60449),diffSingle:u("diff-single",60450),diffMultiple:u("diff-multiple",60451),surroundWith:u("surround-with",60452),share:u("share",60453),gitStash:u("git-stash",60454),gitStashApply:u("git-stash-apply",60455),gitStashPop:u("git-stash-pop",60456),vscode:u("vscode",60457),vscodeInsiders:u("vscode-insiders",60458),codeOss:u("code-oss",60459),runCoverage:u("run-coverage",60460),runAllCoverage:u("run-all-coverage",60461),coverage:u("coverage",60462),githubProject:u("github-project",60463),mapVertical:u("map-vertical",60464),foldVertical:u("fold-vertical",60464),mapVerticalFilled:u("map-vertical-filled",60465),foldVerticalFilled:u("fold-vertical-filled",60465),goToSearch:u("go-to-search",60466),percentage:u("percentage",60467),sortPercentage:u("sort-percentage",60467)},nv={dialogError:u("dialog-error","error"),dialogWarning:u("dialog-warning","warning"),dialogInfo:u("dialog-info","info"),dialogClose:u("dialog-close","close"),treeItemExpanded:u("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:u("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:u("tree-filter-on-type-off","list-selection"),treeFilterClear:u("tree-filter-clear","close"),treeItemLoading:u("tree-item-loading","loading"),menuSelection:u("menu-selection","check"),menuSubmenu:u("menu-submenu","chevron-right"),menuBarMore:u("menubar-more","more"),scrollbarButtonLeft:u("scrollbar-button-left","triangle-left"),scrollbarButtonRight:u("scrollbar-button-right","triangle-right"),scrollbarButtonUp:u("scrollbar-button-up","triangle-up"),scrollbarButtonDown:u("scrollbar-button-down","triangle-down"),toolBarMore:u("toolbar-more","more"),quickInputBack:u("quick-input-back","arrow-left"),dropDownButton:u("drop-down-button",60084),symbolCustomColor:u("symbol-customcolor",60252),exportIcon:u("export",60332),workspaceUnspecified:u("workspace-unspecified",60355),newLine:u("newline",60394),thumbsDownFilled:u("thumbsdown-filled",60435),thumbsUpFilled:u("thumbsup-filled",60436),gitFetch:u("git-fetch",60445),lightbulbSparkleAutofix:u("lightbulb-sparkle-autofix",60447),debugBreakpointPending:u("debug-breakpoint-pending",60377)},rv={...tv,...nv};var Yd;(function(t){function e(n){return n&&typeof n=="object"&&typeof n.id=="string"}t.isThemeColor=e})(Yd||(Yd={}));var Ho;(function(t){t.iconNameSegment="[A-Za-z0-9]+",t.iconNameExpression="[A-Za-z0-9-]+",t.iconModifierExpression="~[A-Za-z]+",t.iconNameCharacter="[A-Za-z0-9~-]";const e=new RegExp(`^(${t.iconNameExpression})(${t.iconModifierExpression})?$`);function n(g){const _=e.exec(g.id);if(!_)return n(rv.error);const[,C,k]=_,M=["codicon","codicon-"+C];return k&&M.push("codicon-modifier-"+k.substring(1)),M}t.asClassNameArray=n;function r(g){return n(g).join(" ")}t.asClassName=r;function i(g){return"."+n(g).join(".")}t.asCSSSelector=i;function s(g){return g&&typeof g=="object"&&typeof g.id=="string"&&(typeof g.color>"u"||Yd.isThemeColor(g.color))}t.isThemeIcon=s;const o=new RegExp(`^\\$\\((${t.iconNameExpression}(?:${t.iconModifierExpression})?)\\)$`);function a(g){const _=o.exec(g);if(!_)return;const[,C]=_;return{id:C}}t.fromString=a;function c(g){return{id:g}}t.fromId=c;function l(g,_){let C=g.id;const k=C.lastIndexOf("~");return k!==-1&&(C=C.substring(0,k)),_&&(C=`${C}~${_}`),{id:C}}t.modify=l;function f(g){const _=g.id.lastIndexOf("~");if(_!==-1)return g.id.substring(_+1)}t.getModifier=f;function p(g,_){var C,k;return g.id===_.id&&((C=g.color)==null?void 0:C.id)===((k=_.color)==null?void 0:k.id)}t.isEqual=p})(Ho||(Ho={}));const ip=new RegExp(`\\$\\(${Ho.iconNameExpression}(?:${Ho.iconModifierExpression})?\\)`,"g"),iv=new RegExp(`(\\\\)?${ip.source}`,"g");function sv(t){return t.replace(iv,(e,n)=>n?e:`\\${e}`)}new RegExp(`\\\\${ip.source}`,"g");new RegExp(`(\\s)?(\\\\)?${ip.source}(\\s)?`,"g");new RegExp(`\\$\\(${Ho.iconNameCharacter}+\\)`,"g");let ov=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function av(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(r,i)=>{const s=i[0],o=e[s];let a=r;return typeof o=="string"?a=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(a=String(o)),a}),ov&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}let cv={};function m(t,e,n,...r){const i=typeof e=="object"?e.key:e,s=(cv[t]??{})[i]??n;return av(s,r)}const ds="en";let Xd=!1,Zd=!1,ef=!1,W2=!1,sp=!1,ha,Ra=ds,hm=ds,rr;const Hr=globalThis;let _n;var d2;typeof Hr.vscode<"u"&&typeof Hr.vscode.process<"u"?_n=Hr.vscode.process:typeof process<"u"&&typeof((d2=process==null?void 0:process.versions)==null?void 0:d2.node)=="string"&&(_n=process);var f2;const lv=typeof((f2=_n==null?void 0:_n.versions)==null?void 0:f2.electron)=="string",uv=lv&&(_n==null?void 0:_n.type)==="renderer";if(typeof _n=="object"){Xd=_n.platform==="win32",Zd=_n.platform==="darwin",ef=_n.platform==="linux",_n.env.CI||_n.env.BUILD_ARTIFACTSTAGINGDIRECTORY,ha=ds,Ra=ds;const t=_n.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t),n=e.availableLanguages["*"];ha=e.locale,hm=e.osLocale,Ra=n||ds}catch{}W2=!0}else typeof navigator=="object"&&!uv?(rr=navigator.userAgent,Xd=rr.indexOf("Windows")>=0,Zd=rr.indexOf("Macintosh")>=0,(rr.indexOf("Macintosh")>=0||rr.indexOf("iPad")>=0||rr.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,ef=rr.indexOf("Linux")>=0,(rr==null?void 0:rr.indexOf("Mobi"))>=0,sp=!0,ha=ds,Ra=ha,hm=navigator.language):console.error("Unable to resolve platform.");const Ji=Xd,Sr=Zd,Za=ef,dv=W2,op=sp,fv=sp&&typeof Hr.importScripts=="function",hv=fv?Hr.origin:void 0,Dr=rr,Yr=Ra;var pm;(function(t){function e(){return Yr}t.value=e;function n(){return Yr.length===2?Yr==="en":Yr.length>=3?Yr[0]==="e"&&Yr[1]==="n"&&Yr[2]==="-":!1}t.isDefaultVariant=n;function r(){return Yr==="en"}t.isDefault=r})(pm||(pm={}));const pv=typeof Hr.postMessage=="function"&&!Hr.importScripts;(()=>{if(pv){const t=[];Hr.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=t.length;r<i;r++){const s=t[r];if(s.id===n.data.vscodeScheduleAsyncWork){t.splice(r,1),s.callback();return}}});let e=0;return n=>{const r=++e;t.push({id:r,callback:n}),Hr.postMessage({vscodeScheduleAsyncWork:r},"*")}}return t=>setTimeout(t)})();const U2=!!(Dr&&Dr.indexOf("Chrome")>=0),gv=!!(Dr&&Dr.indexOf("Firefox")>=0),mv=!!(!U2&&Dr&&Dr.indexOf("Safari")>=0),yv=!!(Dr&&Dr.indexOf("Edg/")>=0);Dr&&Dr.indexOf("Android")>=0;let Ui;const Hl=globalThis.vscode;if(typeof Hl<"u"&&typeof Hl.process<"u"){const t=Hl.process;Ui={get platform(){return t.platform},get arch(){return t.arch},get env(){return t.env},cwd(){return t.cwd()}}}else typeof process<"u"?Ui={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Ui={get platform(){return Ji?"win32":Sr?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const ec=Ui.cwd,bv=Ui.env,vv=Ui.platform;Ui.arch;const wv=65,Cv=97,_v=90,Sv=122,fi=46,Yt=47,In=92,Xr=58,Dv=63;class z2 extends Error{constructor(e,n,r){let i;typeof n=="string"&&n.indexOf("not ")===0?(i="must not be",n=n.replace(/^not /,"")):i="must be";const s=e.indexOf(".")!==-1?"property":"argument";let o=`The "${e}" ${s} ${i} of type ${n}`;o+=`. Received type ${typeof r}`,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function Tv(t,e){if(t===null||typeof t!="object")throw new z2(e,"Object",t)}function Et(t,e){if(typeof t!="string")throw new z2(e,"string",t)}const er=vv==="win32";function Oe(t){return t===Yt||t===In}function tf(t){return t===Yt}function Zr(t){return t>=wv&&t<=_v||t>=Cv&&t<=Sv}function tc(t,e,n,r){let i="",s=0,o=-1,a=0,c=0;for(let l=0;l<=t.length;++l){if(l<t.length)c=t.charCodeAt(l);else{if(r(c))break;c=Yt}if(r(c)){if(!(o===l-1||a===1))if(a===2){if(i.length<2||s!==2||i.charCodeAt(i.length-1)!==fi||i.charCodeAt(i.length-2)!==fi){if(i.length>2){const f=i.lastIndexOf(n);f===-1?(i="",s=0):(i=i.slice(0,f),s=i.length-1-i.lastIndexOf(n)),o=l,a=0;continue}else if(i.length!==0){i="",s=0,o=l,a=0;continue}}e&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${t.slice(o+1,l)}`:i=t.slice(o+1,l),s=l-o-1;o=l,a=0}else c===fi&&a!==-1?++a:a=-1}return i}function B2(t,e){Tv(e,"pathObject");const n=e.dir||e.root,r=e.base||`${e.name||""}${e.ext||""}`;return n?n===e.root?`${n}${r}`:`${n}${t}${r}`:r}const Bt={resolve(...t){let e="",n="",r=!1;for(let i=t.length-1;i>=-1;i--){let s;if(i>=0){if(s=t[i],Et(s,"path"),s.length===0)continue}else e.length===0?s=ec():(s=bv[`=${e}`]||ec(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===In)&&(s=`${e}\\`));const o=s.length;let a=0,c="",l=!1;const f=s.charCodeAt(0);if(o===1)Oe(f)&&(a=1,l=!0);else if(Oe(f))if(l=!0,Oe(s.charCodeAt(1))){let p=2,g=p;for(;p<o&&!Oe(s.charCodeAt(p));)p++;if(p<o&&p!==g){const _=s.slice(g,p);for(g=p;p<o&&Oe(s.charCodeAt(p));)p++;if(p<o&&p!==g){for(g=p;p<o&&!Oe(s.charCodeAt(p));)p++;(p===o||p!==g)&&(c=`\\\\${_}\\${s.slice(g,p)}`,a=p)}}}else a=1;else Zr(f)&&s.charCodeAt(1)===Xr&&(c=s.slice(0,2),a=2,o>2&&Oe(s.charCodeAt(2))&&(l=!0,a=3));if(c.length>0)if(e.length>0){if(c.toLowerCase()!==e.toLowerCase())continue}else e=c;if(r){if(e.length>0)break}else if(n=`${s.slice(a)}\\${n}`,r=l,l&&e.length>0)break}return n=tc(n,!r,"\\",Oe),r?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){Et(t,"path");const e=t.length;if(e===0)return".";let n=0,r,i=!1;const s=t.charCodeAt(0);if(e===1)return tf(s)?"\\":t;if(Oe(s))if(i=!0,Oe(t.charCodeAt(1))){let a=2,c=a;for(;a<e&&!Oe(t.charCodeAt(a));)a++;if(a<e&&a!==c){const l=t.slice(c,a);for(c=a;a<e&&Oe(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&!Oe(t.charCodeAt(a));)a++;if(a===e)return`\\\\${l}\\${t.slice(c)}\\`;a!==c&&(r=`\\\\${l}\\${t.slice(c,a)}`,n=a)}}}else n=1;else Zr(s)&&t.charCodeAt(1)===Xr&&(r=t.slice(0,2),n=2,e>2&&Oe(t.charCodeAt(2))&&(i=!0,n=3));let o=n<e?tc(t.slice(n),!i,"\\",Oe):"";return o.length===0&&!i&&(o="."),o.length>0&&Oe(t.charCodeAt(e-1))&&(o+="\\"),r===void 0?i?`\\${o}`:o:i?`${r}\\${o}`:`${r}${o}`},isAbsolute(t){Et(t,"path");const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0);return Oe(n)||e>2&&Zr(n)&&t.charCodeAt(1)===Xr&&Oe(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,n;for(let s=0;s<t.length;++s){const o=t[s];Et(o,"path"),o.length>0&&(e===void 0?e=n=o:e+=`\\${o}`)}if(e===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&Oe(n.charCodeAt(0))){++i;const s=n.length;s>1&&Oe(n.charCodeAt(1))&&(++i,s>2&&(Oe(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<e.length&&Oe(e.charCodeAt(i));)i++;i>=2&&(e=`\\${e.slice(i)}`)}return Bt.normalize(e)},relative(t,e){if(Et(t,"from"),Et(e,"to"),t===e)return"";const n=Bt.resolve(t),r=Bt.resolve(e);if(n===r||(t=n.toLowerCase(),e=r.toLowerCase(),t===e))return"";let i=0;for(;i<t.length&&t.charCodeAt(i)===In;)i++;let s=t.length;for(;s-1>i&&t.charCodeAt(s-1)===In;)s--;const o=s-i;let a=0;for(;a<e.length&&e.charCodeAt(a)===In;)a++;let c=e.length;for(;c-1>a&&e.charCodeAt(c-1)===In;)c--;const l=c-a,f=o<l?o:l;let p=-1,g=0;for(;g<f;g++){const C=t.charCodeAt(i+g);if(C!==e.charCodeAt(a+g))break;C===In&&(p=g)}if(g!==f){if(p===-1)return r}else{if(l>f){if(e.charCodeAt(a+g)===In)return r.slice(a+g+1);if(g===2)return r.slice(a+g)}o>f&&(t.charCodeAt(i+g)===In?p=g:g===2&&(p=3)),p===-1&&(p=0)}let _="";for(g=i+p+1;g<=s;++g)(g===s||t.charCodeAt(g)===In)&&(_+=_.length===0?"..":"\\..");return a+=p,_.length>0?`${_}${r.slice(a,c)}`:(r.charCodeAt(a)===In&&++a,r.slice(a,c))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=Bt.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===In){if(e.charCodeAt(1)===In){const n=e.charCodeAt(2);if(n!==Dv&&n!==fi)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(Zr(e.charCodeAt(0))&&e.charCodeAt(1)===Xr&&e.charCodeAt(2)===In)return`\\\\?\\${e}`;return t},dirname(t){Et(t,"path");const e=t.length;if(e===0)return".";let n=-1,r=0;const i=t.charCodeAt(0);if(e===1)return Oe(i)?t:".";if(Oe(i)){if(n=r=1,Oe(t.charCodeAt(1))){let a=2,c=a;for(;a<e&&!Oe(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&Oe(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&!Oe(t.charCodeAt(a));)a++;if(a===e)return t;a!==c&&(n=r=a+1)}}}}else Zr(i)&&t.charCodeAt(1)===Xr&&(n=e>2&&Oe(t.charCodeAt(2))?3:2,r=n);let s=-1,o=!0;for(let a=e-1;a>=r;--a)if(Oe(t.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(s===-1){if(n===-1)return".";s=n}return t.slice(0,s)},basename(t,e){e!==void 0&&Et(e,"ext"),Et(t,"path");let n=0,r=-1,i=!0,s;if(t.length>=2&&Zr(t.charCodeAt(0))&&t.charCodeAt(1)===Xr&&(n=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let o=e.length-1,a=-1;for(s=t.length-1;s>=n;--s){const c=t.charCodeAt(s);if(Oe(c)){if(!i){n=s+1;break}}else a===-1&&(i=!1,a=s+1),o>=0&&(c===e.charCodeAt(o)?--o===-1&&(r=s):(o=-1,r=a))}return n===r?r=a:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=n;--s)if(Oe(t.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){Et(t,"path");let e=0,n=-1,r=0,i=-1,s=!0,o=0;t.length>=2&&t.charCodeAt(1)===Xr&&Zr(t.charCodeAt(0))&&(e=r=2);for(let a=t.length-1;a>=e;--a){const c=t.charCodeAt(a);if(Oe(c)){if(!s){r=a+1;break}continue}i===-1&&(s=!1,i=a+1),c===fi?n===-1?n=a:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:B2.bind(null,"\\"),parse(t){Et(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.length;let r=0,i=t.charCodeAt(0);if(n===1)return Oe(i)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if(Oe(i)){if(r=1,Oe(t.charCodeAt(1))){let p=2,g=p;for(;p<n&&!Oe(t.charCodeAt(p));)p++;if(p<n&&p!==g){for(g=p;p<n&&Oe(t.charCodeAt(p));)p++;if(p<n&&p!==g){for(g=p;p<n&&!Oe(t.charCodeAt(p));)p++;p===n?r=p:p!==g&&(r=p+1)}}}}else if(Zr(i)&&t.charCodeAt(1)===Xr){if(n<=2)return e.root=e.dir=t,e;if(r=2,Oe(t.charCodeAt(2))){if(n===3)return e.root=e.dir=t,e;r=3}}r>0&&(e.root=t.slice(0,r));let s=-1,o=r,a=-1,c=!0,l=t.length-1,f=0;for(;l>=r;--l){if(i=t.charCodeAt(l),Oe(i)){if(!c){o=l+1;break}continue}a===-1&&(c=!1,a=l+1),i===fi?s===-1?s=l:f!==1&&(f=1):s!==-1&&(f=-1)}return a!==-1&&(s===-1||f===0||f===1&&s===a-1&&s===o+1?e.base=e.name=t.slice(o,a):(e.name=t.slice(o,s),e.base=t.slice(o,a),e.ext=t.slice(s,a))),o>0&&o!==r?e.dir=t.slice(0,o-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},kv=(()=>{if(er){const t=/\\/g;return()=>{const e=ec().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>ec()})(),ct={resolve(...t){let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const i=r>=0?t[r]:kv();Et(i,"path"),i.length!==0&&(e=`${i}/${e}`,n=i.charCodeAt(0)===Yt)}return e=tc(e,!n,"/",tf),n?`/${e}`:e.length>0?e:"."},normalize(t){if(Et(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===Yt,n=t.charCodeAt(t.length-1)===Yt;return t=tc(t,!e,"/",tf),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return Et(t,"path"),t.length>0&&t.charCodeAt(0)===Yt},join(...t){if(t.length===0)return".";let e;for(let n=0;n<t.length;++n){const r=t[n];Et(r,"path"),r.length>0&&(e===void 0?e=r:e+=`/${r}`)}return e===void 0?".":ct.normalize(e)},relative(t,e){if(Et(t,"from"),Et(e,"to"),t===e||(t=ct.resolve(t),e=ct.resolve(e),t===e))return"";const n=1,r=t.length,i=r-n,s=1,o=e.length-s,a=i<o?i:o;let c=-1,l=0;for(;l<a;l++){const p=t.charCodeAt(n+l);if(p!==e.charCodeAt(s+l))break;p===Yt&&(c=l)}if(l===a)if(o>a){if(e.charCodeAt(s+l)===Yt)return e.slice(s+l+1);if(l===0)return e.slice(s+l)}else i>a&&(t.charCodeAt(n+l)===Yt?c=l:l===0&&(c=0));let f="";for(l=n+c+1;l<=r;++l)(l===r||t.charCodeAt(l)===Yt)&&(f+=f.length===0?"..":"/..");return`${f}${e.slice(s+c)}`},toNamespacedPath(t){return t},dirname(t){if(Et(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===Yt;let n=-1,r=!0;for(let i=t.length-1;i>=1;--i)if(t.charCodeAt(i)===Yt){if(!r){n=i;break}}else r=!1;return n===-1?e?"/":".":e&&n===1?"//":t.slice(0,n)},basename(t,e){e!==void 0&&Et(e,"ext"),Et(t,"path");let n=0,r=-1,i=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let o=e.length-1,a=-1;for(s=t.length-1;s>=0;--s){const c=t.charCodeAt(s);if(c===Yt){if(!i){n=s+1;break}}else a===-1&&(i=!1,a=s+1),o>=0&&(c===e.charCodeAt(o)?--o===-1&&(r=s):(o=-1,r=a))}return n===r?r=a:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===Yt){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){Et(t,"path");let e=-1,n=0,r=-1,i=!0,s=0;for(let o=t.length-1;o>=0;--o){const a=t.charCodeAt(o);if(a===Yt){if(!i){n=o+1;break}continue}r===-1&&(i=!1,r=o+1),a===fi?e===-1?e=o:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||r===-1||s===0||s===1&&e===r-1&&e===n+1?"":t.slice(e,r)},format:B2.bind(null,"/"),parse(t){Et(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.charCodeAt(0)===Yt;let r;n?(e.root="/",r=1):r=0;let i=-1,s=0,o=-1,a=!0,c=t.length-1,l=0;for(;c>=r;--c){const f=t.charCodeAt(c);if(f===Yt){if(!a){s=c+1;break}continue}o===-1&&(a=!1,o=c+1),f===fi?i===-1?i=c:l!==1&&(l=1):i!==-1&&(l=-1)}if(o!==-1){const f=s===0&&n?1:s;i===-1||l===0||l===1&&i===o-1&&i===s+1?e.base=e.name=t.slice(f,o):(e.name=t.slice(f,i),e.base=t.slice(f,o),e.ext=t.slice(i,o))}return s>0?e.dir=t.slice(0,s-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};ct.win32=Bt.win32=Bt;ct.posix=Bt.posix=ct;const Rv=er?Bt.normalize:ct.normalize;er?Bt.isAbsolute:ct.isAbsolute;er?Bt.join:ct.join;const xv=er?Bt.resolve:ct.resolve,Ev=er?Bt.relative:ct.relative,Pv=er?Bt.dirname:ct.dirname;er?Bt.basename:ct.basename;er?Bt.extname:ct.extname;er?Bt.parse:ct.parse;const xa=er?Bt.sep:ct.sep;er?Bt.delimiter:ct.delimiter;function ei(t){return t===47||t===92}function V2(t){return t.replace(/[\\/]/g,ct.sep)}function Iv(t){return t.indexOf("/")===-1&&(t=V2(t)),/^[a-zA-Z]:(\/|$)/.test(t)&&(t="/"+t),t}function gm(t,e=ct.sep){if(!t)return"";const n=t.length,r=t.charCodeAt(0);if(ei(r)){if(ei(t.charCodeAt(1))&&!ei(t.charCodeAt(2))){let s=3;const o=s;for(;s<n&&!ei(t.charCodeAt(s));s++);if(o!==s&&!ei(t.charCodeAt(s+1))){for(s+=1;s<n;s++)if(ei(t.charCodeAt(s)))return t.slice(0,s+1).replace(/[\\/]/g,e)}}return e}else if(Mv(r)&&t.charCodeAt(1)===58)return ei(t.charCodeAt(2))?t.slice(0,2)+e:t.slice(0,2);let i=t.indexOf("://");if(i!==-1){for(i+=3;i<n;i++)if(ei(t.charCodeAt(i)))return t.slice(0,i+1)}return""}function mm(t,e,n,r=xa){if(t===e)return!0;if(!t||!e||e.length>t.length)return!1;if(n){if(!j2(t,e))return!1;if(e.length===t.length)return!0;let s=e.length;return e.charAt(e.length-1)===r&&s--,t.charAt(s)===r}return e.charAt(e.length-1)!==r&&(e+=r),t.indexOf(e)===0}function Mv(t){return t>=65&&t<=90||t>=97&&t<=122}const Ov=/^\w[\w\d+.-]*$/,Av=/^\//,Fv=/^\/\//;function Lv(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!Ov.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Av.test(t.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(Fv.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Nv(t,e){return!t&&!e?"file":t}function $v(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==or&&(e=or+e):e=or;break}return e}const dt="",or="/",qv=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class rt{static isUri(e){return e instanceof rt?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}constructor(e,n,r,i,s,o=!1){typeof e=="object"?(this.scheme=e.scheme||dt,this.authority=e.authority||dt,this.path=e.path||dt,this.query=e.query||dt,this.fragment=e.fragment||dt):(this.scheme=Nv(e,o),this.authority=n||dt,this.path=$v(this.scheme,r||dt),this.query=i||dt,this.fragment=s||dt,Lv(this,o))}get fsPath(){return nc(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:r,path:i,query:s,fragment:o}=e;return n===void 0?n=this.scheme:n===null&&(n=dt),r===void 0?r=this.authority:r===null&&(r=dt),i===void 0?i=this.path:i===null&&(i=dt),s===void 0?s=this.query:s===null&&(s=dt),o===void 0?o=this.fragment:o===null&&(o=dt),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&o===this.fragment?this:new is(n,r,i,s,o)}static parse(e,n=!1){const r=qv.exec(e);return r?new is(r[2]||dt,pa(r[4]||dt),pa(r[5]||dt),pa(r[7]||dt),pa(r[9]||dt),n):new is(dt,dt,dt,dt,dt)}static file(e){let n=dt;if(Ji&&(e=e.replace(/\\/g,or)),e[0]===or&&e[1]===or){const r=e.indexOf(or,2);r===-1?(n=e.substring(2),e=or):(n=e.substring(2,r),e=e.substring(r)||or)}return new is("file",n,e,dt,dt)}static from(e,n){return new is(e.scheme,e.authority,e.path,e.query,e.fragment,n)}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return Ji&&e.scheme==="file"?r=rt.file(Bt.join(nc(e,!0),...n)).path:r=ct.join(e.path,...n),e.with({path:r})}toString(e=!1){return nf(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof rt)return e;{const n=new is(e);return n._formatted=e.external??null,n._fsPath=e._sep===K2?e.fsPath??null:null,n}}else return e}}const K2=Ji?1:void 0;let is=class extends rt{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=nc(this,!1)),this._fsPath}toString(e=!1){return e?nf(this,!0):(this._formatted||(this._formatted=nf(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=K2),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}};const G2={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function ym(t,e,n){let r,i=-1;for(let s=0;s<t.length;s++){const o=t.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||e&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r!==void 0&&(r+=t.charAt(s));else{r===void 0&&(r=t.substr(0,s));const a=G2[o];a!==void 0?(i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r+=a):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(t.substring(i))),r!==void 0?r:t}function jv(t){let e;for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);r===35||r===63?(e===void 0&&(e=t.substr(0,n)),e+=G2[r]):e!==void 0&&(e+=t[n])}return e!==void 0?e:t}function nc(t,e){let n;return t.authority&&t.path.length>1&&t.scheme==="file"?n=`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,Ji&&(n=n.replace(/\//g,"\\")),n}function nf(t,e){const n=e?jv:ym;let r="",{scheme:i,authority:s,path:o,query:a,fragment:c}=t;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=or,r+=or),s){let l=s.indexOf("@");if(l!==-1){const f=s.substr(0,l);s=s.substr(l+1),l=f.lastIndexOf(":"),l===-1?r+=n(f,!1,!1):(r+=n(f.substr(0,l),!1,!1),r+=":",r+=n(f.substr(l+1),!1,!0)),r+="@"}s=s.toLowerCase(),l=s.lastIndexOf(":"),l===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,l),!1,!0),r+=s.substr(l))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){const l=o.charCodeAt(1);l>=65&&l<=90&&(o=`/${String.fromCharCode(l+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){const l=o.charCodeAt(0);l>=65&&l<=90&&(o=`${String.fromCharCode(l+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),c&&(r+="#",r+=e?c:ym(c,!1,!1)),r}function Q2(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+Q2(t.substr(3)):t}}const bm=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function pa(t){return t.match(bm)?t.replace(bm,e=>Q2(e)):t}var Ct;(function(t){t.inMemory="inmemory",t.vscode="vscode",t.internal="private",t.walkThrough="walkThrough",t.walkThroughSnippet="walkThroughSnippet",t.http="http",t.https="https",t.file="file",t.mailto="mailto",t.untitled="untitled",t.data="data",t.command="command",t.vscodeRemote="vscode-remote",t.vscodeRemoteResource="vscode-remote-resource",t.vscodeManagedRemoteResource="vscode-managed-remote-resource",t.vscodeUserData="vscode-userdata",t.vscodeCustomEditor="vscode-custom-editor",t.vscodeNotebookCell="vscode-notebook-cell",t.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",t.vscodeNotebookCellOutput="vscode-notebook-cell-output",t.vscodeInteractiveInput="vscode-interactive-input",t.vscodeSettings="vscode-settings",t.vscodeWorkspaceTrust="vscode-workspace-trust",t.vscodeTerminal="vscode-terminal",t.vscodeChatCodeBlock="vscode-chat-code-block",t.vscodeChatCodeCompreBlock="vscode-chat-code-compare-block",t.vscodeChatSesssion="vscode-chat-editor",t.webviewPanel="webview-panel",t.vscodeWebview="vscode-webview",t.extension="extension",t.vscodeFileResource="vscode-file",t.tmp="tmp",t.vsls="vsls",t.vscodeSourceControl="vscode-scm",t.commentsInput="comment",t.codeSetting="code-setting"})(Ct||(Ct={}));const Hv="tkn";class Wv{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}setDelegate(e){this._delegate=e}setServerRootPath(e,n){this._serverRootPath=zv(e,n)}getServerRootPath(){return this._serverRootPath}get _remoteResourcesPath(){return ct.join(this._serverRootPath,Ct.vscodeRemoteResource)}set(e,n,r){this._hosts[e]=n,this._ports[e]=r}setConnectionToken(e,n){this._connectionTokens[e]=n}getPreferredWebSchema(){return this._preferredWebSchema}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(a){return F2(a),e}const n=e.authority;let r=this._hosts[n];r&&r.indexOf(":")!==-1&&r.indexOf("[")===-1&&(r=`[${r}]`);const i=this._ports[n],s=this._connectionTokens[n];let o=`path=${encodeURIComponent(e.path)}`;return typeof s=="string"&&(o+=`&${Hv}=${encodeURIComponent(s)}`),rt.from({scheme:op?this._preferredWebSchema:Ct.vscodeRemoteResource,authority:`${r}:${i}`,path:this._remoteResourcesPath,query:o})}}const Uv=new Wv;function zv(t,e){return ct.join(e??"/",`${t.quality??"oss"}-${t.commit??"dev"}`)}const Bv="vscode-app",ys=class ys{constructor(){this.staticBrowserUris=new Ga,this.appResourcePathUrls=new Map,this.moduleContentProvider=new Map}registerModuleContentProvider(e,n){this.moduleContentProvider.set(e,n)}toModuleContent(e){return this.moduleContentProvider.get(e)()}registerAppResourcePathUrl(e,n){this.appResourcePathUrls.set(e,n)}toUrl(e){var r;let n=this.appResourcePathUrls.get(e);return typeof n=="function"&&(n=n()),new URL(n??e,((r=globalThis.location)==null?void 0:r.href)??(typeof document>"u"?require("url").pathToFileURL(__filename).href:Sp&&Sp.src||new URL("index.cjs.js",document.baseURI).href)).toString()}asBrowserUri(e){const n=this.toUri(e,{toUrl:this.toUrl.bind(this)});return this.uriToBrowserUri(n)}uriToBrowserUri(e){return e.scheme===Ct.vscodeRemote?Uv.rewrite(e):e.scheme===Ct.file&&(dv||hv===`${Ct.vscodeFileResource}://${ys.FALLBACK_AUTHORITY}`)?e.with({scheme:Ct.vscodeFileResource,authority:e.authority||ys.FALLBACK_AUTHORITY,query:null,fragment:null}):this.staticBrowserUris.get(e)??e}asFileUri(e){const n=this.toUri(e,{toUrl:this.toUrl.bind(this)});return this.uriToFileUri(n)}uriToFileUri(e){return e.scheme===Ct.vscodeFileResource?e.with({scheme:Ct.file,authority:e.authority!==ys.FALLBACK_AUTHORITY?e.authority:null,query:null,fragment:null}):e}toUri(e,n){return rt.isUri(e)?e:rt.parse(n.toUrl(e))}registerStaticBrowserUri(e,n){return this.staticBrowserUris.set(e,n),Y1(()=>{this.staticBrowserUris.get(e)===n&&this.staticBrowserUris.delete(e)})}getRegisteredBrowserUris(){return this.staticBrowserUris.keys()}};ys.FALLBACK_AUTHORITY=Bv;let rf=ys;new rf;var vm;(function(t){const e=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);t.CoopAndCoep=Object.freeze(e.get("3"));const n="vscode-coi";function r(s){let o;typeof s=="string"?o=new URL(s).searchParams:s instanceof URL?o=s.searchParams:rt.isUri(s)&&(o=new URL(s.toString(!0)).searchParams);const a=o==null?void 0:o.get(n);if(a)return e.get(a)}t.getHeadersFromQuery=r;function i(s,o,a){if(!globalThis.crossOriginIsolated)return;const c=o&&a?"3":a?"2":"1";s instanceof URLSearchParams?s.set(n,c):s[n]=c}t.addSearchParam=i})(vm||(vm={}));function kr(t){return nc(t,!0)}class Vv{constructor(e){this._ignorePathCasing=e}compare(e,n,r=!1){return e===n?0:Jd(this.getComparisonKey(e,r),this.getComparisonKey(n,r))}isEqual(e,n,r=!1){return e===n?!0:!e||!n?!1:this.getComparisonKey(e,r)===this.getComparisonKey(n,r)}getComparisonKey(e,n=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:n?null:void 0}).toString()}ignorePathCasing(e){return this._ignorePathCasing(e)}isEqualOrParent(e,n,r=!1){if(e.scheme===n.scheme){if(e.scheme===Ct.file)return mm(kr(e),kr(n),this._ignorePathCasing(e))&&e.query===n.query&&(r||e.fragment===n.fragment);if(wm(e.authority,n.authority))return mm(e.path,n.path,this._ignorePathCasing(e),"/")&&e.query===n.query&&(r||e.fragment===n.fragment)}return!1}joinPath(e,...n){return rt.joinPath(e,...n)}basenameOrAuthority(e){return Kv(e)||e.authority}basename(e){return ct.basename(e.path)}extname(e){return ct.extname(e.path)}dirname(e){if(e.path.length===0)return e;let n;return e.scheme===Ct.file?n=rt.file(Pv(kr(e))).path:(n=ct.dirname(e.path),e.authority&&n.length&&n.charCodeAt(0)!==47&&(console.error(`dirname("${e.toString})) resulted in a relative path`),n="/")),e.with({path:n})}normalizePath(e){if(!e.path.length)return e;let n;return e.scheme===Ct.file?n=rt.file(Rv(kr(e))).path:n=ct.normalize(e.path),e.with({path:n})}relativePath(e,n){if(e.scheme!==n.scheme||!wm(e.authority,n.authority))return;if(e.scheme===Ct.file){const s=Ev(kr(e),kr(n));return Ji?V2(s):s}let r=e.path||"/";const i=n.path||"/";if(this._ignorePathCasing(e)){let s=0;for(const o=Math.min(r.length,i.length);s<o&&!(r.charCodeAt(s)!==i.charCodeAt(s)&&r.charAt(s).toLowerCase()!==i.charAt(s).toLowerCase());s++);r=i.substr(0,s)+r.substr(s)}return ct.relative(r,i)}resolvePath(e,n){if(e.scheme===Ct.file){const r=rt.file(xv(kr(e),n));return e.with({authority:r.authority,path:r.path})}return n=Iv(n),e.with({path:ct.resolve(e.path,n)})}isAbsolutePath(e){return!!e.path&&e.path[0]==="/"}isEqualAuthority(e,n){return e===n||e!==void 0&&n!==void 0&&K4(e,n)}hasTrailingPathSeparator(e,n=xa){if(e.scheme===Ct.file){const r=kr(e);return r.length>gm(r).length&&r[r.length-1]===n}else{const r=e.path;return r.length>1&&r.charCodeAt(r.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,n=xa){return Cm(e,n)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,n=xa){let r=!1;if(e.scheme===Ct.file){const i=kr(e);r=i!==void 0&&i.length===gm(i).length&&i[i.length-1]===n}else{n="/";const i=e.path;r=i.length===1&&i.charCodeAt(i.length-1)===47}return!r&&!Cm(e,n)?e.with({path:e.path+"/"}):e}}const Ge=new Vv(()=>!1);Ge.isEqual.bind(Ge);Ge.isEqualOrParent.bind(Ge);Ge.getComparisonKey.bind(Ge);Ge.basenameOrAuthority.bind(Ge);const Kv=Ge.basename.bind(Ge);Ge.extname.bind(Ge);Ge.dirname.bind(Ge);Ge.joinPath.bind(Ge);Ge.normalizePath.bind(Ge);Ge.relativePath.bind(Ge);Ge.resolvePath.bind(Ge);Ge.isAbsolutePath.bind(Ge);const wm=Ge.isEqualAuthority.bind(Ge),Cm=Ge.hasTrailingPathSeparator.bind(Ge);Ge.removeTrailingPathSeparator.bind(Ge);Ge.addTrailingPathSeparator.bind(Ge);var _m;(function(t){t.META_DATA_LABEL="label",t.META_DATA_DESCRIPTION="description",t.META_DATA_SIZE="size",t.META_DATA_MIME="mime";function e(n){const r=new Map;n.path.substring(n.path.indexOf(";")+1,n.path.lastIndexOf(";")).split(";").forEach(o=>{const[a,c]=o.split(":");a&&c&&r.set(a,c)});const s=n.path.substring(0,n.path.indexOf(";"));return s&&r.set(t.META_DATA_MIME,s),r}t.parseMetaData=e})(_m||(_m={}));let Gv=class{constructor(e="",n=!1){if(this.value=e,typeof this.value!="string")throw Ae("value");typeof n=="boolean"?(this.isTrusted=n,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=n.isTrusted??void 0,this.supportThemeIcons=n.supportThemeIcons??!1,this.supportHtml=n.supportHtml??!1)}appendText(e,n=0){return this.value+=Qv(this.supportThemeIcons?sv(e):e).replace(/([ \t]+)/g,(r,i)=>" ".repeat(i.length)).replace(/\>/gm,"\\>").replace(/\n/g,n===1?`\\
|
|
102
|
+
`))}}let K4=0;class Hl{constructor(e){this.value=e,this.id=K4++}}const G4=2;let pi=class{constructor(e){var n,i,r,s;this._size=0,this._options=e,this._leakageMon=(n=this._options)!=null&&n.leakWarningThreshold?new V4(((i=this._options)==null?void 0:i.leakWarningThreshold)??B4):void 0,this._perfMon=(r=this._options)!=null&&r._profName?new Xd(this._options._profName):void 0,this._deliveryQueue=(s=this._options)==null?void 0:s.deliveryQueue}dispose(){var e,n,i,r;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)==null?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(i=(n=this._options)==null?void 0:n.onDidRemoveLastListener)==null||i.call(n),(r=this._leakageMon)==null||r.dispose())}get event(){return this._event??(this._event=(e,n,i)=>{var a,c,l,f;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),Jd.None;if(this._disposed)return Jd.None;n&&(e=e.bind(n));const r=new Hl(e);let s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(r.stack=eg.create(),s=this._leakageMon.check(r.stack,this._size+1)),this._listeners?this._listeners instanceof Hl?(this._deliveryQueue??(this._deliveryQueue=new J4),this._listeners=[this._listeners,r]):this._listeners.push(r):((c=(a=this._options)==null?void 0:a.onWillAddFirstListener)==null||c.call(a,this),this._listeners=r,(f=(l=this._options)==null?void 0:l.onDidAddFirstListener)==null||f.call(l,this)),this._size++;const o=Y1(()=>{s==null||s(),this._removeListener(r)});return i instanceof jo?i.add(o):Array.isArray(i)&&i.push(o),o}),this._event}_removeListener(e){var s,o,a,c;if((o=(s=this._options)==null?void 0:s.onWillRemoveListener)==null||o.call(s,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(c=(a=this._options)==null?void 0:a.onDidRemoveLastListener)==null||c.call(a,this),this._size=0;return}const n=this._listeners,i=n.indexOf(e);if(i===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[i]=void 0;const r=this._deliveryQueue.current===this;if(this._size*G4<=n.length){let l=0;for(let f=0;f<n.length;f++)n[f]?n[l++]=n[f]:r&&(this._deliveryQueue.end--,l<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=l}}_deliver(e,n){var r;if(!e)return;const i=((r=this._options)==null?void 0:r.onListenerError)||N2;if(!i){e.value(n);return}try{e.value(n)}catch(s){i(s)}}_deliverQueue(e){const n=e.current._listeners;for(;e.i<e.end;)this._deliver(n[e.i++],e.value);e.reset()}fire(e){var n,i,r,s;if((n=this._deliveryQueue)!=null&&n.current&&(this._deliverQueue(this._deliveryQueue),(i=this._perfMon)==null||i.stop()),(r=this._perfMon)==null||r.start(this._size),this._listeners)if(this._listeners instanceof Hl)this._deliver(this._listeners,e);else{const o=this._deliveryQueue;o.enqueue(this,e,this._listeners.length),this._deliverQueue(o)}(s=this._perfMon)==null||s.stop()}hasListeners(){return this._size>0}};class J4{constructor(){this.i=-1,this.end=0}enqueue(e,n,i){this.i=0,this.end=i,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}const H2=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});var Xa;(function(t){function e(n){return n===t.None||n===t.Cancelled||n instanceof ka?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ja.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:H2})})(Xa||(Xa={}));class ka{constructor(){this._isCancelled=!1,this._emitter=null}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?H2:(this._emitter||(this._emitter=new pi),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}let X4=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new ka),this._token}cancel(){this._token?this._token instanceof ka&&this._token.cancel():this._token=Xa.Cancelled}dispose(e=!1){var n;e&&this.cancel(),(n=this._parentListener)==null||n.dispose(),this._token?this._token instanceof ka&&this._token.dispose():this._token=Xa.None}};function Z4(t){return t}class Y4{constructor(e,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=Z4):(this._fn=n,this._computeKey=e.getCacheKey)}get(e){const n=this._computeKey(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(e)),this.lastCache}}class Ss{constructor(e){this.executor=e,this._didRun=!1}get hasValue(){return this._didRun}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function Q4(t){return!t||typeof t!="string"?!0:t.trim().length===0}function e5(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Zd(t,e){return t<e?-1:t>e?1:0}function tg(t,e,n=0,i=t.length,r=0,s=e.length){for(;n<i&&r<s;n++,r++){const c=t.charCodeAt(n),l=e.charCodeAt(r);if(c<l)return-1;if(c>l)return 1}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function rm(t,e){return ea(t,e,0,t.length,0,e.length)}function ea(t,e,n=0,i=t.length,r=0,s=e.length){for(;n<i&&r<s;n++,r++){let c=t.charCodeAt(n),l=e.charCodeAt(r);if(c===l)continue;if(c>=128||l>=128)return tg(t.toLowerCase(),e.toLowerCase(),n,i,r,s);sm(c)&&(c-=32),sm(l)&&(l-=32);const f=c-l;if(f!==0)return f}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function sm(t){return t>=97&&t<=122}function t5(t,e){return t.length===e.length&&ea(t,e)===0}function W2(t,e){const n=e.length;return e.length>t.length?!1:ea(t,e,0,n)===0}function ng(t){return 55296<=t&&t<=56319}function Za(t){return 56320<=t&&t<=57343}function ig(t,e){return(t-55296<<10)+(e-56320)+65536}function n5(t,e,n){const i=t.charCodeAt(n);if(ng(i)&&n+1<e){const r=t.charCodeAt(n+1);if(Za(r))return ig(i,r)}return i}function i5(t,e){const n=t.charCodeAt(e-1);if(Za(n)&&e>1){const i=t.charCodeAt(e-2);if(ng(i))return ig(i,n)}return n}class r5{get offset(){return this._offset}constructor(e,n=0){this._str=e,this._len=e.length,this._offset=n}setOffset(e){this._offset=e}prevCodePoint(){const e=i5(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=n5(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class s5{get offset(){return this._iterator.offset}constructor(e,n=0){this._iterator=new r5(e,n)}nextGraphemeLength(){const e=Ya.getInstance(),n=this._iterator,i=n.offset;let r=e.getGraphemeBreakType(n.nextCodePoint());for(;!n.eol();){const s=n.offset,o=e.getGraphemeBreakType(n.nextCodePoint());if(am(r,o)){n.setOffset(s);break}r=o}return n.offset-i}prevGraphemeLength(){const e=Ya.getInstance(),n=this._iterator,i=n.offset;let r=e.getGraphemeBreakType(n.prevCodePoint());for(;n.offset>0;){const s=n.offset,o=e.getGraphemeBreakType(n.prevCodePoint());if(am(o,r)){n.setOffset(s);break}r=o}return i-n.offset}eol(){return this._iterator.eol()}}function om(t,e){return new s5(t,e).nextGraphemeLength()}function am(t,e){return t===0?e!==5&&e!==7:t===2&&e===3?!1:t===4||t===2||t===3||e===4||e===2||e===3?!0:!(t===8&&(e===8||e===9||e===11||e===12)||(t===11||t===9)&&(e===9||e===10)||(t===12||t===10)&&e===10||e===5||e===13||e===7||t===1||t===13&&e===14||t===6&&e===6)}const Nr=class Nr{static getInstance(){return Nr._INSTANCE||(Nr._INSTANCE=new Nr),Nr._INSTANCE}constructor(){this._data=o5()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const n=this._data,i=n.length/3;let r=1;for(;r<=i;)if(e<n[3*r])r=2*r;else if(e>n[3*r+1])r=2*r+1;else return n[3*r+2];return 0}};Nr._INSTANCE=null;let Ya=Nr;function o5(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}const hi=class hi{static getInstance(e){return hi.cache.get(Array.from(e))}static getLocales(){return hi._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};hi.ambiguousCharacterData=new Ss(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),hi.cache=new Y4({getCacheKey:JSON.stringify},e=>{function n(f){const g=new Map;for(let p=0;p<f.length;p+=2)g.set(f[p],f[p+1]);return g}function i(f,g){const p=new Map(f);for(const[_,C]of g)p.set(_,C);return p}function r(f,g){if(!f)return g;const p=new Map;for(const[_,C]of f)g.has(_)&&p.set(_,C);return p}const s=hi.ambiguousCharacterData.value;let o=e.filter(f=>!f.startsWith("_")&&f in s);o.length===0&&(o=["_default"]);let a;for(const f of o){const g=n(s[f]);a=r(a,g)}const c=n(s._common),l=i(c,a);return new hi(l)}),hi._locales=new Ss(()=>Object.keys(hi.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));let cm=hi;const ms=class ms{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(ms.getRawData())),this._data}static isInvisibleCharacter(e){return ms.getData().has(e)}static get codePoints(){return ms.getData()}};ms._data=void 0;let lm=ms;U2.bind(void 0,!1);U2.bind(void 0,!0);function U2(t,e,n){if(!n||n.length<e.length)return null;let i;return t?i=W2(n,e):i=n.indexOf(e)===0,i?e.length>0?[{start:0,end:e.length}]:[]:null}const a5=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(t=>a5.add(t.charCodeAt(0)));new q2(1e4);const um=128;function rg(){const t=[],e=[];for(let n=0;n<=um;n++)e[n]=0;for(let n=0;n<=um;n++)t.push(e.slice(0));return t}rg();rg();rg();var dm;(function(t){t.Default=[-100,0];function e(n){return!n||n.length===2&&n[0]===-100&&n[1]===0}t.isDefault=e})(dm||(dm={}));const vg=class vg{constructor(e,n){this.firstMatchCanBeWeak=e,this.boostFullMatch=n}};vg.default={boostFullMatch:!0,firstMatchCanBeWeak:!1};let fm=vg;function jn(t){return typeof t=="string"}function c5(t){return Array.isArray(t)&&t.every(e=>jn(e))}function hm(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}function Co(t){return typeof t=="number"&&!isNaN(t)}const gm=Object.create(null);function u(t,e){if(jn(e)){const n=gm[e];if(n===void 0)throw new Error(`${t} references an unknown codicon: ${e}`);e=n}return gm[t]=e,{id:t}}const l5={add:u("add",6e4),plus:u("plus",6e4),gistNew:u("gist-new",6e4),repoCreate:u("repo-create",6e4),lightbulb:u("lightbulb",60001),lightBulb:u("light-bulb",60001),repo:u("repo",60002),repoDelete:u("repo-delete",60002),gistFork:u("gist-fork",60003),repoForked:u("repo-forked",60003),gitPullRequest:u("git-pull-request",60004),gitPullRequestAbandoned:u("git-pull-request-abandoned",60004),recordKeys:u("record-keys",60005),keyboard:u("keyboard",60005),tag:u("tag",60006),gitPullRequestLabel:u("git-pull-request-label",60006),tagAdd:u("tag-add",60006),tagRemove:u("tag-remove",60006),person:u("person",60007),personFollow:u("person-follow",60007),personOutline:u("person-outline",60007),personFilled:u("person-filled",60007),gitBranch:u("git-branch",60008),gitBranchCreate:u("git-branch-create",60008),gitBranchDelete:u("git-branch-delete",60008),sourceControl:u("source-control",60008),mirror:u("mirror",60009),mirrorPublic:u("mirror-public",60009),star:u("star",60010),starAdd:u("star-add",60010),starDelete:u("star-delete",60010),starEmpty:u("star-empty",60010),comment:u("comment",60011),commentAdd:u("comment-add",60011),alert:u("alert",60012),warning:u("warning",60012),search:u("search",60013),searchSave:u("search-save",60013),logOut:u("log-out",60014),signOut:u("sign-out",60014),logIn:u("log-in",60015),signIn:u("sign-in",60015),eye:u("eye",60016),eyeUnwatch:u("eye-unwatch",60016),eyeWatch:u("eye-watch",60016),circleFilled:u("circle-filled",60017),primitiveDot:u("primitive-dot",60017),closeDirty:u("close-dirty",60017),debugBreakpoint:u("debug-breakpoint",60017),debugBreakpointDisabled:u("debug-breakpoint-disabled",60017),debugHint:u("debug-hint",60017),terminalDecorationSuccess:u("terminal-decoration-success",60017),primitiveSquare:u("primitive-square",60018),edit:u("edit",60019),pencil:u("pencil",60019),info:u("info",60020),issueOpened:u("issue-opened",60020),gistPrivate:u("gist-private",60021),gitForkPrivate:u("git-fork-private",60021),lock:u("lock",60021),mirrorPrivate:u("mirror-private",60021),close:u("close",60022),removeClose:u("remove-close",60022),x:u("x",60022),repoSync:u("repo-sync",60023),sync:u("sync",60023),clone:u("clone",60024),desktopDownload:u("desktop-download",60024),beaker:u("beaker",60025),microscope:u("microscope",60025),vm:u("vm",60026),deviceDesktop:u("device-desktop",60026),file:u("file",60027),fileText:u("file-text",60027),more:u("more",60028),ellipsis:u("ellipsis",60028),kebabHorizontal:u("kebab-horizontal",60028),mailReply:u("mail-reply",60029),reply:u("reply",60029),organization:u("organization",60030),organizationFilled:u("organization-filled",60030),organizationOutline:u("organization-outline",60030),newFile:u("new-file",60031),fileAdd:u("file-add",60031),newFolder:u("new-folder",60032),fileDirectoryCreate:u("file-directory-create",60032),trash:u("trash",60033),trashcan:u("trashcan",60033),history:u("history",60034),clock:u("clock",60034),folder:u("folder",60035),fileDirectory:u("file-directory",60035),symbolFolder:u("symbol-folder",60035),logoGithub:u("logo-github",60036),markGithub:u("mark-github",60036),github:u("github",60036),terminal:u("terminal",60037),console:u("console",60037),repl:u("repl",60037),zap:u("zap",60038),symbolEvent:u("symbol-event",60038),error:u("error",60039),stop:u("stop",60039),variable:u("variable",60040),symbolVariable:u("symbol-variable",60040),array:u("array",60042),symbolArray:u("symbol-array",60042),symbolModule:u("symbol-module",60043),symbolPackage:u("symbol-package",60043),symbolNamespace:u("symbol-namespace",60043),symbolObject:u("symbol-object",60043),symbolMethod:u("symbol-method",60044),symbolFunction:u("symbol-function",60044),symbolConstructor:u("symbol-constructor",60044),symbolBoolean:u("symbol-boolean",60047),symbolNull:u("symbol-null",60047),symbolNumeric:u("symbol-numeric",60048),symbolNumber:u("symbol-number",60048),symbolStructure:u("symbol-structure",60049),symbolStruct:u("symbol-struct",60049),symbolParameter:u("symbol-parameter",60050),symbolTypeParameter:u("symbol-type-parameter",60050),symbolKey:u("symbol-key",60051),symbolText:u("symbol-text",60051),symbolReference:u("symbol-reference",60052),goToFile:u("go-to-file",60052),symbolEnum:u("symbol-enum",60053),symbolValue:u("symbol-value",60053),symbolRuler:u("symbol-ruler",60054),symbolUnit:u("symbol-unit",60054),activateBreakpoints:u("activate-breakpoints",60055),archive:u("archive",60056),arrowBoth:u("arrow-both",60057),arrowDown:u("arrow-down",60058),arrowLeft:u("arrow-left",60059),arrowRight:u("arrow-right",60060),arrowSmallDown:u("arrow-small-down",60061),arrowSmallLeft:u("arrow-small-left",60062),arrowSmallRight:u("arrow-small-right",60063),arrowSmallUp:u("arrow-small-up",60064),arrowUp:u("arrow-up",60065),bell:u("bell",60066),bold:u("bold",60067),book:u("book",60068),bookmark:u("bookmark",60069),debugBreakpointConditionalUnverified:u("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:u("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:u("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:u("debug-breakpoint-data-unverified",60072),debugBreakpointData:u("debug-breakpoint-data",60073),debugBreakpointDataDisabled:u("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:u("debug-breakpoint-log-unverified",60074),debugBreakpointLog:u("debug-breakpoint-log",60075),debugBreakpointLogDisabled:u("debug-breakpoint-log-disabled",60075),briefcase:u("briefcase",60076),broadcast:u("broadcast",60077),browser:u("browser",60078),bug:u("bug",60079),calendar:u("calendar",60080),caseSensitive:u("case-sensitive",60081),check:u("check",60082),checklist:u("checklist",60083),chevronDown:u("chevron-down",60084),chevronLeft:u("chevron-left",60085),chevronRight:u("chevron-right",60086),chevronUp:u("chevron-up",60087),chromeClose:u("chrome-close",60088),chromeMaximize:u("chrome-maximize",60089),chromeMinimize:u("chrome-minimize",60090),chromeRestore:u("chrome-restore",60091),circleOutline:u("circle-outline",60092),circle:u("circle",60092),debugBreakpointUnverified:u("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:u("terminal-decoration-incomplete",60092),circleSlash:u("circle-slash",60093),circuitBoard:u("circuit-board",60094),clearAll:u("clear-all",60095),clippy:u("clippy",60096),closeAll:u("close-all",60097),cloudDownload:u("cloud-download",60098),cloudUpload:u("cloud-upload",60099),code:u("code",60100),collapseAll:u("collapse-all",60101),colorMode:u("color-mode",60102),commentDiscussion:u("comment-discussion",60103),creditCard:u("credit-card",60105),dash:u("dash",60108),dashboard:u("dashboard",60109),database:u("database",60110),debugContinue:u("debug-continue",60111),debugDisconnect:u("debug-disconnect",60112),debugPause:u("debug-pause",60113),debugRestart:u("debug-restart",60114),debugStart:u("debug-start",60115),debugStepInto:u("debug-step-into",60116),debugStepOut:u("debug-step-out",60117),debugStepOver:u("debug-step-over",60118),debugStop:u("debug-stop",60119),debug:u("debug",60120),deviceCameraVideo:u("device-camera-video",60121),deviceCamera:u("device-camera",60122),deviceMobile:u("device-mobile",60123),diffAdded:u("diff-added",60124),diffIgnored:u("diff-ignored",60125),diffModified:u("diff-modified",60126),diffRemoved:u("diff-removed",60127),diffRenamed:u("diff-renamed",60128),diff:u("diff",60129),diffSidebyside:u("diff-sidebyside",60129),discard:u("discard",60130),editorLayout:u("editor-layout",60131),emptyWindow:u("empty-window",60132),exclude:u("exclude",60133),extensions:u("extensions",60134),eyeClosed:u("eye-closed",60135),fileBinary:u("file-binary",60136),fileCode:u("file-code",60137),fileMedia:u("file-media",60138),filePdf:u("file-pdf",60139),fileSubmodule:u("file-submodule",60140),fileSymlinkDirectory:u("file-symlink-directory",60141),fileSymlinkFile:u("file-symlink-file",60142),fileZip:u("file-zip",60143),files:u("files",60144),filter:u("filter",60145),flame:u("flame",60146),foldDown:u("fold-down",60147),foldUp:u("fold-up",60148),fold:u("fold",60149),folderActive:u("folder-active",60150),folderOpened:u("folder-opened",60151),gear:u("gear",60152),gift:u("gift",60153),gistSecret:u("gist-secret",60154),gist:u("gist",60155),gitCommit:u("git-commit",60156),gitCompare:u("git-compare",60157),compareChanges:u("compare-changes",60157),gitMerge:u("git-merge",60158),githubAction:u("github-action",60159),githubAlt:u("github-alt",60160),globe:u("globe",60161),grabber:u("grabber",60162),graph:u("graph",60163),gripper:u("gripper",60164),heart:u("heart",60165),home:u("home",60166),horizontalRule:u("horizontal-rule",60167),hubot:u("hubot",60168),inbox:u("inbox",60169),issueReopened:u("issue-reopened",60171),issues:u("issues",60172),italic:u("italic",60173),jersey:u("jersey",60174),json:u("json",60175),kebabVertical:u("kebab-vertical",60176),key:u("key",60177),law:u("law",60178),lightbulbAutofix:u("lightbulb-autofix",60179),linkExternal:u("link-external",60180),link:u("link",60181),listOrdered:u("list-ordered",60182),listUnordered:u("list-unordered",60183),liveShare:u("live-share",60184),loading:u("loading",60185),location:u("location",60186),mailRead:u("mail-read",60187),mail:u("mail",60188),markdown:u("markdown",60189),megaphone:u("megaphone",60190),mention:u("mention",60191),milestone:u("milestone",60192),gitPullRequestMilestone:u("git-pull-request-milestone",60192),mortarBoard:u("mortar-board",60193),move:u("move",60194),multipleWindows:u("multiple-windows",60195),mute:u("mute",60196),noNewline:u("no-newline",60197),note:u("note",60198),octoface:u("octoface",60199),openPreview:u("open-preview",60200),package:u("package",60201),paintcan:u("paintcan",60202),pin:u("pin",60203),play:u("play",60204),run:u("run",60204),plug:u("plug",60205),preserveCase:u("preserve-case",60206),preview:u("preview",60207),project:u("project",60208),pulse:u("pulse",60209),question:u("question",60210),quote:u("quote",60211),radioTower:u("radio-tower",60212),reactions:u("reactions",60213),references:u("references",60214),refresh:u("refresh",60215),regex:u("regex",60216),remoteExplorer:u("remote-explorer",60217),remote:u("remote",60218),remove:u("remove",60219),replaceAll:u("replace-all",60220),replace:u("replace",60221),repoClone:u("repo-clone",60222),repoForcePush:u("repo-force-push",60223),repoPull:u("repo-pull",60224),repoPush:u("repo-push",60225),report:u("report",60226),requestChanges:u("request-changes",60227),rocket:u("rocket",60228),rootFolderOpened:u("root-folder-opened",60229),rootFolder:u("root-folder",60230),rss:u("rss",60231),ruby:u("ruby",60232),saveAll:u("save-all",60233),saveAs:u("save-as",60234),save:u("save",60235),screenFull:u("screen-full",60236),screenNormal:u("screen-normal",60237),searchStop:u("search-stop",60238),server:u("server",60240),settingsGear:u("settings-gear",60241),settings:u("settings",60242),shield:u("shield",60243),smiley:u("smiley",60244),sortPrecedence:u("sort-precedence",60245),splitHorizontal:u("split-horizontal",60246),splitVertical:u("split-vertical",60247),squirrel:u("squirrel",60248),starFull:u("star-full",60249),starHalf:u("star-half",60250),symbolClass:u("symbol-class",60251),symbolColor:u("symbol-color",60252),symbolConstant:u("symbol-constant",60253),symbolEnumMember:u("symbol-enum-member",60254),symbolField:u("symbol-field",60255),symbolFile:u("symbol-file",60256),symbolInterface:u("symbol-interface",60257),symbolKeyword:u("symbol-keyword",60258),symbolMisc:u("symbol-misc",60259),symbolOperator:u("symbol-operator",60260),symbolProperty:u("symbol-property",60261),wrench:u("wrench",60261),wrenchSubaction:u("wrench-subaction",60261),symbolSnippet:u("symbol-snippet",60262),tasklist:u("tasklist",60263),telescope:u("telescope",60264),textSize:u("text-size",60265),threeBars:u("three-bars",60266),thumbsdown:u("thumbsdown",60267),thumbsup:u("thumbsup",60268),tools:u("tools",60269),triangleDown:u("triangle-down",60270),triangleLeft:u("triangle-left",60271),triangleRight:u("triangle-right",60272),triangleUp:u("triangle-up",60273),twitter:u("twitter",60274),unfold:u("unfold",60275),unlock:u("unlock",60276),unmute:u("unmute",60277),unverified:u("unverified",60278),verified:u("verified",60279),versions:u("versions",60280),vmActive:u("vm-active",60281),vmOutline:u("vm-outline",60282),vmRunning:u("vm-running",60283),watch:u("watch",60284),whitespace:u("whitespace",60285),wholeWord:u("whole-word",60286),window:u("window",60287),wordWrap:u("word-wrap",60288),zoomIn:u("zoom-in",60289),zoomOut:u("zoom-out",60290),listFilter:u("list-filter",60291),listFlat:u("list-flat",60292),listSelection:u("list-selection",60293),selection:u("selection",60293),listTree:u("list-tree",60294),debugBreakpointFunctionUnverified:u("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:u("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:u("debug-breakpoint-function-disabled",60296),debugStackframeActive:u("debug-stackframe-active",60297),circleSmallFilled:u("circle-small-filled",60298),debugStackframeDot:u("debug-stackframe-dot",60298),terminalDecorationMark:u("terminal-decoration-mark",60298),debugStackframe:u("debug-stackframe",60299),debugStackframeFocused:u("debug-stackframe-focused",60299),debugBreakpointUnsupported:u("debug-breakpoint-unsupported",60300),symbolString:u("symbol-string",60301),debugReverseContinue:u("debug-reverse-continue",60302),debugStepBack:u("debug-step-back",60303),debugRestartFrame:u("debug-restart-frame",60304),debugAlt:u("debug-alt",60305),callIncoming:u("call-incoming",60306),callOutgoing:u("call-outgoing",60307),menu:u("menu",60308),expandAll:u("expand-all",60309),feedback:u("feedback",60310),gitPullRequestReviewer:u("git-pull-request-reviewer",60310),groupByRefType:u("group-by-ref-type",60311),ungroupByRefType:u("ungroup-by-ref-type",60312),account:u("account",60313),gitPullRequestAssignee:u("git-pull-request-assignee",60313),bellDot:u("bell-dot",60314),debugConsole:u("debug-console",60315),library:u("library",60316),output:u("output",60317),runAll:u("run-all",60318),syncIgnored:u("sync-ignored",60319),pinned:u("pinned",60320),githubInverted:u("github-inverted",60321),serverProcess:u("server-process",60322),serverEnvironment:u("server-environment",60323),pass:u("pass",60324),issueClosed:u("issue-closed",60324),stopCircle:u("stop-circle",60325),playCircle:u("play-circle",60326),record:u("record",60327),debugAltSmall:u("debug-alt-small",60328),vmConnect:u("vm-connect",60329),cloud:u("cloud",60330),merge:u("merge",60331),export:u("export",60332),graphLeft:u("graph-left",60333),magnet:u("magnet",60334),notebook:u("notebook",60335),redo:u("redo",60336),checkAll:u("check-all",60337),pinnedDirty:u("pinned-dirty",60338),passFilled:u("pass-filled",60339),circleLargeFilled:u("circle-large-filled",60340),circleLarge:u("circle-large",60341),circleLargeOutline:u("circle-large-outline",60341),combine:u("combine",60342),gather:u("gather",60342),table:u("table",60343),variableGroup:u("variable-group",60344),typeHierarchy:u("type-hierarchy",60345),typeHierarchySub:u("type-hierarchy-sub",60346),typeHierarchySuper:u("type-hierarchy-super",60347),gitPullRequestCreate:u("git-pull-request-create",60348),runAbove:u("run-above",60349),runBelow:u("run-below",60350),notebookTemplate:u("notebook-template",60351),debugRerun:u("debug-rerun",60352),workspaceTrusted:u("workspace-trusted",60353),workspaceUntrusted:u("workspace-untrusted",60354),workspaceUnknown:u("workspace-unknown",60355),terminalCmd:u("terminal-cmd",60356),terminalDebian:u("terminal-debian",60357),terminalLinux:u("terminal-linux",60358),terminalPowershell:u("terminal-powershell",60359),terminalTmux:u("terminal-tmux",60360),terminalUbuntu:u("terminal-ubuntu",60361),terminalBash:u("terminal-bash",60362),arrowSwap:u("arrow-swap",60363),copy:u("copy",60364),personAdd:u("person-add",60365),filterFilled:u("filter-filled",60366),wand:u("wand",60367),debugLineByLine:u("debug-line-by-line",60368),inspect:u("inspect",60369),layers:u("layers",60370),layersDot:u("layers-dot",60371),layersActive:u("layers-active",60372),compass:u("compass",60373),compassDot:u("compass-dot",60374),compassActive:u("compass-active",60375),azure:u("azure",60376),issueDraft:u("issue-draft",60377),gitPullRequestClosed:u("git-pull-request-closed",60378),gitPullRequestDraft:u("git-pull-request-draft",60379),debugAll:u("debug-all",60380),debugCoverage:u("debug-coverage",60381),runErrors:u("run-errors",60382),folderLibrary:u("folder-library",60383),debugContinueSmall:u("debug-continue-small",60384),beakerStop:u("beaker-stop",60385),graphLine:u("graph-line",60386),graphScatter:u("graph-scatter",60387),pieChart:u("pie-chart",60388),bracket:u("bracket",60175),bracketDot:u("bracket-dot",60389),bracketError:u("bracket-error",60390),lockSmall:u("lock-small",60391),azureDevops:u("azure-devops",60392),verifiedFilled:u("verified-filled",60393),newline:u("newline",60394),layout:u("layout",60395),layoutActivitybarLeft:u("layout-activitybar-left",60396),layoutActivitybarRight:u("layout-activitybar-right",60397),layoutPanelLeft:u("layout-panel-left",60398),layoutPanelCenter:u("layout-panel-center",60399),layoutPanelJustify:u("layout-panel-justify",60400),layoutPanelRight:u("layout-panel-right",60401),layoutPanel:u("layout-panel",60402),layoutSidebarLeft:u("layout-sidebar-left",60403),layoutSidebarRight:u("layout-sidebar-right",60404),layoutStatusbar:u("layout-statusbar",60405),layoutMenubar:u("layout-menubar",60406),layoutCentered:u("layout-centered",60407),target:u("target",60408),indent:u("indent",60409),recordSmall:u("record-small",60410),errorSmall:u("error-small",60411),terminalDecorationError:u("terminal-decoration-error",60411),arrowCircleDown:u("arrow-circle-down",60412),arrowCircleLeft:u("arrow-circle-left",60413),arrowCircleRight:u("arrow-circle-right",60414),arrowCircleUp:u("arrow-circle-up",60415),layoutSidebarRightOff:u("layout-sidebar-right-off",60416),layoutPanelOff:u("layout-panel-off",60417),layoutSidebarLeftOff:u("layout-sidebar-left-off",60418),blank:u("blank",60419),heartFilled:u("heart-filled",60420),map:u("map",60421),mapHorizontal:u("map-horizontal",60421),foldHorizontal:u("fold-horizontal",60421),mapFilled:u("map-filled",60422),mapHorizontalFilled:u("map-horizontal-filled",60422),foldHorizontalFilled:u("fold-horizontal-filled",60422),circleSmall:u("circle-small",60423),bellSlash:u("bell-slash",60424),bellSlashDot:u("bell-slash-dot",60425),commentUnresolved:u("comment-unresolved",60426),gitPullRequestGoToChanges:u("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:u("git-pull-request-new-changes",60428),searchFuzzy:u("search-fuzzy",60429),commentDraft:u("comment-draft",60430),send:u("send",60431),sparkle:u("sparkle",60432),insert:u("insert",60433),mic:u("mic",60434),thumbsdownFilled:u("thumbsdown-filled",60435),thumbsupFilled:u("thumbsup-filled",60436),coffee:u("coffee",60437),snake:u("snake",60438),game:u("game",60439),vr:u("vr",60440),chip:u("chip",60441),piano:u("piano",60442),music:u("music",60443),micFilled:u("mic-filled",60444),repoFetch:u("repo-fetch",60445),copilot:u("copilot",60446),lightbulbSparkle:u("lightbulb-sparkle",60447),robot:u("robot",60448),sparkleFilled:u("sparkle-filled",60449),diffSingle:u("diff-single",60450),diffMultiple:u("diff-multiple",60451),surroundWith:u("surround-with",60452),share:u("share",60453),gitStash:u("git-stash",60454),gitStashApply:u("git-stash-apply",60455),gitStashPop:u("git-stash-pop",60456),vscode:u("vscode",60457),vscodeInsiders:u("vscode-insiders",60458),codeOss:u("code-oss",60459),runCoverage:u("run-coverage",60460),runAllCoverage:u("run-all-coverage",60461),coverage:u("coverage",60462),githubProject:u("github-project",60463),mapVertical:u("map-vertical",60464),foldVertical:u("fold-vertical",60464),mapVerticalFilled:u("map-vertical-filled",60465),foldVerticalFilled:u("fold-vertical-filled",60465),goToSearch:u("go-to-search",60466),percentage:u("percentage",60467),sortPercentage:u("sort-percentage",60467)},u5={dialogError:u("dialog-error","error"),dialogWarning:u("dialog-warning","warning"),dialogInfo:u("dialog-info","info"),dialogClose:u("dialog-close","close"),treeItemExpanded:u("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:u("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:u("tree-filter-on-type-off","list-selection"),treeFilterClear:u("tree-filter-clear","close"),treeItemLoading:u("tree-item-loading","loading"),menuSelection:u("menu-selection","check"),menuSubmenu:u("menu-submenu","chevron-right"),menuBarMore:u("menubar-more","more"),scrollbarButtonLeft:u("scrollbar-button-left","triangle-left"),scrollbarButtonRight:u("scrollbar-button-right","triangle-right"),scrollbarButtonUp:u("scrollbar-button-up","triangle-up"),scrollbarButtonDown:u("scrollbar-button-down","triangle-down"),toolBarMore:u("toolbar-more","more"),quickInputBack:u("quick-input-back","arrow-left"),dropDownButton:u("drop-down-button",60084),symbolCustomColor:u("symbol-customcolor",60252),exportIcon:u("export",60332),workspaceUnspecified:u("workspace-unspecified",60355),newLine:u("newline",60394),thumbsDownFilled:u("thumbsdown-filled",60435),thumbsUpFilled:u("thumbsup-filled",60436),gitFetch:u("git-fetch",60445),lightbulbSparkleAutofix:u("lightbulb-sparkle-autofix",60447),debugBreakpointPending:u("debug-breakpoint-pending",60377)},d5={...l5,...u5};var Yd;(function(t){function e(n){return n&&typeof n=="object"&&typeof n.id=="string"}t.isThemeColor=e})(Yd||(Yd={}));var Ho;(function(t){t.iconNameSegment="[A-Za-z0-9]+",t.iconNameExpression="[A-Za-z0-9-]+",t.iconModifierExpression="~[A-Za-z]+",t.iconNameCharacter="[A-Za-z0-9~-]";const e=new RegExp(`^(${t.iconNameExpression})(${t.iconModifierExpression})?$`);function n(p){const _=e.exec(p.id);if(!_)return n(d5.error);const[,C,k]=_,A=["codicon","codicon-"+C];return k&&A.push("codicon-modifier-"+k.substring(1)),A}t.asClassNameArray=n;function i(p){return n(p).join(" ")}t.asClassName=i;function r(p){return"."+n(p).join(".")}t.asCSSSelector=r;function s(p){return p&&typeof p=="object"&&typeof p.id=="string"&&(typeof p.color>"u"||Yd.isThemeColor(p.color))}t.isThemeIcon=s;const o=new RegExp(`^\\$\\((${t.iconNameExpression}(?:${t.iconModifierExpression})?)\\)$`);function a(p){const _=o.exec(p);if(!_)return;const[,C]=_;return{id:C}}t.fromString=a;function c(p){return{id:p}}t.fromId=c;function l(p,_){let C=p.id;const k=C.lastIndexOf("~");return k!==-1&&(C=C.substring(0,k)),_&&(C=`${C}~${_}`),{id:C}}t.modify=l;function f(p){const _=p.id.lastIndexOf("~");if(_!==-1)return p.id.substring(_+1)}t.getModifier=f;function g(p,_){var C,k;return p.id===_.id&&((C=p.color)==null?void 0:C.id)===((k=_.color)==null?void 0:k.id)}t.isEqual=g})(Ho||(Ho={}));const sg=new RegExp(`\\$\\(${Ho.iconNameExpression}(?:${Ho.iconModifierExpression})?\\)`,"g"),f5=new RegExp(`(\\\\)?${sg.source}`,"g");function h5(t){return t.replace(f5,(e,n)=>n?e:`\\${e}`)}new RegExp(`\\\\${sg.source}`,"g");new RegExp(`(\\s)?(\\\\)?${sg.source}(\\s)?`,"g");new RegExp(`\\$\\(${Ho.iconNameCharacter}+\\)`,"g");let g5=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function p5(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(i,r)=>{const s=r[0],o=e[s];let a=i;return typeof o=="string"?a=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(a=String(o)),a}),g5&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}let m5={};function m(t,e,n,...i){const r=typeof e=="object"?e.key:e,s=(m5[t]??{})[r]??n;return p5(s,i)}const ds="en";let Qd=!1,ef=!1,tf=!1,z2=!1,og=!1,ha,Ra=ds,pm=ds,ii;const Hi=globalThis;let _n;var h2;typeof Hi.vscode<"u"&&typeof Hi.vscode.process<"u"?_n=Hi.vscode.process:typeof process<"u"&&typeof((h2=process==null?void 0:process.versions)==null?void 0:h2.node)=="string"&&(_n=process);var g2;const y5=typeof((g2=_n==null?void 0:_n.versions)==null?void 0:g2.electron)=="string",b5=y5&&(_n==null?void 0:_n.type)==="renderer";if(typeof _n=="object"){Qd=_n.platform==="win32",ef=_n.platform==="darwin",tf=_n.platform==="linux",_n.env.CI||_n.env.BUILD_ARTIFACTSTAGINGDIRECTORY,ha=ds,Ra=ds;const t=_n.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t),n=e.availableLanguages["*"];ha=e.locale,pm=e.osLocale,Ra=n||ds}catch{}z2=!0}else typeof navigator=="object"&&!b5?(ii=navigator.userAgent,Qd=ii.indexOf("Windows")>=0,ef=ii.indexOf("Macintosh")>=0,(ii.indexOf("Macintosh")>=0||ii.indexOf("iPad")>=0||ii.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,tf=ii.indexOf("Linux")>=0,(ii==null?void 0:ii.indexOf("Mobi"))>=0,og=!0,ha=ds,Ra=ha,pm=navigator.language):console.error("Unable to resolve platform.");const Xr=Qd,Si=ef,Qa=tf,v5=z2,ag=og,w5=og&&typeof Hi.importScripts=="function",C5=w5?Hi.origin:void 0,Di=ii,Zi=Ra;var mm;(function(t){function e(){return Zi}t.value=e;function n(){return Zi.length===2?Zi==="en":Zi.length>=3?Zi[0]==="e"&&Zi[1]==="n"&&Zi[2]==="-":!1}t.isDefaultVariant=n;function i(){return Zi==="en"}t.isDefault=i})(mm||(mm={}));const _5=typeof Hi.postMessage=="function"&&!Hi.importScripts;(()=>{if(_5){const t=[];Hi.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let i=0,r=t.length;i<r;i++){const s=t[i];if(s.id===n.data.vscodeScheduleAsyncWork){t.splice(i,1),s.callback();return}}});let e=0;return n=>{const i=++e;t.push({id:i,callback:n}),Hi.postMessage({vscodeScheduleAsyncWork:i},"*")}}return t=>setTimeout(t)})();const B2=!!(Di&&Di.indexOf("Chrome")>=0),S5=!!(Di&&Di.indexOf("Firefox")>=0),D5=!!(!B2&&Di&&Di.indexOf("Safari")>=0),T5=!!(Di&&Di.indexOf("Edg/")>=0);Di&&Di.indexOf("Android")>=0;let Ur;const Wl=globalThis.vscode;if(typeof Wl<"u"&&typeof Wl.process<"u"){const t=Wl.process;Ur={get platform(){return t.platform},get arch(){return t.arch},get env(){return t.env},cwd(){return t.cwd()}}}else typeof process<"u"?Ur={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Ur={get platform(){return Xr?"win32":Si?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const ec=Ur.cwd,k5=Ur.env,R5=Ur.platform;Ur.arch;const x5=65,I5=97,E5=90,P5=122,fr=46,Zt=47,Pn=92,Yi=58,A5=63;class V2 extends Error{constructor(e,n,i){let r;typeof n=="string"&&n.indexOf("not ")===0?(r="must not be",n=n.replace(/^not /,"")):r="must be";const s=e.indexOf(".")!==-1?"property":"argument";let o=`The "${e}" ${s} ${r} of type ${n}`;o+=`. Received type ${typeof i}`,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function M5(t,e){if(t===null||typeof t!="object")throw new V2(e,"Object",t)}function It(t,e){if(typeof t!="string")throw new V2(e,"string",t)}const ei=R5==="win32";function Me(t){return t===Zt||t===Pn}function nf(t){return t===Zt}function Qi(t){return t>=x5&&t<=E5||t>=I5&&t<=P5}function tc(t,e,n,i){let r="",s=0,o=-1,a=0,c=0;for(let l=0;l<=t.length;++l){if(l<t.length)c=t.charCodeAt(l);else{if(i(c))break;c=Zt}if(i(c)){if(!(o===l-1||a===1))if(a===2){if(r.length<2||s!==2||r.charCodeAt(r.length-1)!==fr||r.charCodeAt(r.length-2)!==fr){if(r.length>2){const f=r.lastIndexOf(n);f===-1?(r="",s=0):(r=r.slice(0,f),s=r.length-1-r.lastIndexOf(n)),o=l,a=0;continue}else if(r.length!==0){r="",s=0,o=l,a=0;continue}}e&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${t.slice(o+1,l)}`:r=t.slice(o+1,l),s=l-o-1;o=l,a=0}else c===fr&&a!==-1?++a:a=-1}return r}function K2(t,e){M5(e,"pathObject");const n=e.dir||e.root,i=e.base||`${e.name||""}${e.ext||""}`;return n?n===e.root?`${n}${i}`:`${n}${t}${i}`:i}const Bt={resolve(...t){let e="",n="",i=!1;for(let r=t.length-1;r>=-1;r--){let s;if(r>=0){if(s=t[r],It(s,"path"),s.length===0)continue}else e.length===0?s=ec():(s=k5[`=${e}`]||ec(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===Pn)&&(s=`${e}\\`));const o=s.length;let a=0,c="",l=!1;const f=s.charCodeAt(0);if(o===1)Me(f)&&(a=1,l=!0);else if(Me(f))if(l=!0,Me(s.charCodeAt(1))){let g=2,p=g;for(;g<o&&!Me(s.charCodeAt(g));)g++;if(g<o&&g!==p){const _=s.slice(p,g);for(p=g;g<o&&Me(s.charCodeAt(g));)g++;if(g<o&&g!==p){for(p=g;g<o&&!Me(s.charCodeAt(g));)g++;(g===o||g!==p)&&(c=`\\\\${_}\\${s.slice(p,g)}`,a=g)}}}else a=1;else Qi(f)&&s.charCodeAt(1)===Yi&&(c=s.slice(0,2),a=2,o>2&&Me(s.charCodeAt(2))&&(l=!0,a=3));if(c.length>0)if(e.length>0){if(c.toLowerCase()!==e.toLowerCase())continue}else e=c;if(i){if(e.length>0)break}else if(n=`${s.slice(a)}\\${n}`,i=l,l&&e.length>0)break}return n=tc(n,!i,"\\",Me),i?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){It(t,"path");const e=t.length;if(e===0)return".";let n=0,i,r=!1;const s=t.charCodeAt(0);if(e===1)return nf(s)?"\\":t;if(Me(s))if(r=!0,Me(t.charCodeAt(1))){let a=2,c=a;for(;a<e&&!Me(t.charCodeAt(a));)a++;if(a<e&&a!==c){const l=t.slice(c,a);for(c=a;a<e&&Me(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&!Me(t.charCodeAt(a));)a++;if(a===e)return`\\\\${l}\\${t.slice(c)}\\`;a!==c&&(i=`\\\\${l}\\${t.slice(c,a)}`,n=a)}}}else n=1;else Qi(s)&&t.charCodeAt(1)===Yi&&(i=t.slice(0,2),n=2,e>2&&Me(t.charCodeAt(2))&&(r=!0,n=3));let o=n<e?tc(t.slice(n),!r,"\\",Me):"";return o.length===0&&!r&&(o="."),o.length>0&&Me(t.charCodeAt(e-1))&&(o+="\\"),i===void 0?r?`\\${o}`:o:r?`${i}\\${o}`:`${i}${o}`},isAbsolute(t){It(t,"path");const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0);return Me(n)||e>2&&Qi(n)&&t.charCodeAt(1)===Yi&&Me(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,n;for(let s=0;s<t.length;++s){const o=t[s];It(o,"path"),o.length>0&&(e===void 0?e=n=o:e+=`\\${o}`)}if(e===void 0)return".";let i=!0,r=0;if(typeof n=="string"&&Me(n.charCodeAt(0))){++r;const s=n.length;s>1&&Me(n.charCodeAt(1))&&(++r,s>2&&(Me(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<e.length&&Me(e.charCodeAt(r));)r++;r>=2&&(e=`\\${e.slice(r)}`)}return Bt.normalize(e)},relative(t,e){if(It(t,"from"),It(e,"to"),t===e)return"";const n=Bt.resolve(t),i=Bt.resolve(e);if(n===i||(t=n.toLowerCase(),e=i.toLowerCase(),t===e))return"";let r=0;for(;r<t.length&&t.charCodeAt(r)===Pn;)r++;let s=t.length;for(;s-1>r&&t.charCodeAt(s-1)===Pn;)s--;const o=s-r;let a=0;for(;a<e.length&&e.charCodeAt(a)===Pn;)a++;let c=e.length;for(;c-1>a&&e.charCodeAt(c-1)===Pn;)c--;const l=c-a,f=o<l?o:l;let g=-1,p=0;for(;p<f;p++){const C=t.charCodeAt(r+p);if(C!==e.charCodeAt(a+p))break;C===Pn&&(g=p)}if(p!==f){if(g===-1)return i}else{if(l>f){if(e.charCodeAt(a+p)===Pn)return i.slice(a+p+1);if(p===2)return i.slice(a+p)}o>f&&(t.charCodeAt(r+p)===Pn?g=p:p===2&&(g=3)),g===-1&&(g=0)}let _="";for(p=r+g+1;p<=s;++p)(p===s||t.charCodeAt(p)===Pn)&&(_+=_.length===0?"..":"\\..");return a+=g,_.length>0?`${_}${i.slice(a,c)}`:(i.charCodeAt(a)===Pn&&++a,i.slice(a,c))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=Bt.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===Pn){if(e.charCodeAt(1)===Pn){const n=e.charCodeAt(2);if(n!==A5&&n!==fr)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(Qi(e.charCodeAt(0))&&e.charCodeAt(1)===Yi&&e.charCodeAt(2)===Pn)return`\\\\?\\${e}`;return t},dirname(t){It(t,"path");const e=t.length;if(e===0)return".";let n=-1,i=0;const r=t.charCodeAt(0);if(e===1)return Me(r)?t:".";if(Me(r)){if(n=i=1,Me(t.charCodeAt(1))){let a=2,c=a;for(;a<e&&!Me(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&Me(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&!Me(t.charCodeAt(a));)a++;if(a===e)return t;a!==c&&(n=i=a+1)}}}}else Qi(r)&&t.charCodeAt(1)===Yi&&(n=e>2&&Me(t.charCodeAt(2))?3:2,i=n);let s=-1,o=!0;for(let a=e-1;a>=i;--a)if(Me(t.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(s===-1){if(n===-1)return".";s=n}return t.slice(0,s)},basename(t,e){e!==void 0&&It(e,"ext"),It(t,"path");let n=0,i=-1,r=!0,s;if(t.length>=2&&Qi(t.charCodeAt(0))&&t.charCodeAt(1)===Yi&&(n=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let o=e.length-1,a=-1;for(s=t.length-1;s>=n;--s){const c=t.charCodeAt(s);if(Me(c)){if(!r){n=s+1;break}}else a===-1&&(r=!1,a=s+1),o>=0&&(c===e.charCodeAt(o)?--o===-1&&(i=s):(o=-1,i=a))}return n===i?i=a:i===-1&&(i=t.length),t.slice(n,i)}for(s=t.length-1;s>=n;--s)if(Me(t.charCodeAt(s))){if(!r){n=s+1;break}}else i===-1&&(r=!1,i=s+1);return i===-1?"":t.slice(n,i)},extname(t){It(t,"path");let e=0,n=-1,i=0,r=-1,s=!0,o=0;t.length>=2&&t.charCodeAt(1)===Yi&&Qi(t.charCodeAt(0))&&(e=i=2);for(let a=t.length-1;a>=e;--a){const c=t.charCodeAt(a);if(Me(c)){if(!s){i=a+1;break}continue}r===-1&&(s=!1,r=a+1),c===fr?n===-1?n=a:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||r===-1||o===0||o===1&&n===r-1&&n===i+1?"":t.slice(n,r)},format:K2.bind(null,"\\"),parse(t){It(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.length;let i=0,r=t.charCodeAt(0);if(n===1)return Me(r)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if(Me(r)){if(i=1,Me(t.charCodeAt(1))){let g=2,p=g;for(;g<n&&!Me(t.charCodeAt(g));)g++;if(g<n&&g!==p){for(p=g;g<n&&Me(t.charCodeAt(g));)g++;if(g<n&&g!==p){for(p=g;g<n&&!Me(t.charCodeAt(g));)g++;g===n?i=g:g!==p&&(i=g+1)}}}}else if(Qi(r)&&t.charCodeAt(1)===Yi){if(n<=2)return e.root=e.dir=t,e;if(i=2,Me(t.charCodeAt(2))){if(n===3)return e.root=e.dir=t,e;i=3}}i>0&&(e.root=t.slice(0,i));let s=-1,o=i,a=-1,c=!0,l=t.length-1,f=0;for(;l>=i;--l){if(r=t.charCodeAt(l),Me(r)){if(!c){o=l+1;break}continue}a===-1&&(c=!1,a=l+1),r===fr?s===-1?s=l:f!==1&&(f=1):s!==-1&&(f=-1)}return a!==-1&&(s===-1||f===0||f===1&&s===a-1&&s===o+1?e.base=e.name=t.slice(o,a):(e.name=t.slice(o,s),e.base=t.slice(o,a),e.ext=t.slice(s,a))),o>0&&o!==i?e.dir=t.slice(0,o-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},O5=(()=>{if(ei){const t=/\\/g;return()=>{const e=ec().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>ec()})(),ct={resolve(...t){let e="",n=!1;for(let i=t.length-1;i>=-1&&!n;i--){const r=i>=0?t[i]:O5();It(r,"path"),r.length!==0&&(e=`${r}/${e}`,n=r.charCodeAt(0)===Zt)}return e=tc(e,!n,"/",nf),n?`/${e}`:e.length>0?e:"."},normalize(t){if(It(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===Zt,n=t.charCodeAt(t.length-1)===Zt;return t=tc(t,!e,"/",nf),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return It(t,"path"),t.length>0&&t.charCodeAt(0)===Zt},join(...t){if(t.length===0)return".";let e;for(let n=0;n<t.length;++n){const i=t[n];It(i,"path"),i.length>0&&(e===void 0?e=i:e+=`/${i}`)}return e===void 0?".":ct.normalize(e)},relative(t,e){if(It(t,"from"),It(e,"to"),t===e||(t=ct.resolve(t),e=ct.resolve(e),t===e))return"";const n=1,i=t.length,r=i-n,s=1,o=e.length-s,a=r<o?r:o;let c=-1,l=0;for(;l<a;l++){const g=t.charCodeAt(n+l);if(g!==e.charCodeAt(s+l))break;g===Zt&&(c=l)}if(l===a)if(o>a){if(e.charCodeAt(s+l)===Zt)return e.slice(s+l+1);if(l===0)return e.slice(s+l)}else r>a&&(t.charCodeAt(n+l)===Zt?c=l:l===0&&(c=0));let f="";for(l=n+c+1;l<=i;++l)(l===i||t.charCodeAt(l)===Zt)&&(f+=f.length===0?"..":"/..");return`${f}${e.slice(s+c)}`},toNamespacedPath(t){return t},dirname(t){if(It(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===Zt;let n=-1,i=!0;for(let r=t.length-1;r>=1;--r)if(t.charCodeAt(r)===Zt){if(!i){n=r;break}}else i=!1;return n===-1?e?"/":".":e&&n===1?"//":t.slice(0,n)},basename(t,e){e!==void 0&&It(e,"ext"),It(t,"path");let n=0,i=-1,r=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let o=e.length-1,a=-1;for(s=t.length-1;s>=0;--s){const c=t.charCodeAt(s);if(c===Zt){if(!r){n=s+1;break}}else a===-1&&(r=!1,a=s+1),o>=0&&(c===e.charCodeAt(o)?--o===-1&&(i=s):(o=-1,i=a))}return n===i?i=a:i===-1&&(i=t.length),t.slice(n,i)}for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===Zt){if(!r){n=s+1;break}}else i===-1&&(r=!1,i=s+1);return i===-1?"":t.slice(n,i)},extname(t){It(t,"path");let e=-1,n=0,i=-1,r=!0,s=0;for(let o=t.length-1;o>=0;--o){const a=t.charCodeAt(o);if(a===Zt){if(!r){n=o+1;break}continue}i===-1&&(r=!1,i=o+1),a===fr?e===-1?e=o:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||i===-1||s===0||s===1&&e===i-1&&e===n+1?"":t.slice(e,i)},format:K2.bind(null,"/"),parse(t){It(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.charCodeAt(0)===Zt;let i;n?(e.root="/",i=1):i=0;let r=-1,s=0,o=-1,a=!0,c=t.length-1,l=0;for(;c>=i;--c){const f=t.charCodeAt(c);if(f===Zt){if(!a){s=c+1;break}continue}o===-1&&(a=!1,o=c+1),f===fr?r===-1?r=c:l!==1&&(l=1):r!==-1&&(l=-1)}if(o!==-1){const f=s===0&&n?1:s;r===-1||l===0||l===1&&r===o-1&&r===s+1?e.base=e.name=t.slice(f,o):(e.name=t.slice(f,r),e.base=t.slice(f,o),e.ext=t.slice(r,o))}return s>0?e.dir=t.slice(0,s-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};ct.win32=Bt.win32=Bt;ct.posix=Bt.posix=ct;const F5=ei?Bt.normalize:ct.normalize;ei?Bt.isAbsolute:ct.isAbsolute;ei?Bt.join:ct.join;const L5=ei?Bt.resolve:ct.resolve,N5=ei?Bt.relative:ct.relative,$5=ei?Bt.dirname:ct.dirname;ei?Bt.basename:ct.basename;ei?Bt.extname:ct.extname;ei?Bt.parse:ct.parse;const xa=ei?Bt.sep:ct.sep;ei?Bt.delimiter:ct.delimiter;function er(t){return t===47||t===92}function G2(t){return t.replace(/[\\/]/g,ct.sep)}function q5(t){return t.indexOf("/")===-1&&(t=G2(t)),/^[a-zA-Z]:(\/|$)/.test(t)&&(t="/"+t),t}function ym(t,e=ct.sep){if(!t)return"";const n=t.length,i=t.charCodeAt(0);if(er(i)){if(er(t.charCodeAt(1))&&!er(t.charCodeAt(2))){let s=3;const o=s;for(;s<n&&!er(t.charCodeAt(s));s++);if(o!==s&&!er(t.charCodeAt(s+1))){for(s+=1;s<n;s++)if(er(t.charCodeAt(s)))return t.slice(0,s+1).replace(/[\\/]/g,e)}}return e}else if(j5(i)&&t.charCodeAt(1)===58)return er(t.charCodeAt(2))?t.slice(0,2)+e:t.slice(0,2);let r=t.indexOf("://");if(r!==-1){for(r+=3;r<n;r++)if(er(t.charCodeAt(r)))return t.slice(0,r+1)}return""}function bm(t,e,n,i=xa){if(t===e)return!0;if(!t||!e||e.length>t.length)return!1;if(n){if(!W2(t,e))return!1;if(e.length===t.length)return!0;let s=e.length;return e.charAt(e.length-1)===i&&s--,t.charAt(s)===i}return e.charAt(e.length-1)!==i&&(e+=i),t.indexOf(e)===0}function j5(t){return t>=65&&t<=90||t>=97&&t<=122}const H5=/^\w[\w\d+.-]*$/,W5=/^\//,U5=/^\/\//;function z5(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!H5.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!W5.test(t.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(U5.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function B5(t,e){return!t&&!e?"file":t}function V5(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==oi&&(e=oi+e):e=oi;break}return e}const dt="",oi="/",K5=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class it{static isUri(e){return e instanceof it?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}constructor(e,n,i,r,s,o=!1){typeof e=="object"?(this.scheme=e.scheme||dt,this.authority=e.authority||dt,this.path=e.path||dt,this.query=e.query||dt,this.fragment=e.fragment||dt):(this.scheme=B5(e,o),this.authority=n||dt,this.path=V5(this.scheme,i||dt),this.query=r||dt,this.fragment=s||dt,z5(this,o))}get fsPath(){return nc(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:i,path:r,query:s,fragment:o}=e;return n===void 0?n=this.scheme:n===null&&(n=dt),i===void 0?i=this.authority:i===null&&(i=dt),r===void 0?r=this.path:r===null&&(r=dt),s===void 0?s=this.query:s===null&&(s=dt),o===void 0?o=this.fragment:o===null&&(o=dt),n===this.scheme&&i===this.authority&&r===this.path&&s===this.query&&o===this.fragment?this:new rs(n,i,r,s,o)}static parse(e,n=!1){const i=K5.exec(e);return i?new rs(i[2]||dt,ga(i[4]||dt),ga(i[5]||dt),ga(i[7]||dt),ga(i[9]||dt),n):new rs(dt,dt,dt,dt,dt)}static file(e){let n=dt;if(Xr&&(e=e.replace(/\\/g,oi)),e[0]===oi&&e[1]===oi){const i=e.indexOf(oi,2);i===-1?(n=e.substring(2),e=oi):(n=e.substring(2,i),e=e.substring(i)||oi)}return new rs("file",n,e,dt,dt)}static from(e,n){return new rs(e.scheme,e.authority,e.path,e.query,e.fragment,n)}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return Xr&&e.scheme==="file"?i=it.file(Bt.join(nc(e,!0),...n)).path:i=ct.join(e.path,...n),e.with({path:i})}toString(e=!1){return rf(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof it)return e;{const n=new rs(e);return n._formatted=e.external??null,n._fsPath=e._sep===J2?e.fsPath??null:null,n}}else return e}}const J2=Xr?1:void 0;let rs=class extends it{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=nc(this,!1)),this._fsPath}toString(e=!1){return e?rf(this,!0):(this._formatted||(this._formatted=rf(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=J2),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}};const X2={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function vm(t,e,n){let i,r=-1;for(let s=0;s<t.length;s++){const o=t.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||e&&o===47||n&&o===91||n&&o===93||n&&o===58)r!==-1&&(i+=encodeURIComponent(t.substring(r,s)),r=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));const a=X2[o];a!==void 0?(r!==-1&&(i+=encodeURIComponent(t.substring(r,s)),r=-1),i+=a):r===-1&&(r=s)}}return r!==-1&&(i+=encodeURIComponent(t.substring(r))),i!==void 0?i:t}function G5(t){let e;for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);i===35||i===63?(e===void 0&&(e=t.substr(0,n)),e+=X2[i]):e!==void 0&&(e+=t[n])}return e!==void 0?e:t}function nc(t,e){let n;return t.authority&&t.path.length>1&&t.scheme==="file"?n=`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,Xr&&(n=n.replace(/\//g,"\\")),n}function rf(t,e){const n=e?G5:vm;let i="",{scheme:r,authority:s,path:o,query:a,fragment:c}=t;if(r&&(i+=r,i+=":"),(s||r==="file")&&(i+=oi,i+=oi),s){let l=s.indexOf("@");if(l!==-1){const f=s.substr(0,l);s=s.substr(l+1),l=f.lastIndexOf(":"),l===-1?i+=n(f,!1,!1):(i+=n(f.substr(0,l),!1,!1),i+=":",i+=n(f.substr(l+1),!1,!0)),i+="@"}s=s.toLowerCase(),l=s.lastIndexOf(":"),l===-1?i+=n(s,!1,!0):(i+=n(s.substr(0,l),!1,!0),i+=s.substr(l))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){const l=o.charCodeAt(1);l>=65&&l<=90&&(o=`/${String.fromCharCode(l+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){const l=o.charCodeAt(0);l>=65&&l<=90&&(o=`${String.fromCharCode(l+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),c&&(i+="#",i+=e?c:vm(c,!1,!1)),i}function Z2(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+Z2(t.substr(3)):t}}const wm=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ga(t){return t.match(wm)?t.replace(wm,e=>Z2(e)):t}var Ct;(function(t){t.inMemory="inmemory",t.vscode="vscode",t.internal="private",t.walkThrough="walkThrough",t.walkThroughSnippet="walkThroughSnippet",t.http="http",t.https="https",t.file="file",t.mailto="mailto",t.untitled="untitled",t.data="data",t.command="command",t.vscodeRemote="vscode-remote",t.vscodeRemoteResource="vscode-remote-resource",t.vscodeManagedRemoteResource="vscode-managed-remote-resource",t.vscodeUserData="vscode-userdata",t.vscodeCustomEditor="vscode-custom-editor",t.vscodeNotebookCell="vscode-notebook-cell",t.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",t.vscodeNotebookCellOutput="vscode-notebook-cell-output",t.vscodeInteractiveInput="vscode-interactive-input",t.vscodeSettings="vscode-settings",t.vscodeWorkspaceTrust="vscode-workspace-trust",t.vscodeTerminal="vscode-terminal",t.vscodeChatCodeBlock="vscode-chat-code-block",t.vscodeChatCodeCompreBlock="vscode-chat-code-compare-block",t.vscodeChatSesssion="vscode-chat-editor",t.webviewPanel="webview-panel",t.vscodeWebview="vscode-webview",t.extension="extension",t.vscodeFileResource="vscode-file",t.tmp="tmp",t.vsls="vsls",t.vscodeSourceControl="vscode-scm",t.commentsInput="comment",t.codeSetting="code-setting"})(Ct||(Ct={}));const J5="tkn";class X5{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}setDelegate(e){this._delegate=e}setServerRootPath(e,n){this._serverRootPath=Y5(e,n)}getServerRootPath(){return this._serverRootPath}get _remoteResourcesPath(){return ct.join(this._serverRootPath,Ct.vscodeRemoteResource)}set(e,n,i){this._hosts[e]=n,this._ports[e]=i}setConnectionToken(e,n){this._connectionTokens[e]=n}getPreferredWebSchema(){return this._preferredWebSchema}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(a){return N2(a),e}const n=e.authority;let i=this._hosts[n];i&&i.indexOf(":")!==-1&&i.indexOf("[")===-1&&(i=`[${i}]`);const r=this._ports[n],s=this._connectionTokens[n];let o=`path=${encodeURIComponent(e.path)}`;return typeof s=="string"&&(o+=`&${J5}=${encodeURIComponent(s)}`),it.from({scheme:ag?this._preferredWebSchema:Ct.vscodeRemoteResource,authority:`${i}:${r}`,path:this._remoteResourcesPath,query:o})}}const Z5=new X5;function Y5(t,e){return ct.join(e??"/",`${t.quality??"oss"}-${t.commit??"dev"}`)}const Q5="vscode-app",ys=class ys{constructor(){this.staticBrowserUris=new Ga,this.appResourcePathUrls=new Map,this.moduleContentProvider=new Map}registerModuleContentProvider(e,n){this.moduleContentProvider.set(e,n)}toModuleContent(e){return this.moduleContentProvider.get(e)()}registerAppResourcePathUrl(e,n){this.appResourcePathUrls.set(e,n)}toUrl(e){var i;let n=this.appResourcePathUrls.get(e);return typeof n=="function"&&(n=n()),new URL(n??e,((i=globalThis.location)==null?void 0:i.href)??(typeof document>"u"?require("url").pathToFileURL(__filename).href:Tg&&Tg.src||new URL("index.cjs.js",document.baseURI).href)).toString()}asBrowserUri(e){const n=this.toUri(e,{toUrl:this.toUrl.bind(this)});return this.uriToBrowserUri(n)}uriToBrowserUri(e){return e.scheme===Ct.vscodeRemote?Z5.rewrite(e):e.scheme===Ct.file&&(v5||C5===`${Ct.vscodeFileResource}://${ys.FALLBACK_AUTHORITY}`)?e.with({scheme:Ct.vscodeFileResource,authority:e.authority||ys.FALLBACK_AUTHORITY,query:null,fragment:null}):this.staticBrowserUris.get(e)??e}asFileUri(e){const n=this.toUri(e,{toUrl:this.toUrl.bind(this)});return this.uriToFileUri(n)}uriToFileUri(e){return e.scheme===Ct.vscodeFileResource?e.with({scheme:Ct.file,authority:e.authority!==ys.FALLBACK_AUTHORITY?e.authority:null,query:null,fragment:null}):e}toUri(e,n){return it.isUri(e)?e:it.parse(n.toUrl(e))}registerStaticBrowserUri(e,n){return this.staticBrowserUris.set(e,n),Y1(()=>{this.staticBrowserUris.get(e)===n&&this.staticBrowserUris.delete(e)})}getRegisteredBrowserUris(){return this.staticBrowserUris.keys()}};ys.FALLBACK_AUTHORITY=Q5;let sf=ys;new sf;var Cm;(function(t){const e=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);t.CoopAndCoep=Object.freeze(e.get("3"));const n="vscode-coi";function i(s){let o;typeof s=="string"?o=new URL(s).searchParams:s instanceof URL?o=s.searchParams:it.isUri(s)&&(o=new URL(s.toString(!0)).searchParams);const a=o==null?void 0:o.get(n);if(a)return e.get(a)}t.getHeadersFromQuery=i;function r(s,o,a){if(!globalThis.crossOriginIsolated)return;const c=o&&a?"3":a?"2":"1";s instanceof URLSearchParams?s.set(n,c):s[n]=c}t.addSearchParam=r})(Cm||(Cm={}));function ki(t){return nc(t,!0)}class ev{constructor(e){this._ignorePathCasing=e}compare(e,n,i=!1){return e===n?0:Zd(this.getComparisonKey(e,i),this.getComparisonKey(n,i))}isEqual(e,n,i=!1){return e===n?!0:!e||!n?!1:this.getComparisonKey(e,i)===this.getComparisonKey(n,i)}getComparisonKey(e,n=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:n?null:void 0}).toString()}ignorePathCasing(e){return this._ignorePathCasing(e)}isEqualOrParent(e,n,i=!1){if(e.scheme===n.scheme){if(e.scheme===Ct.file)return bm(ki(e),ki(n),this._ignorePathCasing(e))&&e.query===n.query&&(i||e.fragment===n.fragment);if(_m(e.authority,n.authority))return bm(e.path,n.path,this._ignorePathCasing(e),"/")&&e.query===n.query&&(i||e.fragment===n.fragment)}return!1}joinPath(e,...n){return it.joinPath(e,...n)}basenameOrAuthority(e){return tv(e)||e.authority}basename(e){return ct.basename(e.path)}extname(e){return ct.extname(e.path)}dirname(e){if(e.path.length===0)return e;let n;return e.scheme===Ct.file?n=it.file($5(ki(e))).path:(n=ct.dirname(e.path),e.authority&&n.length&&n.charCodeAt(0)!==47&&(console.error(`dirname("${e.toString})) resulted in a relative path`),n="/")),e.with({path:n})}normalizePath(e){if(!e.path.length)return e;let n;return e.scheme===Ct.file?n=it.file(F5(ki(e))).path:n=ct.normalize(e.path),e.with({path:n})}relativePath(e,n){if(e.scheme!==n.scheme||!_m(e.authority,n.authority))return;if(e.scheme===Ct.file){const s=N5(ki(e),ki(n));return Xr?G2(s):s}let i=e.path||"/";const r=n.path||"/";if(this._ignorePathCasing(e)){let s=0;for(const o=Math.min(i.length,r.length);s<o&&!(i.charCodeAt(s)!==r.charCodeAt(s)&&i.charAt(s).toLowerCase()!==r.charAt(s).toLowerCase());s++);i=r.substr(0,s)+i.substr(s)}return ct.relative(i,r)}resolvePath(e,n){if(e.scheme===Ct.file){const i=it.file(L5(ki(e),n));return e.with({authority:i.authority,path:i.path})}return n=q5(n),e.with({path:ct.resolve(e.path,n)})}isAbsolutePath(e){return!!e.path&&e.path[0]==="/"}isEqualAuthority(e,n){return e===n||e!==void 0&&n!==void 0&&t5(e,n)}hasTrailingPathSeparator(e,n=xa){if(e.scheme===Ct.file){const i=ki(e);return i.length>ym(i).length&&i[i.length-1]===n}else{const i=e.path;return i.length>1&&i.charCodeAt(i.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,n=xa){return Sm(e,n)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,n=xa){let i=!1;if(e.scheme===Ct.file){const r=ki(e);i=r!==void 0&&r.length===ym(r).length&&r[r.length-1]===n}else{n="/";const r=e.path;i=r.length===1&&r.charCodeAt(r.length-1)===47}return!i&&!Sm(e,n)?e.with({path:e.path+"/"}):e}}const Ge=new ev(()=>!1);Ge.isEqual.bind(Ge);Ge.isEqualOrParent.bind(Ge);Ge.getComparisonKey.bind(Ge);Ge.basenameOrAuthority.bind(Ge);const tv=Ge.basename.bind(Ge);Ge.extname.bind(Ge);Ge.dirname.bind(Ge);Ge.joinPath.bind(Ge);Ge.normalizePath.bind(Ge);Ge.relativePath.bind(Ge);Ge.resolvePath.bind(Ge);Ge.isAbsolutePath.bind(Ge);const _m=Ge.isEqualAuthority.bind(Ge),Sm=Ge.hasTrailingPathSeparator.bind(Ge);Ge.removeTrailingPathSeparator.bind(Ge);Ge.addTrailingPathSeparator.bind(Ge);var Dm;(function(t){t.META_DATA_LABEL="label",t.META_DATA_DESCRIPTION="description",t.META_DATA_SIZE="size",t.META_DATA_MIME="mime";function e(n){const i=new Map;n.path.substring(n.path.indexOf(";")+1,n.path.lastIndexOf(";")).split(";").forEach(o=>{const[a,c]=o.split(":");a&&c&&i.set(a,c)});const s=n.path.substring(0,n.path.indexOf(";"));return s&&i.set(t.META_DATA_MIME,s),i}t.parseMetaData=e})(Dm||(Dm={}));let nv=class{constructor(e="",n=!1){if(this.value=e,typeof this.value!="string")throw Oe("value");typeof n=="boolean"?(this.isTrusted=n,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=n.isTrusted??void 0,this.supportThemeIcons=n.supportThemeIcons??!1,this.supportHtml=n.supportHtml??!1)}appendText(e,n=0){return this.value+=iv(this.supportThemeIcons?h5(e):e).replace(/([ \t]+)/g,(i,r)=>" ".repeat(r.length)).replace(/\>/gm,"\\>").replace(/\n/g,n===1?`\\
|
|
87
103
|
`:`
|
|
88
104
|
|
|
89
105
|
`),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,n){return this.value+=`
|
|
90
|
-
${
|
|
91
|
-
`,this}appendLink(e,n,
|
|
92
|
-
`)}const zi=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"}),Yv=/^(.+)\/(.+?)(;.+)?$/;function J2(t,e){const n=Yv.exec(t);return n?`${n[1].toLowerCase()}/${n[2].toLowerCase()}${n[3]??""}`:e?void 0:t}const Hc=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let t;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?t=crypto.getRandomValues.bind(crypto):t=function(r){for(let i=0;i<r.length;i++)r[i]=Math.floor(Math.random()*256);return r};const e=new Uint8Array(16),n=[];for(let r=0;r<256;r++)n.push(r.toString(16).padStart(2,"0"));return function(){t(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let i=0,s="";return s+=n[e[i++]],s+=n[e[i++]],s+=n[e[i++]],s+=n[e[i++]],s+="-",s+=n[e[i++]],s+=n[e[i++]],s+="-",s+=n[e[i++]],s+=n[e[i++]],s+="-",s+=n[e[i++]],s+=n[e[i++]],s+="-",s+=n[e[i++]],s+=n[e[i++]],s+=n[e[i++]],s+=n[e[i++]],s+=n[e[i++]],s+=n[e[i++]],s}}();class Xv{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){const n=e.charCodeAt(0),r=this._value.charCodeAt(this._pos);return n-r}value(){return this._value[this._pos]}}class Zv{constructor(e=!0){this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++)if(this._value.charCodeAt(this._to)===46)if(e)this._from++;else break;else e=!1;return this}cmp(e){return this._caseSensitive?ep(e,this._value,0,e.length,this._from,this._to):ea(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class Y2{constructor(e=!0,n=!0){this._splitOnBackslash=e,this._caseSensitive=n}reset(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(let n=e.length-1;n>=0;n--,this._valueLen--){const r=this._value.charCodeAt(n);if(!(r===47||this._splitOnBackslash&&r===92))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let e=!0;for(;this._to<this._valueLen;this._to++){const n=this._value.charCodeAt(this._to);if(n===47||this._splitOnBackslash&&n===92)if(e)this._from++;else break;else e=!1}return this}cmp(e){return this._caseSensitive?ep(e,this._value,0,e.length,this._from,this._to):ea(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class e5{constructor(e,n){this._ignorePathCasing=e,this._ignoreQueryAndFragment=n,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new Y2(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(e)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(this._states[this._stateIdx]===1)return nm(e,this._value.scheme);if(this._states[this._stateIdx]===2)return nm(e,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(e);if(this._states[this._stateIdx]===4)return Jd(e,this._value.query);if(this._states[this._stateIdx]===5)return Jd(e,this._value.fragment);throw new Error}value(){if(this._states[this._stateIdx]===1)return this._value.scheme;if(this._states[this._stateIdx]===2)return this._value.authority;if(this._states[this._stateIdx]===3)return this._pathIterator.value();if(this._states[this._stateIdx]===4)return this._value.query;if(this._states[this._stateIdx]===5)return this._value.fragment;throw new Error}}class ga{constructor(){this.height=1}isEmpty(){return!this.left&&!this.mid&&!this.right&&!this.value}rotateLeft(){const e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){const e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){var e;return((e=this.left)==null?void 0:e.height)??0}get heightRight(){var e;return((e=this.right)==null?void 0:e.height)??0}}class ii{static forUris(e=()=>!1,n=()=>!1){return new ii(new e5(e,n))}static forPaths(e=!1){return new ii(new Y2(void 0,!e))}static forStrings(){return new ii(new Xv)}static forConfigKeys(){return new ii(new Zv)}constructor(e){this._iter=e}clear(){this._root=void 0}fill(e,n){if(n){const r=n.slice(0);Yg(r);for(const i of r)this.set(i,e)}else{const r=e.slice(0);Yg(r);for(const i of r)this.set(i[0],i[1])}}set(e,n){const r=this._iter.reset(e);let i;this._root||(this._root=new ga,this._root.segment=r.value());const s=[];for(i=this._root;;){const a=r.cmp(i.segment);if(a>0)i.left||(i.left=new ga,i.left.segment=r.value()),s.push([-1,i]),i=i.left;else if(a<0)i.right||(i.right=new ga,i.right.segment=r.value()),s.push([1,i]),i=i.right;else if(r.hasNext())r.next(),i.mid||(i.mid=new ga,i.mid.segment=r.value()),s.push([0,i]),i=i.mid;else break}const o=i.value;i.value=n,i.key=e;for(let a=s.length-1;a>=0;a--){const c=s[a][1];c.updateHeight();const l=c.balanceFactor();if(l<-1||l>1){const f=s[a][0],p=s[a+1][0];if(f===1&&p===1)s[a][1]=c.rotateLeft();else if(f===-1&&p===-1)s[a][1]=c.rotateRight();else if(f===1&&p===-1)c.right=s[a+1][1]=s[a+1][1].rotateRight(),s[a][1]=c.rotateLeft();else if(f===-1&&p===1)c.left=s[a+1][1]=s[a+1][1].rotateLeft(),s[a][1]=c.rotateRight();else throw new Error;if(a>0)switch(s[a-1][0]){case-1:s[a-1][1].left=s[a][1];break;case 1:s[a-1][1].right=s[a][1];break;case 0:s[a-1][1].mid=s[a][1];break}else this._root=s[0][1]}}return o}get(e){var n;return(n=this._getNode(e))==null?void 0:n.value}_getNode(e){const n=this._iter.reset(e);let r=this._root;for(;r;){const i=n.cmp(r.segment);if(i>0)r=r.left;else if(i<0)r=r.right;else if(n.hasNext())n.next(),r=r.mid;else break}return r}has(e){const n=this._getNode(e);return!((n==null?void 0:n.value)===void 0&&(n==null?void 0:n.mid)===void 0)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,n){const r=this._iter.reset(e),i=[];let s=this._root;for(;s;){const o=r.cmp(s.segment);if(o>0)i.push([-1,s]),s=s.left;else if(o<0)i.push([1,s]),s=s.right;else if(r.hasNext())r.next(),i.push([0,s]),s=s.mid;else break}if(s){if(n?(s.left=void 0,s.mid=void 0,s.right=void 0,s.height=1):(s.key=void 0,s.value=void 0),!s.mid&&!s.value)if(s.left&&s.right){const o=this._min(s.right);if(o.key){const{key:a,value:c,segment:l}=o;this._delete(o.key,!1),s.key=a,s.value=c,s.segment=l}}else{const o=s.left??s.right;if(i.length>0){const[a,c]=i[i.length-1];switch(a){case-1:c.left=o;break;case 0:c.mid=o;break;case 1:c.right=o;break}}else this._root=o}for(let o=i.length-1;o>=0;o--){const a=i[o][1];a.updateHeight();const c=a.balanceFactor();if(c>1?(a.right.balanceFactor()>=0||(a.right=a.right.rotateRight()),i[o][1]=a.rotateLeft()):c<-1&&(a.left.balanceFactor()<=0||(a.left=a.left.rotateLeft()),i[o][1]=a.rotateRight()),o>0)switch(i[o-1][0]){case-1:i[o-1][1].left=i[o][1];break;case 1:i[o-1][1].right=i[o][1];break;case 0:i[o-1][1].mid=i[o][1];break}else this._root=i[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const n=this._iter.reset(e);let r=this._root,i;for(;r;){const s=n.cmp(r.segment);if(s>0)r=r.left;else if(s<0)r=r.right;else if(n.hasNext())n.next(),i=r.value||i,r=r.mid;else break}return r&&r.value||i}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,n){const r=this._iter.reset(e);let i=this._root;for(;i;){const s=r.cmp(i.segment);if(s>0)i=i.left;else if(s<0)i=i.right;else if(r.hasNext())r.next(),i=i.mid;else return i.mid?this._entries(i.mid):n?i.value:void 0}}hasElementOrSubtree(e){return this._findSuperstrOrElement(e,!0)!==void 0}forEach(e){for(const[n,r]of this)e(r,n)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const n=[];return this._dfsEntries(e,n),n[Symbol.iterator]()}_dfsEntries(e,n){e&&(e.left&&this._dfsEntries(e.left,n),e.value&&n.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,n),e.right&&this._dfsEntries(e.right,n))}_isBalanced(){const e=n=>{if(!n)return!0;const r=n.balanceFactor();return r<-1||r>1?!1:e(n.left)&&e(n.right)};return e(this._root)}}const Js="vs/platform/files/common/files";var sf;(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(sf||(sf={}));var of;(function(t){t[t.Readonly=1]="Readonly",t[t.Locked=2]="Locked"})(of||(of={}));var Sm;(function(t){t[t.None=0]="None",t[t.FileReadWrite=2]="FileReadWrite",t[t.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",t[t.FileReadStream=16]="FileReadStream",t[t.FileFolderCopy=8]="FileFolderCopy",t[t.PathCaseSensitive=1024]="PathCaseSensitive",t[t.Readonly=2048]="Readonly",t[t.Trash=4096]="Trash",t[t.FileWriteUnlock=8192]="FileWriteUnlock",t[t.FileAtomicRead=16384]="FileAtomicRead",t[t.FileAtomicWrite=32768]="FileAtomicWrite",t[t.FileAtomicDelete=65536]="FileAtomicDelete",t[t.FileClone=131072]="FileClone"})(Sm||(Sm={}));var Er;(function(t){t.FileExists="EntryExists",t.FileNotFound="EntryNotFound",t.FileNotADirectory="EntryNotADirectory",t.FileIsADirectory="EntryIsADirectory",t.FileExceedsStorageQuota="EntryExceedsStorageQuota",t.FileTooLarge="EntryTooLarge",t.FileWriteLocked="EntryWriteLocked",t.NoPermissions="NoPermissions",t.Unavailable="Unavailable",t.Unknown="Unknown"})(Er||(Er={}));function t5(t,e){return t.name=e?`${e} (FileSystemError)`:"FileSystemError",t}var Dm;(function(t){t[t.UPDATED=0]="UPDATED",t[t.ADDED=1]="ADDED",t[t.DELETED=2]="DELETED"})(Dm||(Dm={}));const bs=class bs{constructor(e,n){this.ignorePathCasing=n,this.correlationId=void 0,this.added=new Ss(()=>{const r=ii.forUris(()=>this.ignorePathCasing);return r.fill(this.rawAdded.map(i=>[i,!0])),r}),this.updated=new Ss(()=>{const r=ii.forUris(()=>this.ignorePathCasing);return r.fill(this.rawUpdated.map(i=>[i,!0])),r}),this.deleted=new Ss(()=>{const r=ii.forUris(()=>this.ignorePathCasing);return r.fill(this.rawDeleted.map(i=>[i,!0])),r}),this.rawAdded=[],this.rawUpdated=[],this.rawDeleted=[];for(const r of e){switch(r.type){case 1:this.rawAdded.push(r.resource);break;case 0:this.rawUpdated.push(r.resource);break;case 2:this.rawDeleted.push(r.resource);break}this.correlationId!==bs.MIXED_CORRELATION&&(typeof r.cId=="number"?this.correlationId===void 0?this.correlationId=r.cId:this.correlationId!==r.cId&&(this.correlationId=bs.MIXED_CORRELATION):this.correlationId!==void 0&&(this.correlationId=bs.MIXED_CORRELATION))}}contains(e,...n){return this.doContains(e,{includeChildren:!1},...n)}affects(e,...n){return this.doContains(e,{includeChildren:!0},...n)}doContains(e,n,...r){if(!e)return!1;const i=r.length>0;return!!((!i||r.includes(1))&&(this.added.value.get(e)||n.includeChildren&&this.added.value.findSuperstr(e))||(!i||r.includes(0))&&(this.updated.value.get(e)||n.includeChildren&&this.updated.value.findSuperstr(e))||(!i||r.includes(2))&&(this.deleted.value.findSubstr(e)||n.includeChildren&&this.deleted.value.findSuperstr(e)))}gotAdded(){return this.rawAdded.length>0}gotDeleted(){return this.rawDeleted.length>0}gotUpdated(){return this.rawUpdated.length>0}correlates(e){return this.correlationId===e}hasCorrelation(){return typeof this.correlationId=="number"}};bs.MIXED_CORRELATION=null;let Tm=bs;var km;(function(t){t[t.FILE=0]="FILE",t[t.FOLDER=1]="FOLDER",t[t.ROOT_FOLDER=2]="ROOT_FOLDER"})(km||(km={}));const qt=class qt{static formatSize(e){return Co(e)||(e=0),e<qt.KB?m(Js,1,"{0}B",e.toFixed(0)):e<qt.MB?m(Js,2,"{0}KB",(e/qt.KB).toFixed(2)):e<qt.GB?m(Js,3,"{0}MB",(e/qt.MB).toFixed(2)):e<qt.TB?m(Js,4,"{0}GB",(e/qt.GB).toFixed(2)):m(Js,5,"{0}TB",(e/qt.TB).toFixed(2))}};qt.KB=1024,qt.MB=qt.KB*qt.KB,qt.GB=qt.MB*qt.KB,qt.TB=qt.GB*qt.KB;let Rm=qt;var _o;(function(t){t.Unknown="Unknown",t.NotAvailable="NotAvailable",t.TemporarilyNotAvailable="TemporarilyNotAvailable",t.NoResolverFound="NoResolverFound",t.InvalidAuthority="InvalidAuthority"})(_o||(_o={}));const ma=typeof Buffer<"u",n5=new Ss(()=>new Uint8Array(256));let Wl,Ul;class Mn{static alloc(e){return ma?new Mn(Buffer.allocUnsafe(e)):new Mn(new Uint8Array(e))}static wrap(e){return ma&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new Mn(e)}static fromString(e,n){return!((n==null?void 0:n.dontUseNodeBuffer)||!1)&&ma?new Mn(Buffer.from(e)):(Wl||(Wl=new TextEncoder),new Mn(Wl.encode(e)))}static fromByteArray(e){const n=Mn.alloc(e.length);for(let r=0,i=e.length;r<i;r++)n.buffer[r]=e[r];return n}static concat(e,n){if(typeof n>"u"){n=0;for(let s=0,o=e.length;s<o;s++)n+=e[s].byteLength}const r=Mn.alloc(n);let i=0;for(let s=0,o=e.length;s<o;s++){const a=e[s];r.set(a,i),i+=a.byteLength}return r}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}clone(){const e=Mn.alloc(this.byteLength);return e.set(this),e}toString(){return ma?this.buffer.toString():(Ul||(Ul=new TextDecoder),Ul.decode(this.buffer))}slice(e,n){return new Mn(this.buffer.subarray(e,n))}set(e,n){if(e instanceof Mn)this.buffer.set(e.buffer,n);else if(e instanceof Uint8Array)this.buffer.set(e,n);else if(e instanceof ArrayBuffer)this.buffer.set(new Uint8Array(e),n);else if(ArrayBuffer.isView(e))this.buffer.set(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),n);else throw new Error("Unknown argument 'array'")}readUInt32BE(e){return i5(this.buffer,e)}writeUInt32BE(e,n){s5(this.buffer,e,n)}readUInt32LE(e){return o5(this.buffer,e)}writeUInt32LE(e,n){a5(this.buffer,e,n)}readUInt8(e){return c5(this.buffer,e)}writeUInt8(e,n){l5(this.buffer,e,n)}indexOf(e,n=0){return r5(this.buffer,e instanceof Mn?e.buffer:e,n)}}function r5(t,e,n=0){const r=e.byteLength,i=t.byteLength;if(r===0)return 0;if(r===1)return t.indexOf(e[0]);if(r>i-n)return-1;const s=n5.value;s.fill(e.length);for(let l=0;l<e.length;l++)s[e[l]]=e.length-l-1;let o=n+e.length-1,a=o,c=-1;for(;o<i;)if(t[o]===e[a]){if(a===0){c=o;break}o--,a--}else o+=Math.max(e.length-a,s[t[o]]),a=e.length-1;return c}function i5(t,e){return t[e]*2**24+t[e+1]*2**16+t[e+2]*2**8+t[e+3]}function s5(t,e,n){t[n+3]=e,e=e>>>8,t[n+2]=e,e=e>>>8,t[n+1]=e,e=e>>>8,t[n]=e}function o5(t,e){return t[e+0]<<0>>>0|t[e+1]<<8>>>0|t[e+2]<<16>>>0|t[e+3]<<24>>>0}function a5(t,e,n){t[n+0]=e&255,e=e>>>8,t[n+1]=e&255,e=e>>>8,t[n+2]=e&255,e=e>>>8,t[n+3]=e&255}function c5(t,e){return t[e]}function l5(t,e,n){t[n]=e}function u5(t){let e=0,n=0,r=0;const i=new Uint8Array(Math.floor(t.length/4*3)),s=a=>{switch(n){case 3:i[r++]=e|a,n=0;break;case 2:i[r++]=e|a>>>2,e=a<<6,n=3;break;case 1:i[r++]=e|a>>>4,e=a<<4,n=2;break;default:e=a<<2,n=1}};for(let a=0;a<t.length;a++){const c=t.charCodeAt(a);if(c>=65&&c<=90)s(c-65);else if(c>=97&&c<=122)s(c-97+26);else if(c>=48&&c<=57)s(c-48+52);else if(c===43||c===45)s(62);else if(c===47||c===95)s(63);else{if(c===61)break;throw new SyntaxError(`Unexpected base64 character ${t[a]}`)}}const o=r;for(;n>0;)s(0);return Mn.wrap(i).slice(0,o)}const d5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function h5({buffer:t},e=!0,n=!1){const r=n?f5:d5;let i="";const s=t.byteLength%3;let o=0;for(;o<t.byteLength-s;o+=3){const a=t[o+0],c=t[o+1],l=t[o+2];i+=r[a>>>2],i+=r[(a<<4|c>>>4)&63],i+=r[(c<<2|l>>>6)&63],i+=r[l&63]}if(s===1){const a=t[o+0];i+=r[a>>>2],i+=r[a<<4&63],e&&(i+="==")}else if(s===2){const a=t[o+0],c=t[o+1];i+=r[a>>>2],i+=r[(a<<4|c>>>4)&63],i+=r[c<<2&63],e&&(i+="=")}return i}var xm;(function(t){async function e(r){let i;const s=await Promise.all(r.map(o=>o.then(a=>a,a=>{i||(i=a)})));if(typeof i<"u")throw i;return s}t.settled=e;function n(r){return new Promise(async(i,s)=>{try{await r(i,s)}catch(o){s(o)}})}t.withAsyncBody=n})(xm||(xm={}));const Cn=class Cn{static fromArray(e){return new Cn(n=>{n.emitMany(e)})}static fromPromise(e){return new Cn(async n=>{n.emitMany(await e)})}static fromPromises(e){return new Cn(async n=>{await Promise.all(e.map(async r=>n.emitOne(await r)))})}static merge(e){return new Cn(async n=>{await Promise.all(e.map(async r=>{for await(const i of r)n.emitOne(i)}))})}constructor(e,n){this._state=0,this._results=[],this._error=null,this._onReturn=n,this._onStateChanged=new gr,queueMicrotask(async()=>{const r={emitOne:i=>this.emitOne(i),emitMany:i=>this.emitMany(i),reject:i=>this.reject(i)};try{await Promise.resolve(e(r)),this.resolve()}catch(i){this.reject(i)}finally{r.emitOne=void 0,r.emitMany=void 0,r.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(this._state===1)return{done:!0,value:void 0};await Qa.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>{var n;return(n=this._onReturn)==null||n.call(this),{done:!0,value:void 0}}}}static map(e,n){return new Cn(async r=>{for await(const i of e)r.emitOne(n(i))})}map(e){return Cn.map(this,e)}static filter(e,n){return new Cn(async r=>{for await(const i of e)n(i)&&r.emitOne(i)})}filter(e){return Cn.filter(this,e)}static coalesce(e){return Cn.filter(e,n=>!!n)}coalesce(){return Cn.coalesce(this)}static async toPromise(e){const n=[];for await(const r of e)n.push(r);return n}toPromise(){return Cn.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}};Cn.EMPTY=Cn.fromArray([]);let Em=Cn;new N2(1e4);const So="vs/platform/contextkey/common/scanner";function zl(...t){switch(t.length){case 1:return m(So,0,"Did you mean {0}?",t[0]);case 2:return m(So,1,"Did you mean {0} or {1}?",t[0],t[1]);case 3:return m(So,2,"Did you mean {0}, {1} or {2}?",t[0],t[1],t[2]);default:return}}const p5=m(So,3,"Did you forget to open or close the quote?"),g5=m(So,4,"Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'."),vs=class vs{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw k4(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}get errors(){return this._errors}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const n=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:n})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const n=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:n})}else this._match(126)?this._addToken(9):this._error(zl("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(zl("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(zl("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const n=this._start,r=this._input.substring(this._start,this._current),i={type:19,offset:this._start,lexeme:r};this._errors.push({offset:n,lexeme:r,additionalInfo:e}),this._tokens.push(i)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const n=this._input.substring(this._start,this._current),r=vs._keywords.get(n);r?this._addToken(r):this._tokens.push({type:17,lexeme:n,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(p5);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,n=!1,r=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(g5);return}const s=this._input.charCodeAt(e);if(n)n=!1;else if(s===47&&!r){e++;break}else s===91?r=!0:s===92?n=!0:s===93&&(r=!1);e++}for(;e<this._input.length&&vs._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const i=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:i,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}};vs._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0))),vs._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);let Ai=vs;const Qr="vs/platform/contextkey/common/contextkey",Vt=new Map;Vt.set("false",!1);Vt.set("true",!0);Vt.set("isMac",Sr);Vt.set("isLinux",Za);Vt.set("isWindows",Ji);Vt.set("isWeb",op);Vt.set("isMacNative",Sr&&!op);Vt.set("isEdge",yv);Vt.set("isFirefox",gv);Vt.set("isChrome",U2);Vt.set("isSafari",mv);const m5=Object.prototype.hasOwnProperty,y5={regexParsingWithErrorRecovery:!0},b5=m(Qr,0,"Empty context key expression"),v5=m(Qr,1,"Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),w5=m(Qr,2,"'in' after 'not'."),Pm=m(Qr,3,"closing parenthesis ')'"),C5=m(Qr,4,"Unexpected token"),_5=m(Qr,5,"Did you forget to put && or || before the token?"),S5=m(Qr,6,"Unexpected end of expression"),D5=m(Qr,7,"Did you forget to put a context key?"),$i=class $i{get lexingErrors(){return this._scanner.errors}get parsingErrors(){return this._parsingErrors}constructor(e=y5){this._config=e,this._scanner=new Ai,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:b5,offset:0,lexeme:"",additionalInfo:v5});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const n=this._expr();if(!this._isAtEnd()){const r=this._peek(),i=r.type===17?_5:void 0;throw this._parsingErrors.push({message:C5,offset:r.offset,lexeme:Ai.getLexeme(r),additionalInfo:i}),$i._parseError}return n}catch(n){if(n!==$i._parseError)throw n;return}}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const n=this._and();e.push(n)}return e.length===1?e[0]:Jt.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const n=this._term();e.push(n)}return e.length===1?e[0]:Jt.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),cn.INSTANCE;case 12:return this._advance(),gn.INSTANCE;case 0:{this._advance();const n=this._expr();return this._consume(1,Pm),n==null?void 0:n.negate()}case 17:return this._advance(),es.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),Jt.true();case 12:return this._advance(),Jt.false();case 0:{this._advance();const n=this._expr();return this._consume(1,Pm),n}case 17:{const n=e.lexeme;if(this._advance(),this._matchOne(9)){const i=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),i.type!==10)throw this._errExpectedButGot("REGEX",i);const s=i.lexeme,o=s.lastIndexOf("/"),a=o===s.length-1?void 0:this._removeFlagsGY(s.substring(o+1));let c;try{c=new RegExp(s.substring(1,o),a)}catch{throw this._errExpectedButGot("REGEX",i)}return Wo.create(n,c)}switch(i.type){case 10:case 19:{const s=[i.lexeme];this._advance();let o=this._peek(),a=0;for(let g=0;g<i.lexeme.length;g++)i.lexeme.charCodeAt(g)===40?a++:i.lexeme.charCodeAt(g)===41&&a--;for(;!this._isAtEnd()&&o.type!==15&&o.type!==16;){switch(o.type){case 0:a++;break;case 1:a--;break;case 10:case 18:for(let g=0;g<o.lexeme.length;g++)o.lexeme.charCodeAt(g)===40?a++:i.lexeme.charCodeAt(g)===41&&a--}if(a<0)break;s.push(Ai.getLexeme(o)),this._advance(),o=this._peek()}const c=s.join(""),l=c.lastIndexOf("/"),f=l===c.length-1?void 0:this._removeFlagsGY(c.substring(l+1));let p;try{p=new RegExp(c.substring(1,l),f)}catch{throw this._errExpectedButGot("REGEX",i)}return Jt.regex(n,p)}case 18:{const s=i.lexeme;this._advance();let o=null;if(!B4(s)){const a=s.indexOf("/"),c=s.lastIndexOf("/");if(a!==c&&a>=0){const l=s.slice(a+1,c),f=s[c+1]==="i"?"i":"";try{o=new RegExp(l,f)}catch{throw this._errExpectedButGot("REGEX",i)}}}if(o===null)throw this._errExpectedButGot("REGEX",i);return Wo.create(n,o)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,w5);const i=this._value();return Jt.notIn(n,i)}switch(this._peek().type){case 3:{this._advance();const i=this._value();if(this._previous().type===18)return Jt.equals(n,i);switch(i){case"true":return Jt.has(n);case"false":return Jt.not(n);default:return Jt.equals(n,i)}}case 4:{this._advance();const i=this._value();if(this._previous().type===18)return Jt.notEquals(n,i);switch(i){case"true":return Jt.not(n);case"false":return Jt.has(n);default:return Jt.notEquals(n,i)}}case 5:return this._advance(),sa.create(n,this._value());case 6:return this._advance(),oa.create(n,this._value());case 7:return this._advance(),ra.create(n,this._value());case 8:return this._advance(),ia.create(n,this._value());case 13:return this._advance(),Jt.in(n,this._value());default:return Jt.has(n)}}case 20:throw this._parsingErrors.push({message:S5,offset:e.offset,lexeme:"",additionalInfo:D5}),$i._parseError;default:throw this._errExpectedButGot(`true | false | KEY
|
|
106
|
+
${rv(n,e)}
|
|
107
|
+
`,this}appendLink(e,n,i){return this.value+="[",this.value+=this._escape(n,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,n){const i=new RegExp(e5(n),"g");return e.replace(i,(r,s)=>e.charAt(s-1)!=="\\"?`\\${r}`:r)}};function iv(t){return t.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}function rv(t,e){var r;const n=((r=t.match(/^`+/gm))==null?void 0:r.reduce((s,o)=>s.length>o.length?s:o).length)??0,i=n>=3?n+1:3;return[`${"`".repeat(i)}${e}`,t,`${"`".repeat(i)}`].join(`
|
|
108
|
+
`)}const zr=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"}),sv=/^(.+)\/(.+?)(;.+)?$/;function Y2(t,e){const n=sv.exec(t);return n?`${n[1].toLowerCase()}/${n[2].toLowerCase()}${n[3]??""}`:e?void 0:t}const Hc=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let t;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?t=crypto.getRandomValues.bind(crypto):t=function(i){for(let r=0;r<i.length;r++)i[r]=Math.floor(Math.random()*256);return i};const e=new Uint8Array(16),n=[];for(let i=0;i<256;i++)n.push(i.toString(16).padStart(2,"0"));return function(){t(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let r=0,s="";return s+=n[e[r++]],s+=n[e[r++]],s+=n[e[r++]],s+=n[e[r++]],s+="-",s+=n[e[r++]],s+=n[e[r++]],s+="-",s+=n[e[r++]],s+=n[e[r++]],s+="-",s+=n[e[r++]],s+=n[e[r++]],s+="-",s+=n[e[r++]],s+=n[e[r++]],s+=n[e[r++]],s+=n[e[r++]],s+=n[e[r++]],s+=n[e[r++]],s}}();class ov{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){const n=e.charCodeAt(0),i=this._value.charCodeAt(this._pos);return n-i}value(){return this._value[this._pos]}}class av{constructor(e=!0){this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++)if(this._value.charCodeAt(this._to)===46)if(e)this._from++;else break;else e=!1;return this}cmp(e){return this._caseSensitive?tg(e,this._value,0,e.length,this._from,this._to):ea(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class Q2{constructor(e=!0,n=!0){this._splitOnBackslash=e,this._caseSensitive=n}reset(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(let n=e.length-1;n>=0;n--,this._valueLen--){const i=this._value.charCodeAt(n);if(!(i===47||this._splitOnBackslash&&i===92))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let e=!0;for(;this._to<this._valueLen;this._to++){const n=this._value.charCodeAt(this._to);if(n===47||this._splitOnBackslash&&n===92)if(e)this._from++;else break;else e=!1}return this}cmp(e){return this._caseSensitive?tg(e,this._value,0,e.length,this._from,this._to):ea(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class cv{constructor(e,n){this._ignorePathCasing=e,this._ignoreQueryAndFragment=n,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new Q2(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(e)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(this._states[this._stateIdx]===1)return rm(e,this._value.scheme);if(this._states[this._stateIdx]===2)return rm(e,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(e);if(this._states[this._stateIdx]===4)return Zd(e,this._value.query);if(this._states[this._stateIdx]===5)return Zd(e,this._value.fragment);throw new Error}value(){if(this._states[this._stateIdx]===1)return this._value.scheme;if(this._states[this._stateIdx]===2)return this._value.authority;if(this._states[this._stateIdx]===3)return this._pathIterator.value();if(this._states[this._stateIdx]===4)return this._value.query;if(this._states[this._stateIdx]===5)return this._value.fragment;throw new Error}}class pa{constructor(){this.height=1}isEmpty(){return!this.left&&!this.mid&&!this.right&&!this.value}rotateLeft(){const e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){const e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){var e;return((e=this.left)==null?void 0:e.height)??0}get heightRight(){var e;return((e=this.right)==null?void 0:e.height)??0}}class rr{static forUris(e=()=>!1,n=()=>!1){return new rr(new cv(e,n))}static forPaths(e=!1){return new rr(new Q2(void 0,!e))}static forStrings(){return new rr(new ov)}static forConfigKeys(){return new rr(new av)}constructor(e){this._iter=e}clear(){this._root=void 0}fill(e,n){if(n){const i=n.slice(0);Qp(i);for(const r of i)this.set(r,e)}else{const i=e.slice(0);Qp(i);for(const r of i)this.set(r[0],r[1])}}set(e,n){const i=this._iter.reset(e);let r;this._root||(this._root=new pa,this._root.segment=i.value());const s=[];for(r=this._root;;){const a=i.cmp(r.segment);if(a>0)r.left||(r.left=new pa,r.left.segment=i.value()),s.push([-1,r]),r=r.left;else if(a<0)r.right||(r.right=new pa,r.right.segment=i.value()),s.push([1,r]),r=r.right;else if(i.hasNext())i.next(),r.mid||(r.mid=new pa,r.mid.segment=i.value()),s.push([0,r]),r=r.mid;else break}const o=r.value;r.value=n,r.key=e;for(let a=s.length-1;a>=0;a--){const c=s[a][1];c.updateHeight();const l=c.balanceFactor();if(l<-1||l>1){const f=s[a][0],g=s[a+1][0];if(f===1&&g===1)s[a][1]=c.rotateLeft();else if(f===-1&&g===-1)s[a][1]=c.rotateRight();else if(f===1&&g===-1)c.right=s[a+1][1]=s[a+1][1].rotateRight(),s[a][1]=c.rotateLeft();else if(f===-1&&g===1)c.left=s[a+1][1]=s[a+1][1].rotateLeft(),s[a][1]=c.rotateRight();else throw new Error;if(a>0)switch(s[a-1][0]){case-1:s[a-1][1].left=s[a][1];break;case 1:s[a-1][1].right=s[a][1];break;case 0:s[a-1][1].mid=s[a][1];break}else this._root=s[0][1]}}return o}get(e){var n;return(n=this._getNode(e))==null?void 0:n.value}_getNode(e){const n=this._iter.reset(e);let i=this._root;for(;i;){const r=n.cmp(i.segment);if(r>0)i=i.left;else if(r<0)i=i.right;else if(n.hasNext())n.next(),i=i.mid;else break}return i}has(e){const n=this._getNode(e);return!((n==null?void 0:n.value)===void 0&&(n==null?void 0:n.mid)===void 0)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,n){const i=this._iter.reset(e),r=[];let s=this._root;for(;s;){const o=i.cmp(s.segment);if(o>0)r.push([-1,s]),s=s.left;else if(o<0)r.push([1,s]),s=s.right;else if(i.hasNext())i.next(),r.push([0,s]),s=s.mid;else break}if(s){if(n?(s.left=void 0,s.mid=void 0,s.right=void 0,s.height=1):(s.key=void 0,s.value=void 0),!s.mid&&!s.value)if(s.left&&s.right){const o=this._min(s.right);if(o.key){const{key:a,value:c,segment:l}=o;this._delete(o.key,!1),s.key=a,s.value=c,s.segment=l}}else{const o=s.left??s.right;if(r.length>0){const[a,c]=r[r.length-1];switch(a){case-1:c.left=o;break;case 0:c.mid=o;break;case 1:c.right=o;break}}else this._root=o}for(let o=r.length-1;o>=0;o--){const a=r[o][1];a.updateHeight();const c=a.balanceFactor();if(c>1?(a.right.balanceFactor()>=0||(a.right=a.right.rotateRight()),r[o][1]=a.rotateLeft()):c<-1&&(a.left.balanceFactor()<=0||(a.left=a.left.rotateLeft()),r[o][1]=a.rotateRight()),o>0)switch(r[o-1][0]){case-1:r[o-1][1].left=r[o][1];break;case 1:r[o-1][1].right=r[o][1];break;case 0:r[o-1][1].mid=r[o][1];break}else this._root=r[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const n=this._iter.reset(e);let i=this._root,r;for(;i;){const s=n.cmp(i.segment);if(s>0)i=i.left;else if(s<0)i=i.right;else if(n.hasNext())n.next(),r=i.value||r,i=i.mid;else break}return i&&i.value||r}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,n){const i=this._iter.reset(e);let r=this._root;for(;r;){const s=i.cmp(r.segment);if(s>0)r=r.left;else if(s<0)r=r.right;else if(i.hasNext())i.next(),r=r.mid;else return r.mid?this._entries(r.mid):n?r.value:void 0}}hasElementOrSubtree(e){return this._findSuperstrOrElement(e,!0)!==void 0}forEach(e){for(const[n,i]of this)e(i,n)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const n=[];return this._dfsEntries(e,n),n[Symbol.iterator]()}_dfsEntries(e,n){e&&(e.left&&this._dfsEntries(e.left,n),e.value&&n.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,n),e.right&&this._dfsEntries(e.right,n))}_isBalanced(){const e=n=>{if(!n)return!0;const i=n.balanceFactor();return i<-1||i>1?!1:e(n.left)&&e(n.right)};return e(this._root)}}const Xs="vs/platform/files/common/files";var of;(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(of||(of={}));var af;(function(t){t[t.Readonly=1]="Readonly",t[t.Locked=2]="Locked"})(af||(af={}));var Tm;(function(t){t[t.None=0]="None",t[t.FileReadWrite=2]="FileReadWrite",t[t.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",t[t.FileReadStream=16]="FileReadStream",t[t.FileFolderCopy=8]="FileFolderCopy",t[t.PathCaseSensitive=1024]="PathCaseSensitive",t[t.Readonly=2048]="Readonly",t[t.Trash=4096]="Trash",t[t.FileWriteUnlock=8192]="FileWriteUnlock",t[t.FileAtomicRead=16384]="FileAtomicRead",t[t.FileAtomicWrite=32768]="FileAtomicWrite",t[t.FileAtomicDelete=65536]="FileAtomicDelete",t[t.FileClone=131072]="FileClone"})(Tm||(Tm={}));var Ii;(function(t){t.FileExists="EntryExists",t.FileNotFound="EntryNotFound",t.FileNotADirectory="EntryNotADirectory",t.FileIsADirectory="EntryIsADirectory",t.FileExceedsStorageQuota="EntryExceedsStorageQuota",t.FileTooLarge="EntryTooLarge",t.FileWriteLocked="EntryWriteLocked",t.NoPermissions="NoPermissions",t.Unavailable="Unavailable",t.Unknown="Unknown"})(Ii||(Ii={}));function lv(t,e){return t.name=e?`${e} (FileSystemError)`:"FileSystemError",t}var km;(function(t){t[t.UPDATED=0]="UPDATED",t[t.ADDED=1]="ADDED",t[t.DELETED=2]="DELETED"})(km||(km={}));const bs=class bs{constructor(e,n){this.ignorePathCasing=n,this.correlationId=void 0,this.added=new Ss(()=>{const i=rr.forUris(()=>this.ignorePathCasing);return i.fill(this.rawAdded.map(r=>[r,!0])),i}),this.updated=new Ss(()=>{const i=rr.forUris(()=>this.ignorePathCasing);return i.fill(this.rawUpdated.map(r=>[r,!0])),i}),this.deleted=new Ss(()=>{const i=rr.forUris(()=>this.ignorePathCasing);return i.fill(this.rawDeleted.map(r=>[r,!0])),i}),this.rawAdded=[],this.rawUpdated=[],this.rawDeleted=[];for(const i of e){switch(i.type){case 1:this.rawAdded.push(i.resource);break;case 0:this.rawUpdated.push(i.resource);break;case 2:this.rawDeleted.push(i.resource);break}this.correlationId!==bs.MIXED_CORRELATION&&(typeof i.cId=="number"?this.correlationId===void 0?this.correlationId=i.cId:this.correlationId!==i.cId&&(this.correlationId=bs.MIXED_CORRELATION):this.correlationId!==void 0&&(this.correlationId=bs.MIXED_CORRELATION))}}contains(e,...n){return this.doContains(e,{includeChildren:!1},...n)}affects(e,...n){return this.doContains(e,{includeChildren:!0},...n)}doContains(e,n,...i){if(!e)return!1;const r=i.length>0;return!!((!r||i.includes(1))&&(this.added.value.get(e)||n.includeChildren&&this.added.value.findSuperstr(e))||(!r||i.includes(0))&&(this.updated.value.get(e)||n.includeChildren&&this.updated.value.findSuperstr(e))||(!r||i.includes(2))&&(this.deleted.value.findSubstr(e)||n.includeChildren&&this.deleted.value.findSuperstr(e)))}gotAdded(){return this.rawAdded.length>0}gotDeleted(){return this.rawDeleted.length>0}gotUpdated(){return this.rawUpdated.length>0}correlates(e){return this.correlationId===e}hasCorrelation(){return typeof this.correlationId=="number"}};bs.MIXED_CORRELATION=null;let Rm=bs;var xm;(function(t){t[t.FILE=0]="FILE",t[t.FOLDER=1]="FOLDER",t[t.ROOT_FOLDER=2]="ROOT_FOLDER"})(xm||(xm={}));const qt=class qt{static formatSize(e){return Co(e)||(e=0),e<qt.KB?m(Xs,1,"{0}B",e.toFixed(0)):e<qt.MB?m(Xs,2,"{0}KB",(e/qt.KB).toFixed(2)):e<qt.GB?m(Xs,3,"{0}MB",(e/qt.MB).toFixed(2)):e<qt.TB?m(Xs,4,"{0}GB",(e/qt.GB).toFixed(2)):m(Xs,5,"{0}TB",(e/qt.TB).toFixed(2))}};qt.KB=1024,qt.MB=qt.KB*qt.KB,qt.GB=qt.MB*qt.KB,qt.TB=qt.GB*qt.KB;let Im=qt;var _o;(function(t){t.Unknown="Unknown",t.NotAvailable="NotAvailable",t.TemporarilyNotAvailable="TemporarilyNotAvailable",t.NoResolverFound="NoResolverFound",t.InvalidAuthority="InvalidAuthority"})(_o||(_o={}));const ma=typeof Buffer<"u",uv=new Ss(()=>new Uint8Array(256));let Ul,zl;class An{static alloc(e){return ma?new An(Buffer.allocUnsafe(e)):new An(new Uint8Array(e))}static wrap(e){return ma&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new An(e)}static fromString(e,n){return!((n==null?void 0:n.dontUseNodeBuffer)||!1)&&ma?new An(Buffer.from(e)):(Ul||(Ul=new TextEncoder),new An(Ul.encode(e)))}static fromByteArray(e){const n=An.alloc(e.length);for(let i=0,r=e.length;i<r;i++)n.buffer[i]=e[i];return n}static concat(e,n){if(typeof n>"u"){n=0;for(let s=0,o=e.length;s<o;s++)n+=e[s].byteLength}const i=An.alloc(n);let r=0;for(let s=0,o=e.length;s<o;s++){const a=e[s];i.set(a,r),r+=a.byteLength}return i}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}clone(){const e=An.alloc(this.byteLength);return e.set(this),e}toString(){return ma?this.buffer.toString():(zl||(zl=new TextDecoder),zl.decode(this.buffer))}slice(e,n){return new An(this.buffer.subarray(e,n))}set(e,n){if(e instanceof An)this.buffer.set(e.buffer,n);else if(e instanceof Uint8Array)this.buffer.set(e,n);else if(e instanceof ArrayBuffer)this.buffer.set(new Uint8Array(e),n);else if(ArrayBuffer.isView(e))this.buffer.set(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),n);else throw new Error("Unknown argument 'array'")}readUInt32BE(e){return fv(this.buffer,e)}writeUInt32BE(e,n){hv(this.buffer,e,n)}readUInt32LE(e){return gv(this.buffer,e)}writeUInt32LE(e,n){pv(this.buffer,e,n)}readUInt8(e){return mv(this.buffer,e)}writeUInt8(e,n){yv(this.buffer,e,n)}indexOf(e,n=0){return dv(this.buffer,e instanceof An?e.buffer:e,n)}}function dv(t,e,n=0){const i=e.byteLength,r=t.byteLength;if(i===0)return 0;if(i===1)return t.indexOf(e[0]);if(i>r-n)return-1;const s=uv.value;s.fill(e.length);for(let l=0;l<e.length;l++)s[e[l]]=e.length-l-1;let o=n+e.length-1,a=o,c=-1;for(;o<r;)if(t[o]===e[a]){if(a===0){c=o;break}o--,a--}else o+=Math.max(e.length-a,s[t[o]]),a=e.length-1;return c}function fv(t,e){return t[e]*2**24+t[e+1]*2**16+t[e+2]*2**8+t[e+3]}function hv(t,e,n){t[n+3]=e,e=e>>>8,t[n+2]=e,e=e>>>8,t[n+1]=e,e=e>>>8,t[n]=e}function gv(t,e){return t[e+0]<<0>>>0|t[e+1]<<8>>>0|t[e+2]<<16>>>0|t[e+3]<<24>>>0}function pv(t,e,n){t[n+0]=e&255,e=e>>>8,t[n+1]=e&255,e=e>>>8,t[n+2]=e&255,e=e>>>8,t[n+3]=e&255}function mv(t,e){return t[e]}function yv(t,e,n){t[n]=e}function bv(t){let e=0,n=0,i=0;const r=new Uint8Array(Math.floor(t.length/4*3)),s=a=>{switch(n){case 3:r[i++]=e|a,n=0;break;case 2:r[i++]=e|a>>>2,e=a<<6,n=3;break;case 1:r[i++]=e|a>>>4,e=a<<4,n=2;break;default:e=a<<2,n=1}};for(let a=0;a<t.length;a++){const c=t.charCodeAt(a);if(c>=65&&c<=90)s(c-65);else if(c>=97&&c<=122)s(c-97+26);else if(c>=48&&c<=57)s(c-48+52);else if(c===43||c===45)s(62);else if(c===47||c===95)s(63);else{if(c===61)break;throw new SyntaxError(`Unexpected base64 character ${t[a]}`)}}const o=i;for(;n>0;)s(0);return An.wrap(r).slice(0,o)}const vv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function Cv({buffer:t},e=!0,n=!1){const i=n?wv:vv;let r="";const s=t.byteLength%3;let o=0;for(;o<t.byteLength-s;o+=3){const a=t[o+0],c=t[o+1],l=t[o+2];r+=i[a>>>2],r+=i[(a<<4|c>>>4)&63],r+=i[(c<<2|l>>>6)&63],r+=i[l&63]}if(s===1){const a=t[o+0];r+=i[a>>>2],r+=i[a<<4&63],e&&(r+="==")}else if(s===2){const a=t[o+0],c=t[o+1];r+=i[a>>>2],r+=i[(a<<4|c>>>4)&63],r+=i[c<<2&63],e&&(r+="=")}return r}var Em;(function(t){async function e(i){let r;const s=await Promise.all(i.map(o=>o.then(a=>a,a=>{r||(r=a)})));if(typeof r<"u")throw r;return s}t.settled=e;function n(i){return new Promise(async(r,s)=>{try{await i(r,s)}catch(o){s(o)}})}t.withAsyncBody=n})(Em||(Em={}));const Cn=class Cn{static fromArray(e){return new Cn(n=>{n.emitMany(e)})}static fromPromise(e){return new Cn(async n=>{n.emitMany(await e)})}static fromPromises(e){return new Cn(async n=>{await Promise.all(e.map(async i=>n.emitOne(await i)))})}static merge(e){return new Cn(async n=>{await Promise.all(e.map(async i=>{for await(const r of i)n.emitOne(r)}))})}constructor(e,n){this._state=0,this._results=[],this._error=null,this._onReturn=n,this._onStateChanged=new pi,queueMicrotask(async()=>{const i={emitOne:r=>this.emitOne(r),emitMany:r=>this.emitMany(r),reject:r=>this.reject(r)};try{await Promise.resolve(e(i)),this.resolve()}catch(r){this.reject(r)}finally{i.emitOne=void 0,i.emitMany=void 0,i.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(this._state===1)return{done:!0,value:void 0};await Ja.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>{var n;return(n=this._onReturn)==null||n.call(this),{done:!0,value:void 0}}}}static map(e,n){return new Cn(async i=>{for await(const r of e)i.emitOne(n(r))})}map(e){return Cn.map(this,e)}static filter(e,n){return new Cn(async i=>{for await(const r of e)n(r)&&i.emitOne(r)})}filter(e){return Cn.filter(this,e)}static coalesce(e){return Cn.filter(e,n=>!!n)}coalesce(){return Cn.coalesce(this)}static async toPromise(e){const n=[];for await(const i of e)n.push(i);return n}toPromise(){return Cn.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}};Cn.EMPTY=Cn.fromArray([]);let Pm=Cn;new q2(1e4);const So="vs/platform/contextkey/common/scanner";function Bl(...t){switch(t.length){case 1:return m(So,0,"Did you mean {0}?",t[0]);case 2:return m(So,1,"Did you mean {0} or {1}?",t[0],t[1]);case 3:return m(So,2,"Did you mean {0}, {1} or {2}?",t[0],t[1],t[2]);default:return}}const _v=m(So,3,"Did you forget to open or close the quote?"),Sv=m(So,4,"Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'."),vs=class vs{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw O4(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}get errors(){return this._errors}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const n=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:n})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const n=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:n})}else this._match(126)?this._addToken(9):this._error(Bl("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(Bl("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(Bl("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const n=this._start,i=this._input.substring(this._start,this._current),r={type:19,offset:this._start,lexeme:i};this._errors.push({offset:n,lexeme:i,additionalInfo:e}),this._tokens.push(r)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const n=this._input.substring(this._start,this._current),i=vs._keywords.get(n);i?this._addToken(i):this._tokens.push({type:17,lexeme:n,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(_v);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,n=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(Sv);return}const s=this._input.charCodeAt(e);if(n)n=!1;else if(s===47&&!i){e++;break}else s===91?i=!0:s===92?n=!0:s===93&&(i=!1);e++}for(;e<this._input.length&&vs._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const r=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:r,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}};vs._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0))),vs._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);let Or=vs;const Ji="vs/platform/contextkey/common/contextkey",Vt=new Map;Vt.set("false",!1);Vt.set("true",!0);Vt.set("isMac",Si);Vt.set("isLinux",Qa);Vt.set("isWindows",Xr);Vt.set("isWeb",ag);Vt.set("isMacNative",Si&&!ag);Vt.set("isEdge",T5);Vt.set("isFirefox",S5);Vt.set("isChrome",B2);Vt.set("isSafari",D5);const Dv=Object.prototype.hasOwnProperty,Tv={regexParsingWithErrorRecovery:!0},kv=m(Ji,0,"Empty context key expression"),Rv=m(Ji,1,"Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),xv=m(Ji,2,"'in' after 'not'."),Am=m(Ji,3,"closing parenthesis ')'"),Iv=m(Ji,4,"Unexpected token"),Ev=m(Ji,5,"Did you forget to put && or || before the token?"),Pv=m(Ji,6,"Unexpected end of expression"),Av=m(Ji,7,"Did you forget to put a context key?"),$r=class $r{get lexingErrors(){return this._scanner.errors}get parsingErrors(){return this._parsingErrors}constructor(e=Tv){this._config=e,this._scanner=new Or,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:kv,offset:0,lexeme:"",additionalInfo:Rv});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const n=this._expr();if(!this._isAtEnd()){const i=this._peek(),r=i.type===17?Ev:void 0;throw this._parsingErrors.push({message:Iv,offset:i.offset,lexeme:Or.getLexeme(i),additionalInfo:r}),$r._parseError}return n}catch(n){if(n!==$r._parseError)throw n;return}}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const n=this._and();e.push(n)}return e.length===1?e[0]:Xt.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const n=this._term();e.push(n)}return e.length===1?e[0]:Xt.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),cn.INSTANCE;case 12:return this._advance(),pn.INSTANCE;case 0:{this._advance();const n=this._expr();return this._consume(1,Am),n==null?void 0:n.negate()}case 17:return this._advance(),es.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),Xt.true();case 12:return this._advance(),Xt.false();case 0:{this._advance();const n=this._expr();return this._consume(1,Am),n}case 17:{const n=e.lexeme;if(this._advance(),this._matchOne(9)){const r=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),r.type!==10)throw this._errExpectedButGot("REGEX",r);const s=r.lexeme,o=s.lastIndexOf("/"),a=o===s.length-1?void 0:this._removeFlagsGY(s.substring(o+1));let c;try{c=new RegExp(s.substring(1,o),a)}catch{throw this._errExpectedButGot("REGEX",r)}return Wo.create(n,c)}switch(r.type){case 10:case 19:{const s=[r.lexeme];this._advance();let o=this._peek(),a=0;for(let p=0;p<r.lexeme.length;p++)r.lexeme.charCodeAt(p)===40?a++:r.lexeme.charCodeAt(p)===41&&a--;for(;!this._isAtEnd()&&o.type!==15&&o.type!==16;){switch(o.type){case 0:a++;break;case 1:a--;break;case 10:case 18:for(let p=0;p<o.lexeme.length;p++)o.lexeme.charCodeAt(p)===40?a++:r.lexeme.charCodeAt(p)===41&&a--}if(a<0)break;s.push(Or.getLexeme(o)),this._advance(),o=this._peek()}const c=s.join(""),l=c.lastIndexOf("/"),f=l===c.length-1?void 0:this._removeFlagsGY(c.substring(l+1));let g;try{g=new RegExp(c.substring(1,l),f)}catch{throw this._errExpectedButGot("REGEX",r)}return Xt.regex(n,g)}case 18:{const s=r.lexeme;this._advance();let o=null;if(!Q4(s)){const a=s.indexOf("/"),c=s.lastIndexOf("/");if(a!==c&&a>=0){const l=s.slice(a+1,c),f=s[c+1]==="i"?"i":"";try{o=new RegExp(l,f)}catch{throw this._errExpectedButGot("REGEX",r)}}}if(o===null)throw this._errExpectedButGot("REGEX",r);return Wo.create(n,o)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,xv);const r=this._value();return Xt.notIn(n,r)}switch(this._peek().type){case 3:{this._advance();const r=this._value();if(this._previous().type===18)return Xt.equals(n,r);switch(r){case"true":return Xt.has(n);case"false":return Xt.not(n);default:return Xt.equals(n,r)}}case 4:{this._advance();const r=this._value();if(this._previous().type===18)return Xt.notEquals(n,r);switch(r){case"true":return Xt.not(n);case"false":return Xt.has(n);default:return Xt.notEquals(n,r)}}case 5:return this._advance(),sa.create(n,this._value());case 6:return this._advance(),oa.create(n,this._value());case 7:return this._advance(),ia.create(n,this._value());case 8:return this._advance(),ra.create(n,this._value());case 13:return this._advance(),Xt.in(n,this._value());default:return Xt.has(n)}}case 20:throw this._parsingErrors.push({message:Pv,offset:e.offset,lexeme:"",additionalInfo:Av}),$r._parseError;default:throw this._errExpectedButGot(`true | false | KEY
|
|
93
109
|
| KEY '=~' REGEX
|
|
94
|
-
| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return this._check(e)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,n){if(this._check(e))return this._advance();throw this._errExpectedButGot(n,this._peek())}_errExpectedButGot(e,n,
|
|
95
|
-
Received: '{1}'.`,e,Ai.getLexeme(n)),s=n.offset,o=Ai.getLexeme(n);return this._parsingErrors.push({message:i,offset:s,lexeme:o,additionalInfo:r}),$i._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}};$i._parseError=new Error;let af=$i;const vp=class vp{static false(){return cn.INSTANCE}static true(){return gn.INSTANCE}static has(e){return Zi.create(e)}static equals(e,n){return ta.create(e,n)}static notEquals(e,n){return na.create(e,n)}static regex(e,n){return Wo.create(e,n)}static in(e,n){return Wc.create(e,n)}static notIn(e,n){return Uc.create(e,n)}static not(e){return es.create(e)}static and(...e){return ri.create(e,null,!0)}static or(...e){return mr.create(e,null,!0)}static greater(e,n){return ra.create(e,n)}static greaterEquals(e,n){return ia.create(e,n)}static smaller(e,n){return sa.create(e,n)}static smallerEquals(e,n){return oa.create(e,n)}static deserialize(e){return e==null?void 0:this._parser.parse(e)}};vp._parser=new af({regexParsingWithErrorRecovery:!1});let Jt=vp;function Do(t,e){return t.cmp(e)}const Tc=class Tc{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}map(e){return this}negate(){return gn.INSTANCE}};Tc.INSTANCE=new Tc;let cn=Tc;const kc=class kc{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}map(e){return this}negate(){return cn.INSTANCE}};kc.INSTANCE=new kc;let gn=kc;class Zi{static create(e,n=null){const r=Vt.get(e);return typeof r=="boolean"?r?gn.INSTANCE:cn.INSTANCE:new Zi(e,n)}constructor(e,n){this.key=e,this.negated=n,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:Z2(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Vt.get(this.key);return typeof e=="boolean"?e?gn.INSTANCE:cn.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}map(e){return e.mapDefined(this.key)}negate(){return this.negated||(this.negated=es.create(this.key,this)),this.negated}}class ta{static create(e,n,r=null){if(typeof n=="boolean")return n?Zi.create(e,r):es.create(e,r);const i=Vt.get(e);return typeof i=="boolean"?n===(i?"true":"false")?gn.INSTANCE:cn.INSTANCE:new ta(e,n,r)}constructor(e,n,r){this.key=e,this.value=n,this.negated=r,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Vt.get(this.key);if(typeof e=="boolean"){const n=e?"true":"false";return this.value===n?gn.INSTANCE:cn.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}map(e){return e.mapEquals(this.key,this.value)}negate(){return this.negated||(this.negated=na.create(this.key,this.value,this)),this.negated}}class Wc{static create(e,n){return new Wc(e,n)}constructor(e,n){this.key=e,this.valueKey=n,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type?this.key===e.key&&this.valueKey===e.valueKey:!1}substituteConstants(){return this}evaluate(e){const n=e.getValue(this.valueKey),r=e.getValue(this.key);return Array.isArray(n)?n.includes(r):typeof r=="string"&&typeof n=="object"&&n!==null?m5.call(n,r):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}map(e){return e.mapIn(this.key,this.valueKey)}negate(){return this.negated||(this.negated=Uc.create(this.key,this.valueKey)),this.negated}}class Uc{static create(e,n){return new Uc(e,n)}constructor(e,n){this.key=e,this.valueKey=n,this.type=11,this._negated=Wc.create(e,n)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type?this._negated.equals(e._negated):!1}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}map(e){return e.mapNotIn(this.key,this.valueKey)}negate(){return this._negated}}class na{static create(e,n,r=null){if(typeof n=="boolean")return n?es.create(e,r):Zi.create(e,r);const i=Vt.get(e);return typeof i=="boolean"?n===(i?"true":"false")?cn.INSTANCE:gn.INSTANCE:new na(e,n,r)}constructor(e,n,r){this.key=e,this.value=n,this.negated=r,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Vt.get(this.key);if(typeof e=="boolean"){const n=e?"true":"false";return this.value===n?cn.INSTANCE:gn.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}map(e){return e.mapNotEquals(this.key,this.value)}negate(){return this.negated||(this.negated=ta.create(this.key,this.value,this)),this.negated}}class es{static create(e,n=null){const r=Vt.get(e);return typeof r=="boolean"?r?cn.INSTANCE:gn.INSTANCE:new es(e,n)}constructor(e,n){this.key=e,this.negated=n,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:Z2(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Vt.get(this.key);return typeof e=="boolean"?e?cn.INSTANCE:gn.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}map(e){return e.mapNot(this.key)}negate(){return this.negated||(this.negated=Zi.create(this.key,this)),this.negated}}function zc(t,e){if(typeof t=="string"){const n=parseFloat(t);isNaN(n)||(t=n)}return typeof t=="string"||typeof t=="number"?e(t):cn.INSTANCE}class ra{static create(e,n,r=null){return zc(n,i=>new ra(e,i,r))}constructor(e,n,r){this.key=e,this.value=n,this.negated=r,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}map(e){return e.mapGreater(this.key,this.value)}negate(){return this.negated||(this.negated=oa.create(this.key,this.value,this)),this.negated}}class ia{static create(e,n,r=null){return zc(n,i=>new ia(e,i,r))}constructor(e,n,r){this.key=e,this.value=n,this.negated=r,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}map(e){return e.mapGreaterEquals(this.key,this.value)}negate(){return this.negated||(this.negated=sa.create(this.key,this.value,this)),this.negated}}class sa{static create(e,n,r=null){return zc(n,i=>new sa(e,i,r))}constructor(e,n,r){this.key=e,this.value=n,this.negated=r,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}map(e){return e.mapSmaller(this.key,this.value)}negate(){return this.negated||(this.negated=ia.create(this.key,this.value,this)),this.negated}}class oa{static create(e,n,r=null){return zc(n,i=>new oa(e,i,r))}constructor(e,n,r){this.key=e,this.value=n,this.negated=r,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}map(e){return e.mapSmallerEquals(this.key,this.value)}negate(){return this.negated||(this.negated=ra.create(this.key,this.value,this)),this.negated}}class Wo{static create(e,n){return new Wo(e,n)}constructor(e,n){this.key=e,this.regexp=n,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const n=this.regexp?this.regexp.source:"",r=e.regexp?e.regexp.source:"";return n<r?-1:n>r?1:0}equals(e){if(e.type===this.type){const n=this.regexp?this.regexp.source:"",r=e.regexp?e.regexp.source:"";return this.key===e.key&&n===r}return!1}substituteConstants(){return this}evaluate(e){const n=e.getValue(this.key);return this.regexp?this.regexp.test(n):!1}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}map(e){return e.mapRegex(this.key,this.regexp)}negate(){return this.negated||(this.negated=rc.create(this)),this.negated}}class rc{static create(e){return new rc(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}map(e){return new rc(this._actual.map(e))}negate(){return this._actual}}function X2(t){let e=null;for(let n=0,r=t.length;n<r;n++){const i=t[n].substituteConstants();if(t[n]!==i&&e===null){e=[];for(let s=0;s<n;s++)e[s]=t[s]}e!==null&&(e[n]=i)}return e===null?t:e}class ri{static create(e,n,r){return ri._normalizeArr(e,n,r)}constructor(e,n){this.expr=e,this.negated=n,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let n=0,r=this.expr.length;n<r;n++){const i=Do(this.expr[n],e.expr[n]);if(i!==0)return i}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let n=0,r=this.expr.length;n<r;n++)if(!this.expr[n].equals(e.expr[n]))return!1;return!0}return!1}substituteConstants(){const e=X2(this.expr);return e===this.expr?this:ri.create(e,this.negated,!1)}evaluate(e){for(let n=0,r=this.expr.length;n<r;n++)if(!this.expr[n].evaluate(e))return!1;return!0}static _normalizeArr(e,n,r){const i=[];let s=!1;for(const o of e)if(o){if(o.type===1){s=!0;continue}if(o.type===0)return cn.INSTANCE;if(o.type===6){i.push(...o.expr);continue}i.push(o)}if(i.length===0&&s)return gn.INSTANCE;if(i.length!==0){if(i.length===1)return i[0];i.sort(Do);for(let o=1;o<i.length;o++)i[o-1].equals(i[o])&&(i.splice(o,1),o--);if(i.length===1)return i[0];for(;i.length>1;){const o=i[i.length-1];if(o.type!==9)break;i.pop();const a=i.pop(),c=i.length===0,l=mr.create(o.expr.map(f=>ri.create([f,a],null,r)),null,c);l&&(i.push(l),i.sort(Do))}if(i.length===1)return i[0];if(r){for(let o=0;o<i.length;o++)for(let a=o+1;a<i.length;a++)if(i[o].negate().equals(i[a]))return cn.INSTANCE;if(i.length===1)return i[0]}return new ri(i,n)}}serialize(){return this.expr.map(e=>e.serialize()).join(" && ")}keys(){const e=[];for(const n of this.expr)e.push(...n.keys());return e}map(e){return new ri(this.expr.map(n=>n.map(e)),null)}negate(){if(!this.negated){const e=[];for(const n of this.expr)e.push(n.negate());this.negated=mr.create(e,this,!0)}return this.negated}}class mr{static create(e,n,r){return mr._normalizeArr(e,n,r)}constructor(e,n){this.expr=e,this.negated=n,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let n=0,r=this.expr.length;n<r;n++){const i=Do(this.expr[n],e.expr[n]);if(i!==0)return i}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let n=0,r=this.expr.length;n<r;n++)if(!this.expr[n].equals(e.expr[n]))return!1;return!0}return!1}substituteConstants(){const e=X2(this.expr);return e===this.expr?this:mr.create(e,this.negated,!1)}evaluate(e){for(let n=0,r=this.expr.length;n<r;n++)if(this.expr[n].evaluate(e))return!0;return!1}static _normalizeArr(e,n,r){let i=[],s=!1;if(e){for(let o=0,a=e.length;o<a;o++){const c=e[o];if(c){if(c.type===0){s=!0;continue}if(c.type===1)return gn.INSTANCE;if(c.type===9){i=i.concat(c.expr);continue}i.push(c)}}if(i.length===0&&s)return cn.INSTANCE;i.sort(Do)}if(i.length!==0){if(i.length===1)return i[0];for(let o=1;o<i.length;o++)i[o-1].equals(i[o])&&(i.splice(o,1),o--);if(i.length===1)return i[0];if(r){for(let o=0;o<i.length;o++)for(let a=o+1;a<i.length;a++)if(i[o].negate().equals(i[a]))return gn.INSTANCE;if(i.length===1)return i[0]}return new mr(i,n)}}serialize(){return this.expr.map(e=>e.serialize()).join(" || ")}keys(){const e=[];for(const n of this.expr)e.push(...n.keys());return e}map(e){return new mr(this.expr.map(n=>n.map(e)),null)}negate(){if(!this.negated){const e=[];for(const n of this.expr)e.push(n.negate());for(;e.length>1;){const n=e.shift(),r=e.shift(),i=[];for(const s of Im(n))for(const o of Im(r))i.push(ri.create([s,o],null,!1));e.unshift(mr.create(i,null,!1))}this.negated=mr.create(e,this,!0)}return this.negated}}const ws=class ws extends Zi{static all(){return ws._info.values()}constructor(e,n,r){super(e,null),this._defaultValue=n,typeof r=="object"?ws._info.push({...r,key:e}):r!==!0&&ws._info.push({key:e,description:r,type:n!=null?typeof n:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return ta.create(this.key,e)}notEqualsTo(e){return na.create(this.key,e)}};ws._info=[];let ae=ws;function Z2(t,e){return t<e?-1:t>e?1:0}function ts(t,e,n,r){return t<n?-1:t>n?1:e<r?-1:e>r?1:0}function Im(t){return t.type===9?t.expr:[t]}var Nr;(function(t){t.serviceIds=new Map,t.DI_TARGET="$di$target",t.DI_DEPENDENCIES="$di$dependencies";function e(n){return n[t.DI_DEPENDENCIES]||[]}t.getServiceDependencies=e})(Nr||(Nr={}));k5("instantiationService");function T5(t,e,n){e[Nr.DI_TARGET]===e?e[Nr.DI_DEPENDENCIES].push({id:t,index:n}):(e[Nr.DI_DEPENDENCIES]=[{id:t,index:n}],e[Nr.DI_TARGET]=e)}function k5(t){if(Nr.serviceIds.has(t))return Nr.serviceIds.get(t);const e=function(n,r,i){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");T5(e,n,i)};return e.toString=()=>t,Nr.serviceIds.set(t,e),e}const cf=["W","X","Y","Z","a","b","c","d","e","f"],R5=new RegExp(`^[${cf.join("")}]+`),ey=7;function x5(t){if(t.scheme!==Ct.vscodeNotebookCell)return;const e=t.fragment.indexOf("s");if(e<0)return;const n=parseInt(t.fragment.substring(0,e).replace(R5,""),ey),r=u5(t.fragment.substring(e+1)).toString();if(!isNaN(n))return{handle:n,notebook:t.with({scheme:r,fragment:null})}}function E5(t,e){const n=e.toString(ey),i=`${n.length<cf.length?cf[n.length-1]:"z"}${n}s${h5(Mn.fromString(t.scheme),!0,!0)}`;return t.with({scheme:Ct.vscodeNotebookCell,fragment:i})}var Mm;(function(t){t[t.Markup=1]="Markup",t[t.Code=2]="Code"})(Mm||(Mm={}));zi.latex,zi.markdown,zi.text;zi.latex,zi.markdown,zi.text;var Om;(function(t){t[t.Unconfirmed=1]="Unconfirmed",t[t.Pending=2]="Pending",t[t.Executing=3]="Executing"})(Om||(Om={}));var Am;(function(t){t[t.Unconfirmed=1]="Unconfirmed",t[t.Pending=2]="Pending",t[t.Executing=3]="Executing"})(Am||(Am={}));var Fm;(function(t){t[t.ModelChange=1]="ModelChange",t[t.Move=2]="Move",t[t.ChangeCellLanguage=5]="ChangeCellLanguage",t[t.Initialize=6]="Initialize",t[t.ChangeCellMetadata=7]="ChangeCellMetadata",t[t.Output=8]="Output",t[t.OutputItem=9]="OutputItem",t[t.ChangeCellContent=10]="ChangeCellContent",t[t.ChangeDocumentMetadata=11]="ChangeDocumentMetadata",t[t.ChangeCellInternalMetadata=12]="ChangeCellInternalMetadata",t[t.ChangeCellMime=13]="ChangeCellMime",t[t.Unknown=100]="Unknown"})(Fm||(Fm={}));var Lm;(function(t){t[t.Handle=0]="Handle",t[t.Index=1]="Index"})(Lm||(Lm={}));var Nm;(function(t){t.scheme=Ct.vscodeNotebookCell;function e(a,c){return E5(a,c)}t.generate=e;function n(a){return x5(a)}t.parse=n;function r(a,c){return a.with({scheme:Ct.vscodeNotebookCellOutput,fragment:`op${c??""},${a.scheme!==Ct.file?a.scheme:""}`})}t.generateCellOutputUri=r;function i(a){if(a.scheme!==Ct.vscodeNotebookCellOutput)return;const c=/^op([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?\,(.*)$/i.exec(a.fragment);if(!c)return;const l=c[1]&&c[1]!==""?c[1]:void 0,f=c[2];return{outputId:l,notebook:a.with({scheme:f||Ct.file,fragment:null})}}t.parseCellOutputUri=i;function s(a,c,l){return t.generate(a,c).with({scheme:l})}t.generateCellPropertyUri=s;function o(a,c){if(a.scheme===c)return t.parse(a.with({scheme:t.scheme}))}t.parseCellPropertyUri=o})(Nm||(Nm={}));new ae("notebookEditorCursorAtBoundary","none");new ae("notebookEditorCursorAtLineBoundary","none");var $m;(function(t){t.default="default",t.option="option"})($m||($m={}));const Cs=class Cs{static create(e){return`${Cs._prefix}${e}`}static parse(e){if(e.startsWith(Cs._prefix))return e.substring(Cs._prefix.length)}};Cs._prefix="notebook/";let qm=Cs;function P5(t){return["application/vnd.code.notebook.stdout","application/vnd.code.notebook.stderr"].includes(t)}new TextDecoder;const I5=`${String.fromCharCode(27)}[A`;I5.split("").map(t=>t.charCodeAt(0));var lf,Ei,xr,uf,Pi,ni,Ii,df,ff,Ea,go,hf,dr,fr,pf,wn,gf;function se(t){return Object.assign(t,{apply:function(...n){if(n.length===0)return Reflect.construct(t,[]);{const r=n.length===1?[]:n[1];return Reflect.construct(t,r,n[0].constructor)}},call:function(...n){if(n.length===0)return Reflect.construct(t,[]);{const[r,...i]=n;return Reflect.construct(t,i,r.constructor)}}})}var mf;(function(t){t[t.Top=0]="Top",t[t.Bottom=1]="Bottom"})(mf||(mf={}));var ji,h2;let yf=lf=(h2=class{constructor(e){ns(this,ji,void 0);da(this,ji,e)}static from(...e){let n=e;return new lf(function(){if(n){for(const r of n)r&&typeof r.dispose=="function"&&r.dispose();n=void 0}})}dispose(){typeof Dt(this,ji)=="function"&&(Dt(this,ji).call(this),da(this,ji,void 0))}},ji=new WeakMap,h2);yf=lf=ie([se],yf);let it=Ei=class{static Min(...e){if(e.length===0)throw new TypeError;let n=e[0];for(let r=1;r<e.length;r++){const i=e[r];i.isBefore(n)&&(n=i)}return n}static Max(...e){if(e.length===0)throw new TypeError;let n=e[0];for(let r=1;r<e.length;r++){const i=e[r];i.isAfter(n)&&(n=i)}return n}static isPosition(e){if(!e)return!1;if(e instanceof Ei)return!0;const{line:n,character:r}=e;return typeof n=="number"&&typeof r=="number"}static of(e){if(e instanceof Ei)return e;if(this.isPosition(e))return new Ei(e.line,e.character);throw new Error("Invalid argument, is NOT a position-like object")}get line(){return this._line}get character(){return this._character}constructor(e,n){if(e<0)throw Ae("line must be non-negative");if(n<0)throw Ae("character must be non-negative");this._line=e,this._character=n}isBefore(e){return this._line<e._line?!0:e._line<this._line?!1:this._character<e._character}isBeforeOrEqual(e){return this._line<e._line?!0:e._line<this._line?!1:this._character<=e._character}isAfter(e){return!this.isBeforeOrEqual(e)}isAfterOrEqual(e){return!this.isBefore(e)}isEqual(e){return this._line===e._line&&this._character===e._character}compareTo(e){return this._line<e._line?-1:this._line>e.line?1:this._character<e._character?-1:this._character>e._character?1:0}translate(e,n=0){if(e===null||n===null)throw Ae();let r;return typeof e>"u"?r=0:typeof e=="number"?r=e:(r=typeof e.lineDelta=="number"?e.lineDelta:0,n=typeof e.characterDelta=="number"?e.characterDelta:0),r===0&&n===0?this:new Ei(this.line+r,this.character+n)}with(e,n=this.character){if(e===null||n===null)throw Ae();let r;return typeof e>"u"?r=this.line:typeof e=="number"?r=e:(r=typeof e.line=="number"?e.line:this.line,n=typeof e.character=="number"?e.character:this.character),r===this.line&&n===this.character?this:new Ei(r,n)}toJSON(){return{line:this.line,character:this.character}}};it=Ei=ie([se],it);let Ot=xr=class{static isRange(e){return e instanceof xr?!0:e?it.isPosition(e.start)&&it.isPosition(e.end):!1}static of(e){if(e instanceof xr)return e;if(this.isRange(e))return new xr(e.start,e.end);throw new Error("Invalid argument, is NOT a range-like object")}get start(){return this._start}get end(){return this._end}constructor(e,n,r,i){let s,o;if(typeof e=="number"&&typeof n=="number"&&typeof r=="number"&&typeof i=="number"?(s=new it(e,n),o=new it(r,i)):it.isPosition(e)&&it.isPosition(n)&&(s=it.of(e),o=it.of(n)),!s||!o)throw new Error("Invalid arguments");s.isBefore(o)?(this._start=s,this._end=o):(this._start=o,this._end=s)}contains(e){return xr.isRange(e)?this.contains(e.start)&&this.contains(e.end):it.isPosition(e)?!(it.of(e).isBefore(this._start)||this._end.isBefore(e)):!1}isEqual(e){return this._start.isEqual(e._start)&&this._end.isEqual(e._end)}intersection(e){const n=it.Max(e.start,this._start),r=it.Min(e.end,this._end);if(!n.isAfter(r))return new xr(n,r)}union(e){if(this.contains(e))return this;if(e.contains(this))return e;const n=it.Min(e.start,this._start),r=it.Max(e.end,this.end);return new xr(n,r)}get isEmpty(){return this._start.isEqual(this._end)}get isSingleLine(){return this._start.line===this._end.line}with(e,n=this.end){if(e===null||n===null)throw Ae();let r;return e?it.isPosition(e)?r=e:(r=e.start||this.start,n=e.end||this.end):r=this.start,r.isEqual(this._start)&&n.isEqual(this.end)?this:new xr(r,n)}toJSON(){return[this.start,this.end]}};Ot=xr=ie([se],Ot);let bf=uf=class extends Ot{static isSelection(e){return e instanceof uf?!0:e?Ot.isRange(e)&&it.isPosition(e.anchor)&&it.isPosition(e.active)&&typeof e.isReversed=="boolean":!1}get anchor(){return this._anchor}get active(){return this._active}constructor(e,n,r,i){let s,o;if(typeof e=="number"&&typeof n=="number"&&typeof r=="number"&&typeof i=="number"?(s=new it(e,n),o=new it(r,i)):it.isPosition(e)&&it.isPosition(n)&&(s=it.of(e),o=it.of(n)),!s||!o)throw new Error("Invalid arguments");super(s,o),this._anchor=s,this._active=o}get isReversed(){return this._anchor===this._end}toJSON(){return{start:this.start,end:this.end,active:this.active,anchor:this.anchor}}};bf=uf=ie([se],bf);const ty=t=>{if(typeof t!="string"||t.length===0||!/^[0-9A-Za-z_\-]+$/.test(t))throw Ae("connectionToken")};let M5=class{static isResolvedAuthority(e){return e&&typeof e=="object"&&typeof e.host=="string"&&typeof e.port=="number"&&(e.connectionToken===void 0||typeof e.connectionToken=="string")}constructor(e,n,r){if(typeof e!="string"||e.length===0)throw Ae("host");if(typeof n!="number"||n===0||Math.round(n)!==n)throw Ae("port");typeof r<"u"&&ty(r),this.host=e,this.port=Math.round(n),this.connectionToken=r}},O5=class{static isManagedResolvedAuthority(e){return e&&typeof e=="object"&&typeof e.makeConnection=="function"&&(e.connectionToken===void 0||typeof e.connectionToken=="string")}constructor(e,n){this.makeConnection=e,this.connectionToken=n,typeof n<"u"&&ty(n)}},A5=class Pa extends Error{static NotAvailable(e,n){return new Pa(e,_o.NotAvailable,n)}static TemporarilyNotAvailable(e){return new Pa(e,_o.TemporarilyNotAvailable)}constructor(e,n=_o.Unknown,r){super(e),this._message=e,this._code=n,this._detail=r,Object.setPrototypeOf(this,Pa.prototype)}};var vf;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(vf||(vf={}));var wf;(function(t){t[t.Replace=1]="Replace",t[t.Append=2]="Append",t[t.Prepend=3]="Prepend"})(wf||(wf={}));let ic=Pi=class{static isTextEdit(e){return e instanceof Pi?!0:e?Ot.isRange(e)&&typeof e.newText=="string":!1}static replace(e,n){return new Pi(e,n)}static insert(e,n){return Pi.replace(new Ot(e,e),n)}static delete(e){return Pi.replace(e,"")}static setEndOfLine(e){const n=new Pi(new Ot(new it(0,0),new it(0,0)),"");return n.newEol=e,n}get range(){return this._range}set range(e){if(e&&!Ot.isRange(e))throw Ae("range");this._range=e}get newText(){return this._newText||""}set newText(e){if(e&&typeof e!="string")throw Ae("newText");this._newText=e}get newEol(){return this._newEol}set newEol(e){if(e&&typeof e!="number")throw Ae("newEol");this._newEol=e}constructor(e,n){this._range=e,this._newText=n}toJSON(){return{range:this.range,newText:this.newText,newEol:this._newEol}}};ic=Pi=ie([se],ic);let sc=ni=class{static isNotebookCellEdit(e){return e instanceof ni?!0:e?yo.isNotebookRange(e)&&Array.isArray(e.newCells):!1}static replaceCells(e,n){return new ni(e,n)}static insertCells(e,n){return new ni(new yo(e,e),n)}static deleteCells(e){return new ni(e,[])}static updateCellMetadata(e,n){const r=new ni(new yo(e,e),[]);return r.newCellMetadata=n,r}static updateNotebookMetadata(e){const n=new ni(new yo(0,0),[]);return n.newNotebookMetadata=e,n}constructor(e,n){this.range=e,this.newCells=n}};sc=ni=ie([se],sc);let ny=class Ia{static isSnippetTextEdit(e){return e instanceof Ia?!0:e?Ot.isRange(e.range)&&oc.isSnippetString(e.snippet):!1}static replace(e,n){return new Ia(e,n)}static insert(e,n){return Ia.replace(new Ot(e,e),n)}constructor(e,n){this.range=e,this.snippet=n}},Cf=class{constructor(){this._edits=[]}_allEntries(){return this._edits}renameFile(e,n,r,i){this._edits.push({_type:1,from:e,to:n,options:r,metadata:i})}createFile(e,n,r){this._edits.push({_type:1,from:void 0,to:e,options:n,metadata:r})}deleteFile(e,n,r){this._edits.push({_type:1,from:e,to:void 0,options:n,metadata:r})}replaceNotebookMetadata(e,n,r){this._edits.push({_type:3,metadata:r,uri:e,edit:{editType:5,metadata:n},notebookMetadata:n})}replaceNotebookCells(e,n,r,i){const s=n.start,o=n.end;(s!==o||r.length>0)&&this._edits.push({_type:5,uri:e,index:s,count:o-s,cells:r,metadata:i})}replaceNotebookCellMetadata(e,n,r,i){this._edits.push({_type:3,metadata:i,uri:e,edit:{editType:3,index:n,metadata:r}})}replace(e,n,r,i){this._edits.push({_type:2,uri:e,edit:new ic(n,r),metadata:i})}insert(e,n,r,i){this.replace(e,new Ot(n,n),r,i)}delete(e,n,r){this.replace(e,n,"",r)}has(e){return this._edits.some(n=>n._type===2&&n.uri.toString()===e.toString())}set(e,n){if(n)for(const r of n){if(!r)continue;let i,s;Array.isArray(r)?(i=r[0],s=r[1]):i=r,sc.isNotebookCellEdit(i)?i.newCellMetadata?this.replaceNotebookCellMetadata(e,i.range.start,i.newCellMetadata,s):i.newNotebookMetadata?this.replaceNotebookMetadata(e,i.newNotebookMetadata,s):this.replaceNotebookCells(e,i.range,i.newCells,s):ny.isSnippetTextEdit(i)?this._edits.push({_type:6,uri:e,range:i.range,edit:i.snippet,metadata:s}):this._edits.push({_type:2,uri:e,edit:i,metadata:s})}else{for(let r=0;r<this._edits.length;r++){const i=this._edits[r];switch(i._type){case 2:case 6:case 3:case 5:i.uri.toString()===e.toString()&&(this._edits[r]=void 0);break}}v4(this._edits)}}get(e){const n=[];for(const r of this._edits)r._type===2&&r.uri.toString()===e.toString()&&n.push(r.edit);return n}entries(){const e=new Ga;for(const n of this._edits)if(n._type===2){let r=e.get(n.uri);r||(r=[n.uri,[]],e.set(n.uri,r)),r[1].push(n.edit)}return[...e.values()]}get size(){return this.entries().length}toJSON(){return this.entries()}};Cf=ie([se],Cf);let oc=Ii=class{static isSnippetString(e){return e instanceof Ii?!0:e?typeof e.value=="string":!1}static _escape(e){return e.replace(/\$|}|\\/g,"\\$&")}constructor(e){this._tabstop=1,this.value=e||""}appendText(e){return this.value+=Ii._escape(e),this}appendTabstop(e=this._tabstop++){return this.value+="$",this.value+=e,this}appendPlaceholder(e,n=this._tabstop++){if(typeof e=="function"){const r=new Ii;r._tabstop=this._tabstop,e(r),this._tabstop=r._tabstop,e=r.value}else e=Ii._escape(e);return this.value+="${",this.value+=n,this.value+=":",this.value+=e,this.value+="}",this}appendChoice(e,n=this._tabstop++){const r=e.map(i=>i.replaceAll(/[|\\,]/g,"\\$&")).join(",");return this.value+="${",this.value+=n,this.value+="|",this.value+=r,this.value+="|}",this}appendVariable(e,n){if(typeof n=="function"){const r=new Ii;r._tabstop=this._tabstop,n(r),this._tabstop=r._tabstop,n=r.value}else typeof n=="string"&&(n=n.replace(/\$|}/g,"\\$&"));return this.value+="${",this.value+=e,n&&(this.value+=":",this.value+=n),this.value+="}",this}};oc=Ii=ie([se],oc);var _f;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(_f||(_f={}));var Uo;(function(t){t[t.Hint=3]="Hint",t[t.Information=2]="Information",t[t.Warning=1]="Warning",t[t.Error=0]="Error"})(Uo||(Uo={}));let zo=df=class{static isLocation(e){return e instanceof df?!0:e?Ot.isRange(e.range)&&rt.isUri(e.uri):!1}constructor(e,n){if(this.uri=e,n)if(Ot.isRange(n))this.range=Ot.of(n);else if(it.isPosition(n))this.range=new Ot(n,n);else throw new Error("Illegal argument")}toJSON(){return{uri:this.uri,range:this.range}}};zo=df=ie([se],zo);let ac=class{static is(e){return e?typeof e.message=="string"&&e.location&&Ot.isRange(e.location.range)&&rt.isUri(e.location.uri):!1}constructor(e,n){this.location=e,this.message=n}static isEqual(e,n){return e===n?!0:!e||!n?!1:e.message===n.message&&e.location.range.isEqual(n.location.range)&&e.location.uri.toString()===n.location.uri.toString()}};ac=ie([se],ac);let Sf=class{constructor(e,n,r=Uo.Error){if(!Ot.isRange(e))throw new TypeError("range must be set");if(!n)throw new TypeError("message must be set");this.range=e,this.message=n,this.severity=r}toJSON(){return{severity:Uo[this.severity],message:this.message,range:this.range,source:this.source,code:this.code}}static isEqual(e,n){return e===n?!0:!e||!n?!1:e.message===n.message&&e.severity===n.severity&&e.code===n.code&&e.severity===n.severity&&e.source===n.source&&e.range.isEqual(n.range)&&zd(e.tags,n.tags)&&zd(e.relatedInformation,n.relatedInformation,ac.isEqual)}};Sf=ie([se],Sf);let cc=class{constructor(e,n){if(!e)throw new Error("Illegal argument, contents must be defined");Array.isArray(e)?this.contents=e:this.contents=[e],this.range=n}};cc=ie([se],cc);let jm=class extends cc{constructor(e,n,r,i){super(e,n),this.canIncreaseHover=r,this.canDecreaseHover=i}};jm=ie([se],jm);var Hm;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(Hm||(Hm={}));var Bo;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(Bo||(Bo={}));let Df=class{constructor(e,n=Bo.Text){this.range=e,this.kind=n}toJSON(){return{range:this.range,kind:Bo[this.kind]}}};Df=ie([se],Df);let Tf=class{constructor(e,n){this.uri=e,this.highlights=n}toJSON(){return{uri:this.uri,highlights:this.highlights.map(e=>e.toJSON())}}};Tf=ie([se],Tf);var lc;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(lc||(lc={}));var kf;(function(t){t[t.Deprecated=1]="Deprecated"})(kf||(kf={}));let Rf=ff=class{static validate(e){if(!e.name)throw new Error("name must not be falsy")}constructor(e,n,r,i,s){this.name=e,this.kind=n,this.containerName=s,typeof r=="string"&&(this.containerName=r),i instanceof zo?this.location=i:r instanceof Ot&&(this.location=new zo(i,r)),ff.validate(this)}toJSON(){return{name:this.name,kind:lc[this.kind],location:this.location,containerName:this.containerName}}};Rf=ff=ie([se],Rf);let xf=Ea=class{static validate(e){var n;if(!e.name)throw new Error("name must not be falsy");if(!e.range.contains(e.selectionRange))throw new Error("selectionRange must be contained in fullRange");(n=e.children)==null||n.forEach(Ea.validate)}constructor(e,n,r,i,s){this.name=e,this.detail=n,this.kind=r,this.range=i,this.selectionRange=s,this.children=[],Ea.validate(this)}};xf=Ea=ie([se],xf);var Ef;(function(t){t[t.Invoke=1]="Invoke",t[t.Automatic=2]="Automatic"})(Ef||(Ef={}));let Pf=class{constructor(e,n){this.title=e,this.kind=n}};Pf=ie([se],Pf);var Bs;let bt=(Bs=class{constructor(e){this.value=e}append(e){return new go(this.value?this.value+go.sep+e:e)}intersects(e){return this.contains(e)||e.contains(this)}contains(e){return this.value===e.value||e.value.startsWith(this.value+go.sep)}},go=Bs,Bs.sep=".",Bs);bt=go=ie([se],bt);bt.Empty=new bt("");bt.QuickFix=bt.Empty.append("quickfix");bt.Refactor=bt.Empty.append("refactor");bt.RefactorExtract=bt.Refactor.append("extract");bt.RefactorInline=bt.Refactor.append("inline");bt.RefactorMove=bt.Refactor.append("move");bt.RefactorRewrite=bt.Refactor.append("rewrite");bt.Source=bt.Empty.append("source");bt.SourceOrganizeImports=bt.Source.append("organizeImports");bt.SourceFixAll=bt.Source.append("fixAll");bt.Notebook=bt.Empty.append("notebook");let If=class{constructor(e,n){if(this.range=e,this.parent=n,n&&!n.range.contains(this.range))throw new Error("Invalid argument: parent must contain this range")}};If=ie([se],If);let F5=class{constructor(e,n,r,i,s,o){this.kind=e,this.name=n,this.detail=r,this.uri=i,this.range=s,this.selectionRange=o}},L5=class{constructor(e,n){this.fromRanges=n,this.from=e}},N5=class{constructor(e,n){this.fromRanges=n,this.to=e}};var Mf;(function(t){t[t.Information=0]="Information",t[t.Warning=1]="Warning",t[t.Error=2]="Error"})(Mf||(Mf={}));let Of=class{constructor(e,n){this.range=e,this.command=n}get isResolved(){return!!this.command}};Of=ie([se],Of);var rn,p2;let uc=hf=(p2=class{constructor(e,n=!1){ns(this,rn,void 0);da(this,rn,new Gv(e,{supportThemeIcons:n}))}static isMarkdownString(e){return e instanceof hf?!0:e&&e.appendCodeblock&&e.appendMarkdown&&e.appendText&&e.value!==void 0}get value(){return Dt(this,rn).value}set value(e){Dt(this,rn).value=e}get isTrusted(){return Dt(this,rn).isTrusted}set isTrusted(e){Dt(this,rn).isTrusted=e}get supportThemeIcons(){return Dt(this,rn).supportThemeIcons}set supportThemeIcons(e){Dt(this,rn).supportThemeIcons=e}get supportHtml(){return Dt(this,rn).supportHtml}set supportHtml(e){Dt(this,rn).supportHtml=e}get baseUri(){return Dt(this,rn).baseUri}set baseUri(e){Dt(this,rn).baseUri=e}appendText(e){return Dt(this,rn).appendText(e),this}appendMarkdown(e){return Dt(this,rn).appendMarkdown(e),this}appendCodeblock(e,n){return Dt(this,rn).appendCodeblock(n??"",e),this}},rn=new WeakMap,p2);uc=hf=ie([se],uc);let Af=class{constructor(e,n){this.label=e,this.documentation=n}};Af=ie([se],Af);let Ff=class{constructor(e,n){this.label=e,this.documentation=n,this.parameters=[]}};Ff=ie([se],Ff);let Lf=class{constructor(){this.activeSignature=0,this.activeParameter=0,this.signatures=[]}};Lf=ie([se],Lf);var Nf;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(Nf||(Nf={}));var $f;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})($f||($f={}));let qf=class{constructor(e){this.value=e}};qf=ie([se],qf);let jf=class{constructor(e,n,r){this.position=e,this.label=n,this.kind=r}};jf=ie([se],jf);var Hf;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Hf||(Hf={}));var dc;(function(t){t[t.Text=0]="Text",t[t.Method=1]="Method",t[t.Function=2]="Function",t[t.Constructor=3]="Constructor",t[t.Field=4]="Field",t[t.Variable=5]="Variable",t[t.Class=6]="Class",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Unit=10]="Unit",t[t.Value=11]="Value",t[t.Enum=12]="Enum",t[t.Keyword=13]="Keyword",t[t.Snippet=14]="Snippet",t[t.Color=15]="Color",t[t.File=16]="File",t[t.Reference=17]="Reference",t[t.Folder=18]="Folder",t[t.EnumMember=19]="EnumMember",t[t.Constant=20]="Constant",t[t.Struct=21]="Struct",t[t.Event=22]="Event",t[t.Operator=23]="Operator",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue"})(dc||(dc={}));var Wf;(function(t){t[t.Deprecated=1]="Deprecated"})(Wf||(Wf={}));let Uf=class{constructor(e,n){this.label=e,this.kind=n}toJSON(){return{label:this.label,kind:this.kind&&dc[this.kind],detail:this.detail,documentation:this.documentation,sortText:this.sortText,filterText:this.filterText,preselect:this.preselect,insertText:this.insertText,textEdit:this.textEdit}}};Uf=ie([se],Uf);let zf=class{constructor(e=[],n=!1){this.items=e,this.isIncomplete=n}};zf=ie([se],zf);let Bf=class{constructor(e,n,r){this.insertText=e,this.range=n,this.command=r}};Bf=ie([se],Bf);let Vf=class{constructor(e){this.commands=void 0,this.suppressSuggestions=void 0,this.items=e}};Vf=ie([se],Vf);var Wm;(function(t){t[t.Unknown=0]="Unknown",t[t.Word=1]="Word",t[t.Line=2]="Line",t[t.Suggest=3]="Suggest"})(Wm||(Wm={}));var Kf;(function(t){t[t.Active=-1]="Active",t[t.Beside=-2]="Beside",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Three=3]="Three",t[t.Four=4]="Four",t[t.Five=5]="Five",t[t.Six=6]="Six",t[t.Seven=7]="Seven",t[t.Eight=8]="Eight",t[t.Nine=9]="Nine"})(Kf||(Kf={}));var Gf;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(Gf||(Gf={}));var Qf;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval"})(Qf||(Qf={}));var Jf;(function(t){t[t.Manual=1]="Manual",t[t.AfterDelay=2]="AfterDelay",t[t.FocusOut=3]="FocusOut"})(Jf||(Jf={}));var Yf;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(Yf||(Yf={}));var Vo;(function(t){t[t.Keyboard=1]="Keyboard",t[t.Mouse=2]="Mouse",t[t.Command=3]="Command"})(Vo||(Vo={}));var Xf;(function(t){t[t.Undo=1]="Undo",t[t.Redo=2]="Redo"})(Xf||(Xf={}));var Zf;(function(t){t[t.OpenOpen=0]="OpenOpen",t[t.ClosedClosed=1]="ClosedClosed",t[t.OpenClosed=2]="OpenClosed",t[t.ClosedOpen=3]="ClosedOpen"})(Zf||(Zf={}));(function(t){function e(n){switch(n){case"keyboard":return t.Keyboard;case"mouse":return t.Mouse;case"api":return t.Command}}t.fromValue=e})(Vo||(Vo={}));var Ko;(function(t){t[t.Other=0]="Other",t[t.Comment=1]="Comment",t[t.String=2]="String",t[t.RegEx=3]="RegEx"})(Ko||(Ko={}));(function(t){function e(n){switch(n){case t.Other:return"other";case t.Comment:return"comment";case t.String:return"string";case t.RegEx:return"regex"}return"other"}t.toString=e})(Ko||(Ko={}));let eh=class{constructor(e,n){if(n&&!rt.isUri(n))throw Ae("target");if(!Ot.isRange(e)||e.isEmpty)throw Ae("range");this.range=e,this.target=n}};eh=ie([se],eh);let fc=class{constructor(e,n,r,i){this.red=e,this.green=n,this.blue=r,this.alpha=i}};fc=ie([se],fc);let th=class{constructor(e,n){if(n&&!(n instanceof fc))throw Ae("color");if(!Ot.isRange(e)||e.isEmpty)throw Ae("range");this.range=e,this.color=n}};th=ie([se],th);let nh=class{constructor(e){if(!e||typeof e!="string")throw Ae("label");this.label=e}};nh=ie([se],nh);var rh;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Information=2]="Information"})(rh||(rh={}));var ih;(function(t){t[t.Unknown=0]="Unknown",t[t.Shutdown=1]="Shutdown",t[t.Process=2]="Process",t[t.User=3]="User",t[t.Extension=4]="Extension"})(ih||(ih={}));var Um;(function(t){t[t.Low=0]="Low",t[t.Medium=1]="Medium",t[t.High=2]="High"})(Um||(Um={}));let $5=class{constructor(e,n,r){if(this.startIndex=e,this.length=n,this.tooltip=r,typeof e!="number"||e<0)throw Ae("startIndex");if(typeof n!="number"||n<1)throw Ae("length");if(r!==void 0&&typeof r!="string")throw Ae("tooltip")}},q5=class{constructor(e){this.uri=e}};class j5{constructor(e){this.terminalCommand=e}}var sh;(function(t){t[t.Panel=1]="Panel",t[t.Editor=2]="Editor"})(sh||(sh={}));let H5=class{constructor(e){if(this.options=e,typeof e!="object")throw Ae("options")}};var oh;(function(t){t[t.Always=1]="Always",t[t.Silent=2]="Silent",t[t.Never=3]="Never"})(oh||(oh={}));var ah;(function(t){t[t.Shared=1]="Shared",t[t.Dedicated=2]="Dedicated",t[t.New=3]="New"})(ah||(ah={}));var Fr;let ch=(Fr=class{static from(e){switch(e){case"clean":return dr.Clean;case"build":return dr.Build;case"rebuild":return dr.Rebuild;case"test":return dr.Test;default:return}}constructor(e,n){if(this.label=n,typeof e!="string"||typeof n!="string")throw Ae("name");this._id=e}get id(){return this._id}},dr=Fr,Fr.Clean=new dr("clean","Clean"),Fr.Build=new dr("build","Build"),Fr.Rebuild=new dr("rebuild","Rebuild"),Fr.Test=new dr("test","Test"),Fr);ch=dr=ie([se],ch);function ry(t){let e="";for(let n=0;n<t.length;n++)e+=t[n].replace(/,/g,",,")+",";return e}let hc=class{constructor(e,n,r){if(typeof e!="string")throw Ae("process");this._args=[],this._process=e,n!==void 0&&(Array.isArray(n)?(this._args=n,this._options=r):this._options=n)}get process(){return this._process}set process(e){if(typeof e!="string")throw Ae("process");this._process=e}get args(){return this._args}set args(e){Array.isArray(e)||(e=[]),this._args=e}get options(){return this._options}set options(e){this._options=e}computeId(){const e=[];if(e.push("process"),this._process!==void 0&&e.push(this._process),this._args&&this._args.length>0)for(const n of this._args)e.push(n);return ry(e)}};hc=ie([se],hc);let pc=class{constructor(e,n,r){if(this._args=[],Array.isArray(n)){if(!e)throw Ae("command can't be undefined or null");if(typeof e!="string"&&typeof e.value!="string")throw Ae("command");this._command=e,this._args=n,this._options=r}else{if(typeof e!="string")throw Ae("commandLine");this._commandLine=e,this._options=n}}get commandLine(){return this._commandLine}set commandLine(e){if(typeof e!="string")throw Ae("commandLine");this._commandLine=e}get command(){return this._command?this._command:""}set command(e){if(typeof e!="string"&&typeof e.value!="string")throw Ae("command");this._command=e}get args(){return this._args}set args(e){this._args=e||[]}get options(){return this._options}set options(e){this._options=e}computeId(){const e=[];if(e.push("shell"),this._commandLine!==void 0&&e.push(this._commandLine),this._command!==void 0&&e.push(typeof this._command=="string"?this._command:this._command.value),this._args&&this._args.length>0)for(const n of this._args)e.push(typeof n=="string"?n:n.value);return ry(e)}};pc=ie([se],pc);var lh;(function(t){t[t.Escape=1]="Escape",t[t.Strong=2]="Strong",t[t.Weak=3]="Weak"})(lh||(lh={}));var Go;(function(t){t[t.Global=1]="Global",t[t.Workspace=2]="Workspace"})(Go||(Go={}));let iy=class{constructor(e){this._callback=e}computeId(){return"customExecution"+Hc()}set callback(e){this._callback=e}get callback(){return this._callback}};var Lr;let uh=(Lr=class{constructor(e,n,r,i,s,o){this.__deprecated=!1,this._definition=this.definition=e;let a;typeof n=="string"?(this._name=this.name=n,this._source=this.source=r,this.execution=i,a=s,this.__deprecated=!0):n===Go.Global||n===Go.Workspace?(this.target=n,this._name=this.name=r,this._source=this.source=i,this.execution=s,a=o):(this.target=n,this._name=this.name=r,this._source=this.source=i,this.execution=s,a=o),typeof a=="string"?(this._problemMatchers=[a],this._hasDefinedMatchers=!0):Array.isArray(a)?(this._problemMatchers=a,this._hasDefinedMatchers=!0):(this._problemMatchers=[],this._hasDefinedMatchers=!1),this._isBackground=!1,this._presentationOptions=Object.create(null),this._runOptions=Object.create(null)}get _id(){return this.__id}set _id(e){this.__id=e}get _deprecated(){return this.__deprecated}clear(){this.__id!==void 0&&(this.__id=void 0,this._scope=void 0,this.computeDefinitionBasedOnExecution())}computeDefinitionBasedOnExecution(){this._execution instanceof hc?this._definition={type:fr.ProcessType,id:this._execution.computeId()}:this._execution instanceof pc?this._definition={type:fr.ShellType,id:this._execution.computeId()}:this._execution instanceof iy?this._definition={type:fr.ExtensionCallbackType,id:this._execution.computeId()}:this._definition={type:fr.EmptyType,id:Hc()}}get definition(){return this._definition}set definition(e){if(e==null)throw Ae("Kind can't be undefined or null");this.clear(),this._definition=e}get scope(){return this._scope}set target(e){this.clear(),this._scope=e}get name(){return this._name}set name(e){if(typeof e!="string")throw Ae("name");this.clear(),this._name=e}get execution(){return this._execution}set execution(e){e===null&&(e=void 0),this.clear(),this._execution=e;const n=this._definition.type;(fr.EmptyType===n||fr.ProcessType===n||fr.ShellType===n||fr.ExtensionCallbackType===n)&&this.computeDefinitionBasedOnExecution()}get problemMatchers(){return this._problemMatchers}set problemMatchers(e){if(Array.isArray(e))this.clear(),this._problemMatchers=e,this._hasDefinedMatchers=!0;else{this.clear(),this._problemMatchers=[],this._hasDefinedMatchers=!1;return}}get hasDefinedMatchers(){return this._hasDefinedMatchers}get isBackground(){return this._isBackground}set isBackground(e){e!==!0&&e!==!1&&(e=!1),this.clear(),this._isBackground=e}get source(){return this._source}set source(e){if(typeof e!="string"||e.length===0)throw Ae("source must be a string of length > 0");this.clear(),this._source=e}get group(){return this._group}set group(e){e===null&&(e=void 0),this.clear(),this._group=e}get detail(){return this._detail}set detail(e){e===null&&(e=void 0),this._detail=e}get presentationOptions(){return this._presentationOptions}set presentationOptions(e){e==null&&(e=Object.create(null)),this.clear(),this._presentationOptions=e}get runOptions(){return this._runOptions}set runOptions(e){e==null&&(e=Object.create(null)),this.clear(),this._runOptions=e}},fr=Lr,Lr.ExtensionCallbackType="customExecution",Lr.ProcessType="process",Lr.ShellType="shell",Lr.EmptyType="$empty",Lr);uh=fr=ie([se],uh);var dh;(function(t){t[t.SourceControl=1]="SourceControl",t[t.Window=10]="Window",t[t.Notification=15]="Notification"})(dh||(dh={}));var zm;(function(t){function e(n){const r=n;return Co(r.value)?r.tooltip&&!Hn(r.tooltip)?(console.log("INVALID view badge, invalid tooltip",r.tooltip),!1):!0:(console.log("INVALID view badge, invalid value",r.value),!1)}t.isViewBadge=e})(zm||(zm={}));let fh=pf=class{static isTreeItem(e,n){var i,s;const r=e;if(r.checkboxState!==void 0){const o=Co(r.checkboxState)?r.checkboxState:dm(r.checkboxState)&&Co(r.checkboxState.state)?r.checkboxState.state:void 0,a=!Co(r.checkboxState)&&dm(r.checkboxState)?r.checkboxState.tooltip:void 0;if(o===void 0||o!==Qo.Checked&&o!==Qo.Unchecked||a!==void 0&&!Hn(a))return console.log("INVALID tree item, invalid checkboxState",r.checkboxState),!1}if(e instanceof pf)return!0;if(r.label!==void 0&&!Hn(r.label)&&!((i=r.label)!=null&&i.label))return console.log("INVALID tree item, invalid label",r.label),!1;if(r.id!==void 0&&!Hn(r.id))return console.log("INVALID tree item, invalid id",r.id),!1;if(r.iconPath!==void 0&&!Hn(r.iconPath)&&!rt.isUri(r.iconPath)&&(!r.iconPath||!Hn(r.iconPath.id))){const o=r.iconPath;if(!o||!Hn(o.light)&&!rt.isUri(o.light)&&!Hn(o.dark)&&!rt.isUri(o.dark))return console.log("INVALID tree item, invalid iconPath",r.iconPath),!1}return r.description!==void 0&&!Hn(r.description)&&typeof r.description!="boolean"?(console.log("INVALID tree item, invalid description",r.description),!1):r.resourceUri!==void 0&&!rt.isUri(r.resourceUri)?(console.log("INVALID tree item, invalid resourceUri",r.resourceUri),!1):r.tooltip!==void 0&&!Hn(r.tooltip)&&!(r.tooltip instanceof uc)?(console.log("INVALID tree item, invalid tooltip",r.tooltip),!1):r.command!==void 0&&!r.command.command?(console.log("INVALID tree item, invalid command",r.command),!1):r.collapsibleState!==void 0&&r.collapsibleState<Ds.None&&r.collapsibleState>Ds.Expanded?(console.log("INVALID tree item, invalid collapsibleState",r.collapsibleState),!1):r.contextValue!==void 0&&!Hn(r.contextValue)?(console.log("INVALID tree item, invalid contextValue",r.contextValue),!1):r.accessibilityInformation!==void 0&&!((s=r.accessibilityInformation)!=null&&s.label)?(console.log("INVALID tree item, invalid accessibilityInformation",r.accessibilityInformation),!1):!0}constructor(e,n=Ds.None){this.collapsibleState=n,rt.isUri(e)?this.resourceUri=e:this.label=e}};fh=pf=ie([se],fh);var Ds;(function(t){t[t.None=0]="None",t[t.Collapsed=1]="Collapsed",t[t.Expanded=2]="Expanded"})(Ds||(Ds={}));var Qo;(function(t){t[t.Unchecked=0]="Unchecked",t[t.Checked=1]="Checked"})(Qo||(Qo={}));let hh=class{async asString(){return typeof this.value=="string"?this.value:JSON.stringify(this.value)}asFile(){}constructor(e){this.value=e}};hh=ie([se],hh);var Ar,Hi,mo,g2;let ph=(g2=class{constructor(e){ns(this,Hi);ns(this,Ar,new Map);for(const[n,r]of e??[]){const i=Dt(this,Ar).get(Qs(this,Hi,mo).call(this,n));i?i.push(r):Dt(this,Ar).set(Qs(this,Hi,mo).call(this,n),[r])}}get(e){var n;return(n=Dt(this,Ar).get(Qs(this,Hi,mo).call(this,e)))==null?void 0:n[0]}set(e,n){Dt(this,Ar).set(Qs(this,Hi,mo).call(this,e),[n])}forEach(e,n){for(const[r,i]of Dt(this,Ar))for(const s of i)e.call(n,s,r,this)}*[Symbol.iterator](){for(const[e,n]of Dt(this,Ar))for(const r of n)yield[e,r]}},Ar=new WeakMap,Hi=new WeakSet,mo=function(e){return e.toLowerCase()},g2);ph=ie([se],ph);let gh=class{constructor(e,n,r){this.insertText=e,this.title=n,this.kind=r}};gh=ie([se],gh);var Bm;(function(t){t[t.Automatic=0]="Automatic",t[t.PasteAs=1]="PasteAs"})(Bm||(Bm={}));const _s=class _s{constructor(e){this.value=e}append(...e){return new _s((this.value?[this.value,...e]:e).join(_s.sep))}intersects(e){return this.contains(e)||e.contains(this)}contains(e){return this.value===e.value||e.value.startsWith(this.value+_s.sep)}};_s.sep=".";let gc=_s;gc.Empty=new gc("");let W5=class{constructor(e,n,r){this.title=n,this.insertText=e,this.kind=r}},Kr=class{constructor(e,n){this.id=e,this.color=n}static isThemeIcon(e){return typeof e.id!="string"?(console.log("INVALID ThemeIcon, invalid id",e.id),!1):!0}};Kr=ie([se],Kr);Kr.File=new Kr("file");Kr.Folder=new Kr("folder");let mh=class{constructor(e){this.id=e}};mh=ie([se],mh);var yh;(function(t){t[t.Global=1]="Global",t[t.Workspace=2]="Workspace",t[t.WorkspaceFolder=3]="WorkspaceFolder"})(yh||(yh={}));let bh=class{get base(){return this._base}set base(e){this._base=e,this._baseUri=rt.file(e)}get baseUri(){return this._baseUri}set baseUri(e){this._baseUri=e,this._base=e.fsPath}constructor(e,n){if(typeof e!="string"&&(!e||!rt.isUri(e)&&!rt.isUri(e.uri)))throw Ae("base");if(typeof n!="string")throw Ae("pattern");typeof e=="string"?this.baseUri=rt.file(e):rt.isUri(e)?this.baseUri=e:this.baseUri=e.uri,this.pattern=n}toJSON(){return{pattern:this.pattern,base:this.base,baseUri:this.baseUri.toJSON()}}};bh=ie([se],bh);const U5=new WeakMap;let Ws=class{constructor(e,n,r,i,s){this.enabled=typeof e=="boolean"?e:!0,typeof n=="string"&&(this.condition=n),typeof r=="string"&&(this.hitCondition=r),typeof i=="string"&&(this.logMessage=i),typeof s=="string"&&(this.mode=s)}get id(){return this._id||(this._id=U5.get(this)??Hc()),this._id}};Ws=ie([se],Ws);let vh=class extends Ws{constructor(e,n,r,i,s,o){if(super(n,r,i,s,o),e===null)throw Ae("location");this.location=e}};vh=ie([se],vh);let wh=class extends Ws{constructor(e,n,r,i,s,o){super(n,r,i,s,o),this.functionName=e}};wh=ie([se],wh);let Vm=class extends Ws{constructor(e,n,r,i,s,o,a,c){if(super(i,s,o,a,c),!n)throw Ae("dataId");this.label=e,this.dataId=n,this.canPersist=r}};Vm=ie([se],Vm);let Ch=class{constructor(e,n,r){this.command=e,this.args=n||[],this.options=r}};Ch=ie([se],Ch);let _h=class{constructor(e,n){this.port=e,this.host=n}};_h=ie([se],_h);let Sh=class{constructor(e){this.path=e}};Sh=ie([se],Sh);let Dh=class{constructor(e){this.implementation=e}};Dh=ie([se],Dh);let Th=class{constructor(e,n){this.range=e,this.expression=n}};Th=ie([se],Th);var kh;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(kh||(kh={}));let Rh=class{constructor(e,n){this.range=e,this.text=n}};Rh=ie([se],Rh);let xh=class{constructor(e,n,r=!0){this.range=e,this.variableName=n,this.caseSensitiveLookup=r}};xh=ie([se],xh);let Eh=class{constructor(e,n){this.range=e,this.expression=n}};Eh=ie([se],Eh);let Km=class{constructor(e,n){this.frameId=e,this.stoppedLocation=n}};Km=ie([se],Km);var Gm;(function(t){t[t.AIGenerated=1]="AIGenerated"})(Gm||(Gm={}));var Qm;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(Qm||(Qm={}));var Ph;(function(t){t[t.Changed=1]="Changed",t[t.Created=2]="Created",t[t.Deleted=3]="Deleted"})(Ph||(Ph={}));let Ih=wn=class extends Error{static FileExists(e){return new wn(e,Er.FileExists,wn.FileExists)}static FileNotFound(e){return new wn(e,Er.FileNotFound,wn.FileNotFound)}static FileNotADirectory(e){return new wn(e,Er.FileNotADirectory,wn.FileNotADirectory)}static FileIsADirectory(e){return new wn(e,Er.FileIsADirectory,wn.FileIsADirectory)}static NoPermissions(e){return new wn(e,Er.NoPermissions,wn.NoPermissions)}static Unavailable(e){return new wn(e,Er.Unavailable,wn.Unavailable)}constructor(e,n=Er.Unknown,r){super(rt.isUri(e)?e.toString(!0):e),this.code=(r==null?void 0:r.name)??"Unknown",t5(this,n),Object.setPrototypeOf(this,wn.prototype),typeof Error.captureStackTrace=="function"&&typeof r=="function"&&Error.captureStackTrace(this,r)}};Ih=wn=ie([se],Ih);let Mh=class{constructor(e,n,r){this.start=e,this.end=n,this.kind=r}};Mh=ie([se],Mh);var Oh;(function(t){t[t.Comment=1]="Comment",t[t.Imports=2]="Imports",t[t.Region=3]="Region"})(Oh||(Oh={}));var Ah;(function(t){t[t.Collapsed=0]="Collapsed",t[t.Expanded=1]="Expanded"})(Ah||(Ah={}));var Fh;(function(t){t[t.Editing=0]="Editing",t[t.Preview=1]="Preview"})(Fh||(Fh={}));var Lh;(function(t){t[t.Published=0]="Published",t[t.Draft=1]="Draft"})(Lh||(Lh={}));var Nh;(function(t){t[t.Unresolved=0]="Unresolved",t[t.Resolved=1]="Resolved"})(Nh||(Nh={}));var Jm;(function(t){t[t.Current=0]="Current",t[t.Outdated=1]="Outdated"})(Jm||(Jm={}));let z5=class{constructor(e,n=[]){this.tokenTypes=e,this.tokenModifiers=n}};function B5(t){return typeof t>"u"||ev(t)}let V5=class sy{constructor(e){if(this._prevLine=0,this._prevChar=0,this._dataIsSortedAndDeltaEncoded=!0,this._data=[],this._dataLen=0,this._tokenTypeStrToInt=new Map,this._tokenModifierStrToInt=new Map,this._hasLegend=!1,e){this._hasLegend=!0;for(let n=0,r=e.tokenTypes.length;n<r;n++)this._tokenTypeStrToInt.set(e.tokenTypes[n],n);for(let n=0,r=e.tokenModifiers.length;n<r;n++)this._tokenModifierStrToInt.set(e.tokenModifiers[n],n)}}push(e,n,r,i,s){if(typeof e=="number"&&typeof n=="number"&&typeof r=="number"&&typeof i=="number"&&(typeof s=="number"||typeof s>"u"))return typeof s>"u"&&(s=0),this._pushEncoded(e,n,r,i,s);if(Ot.isRange(e)&&typeof n=="string"&&B5(r))return this._push(e,n,r);throw Ae()}_push(e,n,r){if(!this._hasLegend)throw new Error("Legend must be provided in constructor");if(e.start.line!==e.end.line)throw new Error("`range` cannot span multiple lines");if(!this._tokenTypeStrToInt.has(n))throw new Error("`tokenType` is not in the provided legend");const i=e.start.line,s=e.start.character,o=e.end.character-e.start.character,a=this._tokenTypeStrToInt.get(n);let c=0;if(r)for(const l of r){if(!this._tokenModifierStrToInt.has(l))throw new Error("`tokenModifier` is not in the provided legend");const f=this._tokenModifierStrToInt.get(l);c|=1<<f>>>0}this._pushEncoded(i,s,o,a,c)}_pushEncoded(e,n,r,i,s){if(this._dataIsSortedAndDeltaEncoded&&(e<this._prevLine||e===this._prevLine&&n<this._prevChar)){this._dataIsSortedAndDeltaEncoded=!1;const c=this._data.length/5|0;let l=0,f=0;for(let p=0;p<c;p++){let g=this._data[5*p],_=this._data[5*p+1];g===0?(g=l,_+=f):g+=l,this._data[5*p]=g,this._data[5*p+1]=_,l=g,f=_}}let o=e,a=n;this._dataIsSortedAndDeltaEncoded&&this._dataLen>0&&(o-=this._prevLine,o===0&&(a-=this._prevChar)),this._data[this._dataLen++]=o,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=s,this._prevLine=e,this._prevChar=n}static _sortAndDeltaEncode(e){const n=[],r=e.length/5|0;for(let a=0;a<r;a++)n[a]=a;n.sort((a,c)=>{const l=e[5*a],f=e[5*c];if(l===f){const p=e[5*a+1],g=e[5*c+1];return p-g}return l-f});const i=new Uint32Array(e.length);let s=0,o=0;for(let a=0;a<r;a++){const c=5*n[a],l=e[c+0],f=e[c+1],p=e[c+2],g=e[c+3],_=e[c+4],C=l-s,k=C===0?f-o:f,M=5*a;i[M+0]=C,i[M+1]=k,i[M+2]=p,i[M+3]=g,i[M+4]=_,s=l,o=f}return i}build(e){return this._dataIsSortedAndDeltaEncoded?new $h(new Uint32Array(this._data),e):new $h(sy._sortAndDeltaEncode(this._data),e)}},$h=class{constructor(e,n){this.resultId=n,this.data=e}},K5=class{constructor(e,n,r){this.start=e,this.deleteCount=n,this.data=r}},G5=class{constructor(e,n){this.resultId=n,this.edits=e}};var qh;(function(t){t[t.Separate=0]="Separate",t[t.MergeWithParent=1]="MergeWithParent"})(qh||(qh={}));let Q5=class{constructor(e){this.name=e}};var Xo;let jh=(Xo=class{constructor(){}},Xo.Back={iconPath:new Kr("arrow-left")},Xo);jh=ie([se],jh);var Hh;(function(t){t[t.Separator=-1]="Separator",t[t.Default=0]="Default"})(Hh||(Hh={}));var Wh;(function(t){t[t.Info=1]="Info",t[t.Warning=2]="Warning",t[t.Error=3]="Error"})(Wh||(Wh={}));var Uh;(function(t){t[t.UI=1]="UI",t[t.Workspace=2]="Workspace"})(Uh||(Uh={}));let Ym=class{static validate(e){if(typeof e.badge=="string"){let n=im(e.badge,0);if(n<e.badge.length&&(n+=im(e.badge,n)),e.badge.length>n)throw new Error("The 'badge'-property must be undefined or a short character")}else if(e.badge&&!Kr.isThemeIcon(e.badge))throw new Error("The 'badge'-property is not a valid ThemeIcon");if(!e.color&&!e.badge&&!e.tooltip)throw new Error("The decoration is empty");return!0}constructor(e,n,r){this.badge=e,this.tooltip=n,this.color=r}},Xm=class{constructor(e){this.kind=e}};Xm=ie([se],Xm);var zh;(function(t){t[t.Light=1]="Light",t[t.Dark=2]="Dark",t[t.HighContrast=3]="HighContrast",t[t.HighContrastLight=4]="HighContrastLight"})(zh||(zh={}));let yo=class Bh{static isNotebookRange(e){return e instanceof Bh?!0:e?typeof e.start=="number"&&typeof e.end=="number":!1}get start(){return this._start}get end(){return this._end}get isEmpty(){return this._start===this._end}constructor(e,n){if(e<0)throw Ae("start must be positive");if(n<0)throw Ae("end must be positive");e<=n?(this._start=e,this._end=n):(this._start=n,this._end=e)}with(e){let n=this._start,r=this._end;return e.start!==void 0&&(n=e.start),e.end!==void 0&&(r=e.end),n===this._start&&r===this._end?this:new Bh(n,r)}},J5=class Vh{static validate(e){if(typeof e.kind!="number")throw new Error("NotebookCellData MUST have 'kind' property");if(typeof e.value!="string")throw new Error("NotebookCellData MUST have 'value' property");if(typeof e.languageId!="string")throw new Error("NotebookCellData MUST have 'languageId' property")}static isNotebookCellDataArray(e){return Array.isArray(e)&&e.every(n=>Vh.isNotebookCellData(n))}static isNotebookCellData(e){return!0}constructor(e,n,r,i,s,o,a){this.kind=e,this.value=n,this.languageId=r,this.mime=i,this.outputs=s??[],this.metadata=o,this.executionSummary=a,Vh.validate(this)}},Y5=class{constructor(e){this.cells=e}};var Wn,Rc;let X5=(Wn=class{static isNotebookCellOutputItem(e){return e instanceof Wn?!0:e?typeof e.mime=="string"&&e.data instanceof Uint8Array:!1}static error(e){const n={name:e.name,message:e.message,stack:e.stack};return Wn.json(n,"application/vnd.code.notebook.error")}static stdout(e){return Wn.text(e,"application/vnd.code.notebook.stdout")}static stderr(e){return Wn.text(e,"application/vnd.code.notebook.stderr")}static bytes(e,n="application/octet-stream"){return new Wn(e,n)}static text(e,n=zi.text){const r=Dt(Wn,Rc).encode(String(e));return new Wn(r,n)}static json(e,n="text/x-json"){const r=JSON.stringify(e,void 0," ");return Wn.text(r,n)}constructor(e,n){this.data=e,this.mime=n;const r=J2(n,!0);if(!r)throw new Error(`INVALID mime type: ${n}. Must be in the format "type/subtype[;optionalparameter]"`);this.mime=r}},Rc=new WeakMap,ns(Wn,Rc,new TextEncoder),Wn),Z5=class Kh{static isNotebookCellOutput(e){return e instanceof Kh?!0:!e||typeof e!="object"?!1:typeof e.id=="string"&&Array.isArray(e.items)}static ensureUniqueMimeTypes(e,n=!1){const r=new Set,i=new Set;for(let s=0;s<e.length;s++){const o=e[s],a=J2(o.mime);if(!r.has(a)||P5(a)){r.add(a);continue}i.add(s),n&&console.warn(`DUPLICATED mime type '${o.mime}' will be dropped`)}return i.size===0?e:e.filter((s,o)=>!i.has(o))}constructor(e,n,r){this.items=Kh.ensureUniqueMimeTypes(e,!0),typeof n=="string"?(this.id=n,this.metadata=r):(this.id=Hc(),this.metadata=n??r)}};var Gh;(function(t){t[t.Markup=1]="Markup",t[t.Code=2]="Code"})(Gh||(Gh={}));var Qh;(function(t){t[t.Idle=1]="Idle",t[t.Pending=2]="Pending",t[t.Executing=3]="Executing"})(Qh||(Qh={}));var Jh;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(Jh||(Jh={}));var Yh;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(Yh||(Yh={}));let ew=class{constructor(e,n){this.text=e,this.alignment=n}};var Xh;(function(t){t[t.Default=1]="Default",t[t.Preferred=2]="Preferred"})(Xh||(Xh={}));var Zh;(function(t){t[t.Default=1]="Default",t[t.Preferred=2]="Preferred",t[t.Hidden=-1]="Hidden"})(Zh||(Zh={}));let tw=class{constructor(e,n=[]){this.uri=e,this.provides=w4(n)}},nw=class{constructor(e){this.label=e}};var Zm;(function(t){t[t.Named=1]="Named",t[t.Indexed=2]="Indexed"})(Zm||(Zm={}));let e1=class{constructor(e,n){this.label=e,this.timestamp=n}};e1=ie([se],e1);var t1;(function(t){t[t.Production=1]="Production",t[t.Development=2]="Development",t[t.Test=3]="Test"})(t1||(t1={}));var n1;(function(t){t[t.Node=1]="Node",t[t.Webworker=2]="Webworker"})(n1||(n1={}));var r1;(function(t){t[t.Other=0]="Other",t[t.Comment=1]="Comment",t[t.String=2]="String",t[t.RegEx=3]="RegEx"})(r1||(r1={}));let rw=class{constructor(e,n){this.ranges=e,this.wordPattern=n}},iw=class{constructor(e){this._autoForwardAction=e}get autoForwardAction(){return this._autoForwardAction}};var i1;(function(t){t[t.Queued=1]="Queued",t[t.Running=2]="Running",t[t.Passed=3]="Passed",t[t.Failed=4]="Failed",t[t.Skipped=5]="Skipped",t[t.Errored=6]="Errored"})(i1||(i1={}));var s1;(function(t){t[t.Run=1]="Run",t[t.Debug=2]="Debug",t[t.Coverage=3]="Coverage"})(s1||(s1={}));let o1=class{constructor(e=void 0,n=void 0,r=void 0,i=!1,s=!0){this.include=e,this.exclude=n,this.profile=r,this.continuous=i,this.preserveFocus=s}};o1=ie([se],o1);let mc=gf=class{static diff(e,n,r){const i=new gf(e);return i.expectedOutput=n,i.actualOutput=r,i}constructor(e){this.message=e}};mc=gf=ie([se],mc);let a1=class{constructor(e){this.id=e}};a1=ie([se],a1);class Bl{constructor(e,n){this.covered=e,this.total=n,sw(this)}}function sw(t){if(t){if(t.covered>t.total)throw new Error(`The total number of covered items (${t.covered}) cannot be greater than the total (${t.total})`);if(t.total<0)throw new Error(`The number of covered items (${t.total}) cannot be negative`)}}let ow=class oy{static fromDetails(e,n){const r=new Bl(0,0),i=new Bl(0,0),s=new Bl(0,0);for(const a of n)if("branches"in a){r.total+=1,r.covered+=a.executed?1:0;for(const c of a.branches)i.total+=1,i.covered+=c.executed?1:0}else s.total+=1,s.covered+=a.executed?1:0;const o=new oy(e,r,i.total>0?i:void 0,s.total>0?s:void 0);return o.detailedCoverage=n,o}constructor(e,n,r,i){this.uri=e,this.statementCoverage=n,this.branchCoverage=r,this.declarationCoverage=i}},aw=class{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,n,r=[]){this.executed=e,this.location=n,this.branches=r}},cw=class{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,n,r){this.executed=e,this.location=n,this.label=r}};class lw{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,n,r){this.name=e,this.executed=n,this.location=r}}var c1;(function(t){t[t.None=0]="None",t[t.Option=1]="Option",t[t.Default=2]="Default",t[t.Preferred=3]="Preferred"})(c1||(c1={}));var l1;(function(t){t[t.Untrusted=0]="Untrusted",t[t.Trusted=1]="Trusted",t[t.Unspecified=2]="Unspecified"})(l1||(l1={}));var u1;(function(t){t[t.Notify=1]="Notify",t[t.OpenBrowser=2]="OpenBrowser",t[t.OpenPreview=3]="OpenPreview",t[t.Silent=4]="Silent",t[t.Ignore=5]="Ignore",t[t.OpenBrowserOnce=6]="OpenBrowserOnce"})(u1||(u1={}));let uw=class{constructor(e,n,r,i,s,o){this.kind=e,this.name=n,this.detail=r,this.uri=i,this.range=s,this.selectionRange=o}};class dw{constructor(e){this.uri=e}}class fw{constructor(e,n){this.original=e,this.modified=n}}class hw{constructor(e,n,r,i){this.base=e,this.input1=n,this.input2=r,this.result=i}}class pw{constructor(e,n){this.uri=e,this.viewType=n}}class gw{constructor(e){this.viewType=e}}class mw{constructor(e,n){this.uri=e,this.notebookType=n}}class yw{constructor(e,n,r){this.original=e,this.modified=n,this.notebookType=r}}class bw{constructor(){}}class vw{constructor(e,n){this.uri=e,this.inputBoxUri=n}}class ww{constructor(){}}var d1;(function(t){t[t.Down=0]="Down",t[t.Up=1]="Up"})(d1||(d1={}));var f1;(function(t){t[t.Action=1]="Action",t[t.Toolbar=2]="Toolbar"})(f1||(f1={}));var h1;(function(t){t[t.Short=1]="Short",t[t.Medium=2]="Medium",t[t.Full=3]="Full"})(h1||(h1={}));let Cw=class{constructor(e,n){this.label=e,this.values=n}};var p1;(function(t){t[t.Unhelpful=0]="Unhelpful",t[t.Helpful=1]="Helpful",t[t.Undone=2]="Undone",t[t.Accepted=3]="Accepted",t[t.Bug=4]="Bug"})(p1||(p1={}));var g1;(function(t){t[t.Unhelpful=0]="Unhelpful",t[t.Helpful=1]="Helpful"})(g1||(g1={}));var e0;(function(t){t[t.Panel=1]="Panel",t[t.Terminal=2]="Terminal",t[t.Notebook=3]="Notebook",t[t.Editor=4]="Editor"})(e0||(e0={}));var m1;(function(t){t[t.SymbolInformation=1]="SymbolInformation",t[t.CommandInformation=2]="CommandInformation",t[t.SearchInformation=3]="SearchInformation",t[t.SettingInformation=4]="SettingInformation"})(m1||(m1={}));var y1;(function(t){t[t.Started=1]="Started",t[t.Recognizing=2]="Recognizing",t[t.Recognized=3]="Recognized",t[t.Stopped=4]="Stopped",t[t.Error=5]="Error"})(y1||(y1={}));var b1;(function(t){t[t.Recognized=1]="Recognized",t[t.Stopped=2]="Stopped"})(b1||(b1={}));var t0;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(t0||(t0={}));var v1;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(v1||(v1={}));const xc=class xc{constructor(e){this._proxyIdentifierBrand=void 0,this.sid=e,this.nid=++xc.count}};xc.count=0;let w1=xc;const _w=[];function q(t){const e=new w1(t);return _w[e.nid]=e,e}var n0;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(n0||(n0={}));var r0;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(r0||(r0={}));var C1;(function(t){t[t.None=0]="None",t[t.Process=1]="Process",t[t.Output=2]="Output"})(C1||(C1={}));q("MainThreadAuthentication"),q("MainThreadBulkEdits"),q("MainThreadLanguageModels"),q("MainThreadChatAgents2"),q("MainThreadChatVariables"),q("MainThreadClipboard"),q("MainThreadCommands"),q("MainThreadComments"),q("MainThreadConfiguration"),q("MainThreadConsole"),q("MainThreadDebugService"),q("MainThreadDecorations"),q("MainThreadDiagnostics"),q("MainThreadDiaglogs"),q("MainThreadDocuments"),q("MainThreadDocumentContentProviders"),q("MainThreadTextEditors"),q("MainThreadEditorInsets"),q("MainThreadEditorTabs"),q("MainThreadErrors"),q("MainThreadTreeViews"),q("MainThreadDownloadService"),q("MainThreadLanguageFeatures"),q("MainThreadLanguages"),q("MainThreadLogger"),q("MainThreadMessageService"),q("MainThreadOutputService"),q("MainThreadProgress"),q("MainThreadQuickDiff"),q("MainThreadQuickOpen"),q("MainThreadStatusBar"),q("MainThreadSecretState"),q("MainThreadStorage"),q("MainThreadSpeechProvider"),q("MainThreadTelemetry"),q("MainThreadTerminalService"),q("MainThreadTerminalShellIntegration"),q("MainThreadWebviews"),q("MainThreadWebviewPanels"),q("MainThreadWebviewViews"),q("MainThreadCustomEditors"),q("MainThreadUrls"),q("MainThreadUriOpeners"),q("MainThreadProfileContentHandlers"),q("MainThreadWorkspace"),q("MainThreadFileSystem"),q("MainThreadFileSystemEventService"),q("MainThreadExtensionService"),q("MainThreadSCM"),q("MainThreadSearch"),q("MainThreadShare"),q("MainThreadTask"),q("MainThreadWindow"),q("MainThreadLabelService"),q("MainThreadNotebook"),q("MainThreadNotebookDocumentsShape"),q("MainThreadNotebookEditorsShape"),q("MainThreadNotebookKernels"),q("MainThreadNotebookRenderers"),q("MainThreadInteractive"),q("MainThreadInlineChatShape"),q("MainThreadTheming"),q("MainThreadTunnelService"),q("MainThreadManagedSockets"),q("MainThreadTimeline"),q("MainThreadTesting"),q("MainThreadLocalizationShape"),q("MainThreadAiRelatedInformation"),q("MainThreadAiEmbeddingVector");q("ExtHostCommands"),q("ExtHostConfiguration"),q("ExtHostDiagnostics"),q("ExtHostDebugService"),q("ExtHostDecorations"),q("ExtHostDocumentsAndEditors"),q("ExtHostDocuments"),q("ExtHostDocumentContentProviders"),q("ExtHostDocumentSaveParticipant"),q("ExtHostEditors"),q("ExtHostTreeViews"),q("ExtHostFileSystem"),q("ExtHostFileSystemInfo"),q("ExtHostFileSystemEventService"),q("ExtHostLanguages"),q("ExtHostLanguageFeatures"),q("ExtHostQuickOpen"),q("ExtHostQuickDiff"),q("ExtHostStatusBar"),q("ExtHostShare"),q("ExtHostExtensionService"),q("ExtHostLogLevelServiceShape"),q("ExtHostTerminalService"),q("ExtHostTerminalShellIntegration"),q("ExtHostSCM"),q("ExtHostSearch"),q("ExtHostTask"),q("ExtHostWorkspace"),q("ExtHostWindow"),q("ExtHostWebviews"),q("ExtHostWebviewPanels"),q("ExtHostCustomEditors"),q("ExtHostWebviewViews"),q("ExtHostEditorInsets"),q("ExtHostEditorTabs"),q("ExtHostProgress"),q("ExtHostComments"),q("ExtHostSecretState"),q("ExtHostStorage"),q("ExtHostUrls"),q("ExtHostUriOpeners"),q("ExtHostProfileContentHandlers"),q("ExtHostOutputService"),q("ExtHostLabelService"),q("ExtHostNotebook"),q("ExtHostNotebookDocuments"),q("ExtHostNotebookEditors"),q("ExtHostNotebookKernels"),q("ExtHostNotebookRenderers"),q("ExtHostNotebookDocumentSaveParticipant"),q("ExtHostInteractive"),q("ExtHostInlineChatShape"),q("ExtHostChatAgents"),q("ExtHostChatVariables"),q("ExtHostChatProvider"),q("ExtHostSpeech"),q("ExtHostAiRelatedInformation"),q("ExtHostAiEmbeddingVector"),q("ExtHostTheming"),q("ExtHostTunnelService"),q("ExtHostManagedSockets"),q("ExtHostAuthentication"),q("ExtHostTimeline"),q("ExtHostTesting"),q("ExtHostTelemetry"),q("ExtHostLocalization");const ue="vs/workbench/contrib/debug/common/debug";new ae("debugType",void 0,{type:"string",description:m(ue,0,"Debug type of the active debug session. For example 'python'.")});new ae("debugConfigurationType",void 0,{type:"string",description:m(ue,1,"Debug type of the selected launch configuration. For example 'python'.")});new ae("debugState","inactive",{type:"string",description:m(ue,2,"State that the focused debug session is in. One of the following: 'inactive', 'initializing', 'stopped' or 'running'.")});const Sw="debugUx";new ae(Sw,"default",{type:"string",description:m(ue,3,"Debug UX state. When there are no debug configurations it is 'simple', otherwise 'default'. Used to decide when to show welcome views in the debug viewlet.")});new ae("hasDebugged",!1,{type:"boolean",description:m(ue,4,"True when a debug session has been started at least once, false otherwise.")});new ae("inDebugMode",!1,{type:"boolean",description:m(ue,5,"True when debugging, false otherwise.")});new ae("inDebugRepl",!1,{type:"boolean",description:m(ue,6,"True when focus is in the debug console, false otherwise.")});new ae("breakpointWidgetVisible",!1,{type:"boolean",description:m(ue,7,"True when breakpoint editor zone widget is visible, false otherwise.")});new ae("inBreakpointWidget",!1,{type:"boolean",description:m(ue,8,"True when focus is in the breakpoint editor zone widget, false otherwise.")});new ae("breakpointsFocused",!0,{type:"boolean",description:m(ue,9,"True when the BREAKPOINTS view is focused, false otherwise.")});new ae("watchExpressionsFocused",!0,{type:"boolean",description:m(ue,10,"True when the WATCH view is focused, false otherwsie.")});new ae("watchExpressionsExist",!1,{type:"boolean",description:m(ue,11,"True when at least one watch expression exists, false otherwise.")});new ae("variablesFocused",!0,{type:"boolean",description:m(ue,12,"True when the VARIABLES views is focused, false otherwsie")});new ae("expressionSelected",!1,{type:"boolean",description:m(ue,13,"True when an expression input box is open in either the WATCH or the VARIABLES view, false otherwise.")});new ae("breakpointInputFocused",!1,{type:"boolean",description:m(ue,14,"True when the input box has focus in the BREAKPOINTS view.")});new ae("callStackItemType",void 0,{type:"string",description:m(ue,15,"Represents the item type of the focused element in the CALL STACK view. For example: 'session', 'thread', 'stackFrame'")});new ae("callStackSessionIsAttach",!1,{type:"boolean",description:m(ue,16,"True when the session in the CALL STACK view is attach, false otherwise. Used internally for inline menus in the CALL STACK view.")});new ae("callStackItemStopped",!1,{type:"boolean",description:m(ue,17,"True when the focused item in the CALL STACK is stopped. Used internaly for inline menus in the CALL STACK view.")});new ae("callStackSessionHasOneThread",!1,{type:"boolean",description:m(ue,18,"True when the focused session in the CALL STACK view has exactly one thread. Used internally for inline menus in the CALL STACK view.")});new ae("watchItemType",void 0,{type:"string",description:m(ue,19,"Represents the item type of the focused element in the WATCH view. For example: 'expression', 'variable'")});new ae("canViewMemory",void 0,{type:"boolean",description:m(ue,20,"Indicates whether the item in the view has an associated memory refrence.")});new ae("breakpointItemType",void 0,{type:"string",description:m(ue,21,"Represents the item type of the focused element in the BREAKPOINTS view. For example: 'breakpoint', 'exceptionBreakppint', 'functionBreakpoint', 'dataBreakpoint'")});new ae("breakpointItemBytes",void 0,{type:"boolean",description:m(ue,22,"Whether the breakpoint item is a data breakpoint on a byte range.")});new ae("breakpointHasModes",!1,{type:"boolean",description:m(ue,23,"Whether the breakpoint has multiple modes it can switch to.")});new ae("breakpointSupportsCondition",!1,{type:"boolean",description:m(ue,24,"True when the focused breakpoint supports conditions.")});new ae("loadedScriptsSupported",!1,{type:"boolean",description:m(ue,25,"True when the focused sessions supports the LOADED SCRIPTS view")});new ae("loadedScriptsItemType",void 0,{type:"string",description:m(ue,26,"Represents the item type of the focused element in the LOADED SCRIPTS view.")});new ae("focusedSessionIsAttach",!1,{type:"boolean",description:m(ue,27,"True when the focused session is 'attach'.")});new ae("focusedSessionIsNoDebug",!1,{type:"boolean",description:m(ue,28,"True when the focused session is run without debugging.")});new ae("stepBackSupported",!1,{type:"boolean",description:m(ue,29,"True when the focused session supports 'stepBack' requests.")});new ae("restartFrameSupported",!1,{type:"boolean",description:m(ue,30,"True when the focused session supports 'restartFrame' requests.")});new ae("stackFrameSupportsRestart",!1,{type:"boolean",description:m(ue,31,"True when the focused stack frame suppots 'restartFrame'.")});new ae("jumpToCursorSupported",!1,{type:"boolean",description:m(ue,32,"True when the focused session supports 'jumpToCursor' request.")});new ae("stepIntoTargetsSupported",!1,{type:"boolean",description:m(ue,33,"True when the focused session supports 'stepIntoTargets' request.")});new ae("breakpointsExist",!1,{type:"boolean",description:m(ue,34,"True when at least one breakpoint exists.")});new ae("debuggersAvailable",!1,{type:"boolean",description:m(ue,35,"True when there is at least one debug extensions active.")});new ae("debugExtensionAvailable",!0,{type:"boolean",description:m(ue,36,"True when there is at least one debug extension installed and enabled.")});new ae("debugProtocolVariableMenuContext",void 0,{type:"string",description:m(ue,37,"Represents the context the debug adapter sets on the focused variable in the VARIABLES view.")});new ae("debugSetVariableSupported",!1,{type:"boolean",description:m(ue,38,"True when the focused session supports 'setVariable' request.")});new ae("debugSetDataBreakpointAddressSupported",!1,{type:"boolean",description:m(ue,39,"True when the focused session supports 'getBreakpointInfo' request on an address.")});new ae("debugSetExpressionSupported",!1,{type:"boolean",description:m(ue,40,"True when the focused session supports 'setExpression' request.")});new ae("breakWhenValueChangesSupported",!1,{type:"boolean",description:m(ue,41,"True when the focused session supports to break when value changes.")});new ae("breakWhenValueIsAccessedSupported",!1,{type:"boolean",description:m(ue,42,"True when the focused breakpoint supports to break when value is accessed.")});new ae("breakWhenValueIsReadSupported",!1,{type:"boolean",description:m(ue,43,"True when the focused breakpoint supports to break when value is read.")});new ae("terminateDebuggeeSupported",!1,{type:"boolean",description:m(ue,44,"True when the focused session supports the terminate debuggee capability.")});new ae("suspendDebuggeeSupported",!1,{type:"boolean",description:m(ue,45,"True when the focused session supports the suspend debuggee capability.")});new ae("variableEvaluateNamePresent",!1,{type:"boolean",description:m(ue,46,"True when the focused variable has an 'evalauteName' field set.")});new ae("variableIsReadonly",!1,{type:"boolean",description:m(ue,47,"True when the focused variable is read-only.")});new ae("variableValue",!1,{type:"string",description:m(ue,48,"Value of the variable, present for debug visualization clauses.")});new ae("variableType",!1,{type:"string",description:m(ue,49,"Type of the variable, present for debug visualization clauses.")});new ae("variableInterfaces",!1,{type:"array",description:m(ue,50,"Any interfaces or contracts that the variable satisfies, present for debug visualization clauses.")});new ae("variableName",!1,{type:"string",description:m(ue,51,"Name of the variable, present for debug visualization clauses.")});new ae("variableLanguage",!1,{type:"string",description:m(ue,52,"Language of the variable source, present for debug visualization clauses.")});new ae("variableExtensionId",!1,{type:"string",description:m(ue,53,"Extension ID of the variable source, present for debug visualization clauses.")});new ae("exceptionWidgetVisible",!1,{type:"boolean",description:m(ue,54,"True when the exception widget is visible.")});new ae("multiSessionRepl",!1,{type:"boolean",description:m(ue,55,"True when there is more than 1 debug console.")});new ae("multiSessionDebug",!1,{type:"boolean",description:m(ue,56,"True when there is more than 1 active debug session.")});new ae("disassembleRequestSupported",!1,{type:"boolean",description:m(ue,57,"True when the focused sessions supports disassemble request.")});new ae("disassemblyViewFocus",!1,{type:"boolean",description:m(ue,58,"True when the Disassembly View is focused.")});new ae("languageSupportsDisassembleRequest",!1,{type:"boolean",description:m(ue,59,"True when the language in the current editor supports disassemble request.")});new ae("focusedStackFrameHasInstructionReference",!1,{type:"boolean",description:m(ue,60,"True when the focused stack frame has instruction pointer reference.")});m(ue,62,"Controls when the internal Debug Console should open.");var _1;(function(t){t[t.Initial=1]="Initial",t[t.Dynamic=2]="Dynamic"})(_1||(_1={}));var i0;(function(t){t.UnverifiedBreakpoints="unverifiedBreakpoints"})(i0||(i0={}));var s0;(function(t){t.deserialize=e=>({id:e.id,name:e.name,iconPath:e.iconPath&&{light:rt.revive(e.iconPath.light),dark:rt.revive(e.iconPath.dark)},iconClass:e.iconClass,visualization:e.visualization}),t.serialize=e=>e})(s0||(s0={}));function To(t,e){if(t===e)return!0;if(t==null||e===null||e===void 0||typeof t!=typeof e||typeof t!="object"||Array.isArray(t)!==Array.isArray(e))return!1;let n,r;if(Array.isArray(t)){if(t.length!==e.length)return!1;for(n=0;n<t.length;n++)if(!To(t[n],e[n]))return!1}else{const i=[];for(r in t)i.push(r);i.sort();const s=[];for(r in e)s.push(r);if(s.sort(),!To(i,s))return!1;for(n=0;n<i.length;n++)if(!To(t[i[n]],e[i[n]]))return!1}return!0}var S1;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(S1||(S1={}));var o0;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(o0||(o0={}));var a0;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(a0||(a0={}));var D1;(function(t){t[t.Desktop=1]="Desktop",t[t.Web=2]="Web"})(D1||(D1={}));var T1;(function(t){t[t.Information=1]="Information",t[t.Warning=2]="Warning"})(T1||(T1={}));function Vl(t,e,n=32){const r=n-e,i=~((1<<r)-1);return(t<<e|(i&t)>>>r)>>>0}function c0(t,e=0,n=t.byteLength,r=0){for(let i=0;i<n;i++)t[e+i]=r}function Dw(t,e,n="0"){for(;t.length<e;)t=n+t;return t}function Ys(t,e=32){return t instanceof ArrayBuffer?Array.from(new Uint8Array(t)).map(n=>n.toString(16).padStart(2,"0")).join(""):Dw((t>>>0).toString(16),e/4)}const Ec=class Ec{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const n=e.length;if(n===0)return;const r=this._buff;let i=this._buffLen,s=this._leftoverHighSurrogate,o,a;for(s!==0?(o=s,a=-1,s=0):(o=e.charCodeAt(0),a=0);;){let c=o;if(tp(o))if(a+1<n){const l=e.charCodeAt(a+1);Ya(l)?(a++,c=np(o,l)):c=65533}else{s=o;break}else Ya(o)&&(c=65533);if(i=this._push(r,i,c),a++,a<n)o=e.charCodeAt(a);else break}this._buffLen=i,this._leftoverHighSurrogate=s}_push(e,n,r){return r<128?e[n++]=r:r<2048?(e[n++]=192|(r&1984)>>>6,e[n++]=128|(r&63)>>>0):r<65536?(e[n++]=224|(r&61440)>>>12,e[n++]=128|(r&4032)>>>6,e[n++]=128|(r&63)>>>0):(e[n++]=240|(r&1835008)>>>18,e[n++]=128|(r&258048)>>>12,e[n++]=128|(r&4032)>>>6,e[n++]=128|(r&63)>>>0),n>=64&&(this._step(),n-=64,this._totalLen+=64,e[0]=e[64+0],e[1]=e[64+1],e[2]=e[64+2]),n}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Ys(this._h0)+Ys(this._h1)+Ys(this._h2)+Ys(this._h3)+Ys(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,c0(this._buff,this._buffLen),this._buffLen>56&&(this._step(),c0(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=Ec._bigBlock32,n=this._buffDV;for(let p=0;p<64;p+=4)e.setUint32(p,n.getUint32(p,!1),!1);for(let p=64;p<320;p+=4)e.setUint32(p,Vl(e.getUint32(p-12,!1)^e.getUint32(p-32,!1)^e.getUint32(p-56,!1)^e.getUint32(p-64,!1),1),!1);let r=this._h0,i=this._h1,s=this._h2,o=this._h3,a=this._h4,c,l,f;for(let p=0;p<80;p++)p<20?(c=i&s|~i&o,l=1518500249):p<40?(c=i^s^o,l=1859775393):p<60?(c=i&s|i&o|s&o,l=2400959708):(c=i^s^o,l=3395469782),f=Vl(r,5)+c+a+l+e.getUint32(p*4,!1)&4294967295,a=o,o=s,s=Vl(i,30),i=r,r=f;this._h0=this._h0+r&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+a&4294967295}};Ec._bigBlock32=new DataView(new ArrayBuffer(320));let l0=Ec;var ar;(function(t){t[t.Off=0]="Off",t[t.Trace=1]="Trace",t[t.Debug=2]="Debug",t[t.Info=3]="Info",t[t.Warning=4]="Warning",t[t.Error=5]="Error"})(ar||(ar={}));ar.Info;function Tw(t){switch(t){case ar.Trace:return"trace";case ar.Debug:return"debug";case ar.Info:return"info";case ar.Warning:return"warn";case ar.Error:return"error";case ar.Off:return"off"}}new ae("logLevel",Tw(ar.Info));var k1;(function(t){t[t.Complete=100]="Complete",t[t.Partial=50]="Partial",t[t.None=0]="None"})(k1||(k1={}));const u0={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},ay="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function kw(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of ay)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}kw();const Rw=new F4;Rw.unshift({maxLen:1e3,windowSize:15,timeBudget:150});const b="vs/editor/common/config/editorOptions",xw=8;class Ew{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Ke{constructor(e,n,r,i){this.id=e,this.name=n,this.defaultValue=r,this.schema=i}applyUpdate(e,n){return Bc(e,n)}compute(e,n,r){return r}}class Ma{constructor(e,n){this.newValue=e,this.didChange=n}}function Bc(t,e){if(typeof t!="object"||typeof e!="object"||!t||!e)return new Ma(e,t!==e);if(Array.isArray(t)||Array.isArray(e)){const r=Array.isArray(t)&&Array.isArray(e)&&zd(t,e);return new Ma(e,!r)}let n=!1;for(const r in e)if(e.hasOwnProperty(r)){const i=Bc(t[r],e[r]);i.didChange&&(t[r]=i.newValue,n=!0)}return new Ma(t,n)}class aa{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,n){return Bc(e,n)}validate(e){return this.defaultValue}}class Vs{constructor(e,n,r,i){this.id=e,this.name=n,this.defaultValue=r,this.schema=i}applyUpdate(e,n){return Bc(e,n)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,n,r){return r}}function Z(t,e){return typeof t>"u"?e:t==="false"?!1:!!t}class Se extends Vs{constructor(e,n,r,i=void 0){typeof i<"u"&&(i.type="boolean",i.default=r),super(e,n,r,i)}validate(e){return Z(e,this.defaultValue)}}function Pw(t,e,n,r){if(typeof t>"u")return e;let i=parseInt(t,10);return isNaN(i)?e:(i=Math.max(n,i),i=Math.min(r,i),i|0)}class je extends Vs{static clampedInt(e,n,r,i){return Pw(e,n,r,i)}constructor(e,n,r,i,s,o=void 0){typeof o<"u"&&(o.type="integer",o.default=r,o.minimum=i,o.maximum=s),super(e,n,r,o),this.minimum=i,this.maximum=s}validate(e){return je.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class ur extends Vs{static clamp(e,n,r){return e<n?n:e>r?r:e}static float(e,n){if(typeof e=="number")return e;if(typeof e>"u")return n;const r=parseFloat(e);return isNaN(r)?n:r}constructor(e,n,r,i,s){typeof s<"u"&&(s.type="number",s.default=r),super(e,n,r,s),this.validationFn=i}validate(e){return this.validationFn(ur.float(e,this.defaultValue))}}class on extends Vs{static string(e,n){return typeof e!="string"?n:e}constructor(e,n,r,i=void 0){typeof i<"u"&&(i.type="string",i.default=r),super(e,n,r,i)}validate(e){return on.string(e,this.defaultValue)}}function pt(t,e,n,r){return typeof t!="string"?e:r&&t in r?r[t]:n.indexOf(t)===-1?e:t}class tt extends Vs{constructor(e,n,r,i,s=void 0){typeof s<"u"&&(s.type="string",s.enum=i,s.default=r),super(e,n,r,s),this._allowedValues=i}validate(e){return pt(e,this.defaultValue,this._allowedValues)}}class ya extends Ke{constructor(e,n,r,i,s,o,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=i),super(e,n,r,a),this._allowedValues=s,this._convert=o}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function Iw(t){switch(t){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class Mw extends Ke{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[m(b,0,"Use platform APIs to detect when a Screen Reader is attached."),m(b,1,"Optimize for usage with a Screen Reader."),m(b,2,"Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:m(b,3,"Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,n,r){return r===0?e.accessibilitySupport:r}}class Ow extends Ke{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:m(b,4,"Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:m(b,5,"Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{insertSpace:Z(n.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Z(n.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function Aw(t){switch(t){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var yr;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(yr||(yr={}));function Fw(t){switch(t){case"line":return yr.Line;case"block":return yr.Block;case"underline":return yr.Underline;case"line-thin":return yr.LineThin;case"block-outline":return yr.BlockOutline;case"underline-thin":return yr.UnderlineThin}}class Lw extends aa{constructor(){super(142)}compute(e,n,r){const i=["monaco-editor"];return n.get(39)&&i.push(n.get(39)),e.extraEditorClassName&&i.push(e.extraEditorClassName),n.get(74)==="default"?i.push("mouse-default"):n.get(74)==="copy"&&i.push("mouse-copy"),n.get(111)&&i.push("showUnused"),n.get(140)&&i.push("showDeprecated"),i.join(" ")}}class Nw extends Se{constructor(){super(37,"emptySelectionClipboard",!0,{description:m(b,6,"Controls whether copying without a selection copies the current line.")})}compute(e,n,r){return r&&e.emptySelectionClipboard}}class $w extends Ke{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:m(b,7,"Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[m(b,8,"Never seed search string from the editor selection."),m(b,9,"Always seed search string from the editor selection, including word at cursor position."),m(b,10,"Only seed search string from the editor selection.")],description:m(b,11,"Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[m(b,12,"Never turn on Find in Selection automatically (default)."),m(b,13,"Always turn on Find in Selection automatically."),m(b,14,"Turn on Find in Selection automatically when multiple lines of content are selected.")],description:m(b,15,"Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:m(b,16,"Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Sr},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:m(b,17,"Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:m(b,18,"Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{cursorMoveOnType:Z(n.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":pt(n.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":pt(n.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Z(n.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Z(n.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Z(n.loop,this.defaultValue.loop)}}}const Ir=class Ir extends Ke{constructor(){super(51,"fontLigatures",Ir.OFF,{anyOf:[{type:"boolean",description:m(b,19,"Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:m(b,20,"Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:m(b,21,"Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?Ir.OFF:e==="true"?Ir.ON:e:e?Ir.ON:Ir.OFF}};Ir.OFF='"liga" off, "calt" off',Ir.ON='"liga" on, "calt" on';let R1=Ir;const Mr=class Mr extends Ke{constructor(){super(54,"fontVariations",Mr.OFF,{anyOf:[{type:"boolean",description:m(b,22,"Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:m(b,23,"Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:m(b,24,"Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?Mr.OFF:e==="true"?Mr.TRANSLATE:e:e?Mr.TRANSLATE:Mr.OFF}compute(e,n,r){return e.fontInfo.fontVariationSettings}};Mr.OFF="normal",Mr.TRANSLATE="translate";let x1=Mr;class qw extends aa{constructor(){super(50)}compute(e,n,r){return e.fontInfo}}class jw extends Vs{constructor(){super(52,"fontSize",Wr.fontSize,{type:"number",minimum:6,maximum:100,default:Wr.fontSize,description:m(b,25,"Controls the font size in pixels.")})}validate(e){const n=ur.float(e,this.defaultValue);return n===0?Wr.fontSize:ur.clamp(n,6,100)}compute(e,n,r){return e.fontInfo.fontSize}}const pr=class pr extends Ke{constructor(){super(53,"fontWeight",Wr.fontWeight,{anyOf:[{type:"number",minimum:pr.MINIMUM_VALUE,maximum:pr.MAXIMUM_VALUE,errorMessage:m(b,26,'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:pr.SUGGESTION_VALUES}],default:Wr.fontWeight,description:m(b,27,'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(je.clampedInt(e,Wr.fontWeight,pr.MINIMUM_VALUE,pr.MAXIMUM_VALUE))}};pr.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],pr.MINIMUM_VALUE=1,pr.MAXIMUM_VALUE=1e3;let E1=pr;class Hw extends Ke{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},n={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[m(b,28,"Show Peek view of the results (default)"),m(b,29,"Go to the primary result and show a Peek view"),m(b,30,"Go to the primary result and enable Peek-less navigation to others")]},r=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:m(b,31,"This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:m(b,32,"Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleTypeDefinitions":{description:m(b,33,"Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleDeclarations":{description:m(b,34,"Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleImplementations":{description:m(b,35,"Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleReferences":{description:m(b,36,"Controls the behavior the 'Go to References'-command when multiple target locations exist."),...n},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:r,description:m(b,37,"Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:r,description:m(b,38,"Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:r,description:m(b,39,"Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:r,description:m(b,40,"Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:r,description:m(b,41,"Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{multiple:pt(n.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:n.multipleDefinitions??pt(n.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:n.multipleTypeDefinitions??pt(n.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:n.multipleDeclarations??pt(n.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:n.multipleImplementations??pt(n.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:n.multipleReferences??pt(n.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:on.string(n.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:on.string(n.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:on.string(n.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:on.string(n.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:on.string(n.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class Ww extends Ke{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:m(b,42,"Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:m(b,43,"Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:m(b,44,"Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:m(b,45,"Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:m(b,46,"Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Z(n.enabled,this.defaultValue.enabled),delay:je.clampedInt(n.delay,this.defaultValue.delay,0,1e4),sticky:Z(n.sticky,this.defaultValue.sticky),hidingDelay:je.clampedInt(n.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:Z(n.above,this.defaultValue.above)}}}class ko extends aa{constructor(){super(145)}compute(e,n,r){return ko.computeLayout(n,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const n=e.height/e.lineHeight,r=Math.floor(e.paddingTop/e.lineHeight);let i=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(i=Math.max(i,n-1));const s=(r+e.viewLineCount+i)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:n,extraLinesBeforeFirstLine:r,extraLinesBeyondLastLine:i,desiredRatio:s,minimapLineCount:o}}static _computeMinimapLayout(e,n){const r=e.outerWidth,i=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*i),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:i};const o=n.stableMinimapLayoutInput,a=o&&e.outerHeight===o.outerHeight&&e.lineHeight===o.lineHeight&&e.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&e.pixelRatio===o.pixelRatio&&e.scrollBeyondLastLine===o.scrollBeyondLastLine&&e.paddingTop===o.paddingTop&&e.paddingBottom===o.paddingBottom&&e.minimap.enabled===o.minimap.enabled&&e.minimap.side===o.minimap.side&&e.minimap.size===o.minimap.size&&e.minimap.showSlider===o.minimap.showSlider&&e.minimap.renderCharacters===o.minimap.renderCharacters&&e.minimap.maxColumn===o.minimap.maxColumn&&e.minimap.scale===o.minimap.scale&&e.verticalScrollbarWidth===o.verticalScrollbarWidth&&e.isViewportWrapping===o.isViewportWrapping,c=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,f=e.scrollBeyondLastLine,p=e.minimap.renderCharacters;let g=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const _=e.minimap.maxColumn,C=e.minimap.size,k=e.minimap.side,M=e.verticalScrollbarWidth,H=e.viewLineCount,K=e.remainingWidth,j=e.isViewportWrapping,B=p?2:3;let z=Math.floor(s*i);const ne=z/s;let G=!1,Y=!1,re=B*g,Le=g/s,$=1;if(C==="fill"||C==="fit"){const{typicalViewportLineCount:Me,extraLinesBeforeFirstLine:we,extraLinesBeyondLastLine:lt,desiredRatio:He,minimapLineCount:Pe}=ko.computeContainedMinimapLineCount({viewLineCount:H,scrollBeyondLastLine:f,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:i,lineHeight:c,pixelRatio:s});if(H/Pe>1)G=!0,Y=!0,g=1,re=1,Le=g/s;else{let Fe=!1,ot=g+1;if(C==="fit"){const Qe=Math.ceil((we+H+lt)*re);j&&a&&K<=n.stableFitRemainingWidth?(Fe=!0,ot=n.stableFitMaxMinimapScale):Fe=Qe>z}if(C==="fill"||Fe){G=!0;const Qe=g;re=Math.min(c*s,Math.max(1,Math.floor(1/He))),j&&a&&K<=n.stableFitRemainingWidth&&(ot=n.stableFitMaxMinimapScale),g=Math.min(ot,Math.max(1,Math.floor(re/B))),g>Qe&&($=Math.min(2,g/Qe)),Le=g/s/$,z=Math.ceil(Math.max(Me,we+H+lt)*re),j?(n.stableMinimapLayoutInput=e,n.stableFitRemainingWidth=K,n.stableFitMaxMinimapScale=g):(n.stableMinimapLayoutInput=null,n.stableFitRemainingWidth=0)}}}const P=Math.floor(_*Le),v=Math.min(P,Math.max(0,Math.floor((K-M-2)*Le/(l+Le)))+xw);let R=Math.floor(s*v);const I=R/s;R=Math.floor(R*$);const E=p?1:2,V=k==="left"?0:r-v-M;return{renderMinimap:E,minimapLeft:V,minimapWidth:v,minimapHeightIsEditorHeight:G,minimapIsSampling:Y,minimapScale:g,minimapLineHeight:re,minimapCanvasInnerWidth:R,minimapCanvasInnerHeight:z,minimapCanvasOuterWidth:I,minimapCanvasOuterHeight:ne}}static computeLayout(e,n){const r=n.outerWidth|0,i=n.outerHeight|0,s=n.lineHeight|0,o=n.lineNumbersDigitCount|0,a=n.typicalHalfwidthCharacterWidth,c=n.maxDigitWidth,l=n.pixelRatio,f=n.viewLineCount,p=e.get(137),g=p==="inherit"?e.get(136):p,_=g==="inherit"?e.get(132):g,C=e.get(135),k=n.isDominatedByLongLines,M=e.get(57),H=e.get(68).renderType!==0,K=e.get(69),j=e.get(105),B=e.get(84),z=e.get(73),ne=e.get(103),G=ne.verticalScrollbarSize,Y=ne.verticalHasArrows,re=ne.arrowSize,Le=ne.horizontalScrollbarSize,$=e.get(43),P=e.get(110)!=="never";let v=e.get(66);$&&P&&(v+=16);let R=0;if(H){const Je=Math.max(o,K);R=Math.round(Je*c)}let I=0;M&&(I=s*n.glyphMarginDecorationLaneCount);let E=0,V=E+I,Me=V+R,we=Me+v;const lt=r-I-R-v;let He=!1,Pe=!1,st=-1;g==="inherit"&&k?(He=!0,Pe=!0):_==="on"||_==="bounded"?Pe=!0:_==="wordWrapColumn"&&(st=C);const Fe=ko._computeMinimapLayout({outerWidth:r,outerHeight:i,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:l,scrollBeyondLastLine:j,paddingTop:B.top,paddingBottom:B.bottom,minimap:z,verticalScrollbarWidth:G,viewLineCount:f,remainingWidth:lt,isViewportWrapping:Pe},n.memory||new Ew);Fe.renderMinimap!==0&&Fe.minimapLeft===0&&(E+=Fe.minimapWidth,V+=Fe.minimapWidth,Me+=Fe.minimapWidth,we+=Fe.minimapWidth);const ot=lt-Fe.minimapWidth,Qe=Math.max(1,Math.floor((ot-G-2)/a)),Ft=Y?re:0;return Pe&&(st=Math.max(1,Qe),_==="bounded"&&(st=Math.min(st,C))),{width:r,height:i,glyphMarginLeft:E,glyphMarginWidth:I,glyphMarginDecorationLaneCount:n.glyphMarginDecorationLaneCount,lineNumbersLeft:V,lineNumbersWidth:R,decorationsLeft:Me,decorationsWidth:v,contentLeft:we,contentWidth:ot,minimap:Fe,viewportColumn:Qe,isWordWrapMinified:He,isViewportWrapping:Pe,wrappingColumn:st,verticalScrollbarWidth:G,horizontalScrollbarHeight:Le,overviewRuler:{top:Ft,width:G,height:i-2*Ft,right:0}}}}class Uw extends Ke{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[m(b,47,"Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),m(b,48,"Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:m(b,49,"Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return pt(e,"simple",["simple","advanced"])}compute(e,n,r){return n.get(2)===2?"advanced":r}}var Pr;(function(t){t.Off="off",t.OnCode="onCode",t.On="on"})(Pr||(Pr={}));class zw extends Ke{constructor(){const e={enabled:Pr.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[Pr.Off,Pr.OnCode,Pr.On],default:e.enabled,enumDescriptions:[m(b,50,"Disable the code action menu."),m(b,51,"Show the code action menu when the cursor is on lines with code."),m(b,52,"Show the code action menu when the cursor is on lines with code or on empty lines.")],description:m(b,53,"Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:pt(e.enabled,this.defaultValue.enabled,[Pr.Off,Pr.OnCode,Pr.On])}}}class Bw extends Ke{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:m(b,54,"Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:m(b,55,"Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:m(b,56,"Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:m(b,57,"Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Z(n.enabled,this.defaultValue.enabled),maxLineCount:je.clampedInt(n.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:pt(n.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:Z(n.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class Vw extends Ke{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:m(b,58,"Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[m(b,59,"Inlay hints are enabled"),m(b,60,"Inlay hints are showing by default and hide when holding {0}",Sr?"Ctrl+Option":"Ctrl+Alt"),m(b,61,"Inlay hints are hidden by default and show when holding {0}",Sr?"Ctrl+Option":"Ctrl+Alt"),m(b,62,"Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:m(b,63,"Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:m(b,64,"Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:m(b,65,"Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return typeof n.enabled=="boolean"&&(n.enabled=n.enabled?"on":"off"),{enabled:pt(n.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:je.clampedInt(n.fontSize,this.defaultValue.fontSize,0,100),fontFamily:on.string(n.fontFamily,this.defaultValue.fontFamily),padding:Z(n.padding,this.defaultValue.padding)}}}class Kw extends Ke{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):je.clampedInt(e,this.defaultValue,0,1e3)}compute(e,n,r){return r<0?je.clampedInt(-r*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):r}}class Gw extends ur{constructor(){super(67,"lineHeight",Wr.lineHeight,e=>ur.clamp(e,0,150),{markdownDescription:m(b,66,`Controls the line height.
|
|
110
|
+
| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return this._check(e)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,n){if(this._check(e))return this._advance();throw this._errExpectedButGot(n,this._peek())}_errExpectedButGot(e,n,i){const r=m(Ji,8,`Expected: {0}
|
|
111
|
+
Received: '{1}'.`,e,Or.getLexeme(n)),s=n.offset,o=Or.getLexeme(n);return this._parsingErrors.push({message:r,offset:s,lexeme:o,additionalInfo:i}),$r._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}};$r._parseError=new Error;let cf=$r;const wg=class wg{static false(){return cn.INSTANCE}static true(){return pn.INSTANCE}static has(e){return Qr.create(e)}static equals(e,n){return ta.create(e,n)}static notEquals(e,n){return na.create(e,n)}static regex(e,n){return Wo.create(e,n)}static in(e,n){return Wc.create(e,n)}static notIn(e,n){return Uc.create(e,n)}static not(e){return es.create(e)}static and(...e){return ir.create(e,null,!0)}static or(...e){return mi.create(e,null,!0)}static greater(e,n){return ia.create(e,n)}static greaterEquals(e,n){return ra.create(e,n)}static smaller(e,n){return sa.create(e,n)}static smallerEquals(e,n){return oa.create(e,n)}static deserialize(e){return e==null?void 0:this._parser.parse(e)}};wg._parser=new cf({regexParsingWithErrorRecovery:!1});let Xt=wg;function Do(t,e){return t.cmp(e)}const Tc=class Tc{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}map(e){return this}negate(){return pn.INSTANCE}};Tc.INSTANCE=new Tc;let cn=Tc;const kc=class kc{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}map(e){return this}negate(){return cn.INSTANCE}};kc.INSTANCE=new kc;let pn=kc;class Qr{static create(e,n=null){const i=Vt.get(e);return typeof i=="boolean"?i?pn.INSTANCE:cn.INSTANCE:new Qr(e,n)}constructor(e,n){this.key=e,this.negated=n,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:ty(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Vt.get(this.key);return typeof e=="boolean"?e?pn.INSTANCE:cn.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}map(e){return e.mapDefined(this.key)}negate(){return this.negated||(this.negated=es.create(this.key,this)),this.negated}}class ta{static create(e,n,i=null){if(typeof n=="boolean")return n?Qr.create(e,i):es.create(e,i);const r=Vt.get(e);return typeof r=="boolean"?n===(r?"true":"false")?pn.INSTANCE:cn.INSTANCE:new ta(e,n,i)}constructor(e,n,i){this.key=e,this.value=n,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Vt.get(this.key);if(typeof e=="boolean"){const n=e?"true":"false";return this.value===n?pn.INSTANCE:cn.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}map(e){return e.mapEquals(this.key,this.value)}negate(){return this.negated||(this.negated=na.create(this.key,this.value,this)),this.negated}}class Wc{static create(e,n){return new Wc(e,n)}constructor(e,n){this.key=e,this.valueKey=n,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type?this.key===e.key&&this.valueKey===e.valueKey:!1}substituteConstants(){return this}evaluate(e){const n=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(n)?n.includes(i):typeof i=="string"&&typeof n=="object"&&n!==null?Dv.call(n,i):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}map(e){return e.mapIn(this.key,this.valueKey)}negate(){return this.negated||(this.negated=Uc.create(this.key,this.valueKey)),this.negated}}class Uc{static create(e,n){return new Uc(e,n)}constructor(e,n){this.key=e,this.valueKey=n,this.type=11,this._negated=Wc.create(e,n)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type?this._negated.equals(e._negated):!1}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}map(e){return e.mapNotIn(this.key,this.valueKey)}negate(){return this._negated}}class na{static create(e,n,i=null){if(typeof n=="boolean")return n?es.create(e,i):Qr.create(e,i);const r=Vt.get(e);return typeof r=="boolean"?n===(r?"true":"false")?cn.INSTANCE:pn.INSTANCE:new na(e,n,i)}constructor(e,n,i){this.key=e,this.value=n,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Vt.get(this.key);if(typeof e=="boolean"){const n=e?"true":"false";return this.value===n?cn.INSTANCE:pn.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}map(e){return e.mapNotEquals(this.key,this.value)}negate(){return this.negated||(this.negated=ta.create(this.key,this.value,this)),this.negated}}class es{static create(e,n=null){const i=Vt.get(e);return typeof i=="boolean"?i?cn.INSTANCE:pn.INSTANCE:new es(e,n)}constructor(e,n){this.key=e,this.negated=n,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:ty(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Vt.get(this.key);return typeof e=="boolean"?e?cn.INSTANCE:pn.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}map(e){return e.mapNot(this.key)}negate(){return this.negated||(this.negated=Qr.create(this.key,this)),this.negated}}function zc(t,e){if(typeof t=="string"){const n=parseFloat(t);isNaN(n)||(t=n)}return typeof t=="string"||typeof t=="number"?e(t):cn.INSTANCE}class ia{static create(e,n,i=null){return zc(n,r=>new ia(e,r,i))}constructor(e,n,i){this.key=e,this.value=n,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}map(e){return e.mapGreater(this.key,this.value)}negate(){return this.negated||(this.negated=oa.create(this.key,this.value,this)),this.negated}}class ra{static create(e,n,i=null){return zc(n,r=>new ra(e,r,i))}constructor(e,n,i){this.key=e,this.value=n,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}map(e){return e.mapGreaterEquals(this.key,this.value)}negate(){return this.negated||(this.negated=sa.create(this.key,this.value,this)),this.negated}}class sa{static create(e,n,i=null){return zc(n,r=>new sa(e,r,i))}constructor(e,n,i){this.key=e,this.value=n,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}map(e){return e.mapSmaller(this.key,this.value)}negate(){return this.negated||(this.negated=ra.create(this.key,this.value,this)),this.negated}}class oa{static create(e,n,i=null){return zc(n,r=>new oa(e,r,i))}constructor(e,n,i){this.key=e,this.value=n,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}map(e){return e.mapSmallerEquals(this.key,this.value)}negate(){return this.negated||(this.negated=ia.create(this.key,this.value,this)),this.negated}}class Wo{static create(e,n){return new Wo(e,n)}constructor(e,n){this.key=e,this.regexp=n,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const n=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return n<i?-1:n>i?1:0}equals(e){if(e.type===this.type){const n=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&n===i}return!1}substituteConstants(){return this}evaluate(e){const n=e.getValue(this.key);return this.regexp?this.regexp.test(n):!1}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}map(e){return e.mapRegex(this.key,this.regexp)}negate(){return this.negated||(this.negated=ic.create(this)),this.negated}}class ic{static create(e){return new ic(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}map(e){return new ic(this._actual.map(e))}negate(){return this._actual}}function ey(t){let e=null;for(let n=0,i=t.length;n<i;n++){const r=t[n].substituteConstants();if(t[n]!==r&&e===null){e=[];for(let s=0;s<n;s++)e[s]=t[s]}e!==null&&(e[n]=r)}return e===null?t:e}class ir{static create(e,n,i){return ir._normalizeArr(e,n,i)}constructor(e,n){this.expr=e,this.negated=n,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let n=0,i=this.expr.length;n<i;n++){const r=Do(this.expr[n],e.expr[n]);if(r!==0)return r}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let n=0,i=this.expr.length;n<i;n++)if(!this.expr[n].equals(e.expr[n]))return!1;return!0}return!1}substituteConstants(){const e=ey(this.expr);return e===this.expr?this:ir.create(e,this.negated,!1)}evaluate(e){for(let n=0,i=this.expr.length;n<i;n++)if(!this.expr[n].evaluate(e))return!1;return!0}static _normalizeArr(e,n,i){const r=[];let s=!1;for(const o of e)if(o){if(o.type===1){s=!0;continue}if(o.type===0)return cn.INSTANCE;if(o.type===6){r.push(...o.expr);continue}r.push(o)}if(r.length===0&&s)return pn.INSTANCE;if(r.length!==0){if(r.length===1)return r[0];r.sort(Do);for(let o=1;o<r.length;o++)r[o-1].equals(r[o])&&(r.splice(o,1),o--);if(r.length===1)return r[0];for(;r.length>1;){const o=r[r.length-1];if(o.type!==9)break;r.pop();const a=r.pop(),c=r.length===0,l=mi.create(o.expr.map(f=>ir.create([f,a],null,i)),null,c);l&&(r.push(l),r.sort(Do))}if(r.length===1)return r[0];if(i){for(let o=0;o<r.length;o++)for(let a=o+1;a<r.length;a++)if(r[o].negate().equals(r[a]))return cn.INSTANCE;if(r.length===1)return r[0]}return new ir(r,n)}}serialize(){return this.expr.map(e=>e.serialize()).join(" && ")}keys(){const e=[];for(const n of this.expr)e.push(...n.keys());return e}map(e){return new ir(this.expr.map(n=>n.map(e)),null)}negate(){if(!this.negated){const e=[];for(const n of this.expr)e.push(n.negate());this.negated=mi.create(e,this,!0)}return this.negated}}class mi{static create(e,n,i){return mi._normalizeArr(e,n,i)}constructor(e,n){this.expr=e,this.negated=n,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let n=0,i=this.expr.length;n<i;n++){const r=Do(this.expr[n],e.expr[n]);if(r!==0)return r}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let n=0,i=this.expr.length;n<i;n++)if(!this.expr[n].equals(e.expr[n]))return!1;return!0}return!1}substituteConstants(){const e=ey(this.expr);return e===this.expr?this:mi.create(e,this.negated,!1)}evaluate(e){for(let n=0,i=this.expr.length;n<i;n++)if(this.expr[n].evaluate(e))return!0;return!1}static _normalizeArr(e,n,i){let r=[],s=!1;if(e){for(let o=0,a=e.length;o<a;o++){const c=e[o];if(c){if(c.type===0){s=!0;continue}if(c.type===1)return pn.INSTANCE;if(c.type===9){r=r.concat(c.expr);continue}r.push(c)}}if(r.length===0&&s)return cn.INSTANCE;r.sort(Do)}if(r.length!==0){if(r.length===1)return r[0];for(let o=1;o<r.length;o++)r[o-1].equals(r[o])&&(r.splice(o,1),o--);if(r.length===1)return r[0];if(i){for(let o=0;o<r.length;o++)for(let a=o+1;a<r.length;a++)if(r[o].negate().equals(r[a]))return pn.INSTANCE;if(r.length===1)return r[0]}return new mi(r,n)}}serialize(){return this.expr.map(e=>e.serialize()).join(" || ")}keys(){const e=[];for(const n of this.expr)e.push(...n.keys());return e}map(e){return new mi(this.expr.map(n=>n.map(e)),null)}negate(){if(!this.negated){const e=[];for(const n of this.expr)e.push(n.negate());for(;e.length>1;){const n=e.shift(),i=e.shift(),r=[];for(const s of Mm(n))for(const o of Mm(i))r.push(ir.create([s,o],null,!1));e.unshift(mi.create(r,null,!1))}this.negated=mi.create(e,this,!0)}return this.negated}}const ws=class ws extends Qr{static all(){return ws._info.values()}constructor(e,n,i){super(e,null),this._defaultValue=n,typeof i=="object"?ws._info.push({...i,key:e}):i!==!0&&ws._info.push({key:e,description:i,type:n!=null?typeof n:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return ta.create(this.key,e)}notEqualsTo(e){return na.create(this.key,e)}};ws._info=[];let ae=ws;function ty(t,e){return t<e?-1:t>e?1:0}function ts(t,e,n,i){return t<n?-1:t>n?1:e<i?-1:e>i?1:0}function Mm(t){return t.type===9?t.expr:[t]}var Ni;(function(t){t.serviceIds=new Map,t.DI_TARGET="$di$target",t.DI_DEPENDENCIES="$di$dependencies";function e(n){return n[t.DI_DEPENDENCIES]||[]}t.getServiceDependencies=e})(Ni||(Ni={}));Ov("instantiationService");function Mv(t,e,n){e[Ni.DI_TARGET]===e?e[Ni.DI_DEPENDENCIES].push({id:t,index:n}):(e[Ni.DI_DEPENDENCIES]=[{id:t,index:n}],e[Ni.DI_TARGET]=e)}function Ov(t){if(Ni.serviceIds.has(t))return Ni.serviceIds.get(t);const e=function(n,i,r){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");Mv(e,n,r)};return e.toString=()=>t,Ni.serviceIds.set(t,e),e}const lf=["W","X","Y","Z","a","b","c","d","e","f"],Fv=new RegExp(`^[${lf.join("")}]+`),ny=7;function Lv(t){if(t.scheme!==Ct.vscodeNotebookCell)return;const e=t.fragment.indexOf("s");if(e<0)return;const n=parseInt(t.fragment.substring(0,e).replace(Fv,""),ny),i=bv(t.fragment.substring(e+1)).toString();if(!isNaN(n))return{handle:n,notebook:t.with({scheme:i,fragment:null})}}function Nv(t,e){const n=e.toString(ny),r=`${n.length<lf.length?lf[n.length-1]:"z"}${n}s${Cv(An.fromString(t.scheme),!0,!0)}`;return t.with({scheme:Ct.vscodeNotebookCell,fragment:r})}var Om;(function(t){t[t.Markup=1]="Markup",t[t.Code=2]="Code"})(Om||(Om={}));zr.latex,zr.markdown,zr.text;zr.latex,zr.markdown,zr.text;var Fm;(function(t){t[t.Unconfirmed=1]="Unconfirmed",t[t.Pending=2]="Pending",t[t.Executing=3]="Executing"})(Fm||(Fm={}));var Lm;(function(t){t[t.Unconfirmed=1]="Unconfirmed",t[t.Pending=2]="Pending",t[t.Executing=3]="Executing"})(Lm||(Lm={}));var Nm;(function(t){t[t.ModelChange=1]="ModelChange",t[t.Move=2]="Move",t[t.ChangeCellLanguage=5]="ChangeCellLanguage",t[t.Initialize=6]="Initialize",t[t.ChangeCellMetadata=7]="ChangeCellMetadata",t[t.Output=8]="Output",t[t.OutputItem=9]="OutputItem",t[t.ChangeCellContent=10]="ChangeCellContent",t[t.ChangeDocumentMetadata=11]="ChangeDocumentMetadata",t[t.ChangeCellInternalMetadata=12]="ChangeCellInternalMetadata",t[t.ChangeCellMime=13]="ChangeCellMime",t[t.Unknown=100]="Unknown"})(Nm||(Nm={}));var $m;(function(t){t[t.Handle=0]="Handle",t[t.Index=1]="Index"})($m||($m={}));var qm;(function(t){t.scheme=Ct.vscodeNotebookCell;function e(a,c){return Nv(a,c)}t.generate=e;function n(a){return Lv(a)}t.parse=n;function i(a,c){return a.with({scheme:Ct.vscodeNotebookCellOutput,fragment:`op${c??""},${a.scheme!==Ct.file?a.scheme:""}`})}t.generateCellOutputUri=i;function r(a){if(a.scheme!==Ct.vscodeNotebookCellOutput)return;const c=/^op([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?\,(.*)$/i.exec(a.fragment);if(!c)return;const l=c[1]&&c[1]!==""?c[1]:void 0,f=c[2];return{outputId:l,notebook:a.with({scheme:f||Ct.file,fragment:null})}}t.parseCellOutputUri=r;function s(a,c,l){return t.generate(a,c).with({scheme:l})}t.generateCellPropertyUri=s;function o(a,c){if(a.scheme===c)return t.parse(a.with({scheme:t.scheme}))}t.parseCellPropertyUri=o})(qm||(qm={}));new ae("notebookEditorCursorAtBoundary","none");new ae("notebookEditorCursorAtLineBoundary","none");var jm;(function(t){t.default="default",t.option="option"})(jm||(jm={}));const Cs=class Cs{static create(e){return`${Cs._prefix}${e}`}static parse(e){if(e.startsWith(Cs._prefix))return e.substring(Cs._prefix.length)}};Cs._prefix="notebook/";let Hm=Cs;function $v(t){return["application/vnd.code.notebook.stdout","application/vnd.code.notebook.stderr"].includes(t)}new TextDecoder;const qv=`${String.fromCharCode(27)}[A`;qv.split("").map(t=>t.charCodeAt(0));var uf,Ir,xi,df,Er,nr,Pr,ff,hf,Ia,po,gf,di,fi,pf,wn,mf;function se(t){return Object.assign(t,{apply:function(...n){if(n.length===0)return Reflect.construct(t,[]);{const i=n.length===1?[]:n[1];return Reflect.construct(t,i,n[0].constructor)}},call:function(...n){if(n.length===0)return Reflect.construct(t,[]);{const[i,...r]=n;return Reflect.construct(t,r,i.constructor)}}})}var yf;(function(t){t[t.Top=0]="Top",t[t.Bottom=1]="Bottom"})(yf||(yf={}));var jr,p2;let bf=uf=(p2=class{constructor(e){ns(this,jr,void 0);da(this,jr,e)}static from(...e){let n=e;return new uf(function(){if(n){for(const i of n)i&&typeof i.dispose=="function"&&i.dispose();n=void 0}})}dispose(){typeof Dt(this,jr)=="function"&&(Dt(this,jr).call(this),da(this,jr,void 0))}},jr=new WeakMap,p2);bf=uf=re([se],bf);let rt=Ir=class{static Min(...e){if(e.length===0)throw new TypeError;let n=e[0];for(let i=1;i<e.length;i++){const r=e[i];r.isBefore(n)&&(n=r)}return n}static Max(...e){if(e.length===0)throw new TypeError;let n=e[0];for(let i=1;i<e.length;i++){const r=e[i];r.isAfter(n)&&(n=r)}return n}static isPosition(e){if(!e)return!1;if(e instanceof Ir)return!0;const{line:n,character:i}=e;return typeof n=="number"&&typeof i=="number"}static of(e){if(e instanceof Ir)return e;if(this.isPosition(e))return new Ir(e.line,e.character);throw new Error("Invalid argument, is NOT a position-like object")}get line(){return this._line}get character(){return this._character}constructor(e,n){if(e<0)throw Oe("line must be non-negative");if(n<0)throw Oe("character must be non-negative");this._line=e,this._character=n}isBefore(e){return this._line<e._line?!0:e._line<this._line?!1:this._character<e._character}isBeforeOrEqual(e){return this._line<e._line?!0:e._line<this._line?!1:this._character<=e._character}isAfter(e){return!this.isBeforeOrEqual(e)}isAfterOrEqual(e){return!this.isBefore(e)}isEqual(e){return this._line===e._line&&this._character===e._character}compareTo(e){return this._line<e._line?-1:this._line>e.line?1:this._character<e._character?-1:this._character>e._character?1:0}translate(e,n=0){if(e===null||n===null)throw Oe();let i;return typeof e>"u"?i=0:typeof e=="number"?i=e:(i=typeof e.lineDelta=="number"?e.lineDelta:0,n=typeof e.characterDelta=="number"?e.characterDelta:0),i===0&&n===0?this:new Ir(this.line+i,this.character+n)}with(e,n=this.character){if(e===null||n===null)throw Oe();let i;return typeof e>"u"?i=this.line:typeof e=="number"?i=e:(i=typeof e.line=="number"?e.line:this.line,n=typeof e.character=="number"?e.character:this.character),i===this.line&&n===this.character?this:new Ir(i,n)}toJSON(){return{line:this.line,character:this.character}}};rt=Ir=re([se],rt);let Mt=xi=class{static isRange(e){return e instanceof xi?!0:e?rt.isPosition(e.start)&&rt.isPosition(e.end):!1}static of(e){if(e instanceof xi)return e;if(this.isRange(e))return new xi(e.start,e.end);throw new Error("Invalid argument, is NOT a range-like object")}get start(){return this._start}get end(){return this._end}constructor(e,n,i,r){let s,o;if(typeof e=="number"&&typeof n=="number"&&typeof i=="number"&&typeof r=="number"?(s=new rt(e,n),o=new rt(i,r)):rt.isPosition(e)&&rt.isPosition(n)&&(s=rt.of(e),o=rt.of(n)),!s||!o)throw new Error("Invalid arguments");s.isBefore(o)?(this._start=s,this._end=o):(this._start=o,this._end=s)}contains(e){return xi.isRange(e)?this.contains(e.start)&&this.contains(e.end):rt.isPosition(e)?!(rt.of(e).isBefore(this._start)||this._end.isBefore(e)):!1}isEqual(e){return this._start.isEqual(e._start)&&this._end.isEqual(e._end)}intersection(e){const n=rt.Max(e.start,this._start),i=rt.Min(e.end,this._end);if(!n.isAfter(i))return new xi(n,i)}union(e){if(this.contains(e))return this;if(e.contains(this))return e;const n=rt.Min(e.start,this._start),i=rt.Max(e.end,this.end);return new xi(n,i)}get isEmpty(){return this._start.isEqual(this._end)}get isSingleLine(){return this._start.line===this._end.line}with(e,n=this.end){if(e===null||n===null)throw Oe();let i;return e?rt.isPosition(e)?i=e:(i=e.start||this.start,n=e.end||this.end):i=this.start,i.isEqual(this._start)&&n.isEqual(this.end)?this:new xi(i,n)}toJSON(){return[this.start,this.end]}};Mt=xi=re([se],Mt);let vf=df=class extends Mt{static isSelection(e){return e instanceof df?!0:e?Mt.isRange(e)&&rt.isPosition(e.anchor)&&rt.isPosition(e.active)&&typeof e.isReversed=="boolean":!1}get anchor(){return this._anchor}get active(){return this._active}constructor(e,n,i,r){let s,o;if(typeof e=="number"&&typeof n=="number"&&typeof i=="number"&&typeof r=="number"?(s=new rt(e,n),o=new rt(i,r)):rt.isPosition(e)&&rt.isPosition(n)&&(s=rt.of(e),o=rt.of(n)),!s||!o)throw new Error("Invalid arguments");super(s,o),this._anchor=s,this._active=o}get isReversed(){return this._anchor===this._end}toJSON(){return{start:this.start,end:this.end,active:this.active,anchor:this.anchor}}};vf=df=re([se],vf);const iy=t=>{if(typeof t!="string"||t.length===0||!/^[0-9A-Za-z_\-]+$/.test(t))throw Oe("connectionToken")};let jv=class{static isResolvedAuthority(e){return e&&typeof e=="object"&&typeof e.host=="string"&&typeof e.port=="number"&&(e.connectionToken===void 0||typeof e.connectionToken=="string")}constructor(e,n,i){if(typeof e!="string"||e.length===0)throw Oe("host");if(typeof n!="number"||n===0||Math.round(n)!==n)throw Oe("port");typeof i<"u"&&iy(i),this.host=e,this.port=Math.round(n),this.connectionToken=i}},Hv=class{static isManagedResolvedAuthority(e){return e&&typeof e=="object"&&typeof e.makeConnection=="function"&&(e.connectionToken===void 0||typeof e.connectionToken=="string")}constructor(e,n){this.makeConnection=e,this.connectionToken=n,typeof n<"u"&&iy(n)}},Wv=class Ea extends Error{static NotAvailable(e,n){return new Ea(e,_o.NotAvailable,n)}static TemporarilyNotAvailable(e){return new Ea(e,_o.TemporarilyNotAvailable)}constructor(e,n=_o.Unknown,i){super(e),this._message=e,this._code=n,this._detail=i,Object.setPrototypeOf(this,Ea.prototype)}};var wf;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(wf||(wf={}));var Cf;(function(t){t[t.Replace=1]="Replace",t[t.Append=2]="Append",t[t.Prepend=3]="Prepend"})(Cf||(Cf={}));let rc=Er=class{static isTextEdit(e){return e instanceof Er?!0:e?Mt.isRange(e)&&typeof e.newText=="string":!1}static replace(e,n){return new Er(e,n)}static insert(e,n){return Er.replace(new Mt(e,e),n)}static delete(e){return Er.replace(e,"")}static setEndOfLine(e){const n=new Er(new Mt(new rt(0,0),new rt(0,0)),"");return n.newEol=e,n}get range(){return this._range}set range(e){if(e&&!Mt.isRange(e))throw Oe("range");this._range=e}get newText(){return this._newText||""}set newText(e){if(e&&typeof e!="string")throw Oe("newText");this._newText=e}get newEol(){return this._newEol}set newEol(e){if(e&&typeof e!="number")throw Oe("newEol");this._newEol=e}constructor(e,n){this._range=e,this._newText=n}toJSON(){return{range:this.range,newText:this.newText,newEol:this._newEol}}};rc=Er=re([se],rc);let sc=nr=class{static isNotebookCellEdit(e){return e instanceof nr?!0:e?yo.isNotebookRange(e)&&Array.isArray(e.newCells):!1}static replaceCells(e,n){return new nr(e,n)}static insertCells(e,n){return new nr(new yo(e,e),n)}static deleteCells(e){return new nr(e,[])}static updateCellMetadata(e,n){const i=new nr(new yo(e,e),[]);return i.newCellMetadata=n,i}static updateNotebookMetadata(e){const n=new nr(new yo(0,0),[]);return n.newNotebookMetadata=e,n}constructor(e,n){this.range=e,this.newCells=n}};sc=nr=re([se],sc);let ry=class Pa{static isSnippetTextEdit(e){return e instanceof Pa?!0:e?Mt.isRange(e.range)&&oc.isSnippetString(e.snippet):!1}static replace(e,n){return new Pa(e,n)}static insert(e,n){return Pa.replace(new Mt(e,e),n)}constructor(e,n){this.range=e,this.snippet=n}},_f=class{constructor(){this._edits=[]}_allEntries(){return this._edits}renameFile(e,n,i,r){this._edits.push({_type:1,from:e,to:n,options:i,metadata:r})}createFile(e,n,i){this._edits.push({_type:1,from:void 0,to:e,options:n,metadata:i})}deleteFile(e,n,i){this._edits.push({_type:1,from:e,to:void 0,options:n,metadata:i})}replaceNotebookMetadata(e,n,i){this._edits.push({_type:3,metadata:i,uri:e,edit:{editType:5,metadata:n},notebookMetadata:n})}replaceNotebookCells(e,n,i,r){const s=n.start,o=n.end;(s!==o||i.length>0)&&this._edits.push({_type:5,uri:e,index:s,count:o-s,cells:i,metadata:r})}replaceNotebookCellMetadata(e,n,i,r){this._edits.push({_type:3,metadata:r,uri:e,edit:{editType:3,index:n,metadata:i}})}replace(e,n,i,r){this._edits.push({_type:2,uri:e,edit:new rc(n,i),metadata:r})}insert(e,n,i,r){this.replace(e,new Mt(n,n),i,r)}delete(e,n,i){this.replace(e,n,"",i)}has(e){return this._edits.some(n=>n._type===2&&n.uri.toString()===e.toString())}set(e,n){if(n)for(const i of n){if(!i)continue;let r,s;Array.isArray(i)?(r=i[0],s=i[1]):r=i,sc.isNotebookCellEdit(r)?r.newCellMetadata?this.replaceNotebookCellMetadata(e,r.range.start,r.newCellMetadata,s):r.newNotebookMetadata?this.replaceNotebookMetadata(e,r.newNotebookMetadata,s):this.replaceNotebookCells(e,r.range,r.newCells,s):ry.isSnippetTextEdit(r)?this._edits.push({_type:6,uri:e,range:r.range,edit:r.snippet,metadata:s}):this._edits.push({_type:2,uri:e,edit:r,metadata:s})}else{for(let i=0;i<this._edits.length;i++){const r=this._edits[i];switch(r._type){case 2:case 6:case 3:case 5:r.uri.toString()===e.toString()&&(this._edits[i]=void 0);break}}R4(this._edits)}}get(e){const n=[];for(const i of this._edits)i._type===2&&i.uri.toString()===e.toString()&&n.push(i.edit);return n}entries(){const e=new Ga;for(const n of this._edits)if(n._type===2){let i=e.get(n.uri);i||(i=[n.uri,[]],e.set(n.uri,i)),i[1].push(n.edit)}return[...e.values()]}get size(){return this.entries().length}toJSON(){return this.entries()}};_f=re([se],_f);let oc=Pr=class{static isSnippetString(e){return e instanceof Pr?!0:e?typeof e.value=="string":!1}static _escape(e){return e.replace(/\$|}|\\/g,"\\$&")}constructor(e){this._tabstop=1,this.value=e||""}appendText(e){return this.value+=Pr._escape(e),this}appendTabstop(e=this._tabstop++){return this.value+="$",this.value+=e,this}appendPlaceholder(e,n=this._tabstop++){if(typeof e=="function"){const i=new Pr;i._tabstop=this._tabstop,e(i),this._tabstop=i._tabstop,e=i.value}else e=Pr._escape(e);return this.value+="${",this.value+=n,this.value+=":",this.value+=e,this.value+="}",this}appendChoice(e,n=this._tabstop++){const i=e.map(r=>r.replaceAll(/[|\\,]/g,"\\$&")).join(",");return this.value+="${",this.value+=n,this.value+="|",this.value+=i,this.value+="|}",this}appendVariable(e,n){if(typeof n=="function"){const i=new Pr;i._tabstop=this._tabstop,n(i),this._tabstop=i._tabstop,n=i.value}else typeof n=="string"&&(n=n.replace(/\$|}/g,"\\$&"));return this.value+="${",this.value+=e,n&&(this.value+=":",this.value+=n),this.value+="}",this}};oc=Pr=re([se],oc);var Sf;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(Sf||(Sf={}));var Uo;(function(t){t[t.Hint=3]="Hint",t[t.Information=2]="Information",t[t.Warning=1]="Warning",t[t.Error=0]="Error"})(Uo||(Uo={}));let zo=ff=class{static isLocation(e){return e instanceof ff?!0:e?Mt.isRange(e.range)&&it.isUri(e.uri):!1}constructor(e,n){if(this.uri=e,n)if(Mt.isRange(n))this.range=Mt.of(n);else if(rt.isPosition(n))this.range=new Mt(n,n);else throw new Error("Illegal argument")}toJSON(){return{uri:this.uri,range:this.range}}};zo=ff=re([se],zo);let ac=class{static is(e){return e?typeof e.message=="string"&&e.location&&Mt.isRange(e.location.range)&&it.isUri(e.location.uri):!1}constructor(e,n){this.location=e,this.message=n}static isEqual(e,n){return e===n?!0:!e||!n?!1:e.message===n.message&&e.location.range.isEqual(n.location.range)&&e.location.uri.toString()===n.location.uri.toString()}};ac=re([se],ac);let Df=class{constructor(e,n,i=Uo.Error){if(!Mt.isRange(e))throw new TypeError("range must be set");if(!n)throw new TypeError("message must be set");this.range=e,this.message=n,this.severity=i}toJSON(){return{severity:Uo[this.severity],message:this.message,range:this.range,source:this.source,code:this.code}}static isEqual(e,n){return e===n?!0:!e||!n?!1:e.message===n.message&&e.severity===n.severity&&e.code===n.code&&e.severity===n.severity&&e.source===n.source&&e.range.isEqual(n.range)&&Bd(e.tags,n.tags)&&Bd(e.relatedInformation,n.relatedInformation,ac.isEqual)}};Df=re([se],Df);let cc=class{constructor(e,n){if(!e)throw new Error("Illegal argument, contents must be defined");Array.isArray(e)?this.contents=e:this.contents=[e],this.range=n}};cc=re([se],cc);let Wm=class extends cc{constructor(e,n,i,r){super(e,n),this.canIncreaseHover=i,this.canDecreaseHover=r}};Wm=re([se],Wm);var Um;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(Um||(Um={}));var Bo;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(Bo||(Bo={}));let Tf=class{constructor(e,n=Bo.Text){this.range=e,this.kind=n}toJSON(){return{range:this.range,kind:Bo[this.kind]}}};Tf=re([se],Tf);let kf=class{constructor(e,n){this.uri=e,this.highlights=n}toJSON(){return{uri:this.uri,highlights:this.highlights.map(e=>e.toJSON())}}};kf=re([se],kf);var lc;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(lc||(lc={}));var Rf;(function(t){t[t.Deprecated=1]="Deprecated"})(Rf||(Rf={}));let xf=hf=class{static validate(e){if(!e.name)throw new Error("name must not be falsy")}constructor(e,n,i,r,s){this.name=e,this.kind=n,this.containerName=s,typeof i=="string"&&(this.containerName=i),r instanceof zo?this.location=r:i instanceof Mt&&(this.location=new zo(r,i)),hf.validate(this)}toJSON(){return{name:this.name,kind:lc[this.kind],location:this.location,containerName:this.containerName}}};xf=hf=re([se],xf);let If=Ia=class{static validate(e){var n;if(!e.name)throw new Error("name must not be falsy");if(!e.range.contains(e.selectionRange))throw new Error("selectionRange must be contained in fullRange");(n=e.children)==null||n.forEach(Ia.validate)}constructor(e,n,i,r,s){this.name=e,this.detail=n,this.kind=i,this.range=r,this.selectionRange=s,this.children=[],Ia.validate(this)}};If=Ia=re([se],If);var Ef;(function(t){t[t.Invoke=1]="Invoke",t[t.Automatic=2]="Automatic"})(Ef||(Ef={}));let Pf=class{constructor(e,n){this.title=e,this.kind=n}};Pf=re([se],Pf);var Bs;let bt=(Bs=class{constructor(e){this.value=e}append(e){return new po(this.value?this.value+po.sep+e:e)}intersects(e){return this.contains(e)||e.contains(this)}contains(e){return this.value===e.value||e.value.startsWith(this.value+po.sep)}},po=Bs,Bs.sep=".",Bs);bt=po=re([se],bt);bt.Empty=new bt("");bt.QuickFix=bt.Empty.append("quickfix");bt.Refactor=bt.Empty.append("refactor");bt.RefactorExtract=bt.Refactor.append("extract");bt.RefactorInline=bt.Refactor.append("inline");bt.RefactorMove=bt.Refactor.append("move");bt.RefactorRewrite=bt.Refactor.append("rewrite");bt.Source=bt.Empty.append("source");bt.SourceOrganizeImports=bt.Source.append("organizeImports");bt.SourceFixAll=bt.Source.append("fixAll");bt.Notebook=bt.Empty.append("notebook");let Af=class{constructor(e,n){if(this.range=e,this.parent=n,n&&!n.range.contains(this.range))throw new Error("Invalid argument: parent must contain this range")}};Af=re([se],Af);let Uv=class{constructor(e,n,i,r,s,o){this.kind=e,this.name=n,this.detail=i,this.uri=r,this.range=s,this.selectionRange=o}},zv=class{constructor(e,n){this.fromRanges=n,this.from=e}},Bv=class{constructor(e,n){this.fromRanges=n,this.to=e}};var Mf;(function(t){t[t.Information=0]="Information",t[t.Warning=1]="Warning",t[t.Error=2]="Error"})(Mf||(Mf={}));let Of=class{constructor(e,n){this.range=e,this.command=n}get isResolved(){return!!this.command}};Of=re([se],Of);var rn,m2;let uc=gf=(m2=class{constructor(e,n=!1){ns(this,rn,void 0);da(this,rn,new nv(e,{supportThemeIcons:n}))}static isMarkdownString(e){return e instanceof gf?!0:e&&e.appendCodeblock&&e.appendMarkdown&&e.appendText&&e.value!==void 0}get value(){return Dt(this,rn).value}set value(e){Dt(this,rn).value=e}get isTrusted(){return Dt(this,rn).isTrusted}set isTrusted(e){Dt(this,rn).isTrusted=e}get supportThemeIcons(){return Dt(this,rn).supportThemeIcons}set supportThemeIcons(e){Dt(this,rn).supportThemeIcons=e}get supportHtml(){return Dt(this,rn).supportHtml}set supportHtml(e){Dt(this,rn).supportHtml=e}get baseUri(){return Dt(this,rn).baseUri}set baseUri(e){Dt(this,rn).baseUri=e}appendText(e){return Dt(this,rn).appendText(e),this}appendMarkdown(e){return Dt(this,rn).appendMarkdown(e),this}appendCodeblock(e,n){return Dt(this,rn).appendCodeblock(n??"",e),this}},rn=new WeakMap,m2);uc=gf=re([se],uc);let Ff=class{constructor(e,n){this.label=e,this.documentation=n}};Ff=re([se],Ff);let Lf=class{constructor(e,n){this.label=e,this.documentation=n,this.parameters=[]}};Lf=re([se],Lf);let Nf=class{constructor(){this.activeSignature=0,this.activeParameter=0,this.signatures=[]}};Nf=re([se],Nf);var $f;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})($f||($f={}));var qf;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(qf||(qf={}));let jf=class{constructor(e){this.value=e}};jf=re([se],jf);let Hf=class{constructor(e,n,i){this.position=e,this.label=n,this.kind=i}};Hf=re([se],Hf);var Wf;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Wf||(Wf={}));var dc;(function(t){t[t.Text=0]="Text",t[t.Method=1]="Method",t[t.Function=2]="Function",t[t.Constructor=3]="Constructor",t[t.Field=4]="Field",t[t.Variable=5]="Variable",t[t.Class=6]="Class",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Unit=10]="Unit",t[t.Value=11]="Value",t[t.Enum=12]="Enum",t[t.Keyword=13]="Keyword",t[t.Snippet=14]="Snippet",t[t.Color=15]="Color",t[t.File=16]="File",t[t.Reference=17]="Reference",t[t.Folder=18]="Folder",t[t.EnumMember=19]="EnumMember",t[t.Constant=20]="Constant",t[t.Struct=21]="Struct",t[t.Event=22]="Event",t[t.Operator=23]="Operator",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue"})(dc||(dc={}));var Uf;(function(t){t[t.Deprecated=1]="Deprecated"})(Uf||(Uf={}));let zf=class{constructor(e,n){this.label=e,this.kind=n}toJSON(){return{label:this.label,kind:this.kind&&dc[this.kind],detail:this.detail,documentation:this.documentation,sortText:this.sortText,filterText:this.filterText,preselect:this.preselect,insertText:this.insertText,textEdit:this.textEdit}}};zf=re([se],zf);let Bf=class{constructor(e=[],n=!1){this.items=e,this.isIncomplete=n}};Bf=re([se],Bf);let Vf=class{constructor(e,n,i){this.insertText=e,this.range=n,this.command=i}};Vf=re([se],Vf);let Kf=class{constructor(e){this.commands=void 0,this.suppressSuggestions=void 0,this.items=e}};Kf=re([se],Kf);var zm;(function(t){t[t.Unknown=0]="Unknown",t[t.Word=1]="Word",t[t.Line=2]="Line",t[t.Suggest=3]="Suggest"})(zm||(zm={}));var Gf;(function(t){t[t.Active=-1]="Active",t[t.Beside=-2]="Beside",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Three=3]="Three",t[t.Four=4]="Four",t[t.Five=5]="Five",t[t.Six=6]="Six",t[t.Seven=7]="Seven",t[t.Eight=8]="Eight",t[t.Nine=9]="Nine"})(Gf||(Gf={}));var Jf;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(Jf||(Jf={}));var Xf;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval"})(Xf||(Xf={}));var Zf;(function(t){t[t.Manual=1]="Manual",t[t.AfterDelay=2]="AfterDelay",t[t.FocusOut=3]="FocusOut"})(Zf||(Zf={}));var Yf;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(Yf||(Yf={}));var Vo;(function(t){t[t.Keyboard=1]="Keyboard",t[t.Mouse=2]="Mouse",t[t.Command=3]="Command"})(Vo||(Vo={}));var Qf;(function(t){t[t.Undo=1]="Undo",t[t.Redo=2]="Redo"})(Qf||(Qf={}));var eh;(function(t){t[t.OpenOpen=0]="OpenOpen",t[t.ClosedClosed=1]="ClosedClosed",t[t.OpenClosed=2]="OpenClosed",t[t.ClosedOpen=3]="ClosedOpen"})(eh||(eh={}));(function(t){function e(n){switch(n){case"keyboard":return t.Keyboard;case"mouse":return t.Mouse;case"api":return t.Command}}t.fromValue=e})(Vo||(Vo={}));var Ko;(function(t){t[t.Other=0]="Other",t[t.Comment=1]="Comment",t[t.String=2]="String",t[t.RegEx=3]="RegEx"})(Ko||(Ko={}));(function(t){function e(n){switch(n){case t.Other:return"other";case t.Comment:return"comment";case t.String:return"string";case t.RegEx:return"regex"}return"other"}t.toString=e})(Ko||(Ko={}));let th=class{constructor(e,n){if(n&&!it.isUri(n))throw Oe("target");if(!Mt.isRange(e)||e.isEmpty)throw Oe("range");this.range=e,this.target=n}};th=re([se],th);let fc=class{constructor(e,n,i,r){this.red=e,this.green=n,this.blue=i,this.alpha=r}};fc=re([se],fc);let nh=class{constructor(e,n){if(n&&!(n instanceof fc))throw Oe("color");if(!Mt.isRange(e)||e.isEmpty)throw Oe("range");this.range=e,this.color=n}};nh=re([se],nh);let ih=class{constructor(e){if(!e||typeof e!="string")throw Oe("label");this.label=e}};ih=re([se],ih);var rh;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Information=2]="Information"})(rh||(rh={}));var sh;(function(t){t[t.Unknown=0]="Unknown",t[t.Shutdown=1]="Shutdown",t[t.Process=2]="Process",t[t.User=3]="User",t[t.Extension=4]="Extension"})(sh||(sh={}));var Bm;(function(t){t[t.Low=0]="Low",t[t.Medium=1]="Medium",t[t.High=2]="High"})(Bm||(Bm={}));let Vv=class{constructor(e,n,i){if(this.startIndex=e,this.length=n,this.tooltip=i,typeof e!="number"||e<0)throw Oe("startIndex");if(typeof n!="number"||n<1)throw Oe("length");if(i!==void 0&&typeof i!="string")throw Oe("tooltip")}},Kv=class{constructor(e){this.uri=e}};class Gv{constructor(e){this.terminalCommand=e}}var oh;(function(t){t[t.Panel=1]="Panel",t[t.Editor=2]="Editor"})(oh||(oh={}));let Jv=class{constructor(e){if(this.options=e,typeof e!="object")throw Oe("options")}};var ah;(function(t){t[t.Always=1]="Always",t[t.Silent=2]="Silent",t[t.Never=3]="Never"})(ah||(ah={}));var ch;(function(t){t[t.Shared=1]="Shared",t[t.Dedicated=2]="Dedicated",t[t.New=3]="New"})(ch||(ch={}));var Fi;let lh=(Fi=class{static from(e){switch(e){case"clean":return di.Clean;case"build":return di.Build;case"rebuild":return di.Rebuild;case"test":return di.Test;default:return}}constructor(e,n){if(this.label=n,typeof e!="string"||typeof n!="string")throw Oe("name");this._id=e}get id(){return this._id}},di=Fi,Fi.Clean=new di("clean","Clean"),Fi.Build=new di("build","Build"),Fi.Rebuild=new di("rebuild","Rebuild"),Fi.Test=new di("test","Test"),Fi);lh=di=re([se],lh);function sy(t){let e="";for(let n=0;n<t.length;n++)e+=t[n].replace(/,/g,",,")+",";return e}let hc=class{constructor(e,n,i){if(typeof e!="string")throw Oe("process");this._args=[],this._process=e,n!==void 0&&(Array.isArray(n)?(this._args=n,this._options=i):this._options=n)}get process(){return this._process}set process(e){if(typeof e!="string")throw Oe("process");this._process=e}get args(){return this._args}set args(e){Array.isArray(e)||(e=[]),this._args=e}get options(){return this._options}set options(e){this._options=e}computeId(){const e=[];if(e.push("process"),this._process!==void 0&&e.push(this._process),this._args&&this._args.length>0)for(const n of this._args)e.push(n);return sy(e)}};hc=re([se],hc);let gc=class{constructor(e,n,i){if(this._args=[],Array.isArray(n)){if(!e)throw Oe("command can't be undefined or null");if(typeof e!="string"&&typeof e.value!="string")throw Oe("command");this._command=e,this._args=n,this._options=i}else{if(typeof e!="string")throw Oe("commandLine");this._commandLine=e,this._options=n}}get commandLine(){return this._commandLine}set commandLine(e){if(typeof e!="string")throw Oe("commandLine");this._commandLine=e}get command(){return this._command?this._command:""}set command(e){if(typeof e!="string"&&typeof e.value!="string")throw Oe("command");this._command=e}get args(){return this._args}set args(e){this._args=e||[]}get options(){return this._options}set options(e){this._options=e}computeId(){const e=[];if(e.push("shell"),this._commandLine!==void 0&&e.push(this._commandLine),this._command!==void 0&&e.push(typeof this._command=="string"?this._command:this._command.value),this._args&&this._args.length>0)for(const n of this._args)e.push(typeof n=="string"?n:n.value);return sy(e)}};gc=re([se],gc);var uh;(function(t){t[t.Escape=1]="Escape",t[t.Strong=2]="Strong",t[t.Weak=3]="Weak"})(uh||(uh={}));var Go;(function(t){t[t.Global=1]="Global",t[t.Workspace=2]="Workspace"})(Go||(Go={}));let oy=class{constructor(e){this._callback=e}computeId(){return"customExecution"+Hc()}set callback(e){this._callback=e}get callback(){return this._callback}};var Li;let dh=(Li=class{constructor(e,n,i,r,s,o){this.__deprecated=!1,this._definition=this.definition=e;let a;typeof n=="string"?(this._name=this.name=n,this._source=this.source=i,this.execution=r,a=s,this.__deprecated=!0):n===Go.Global||n===Go.Workspace?(this.target=n,this._name=this.name=i,this._source=this.source=r,this.execution=s,a=o):(this.target=n,this._name=this.name=i,this._source=this.source=r,this.execution=s,a=o),typeof a=="string"?(this._problemMatchers=[a],this._hasDefinedMatchers=!0):Array.isArray(a)?(this._problemMatchers=a,this._hasDefinedMatchers=!0):(this._problemMatchers=[],this._hasDefinedMatchers=!1),this._isBackground=!1,this._presentationOptions=Object.create(null),this._runOptions=Object.create(null)}get _id(){return this.__id}set _id(e){this.__id=e}get _deprecated(){return this.__deprecated}clear(){this.__id!==void 0&&(this.__id=void 0,this._scope=void 0,this.computeDefinitionBasedOnExecution())}computeDefinitionBasedOnExecution(){this._execution instanceof hc?this._definition={type:fi.ProcessType,id:this._execution.computeId()}:this._execution instanceof gc?this._definition={type:fi.ShellType,id:this._execution.computeId()}:this._execution instanceof oy?this._definition={type:fi.ExtensionCallbackType,id:this._execution.computeId()}:this._definition={type:fi.EmptyType,id:Hc()}}get definition(){return this._definition}set definition(e){if(e==null)throw Oe("Kind can't be undefined or null");this.clear(),this._definition=e}get scope(){return this._scope}set target(e){this.clear(),this._scope=e}get name(){return this._name}set name(e){if(typeof e!="string")throw Oe("name");this.clear(),this._name=e}get execution(){return this._execution}set execution(e){e===null&&(e=void 0),this.clear(),this._execution=e;const n=this._definition.type;(fi.EmptyType===n||fi.ProcessType===n||fi.ShellType===n||fi.ExtensionCallbackType===n)&&this.computeDefinitionBasedOnExecution()}get problemMatchers(){return this._problemMatchers}set problemMatchers(e){if(Array.isArray(e))this.clear(),this._problemMatchers=e,this._hasDefinedMatchers=!0;else{this.clear(),this._problemMatchers=[],this._hasDefinedMatchers=!1;return}}get hasDefinedMatchers(){return this._hasDefinedMatchers}get isBackground(){return this._isBackground}set isBackground(e){e!==!0&&e!==!1&&(e=!1),this.clear(),this._isBackground=e}get source(){return this._source}set source(e){if(typeof e!="string"||e.length===0)throw Oe("source must be a string of length > 0");this.clear(),this._source=e}get group(){return this._group}set group(e){e===null&&(e=void 0),this.clear(),this._group=e}get detail(){return this._detail}set detail(e){e===null&&(e=void 0),this._detail=e}get presentationOptions(){return this._presentationOptions}set presentationOptions(e){e==null&&(e=Object.create(null)),this.clear(),this._presentationOptions=e}get runOptions(){return this._runOptions}set runOptions(e){e==null&&(e=Object.create(null)),this.clear(),this._runOptions=e}},fi=Li,Li.ExtensionCallbackType="customExecution",Li.ProcessType="process",Li.ShellType="shell",Li.EmptyType="$empty",Li);dh=fi=re([se],dh);var fh;(function(t){t[t.SourceControl=1]="SourceControl",t[t.Window=10]="Window",t[t.Notification=15]="Notification"})(fh||(fh={}));var Vm;(function(t){function e(n){const i=n;return Co(i.value)?i.tooltip&&!jn(i.tooltip)?(console.log("INVALID view badge, invalid tooltip",i.tooltip),!1):!0:(console.log("INVALID view badge, invalid value",i.value),!1)}t.isViewBadge=e})(Vm||(Vm={}));let hh=pf=class{static isTreeItem(e,n){var r,s;const i=e;if(i.checkboxState!==void 0){const o=Co(i.checkboxState)?i.checkboxState:hm(i.checkboxState)&&Co(i.checkboxState.state)?i.checkboxState.state:void 0,a=!Co(i.checkboxState)&&hm(i.checkboxState)?i.checkboxState.tooltip:void 0;if(o===void 0||o!==Jo.Checked&&o!==Jo.Unchecked||a!==void 0&&!jn(a))return console.log("INVALID tree item, invalid checkboxState",i.checkboxState),!1}if(e instanceof pf)return!0;if(i.label!==void 0&&!jn(i.label)&&!((r=i.label)!=null&&r.label))return console.log("INVALID tree item, invalid label",i.label),!1;if(i.id!==void 0&&!jn(i.id))return console.log("INVALID tree item, invalid id",i.id),!1;if(i.iconPath!==void 0&&!jn(i.iconPath)&&!it.isUri(i.iconPath)&&(!i.iconPath||!jn(i.iconPath.id))){const o=i.iconPath;if(!o||!jn(o.light)&&!it.isUri(o.light)&&!jn(o.dark)&&!it.isUri(o.dark))return console.log("INVALID tree item, invalid iconPath",i.iconPath),!1}return i.description!==void 0&&!jn(i.description)&&typeof i.description!="boolean"?(console.log("INVALID tree item, invalid description",i.description),!1):i.resourceUri!==void 0&&!it.isUri(i.resourceUri)?(console.log("INVALID tree item, invalid resourceUri",i.resourceUri),!1):i.tooltip!==void 0&&!jn(i.tooltip)&&!(i.tooltip instanceof uc)?(console.log("INVALID tree item, invalid tooltip",i.tooltip),!1):i.command!==void 0&&!i.command.command?(console.log("INVALID tree item, invalid command",i.command),!1):i.collapsibleState!==void 0&&i.collapsibleState<Ds.None&&i.collapsibleState>Ds.Expanded?(console.log("INVALID tree item, invalid collapsibleState",i.collapsibleState),!1):i.contextValue!==void 0&&!jn(i.contextValue)?(console.log("INVALID tree item, invalid contextValue",i.contextValue),!1):i.accessibilityInformation!==void 0&&!((s=i.accessibilityInformation)!=null&&s.label)?(console.log("INVALID tree item, invalid accessibilityInformation",i.accessibilityInformation),!1):!0}constructor(e,n=Ds.None){this.collapsibleState=n,it.isUri(e)?this.resourceUri=e:this.label=e}};hh=pf=re([se],hh);var Ds;(function(t){t[t.None=0]="None",t[t.Collapsed=1]="Collapsed",t[t.Expanded=2]="Expanded"})(Ds||(Ds={}));var Jo;(function(t){t[t.Unchecked=0]="Unchecked",t[t.Checked=1]="Checked"})(Jo||(Jo={}));let gh=class{async asString(){return typeof this.value=="string"?this.value:JSON.stringify(this.value)}asFile(){}constructor(e){this.value=e}};gh=re([se],gh);var Oi,Hr,mo,y2;let ph=(y2=class{constructor(e){ns(this,Hr);ns(this,Oi,new Map);for(const[n,i]of e??[]){const r=Dt(this,Oi).get(Js(this,Hr,mo).call(this,n));r?r.push(i):Dt(this,Oi).set(Js(this,Hr,mo).call(this,n),[i])}}get(e){var n;return(n=Dt(this,Oi).get(Js(this,Hr,mo).call(this,e)))==null?void 0:n[0]}set(e,n){Dt(this,Oi).set(Js(this,Hr,mo).call(this,e),[n])}forEach(e,n){for(const[i,r]of Dt(this,Oi))for(const s of r)e.call(n,s,i,this)}*[Symbol.iterator](){for(const[e,n]of Dt(this,Oi))for(const i of n)yield[e,i]}},Oi=new WeakMap,Hr=new WeakSet,mo=function(e){return e.toLowerCase()},y2);ph=re([se],ph);let mh=class{constructor(e,n,i){this.insertText=e,this.title=n,this.kind=i}};mh=re([se],mh);var Km;(function(t){t[t.Automatic=0]="Automatic",t[t.PasteAs=1]="PasteAs"})(Km||(Km={}));const _s=class _s{constructor(e){this.value=e}append(...e){return new _s((this.value?[this.value,...e]:e).join(_s.sep))}intersects(e){return this.contains(e)||e.contains(this)}contains(e){return this.value===e.value||e.value.startsWith(this.value+_s.sep)}};_s.sep=".";let pc=_s;pc.Empty=new pc("");let Xv=class{constructor(e,n,i){this.title=n,this.insertText=e,this.kind=i}},Ki=class{constructor(e,n){this.id=e,this.color=n}static isThemeIcon(e){return typeof e.id!="string"?(console.log("INVALID ThemeIcon, invalid id",e.id),!1):!0}};Ki=re([se],Ki);Ki.File=new Ki("file");Ki.Folder=new Ki("folder");let yh=class{constructor(e){this.id=e}};yh=re([se],yh);var bh;(function(t){t[t.Global=1]="Global",t[t.Workspace=2]="Workspace",t[t.WorkspaceFolder=3]="WorkspaceFolder"})(bh||(bh={}));let vh=class{get base(){return this._base}set base(e){this._base=e,this._baseUri=it.file(e)}get baseUri(){return this._baseUri}set baseUri(e){this._baseUri=e,this._base=e.fsPath}constructor(e,n){if(typeof e!="string"&&(!e||!it.isUri(e)&&!it.isUri(e.uri)))throw Oe("base");if(typeof n!="string")throw Oe("pattern");typeof e=="string"?this.baseUri=it.file(e):it.isUri(e)?this.baseUri=e:this.baseUri=e.uri,this.pattern=n}toJSON(){return{pattern:this.pattern,base:this.base,baseUri:this.baseUri.toJSON()}}};vh=re([se],vh);const Zv=new WeakMap;let Ws=class{constructor(e,n,i,r,s){this.enabled=typeof e=="boolean"?e:!0,typeof n=="string"&&(this.condition=n),typeof i=="string"&&(this.hitCondition=i),typeof r=="string"&&(this.logMessage=r),typeof s=="string"&&(this.mode=s)}get id(){return this._id||(this._id=Zv.get(this)??Hc()),this._id}};Ws=re([se],Ws);let wh=class extends Ws{constructor(e,n,i,r,s,o){if(super(n,i,r,s,o),e===null)throw Oe("location");this.location=e}};wh=re([se],wh);let Ch=class extends Ws{constructor(e,n,i,r,s,o){super(n,i,r,s,o),this.functionName=e}};Ch=re([se],Ch);let Gm=class extends Ws{constructor(e,n,i,r,s,o,a,c){if(super(r,s,o,a,c),!n)throw Oe("dataId");this.label=e,this.dataId=n,this.canPersist=i}};Gm=re([se],Gm);let _h=class{constructor(e,n,i){this.command=e,this.args=n||[],this.options=i}};_h=re([se],_h);let Sh=class{constructor(e,n){this.port=e,this.host=n}};Sh=re([se],Sh);let Dh=class{constructor(e){this.path=e}};Dh=re([se],Dh);let Th=class{constructor(e){this.implementation=e}};Th=re([se],Th);let kh=class{constructor(e,n){this.range=e,this.expression=n}};kh=re([se],kh);var Rh;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(Rh||(Rh={}));let xh=class{constructor(e,n){this.range=e,this.text=n}};xh=re([se],xh);let Ih=class{constructor(e,n,i=!0){this.range=e,this.variableName=n,this.caseSensitiveLookup=i}};Ih=re([se],Ih);let Eh=class{constructor(e,n){this.range=e,this.expression=n}};Eh=re([se],Eh);let Jm=class{constructor(e,n){this.frameId=e,this.stoppedLocation=n}};Jm=re([se],Jm);var Xm;(function(t){t[t.AIGenerated=1]="AIGenerated"})(Xm||(Xm={}));var Zm;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(Zm||(Zm={}));var Ph;(function(t){t[t.Changed=1]="Changed",t[t.Created=2]="Created",t[t.Deleted=3]="Deleted"})(Ph||(Ph={}));let Ah=wn=class extends Error{static FileExists(e){return new wn(e,Ii.FileExists,wn.FileExists)}static FileNotFound(e){return new wn(e,Ii.FileNotFound,wn.FileNotFound)}static FileNotADirectory(e){return new wn(e,Ii.FileNotADirectory,wn.FileNotADirectory)}static FileIsADirectory(e){return new wn(e,Ii.FileIsADirectory,wn.FileIsADirectory)}static NoPermissions(e){return new wn(e,Ii.NoPermissions,wn.NoPermissions)}static Unavailable(e){return new wn(e,Ii.Unavailable,wn.Unavailable)}constructor(e,n=Ii.Unknown,i){super(it.isUri(e)?e.toString(!0):e),this.code=(i==null?void 0:i.name)??"Unknown",lv(this,n),Object.setPrototypeOf(this,wn.prototype),typeof Error.captureStackTrace=="function"&&typeof i=="function"&&Error.captureStackTrace(this,i)}};Ah=wn=re([se],Ah);let Mh=class{constructor(e,n,i){this.start=e,this.end=n,this.kind=i}};Mh=re([se],Mh);var Oh;(function(t){t[t.Comment=1]="Comment",t[t.Imports=2]="Imports",t[t.Region=3]="Region"})(Oh||(Oh={}));var Fh;(function(t){t[t.Collapsed=0]="Collapsed",t[t.Expanded=1]="Expanded"})(Fh||(Fh={}));var Lh;(function(t){t[t.Editing=0]="Editing",t[t.Preview=1]="Preview"})(Lh||(Lh={}));var Nh;(function(t){t[t.Published=0]="Published",t[t.Draft=1]="Draft"})(Nh||(Nh={}));var $h;(function(t){t[t.Unresolved=0]="Unresolved",t[t.Resolved=1]="Resolved"})($h||($h={}));var Ym;(function(t){t[t.Current=0]="Current",t[t.Outdated=1]="Outdated"})(Ym||(Ym={}));let Yv=class{constructor(e,n=[]){this.tokenTypes=e,this.tokenModifiers=n}};function Qv(t){return typeof t>"u"||c5(t)}let ew=class ay{constructor(e){if(this._prevLine=0,this._prevChar=0,this._dataIsSortedAndDeltaEncoded=!0,this._data=[],this._dataLen=0,this._tokenTypeStrToInt=new Map,this._tokenModifierStrToInt=new Map,this._hasLegend=!1,e){this._hasLegend=!0;for(let n=0,i=e.tokenTypes.length;n<i;n++)this._tokenTypeStrToInt.set(e.tokenTypes[n],n);for(let n=0,i=e.tokenModifiers.length;n<i;n++)this._tokenModifierStrToInt.set(e.tokenModifiers[n],n)}}push(e,n,i,r,s){if(typeof e=="number"&&typeof n=="number"&&typeof i=="number"&&typeof r=="number"&&(typeof s=="number"||typeof s>"u"))return typeof s>"u"&&(s=0),this._pushEncoded(e,n,i,r,s);if(Mt.isRange(e)&&typeof n=="string"&&Qv(i))return this._push(e,n,i);throw Oe()}_push(e,n,i){if(!this._hasLegend)throw new Error("Legend must be provided in constructor");if(e.start.line!==e.end.line)throw new Error("`range` cannot span multiple lines");if(!this._tokenTypeStrToInt.has(n))throw new Error("`tokenType` is not in the provided legend");const r=e.start.line,s=e.start.character,o=e.end.character-e.start.character,a=this._tokenTypeStrToInt.get(n);let c=0;if(i)for(const l of i){if(!this._tokenModifierStrToInt.has(l))throw new Error("`tokenModifier` is not in the provided legend");const f=this._tokenModifierStrToInt.get(l);c|=1<<f>>>0}this._pushEncoded(r,s,o,a,c)}_pushEncoded(e,n,i,r,s){if(this._dataIsSortedAndDeltaEncoded&&(e<this._prevLine||e===this._prevLine&&n<this._prevChar)){this._dataIsSortedAndDeltaEncoded=!1;const c=this._data.length/5|0;let l=0,f=0;for(let g=0;g<c;g++){let p=this._data[5*g],_=this._data[5*g+1];p===0?(p=l,_+=f):p+=l,this._data[5*g]=p,this._data[5*g+1]=_,l=p,f=_}}let o=e,a=n;this._dataIsSortedAndDeltaEncoded&&this._dataLen>0&&(o-=this._prevLine,o===0&&(a-=this._prevChar)),this._data[this._dataLen++]=o,this._data[this._dataLen++]=a,this._data[this._dataLen++]=i,this._data[this._dataLen++]=r,this._data[this._dataLen++]=s,this._prevLine=e,this._prevChar=n}static _sortAndDeltaEncode(e){const n=[],i=e.length/5|0;for(let a=0;a<i;a++)n[a]=a;n.sort((a,c)=>{const l=e[5*a],f=e[5*c];if(l===f){const g=e[5*a+1],p=e[5*c+1];return g-p}return l-f});const r=new Uint32Array(e.length);let s=0,o=0;for(let a=0;a<i;a++){const c=5*n[a],l=e[c+0],f=e[c+1],g=e[c+2],p=e[c+3],_=e[c+4],C=l-s,k=C===0?f-o:f,A=5*a;r[A+0]=C,r[A+1]=k,r[A+2]=g,r[A+3]=p,r[A+4]=_,s=l,o=f}return r}build(e){return this._dataIsSortedAndDeltaEncoded?new qh(new Uint32Array(this._data),e):new qh(ay._sortAndDeltaEncode(this._data),e)}},qh=class{constructor(e,n){this.resultId=n,this.data=e}},tw=class{constructor(e,n,i){this.start=e,this.deleteCount=n,this.data=i}},nw=class{constructor(e,n){this.resultId=n,this.edits=e}};var jh;(function(t){t[t.Separate=0]="Separate",t[t.MergeWithParent=1]="MergeWithParent"})(jh||(jh={}));let iw=class{constructor(e){this.name=e}};var Yo;let Hh=(Yo=class{constructor(){}},Yo.Back={iconPath:new Ki("arrow-left")},Yo);Hh=re([se],Hh);var Wh;(function(t){t[t.Separator=-1]="Separator",t[t.Default=0]="Default"})(Wh||(Wh={}));var Uh;(function(t){t[t.Info=1]="Info",t[t.Warning=2]="Warning",t[t.Error=3]="Error"})(Uh||(Uh={}));var zh;(function(t){t[t.UI=1]="UI",t[t.Workspace=2]="Workspace"})(zh||(zh={}));let Qm=class{static validate(e){if(typeof e.badge=="string"){let n=om(e.badge,0);if(n<e.badge.length&&(n+=om(e.badge,n)),e.badge.length>n)throw new Error("The 'badge'-property must be undefined or a short character")}else if(e.badge&&!Ki.isThemeIcon(e.badge))throw new Error("The 'badge'-property is not a valid ThemeIcon");if(!e.color&&!e.badge&&!e.tooltip)throw new Error("The decoration is empty");return!0}constructor(e,n,i){this.badge=e,this.tooltip=n,this.color=i}},e0=class{constructor(e){this.kind=e}};e0=re([se],e0);var Bh;(function(t){t[t.Light=1]="Light",t[t.Dark=2]="Dark",t[t.HighContrast=3]="HighContrast",t[t.HighContrastLight=4]="HighContrastLight"})(Bh||(Bh={}));let yo=class Vh{static isNotebookRange(e){return e instanceof Vh?!0:e?typeof e.start=="number"&&typeof e.end=="number":!1}get start(){return this._start}get end(){return this._end}get isEmpty(){return this._start===this._end}constructor(e,n){if(e<0)throw Oe("start must be positive");if(n<0)throw Oe("end must be positive");e<=n?(this._start=e,this._end=n):(this._start=n,this._end=e)}with(e){let n=this._start,i=this._end;return e.start!==void 0&&(n=e.start),e.end!==void 0&&(i=e.end),n===this._start&&i===this._end?this:new Vh(n,i)}},rw=class Kh{static validate(e){if(typeof e.kind!="number")throw new Error("NotebookCellData MUST have 'kind' property");if(typeof e.value!="string")throw new Error("NotebookCellData MUST have 'value' property");if(typeof e.languageId!="string")throw new Error("NotebookCellData MUST have 'languageId' property")}static isNotebookCellDataArray(e){return Array.isArray(e)&&e.every(n=>Kh.isNotebookCellData(n))}static isNotebookCellData(e){return!0}constructor(e,n,i,r,s,o,a){this.kind=e,this.value=n,this.languageId=i,this.mime=r,this.outputs=s??[],this.metadata=o,this.executionSummary=a,Kh.validate(this)}},sw=class{constructor(e){this.cells=e}};var Hn,Rc;let ow=(Hn=class{static isNotebookCellOutputItem(e){return e instanceof Hn?!0:e?typeof e.mime=="string"&&e.data instanceof Uint8Array:!1}static error(e){const n={name:e.name,message:e.message,stack:e.stack};return Hn.json(n,"application/vnd.code.notebook.error")}static stdout(e){return Hn.text(e,"application/vnd.code.notebook.stdout")}static stderr(e){return Hn.text(e,"application/vnd.code.notebook.stderr")}static bytes(e,n="application/octet-stream"){return new Hn(e,n)}static text(e,n=zr.text){const i=Dt(Hn,Rc).encode(String(e));return new Hn(i,n)}static json(e,n="text/x-json"){const i=JSON.stringify(e,void 0," ");return Hn.text(i,n)}constructor(e,n){this.data=e,this.mime=n;const i=Y2(n,!0);if(!i)throw new Error(`INVALID mime type: ${n}. Must be in the format "type/subtype[;optionalparameter]"`);this.mime=i}},Rc=new WeakMap,ns(Hn,Rc,new TextEncoder),Hn),aw=class Gh{static isNotebookCellOutput(e){return e instanceof Gh?!0:!e||typeof e!="object"?!1:typeof e.id=="string"&&Array.isArray(e.items)}static ensureUniqueMimeTypes(e,n=!1){const i=new Set,r=new Set;for(let s=0;s<e.length;s++){const o=e[s],a=Y2(o.mime);if(!i.has(a)||$v(a)){i.add(a);continue}r.add(s),n&&console.warn(`DUPLICATED mime type '${o.mime}' will be dropped`)}return r.size===0?e:e.filter((s,o)=>!r.has(o))}constructor(e,n,i){this.items=Gh.ensureUniqueMimeTypes(e,!0),typeof n=="string"?(this.id=n,this.metadata=i):(this.id=Hc(),this.metadata=n??i)}};var Jh;(function(t){t[t.Markup=1]="Markup",t[t.Code=2]="Code"})(Jh||(Jh={}));var Xh;(function(t){t[t.Idle=1]="Idle",t[t.Pending=2]="Pending",t[t.Executing=3]="Executing"})(Xh||(Xh={}));var Zh;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(Zh||(Zh={}));var Yh;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(Yh||(Yh={}));let cw=class{constructor(e,n){this.text=e,this.alignment=n}};var Qh;(function(t){t[t.Default=1]="Default",t[t.Preferred=2]="Preferred"})(Qh||(Qh={}));var e1;(function(t){t[t.Default=1]="Default",t[t.Preferred=2]="Preferred",t[t.Hidden=-1]="Hidden"})(e1||(e1={}));let lw=class{constructor(e,n=[]){this.uri=e,this.provides=x4(n)}},uw=class{constructor(e){this.label=e}};var t0;(function(t){t[t.Named=1]="Named",t[t.Indexed=2]="Indexed"})(t0||(t0={}));let t1=class{constructor(e,n){this.label=e,this.timestamp=n}};t1=re([se],t1);var n1;(function(t){t[t.Production=1]="Production",t[t.Development=2]="Development",t[t.Test=3]="Test"})(n1||(n1={}));var i1;(function(t){t[t.Node=1]="Node",t[t.Webworker=2]="Webworker"})(i1||(i1={}));var r1;(function(t){t[t.Other=0]="Other",t[t.Comment=1]="Comment",t[t.String=2]="String",t[t.RegEx=3]="RegEx"})(r1||(r1={}));let dw=class{constructor(e,n){this.ranges=e,this.wordPattern=n}},fw=class{constructor(e){this._autoForwardAction=e}get autoForwardAction(){return this._autoForwardAction}};var s1;(function(t){t[t.Queued=1]="Queued",t[t.Running=2]="Running",t[t.Passed=3]="Passed",t[t.Failed=4]="Failed",t[t.Skipped=5]="Skipped",t[t.Errored=6]="Errored"})(s1||(s1={}));var o1;(function(t){t[t.Run=1]="Run",t[t.Debug=2]="Debug",t[t.Coverage=3]="Coverage"})(o1||(o1={}));let a1=class{constructor(e=void 0,n=void 0,i=void 0,r=!1,s=!0){this.include=e,this.exclude=n,this.profile=i,this.continuous=r,this.preserveFocus=s}};a1=re([se],a1);let mc=mf=class{static diff(e,n,i){const r=new mf(e);return r.expectedOutput=n,r.actualOutput=i,r}constructor(e){this.message=e}};mc=mf=re([se],mc);let c1=class{constructor(e){this.id=e}};c1=re([se],c1);class Vl{constructor(e,n){this.covered=e,this.total=n,hw(this)}}function hw(t){if(t){if(t.covered>t.total)throw new Error(`The total number of covered items (${t.covered}) cannot be greater than the total (${t.total})`);if(t.total<0)throw new Error(`The number of covered items (${t.total}) cannot be negative`)}}let gw=class cy{static fromDetails(e,n){const i=new Vl(0,0),r=new Vl(0,0),s=new Vl(0,0);for(const a of n)if("branches"in a){i.total+=1,i.covered+=a.executed?1:0;for(const c of a.branches)r.total+=1,r.covered+=c.executed?1:0}else s.total+=1,s.covered+=a.executed?1:0;const o=new cy(e,i,r.total>0?r:void 0,s.total>0?s:void 0);return o.detailedCoverage=n,o}constructor(e,n,i,r){this.uri=e,this.statementCoverage=n,this.branchCoverage=i,this.declarationCoverage=r}},pw=class{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,n,i=[]){this.executed=e,this.location=n,this.branches=i}},mw=class{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,n,i){this.executed=e,this.location=n,this.label=i}};class yw{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,n,i){this.name=e,this.executed=n,this.location=i}}var l1;(function(t){t[t.None=0]="None",t[t.Option=1]="Option",t[t.Default=2]="Default",t[t.Preferred=3]="Preferred"})(l1||(l1={}));var u1;(function(t){t[t.Untrusted=0]="Untrusted",t[t.Trusted=1]="Trusted",t[t.Unspecified=2]="Unspecified"})(u1||(u1={}));var d1;(function(t){t[t.Notify=1]="Notify",t[t.OpenBrowser=2]="OpenBrowser",t[t.OpenPreview=3]="OpenPreview",t[t.Silent=4]="Silent",t[t.Ignore=5]="Ignore",t[t.OpenBrowserOnce=6]="OpenBrowserOnce"})(d1||(d1={}));let bw=class{constructor(e,n,i,r,s,o){this.kind=e,this.name=n,this.detail=i,this.uri=r,this.range=s,this.selectionRange=o}};class vw{constructor(e){this.uri=e}}class ww{constructor(e,n){this.original=e,this.modified=n}}class Cw{constructor(e,n,i,r){this.base=e,this.input1=n,this.input2=i,this.result=r}}class _w{constructor(e,n){this.uri=e,this.viewType=n}}class Sw{constructor(e){this.viewType=e}}class Dw{constructor(e,n){this.uri=e,this.notebookType=n}}class Tw{constructor(e,n,i){this.original=e,this.modified=n,this.notebookType=i}}class kw{constructor(){}}class Rw{constructor(e,n){this.uri=e,this.inputBoxUri=n}}class xw{constructor(){}}var f1;(function(t){t[t.Down=0]="Down",t[t.Up=1]="Up"})(f1||(f1={}));var h1;(function(t){t[t.Action=1]="Action",t[t.Toolbar=2]="Toolbar"})(h1||(h1={}));var g1;(function(t){t[t.Short=1]="Short",t[t.Medium=2]="Medium",t[t.Full=3]="Full"})(g1||(g1={}));let Iw=class{constructor(e,n){this.label=e,this.values=n}};var p1;(function(t){t[t.Unhelpful=0]="Unhelpful",t[t.Helpful=1]="Helpful",t[t.Undone=2]="Undone",t[t.Accepted=3]="Accepted",t[t.Bug=4]="Bug"})(p1||(p1={}));var m1;(function(t){t[t.Unhelpful=0]="Unhelpful",t[t.Helpful=1]="Helpful"})(m1||(m1={}));var n0;(function(t){t[t.Panel=1]="Panel",t[t.Terminal=2]="Terminal",t[t.Notebook=3]="Notebook",t[t.Editor=4]="Editor"})(n0||(n0={}));var y1;(function(t){t[t.SymbolInformation=1]="SymbolInformation",t[t.CommandInformation=2]="CommandInformation",t[t.SearchInformation=3]="SearchInformation",t[t.SettingInformation=4]="SettingInformation"})(y1||(y1={}));var b1;(function(t){t[t.Started=1]="Started",t[t.Recognizing=2]="Recognizing",t[t.Recognized=3]="Recognized",t[t.Stopped=4]="Stopped",t[t.Error=5]="Error"})(b1||(b1={}));var v1;(function(t){t[t.Recognized=1]="Recognized",t[t.Stopped=2]="Stopped"})(v1||(v1={}));var i0;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(i0||(i0={}));var w1;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(w1||(w1={}));const xc=class xc{constructor(e){this._proxyIdentifierBrand=void 0,this.sid=e,this.nid=++xc.count}};xc.count=0;let C1=xc;const Ew=[];function q(t){const e=new C1(t);return Ew[e.nid]=e,e}var r0;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(r0||(r0={}));var s0;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(s0||(s0={}));var _1;(function(t){t[t.None=0]="None",t[t.Process=1]="Process",t[t.Output=2]="Output"})(_1||(_1={}));q("MainThreadAuthentication"),q("MainThreadBulkEdits"),q("MainThreadLanguageModels"),q("MainThreadChatAgents2"),q("MainThreadChatVariables"),q("MainThreadClipboard"),q("MainThreadCommands"),q("MainThreadComments"),q("MainThreadConfiguration"),q("MainThreadConsole"),q("MainThreadDebugService"),q("MainThreadDecorations"),q("MainThreadDiagnostics"),q("MainThreadDiaglogs"),q("MainThreadDocuments"),q("MainThreadDocumentContentProviders"),q("MainThreadTextEditors"),q("MainThreadEditorInsets"),q("MainThreadEditorTabs"),q("MainThreadErrors"),q("MainThreadTreeViews"),q("MainThreadDownloadService"),q("MainThreadLanguageFeatures"),q("MainThreadLanguages"),q("MainThreadLogger"),q("MainThreadMessageService"),q("MainThreadOutputService"),q("MainThreadProgress"),q("MainThreadQuickDiff"),q("MainThreadQuickOpen"),q("MainThreadStatusBar"),q("MainThreadSecretState"),q("MainThreadStorage"),q("MainThreadSpeechProvider"),q("MainThreadTelemetry"),q("MainThreadTerminalService"),q("MainThreadTerminalShellIntegration"),q("MainThreadWebviews"),q("MainThreadWebviewPanels"),q("MainThreadWebviewViews"),q("MainThreadCustomEditors"),q("MainThreadUrls"),q("MainThreadUriOpeners"),q("MainThreadProfileContentHandlers"),q("MainThreadWorkspace"),q("MainThreadFileSystem"),q("MainThreadFileSystemEventService"),q("MainThreadExtensionService"),q("MainThreadSCM"),q("MainThreadSearch"),q("MainThreadShare"),q("MainThreadTask"),q("MainThreadWindow"),q("MainThreadLabelService"),q("MainThreadNotebook"),q("MainThreadNotebookDocumentsShape"),q("MainThreadNotebookEditorsShape"),q("MainThreadNotebookKernels"),q("MainThreadNotebookRenderers"),q("MainThreadInteractive"),q("MainThreadInlineChatShape"),q("MainThreadTheming"),q("MainThreadTunnelService"),q("MainThreadManagedSockets"),q("MainThreadTimeline"),q("MainThreadTesting"),q("MainThreadLocalizationShape"),q("MainThreadAiRelatedInformation"),q("MainThreadAiEmbeddingVector");q("ExtHostCommands"),q("ExtHostConfiguration"),q("ExtHostDiagnostics"),q("ExtHostDebugService"),q("ExtHostDecorations"),q("ExtHostDocumentsAndEditors"),q("ExtHostDocuments"),q("ExtHostDocumentContentProviders"),q("ExtHostDocumentSaveParticipant"),q("ExtHostEditors"),q("ExtHostTreeViews"),q("ExtHostFileSystem"),q("ExtHostFileSystemInfo"),q("ExtHostFileSystemEventService"),q("ExtHostLanguages"),q("ExtHostLanguageFeatures"),q("ExtHostQuickOpen"),q("ExtHostQuickDiff"),q("ExtHostStatusBar"),q("ExtHostShare"),q("ExtHostExtensionService"),q("ExtHostLogLevelServiceShape"),q("ExtHostTerminalService"),q("ExtHostTerminalShellIntegration"),q("ExtHostSCM"),q("ExtHostSearch"),q("ExtHostTask"),q("ExtHostWorkspace"),q("ExtHostWindow"),q("ExtHostWebviews"),q("ExtHostWebviewPanels"),q("ExtHostCustomEditors"),q("ExtHostWebviewViews"),q("ExtHostEditorInsets"),q("ExtHostEditorTabs"),q("ExtHostProgress"),q("ExtHostComments"),q("ExtHostSecretState"),q("ExtHostStorage"),q("ExtHostUrls"),q("ExtHostUriOpeners"),q("ExtHostProfileContentHandlers"),q("ExtHostOutputService"),q("ExtHostLabelService"),q("ExtHostNotebook"),q("ExtHostNotebookDocuments"),q("ExtHostNotebookEditors"),q("ExtHostNotebookKernels"),q("ExtHostNotebookRenderers"),q("ExtHostNotebookDocumentSaveParticipant"),q("ExtHostInteractive"),q("ExtHostInlineChatShape"),q("ExtHostChatAgents"),q("ExtHostChatVariables"),q("ExtHostChatProvider"),q("ExtHostSpeech"),q("ExtHostAiRelatedInformation"),q("ExtHostAiEmbeddingVector"),q("ExtHostTheming"),q("ExtHostTunnelService"),q("ExtHostManagedSockets"),q("ExtHostAuthentication"),q("ExtHostTimeline"),q("ExtHostTesting"),q("ExtHostTelemetry"),q("ExtHostLocalization");const ue="vs/workbench/contrib/debug/common/debug";new ae("debugType",void 0,{type:"string",description:m(ue,0,"Debug type of the active debug session. For example 'python'.")});new ae("debugConfigurationType",void 0,{type:"string",description:m(ue,1,"Debug type of the selected launch configuration. For example 'python'.")});new ae("debugState","inactive",{type:"string",description:m(ue,2,"State that the focused debug session is in. One of the following: 'inactive', 'initializing', 'stopped' or 'running'.")});const Pw="debugUx";new ae(Pw,"default",{type:"string",description:m(ue,3,"Debug UX state. When there are no debug configurations it is 'simple', otherwise 'default'. Used to decide when to show welcome views in the debug viewlet.")});new ae("hasDebugged",!1,{type:"boolean",description:m(ue,4,"True when a debug session has been started at least once, false otherwise.")});new ae("inDebugMode",!1,{type:"boolean",description:m(ue,5,"True when debugging, false otherwise.")});new ae("inDebugRepl",!1,{type:"boolean",description:m(ue,6,"True when focus is in the debug console, false otherwise.")});new ae("breakpointWidgetVisible",!1,{type:"boolean",description:m(ue,7,"True when breakpoint editor zone widget is visible, false otherwise.")});new ae("inBreakpointWidget",!1,{type:"boolean",description:m(ue,8,"True when focus is in the breakpoint editor zone widget, false otherwise.")});new ae("breakpointsFocused",!0,{type:"boolean",description:m(ue,9,"True when the BREAKPOINTS view is focused, false otherwise.")});new ae("watchExpressionsFocused",!0,{type:"boolean",description:m(ue,10,"True when the WATCH view is focused, false otherwsie.")});new ae("watchExpressionsExist",!1,{type:"boolean",description:m(ue,11,"True when at least one watch expression exists, false otherwise.")});new ae("variablesFocused",!0,{type:"boolean",description:m(ue,12,"True when the VARIABLES views is focused, false otherwsie")});new ae("expressionSelected",!1,{type:"boolean",description:m(ue,13,"True when an expression input box is open in either the WATCH or the VARIABLES view, false otherwise.")});new ae("breakpointInputFocused",!1,{type:"boolean",description:m(ue,14,"True when the input box has focus in the BREAKPOINTS view.")});new ae("callStackItemType",void 0,{type:"string",description:m(ue,15,"Represents the item type of the focused element in the CALL STACK view. For example: 'session', 'thread', 'stackFrame'")});new ae("callStackSessionIsAttach",!1,{type:"boolean",description:m(ue,16,"True when the session in the CALL STACK view is attach, false otherwise. Used internally for inline menus in the CALL STACK view.")});new ae("callStackItemStopped",!1,{type:"boolean",description:m(ue,17,"True when the focused item in the CALL STACK is stopped. Used internaly for inline menus in the CALL STACK view.")});new ae("callStackSessionHasOneThread",!1,{type:"boolean",description:m(ue,18,"True when the focused session in the CALL STACK view has exactly one thread. Used internally for inline menus in the CALL STACK view.")});new ae("watchItemType",void 0,{type:"string",description:m(ue,19,"Represents the item type of the focused element in the WATCH view. For example: 'expression', 'variable'")});new ae("canViewMemory",void 0,{type:"boolean",description:m(ue,20,"Indicates whether the item in the view has an associated memory refrence.")});new ae("breakpointItemType",void 0,{type:"string",description:m(ue,21,"Represents the item type of the focused element in the BREAKPOINTS view. For example: 'breakpoint', 'exceptionBreakppint', 'functionBreakpoint', 'dataBreakpoint'")});new ae("breakpointItemBytes",void 0,{type:"boolean",description:m(ue,22,"Whether the breakpoint item is a data breakpoint on a byte range.")});new ae("breakpointHasModes",!1,{type:"boolean",description:m(ue,23,"Whether the breakpoint has multiple modes it can switch to.")});new ae("breakpointSupportsCondition",!1,{type:"boolean",description:m(ue,24,"True when the focused breakpoint supports conditions.")});new ae("loadedScriptsSupported",!1,{type:"boolean",description:m(ue,25,"True when the focused sessions supports the LOADED SCRIPTS view")});new ae("loadedScriptsItemType",void 0,{type:"string",description:m(ue,26,"Represents the item type of the focused element in the LOADED SCRIPTS view.")});new ae("focusedSessionIsAttach",!1,{type:"boolean",description:m(ue,27,"True when the focused session is 'attach'.")});new ae("focusedSessionIsNoDebug",!1,{type:"boolean",description:m(ue,28,"True when the focused session is run without debugging.")});new ae("stepBackSupported",!1,{type:"boolean",description:m(ue,29,"True when the focused session supports 'stepBack' requests.")});new ae("restartFrameSupported",!1,{type:"boolean",description:m(ue,30,"True when the focused session supports 'restartFrame' requests.")});new ae("stackFrameSupportsRestart",!1,{type:"boolean",description:m(ue,31,"True when the focused stack frame suppots 'restartFrame'.")});new ae("jumpToCursorSupported",!1,{type:"boolean",description:m(ue,32,"True when the focused session supports 'jumpToCursor' request.")});new ae("stepIntoTargetsSupported",!1,{type:"boolean",description:m(ue,33,"True when the focused session supports 'stepIntoTargets' request.")});new ae("breakpointsExist",!1,{type:"boolean",description:m(ue,34,"True when at least one breakpoint exists.")});new ae("debuggersAvailable",!1,{type:"boolean",description:m(ue,35,"True when there is at least one debug extensions active.")});new ae("debugExtensionAvailable",!0,{type:"boolean",description:m(ue,36,"True when there is at least one debug extension installed and enabled.")});new ae("debugProtocolVariableMenuContext",void 0,{type:"string",description:m(ue,37,"Represents the context the debug adapter sets on the focused variable in the VARIABLES view.")});new ae("debugSetVariableSupported",!1,{type:"boolean",description:m(ue,38,"True when the focused session supports 'setVariable' request.")});new ae("debugSetDataBreakpointAddressSupported",!1,{type:"boolean",description:m(ue,39,"True when the focused session supports 'getBreakpointInfo' request on an address.")});new ae("debugSetExpressionSupported",!1,{type:"boolean",description:m(ue,40,"True when the focused session supports 'setExpression' request.")});new ae("breakWhenValueChangesSupported",!1,{type:"boolean",description:m(ue,41,"True when the focused session supports to break when value changes.")});new ae("breakWhenValueIsAccessedSupported",!1,{type:"boolean",description:m(ue,42,"True when the focused breakpoint supports to break when value is accessed.")});new ae("breakWhenValueIsReadSupported",!1,{type:"boolean",description:m(ue,43,"True when the focused breakpoint supports to break when value is read.")});new ae("terminateDebuggeeSupported",!1,{type:"boolean",description:m(ue,44,"True when the focused session supports the terminate debuggee capability.")});new ae("suspendDebuggeeSupported",!1,{type:"boolean",description:m(ue,45,"True when the focused session supports the suspend debuggee capability.")});new ae("variableEvaluateNamePresent",!1,{type:"boolean",description:m(ue,46,"True when the focused variable has an 'evalauteName' field set.")});new ae("variableIsReadonly",!1,{type:"boolean",description:m(ue,47,"True when the focused variable is read-only.")});new ae("variableValue",!1,{type:"string",description:m(ue,48,"Value of the variable, present for debug visualization clauses.")});new ae("variableType",!1,{type:"string",description:m(ue,49,"Type of the variable, present for debug visualization clauses.")});new ae("variableInterfaces",!1,{type:"array",description:m(ue,50,"Any interfaces or contracts that the variable satisfies, present for debug visualization clauses.")});new ae("variableName",!1,{type:"string",description:m(ue,51,"Name of the variable, present for debug visualization clauses.")});new ae("variableLanguage",!1,{type:"string",description:m(ue,52,"Language of the variable source, present for debug visualization clauses.")});new ae("variableExtensionId",!1,{type:"string",description:m(ue,53,"Extension ID of the variable source, present for debug visualization clauses.")});new ae("exceptionWidgetVisible",!1,{type:"boolean",description:m(ue,54,"True when the exception widget is visible.")});new ae("multiSessionRepl",!1,{type:"boolean",description:m(ue,55,"True when there is more than 1 debug console.")});new ae("multiSessionDebug",!1,{type:"boolean",description:m(ue,56,"True when there is more than 1 active debug session.")});new ae("disassembleRequestSupported",!1,{type:"boolean",description:m(ue,57,"True when the focused sessions supports disassemble request.")});new ae("disassemblyViewFocus",!1,{type:"boolean",description:m(ue,58,"True when the Disassembly View is focused.")});new ae("languageSupportsDisassembleRequest",!1,{type:"boolean",description:m(ue,59,"True when the language in the current editor supports disassemble request.")});new ae("focusedStackFrameHasInstructionReference",!1,{type:"boolean",description:m(ue,60,"True when the focused stack frame has instruction pointer reference.")});m(ue,62,"Controls when the internal Debug Console should open.");var S1;(function(t){t[t.Initial=1]="Initial",t[t.Dynamic=2]="Dynamic"})(S1||(S1={}));var o0;(function(t){t.UnverifiedBreakpoints="unverifiedBreakpoints"})(o0||(o0={}));var a0;(function(t){t.deserialize=e=>({id:e.id,name:e.name,iconPath:e.iconPath&&{light:it.revive(e.iconPath.light),dark:it.revive(e.iconPath.dark)},iconClass:e.iconClass,visualization:e.visualization}),t.serialize=e=>e})(a0||(a0={}));function To(t,e){if(t===e)return!0;if(t==null||e===null||e===void 0||typeof t!=typeof e||typeof t!="object"||Array.isArray(t)!==Array.isArray(e))return!1;let n,i;if(Array.isArray(t)){if(t.length!==e.length)return!1;for(n=0;n<t.length;n++)if(!To(t[n],e[n]))return!1}else{const r=[];for(i in t)r.push(i);r.sort();const s=[];for(i in e)s.push(i);if(s.sort(),!To(r,s))return!1;for(n=0;n<r.length;n++)if(!To(t[r[n]],e[r[n]]))return!1}return!0}var D1;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(D1||(D1={}));var c0;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(c0||(c0={}));var l0;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(l0||(l0={}));var T1;(function(t){t[t.Desktop=1]="Desktop",t[t.Web=2]="Web"})(T1||(T1={}));var k1;(function(t){t[t.Information=1]="Information",t[t.Warning=2]="Warning"})(k1||(k1={}));function Kl(t,e,n=32){const i=n-e,r=~((1<<i)-1);return(t<<e|(r&t)>>>i)>>>0}function u0(t,e=0,n=t.byteLength,i=0){for(let r=0;r<n;r++)t[e+r]=i}function Aw(t,e,n="0"){for(;t.length<e;)t=n+t;return t}function Zs(t,e=32){return t instanceof ArrayBuffer?Array.from(new Uint8Array(t)).map(n=>n.toString(16).padStart(2,"0")).join(""):Aw((t>>>0).toString(16),e/4)}const Ic=class Ic{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const n=e.length;if(n===0)return;const i=this._buff;let r=this._buffLen,s=this._leftoverHighSurrogate,o,a;for(s!==0?(o=s,a=-1,s=0):(o=e.charCodeAt(0),a=0);;){let c=o;if(ng(o))if(a+1<n){const l=e.charCodeAt(a+1);Za(l)?(a++,c=ig(o,l)):c=65533}else{s=o;break}else Za(o)&&(c=65533);if(r=this._push(i,r,c),a++,a<n)o=e.charCodeAt(a);else break}this._buffLen=r,this._leftoverHighSurrogate=s}_push(e,n,i){return i<128?e[n++]=i:i<2048?(e[n++]=192|(i&1984)>>>6,e[n++]=128|(i&63)>>>0):i<65536?(e[n++]=224|(i&61440)>>>12,e[n++]=128|(i&4032)>>>6,e[n++]=128|(i&63)>>>0):(e[n++]=240|(i&1835008)>>>18,e[n++]=128|(i&258048)>>>12,e[n++]=128|(i&4032)>>>6,e[n++]=128|(i&63)>>>0),n>=64&&(this._step(),n-=64,this._totalLen+=64,e[0]=e[64+0],e[1]=e[64+1],e[2]=e[64+2]),n}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Zs(this._h0)+Zs(this._h1)+Zs(this._h2)+Zs(this._h3)+Zs(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,u0(this._buff,this._buffLen),this._buffLen>56&&(this._step(),u0(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=Ic._bigBlock32,n=this._buffDV;for(let g=0;g<64;g+=4)e.setUint32(g,n.getUint32(g,!1),!1);for(let g=64;g<320;g+=4)e.setUint32(g,Kl(e.getUint32(g-12,!1)^e.getUint32(g-32,!1)^e.getUint32(g-56,!1)^e.getUint32(g-64,!1),1),!1);let i=this._h0,r=this._h1,s=this._h2,o=this._h3,a=this._h4,c,l,f;for(let g=0;g<80;g++)g<20?(c=r&s|~r&o,l=1518500249):g<40?(c=r^s^o,l=1859775393):g<60?(c=r&s|r&o|s&o,l=2400959708):(c=r^s^o,l=3395469782),f=Kl(i,5)+c+a+l+e.getUint32(g*4,!1)&4294967295,a=o,o=s,s=Kl(r,30),r=i,i=f;this._h0=this._h0+i&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+a&4294967295}};Ic._bigBlock32=new DataView(new ArrayBuffer(320));let d0=Ic;var ai;(function(t){t[t.Off=0]="Off",t[t.Trace=1]="Trace",t[t.Debug=2]="Debug",t[t.Info=3]="Info",t[t.Warning=4]="Warning",t[t.Error=5]="Error"})(ai||(ai={}));ai.Info;function Mw(t){switch(t){case ai.Trace:return"trace";case ai.Debug:return"debug";case ai.Info:return"info";case ai.Warning:return"warn";case ai.Error:return"error";case ai.Off:return"off"}}new ae("logLevel",Mw(ai.Info));var R1;(function(t){t[t.Complete=100]="Complete",t[t.Partial=50]="Partial",t[t.None=0]="None"})(R1||(R1={}));const f0={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},ly="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Ow(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of ly)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}Ow();const Fw=new U4;Fw.unshift({maxLen:1e3,windowSize:15,timeBudget:150});const b="vs/editor/common/config/editorOptions",Lw=8;class Nw{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Ke{constructor(e,n,i,r){this.id=e,this.name=n,this.defaultValue=i,this.schema=r}applyUpdate(e,n){return Bc(e,n)}compute(e,n,i){return i}}class Aa{constructor(e,n){this.newValue=e,this.didChange=n}}function Bc(t,e){if(typeof t!="object"||typeof e!="object"||!t||!e)return new Aa(e,t!==e);if(Array.isArray(t)||Array.isArray(e)){const i=Array.isArray(t)&&Array.isArray(e)&&Bd(t,e);return new Aa(e,!i)}let n=!1;for(const i in e)if(e.hasOwnProperty(i)){const r=Bc(t[i],e[i]);r.didChange&&(t[i]=r.newValue,n=!0)}return new Aa(t,n)}class aa{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,n){return Bc(e,n)}validate(e){return this.defaultValue}}class Vs{constructor(e,n,i,r){this.id=e,this.name=n,this.defaultValue=i,this.schema=r}applyUpdate(e,n){return Bc(e,n)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,n,i){return i}}function Q(t,e){return typeof t>"u"?e:t==="false"?!1:!!t}class Se extends Vs{constructor(e,n,i,r=void 0){typeof r<"u"&&(r.type="boolean",r.default=i),super(e,n,i,r)}validate(e){return Q(e,this.defaultValue)}}function $w(t,e,n,i){if(typeof t>"u")return e;let r=parseInt(t,10);return isNaN(r)?e:(r=Math.max(n,r),r=Math.min(i,r),r|0)}class je extends Vs{static clampedInt(e,n,i,r){return $w(e,n,i,r)}constructor(e,n,i,r,s,o=void 0){typeof o<"u"&&(o.type="integer",o.default=i,o.minimum=r,o.maximum=s),super(e,n,i,o),this.minimum=r,this.maximum=s}validate(e){return je.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class ui extends Vs{static clamp(e,n,i){return e<n?n:e>i?i:e}static float(e,n){if(typeof e=="number")return e;if(typeof e>"u")return n;const i=parseFloat(e);return isNaN(i)?n:i}constructor(e,n,i,r,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,n,i,s),this.validationFn=r}validate(e){return this.validationFn(ui.float(e,this.defaultValue))}}class on extends Vs{static string(e,n){return typeof e!="string"?n:e}constructor(e,n,i,r=void 0){typeof r<"u"&&(r.type="string",r.default=i),super(e,n,i,r)}validate(e){return on.string(e,this.defaultValue)}}function gt(t,e,n,i){return typeof t!="string"?e:i&&t in i?i[t]:n.indexOf(t)===-1?e:t}class tt extends Vs{constructor(e,n,i,r,s=void 0){typeof s<"u"&&(s.type="string",s.enum=r,s.default=i),super(e,n,i,s),this._allowedValues=r}validate(e){return gt(e,this.defaultValue,this._allowedValues)}}class ya extends Ke{constructor(e,n,i,r,s,o,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=r),super(e,n,i,a),this._allowedValues=s,this._convert=o}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function qw(t){switch(t){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class jw extends Ke{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[m(b,0,"Use platform APIs to detect when a Screen Reader is attached."),m(b,1,"Optimize for usage with a Screen Reader."),m(b,2,"Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:m(b,3,"Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,n,i){return i===0?e.accessibilitySupport:i}}class Hw extends Ke{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:m(b,4,"Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:m(b,5,"Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{insertSpace:Q(n.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Q(n.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function Ww(t){switch(t){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var yi;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(yi||(yi={}));function Uw(t){switch(t){case"line":return yi.Line;case"block":return yi.Block;case"underline":return yi.Underline;case"line-thin":return yi.LineThin;case"block-outline":return yi.BlockOutline;case"underline-thin":return yi.UnderlineThin}}class zw extends aa{constructor(){super(142)}compute(e,n,i){const r=["monaco-editor"];return n.get(39)&&r.push(n.get(39)),e.extraEditorClassName&&r.push(e.extraEditorClassName),n.get(74)==="default"?r.push("mouse-default"):n.get(74)==="copy"&&r.push("mouse-copy"),n.get(111)&&r.push("showUnused"),n.get(140)&&r.push("showDeprecated"),r.join(" ")}}class Bw extends Se{constructor(){super(37,"emptySelectionClipboard",!0,{description:m(b,6,"Controls whether copying without a selection copies the current line.")})}compute(e,n,i){return i&&e.emptySelectionClipboard}}class Vw extends Ke{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:m(b,7,"Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[m(b,8,"Never seed search string from the editor selection."),m(b,9,"Always seed search string from the editor selection, including word at cursor position."),m(b,10,"Only seed search string from the editor selection.")],description:m(b,11,"Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[m(b,12,"Never turn on Find in Selection automatically (default)."),m(b,13,"Always turn on Find in Selection automatically."),m(b,14,"Turn on Find in Selection automatically when multiple lines of content are selected.")],description:m(b,15,"Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:m(b,16,"Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Si},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:m(b,17,"Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:m(b,18,"Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{cursorMoveOnType:Q(n.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":gt(n.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":gt(n.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Q(n.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Q(n.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Q(n.loop,this.defaultValue.loop)}}}const Pi=class Pi extends Ke{constructor(){super(51,"fontLigatures",Pi.OFF,{anyOf:[{type:"boolean",description:m(b,19,"Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:m(b,20,"Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:m(b,21,"Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?Pi.OFF:e==="true"?Pi.ON:e:e?Pi.ON:Pi.OFF}};Pi.OFF='"liga" off, "calt" off',Pi.ON='"liga" on, "calt" on';let x1=Pi;const Ai=class Ai extends Ke{constructor(){super(54,"fontVariations",Ai.OFF,{anyOf:[{type:"boolean",description:m(b,22,"Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:m(b,23,"Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:m(b,24,"Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?Ai.OFF:e==="true"?Ai.TRANSLATE:e:e?Ai.TRANSLATE:Ai.OFF}compute(e,n,i){return e.fontInfo.fontVariationSettings}};Ai.OFF="normal",Ai.TRANSLATE="translate";let I1=Ai;class Kw extends aa{constructor(){super(50)}compute(e,n,i){return e.fontInfo}}class Gw extends Vs{constructor(){super(52,"fontSize",Wi.fontSize,{type:"number",minimum:6,maximum:100,default:Wi.fontSize,description:m(b,25,"Controls the font size in pixels.")})}validate(e){const n=ui.float(e,this.defaultValue);return n===0?Wi.fontSize:ui.clamp(n,6,100)}compute(e,n,i){return e.fontInfo.fontSize}}const gi=class gi extends Ke{constructor(){super(53,"fontWeight",Wi.fontWeight,{anyOf:[{type:"number",minimum:gi.MINIMUM_VALUE,maximum:gi.MAXIMUM_VALUE,errorMessage:m(b,26,'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:gi.SUGGESTION_VALUES}],default:Wi.fontWeight,description:m(b,27,'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(je.clampedInt(e,Wi.fontWeight,gi.MINIMUM_VALUE,gi.MAXIMUM_VALUE))}};gi.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],gi.MINIMUM_VALUE=1,gi.MAXIMUM_VALUE=1e3;let E1=gi;class Jw extends Ke{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},n={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[m(b,28,"Show Peek view of the results (default)"),m(b,29,"Go to the primary result and show a Peek view"),m(b,30,"Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:m(b,31,"This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:m(b,32,"Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleTypeDefinitions":{description:m(b,33,"Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleDeclarations":{description:m(b,34,"Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleImplementations":{description:m(b,35,"Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleReferences":{description:m(b,36,"Controls the behavior the 'Go to References'-command when multiple target locations exist."),...n},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:m(b,37,"Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:m(b,38,"Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:m(b,39,"Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:m(b,40,"Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:m(b,41,"Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{multiple:gt(n.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:n.multipleDefinitions??gt(n.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:n.multipleTypeDefinitions??gt(n.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:n.multipleDeclarations??gt(n.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:n.multipleImplementations??gt(n.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:n.multipleReferences??gt(n.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:on.string(n.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:on.string(n.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:on.string(n.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:on.string(n.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:on.string(n.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class Xw extends Ke{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:m(b,42,"Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:m(b,43,"Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:m(b,44,"Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:m(b,45,"Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:m(b,46,"Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Q(n.enabled,this.defaultValue.enabled),delay:je.clampedInt(n.delay,this.defaultValue.delay,0,1e4),sticky:Q(n.sticky,this.defaultValue.sticky),hidingDelay:je.clampedInt(n.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:Q(n.above,this.defaultValue.above)}}}class ko extends aa{constructor(){super(145)}compute(e,n,i){return ko.computeLayout(n,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const n=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let r=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(r=Math.max(r,n-1));const s=(i+e.viewLineCount+r)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:n,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:r,desiredRatio:s,minimapLineCount:o}}static _computeMinimapLayout(e,n){const i=e.outerWidth,r=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*r),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:r};const o=n.stableMinimapLayoutInput,a=o&&e.outerHeight===o.outerHeight&&e.lineHeight===o.lineHeight&&e.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&e.pixelRatio===o.pixelRatio&&e.scrollBeyondLastLine===o.scrollBeyondLastLine&&e.paddingTop===o.paddingTop&&e.paddingBottom===o.paddingBottom&&e.minimap.enabled===o.minimap.enabled&&e.minimap.side===o.minimap.side&&e.minimap.size===o.minimap.size&&e.minimap.showSlider===o.minimap.showSlider&&e.minimap.renderCharacters===o.minimap.renderCharacters&&e.minimap.maxColumn===o.minimap.maxColumn&&e.minimap.scale===o.minimap.scale&&e.verticalScrollbarWidth===o.verticalScrollbarWidth&&e.isViewportWrapping===o.isViewportWrapping,c=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,f=e.scrollBeyondLastLine,g=e.minimap.renderCharacters;let p=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const _=e.minimap.maxColumn,C=e.minimap.size,k=e.minimap.side,A=e.verticalScrollbarWidth,H=e.viewLineCount,K=e.remainingWidth,j=e.isViewportWrapping,B=g?2:3;let z=Math.floor(s*r);const ne=z/s;let G=!1,Z=!1,ie=B*p,Le=p/s,$=1;if(C==="fill"||C==="fit"){const{typicalViewportLineCount:Ae,extraLinesBeforeFirstLine:ve,extraLinesBeyondLastLine:lt,desiredRatio:He,minimapLineCount:Ee}=ko.computeContainedMinimapLineCount({viewLineCount:H,scrollBeyondLastLine:f,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:r,lineHeight:c,pixelRatio:s});if(H/Ee>1)G=!0,Z=!0,p=1,ie=1,Le=p/s;else{let Fe=!1,ot=p+1;if(C==="fit"){const Je=Math.ceil((ve+H+lt)*ie);j&&a&&K<=n.stableFitRemainingWidth?(Fe=!0,ot=n.stableFitMaxMinimapScale):Fe=Je>z}if(C==="fill"||Fe){G=!0;const Je=p;ie=Math.min(c*s,Math.max(1,Math.floor(1/He))),j&&a&&K<=n.stableFitRemainingWidth&&(ot=n.stableFitMaxMinimapScale),p=Math.min(ot,Math.max(1,Math.floor(ie/B))),p>Je&&($=Math.min(2,p/Je)),Le=p/s/$,z=Math.ceil(Math.max(Ae,ve+H+lt)*ie),j?(n.stableMinimapLayoutInput=e,n.stableFitRemainingWidth=K,n.stableFitMaxMinimapScale=p):(n.stableMinimapLayoutInput=null,n.stableFitRemainingWidth=0)}}}const E=Math.floor(_*Le),v=Math.min(E,Math.max(0,Math.floor((K-A-2)*Le/(l+Le)))+Lw);let R=Math.floor(s*v);const P=R/s;R=Math.floor(R*$);const I=g?1:2,V=k==="left"?0:i-v-A;return{renderMinimap:I,minimapLeft:V,minimapWidth:v,minimapHeightIsEditorHeight:G,minimapIsSampling:Z,minimapScale:p,minimapLineHeight:ie,minimapCanvasInnerWidth:R,minimapCanvasInnerHeight:z,minimapCanvasOuterWidth:P,minimapCanvasOuterHeight:ne}}static computeLayout(e,n){const i=n.outerWidth|0,r=n.outerHeight|0,s=n.lineHeight|0,o=n.lineNumbersDigitCount|0,a=n.typicalHalfwidthCharacterWidth,c=n.maxDigitWidth,l=n.pixelRatio,f=n.viewLineCount,g=e.get(137),p=g==="inherit"?e.get(136):g,_=p==="inherit"?e.get(132):p,C=e.get(135),k=n.isDominatedByLongLines,A=e.get(57),H=e.get(68).renderType!==0,K=e.get(69),j=e.get(105),B=e.get(84),z=e.get(73),ne=e.get(103),G=ne.verticalScrollbarSize,Z=ne.verticalHasArrows,ie=ne.arrowSize,Le=ne.horizontalScrollbarSize,$=e.get(43),E=e.get(110)!=="never";let v=e.get(66);$&&E&&(v+=16);let R=0;if(H){const Xe=Math.max(o,K);R=Math.round(Xe*c)}let P=0;A&&(P=s*n.glyphMarginDecorationLaneCount);let I=0,V=I+P,Ae=V+R,ve=Ae+v;const lt=i-P-R-v;let He=!1,Ee=!1,st=-1;p==="inherit"&&k?(He=!0,Ee=!0):_==="on"||_==="bounded"?Ee=!0:_==="wordWrapColumn"&&(st=C);const Fe=ko._computeMinimapLayout({outerWidth:i,outerHeight:r,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:l,scrollBeyondLastLine:j,paddingTop:B.top,paddingBottom:B.bottom,minimap:z,verticalScrollbarWidth:G,viewLineCount:f,remainingWidth:lt,isViewportWrapping:Ee},n.memory||new Nw);Fe.renderMinimap!==0&&Fe.minimapLeft===0&&(I+=Fe.minimapWidth,V+=Fe.minimapWidth,Ae+=Fe.minimapWidth,ve+=Fe.minimapWidth);const ot=lt-Fe.minimapWidth,Je=Math.max(1,Math.floor((ot-G-2)/a)),Ft=Z?ie:0;return Ee&&(st=Math.max(1,Je),_==="bounded"&&(st=Math.min(st,C))),{width:i,height:r,glyphMarginLeft:I,glyphMarginWidth:P,glyphMarginDecorationLaneCount:n.glyphMarginDecorationLaneCount,lineNumbersLeft:V,lineNumbersWidth:R,decorationsLeft:Ae,decorationsWidth:v,contentLeft:ve,contentWidth:ot,minimap:Fe,viewportColumn:Je,isWordWrapMinified:He,isViewportWrapping:Ee,wrappingColumn:st,verticalScrollbarWidth:G,horizontalScrollbarHeight:Le,overviewRuler:{top:Ft,width:G,height:r-2*Ft,right:0}}}}class Zw extends Ke{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[m(b,47,"Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),m(b,48,"Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:m(b,49,"Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return gt(e,"simple",["simple","advanced"])}compute(e,n,i){return n.get(2)===2?"advanced":i}}var Ei;(function(t){t.Off="off",t.OnCode="onCode",t.On="on"})(Ei||(Ei={}));class Yw extends Ke{constructor(){const e={enabled:Ei.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[Ei.Off,Ei.OnCode,Ei.On],default:e.enabled,enumDescriptions:[m(b,50,"Disable the code action menu."),m(b,51,"Show the code action menu when the cursor is on lines with code."),m(b,52,"Show the code action menu when the cursor is on lines with code or on empty lines.")],description:m(b,53,"Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:gt(e.enabled,this.defaultValue.enabled,[Ei.Off,Ei.OnCode,Ei.On])}}}class Qw extends Ke{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:m(b,54,"Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:m(b,55,"Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:m(b,56,"Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:m(b,57,"Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Q(n.enabled,this.defaultValue.enabled),maxLineCount:je.clampedInt(n.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:gt(n.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:Q(n.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class e7 extends Ke{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:m(b,58,"Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[m(b,59,"Inlay hints are enabled"),m(b,60,"Inlay hints are showing by default and hide when holding {0}",Si?"Ctrl+Option":"Ctrl+Alt"),m(b,61,"Inlay hints are hidden by default and show when holding {0}",Si?"Ctrl+Option":"Ctrl+Alt"),m(b,62,"Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:m(b,63,"Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:m(b,64,"Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:m(b,65,"Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return typeof n.enabled=="boolean"&&(n.enabled=n.enabled?"on":"off"),{enabled:gt(n.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:je.clampedInt(n.fontSize,this.defaultValue.fontSize,0,100),fontFamily:on.string(n.fontFamily,this.defaultValue.fontFamily),padding:Q(n.padding,this.defaultValue.padding)}}}class t7 extends Ke{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):je.clampedInt(e,this.defaultValue,0,1e3)}compute(e,n,i){return i<0?je.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class n7 extends ui{constructor(){super(67,"lineHeight",Wi.lineHeight,e=>ui.clamp(e,0,150),{markdownDescription:m(b,66,`Controls the line height.
|
|
96
112
|
- Use 0 to automatically compute the line height from the font size.
|
|
97
113
|
- Values between 0 and 8 will be used as a multiplier with the font size.
|
|
98
|
-
- Values greater than or equal to 8 will be used as effective values.`)})}compute(e,n,r){return e.fontInfo.lineHeight}}class Qw extends Ke{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:m(b,67,"Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:m(b,68,"Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[m(b,69,"The minimap has the same size as the editor contents (and might scroll)."),m(b,70,"The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),m(b,71,"The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:m(b,72,"Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:m(b,73,"Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:m(b,74,"Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:m(b,75,"Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:m(b,76,"Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:m(b,77,"Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:m(b,78,"Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:m(b,79,"Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:m(b,80,"Controls the font size of section headers in the minimap.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Z(n.enabled,this.defaultValue.enabled),autohide:Z(n.autohide,this.defaultValue.autohide),size:pt(n.size,this.defaultValue.size,["proportional","fill","fit"]),side:pt(n.side,this.defaultValue.side,["right","left"]),showSlider:pt(n.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:Z(n.renderCharacters,this.defaultValue.renderCharacters),scale:je.clampedInt(n.scale,1,1,3),maxColumn:je.clampedInt(n.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:Z(n.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:Z(n.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:ur.clamp(n.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32)}}}function Jw(t){return t==="ctrlCmd"?Sr?"metaKey":"ctrlKey":"altKey"}class Yw extends Ke{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:m(b,81,"Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:m(b,82,"Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{top:je.clampedInt(n.top,0,0,1e3),bottom:je.clampedInt(n.bottom,0,0,1e3)}}}class Xw extends Ke{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:m(b,83,"Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:m(b,84,"Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Z(n.enabled,this.defaultValue.enabled),cycle:Z(n.cycle,this.defaultValue.cycle)}}}class Zw extends aa{constructor(){super(143)}compute(e,n,r){return e.pixelRatio}}class e7 extends Ke{constructor(){const e={other:"on",comments:"off",strings:"off"},n=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[m(b,85,"Quick suggestions show inside the suggest widget"),m(b,86,"Quick suggestions show as ghost text"),m(b,87,"Quick suggestions are disabled")]}];super(89,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:n,default:e.strings,description:m(b,88,"Enable quick suggestions inside strings.")},comments:{anyOf:n,default:e.comments,description:m(b,89,"Enable quick suggestions inside comments.")},other:{anyOf:n,default:e.other,description:m(b,90,"Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:m(b,91,"Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const l=e?"on":"off";return{comments:l,strings:l,other:l}}if(!e||typeof e!="object")return this.defaultValue;const{other:n,comments:r,strings:i}=e,s=["on","inline","off"];let o,a,c;return typeof n=="boolean"?o=n?"on":"off":o=pt(n,this.defaultValue.other,s),typeof r=="boolean"?a=r?"on":"off":a=pt(r,this.defaultValue.comments,s),typeof i=="boolean"?c=i?"on":"off":c=pt(i,this.defaultValue.strings,s),{other:o,comments:a,strings:c}}}class t7 extends Ke{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[m(b,92,"Line numbers are not rendered."),m(b,93,"Line numbers are rendered as absolute number."),m(b,94,"Line numbers are rendered as distance in lines to cursor position."),m(b,95,"Line numbers are rendered every 10 lines.")],default:"on",description:m(b,96,"Controls the display of line numbers.")})}validate(e){let n=this.defaultValue.renderType,r=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(n=4,r=e):e==="interval"?n=3:e==="relative"?n=2:e==="on"?n=1:n=0),{renderType:n,renderFn:r}}}class n7 extends Ke{constructor(){const e=[],n={type:"number",description:m(b,97,"Number of monospace characters at which this editor ruler will render.")};super(102,"rulers",e,{type:"array",items:{anyOf:[n,{type:["object"],properties:{column:n,color:{type:"string",description:m(b,98,"Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:m(b,99,"Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const n=[];for(const r of e)if(typeof r=="number")n.push({column:je.clampedInt(r,0,0,1e4),color:null});else if(r&&typeof r=="object"){const i=r;n.push({column:je.clampedInt(i.column,0,0,1e4),color:i.color})}return n.sort((r,i)=>r.column-i.column),n}return this.defaultValue}}class r7 extends Ke{constructor(){super(92,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function d0(t,e){if(typeof t!="string")return e;switch(t){case"hidden":return 2;case"visible":return 3;default:return 1}}class i7 extends Ke{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(103,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[m(b,100,"The vertical scrollbar will be visible only when necessary."),m(b,101,"The vertical scrollbar will always be visible."),m(b,102,"The vertical scrollbar will always be hidden.")],default:"auto",description:m(b,103,"Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[m(b,104,"The horizontal scrollbar will be visible only when necessary."),m(b,105,"The horizontal scrollbar will always be visible."),m(b,106,"The horizontal scrollbar will always be hidden.")],default:"auto",description:m(b,107,"Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:m(b,108,"The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:m(b,109,"The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:m(b,110,"Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:m(b,111,"When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e,r=je.clampedInt(n.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),i=je.clampedInt(n.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:je.clampedInt(n.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:d0(n.vertical,this.defaultValue.vertical),horizontal:d0(n.horizontal,this.defaultValue.horizontal),useShadows:Z(n.useShadows,this.defaultValue.useShadows),verticalHasArrows:Z(n.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:Z(n.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:Z(n.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:Z(n.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:r,horizontalSliderSize:je.clampedInt(n.horizontalSliderSize,r,0,1e3),verticalScrollbarSize:i,verticalSliderSize:je.clampedInt(n.verticalSliderSize,i,0,1e3),scrollByPage:Z(n.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:Z(n.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}const tr="inUntrustedWorkspace",Ci={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class s7 extends Ke{constructor(){const e={nonBasicASCII:tr,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:tr,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",e,{[Ci.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,tr],default:e.nonBasicASCII,description:m(b,112,"Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[Ci.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:m(b,113,"Controls whether characters that just reserve space or have no width at all are highlighted.")},[Ci.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:m(b,114,"Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[Ci.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,tr],default:e.includeComments,description:m(b,115,"Controls whether characters in comments should also be subject to Unicode highlighting.")},[Ci.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,tr],default:e.includeStrings,description:m(b,116,"Controls whether characters in strings should also be subject to Unicode highlighting.")},[Ci.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:m(b,117,"Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[Ci.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:m(b,118,"Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,n){let r=!1;n.allowedCharacters&&e&&(To(e.allowedCharacters,n.allowedCharacters)||(e={...e,allowedCharacters:n.allowedCharacters},r=!0)),n.allowedLocales&&e&&(To(e.allowedLocales,n.allowedLocales)||(e={...e,allowedLocales:n.allowedLocales},r=!0));const i=super.applyUpdate(e,n);return r?new Ma(i.newValue,!0):i}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{nonBasicASCII:Ts(n.nonBasicASCII,tr,[!0,!1,tr]),invisibleCharacters:Z(n.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:Z(n.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:Ts(n.includeComments,tr,[!0,!1,tr]),includeStrings:Ts(n.includeStrings,tr,[!0,!1,tr]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,n){if(typeof e!="object"||!e)return n;const r={};for(const[i,s]of Object.entries(e))s===!0&&(r[i]=!0);return r}}class o7 extends Ke{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:m(b,119,"Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[m(b,120,"Show the inline suggestion toolbar whenever an inline suggestion is shown."),m(b,121,"Show the inline suggestion toolbar when hovering over an inline suggestion."),m(b,122,"Never show the inline suggestion toolbar.")],description:m(b,123,"Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:m(b,124,"Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:m(b,125,"Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Z(n.enabled,this.defaultValue.enabled),mode:pt(n.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:pt(n.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:Z(n.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:Z(n.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:on.string(n.fontFamily,this.defaultValue.fontFamily)}}}class a7 extends Ke{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:m(b,126,"Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[m(b,127,"Show the inline edit toolbar whenever an inline suggestion is shown."),m(b,128,"Show the inline edit toolbar when hovering over an inline suggestion."),m(b,129,"Never show the inline edit toolbar.")],description:m(b,130,"Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:m(b,131,"Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:m(b,132,"Controls whether to color the background of inline edits.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Z(n.enabled,this.defaultValue.enabled),showToolbar:pt(n.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:on.string(n.fontFamily,this.defaultValue.fontFamily),keepOnBlur:Z(n.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:Z(n.backgroundColoring,this.defaultValue.backgroundColoring)}}}class c7 extends Ke{constructor(){const e={enabled:u0.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:u0.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:m(b,133,"Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:m(b,134,"Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Z(n.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:Z(n.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class l7 extends Ke{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[m(b,135,"Enables bracket pair guides."),m(b,136,"Enables bracket pair guides only for the active bracket pair."),m(b,137,"Disables bracket pair guides.")],default:e.bracketPairs,description:m(b,138,"Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[m(b,139,"Enables horizontal guides as addition to vertical bracket pair guides."),m(b,140,"Enables horizontal guides only for the active bracket pair."),m(b,141,"Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:m(b,142,"Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:m(b,143,"Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:m(b,144,"Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[m(b,145,"Highlights the active indent guide."),m(b,146,"Highlights the active indent guide even if bracket guides are highlighted."),m(b,147,"Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:m(b,148,"Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{bracketPairs:Ts(n.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:Ts(n.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:Z(n.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:Z(n.indentation,this.defaultValue.indentation),highlightActiveIndentation:Ts(n.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function Ts(t,e,n){const r=n.indexOf(t);return r===-1?e:n[r]}class u7 extends Ke{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(118,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[m(b,149,"Insert suggestion without overwriting text right of the cursor."),m(b,150,"Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:m(b,151,"Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:m(b,152,"Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:m(b,153,"Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:m(b,154,"Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[m(b,155,"Always select a suggestion when automatically triggering IntelliSense."),m(b,156,"Never select a suggestion when automatically triggering IntelliSense."),m(b,157,"Select a suggestion only when triggering IntelliSense from a trigger character."),m(b,158,"Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:m(b,159,"Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:m(b,160,"Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:m(b,161,"Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:m(b,162,"Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:m(b,163,"Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:m(b,164,"Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:m(b,165,"This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:m(b,166,"This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:m(b,167,"When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:m(b,168,"When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:m(b,169,"When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:m(b,170,"When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:m(b,171,"When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:m(b,172,"When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:m(b,173,"When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:m(b,174,"When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:m(b,175,"When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:m(b,176,"When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:m(b,177,"When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:m(b,178,"When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:m(b,179,"When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:m(b,180,"When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:m(b,181,"When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:m(b,182,"When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:m(b,183,"When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:m(b,184,"When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:m(b,185,"When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:m(b,186,"When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:m(b,187,"When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:m(b,188,"When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:m(b,189,"When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:m(b,190,"When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:m(b,191,"When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:m(b,192,"When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:m(b,193,"When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:m(b,194,"When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:m(b,195,"When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:m(b,196,"When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{insertMode:pt(n.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:Z(n.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:Z(n.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:Z(n.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:Z(n.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:pt(n.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:Z(n.showIcons,this.defaultValue.showIcons),showStatusBar:Z(n.showStatusBar,this.defaultValue.showStatusBar),preview:Z(n.preview,this.defaultValue.preview),previewMode:pt(n.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:Z(n.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:Z(n.showMethods,this.defaultValue.showMethods),showFunctions:Z(n.showFunctions,this.defaultValue.showFunctions),showConstructors:Z(n.showConstructors,this.defaultValue.showConstructors),showDeprecated:Z(n.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:Z(n.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:Z(n.showFields,this.defaultValue.showFields),showVariables:Z(n.showVariables,this.defaultValue.showVariables),showClasses:Z(n.showClasses,this.defaultValue.showClasses),showStructs:Z(n.showStructs,this.defaultValue.showStructs),showInterfaces:Z(n.showInterfaces,this.defaultValue.showInterfaces),showModules:Z(n.showModules,this.defaultValue.showModules),showProperties:Z(n.showProperties,this.defaultValue.showProperties),showEvents:Z(n.showEvents,this.defaultValue.showEvents),showOperators:Z(n.showOperators,this.defaultValue.showOperators),showUnits:Z(n.showUnits,this.defaultValue.showUnits),showValues:Z(n.showValues,this.defaultValue.showValues),showConstants:Z(n.showConstants,this.defaultValue.showConstants),showEnums:Z(n.showEnums,this.defaultValue.showEnums),showEnumMembers:Z(n.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:Z(n.showKeywords,this.defaultValue.showKeywords),showWords:Z(n.showWords,this.defaultValue.showWords),showColors:Z(n.showColors,this.defaultValue.showColors),showFiles:Z(n.showFiles,this.defaultValue.showFiles),showReferences:Z(n.showReferences,this.defaultValue.showReferences),showFolders:Z(n.showFolders,this.defaultValue.showFolders),showTypeParameters:Z(n.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:Z(n.showSnippets,this.defaultValue.showSnippets),showUsers:Z(n.showUsers,this.defaultValue.showUsers),showIssues:Z(n.showIssues,this.defaultValue.showIssues)}}}class d7 extends Ke{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:m(b,197,"Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:m(b,198,"Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:Z(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:Z(e.selectSubwords,this.defaultValue.selectSubwords)}}}class f7 extends Ke{constructor(){const e=[];super(130,"wordSegmenterLocales",e,{anyOf:[{description:m(b,199,"Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:m(b,199,"Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if(typeof e=="string"&&(e=[e]),Array.isArray(e)){const n=[];for(const r of e)if(typeof r=="string")try{Intl.Segmenter.supportedLocalesOf(r).length>0&&n.push(r)}catch{}return n}return this.defaultValue}}class h7 extends Ke{constructor(){super(138,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[m(b,200,"No indentation. Wrapped lines begin at column 1."),m(b,201,"Wrapped lines get the same indentation as the parent."),m(b,202,"Wrapped lines get +1 indentation toward the parent."),m(b,203,"Wrapped lines get +2 indentation toward the parent.")],description:m(b,204,"Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,n,r){return n.get(2)===2?0:r}}class p7 extends aa{constructor(){super(146)}compute(e,n,r){const i=n.get(145);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:i.isWordWrapMinified,isViewportWrapping:i.isViewportWrapping,wrappingColumn:i.wrappingColumn}}}class g7 extends Ke{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:m(b,205,"Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:m(b,206,"Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[m(b,207,"Show the drop selector widget after a file is dropped into the editor."),m(b,208,"Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Z(n.enabled,this.defaultValue.enabled),showDropSelector:pt(n.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class m7 extends Ke{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:m(b,209,"Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:m(b,210,"Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[m(b,211,"Show the paste selector widget after content is pasted into the editor."),m(b,212,"Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Z(n.enabled,this.defaultValue.enabled),showPasteSelector:pt(n.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const y7="Consolas, 'Courier New', monospace",b7="Menlo, Monaco, 'Courier New', monospace",v7="'Droid Sans Mono', 'monospace', monospace",Wr={fontFamily:Sr?b7:Za?v7:y7,fontWeight:"normal",fontSize:Sr?12:14,lineHeight:0,letterSpacing:0},w7=[];function F(t){return w7[t.id]=t,t}F(new Se(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:m(b,213,"Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),F(new tt(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",m(b,214,"Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:m(b,215,"Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),F(new Mw),F(new je(3,"accessibilityPageSize",10,1,1073741824,{description:m(b,216,"Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),F(new on(4,"ariaLabel",m(b,217,"Editor content"))),F(new Se(5,"ariaRequired",!1,void 0)),F(new Se(8,"screenReaderAnnounceInlineSuggestion",!0,{description:m(b,218,"Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),F(new tt(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m(b,219,"Use language configurations to determine when to autoclose brackets."),m(b,220,"Autoclose brackets only when the cursor is to the left of whitespace."),""],description:m(b,221,"Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),F(new tt(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m(b,222,"Use language configurations to determine when to autoclose comments."),m(b,223,"Autoclose comments only when the cursor is to the left of whitespace."),""],description:m(b,224,"Controls whether the editor should automatically close comments after the user adds an opening comment.")})),F(new tt(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",m(b,225,"Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:m(b,226,"Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),F(new tt(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",m(b,227,"Type over closing quotes or brackets only if they were automatically inserted."),""],description:m(b,228,"Controls whether the editor should type over closing quotes or brackets.")})),F(new tt(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m(b,229,"Use language configurations to determine when to autoclose quotes."),m(b,230,"Autoclose quotes only when the cursor is to the left of whitespace."),""],description:m(b,231,"Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),F(new ya(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],Iw,{enumDescriptions:[m(b,232,"The editor will not insert indentation automatically."),m(b,233,"The editor will keep the current line's indentation."),m(b,234,"The editor will keep the current line's indentation and honor language defined brackets."),m(b,235,"The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),m(b,236,"The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:m(b,237,"Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),F(new Se(13,"automaticLayout",!1)),F(new tt(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[m(b,238,"Use language configurations to determine when to automatically surround selections."),m(b,239,"Surround with quotes but not brackets."),m(b,240,"Surround with brackets but not quotes."),""],description:m(b,241,"Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),F(new c7),F(new l7),F(new Se(116,"stickyTabStops",!1,{description:m(b,242,"Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),F(new Se(17,"codeLens",!0,{description:m(b,243,"Controls whether the editor shows CodeLens.")})),F(new on(18,"codeLensFontFamily","",{description:m(b,244,"Controls the font family for CodeLens.")})),F(new je(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:m(b,245,"Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),F(new Se(20,"colorDecorators",!0,{description:m(b,246,"Controls whether the editor should render the inline color decorators and color picker.")})),F(new tt(148,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[m(b,247,"Make the color picker appear both on click and hover of the color decorator"),m(b,248,"Make the color picker appear on hover of the color decorator"),m(b,249,"Make the color picker appear on click of the color decorator")],description:m(b,250,"Controls the condition to make a color picker appear from a color decorator")})),F(new je(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:m(b,251,"Controls the max number of color decorators that can be rendered in an editor at once.")})),F(new Se(22,"columnSelection",!1,{description:m(b,252,"Enable that the selection with the mouse and keys is doing column selection.")})),F(new Ow),F(new Se(24,"contextmenu",!0)),F(new Se(25,"copyWithSyntaxHighlighting",!0,{description:m(b,253,"Controls whether syntax highlighting should be copied into the clipboard.")})),F(new ya(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],Aw,{description:m(b,254,"Control the cursor animation style.")})),F(new tt(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[m(b,255,"Smooth caret animation is disabled."),m(b,256,"Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),m(b,257,"Smooth caret animation is always enabled.")],description:m(b,258,"Controls whether the smooth caret animation should be enabled.")})),F(new ya(28,"cursorStyle",yr.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],Fw,{description:m(b,259,"Controls the cursor style.")})),F(new je(29,"cursorSurroundingLines",0,0,1073741824,{description:m(b,260,"Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),F(new tt(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[m(b,261,"`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),m(b,262,"`cursorSurroundingLines` is enforced always.")],markdownDescription:m(b,263,"Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),F(new je(31,"cursorWidth",0,0,1073741824,{markdownDescription:m(b,264,"Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),F(new Se(32,"disableLayerHinting",!1)),F(new Se(33,"disableMonospaceOptimizations",!1)),F(new Se(34,"domReadOnly",!1)),F(new Se(35,"dragAndDrop",!0,{description:m(b,265,"Controls whether the editor should allow moving selections via drag and drop.")})),F(new Nw),F(new g7),F(new Bw),F(new tt(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[m(b,266,"Use a new rendering method with svgs."),m(b,267,"Use a new rendering method with font characters."),m(b,268,"Use the stable rendering method.")],description:m(b,269,"Controls whether whitespace is rendered with a new, experimental method.")})),F(new on(39,"extraEditorClassName","")),F(new ur(40,"fastScrollSensitivity",5,t=>t<=0?5:t,{markdownDescription:m(b,270,"Scrolling speed multiplier when pressing `Alt`.")})),F(new $w),F(new Se(42,"fixedOverflowWidgets",!1)),F(new Se(43,"folding",!0,{description:m(b,271,"Controls whether the editor has code folding enabled.")})),F(new tt(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[m(b,272,"Use a language-specific folding strategy if available, else the indentation-based one."),m(b,273,"Use the indentation-based folding strategy.")],description:m(b,274,"Controls the strategy for computing folding ranges.")})),F(new Se(45,"foldingHighlight",!0,{description:m(b,275,"Controls whether the editor should highlight folded ranges.")})),F(new Se(46,"foldingImportsByDefault",!1,{description:m(b,276,"Controls whether the editor automatically collapses import ranges.")})),F(new je(47,"foldingMaximumRegions",5e3,10,65e3,{description:m(b,277,"The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),F(new Se(48,"unfoldOnClickAfterEndOfLine",!1,{description:m(b,278,"Controls whether clicking on the empty content after a folded line will unfold the line.")})),F(new on(49,"fontFamily",Wr.fontFamily,{description:m(b,279,"Controls the font family.")})),F(new qw),F(new R1),F(new jw),F(new E1),F(new x1),F(new Se(55,"formatOnPaste",!1,{description:m(b,280,"Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),F(new Se(56,"formatOnType",!1,{description:m(b,281,"Controls whether the editor should automatically format the line after typing.")})),F(new Se(57,"glyphMargin",!0,{description:m(b,282,"Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),F(new Hw),F(new Se(59,"hideCursorInOverviewRuler",!1,{description:m(b,283,"Controls whether the cursor should be hidden in the overview ruler.")})),F(new Ww),F(new Se(61,"inDiffEditor",!1)),F(new ur(64,"letterSpacing",Wr.letterSpacing,t=>ur.clamp(t,-5,20),{description:m(b,284,"Controls the letter spacing in pixels.")})),F(new zw),F(new Kw),F(new Gw),F(new t7),F(new je(69,"lineNumbersMinChars",5,1,300)),F(new Se(70,"linkedEditing",!1,{description:m(b,285,"Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),F(new Se(71,"links",!0,{description:m(b,286,"Controls whether the editor should detect links and make them clickable.")})),F(new tt(72,"matchBrackets","always",["always","near","never"],{description:m(b,287,"Highlight matching brackets.")})),F(new Qw),F(new tt(74,"mouseStyle","text",["text","default","copy"])),F(new ur(75,"mouseWheelScrollSensitivity",1,t=>t===0?1:t,{markdownDescription:m(b,288,"A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),F(new Se(76,"mouseWheelZoom",!1,{markdownDescription:Sr?m(b,289,"Zoom the font of the editor when using mouse wheel and holding `Cmd`."):m(b,290,"Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),F(new Se(77,"multiCursorMergeOverlapping",!0,{description:m(b,291,"Merge multiple cursors when they are overlapping.")})),F(new ya(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],Jw,{markdownEnumDescriptions:[m(b,292,"Maps to `Control` on Windows and Linux and to `Command` on macOS."),m(b,293,"Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:m(b,294,"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),F(new tt(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[m(b,295,"Each cursor pastes a single line of the text."),m(b,296,"Each cursor pastes the full text.")],markdownDescription:m(b,297,"Controls pasting when the line count of the pasted text matches the cursor count.")})),F(new je(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:m(b,298,"Controls the max number of cursors that can be in an active editor at once.")})),F(new tt(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[m(b,299,"Does not highlight occurrences."),m(b,300,"Highlights occurrences only in the current file."),m(b,301,"Experimental: Highlights occurrences across all valid open files.")],markdownDescription:m(b,302,"Controls whether occurrences should be highlighted across open files.")})),F(new Se(82,"overviewRulerBorder",!0,{description:m(b,303,"Controls whether a border should be drawn around the overview ruler.")})),F(new je(83,"overviewRulerLanes",3,0,3)),F(new Yw),F(new m7),F(new Xw),F(new tt(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[m(b,304,"Focus the tree when opening peek"),m(b,305,"Focus the editor when opening peek")],description:m(b,306,"Controls whether to focus the inline editor or the tree in the peek widget.")})),F(new Se(88,"definitionLinkOpensInPeek",!1,{description:m(b,307,"Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),F(new e7),F(new je(90,"quickSuggestionsDelay",10,0,1073741824,{description:m(b,308,"Controls the delay in milliseconds after which quick suggestions will show up.")})),F(new Se(91,"readOnly",!1)),F(new r7),F(new Se(93,"renameOnType",!1,{description:m(b,309,"Controls whether the editor auto renames on type."),markdownDeprecationMessage:m(b,310,"Deprecated, use `editor.linkedEditing` instead.")})),F(new Se(94,"renderControlCharacters",!0,{description:m(b,311,"Controls whether the editor should render control characters."),restricted:!0})),F(new tt(95,"renderFinalNewline",Za?"dimmed":"on",["off","on","dimmed"],{description:m(b,312,"Render last line number when the file ends with a newline.")})),F(new tt(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",m(b,313,"Highlights both the gutter and the current line.")],description:m(b,314,"Controls how the editor should render the current line highlight.")})),F(new Se(97,"renderLineHighlightOnlyWhenFocus",!1,{description:m(b,315,"Controls if the editor should render the current line highlight only when the editor is focused.")})),F(new tt(98,"renderValidationDecorations","editable",["editable","on","off"])),F(new tt(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",m(b,316,"Render whitespace characters except for single spaces between words."),m(b,317,"Render whitespace characters only on selected text."),m(b,318,"Render only trailing whitespace characters."),""],description:m(b,319,"Controls how the editor should render whitespace characters.")})),F(new je(100,"revealHorizontalRightPadding",15,0,1e3)),F(new Se(101,"roundedSelection",!0,{description:m(b,320,"Controls whether selections should have rounded corners.")})),F(new n7),F(new i7),F(new je(104,"scrollBeyondLastColumn",4,0,1073741824,{description:m(b,321,"Controls the number of extra characters beyond which the editor will scroll horizontally.")})),F(new Se(105,"scrollBeyondLastLine",!0,{description:m(b,322,"Controls whether the editor will scroll beyond the last line.")})),F(new Se(106,"scrollPredominantAxis",!0,{description:m(b,323,"Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),F(new Se(107,"selectionClipboard",!0,{description:m(b,324,"Controls whether the Linux primary clipboard should be supported."),included:Za})),F(new Se(108,"selectionHighlight",!0,{description:m(b,325,"Controls whether the editor should highlight matches similar to the selection.")})),F(new Se(109,"selectOnLineNumbers",!0)),F(new tt(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[m(b,326,"Always show the folding controls."),m(b,327,"Never show the folding controls and reduce the gutter size."),m(b,328,"Only show the folding controls when the mouse is over the gutter.")],description:m(b,329,"Controls when the folding controls on the gutter are shown.")})),F(new Se(111,"showUnused",!0,{description:m(b,330,"Controls fading out of unused code.")})),F(new Se(140,"showDeprecated",!0,{description:m(b,331,"Controls strikethrough deprecated variables.")})),F(new Vw),F(new tt(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[m(b,332,"Show snippet suggestions on top of other suggestions."),m(b,333,"Show snippet suggestions below other suggestions."),m(b,334,"Show snippets suggestions with other suggestions."),m(b,335,"Do not show snippet suggestions.")],description:m(b,336,"Controls whether snippets are shown with other suggestions and how they are sorted.")})),F(new d7),F(new Se(114,"smoothScrolling",!1,{description:m(b,337,"Controls whether the editor will scroll using an animation.")})),F(new je(117,"stopRenderingLineAfter",1e4,-1,1073741824)),F(new u7),F(new o7),F(new a7),F(new Se(149,"inlineCompletionsAccessibilityVerbose",!1,{description:m(b,338,"Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),F(new je(119,"suggestFontSize",0,0,1e3,{markdownDescription:m(b,339,"Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),F(new je(120,"suggestLineHeight",0,0,1e3,{markdownDescription:m(b,340,"Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),F(new Se(121,"suggestOnTriggerCharacters",!0,{description:m(b,341,"Controls whether suggestions should automatically show up when typing trigger characters.")})),F(new tt(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[m(b,342,"Always select the first suggestion."),m(b,343,"Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),m(b,344,"Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:m(b,345,"Controls how suggestions are pre-selected when showing the suggest list.")})),F(new tt(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[m(b,346,"Tab complete will insert the best matching suggestion when pressing tab."),m(b,347,"Disable tab completions."),m(b,348,"Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:m(b,349,"Enables tab completions.")})),F(new je(124,"tabIndex",0,-1,1073741824)),F(new s7),F(new tt(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[m(b,350,"Unusual line terminators are automatically removed."),m(b,351,"Unusual line terminators are ignored."),m(b,352,"Unusual line terminators prompt to be removed.")],description:m(b,353,"Remove unusual line terminators that might cause problems.")})),F(new Se(127,"useShadowDOM",!0)),F(new Se(128,"useTabStops",!0,{description:m(b,354,"Spaces and tabs are inserted and deleted in alignment with tab stops.")})),F(new tt(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[m(b,355,"Use the default line break rule."),m(b,356,"Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:m(b,357,"Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),F(new f7),F(new on(131,"wordSeparators",ay,{description:m(b,358,"Characters that will be used as word separators when doing word related navigations or operations.")})),F(new tt(132,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[m(b,359,"Lines will never wrap."),m(b,360,"Lines will wrap at the viewport width."),m(b,361,"Lines will wrap at `#editor.wordWrapColumn#`."),m(b,362,"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:m(b,363,"Controls how lines should wrap.")})),F(new on(133,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),F(new on(134,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),F(new je(135,"wordWrapColumn",80,1,1073741824,{markdownDescription:m(b,364,"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),F(new tt(136,"wordWrapOverride1","inherit",["off","on","inherit"])),F(new tt(137,"wordWrapOverride2","inherit",["off","on","inherit"])),F(new Lw),F(new Se(147,"defaultColorDecorators",!1,{markdownDescription:m(b,365,"Controls whether inline color decorations should be shown using the default document color provider")})),F(new Zw),F(new Se(144,"tabFocusMode",!1,{markdownDescription:m(b,366,"Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),F(new ko),F(new p7),F(new h7),F(new Uw);let C7=class{constructor(e){this.value=e,this.isTrustedTelemetryValue=!0}},P1;function _7(t){P1=t}function Qt(t){return new Proxy({},{get(e,n){if(P1==null)throw new Error("Default api is not ready yet, do not forget to import 'vscode/localExtensionHost' and wait for services initialization");return P1[t][n]}})}const S7={version:"1.89.1",tasks:Qt("tasks"),notebooks:Qt("notebooks"),scm:Qt("scm"),comments:Qt("comments"),authentication:Qt("authentication"),tests:Qt("tests"),extensions:Qt("extensions"),debug:Qt("debug"),env:Qt("env"),commands:Qt("commands"),window:Qt("window"),workspace:Qt("workspace"),languages:Qt("languages"),l10n:Qt("l10n"),interactive:Qt("interactive"),ai:Qt("ai"),chat:Qt("chat"),speech:Qt("speech"),Breakpoint:Ws,TerminalOutputAnchor:mf,ChatResultFeedbackKind:g1,ChatVariableLevel:h1,ChatCompletionItem:Cw,CallHierarchyIncomingCall:L5,CallHierarchyItem:F5,CallHierarchyOutgoingCall:N5,CancellationError:L2,CancellationTokenSource:W4,CandidatePortSource:C1,CodeAction:Pf,CodeActionKind:bt,CodeActionTriggerKind:Ef,CodeLens:Of,Color:fc,ColorInformation:th,ColorPresentation:nh,ColorThemeKind:zh,CommentMode:Fh,CommentState:Lh,CommentThreadCollapsibleState:Ah,CommentThreadState:Nh,CompletionItem:Uf,CompletionItemKind:dc,CompletionItemTag:Wf,CompletionList:zf,CompletionTriggerKind:Hf,ConfigurationTarget:yh,CustomExecution:iy,DebugAdapterExecutable:Ch,DebugAdapterInlineImplementation:Dh,DebugAdapterNamedPipeServer:Sh,DebugAdapterServer:_h,DebugConfigurationProviderTriggerKind:_1,DebugConsoleMode:qh,DebugVisualization:Q5,DecorationRangeBehavior:Zf,Diagnostic:Sf,DiagnosticRelatedInformation:ac,DiagnosticSeverity:Uo,DiagnosticTag:_f,Disposable:yf,DocumentHighlight:Df,DocumentHighlightKind:Bo,MultiDocumentHighlight:Tf,DocumentLink:eh,DocumentSymbol:xf,EndOfLine:vf,EnvironmentVariableMutatorType:wf,EvaluatableExpression:Th,InlineValueText:Rh,InlineValueVariableLookup:xh,InlineValueEvaluatableExpression:Eh,InlineCompletionTriggerKind:kh,EventEmitter:gr,ExtensionKind:Uh,ExtensionMode:t1,ExternalUriOpenerPriority:c1,FileChangeType:Ph,FileDecoration:Ym,FileDecoration2:Ym,FileSystemError:Ih,FileType:sf,FilePermission:of,FoldingRange:Mh,FoldingRangeKind:Oh,FunctionBreakpoint:wh,InlineCompletionItem:Bf,InlineCompletionList:Vf,Hover:cc,IndentAction:v1,Location:zo,MarkdownString:uc,OverviewRulerLane:S1,ParameterInformation:Af,PortAutoForwardAction:u1,Position:it,ProcessExecution:hc,ProgressLocation:dh,QuickInputButtons:jh,Range:Ot,RelativePattern:bh,Selection:bf,SelectionRange:If,SemanticTokens:$h,SemanticTokensBuilder:V5,SemanticTokensEdit:K5,SemanticTokensEdits:G5,SemanticTokensLegend:z5,ShellExecution:pc,ShellQuoting:lh,SignatureHelp:Lf,SignatureHelpTriggerKind:Nf,SignatureInformation:Ff,SnippetString:oc,SourceBreakpoint:vh,StandardTokenType:r1,StatusBarAlignment:Gf,SymbolInformation:Rf,SymbolKind:lc,SymbolTag:kf,Task:uh,TaskGroup:ch,TaskPanelKind:ah,TaskRevealKind:oh,TaskScope:Go,TerminalLink:$5,TerminalQuickFixTerminalCommand:j5,TerminalQuickFixOpener:q5,TerminalLocation:sh,TerminalProfile:H5,TerminalExitReason:ih,TextDocumentSaveReason:Jf,TextEdit:ic,SnippetTextEdit:ny,TextEditorCursorStyle:yr,TextEditorLineNumbersStyle:Qf,TextEditorRevealType:Yf,TextEditorSelectionChangeKind:Vo,SyntaxTokenType:Ko,TextDocumentChangeReason:Xf,ThemeColor:mh,ThemeIcon:Kr,TreeItem:fh,TreeItemCheckboxState:Qo,TreeItemCollapsibleState:Ds,TypeHierarchyItem:uw,UIKind:D1,Uri:rt,ViewColumn:Kf,WorkspaceEdit:Cf,DocumentDropEdit:gh,DocumentPasteEdit:W5,InlayHint:jf,InlayHintLabelPart:qf,InlayHintKind:$f,RemoteAuthorityResolverError:A5,ResolvedAuthority:M5,ManagedResolvedAuthority:O5,SourceControlInputBoxValidationType:rh,ExtensionRuntime:n1,TimelineItem:e1,NotebookRange:yo,NotebookCellKind:Gh,NotebookCellExecutionState:Qh,NotebookCellData:J5,NotebookData:Y5,NotebookRendererScript:tw,NotebookCellStatusBarAlignment:Jh,NotebookEditorRevealType:Yh,NotebookCellOutput:Z5,NotebookCellOutputItem:X5,NotebookCellStatusBarItem:ew,NotebookControllerAffinity:Xh,NotebookControllerAffinity2:Zh,NotebookEdit:sc,NotebookKernelSourceAction:nw,PortAttributes:iw,LinkedEditingRanges:rw,TestResultState:i1,TestRunRequest:o1,TestMessage:mc,TestMessage2:mc,TestTag:a1,TestRunProfileKind:s1,TextSearchCompleteMessageType:T1,DataTransfer:ph,DataTransferItem:hh,FileCoverage:ow,StatementCoverage:aw,BranchCoverage:cw,FunctionCoverage:lw,WorkspaceTrustState:l1,LanguageStatusSeverity:Mf,QuickPickItemKind:Hh,InputBoxValidationSeverity:Wh,TabInputText:dw,TabInputTextDiff:fw,TabInputTextMerge:hw,TabInputCustom:pw,TabInputNotebook:mw,TabInputNotebookDiff:yw,TabInputWebview:gw,TabInputTerminal:bw,TabInputInteractiveWindow:vw,TabInputChat:ww,TelemetryTrustedValue:C7,LogLevel:ar,EditSessionIdentityMatch:k1,InteractiveSessionVoteDirection:d1,ChatCopyKind:f1,InteractiveEditorResponseFeedbackKind:p1,RelatedInformationType:m1,SpeechToTextStatus:y1,KeywordRecognitionStatus:b1},{version:D7,tasks:T7,notebooks:k7,scm:R7,comments:x7,authentication:E7,tests:P7,extensions:I7,debug:M7,env:O7,commands:A7,window:F7,workspace:L7,languages:N7,l10n:$7,interactive:q7,ai:j7,chat:H7,speech:W7,Breakpoint:U7,TerminalOutputAnchor:z7,ChatResultFeedbackKind:B7,ChatVariableLevel:V7,ChatCompletionItem:K7,CallHierarchyIncomingCall:G7,CallHierarchyItem:Q7,CallHierarchyOutgoingCall:J7,CancellationError:Y7,CancellationTokenSource:X7,CandidatePortSource:Z7,CodeAction:e9,CodeActionKind:t9,CodeActionTriggerKind:n9,CodeLens:r9,Color:i9,ColorInformation:s9,ColorPresentation:o9,ColorThemeKind:a9,CommentMode:c9,CommentState:l9,CommentThreadCollapsibleState:u9,CommentThreadState:d9,CompletionItem:f9,CompletionItemKind:h9,CompletionItemTag:p9,CompletionList:g9,CompletionTriggerKind:m9,ConfigurationTarget:y9,CustomExecution:b9,DebugAdapterExecutable:v9,DebugAdapterInlineImplementation:w9,DebugAdapterNamedPipeServer:C9,DebugAdapterServer:_9,DebugConfigurationProviderTriggerKind:S9,DebugConsoleMode:D9,DebugVisualization:T9,DecorationRangeBehavior:k9,Diagnostic:R9,DiagnosticRelatedInformation:x9,DiagnosticSeverity:E9,DiagnosticTag:P9,Disposable:I9,DocumentHighlight:M9,DocumentHighlightKind:O9,MultiDocumentHighlight:A9,DocumentLink:F9,DocumentSymbol:L9,EndOfLine:N9,EnvironmentVariableMutatorType:$9,EvaluatableExpression:q9,InlineValueText:j9,InlineValueVariableLookup:H9,InlineValueEvaluatableExpression:W9,InlineCompletionTriggerKind:U9,EventEmitter:z9,ExtensionKind:B9,ExtensionMode:V9,ExternalUriOpenerPriority:K9,FileChangeType:G9,FileDecoration:Q9,FileDecoration2:J9,FileSystemError:Y9,FileType:X9,FilePermission:Z9,FoldingRange:e8,FoldingRangeKind:t8,FunctionBreakpoint:n8,InlineCompletionItem:r8,InlineCompletionList:i8,Hover:s8,IndentAction:o8,Location:a8,MarkdownString:c8,OverviewRulerLane:l8,ParameterInformation:u8,PortAutoForwardAction:d8,Position:f8,ProcessExecution:h8,ProgressLocation:p8,QuickInputButtons:g8,Range:m8,RelativePattern:y8,Selection:b8,SelectionRange:v8,SemanticTokens:w8,SemanticTokensBuilder:C8,SemanticTokensEdit:_8,SemanticTokensEdits:S8,SemanticTokensLegend:D8,ShellExecution:T8,ShellQuoting:k8,SignatureHelp:R8,SignatureHelpTriggerKind:x8,SignatureInformation:E8,SnippetString:P8,SourceBreakpoint:I8,StandardTokenType:M8,StatusBarAlignment:O8,SymbolInformation:A8,SymbolKind:F8,SymbolTag:L8,Task:N8,TaskGroup:$8,TaskPanelKind:q8,TaskRevealKind:j8,TaskScope:H8,TerminalLink:W8,TerminalQuickFixTerminalCommand:U8,TerminalQuickFixOpener:z8,TerminalLocation:B8,TerminalProfile:V8,TerminalExitReason:K8,TextDocumentSaveReason:G8,TextEdit:Q8,SnippetTextEdit:J8,TextEditorCursorStyle:Y8,TextEditorLineNumbersStyle:X8,TextEditorRevealType:Z8,TextEditorSelectionChangeKind:eC,SyntaxTokenType:tC,TextDocumentChangeReason:nC,ThemeColor:rC,ThemeIcon:iC,TreeItem:sC,TreeItemCheckboxState:oC,TreeItemCollapsibleState:aC,TypeHierarchyItem:cC,UIKind:lC,Uri:uC,ViewColumn:dC,WorkspaceEdit:fC,DocumentDropEdit:hC,DocumentPasteEdit:pC,InlayHint:gC,InlayHintLabelPart:mC,InlayHintKind:yC,RemoteAuthorityResolverError:bC,ResolvedAuthority:vC,ManagedResolvedAuthority:wC,SourceControlInputBoxValidationType:CC,ExtensionRuntime:_C,TimelineItem:SC,NotebookRange:DC,NotebookCellKind:TC,NotebookCellExecutionState:kC,NotebookCellData:RC,NotebookData:xC,NotebookRendererScript:EC,NotebookCellStatusBarAlignment:PC,NotebookEditorRevealType:IC,NotebookCellOutput:MC,NotebookCellOutputItem:OC,NotebookCellStatusBarItem:AC,NotebookControllerAffinity:FC,NotebookControllerAffinity2:LC,NotebookEdit:NC,NotebookKernelSourceAction:$C,PortAttributes:qC,LinkedEditingRanges:jC,TestResultState:HC,TestRunRequest:WC,TestMessage:UC,TestMessage2:zC,TestTag:BC,TestRunProfileKind:VC,TextSearchCompleteMessageType:KC,DataTransfer:GC,DataTransferItem:QC,FileCoverage:JC,StatementCoverage:YC,BranchCoverage:XC,FunctionCoverage:ZC,WorkspaceTrustState:e_,LanguageStatusSeverity:t_,QuickPickItemKind:n_,InputBoxValidationSeverity:r_,TabInputText:i_,TabInputTextDiff:s_,TabInputTextMerge:o_,TabInputCustom:a_,TabInputNotebook:c_,TabInputNotebookDiff:l_,TabInputWebview:u_,TabInputTerminal:d_,TabInputInteractiveWindow:f_,TabInputChat:h_,TelemetryTrustedValue:p_,LogLevel:g_,EditSessionIdentityMatch:m_,InteractiveSessionVoteDirection:y_,ChatCopyKind:b_,InteractiveEditorResponseFeedbackKind:v_,RelatedInformationType:w_,SpeechToTextStatus:C_,KeywordRecognitionStatus:__}=S7,S_=Object.freeze(Object.defineProperty({__proto__:null,BranchCoverage:XC,Breakpoint:U7,CallHierarchyIncomingCall:G7,CallHierarchyItem:Q7,CallHierarchyOutgoingCall:J7,CancellationError:Y7,CancellationTokenSource:X7,CandidatePortSource:Z7,ChatCompletionItem:K7,ChatCopyKind:b_,ChatResultFeedbackKind:B7,ChatVariableLevel:V7,CodeAction:e9,CodeActionKind:t9,CodeActionTriggerKind:n9,CodeLens:r9,Color:i9,ColorInformation:s9,ColorPresentation:o9,ColorThemeKind:a9,CommentMode:c9,CommentState:l9,CommentThreadCollapsibleState:u9,CommentThreadState:d9,CompletionItem:f9,CompletionItemKind:h9,CompletionItemTag:p9,CompletionList:g9,CompletionTriggerKind:m9,ConfigurationTarget:y9,CustomExecution:b9,DataTransfer:GC,DataTransferItem:QC,DebugAdapterExecutable:v9,DebugAdapterInlineImplementation:w9,DebugAdapterNamedPipeServer:C9,DebugAdapterServer:_9,DebugConfigurationProviderTriggerKind:S9,DebugConsoleMode:D9,DebugVisualization:T9,DecorationRangeBehavior:k9,Diagnostic:R9,DiagnosticRelatedInformation:x9,DiagnosticSeverity:E9,DiagnosticTag:P9,Disposable:I9,DocumentDropEdit:hC,DocumentHighlight:M9,DocumentHighlightKind:O9,DocumentLink:F9,DocumentPasteEdit:pC,DocumentSymbol:L9,EditSessionIdentityMatch:m_,EndOfLine:N9,EnvironmentVariableMutatorType:$9,EvaluatableExpression:q9,EventEmitter:z9,ExtensionKind:B9,ExtensionMode:V9,ExtensionRuntime:_C,ExternalUriOpenerPriority:K9,FileChangeType:G9,FileCoverage:JC,FileDecoration:Q9,FileDecoration2:J9,FilePermission:Z9,FileSystemError:Y9,FileType:X9,FoldingRange:e8,FoldingRangeKind:t8,FunctionBreakpoint:n8,FunctionCoverage:ZC,Hover:s8,IndentAction:o8,InlayHint:gC,InlayHintKind:yC,InlayHintLabelPart:mC,InlineCompletionItem:r8,InlineCompletionList:i8,InlineCompletionTriggerKind:U9,InlineValueEvaluatableExpression:W9,InlineValueText:j9,InlineValueVariableLookup:H9,InputBoxValidationSeverity:r_,InteractiveEditorResponseFeedbackKind:v_,InteractiveSessionVoteDirection:y_,KeywordRecognitionStatus:__,LanguageStatusSeverity:t_,LinkedEditingRanges:jC,Location:a8,LogLevel:g_,ManagedResolvedAuthority:wC,MarkdownString:c8,MultiDocumentHighlight:A9,NotebookCellData:RC,NotebookCellExecutionState:kC,NotebookCellKind:TC,NotebookCellOutput:MC,NotebookCellOutputItem:OC,NotebookCellStatusBarAlignment:PC,NotebookCellStatusBarItem:AC,NotebookControllerAffinity:FC,NotebookControllerAffinity2:LC,NotebookData:xC,NotebookEdit:NC,NotebookEditorRevealType:IC,NotebookKernelSourceAction:$C,NotebookRange:DC,NotebookRendererScript:EC,OverviewRulerLane:l8,ParameterInformation:u8,PortAttributes:qC,PortAutoForwardAction:d8,Position:f8,ProcessExecution:h8,ProgressLocation:p8,QuickInputButtons:g8,QuickPickItemKind:n_,Range:m8,RelatedInformationType:w_,RelativePattern:y8,RemoteAuthorityResolverError:bC,ResolvedAuthority:vC,Selection:b8,SelectionRange:v8,SemanticTokens:w8,SemanticTokensBuilder:C8,SemanticTokensEdit:_8,SemanticTokensEdits:S8,SemanticTokensLegend:D8,ShellExecution:T8,ShellQuoting:k8,SignatureHelp:R8,SignatureHelpTriggerKind:x8,SignatureInformation:E8,SnippetString:P8,SnippetTextEdit:J8,SourceBreakpoint:I8,SourceControlInputBoxValidationType:CC,SpeechToTextStatus:C_,StandardTokenType:M8,StatementCoverage:YC,StatusBarAlignment:O8,SymbolInformation:A8,SymbolKind:F8,SymbolTag:L8,SyntaxTokenType:tC,TabInputChat:h_,TabInputCustom:a_,TabInputInteractiveWindow:f_,TabInputNotebook:c_,TabInputNotebookDiff:l_,TabInputTerminal:d_,TabInputText:i_,TabInputTextDiff:s_,TabInputTextMerge:o_,TabInputWebview:u_,Task:N8,TaskGroup:$8,TaskPanelKind:q8,TaskRevealKind:j8,TaskScope:H8,TelemetryTrustedValue:p_,TerminalExitReason:K8,TerminalLink:W8,TerminalLocation:B8,TerminalOutputAnchor:z7,TerminalProfile:V8,TerminalQuickFixOpener:z8,TerminalQuickFixTerminalCommand:U8,TestMessage:UC,TestMessage2:zC,TestResultState:HC,TestRunProfileKind:VC,TestRunRequest:WC,TestTag:BC,TextDocumentChangeReason:nC,TextDocumentSaveReason:G8,TextEdit:Q8,TextEditorCursorStyle:Y8,TextEditorLineNumbersStyle:X8,TextEditorRevealType:Z8,TextEditorSelectionChangeKind:eC,TextSearchCompleteMessageType:KC,ThemeColor:rC,ThemeIcon:iC,TimelineItem:SC,TreeItem:sC,TreeItemCheckboxState:oC,TreeItemCollapsibleState:aC,TypeHierarchyItem:cC,UIKind:lC,Uri:uC,ViewColumn:dC,WorkspaceEdit:fC,WorkspaceTrustState:e_,ai:j7,authentication:E7,chat:H7,commands:A7,comments:x7,debug:M7,env:O7,extensions:I7,interactive:q7,l10n:$7,languages:N7,notebooks:k7,scm:R7,setDefaultApi:_7,speech:W7,tasks:T7,tests:P7,version:D7,window:F7,workspace:L7},Symbol.toStringTag,{value:"Module"})),Re=y2(S_);var Ye={};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.asPromise=Ye.thenable=Ye.typedArray=Ye.stringArray=Ye.array=Ye.func=Ye.error=Ye.number=Ye.string=Ye.boolean=void 0;function D_(t){return t===!0||t===!1}Ye.boolean=D_;function cy(t){return typeof t=="string"||t instanceof String}Ye.string=cy;function T_(t){return typeof t=="number"||t instanceof Number}Ye.number=T_;function k_(t){return t instanceof Error}Ye.error=k_;function ly(t){return typeof t=="function"}Ye.func=ly;function uy(t){return Array.isArray(t)}Ye.array=uy;function R_(t){return uy(t)&&t.every(e=>cy(e))}Ye.stringArray=R_;function x_(t,e){return Array.isArray(t)&&t.every(e)}Ye.typedArray=x_;function dy(t){return t&&ly(t.then)}Ye.thenable=dy;function E_(t){return t instanceof Promise?t:dy(t)?new Promise((e,n)=>{t.then(r=>e(r),r=>n(r))}):Promise.resolve(t)}Ye.asPromise=E_;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});Be.generateUuid=Be.parse=Be.isUUID=Be.v4=Be.empty=void 0;class ap{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}}class $e extends ap{static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return $e._oneOf($e._chars)}constructor(){super([$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),"-",$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),"-","4",$e._randomHex(),$e._randomHex(),$e._randomHex(),"-",$e._oneOf($e._timeHighBits),$e._randomHex(),$e._randomHex(),$e._randomHex(),"-",$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex()].join(""))}}$e._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];$e._timeHighBits=["8","9","a","b"];Be.empty=new ap("00000000-0000-0000-0000-000000000000");function fy(){return new $e}Be.v4=fy;const P_=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function hy(t){return P_.test(t)}Be.isUUID=hy;function I_(t){if(!hy(t))throw new Error("invalid uuid");return new ap(t)}Be.parse=I_;function M_(){return fy().asHex()}Be.generateUuid=M_;Object.defineProperty(De,"__esModule",{value:!0});De.WorkspaceFeature=De.TextDocumentLanguageFeature=De.TextDocumentEventFeature=De.DynamicDocumentFeature=De.DynamicFeature=De.StaticFeature=De.ensure=De.LSPCancellationError=void 0;const Bi=Re,Kl=ye,Sn=Ye,f0=Be;class O_ extends Bi.CancellationError{constructor(e){super(),this.data=e}}De.LSPCancellationError=O_;function A_(t,e){return t[e]===void 0&&(t[e]={}),t[e]}De.ensure=A_;var h0;(function(t){function e(n){const r=n;return r!=null&&Sn.func(r.fillClientCapabilities)&&Sn.func(r.initialize)&&Sn.func(r.getState)&&Sn.func(r.clear)&&(r.fillInitializeParams===void 0||Sn.func(r.fillInitializeParams))}t.is=e})(h0||(De.StaticFeature=h0={}));var p0;(function(t){function e(n){const r=n;return r!=null&&Sn.func(r.fillClientCapabilities)&&Sn.func(r.initialize)&&Sn.func(r.getState)&&Sn.func(r.clear)&&(r.fillInitializeParams===void 0||Sn.func(r.fillInitializeParams))&&Sn.func(r.register)&&Sn.func(r.unregister)&&r.registrationType!==void 0}t.is=e})(p0||(De.DynamicFeature=p0={}));class cp{constructor(e){this._client=e}getState(){const e=this.getDocumentSelectors();let n=0;for(const i of e){n++;for(const s of Bi.workspace.textDocuments)if(Bi.languages.match(i,s)>0)return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!0}}const r=n>0;return{kind:"document",id:this.registrationType.method,registrations:r,matches:!1}}}De.DynamicDocumentFeature=cp;class F_ extends cp{static textDocumentFilter(e,n){for(const r of e)if(Bi.languages.match(r,n)>0)return!0;return!1}constructor(e,n,r,i,s,o,a){super(e),this._event=n,this._type=r,this._middleware=i,this._createParams=s,this._textDocument=o,this._selectorFilter=a,this._selectors=new Map,this._onNotificationSent=new Bi.EventEmitter}getStateInfo(){return[this._selectors.values(),!1]}getDocumentSelectors(){return this._selectors.values()}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=this._event(n=>{this.callback(n).catch(r=>{this._client.error(`Sending document notification ${this._type.method} failed.`,r)})})),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)))}async callback(e){const n=async r=>{const i=this._createParams(r);await this._client.sendNotification(this._type,i),this.notificationSent(this.getTextDocument(r),this._type,i)};if(this.matches(e)){const r=this._middleware();return r?r(e,i=>n(i)):n(e)}}matches(e){return this._client.hasDedicatedTextSynchronizationFeature(this._textDocument(e))?!1:!this._selectorFilter||this._selectorFilter(this._selectors.values(),e)}get onNotificationSent(){return this._onNotificationSent.event}notificationSent(e,n,r){this._onNotificationSent.fire({textDocument:e,type:n,params:r})}unregister(e){this._selectors.delete(e),this._selectors.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._selectors.clear(),this._onNotificationSent.dispose(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getProvider(e){for(const n of this._selectors.values())if(Bi.languages.match(n,e)>0)return{send:r=>this.callback(r)}}}De.TextDocumentEventFeature=F_;class L_ extends cp{constructor(e,n){super(e),this._registrationType=n,this._registrations=new Map}*getDocumentSelectors(){for(const e of this._registrations.values()){const n=e.data.registerOptions.documentSelector;n!==null&&(yield this._client.protocol2CodeConverter.asDocumentSelector(n))}}get registrationType(){return this._registrationType}register(e){if(!e.registerOptions.documentSelector)return;let n=this.registerLanguageProvider(e.registerOptions,e.id);this._registrations.set(e.id,{disposable:n[0],data:e,provider:n[1]})}unregister(e){let n=this._registrations.get(e);n!==void 0&&n.disposable.dispose()}clear(){this._registrations.forEach(e=>{e.disposable.dispose()}),this._registrations.clear()}getRegistration(e,n){if(n){if(Kl.TextDocumentRegistrationOptions.is(n)){const r=Kl.StaticRegistrationOptions.hasId(n)?n.id:f0.generateUuid(),i=n.documentSelector??e;if(i)return[r,Object.assign({},n,{documentSelector:i})]}else if(Sn.boolean(n)&&n===!0||Kl.WorkDoneProgressOptions.is(n)){if(!e)return[void 0,void 0];const r=Sn.boolean(n)&&n===!0?{documentSelector:e}:Object.assign({},n,{documentSelector:e});return[f0.generateUuid(),r]}}else return[void 0,void 0];return[void 0,void 0]}getRegistrationOptions(e,n){if(!(!e||!n))return Sn.boolean(n)&&n===!0?{documentSelector:e}:Object.assign({},n,{documentSelector:e})}getProvider(e){for(const n of this._registrations.values()){let r=n.data.registerOptions.documentSelector;if(r!==null&&Bi.languages.match(this._client.protocol2CodeConverter.asDocumentSelector(r),e)>0)return n.provider}}getAllProviders(){const e=[];for(const n of this._registrations.values())e.push(n.provider);return e}}De.TextDocumentLanguageFeature=L_;class N_{constructor(e,n){this._client=e,this._registrationType=n,this._registrations=new Map}getState(){const e=this._registrations.size>0;return{kind:"workspace",id:this._registrationType.method,registrations:e}}get registrationType(){return this._registrationType}register(e){const n=this.registerLanguageProvider(e.registerOptions);this._registrations.set(e.id,{disposable:n[0],provider:n[1]})}unregister(e){let n=this._registrations.get(e);n!==void 0&&n.disposable.dispose()}clear(){this._registrations.forEach(e=>{e.disposable.dispose()}),this._registrations.clear()}getProviders(){const e=[];for(const n of this._registrations.values())e.push(n.provider);return e}}De.WorkspaceFeature=N_;var Ur={};const $_=typeof process=="object"&&process&&process.platform==="win32";var q_=$_?{sep:"\\"}:{sep:"/"},j_=py;function py(t,e,n){t instanceof RegExp&&(t=g0(t,n)),e instanceof RegExp&&(e=g0(e,n));var r=gy(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function g0(t,e){var n=e.match(t);return n?n[0]:null}py.range=gy;function gy(t,e,n){var r,i,s,o,a,c=n.indexOf(t),l=n.indexOf(e,c+1),f=c;if(c>=0&&l>0){if(t===e)return[c,l];for(r=[],s=n.length;f>=0&&!a;)f==c?(r.push(f),c=n.indexOf(t,f+1)):r.length==1?a=[r.pop(),l]:(i=r.pop(),i<s&&(s=i,o=l),l=n.indexOf(e,f+1)),f=c<l&&c>=0?c:l;r.length&&(a=[s,o])}return a}var my=j_,H_=z_,yy="\0SLASH"+Math.random()+"\0",by="\0OPEN"+Math.random()+"\0",lp="\0CLOSE"+Math.random()+"\0",vy="\0COMMA"+Math.random()+"\0",wy="\0PERIOD"+Math.random()+"\0";function Gl(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function W_(t){return t.split("\\\\").join(yy).split("\\{").join(by).split("\\}").join(lp).split("\\,").join(vy).split("\\.").join(wy)}function U_(t){return t.split(yy).join("\\").split(by).join("{").split(lp).join("}").split(vy).join(",").split(wy).join(".")}function Cy(t){if(!t)return[""];var e=[],n=my("{","}",t);if(!n)return t.split(",");var r=n.pre,i=n.body,s=n.post,o=r.split(",");o[o.length-1]+="{"+i+"}";var a=Cy(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function z_(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),bo(W_(t),!0).map(U_)):[]}function B_(t){return"{"+t+"}"}function V_(t){return/^-?0\d/.test(t)}function K_(t,e){return t<=e}function G_(t,e){return t>=e}function bo(t,e){var n=[],r=my("{","}",t);if(!r)return[t];var i=r.pre,s=r.post.length?bo(r.post,!1):[""];if(/\$$/.test(r.pre))for(var o=0;o<s.length;o++){var a=i+"{"+r.body+"}"+s[o];n.push(a)}else{var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),f=c||l,p=r.body.indexOf(",")>=0;if(!f&&!p)return r.post.match(/,.*\}/)?(t=r.pre+"{"+r.body+lp+r.post,bo(t)):[t];var g;if(f)g=r.body.split(/\.\./);else if(g=Cy(r.body),g.length===1&&(g=bo(g[0],!1).map(B_),g.length===1))return s.map(function(Le){return r.pre+g[0]+Le});var _;if(f){var C=Gl(g[0]),k=Gl(g[1]),M=Math.max(g[0].length,g[1].length),H=g.length==3?Math.abs(Gl(g[2])):1,K=K_,j=k<C;j&&(H*=-1,K=G_);var B=g.some(V_);_=[];for(var z=C;K(z,k);z+=H){var ne;if(l)ne=String.fromCharCode(z),ne==="\\"&&(ne="");else if(ne=String(z),B){var G=M-ne.length;if(G>0){var Y=new Array(G+1).join("0");z<0?ne="-"+Y+ne.slice(1):ne=Y+ne}}_.push(ne)}}else{_=[];for(var re=0;re<g.length;re++)_.push.apply(_,bo(g[re],!1))}for(var re=0;re<_.length;re++)for(var o=0;o<s.length;o++){var a=i+_[re]+s[o];(!e||f||a)&&n.push(a)}}return n}const zn=Vc=(t,e,n={})=>(yc(e),!n.nocomment&&e.charAt(0)==="#"?!1:new Kc(e,n).match(t));var Vc=zn;const I1=q_;zn.sep=I1.sep;const ir=Symbol("globstar **");zn.GLOBSTAR=ir;const Q_=H_,m0={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},M1="[^/]",Ql=M1+"*?",J_="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Y_="(?:(?!(?:\\/|^)\\.).)*?",_y=t=>t.split("").reduce((e,n)=>(e[n]=!0,e),{}),y0=_y("().*{}+?[]^$\\!"),X_=_y("[.("),b0=/\/+/;zn.filter=(t,e={})=>(n,r,i)=>zn(n,t,e);const ti=(t,e={})=>{const n={};return Object.keys(t).forEach(r=>n[r]=t[r]),Object.keys(e).forEach(r=>n[r]=e[r]),n};zn.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return zn;const e=zn,n=(r,i,s)=>e(r,i,ti(t,s));return n.Minimatch=class extends e.Minimatch{constructor(i,s){super(i,ti(t,s))}},n.Minimatch.defaults=r=>e.defaults(ti(t,r)).Minimatch,n.filter=(r,i)=>e.filter(r,ti(t,i)),n.defaults=r=>e.defaults(ti(t,r)),n.makeRe=(r,i)=>e.makeRe(r,ti(t,i)),n.braceExpand=(r,i)=>e.braceExpand(r,ti(t,i)),n.match=(r,i,s)=>e.match(r,i,ti(t,s)),n};zn.braceExpand=(t,e)=>Sy(t,e);const Sy=(t,e={})=>(yc(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:Q_(t)),Z_=1024*64,yc=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Z_)throw new TypeError("pattern is too long")},Jl=Symbol("subparse");zn.makeRe=(t,e)=>new Kc(t,e||{}).makeRe();zn.match=(t,e,n={})=>{const r=new Kc(e,n);return t=t.filter(i=>r.match(i)),r.options.nonull&&!t.length&&t.push(e),t};const e6=t=>t.replace(/\\(.)/g,"$1"),t6=t=>t.replace(/\\([^-\]])/g,"$1"),n6=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),r6=t=>t.replace(/[[\]\\]/g,"\\$&");class Kc{constructor(e,n){yc(e),n||(n={}),this.options=n,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.make()}debug(){}make(){const e=this.pattern,n=this.options;if(!n.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let r=this.globSet=this.braceExpand();n.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,r),r=this.globParts=r.map(i=>i.split(b0)),this.debug(this.pattern,r),r=r.map((i,s,o)=>i.map(this.parse,this)),this.debug(this.pattern,r),r=r.filter(i=>i.indexOf(!1)===-1),this.debug(this.pattern,r),this.set=r}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let n=!1,r=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)n=!n,r++;r&&(this.pattern=e.slice(r)),this.negate=n}matchOne(e,n,r){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:n}),this.debug("matchOne",e.length,n.length);for(var s=0,o=0,a=e.length,c=n.length;s<a&&o<c;s++,o++){this.debug("matchOne loop");var l=n[o],f=e[s];if(this.debug(n,l,f),l===!1)return!1;if(l===ir){this.debug("GLOBSTAR",[n,l,f]);var p=s,g=o+1;if(g===c){for(this.debug("** at the end");s<a;s++)if(e[s]==="."||e[s]===".."||!i.dot&&e[s].charAt(0)===".")return!1;return!0}for(;p<a;){var _=e[p];if(this.debug(`
|
|
99
|
-
globstar while`,e,
|
|
100
|
-
>>> no match, partial?`,e,
|
|
101
|
-
%s`,G,G,C,i);const Y=C.type==="*"?Ql:C.type==="?"?M1:"\\"+C.type;s=!0,i=i.slice(0,C.reStart)+Y+"\\("+G}B(),o&&(i+="\\\\");const z=X_[i.charAt(0)];for(let G=c.length-1;G>-1;G--){const Y=c[G],re=i.slice(0,Y.reStart),Le=i.slice(Y.reStart,Y.reEnd-8);let $=i.slice(Y.reEnd);const P=i.slice(Y.reEnd-8,Y.reEnd)+$,v=re.split(")").length,R=re.split("(").length-v;let I=$;for(let V=0;V<R;V++)I=I.replace(/\)[+*?]?/,"");$=I;const E=$===""&&n!==Jl?"(?:$|\\/)":"";i=re+Le+$+E+P}if(i!==""&&s&&(i="(?=.)"+i),z&&(i=K()+i),n===Jl)return[i,s];if(r.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return e6(e);const ne=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",ne),{_glob:e,_src:i})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const n=this.options,r=n.noglobstar?Ql:n.dot?J_:Y_,i=n.nocase?"i":"";let s=e.map(o=>(o=o.map(a=>typeof a=="string"?n6(a):a===ir?ir:a._src).reduce((a,c)=>(a[a.length-1]===ir&&c===ir||a.push(c),a),[]),o.forEach((a,c)=>{a!==ir||o[c-1]===ir||(c===0?o.length>1?o[c+1]="(?:\\/|"+r+"\\/)?"+o[c+1]:o[c]=r:c===o.length-1?o[c-1]+="(?:\\/|"+r+")?":(o[c-1]+="(?:\\/|\\/"+r+"\\/)"+o[c+1],o[c+1]=ir))}),o.filter(a=>a!==ir).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch{this.regexp=!1}return this.regexp}match(e,n=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&n)return!0;const r=this.options;I1.sep!=="/"&&(e=e.split(I1.sep).join("/")),e=e.split(b0),this.debug(this.pattern,"split",e);const i=this.set;this.debug(this.pattern,"set",i);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<i.length;o++){const a=i[o];let c=e;if(r.matchBase&&a.length===1&&(c=[s]),this.matchOne(c,a,n))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(e){return zn.defaults(e).Minimatch}}zn.Minimatch=Kc;Object.defineProperty(Ur,"__esModule",{value:!0});Ur.DiagnosticFeature=Ur.DiagnosticPullMode=Ur.vsdiag=void 0;const i6=Vc,Ue=Re,Pt=ye,s6=Be,O1=De;function ba(t,e){return t[e]===void 0&&(t[e]={}),t[e]}var Kn;(function(t){(function(e){e.full="full",e.unChanged="unChanged"})(t.DocumentDiagnosticReportKind||(t.DocumentDiagnosticReportKind={}))})(Kn||(Ur.vsdiag=Kn={}));var bc;(function(t){t.onType="onType",t.onSave="onSave"})(bc||(Ur.DiagnosticPullMode=bc={}));var un;(function(t){t.active="open",t.reschedule="reschedule",t.outDated="drop"})(un||(un={}));class Ro{constructor(){this.open=new Set,this._onOpen=new Ue.EventEmitter,this._onClose=new Ue.EventEmitter,Ro.fillTabResources(this.open);const e=n=>{if(n.closed.length===0&&n.opened.length===0)return;const r=this.open,i=new Set;Ro.fillTabResources(i);const s=new Set,o=new Set(i);for(const a of r.values())i.has(a)?o.delete(a):s.add(a);if(this.open=i,s.size>0){const a=new Set;for(const c of s)a.add(Ue.Uri.parse(c));this._onClose.fire(a)}if(o.size>0){const a=new Set;for(const c of o)a.add(Ue.Uri.parse(c));this._onOpen.fire(a)}};Ue.window.tabGroups.onDidChangeTabs!==void 0?this.disposable=Ue.window.tabGroups.onDidChangeTabs(e):this.disposable={dispose:()=>{}}}get onClose(){return this._onClose.event}get onOpen(){return this._onOpen.event}dispose(){this.disposable.dispose()}isActive(e){var n,r;return e instanceof Ue.Uri?((n=Ue.window.activeTextEditor)==null?void 0:n.document.uri)===e:((r=Ue.window.activeTextEditor)==null?void 0:r.document)===e}isVisible(e){const n=e instanceof Ue.Uri?e:e.uri;return this.open.has(n.toString())}getTabResources(){const e=new Set;return Ro.fillTabResources(new Set,e),e}static fillTabResources(e,n){const r=e??new Set;for(const i of Ue.window.tabGroups.all)for(const s of i.tabs){const o=s.input;let a;o instanceof Ue.TabInputText?a=o.uri:o instanceof Ue.TabInputTextDiff?a=o.modified:o instanceof Ue.TabInputCustom&&(a=o.uri),a!==void 0&&!r.has(a.toString())&&(r.add(a.toString()),n!==void 0&&n.add(a))}}}var zt;(function(t){t[t.document=1]="document",t[t.workspace=2]="workspace"})(zt||(zt={}));var $r;(function(t){function e(n){return n instanceof Ue.Uri?n.toString():n.uri.toString()}t.asKey=e})($r||($r={}));class o6{constructor(){this.documentPullStates=new Map,this.workspacePullStates=new Map}track(e,n,r){const i=e===zt.document?this.documentPullStates:this.workspacePullStates,[s,o,a]=n instanceof Ue.Uri?[n.toString(),n,r]:[n.uri.toString(),n.uri,n.version];let c=i.get(s);return c===void 0&&(c={document:o,pulledVersion:a,resultId:void 0},i.set(s,c)),c}update(e,n,r,i){const s=e===zt.document?this.documentPullStates:this.workspacePullStates,[o,a,c,l]=n instanceof Ue.Uri?[n.toString(),n,r,i]:[n.uri.toString(),n.uri,n.version,r];let f=s.get(o);f===void 0?(f={document:a,pulledVersion:c,resultId:l},s.set(o,f)):(f.pulledVersion=c,f.resultId=l)}unTrack(e,n){const r=$r.asKey(n);(e===zt.document?this.documentPullStates:this.workspacePullStates).delete(r)}tracks(e,n){const r=$r.asKey(n);return(e===zt.document?this.documentPullStates:this.workspacePullStates).has(r)}getResultId(e,n){var s;const r=$r.asKey(n);return(s=(e===zt.document?this.documentPullStates:this.workspacePullStates).get(r))==null?void 0:s.resultId}getAllResultIds(){const e=[];for(let[n,r]of this.workspacePullStates)this.documentPullStates.has(n)&&(r=this.documentPullStates.get(n)),r.resultId!==void 0&&e.push({uri:n,value:r.resultId});return e}}class a6{constructor(e,n,r){this.client=e,this.tabs=n,this.options=r,this.isDisposed=!1,this.onDidChangeDiagnosticsEmitter=new Ue.EventEmitter,this.provider=this.createProvider(),this.diagnostics=Ue.languages.createDiagnosticCollection(r.identifier),this.openRequests=new Map,this.documentStates=new o6,this.workspaceErrorCounter=0}knows(e,n){const r=n instanceof Ue.Uri?n:n.uri;return this.documentStates.tracks(e,n)||this.openRequests.has(r.toString())}forget(e,n){this.documentStates.unTrack(e,n)}pull(e,n){if(this.isDisposed)return;const r=e instanceof Ue.Uri?e:e.uri;this.pullAsync(e).then(()=>{n&&n()},i=>{this.client.error(`Document pull failed for text document ${r.toString()}`,i,!1)})}async pullAsync(e,n){if(this.isDisposed)return;const r=e instanceof Ue.Uri,i=r?e:e.uri,s=i.toString();n=r?n:e.version;const o=this.openRequests.get(s),a=r?this.documentStates.track(zt.document,e,n):this.documentStates.track(zt.document,e);if(o===void 0){const c=new Ue.CancellationTokenSource;this.openRequests.set(s,{state:un.active,document:e,version:n,tokenSource:c});let l,f;try{l=await this.provider.provideDiagnostics(e,a.resultId,c.token)??{kind:Kn.DocumentDiagnosticReportKind.full,items:[]}}catch(p){if(p instanceof O1.LSPCancellationError&&Pt.DiagnosticServerCancellationData.is(p.data)&&p.data.retriggerRequest===!1&&(f={state:un.outDated,document:e}),f===void 0&&p instanceof Ue.CancellationError)f={state:un.reschedule,document:e};else throw p}if(f=f??this.openRequests.get(s),f===void 0){this.client.error(`Lost request state in diagnostic pull model. Clearing diagnostics for ${s}`),this.diagnostics.delete(i);return}if(this.openRequests.delete(s),!this.tabs.isVisible(e)){this.documentStates.unTrack(zt.document,e);return}if(f.state===un.outDated)return;l!==void 0&&(l.kind===Kn.DocumentDiagnosticReportKind.full&&this.diagnostics.set(i,l.items),a.pulledVersion=n,a.resultId=l.resultId),f.state===un.reschedule&&this.pull(e)}else o.state===un.active?(o.tokenSource.cancel(),this.openRequests.set(s,{state:un.reschedule,document:o.document})):o.state===un.outDated&&this.openRequests.set(s,{state:un.reschedule,document:o.document})}forgetDocument(e){const n=e instanceof Ue.Uri?e:e.uri,r=n.toString(),i=this.openRequests.get(r);this.options.workspaceDiagnostics?i!==void 0?this.openRequests.set(r,{state:un.reschedule,document:e}):this.pull(e,()=>{this.forget(zt.document,e)}):(i!==void 0&&(i.state===un.active&&i.tokenSource.cancel(),this.openRequests.set(r,{state:un.outDated,document:e})),this.diagnostics.delete(n),this.forget(zt.document,e))}pullWorkspace(){this.isDisposed||this.pullWorkspaceAsync().then(()=>{this.workspaceTimeout=(0,Pt.RAL)().timer.setTimeout(()=>{this.pullWorkspace()},2e3)},e=>{!(e instanceof O1.LSPCancellationError)&&!Pt.DiagnosticServerCancellationData.is(e.data)&&(this.client.error("Workspace diagnostic pull failed.",e,!1),this.workspaceErrorCounter++),this.workspaceErrorCounter<=5&&(this.workspaceTimeout=(0,Pt.RAL)().timer.setTimeout(()=>{this.pullWorkspace()},2e3))})}async pullWorkspaceAsync(){if(!this.provider.provideWorkspaceDiagnostics||this.isDisposed)return;this.workspaceCancellation!==void 0&&(this.workspaceCancellation.cancel(),this.workspaceCancellation=void 0),this.workspaceCancellation=new Ue.CancellationTokenSource;const e=this.documentStates.getAllResultIds().map(n=>({uri:this.client.protocol2CodeConverter.asUri(n.uri),value:n.value}));await this.provider.provideWorkspaceDiagnostics(e,this.workspaceCancellation.token,n=>{if(!(!n||this.isDisposed))for(const r of n.items)r.kind===Kn.DocumentDiagnosticReportKind.full&&(this.documentStates.tracks(zt.document,r.uri)||this.diagnostics.set(r.uri,r.items)),this.documentStates.update(zt.workspace,r.uri,r.version??void 0,r.resultId)})}createProvider(){const e={onDidChangeDiagnostics:this.onDidChangeDiagnosticsEmitter.event,provideDiagnostics:(n,r,i)=>{const s=(a,c,l)=>{const f={identifier:this.options.identifier,textDocument:{uri:this.client.code2ProtocolConverter.asUri(a instanceof Ue.Uri?a:a.uri)},previousResultId:c};return this.isDisposed===!0||!this.client.isRunning()?{kind:Kn.DocumentDiagnosticReportKind.full,items:[]}:this.client.sendRequest(Pt.DocumentDiagnosticRequest.type,f,l).then(async p=>p==null||this.isDisposed||l.isCancellationRequested?{kind:Kn.DocumentDiagnosticReportKind.full,items:[]}:p.kind===Pt.DocumentDiagnosticReportKind.Full?{kind:Kn.DocumentDiagnosticReportKind.full,resultId:p.resultId,items:await this.client.protocol2CodeConverter.asDiagnostics(p.items,l)}:{kind:Kn.DocumentDiagnosticReportKind.unChanged,resultId:p.resultId},p=>this.client.handleFailedRequest(Pt.DocumentDiagnosticRequest.type,l,p,{kind:Kn.DocumentDiagnosticReportKind.full,items:[]}))},o=this.client.middleware;return o.provideDiagnostics?o.provideDiagnostics(n,r,i,s):s(n,r,i)}};return this.options.workspaceDiagnostics&&(e.provideWorkspaceDiagnostics=(n,r,i)=>{const s=async l=>l.kind===Pt.DocumentDiagnosticReportKind.Full?{kind:Kn.DocumentDiagnosticReportKind.full,uri:this.client.protocol2CodeConverter.asUri(l.uri),resultId:l.resultId,version:l.version,items:await this.client.protocol2CodeConverter.asDiagnostics(l.items,r)}:{kind:Kn.DocumentDiagnosticReportKind.unChanged,uri:this.client.protocol2CodeConverter.asUri(l.uri),resultId:l.resultId,version:l.version},o=l=>{const f=[];for(const p of l)f.push({uri:this.client.code2ProtocolConverter.asUri(p.uri),value:p.value});return f},a=(l,f)=>{const p=(0,s6.generateUuid)(),g=this.client.onProgress(Pt.WorkspaceDiagnosticRequest.partialResult,p,async C=>{if(C==null){i(null);return}const k={items:[]};for(const M of C.items)try{k.items.push(await s(M))}catch(H){this.client.error("Converting workspace diagnostics failed.",H)}i(k)}),_={identifier:this.options.identifier,previousResultIds:o(l),partialResultToken:p};return this.isDisposed===!0||!this.client.isRunning()?{items:[]}:this.client.sendRequest(Pt.WorkspaceDiagnosticRequest.type,_,f).then(async C=>{if(f.isCancellationRequested)return{items:[]};const k={items:[]};for(const M of C.items)k.items.push(await s(M));return g.dispose(),i(k),{items:[]}},C=>(g.dispose(),this.client.handleFailedRequest(Pt.DocumentDiagnosticRequest.type,f,C,{items:[]})))},c=this.client.middleware;return c.provideWorkspaceDiagnostics?c.provideWorkspaceDiagnostics(n,r,i,a):a(n,r)}),e}dispose(){var e,n;this.isDisposed=!0,(e=this.workspaceCancellation)==null||e.cancel(),(n=this.workspaceTimeout)==null||n.dispose();for(const[r,i]of this.openRequests)i.state===un.active&&i.tokenSource.cancel(),this.openRequests.set(r,{state:un.outDated,document:i.document});this.diagnostics.dispose()}}class c6{constructor(e){this.diagnosticRequestor=e,this.documents=new Pt.LinkedMap,this.isDisposed=!1}add(e){if(this.isDisposed===!0)return;const n=$r.asKey(e);this.documents.has(n)||(this.documents.set(n,e,Pt.Touch.Last),this.trigger())}remove(e){const n=$r.asKey(e);this.documents.delete(n),this.documents.size===0?this.stop():n===this.endDocumentKey()&&(this.endDocument=this.documents.last)}trigger(){if(this.isDisposed!==!0){if(this.intervalHandle!==void 0){this.endDocument=this.documents.last;return}this.endDocument=this.documents.last,this.intervalHandle=(0,Pt.RAL)().timer.setInterval(()=>{const e=this.documents.first;if(e!==void 0){const n=$r.asKey(e);this.diagnosticRequestor.pull(e),this.documents.set(n,e,Pt.Touch.Last),n===this.endDocumentKey()&&this.stop()}},200)}}dispose(){this.isDisposed=!0,this.stop(),this.documents.clear()}stop(){var e;(e=this.intervalHandle)==null||e.dispose(),this.intervalHandle=void 0,this.endDocument=void 0}endDocumentKey(){return this.endDocument!==void 0?$r.asKey(this.endDocument):void 0}}class l6{constructor(e,n,r){var C;const i=e.clientOptions.diagnosticPullOptions??{onChange:!0,onSave:!1},s=e.protocol2CodeConverter.asDocumentSelector(r.documentSelector),o=[],a=k=>{const M=r.documentSelector;if(i.match!==void 0)return i.match(M,k);for(const H of M)if(Pt.TextDocumentFilter.is(H)){if(typeof H=="string"||H.language!==void 0&&H.language!=="*"||H.scheme!==void 0&&H.scheme!=="*"&&H.scheme!==k.scheme)return!1;if(H.pattern!==void 0){const K=new i6.Minimatch(H.pattern,{noext:!0});if(!K.makeRe()||!K.match(k.fsPath))return!1}}return!0},c=k=>k instanceof Ue.Uri?a(k):Ue.languages.match(s,k)>0&&n.isVisible(k),l=k=>{var M;return k instanceof Ue.Uri?((M=this.activeTextDocument)==null?void 0:M.uri.toString())===k.toString():this.activeTextDocument===k};this.diagnosticRequestor=new a6(e,n,r),this.backgroundScheduler=new c6(this.diagnosticRequestor);const f=k=>{!c(k)||!r.interFileDependencies||l(k)||this.backgroundScheduler.add(k)};this.activeTextDocument=(C=Ue.window.activeTextEditor)==null?void 0:C.document,Ue.window.onDidChangeActiveTextEditor(k=>{const M=this.activeTextDocument;this.activeTextDocument=k==null?void 0:k.document,M!==void 0&&f(M),this.activeTextDocument!==void 0&&this.backgroundScheduler.remove(this.activeTextDocument)});const p=e.getFeature(Pt.DidOpenTextDocumentNotification.method);o.push(p.onNotificationSent(k=>{const M=k.textDocument;this.diagnosticRequestor.knows(zt.document,M)||c(M)&&this.diagnosticRequestor.pull(M,()=>{f(M)})})),o.push(n.onOpen(k=>{for(const M of k){if(this.diagnosticRequestor.knows(zt.document,M))continue;const H=M.toString();let K;for(const j of Ue.workspace.textDocuments)if(H===j.uri.toString()){K=j;break}K!==void 0&&c(K)&&this.diagnosticRequestor.pull(K,()=>{f(K)})}}));const g=new Set;for(const k of Ue.workspace.textDocuments)c(k)&&(this.diagnosticRequestor.pull(k,()=>{f(k)}),g.add(k.uri.toString()));if(i.onTabs===!0)for(const k of n.getTabResources())!g.has(k.toString())&&c(k)&&this.diagnosticRequestor.pull(k,()=>{f(k)});if(i.onChange===!0){const k=e.getFeature(Pt.DidChangeTextDocumentNotification.method);o.push(k.onNotificationSent(async M=>{const H=M.textDocument;(i.filter===void 0||!i.filter(H,bc.onType))&&this.diagnosticRequestor.knows(zt.document,H)&&this.diagnosticRequestor.pull(H,()=>{this.backgroundScheduler.trigger()})}))}if(i.onSave===!0){const k=e.getFeature(Pt.DidSaveTextDocumentNotification.method);o.push(k.onNotificationSent(M=>{const H=M.textDocument;(i.filter===void 0||!i.filter(H,bc.onSave))&&this.diagnosticRequestor.knows(zt.document,H)&&this.diagnosticRequestor.pull(M.textDocument,()=>{this.backgroundScheduler.trigger()})}))}const _=e.getFeature(Pt.DidCloseTextDocumentNotification.method);o.push(_.onNotificationSent(k=>{this.cleanUpDocument(k.textDocument)})),n.onClose(k=>{for(const M of k)this.cleanUpDocument(M)}),this.diagnosticRequestor.onDidChangeDiagnosticsEmitter.event(()=>{for(const k of Ue.workspace.textDocuments)c(k)&&this.diagnosticRequestor.pull(k)}),r.workspaceDiagnostics===!0&&r.identifier!=="da348dc5-c30a-4515-9d98-31ff3be38d14"&&this.diagnosticRequestor.pullWorkspace(),this.disposable=Ue.Disposable.from(...o,this.backgroundScheduler,this.diagnosticRequestor)}get onDidChangeDiagnosticsEmitter(){return this.diagnosticRequestor.onDidChangeDiagnosticsEmitter}get diagnostics(){return this.diagnosticRequestor.provider}cleanUpDocument(e){this.diagnosticRequestor.knows(zt.document,e)&&(this.diagnosticRequestor.forgetDocument(e),this.backgroundScheduler.remove(e))}}class u6 extends O1.TextDocumentLanguageFeature{constructor(e){super(e,Pt.DocumentDiagnosticRequest.type)}fillClientCapabilities(e){let n=ba(ba(e,"textDocument"),"diagnostic");n.dynamicRegistration=!0,n.relatedDocumentSupport=!1,ba(ba(e,"workspace"),"diagnostics").refreshSupport=!0}initialize(e,n){this._client.onRequest(Pt.DiagnosticRefreshRequest.type,async()=>{for(const o of this.getAllProviders())o.onDidChangeDiagnosticsEmitter.fire()});let[i,s]=this.getRegistration(n,e.diagnosticProvider);!i||!s||this.register({id:i,registerOptions:s})}clear(){this.tabs!==void 0&&(this.tabs.dispose(),this.tabs=void 0),super.clear()}registerLanguageProvider(e){this.tabs===void 0&&(this.tabs=new Ro);const n=new l6(this._client,this.tabs,e);return[n.disposable,n]}}Ur.DiagnosticFeature=u6;var Xt={},Gc={},Zt={};Object.defineProperty(Zt,"__esModule",{value:!0});Zt.forEach=Zt.mapAsync=Zt.map=Zt.clearTestMode=Zt.setTestMode=Zt.Semaphore=Zt.Delayer=void 0;const ca=ye;class d6{constructor(e){this.defaultDelay=e,this.timeout=void 0,this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0}trigger(e,n=this.defaultDelay){return this.task=e,n>=0&&this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(r=>{this.onSuccess=r}).then(()=>{this.completionPromise=void 0,this.onSuccess=void 0;var r=this.task();return this.task=void 0,r})),(n>=0||this.timeout===void 0)&&(this.timeout=(0,ca.RAL)().timer.setTimeout(()=>{this.timeout=void 0,this.onSuccess(void 0)},n>=0?n:this.defaultDelay)),this.completionPromise}forceDelivery(){if(!this.completionPromise)return;this.cancelTimeout();let e=this.task();return this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0,e}isTriggered(){return this.timeout!==void 0}cancel(){this.cancelTimeout(),this.completionPromise=void 0}cancelTimeout(){this.timeout!==void 0&&(this.timeout.dispose(),this.timeout=void 0)}}Zt.Delayer=d6;let f6=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((n,r)=>{this._waiting.push({thunk:e,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,ca.RAL)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||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 n=e.thunk();n instanceof Promise?n.then(r=>{this._active--,e.resolve(r),this.runNext()},r=>{this._active--,e.reject(r),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};Zt.Semaphore=f6;let up=!1;function h6(){up=!0}Zt.setTestMode=h6;function p6(){up=!1}Zt.clearTestMode=p6;const v0=15;class dp{constructor(e=v0){this.yieldAfter=up===!0?Math.max(e,2):Math.max(e,v0),this.startTime=Date.now(),this.counter=0,this.total=0,this.counterInterval=1}start(){this.counter=0,this.total=0,this.counterInterval=1,this.startTime=Date.now()}shouldYield(){if(++this.counter>=this.counterInterval){const e=Date.now()-this.startTime,n=Math.max(0,this.yieldAfter-e);if(this.total+=this.counter,this.counter=0,e>=this.yieldAfter||n<=1)return this.counterInterval=1,this.total=0,!0;switch(e){case 0:case 1:this.counterInterval=this.total*2;break}}return!1}}async function g6(t,e,n,r){if(t.length===0)return[];const i=new Array(t.length),s=new dp(r==null?void 0:r.yieldAfter);function o(c){s.start();for(let l=c;l<t.length;l++)if(i[l]=e(t[l]),s.shouldYield())return r!=null&&r.yieldCallback&&r.yieldCallback(),l+1;return-1}let a=o(0);for(;a!==-1&&!(n!==void 0&&n.isCancellationRequested);)a=await new Promise(c=>{(0,ca.RAL)().timer.setImmediate(()=>{c(o(a))})});return i}Zt.map=g6;async function m6(t,e,n,r){if(t.length===0)return[];const i=new Array(t.length),s=new dp(r==null?void 0:r.yieldAfter);async function o(c){s.start();for(let l=c;l<t.length;l++)if(i[l]=await e(t[l],n),s.shouldYield())return r!=null&&r.yieldCallback&&r.yieldCallback(),l+1;return-1}let a=await o(0);for(;a!==-1&&!(n!==void 0&&n.isCancellationRequested);)a=await new Promise(c=>{(0,ca.RAL)().timer.setImmediate(()=>{c(o(a))})});return i}Zt.mapAsync=m6;async function y6(t,e,n,r){if(t.length===0)return;const i=new dp(r==null?void 0:r.yieldAfter);function s(a){i.start();for(let c=a;c<t.length;c++)if(e(t[c]),i.shouldYield())return r!=null&&r.yieldCallback&&r.yieldCallback(),c+1;return-1}let o=s(0);for(;o!==-1&&!(n!==void 0&&n.isCancellationRequested);)o=await new Promise(a=>{(0,ca.RAL)().timer.setImmediate(()=>{a(s(o))})})}Zt.forEach=y6;var Qc={};Object.defineProperty(Qc,"__esModule",{value:!0});const b6=Re;class v6 extends b6.CompletionItem{constructor(e){super(e)}}Qc.default=v6;var Jc={};Object.defineProperty(Jc,"__esModule",{value:!0});const w6=Re;class C6 extends w6.CodeLens{constructor(e){super(e)}}Jc.default=C6;var Yc={};Object.defineProperty(Yc,"__esModule",{value:!0});const _6=Re;class S6 extends _6.DocumentLink{constructor(e,n){super(e,n)}}Yc.default=S6;var Xc={};Object.defineProperty(Xc,"__esModule",{value:!0});const D6=Re;class T6 extends D6.CodeAction{constructor(e,n){super(e),this.data=n}}Xc.default=T6;var Yi={};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.ProtocolDiagnostic=Yi.DiagnosticCode=void 0;const k6=Re,Yl=Ye;var w0;(function(t){function e(n){const r=n;return r!=null&&(Yl.number(r.value)||Yl.string(r.value))&&Yl.string(r.target)}t.is=e})(w0||(Yi.DiagnosticCode=w0={}));class R6 extends k6.Diagnostic{constructor(e,n,r,i){super(e,n,r),this.data=i,this.hasDiagnosticCode=!1}}Yi.ProtocolDiagnostic=R6;var Zc={};Object.defineProperty(Zc,"__esModule",{value:!0});const x6=Re;class E6 extends x6.CallHierarchyItem{constructor(e,n,r,i,s,o,a){super(e,n,r,i,s,o),a!==void 0&&(this.data=a)}}Zc.default=E6;var el={};Object.defineProperty(el,"__esModule",{value:!0});const P6=Re;class I6 extends P6.TypeHierarchyItem{constructor(e,n,r,i,s,o,a){super(e,n,r,i,s,o),a!==void 0&&(this.data=a)}}el.default=I6;var tl={};Object.defineProperty(tl,"__esModule",{value:!0});const va=Re;class M6 extends va.SymbolInformation{constructor(e,n,r,i,s){const o=!(i instanceof va.Uri);super(e,n,r,o?i:new va.Location(i,new va.Range(0,0,0,0))),this.hasRange=o,s!==void 0&&(this.data=s)}}tl.default=M6;var nl={};Object.defineProperty(nl,"__esModule",{value:!0});const O6=Re;class A6 extends O6.InlayHint{constructor(e,n,r){super(e,n,r)}}nl.default=A6;Object.defineProperty(Gc,"__esModule",{value:!0});Gc.createConverter=void 0;const $t=Re,Ee=ye,_i=Ye,C0=Zt,F6=Qc,L6=Jc,N6=Yc,_0=Xc,S0=Yi,$6=Zc,q6=el,j6=tl,H6=nl;var A1;(function(t){function e(n){const r=n;return r&&!!r.inserting&&!!r.replacing}t.is=e})(A1||(A1={}));function W6(t){const n=t||(y=>y.toString());function r(y){return n(y)}function i(y){return{uri:n(y.uri)}}function s(y){return{uri:n(y.uri),languageId:y.languageId,version:y.version,text:y.getText()}}function o(y){return{uri:n(y.uri),version:y.version}}function a(y){return{textDocument:s(y)}}function c(y){const L=y;return!!L.document&&!!L.contentChanges}function l(y){const L=y;return!!L.uri&&!!L.version}function f(y,L,te){if(l(y))return{textDocument:{uri:n(y.uri),version:y.version},contentChanges:[{text:y.getText()}]};if(c(y)){const Te=L,xe=te;return{textDocument:{uri:n(Te),version:xe},contentChanges:y.contentChanges.map(T=>{const U=T.range;return{range:{start:{line:U.start.line,character:U.start.character},end:{line:U.end.line,character:U.end.character}},rangeLength:T.rangeLength,text:T.text}})}}else throw Error("Unsupported text document change parameter")}function p(y){return{textDocument:i(y)}}function g(y,L=!1){let te={textDocument:i(y)};return L&&(te.text=y.getText()),te}function _(y){switch(y){case $t.TextDocumentSaveReason.Manual:return Ee.TextDocumentSaveReason.Manual;case $t.TextDocumentSaveReason.AfterDelay:return Ee.TextDocumentSaveReason.AfterDelay;case $t.TextDocumentSaveReason.FocusOut:return Ee.TextDocumentSaveReason.FocusOut}return Ee.TextDocumentSaveReason.Manual}function C(y){return{textDocument:i(y.document),reason:_(y.reason)}}function k(y){return{files:y.files.map(L=>({uri:n(L)}))}}function M(y){return{files:y.files.map(L=>({oldUri:n(L.oldUri),newUri:n(L.newUri)}))}}function H(y){return{files:y.files.map(L=>({uri:n(L)}))}}function K(y){return{files:y.files.map(L=>({uri:n(L)}))}}function j(y){return{files:y.files.map(L=>({oldUri:n(L.oldUri),newUri:n(L.newUri)}))}}function B(y){return{files:y.files.map(L=>({uri:n(L)}))}}function z(y,L){return{textDocument:i(y),position:I(L)}}function ne(y){switch(y){case $t.CompletionTriggerKind.TriggerCharacter:return Ee.CompletionTriggerKind.TriggerCharacter;case $t.CompletionTriggerKind.TriggerForIncompleteCompletions:return Ee.CompletionTriggerKind.TriggerForIncompleteCompletions;default:return Ee.CompletionTriggerKind.Invoked}}function G(y,L,te){return{textDocument:i(y),position:I(L),context:{triggerKind:ne(te.triggerKind),triggerCharacter:te.triggerCharacter}}}function Y(y){switch(y){case $t.SignatureHelpTriggerKind.Invoke:return Ee.SignatureHelpTriggerKind.Invoked;case $t.SignatureHelpTriggerKind.TriggerCharacter:return Ee.SignatureHelpTriggerKind.TriggerCharacter;case $t.SignatureHelpTriggerKind.ContentChange:return Ee.SignatureHelpTriggerKind.ContentChange}}function re(y){return{label:y.label}}function Le(y){return y.map(re)}function $(y){return{label:y.label,parameters:Le(y.parameters)}}function P(y){return y.map($)}function v(y){return y===void 0?y:{signatures:P(y.signatures),activeSignature:y.activeSignature,activeParameter:y.activeParameter}}function R(y,L,te){return{textDocument:i(y),position:I(L),context:{isRetrigger:te.isRetrigger,triggerCharacter:te.triggerCharacter,triggerKind:Y(te.triggerKind),activeSignatureHelp:v(te.activeSignatureHelp)}}}function I(y){return{line:y.line,character:y.character}}function E(y){return y==null?y:{line:y.line>Ee.uinteger.MAX_VALUE?Ee.uinteger.MAX_VALUE:y.line,character:y.character>Ee.uinteger.MAX_VALUE?Ee.uinteger.MAX_VALUE:y.character}}function V(y,L){return C0.map(y,E,L)}function Me(y){return y.map(E)}function we(y){return y==null?y:{start:E(y.start),end:E(y.end)}}function lt(y){return y.map(we)}function He(y){return y==null?y:Ee.Location.create(r(y.uri),we(y.range))}function Pe(y){switch(y){case $t.DiagnosticSeverity.Error:return Ee.DiagnosticSeverity.Error;case $t.DiagnosticSeverity.Warning:return Ee.DiagnosticSeverity.Warning;case $t.DiagnosticSeverity.Information:return Ee.DiagnosticSeverity.Information;case $t.DiagnosticSeverity.Hint:return Ee.DiagnosticSeverity.Hint}}function st(y){if(!y)return;let L=[];for(let te of y){let Te=Fe(te);Te!==void 0&&L.push(Te)}return L.length>0?L:void 0}function Fe(y){switch(y){case $t.DiagnosticTag.Unnecessary:return Ee.DiagnosticTag.Unnecessary;case $t.DiagnosticTag.Deprecated:return Ee.DiagnosticTag.Deprecated;default:return}}function ot(y){return{message:y.message,location:He(y.location)}}function Qe(y){return y.map(ot)}function Ft(y){if(y!=null)return _i.number(y)||_i.string(y)?y:{value:y.value,target:r(y.target)}}function Je(y){const L=Ee.Diagnostic.create(we(y.range),y.message),te=y instanceof S0.ProtocolDiagnostic?y:void 0;te!==void 0&&te.data!==void 0&&(L.data=te.data);const Te=Ft(y.code);return S0.DiagnosticCode.is(Te)?te!==void 0&&te.hasDiagnosticCode?L.code=Te:(L.code=Te.value,L.codeDescription={href:Te.target}):L.code=Te,_i.number(y.severity)&&(L.severity=Pe(y.severity)),Array.isArray(y.tags)&&(L.tags=st(y.tags)),y.relatedInformation&&(L.relatedInformation=Qe(y.relatedInformation)),y.source&&(L.source=y.source),L}function Xe(y,L){return y==null?y:C0.map(y,Je,L)}function vt(y){return y==null?y:y.map(Je)}function at(y,L){switch(y){case"$string":return L;case Ee.MarkupKind.PlainText:return{kind:y,value:L};case Ee.MarkupKind.Markdown:return{kind:y,value:L.value};default:return`Unsupported Markup content received. Kind is: ${y}`}}function oe(y){switch(y){case $t.CompletionItemTag.Deprecated:return Ee.CompletionItemTag.Deprecated}}function gt(y){if(y===void 0)return y;const L=[];for(let te of y){const Te=oe(te);Te!==void 0&&L.push(Te)}return L}function Ce(y,L){return L!==void 0?L:y+1}function Ze(y,L=!1){let te,Te;_i.string(y.label)?te=y.label:(te=y.label.label,L&&(y.label.detail!==void 0||y.label.description!==void 0)&&(Te={detail:y.label.detail,description:y.label.description}));let xe={label:te};Te!==void 0&&(xe.labelDetails=Te);let ut=y instanceof F6.default?y:void 0;y.detail&&(xe.detail=y.detail),y.documentation&&(!ut||ut.documentationFormat==="$string"?xe.documentation=y.documentation:xe.documentation=at(ut.documentationFormat,y.documentation)),y.filterText&&(xe.filterText=y.filterText),en(xe,y),_i.number(y.kind)&&(xe.kind=Ce(y.kind,ut&&ut.originalItemKind)),y.sortText&&(xe.sortText=y.sortText),y.additionalTextEdits&&(xe.additionalTextEdits=Rt(y.additionalTextEdits)),y.commitCharacters&&(xe.commitCharacters=y.commitCharacters.slice()),y.command&&(xe.command=Kt(y.command)),(y.preselect===!0||y.preselect===!1)&&(xe.preselect=y.preselect);const T=gt(y.tags);if(ut){if(ut.data!==void 0&&(xe.data=ut.data),ut.deprecated===!0||ut.deprecated===!1){if(ut.deprecated===!0&&T!==void 0&&T.length>0){const U=T.indexOf($t.CompletionItemTag.Deprecated);U!==-1&&T.splice(U,1)}xe.deprecated=ut.deprecated}ut.insertTextMode!==void 0&&(xe.insertTextMode=ut.insertTextMode)}return T!==void 0&&T.length>0&&(xe.tags=T),xe.insertTextMode===void 0&&y.keepWhitespace===!0&&(xe.insertTextMode=Ee.InsertTextMode.adjustIndentation),xe}function en(y,L){let te=Ee.InsertTextFormat.PlainText,Te,xe;L.textEdit?(Te=L.textEdit.newText,xe=L.textEdit.range):L.insertText instanceof $t.SnippetString?(te=Ee.InsertTextFormat.Snippet,Te=L.insertText.value):Te=L.insertText,L.range&&(xe=L.range),y.insertTextFormat=te,L.fromEdit&&Te!==void 0&&xe!==void 0?y.textEdit=tn(Te,xe):y.insertText=Te}function tn(y,L){return A1.is(L)?Ee.InsertReplaceEdit.create(y,we(L.inserting),we(L.replacing)):{newText:y,range:we(L)}}function Wt(y){return{range:we(y.range),newText:y.newText}}function Rt(y){return y==null?y:y.map(Wt)}function xt(y){return y<=$t.SymbolKind.TypeParameter?y+1:Ee.SymbolKind.Property}function qe(y){return y}function Ut(y){return y.map(qe)}function Ln(y,L,te){return{textDocument:i(y),position:I(L),context:{includeDeclaration:te.includeDeclaration}}}async function Dn(y,L){let te=Ee.CodeAction.create(y.title);if(y instanceof _0.default&&y.data!==void 0&&(te.data=y.data),y.kind!==void 0&&(te.kind=St(y.kind)),y.diagnostics!==void 0&&(te.diagnostics=await Xe(y.diagnostics,L)),y.edit!==void 0)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return y.command!==void 0&&(te.command=Kt(y.command)),y.isPreferred!==void 0&&(te.isPreferred=y.isPreferred),y.disabled!==void 0&&(te.disabled={reason:y.disabled.reason}),te}function Tn(y){let L=Ee.CodeAction.create(y.title);if(y instanceof _0.default&&y.data!==void 0&&(L.data=y.data),y.kind!==void 0&&(L.kind=St(y.kind)),y.diagnostics!==void 0&&(L.diagnostics=vt(y.diagnostics)),y.edit!==void 0)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return y.command!==void 0&&(L.command=Kt(y.command)),y.isPreferred!==void 0&&(L.isPreferred=y.isPreferred),y.disabled!==void 0&&(L.disabled={reason:y.disabled.reason}),L}async function Nn(y,L){if(y==null)return y;let te;return y.only&&_i.string(y.only.value)&&(te=[y.only.value]),Ee.CodeActionContext.create(await Xe(y.diagnostics,L),te,ln(y.triggerKind))}function kn(y){if(y==null)return y;let L;return y.only&&_i.string(y.only.value)&&(L=[y.only.value]),Ee.CodeActionContext.create(vt(y.diagnostics),L,ln(y.triggerKind))}function ln(y){switch(y){case $t.CodeActionTriggerKind.Invoke:return Ee.CodeActionTriggerKind.Invoked;case $t.CodeActionTriggerKind.Automatic:return Ee.CodeActionTriggerKind.Automatic;default:return}}function St(y){if(y!=null)return y.value}function mn(y){return y==null?y:Ee.InlineValueContext.create(y.frameId,we(y.stoppedLocation))}function Bn(y,L,te){return{context:Ee.InlineCompletionContext.create(te.triggerKind,te.selectedCompletionInfo),textDocument:i(y),position:E(L)}}function Kt(y){let L=Ee.Command.create(y.title,y.command);return y.arguments&&(L.arguments=y.arguments),L}function nn(y){let L=Ee.CodeLens.create(we(y.range));return y.command&&(L.command=Kt(y.command)),y instanceof L6.default&&y.data&&(L.data=y.data),L}function yn(y,L){const te={tabSize:y.tabSize,insertSpaces:y.insertSpaces};return L.trimTrailingWhitespace&&(te.trimTrailingWhitespace=!0),L.trimFinalNewlines&&(te.trimFinalNewlines=!0),L.insertFinalNewline&&(te.insertFinalNewline=!0),te}function Gt(y){return{textDocument:i(y)}}function Rn(y){return{textDocument:i(y)}}function bn(y){let L=Ee.DocumentLink.create(we(y.range));y.target&&(L.target=r(y.target)),y.tooltip!==void 0&&(L.tooltip=y.tooltip);let te=y instanceof N6.default?y:void 0;return te&&te.data&&(L.data=te.data),L}function xn(y){return{textDocument:i(y)}}function Vn(y){const L={name:y.name,kind:xt(y.kind),uri:r(y.uri),range:we(y.range),selectionRange:we(y.selectionRange)};return y.detail!==void 0&&y.detail.length>0&&(L.detail=y.detail),y.tags!==void 0&&(L.tags=Ut(y.tags)),y instanceof $6.default&&y.data!==void 0&&(L.data=y.data),L}function vn(y){const L={name:y.name,kind:xt(y.kind),uri:r(y.uri),range:we(y.range),selectionRange:we(y.selectionRange)};return y.detail!==void 0&&y.detail.length>0&&(L.detail=y.detail),y.tags!==void 0&&(L.tags=Ut(y.tags)),y instanceof q6.default&&y.data!==void 0&&(L.data=y.data),L}function mt(y){const L=y instanceof j6.default?{name:y.name,kind:xt(y.kind),location:y.hasRange?He(y.location):{uri:n(y.location.uri)},data:y.data}:{name:y.name,kind:xt(y.kind),location:He(y.location)};return y.tags!==void 0&&(L.tags=Ut(y.tags)),y.containerName!==""&&(L.containerName=y.containerName),L}function En(y){const L=typeof y.label=="string"?y.label:y.label.map($n),te=Ee.InlayHint.create(E(y.position),L);return y.kind!==void 0&&(te.kind=y.kind),y.textEdits!==void 0&&(te.textEdits=Rt(y.textEdits)),y.tooltip!==void 0&&(te.tooltip=Lt(y.tooltip)),y.paddingLeft!==void 0&&(te.paddingLeft=y.paddingLeft),y.paddingRight!==void 0&&(te.paddingRight=y.paddingRight),y instanceof H6.default&&y.data!==void 0&&(te.data=y.data),te}function $n(y){const L=Ee.InlayHintLabelPart.create(y.value);return y.location!==void 0&&(L.location=He(y.location)),y.command!==void 0&&(L.command=Kt(y.command)),y.tooltip!==void 0&&(L.tooltip=Lt(y.tooltip)),L}function Lt(y){return typeof y=="string"?y:{kind:Ee.MarkupKind.Markdown,value:y.value}}return{asUri:r,asTextDocumentIdentifier:i,asTextDocumentItem:s,asVersionedTextDocumentIdentifier:o,asOpenTextDocumentParams:a,asChangeTextDocumentParams:f,asCloseTextDocumentParams:p,asSaveTextDocumentParams:g,asWillSaveTextDocumentParams:C,asDidCreateFilesParams:k,asDidRenameFilesParams:M,asDidDeleteFilesParams:H,asWillCreateFilesParams:K,asWillRenameFilesParams:j,asWillDeleteFilesParams:B,asTextDocumentPositionParams:z,asCompletionParams:G,asSignatureHelpParams:R,asWorkerPosition:I,asRange:we,asRanges:lt,asPosition:E,asPositions:V,asPositionsSync:Me,asLocation:He,asDiagnosticSeverity:Pe,asDiagnosticTag:Fe,asDiagnostic:Je,asDiagnostics:Xe,asDiagnosticsSync:vt,asCompletionItem:Ze,asTextEdit:Wt,asSymbolKind:xt,asSymbolTag:qe,asSymbolTags:Ut,asReferenceParams:Ln,asCodeAction:Dn,asCodeActionSync:Tn,asCodeActionContext:Nn,asCodeActionContextSync:kn,asInlineValueContext:mn,asCommand:Kt,asCodeLens:nn,asFormattingOptions:yn,asDocumentSymbolParams:Gt,asCodeLensParams:Rn,asDocumentLink:bn,asDocumentLinkParams:xn,asCallHierarchyItem:Vn,asTypeHierarchyItem:vn,asInlayHint:En,asWorkspaceSymbol:mt,asInlineCompletionParams:Bn}}Gc.createConverter=W6;var rl={};Object.defineProperty(rl,"__esModule",{value:!0});rl.createConverter=void 0;const ee=Re,ke=ye,Gn=Ye,Ve=Zt,U6=Qc,z6=Jc,B6=Yc,V6=Xc,D0=Yi,K6=Zc,G6=el,Q6=tl,J6=nl,T0=ye;var vc;(function(t){function e(n){let r=n;return r&&Gn.string(r.language)&&Gn.string(r.value)}t.is=e})(vc||(vc={}));function Y6(t,e,n){const i=t||(d=>ee.Uri.parse(d));function s(d){return i(d)}function o(d){const S=[];for(const O of d)if(typeof O=="string")S.push(O);else if(T0.NotebookCellTextDocumentFilter.is(O))if(typeof O.notebook=="string")S.push({notebookType:O.notebook,language:O.language});else{const W=O.notebook.notebookType??"*";S.push({notebookType:W,scheme:O.notebook.scheme,pattern:O.notebook.pattern,language:O.language})}else T0.TextDocumentFilter.is(O)&&S.push({language:O.language,scheme:O.scheme,pattern:O.pattern});return S}async function a(d,S){return Ve.map(d,l,S)}function c(d){const S=new Array(d.length);for(let O=0;O<d.length;O++)S[O]=l(d[O]);return S}function l(d){let S=new D0.ProtocolDiagnostic(C(d.range),d.message,M(d.severity),d.data);if(d.code!==void 0){if(typeof d.code=="string"||typeof d.code=="number")ke.CodeDescription.is(d.codeDescription)?S.code={value:d.code,target:s(d.codeDescription.href)}:S.code=d.code;else if(D0.DiagnosticCode.is(d.code)){S.hasDiagnosticCode=!0;const O=d.code;S.code={value:O.value,target:s(O.target)}}}return d.source&&(S.source=d.source),d.relatedInformation&&(S.relatedInformation=f(d.relatedInformation)),Array.isArray(d.tags)&&(S.tags=p(d.tags)),S}function f(d){const S=new Array(d.length);for(let O=0;O<d.length;O++){const W=d[O];S[O]=new ee.DiagnosticRelatedInformation(Pe(W.location),W.message)}return S}function p(d){if(!d)return;let S=[];for(let O of d){let W=g(O);W!==void 0&&S.push(W)}return S.length>0?S:void 0}function g(d){switch(d){case ke.DiagnosticTag.Unnecessary:return ee.DiagnosticTag.Unnecessary;case ke.DiagnosticTag.Deprecated:return ee.DiagnosticTag.Deprecated;default:return}}function _(d){return d?new ee.Position(d.line,d.character):void 0}function C(d){return d?new ee.Range(d.start.line,d.start.character,d.end.line,d.end.character):void 0}async function k(d,S){return Ve.map(d,O=>new ee.Range(O.start.line,O.start.character,O.end.line,O.end.character),S)}function M(d){if(d==null)return ee.DiagnosticSeverity.Error;switch(d){case ke.DiagnosticSeverity.Error:return ee.DiagnosticSeverity.Error;case ke.DiagnosticSeverity.Warning:return ee.DiagnosticSeverity.Warning;case ke.DiagnosticSeverity.Information:return ee.DiagnosticSeverity.Information;case ke.DiagnosticSeverity.Hint:return ee.DiagnosticSeverity.Hint}return ee.DiagnosticSeverity.Error}function H(d){if(Gn.string(d))return j(d);if(vc.is(d))return j().appendCodeblock(d.value,d.language);if(Array.isArray(d)){let S=[];for(let O of d){let W=j();vc.is(O)?W.appendCodeblock(O.value,O.language):W.appendMarkdown(O),S.push(W)}return S}else return j(d)}function K(d){if(Gn.string(d))return d;switch(d.kind){case ke.MarkupKind.Markdown:return j(d.value);case ke.MarkupKind.PlainText:return d.value;default:return`Unsupported Markup content received. Kind is: ${d.kind}`}}function j(d){let S;if(d===void 0||typeof d=="string")S=new ee.MarkdownString(d);else switch(d.kind){case ke.MarkupKind.Markdown:S=new ee.MarkdownString(d.value);break;case ke.MarkupKind.PlainText:S=new ee.MarkdownString,S.appendText(d.value);break;default:S=new ee.MarkdownString,S.appendText(`Unsupported Markup content received. Kind is: ${d.kind}`);break}return S.isTrusted=e,S.supportHtml=n,S}function B(d){if(d)return new ee.Hover(H(d.contents),C(d.range))}async function z(d,S,O){if(!d)return;if(Array.isArray(d))return Ve.map(d,Pn=>Le(Pn,S),O);const W=d,{defaultRange:de,commitCharacters:be}=ne(W,S),_e=await Ve.map(W.items,Pn=>{var et,wi,Gs;return Le(Pn,be,de,(et=W.itemDefaults)==null?void 0:et.insertTextMode,(wi=W.itemDefaults)==null?void 0:wi.insertTextFormat,(Gs=W.itemDefaults)==null?void 0:Gs.data)},O);return new ee.CompletionList(_e,W.isIncomplete)}function ne(d,S){var de,be;const O=(de=d.itemDefaults)==null?void 0:de.editRange,W=((be=d.itemDefaults)==null?void 0:be.commitCharacters)??S;return ke.Range.is(O)?{defaultRange:C(O),commitCharacters:W}:O!==void 0?{defaultRange:{inserting:C(O.insert),replacing:C(O.replace)},commitCharacters:W}:{defaultRange:void 0,commitCharacters:W}}function G(d){return ke.CompletionItemKind.Text<=d&&d<=ke.CompletionItemKind.TypeParameter?[d-1,void 0]:[ee.CompletionItemKind.Text,d]}function Y(d){switch(d){case ke.CompletionItemTag.Deprecated:return ee.CompletionItemTag.Deprecated}}function re(d){if(d==null)return[];const S=[];for(const O of d){const W=Y(O);W!==void 0&&S.push(W)}return S}function Le(d,S,O,W,de,be){const _e=re(d.tags),Pn=$(d),et=new U6.default(Pn);d.detail&&(et.detail=d.detail),d.documentation&&(et.documentation=K(d.documentation),et.documentationFormat=Gn.string(d.documentation)?"$string":d.documentation.kind),d.filterText&&(et.filterText=d.filterText);const wi=P(d,O,de);if(wi&&(et.insertText=wi.text,et.range=wi.range,et.fromEdit=wi.fromEdit),Gn.number(d.kind)){let[zy,Cp]=G(d.kind);et.kind=zy,Cp&&(et.originalItemKind=Cp)}d.sortText&&(et.sortText=d.sortText),d.additionalTextEdits&&(et.additionalTextEdits=E(d.additionalTextEdits));const Gs=d.commitCharacters!==void 0?Gn.stringArray(d.commitCharacters)?d.commitCharacters:void 0:S;Gs&&(et.commitCharacters=Gs.slice()),d.command&&(et.command=Rt(d.command)),(d.deprecated===!0||d.deprecated===!1)&&(et.deprecated=d.deprecated,d.deprecated===!0&&_e.push(ee.CompletionItemTag.Deprecated)),(d.preselect===!0||d.preselect===!1)&&(et.preselect=d.preselect);const wp=d.data??be;wp!==void 0&&(et.data=wp),_e.length>0&&(et.tags=_e);const Fl=d.insertTextMode??W;return Fl!==void 0&&(et.insertTextMode=Fl,Fl===ke.InsertTextMode.asIs&&(et.keepWhitespace=!0)),et}function $(d){return ke.CompletionItemLabelDetails.is(d.labelDetails)?{label:d.label,detail:d.labelDetails.detail,description:d.labelDetails.description}:d.label}function P(d,S,O){const W=d.insertTextFormat??O;if(d.textEdit!==void 0||S!==void 0){const[de,be]=d.textEdit!==void 0?v(d.textEdit):[S,d.textEditText??d.label];return W===ke.InsertTextFormat.Snippet?{text:new ee.SnippetString(be),range:de,fromEdit:!0}:{text:be,range:de,fromEdit:!0}}else return d.insertText?W===ke.InsertTextFormat.Snippet?{text:new ee.SnippetString(d.insertText),fromEdit:!1}:{text:d.insertText,fromEdit:!1}:void 0}function v(d){return ke.InsertReplaceEdit.is(d)?[{inserting:C(d.insert),replacing:C(d.replace)},d.newText]:[C(d.range),d.newText]}function R(d){if(d)return new ee.TextEdit(C(d.range),d.newText)}async function I(d,S){if(d)return Ve.map(d,R,S)}function E(d){if(!d)return;const S=new Array(d.length);for(let O=0;O<d.length;O++)S[O]=R(d[O]);return S}async function V(d,S){if(!d)return;let O=new ee.SignatureHelp;return Gn.number(d.activeSignature)?O.activeSignature=d.activeSignature:O.activeSignature=0,Gn.number(d.activeParameter)?O.activeParameter=d.activeParameter:O.activeParameter=0,d.signatures&&(O.signatures=await Me(d.signatures,S)),O}async function Me(d,S){return Ve.mapAsync(d,we,S)}async function we(d,S){let O=new ee.SignatureInformation(d.label);return d.documentation!==void 0&&(O.documentation=K(d.documentation)),d.parameters!==void 0&&(O.parameters=await lt(d.parameters,S)),d.activeParameter!==void 0&&(O.activeParameter=d.activeParameter),O}function lt(d,S){return Ve.map(d,He,S)}function He(d){let S=new ee.ParameterInformation(d.label);return d.documentation&&(S.documentation=K(d.documentation)),S}function Pe(d){return d?new ee.Location(i(d.uri),C(d.range)):void 0}async function st(d,S){if(d)return Qe(d,S)}async function Fe(d,S){if(d)return Qe(d,S)}function ot(d){if(!d)return;let S={targetUri:i(d.targetUri),targetRange:C(d.targetRange),originSelectionRange:C(d.originSelectionRange),targetSelectionRange:C(d.targetSelectionRange)};if(!S.targetSelectionRange)throw new Error("targetSelectionRange must not be undefined or null");return S}async function Qe(d,S){if(d)if(Gn.array(d)){if(d.length===0)return[];if(ke.LocationLink.is(d[0])){const O=d;return Ve.map(O,ot,S)}else{const O=d;return Ve.map(O,Pe,S)}}else return ke.LocationLink.is(d)?[ot(d)]:Pe(d)}async function Ft(d,S){if(d)return Ve.map(d,Pe,S)}async function Je(d,S){if(d)return Ve.map(d,Xe,S)}function Xe(d){let S=new ee.DocumentHighlight(C(d.range));return Gn.number(d.kind)&&(S.kind=vt(d.kind)),S}function vt(d){switch(d){case ke.DocumentHighlightKind.Text:return ee.DocumentHighlightKind.Text;case ke.DocumentHighlightKind.Read:return ee.DocumentHighlightKind.Read;case ke.DocumentHighlightKind.Write:return ee.DocumentHighlightKind.Write}return ee.DocumentHighlightKind.Text}async function at(d,S){if(d)return Ve.map(d,Ze,S)}function oe(d){return d<=ke.SymbolKind.TypeParameter?d-1:ee.SymbolKind.Property}function gt(d){switch(d){case ke.SymbolTag.Deprecated:return ee.SymbolTag.Deprecated;default:return}}function Ce(d){if(d==null)return;const S=[];for(const O of d){const W=gt(O);W!==void 0&&S.push(W)}return S.length===0?void 0:S}function Ze(d){const S=d.data,O=d.location,W=O.range===void 0||S!==void 0?new Q6.default(d.name,oe(d.kind),d.containerName??"",O.range===void 0?i(O.uri):new ee.Location(i(d.location.uri),C(O.range)),S):new ee.SymbolInformation(d.name,oe(d.kind),d.containerName??"",new ee.Location(i(d.location.uri),C(O.range)));return Wt(W,d),W}async function en(d,S){if(d!=null)return Ve.map(d,tn,S)}function tn(d){let S=new ee.DocumentSymbol(d.name,d.detail||"",oe(d.kind),C(d.range),C(d.selectionRange));if(Wt(S,d),d.children!==void 0&&d.children.length>0){let O=[];for(let W of d.children)O.push(tn(W));S.children=O}return S}function Wt(d,S){d.tags=Ce(S.tags),S.deprecated&&(d.tags?d.tags.includes(ee.SymbolTag.Deprecated)||(d.tags=d.tags.concat(ee.SymbolTag.Deprecated)):d.tags=[ee.SymbolTag.Deprecated])}function Rt(d){let S={title:d.title,command:d.command};return d.arguments&&(S.arguments=d.arguments),S}async function xt(d,S){if(d)return Ve.map(d,Rt,S)}const qe=new Map;qe.set(ke.CodeActionKind.Empty,ee.CodeActionKind.Empty),qe.set(ke.CodeActionKind.QuickFix,ee.CodeActionKind.QuickFix),qe.set(ke.CodeActionKind.Refactor,ee.CodeActionKind.Refactor),qe.set(ke.CodeActionKind.RefactorExtract,ee.CodeActionKind.RefactorExtract),qe.set(ke.CodeActionKind.RefactorInline,ee.CodeActionKind.RefactorInline),qe.set(ke.CodeActionKind.RefactorRewrite,ee.CodeActionKind.RefactorRewrite),qe.set(ke.CodeActionKind.Source,ee.CodeActionKind.Source),qe.set(ke.CodeActionKind.SourceOrganizeImports,ee.CodeActionKind.SourceOrganizeImports);function Ut(d){if(d==null)return;let S=qe.get(d);if(S)return S;let O=d.split(".");S=ee.CodeActionKind.Empty;for(let W of O)S=S.append(W);return S}function Ln(d){if(d!=null)return d.map(S=>Ut(S))}async function Dn(d,S){if(d==null)return;let O=new V6.default(d.title,d.data);return d.kind!==void 0&&(O.kind=Ut(d.kind)),d.diagnostics!==void 0&&(O.diagnostics=c(d.diagnostics)),d.edit!==void 0&&(O.edit=await ln(d.edit,S)),d.command!==void 0&&(O.command=Rt(d.command)),d.isPreferred!==void 0&&(O.isPreferred=d.isPreferred),d.disabled!==void 0&&(O.disabled={reason:d.disabled.reason}),O}function Tn(d,S){return Ve.mapAsync(d,async O=>ke.Command.is(O)?Rt(O):Dn(O,S),S)}function Nn(d){if(!d)return;let S=new z6.default(C(d.range));return d.command&&(S.command=Rt(d.command)),d.data!==void 0&&d.data!==null&&(S.data=d.data),S}async function kn(d,S){if(d)return Ve.map(d,Nn,S)}async function ln(d,S){if(!d)return;const O=new Map;if(d.changeAnnotations!==void 0){const be=d.changeAnnotations;await Ve.forEach(Object.keys(be),_e=>{const Pn=St(be[_e]);O.set(_e,Pn)},S)}const W=be=>{if(be!==void 0)return O.get(be)},de=new ee.WorkspaceEdit;if(d.documentChanges){const be=d.documentChanges;await Ve.forEach(be,_e=>{if(ke.CreateFile.is(_e))de.createFile(i(_e.uri),_e.options,W(_e.annotationId));else if(ke.RenameFile.is(_e))de.renameFile(i(_e.oldUri),i(_e.newUri),_e.options,W(_e.annotationId));else if(ke.DeleteFile.is(_e))de.deleteFile(i(_e.uri),_e.options,W(_e.annotationId));else if(ke.TextDocumentEdit.is(_e)){const Pn=i(_e.textDocument.uri);for(const et of _e.edits)ke.AnnotatedTextEdit.is(et)?de.replace(Pn,C(et.range),et.newText,W(et.annotationId)):de.replace(Pn,C(et.range),et.newText)}else throw new Error(`Unknown workspace edit change received:
|
|
102
|
-
${JSON.stringify(_e,void 0,4)}`)},S)}else if(d.changes){const be=d.changes;await Ve.forEach(Object.keys(be),_e=>{de.set(i(_e),E(be[_e]))},S)}return de}function St(d){if(d!==void 0)return{label:d.label,needsConfirmation:!!d.needsConfirmation,description:d.description}}function mn(d){let S=C(d.range),O=d.target?s(d.target):void 0,W=new B6.default(S,O);return d.tooltip!==void 0&&(W.tooltip=d.tooltip),d.data!==void 0&&d.data!==null&&(W.data=d.data),W}async function Bn(d,S){if(d)return Ve.map(d,mn,S)}function Kt(d){return new ee.Color(d.red,d.green,d.blue,d.alpha)}function nn(d){return new ee.ColorInformation(C(d.range),Kt(d.color))}async function yn(d,S){if(d)return Ve.map(d,nn,S)}function Gt(d){let S=new ee.ColorPresentation(d.label);return S.additionalTextEdits=E(d.additionalTextEdits),d.textEdit&&(S.textEdit=R(d.textEdit)),S}async function Rn(d,S){if(d)return Ve.map(d,Gt,S)}function bn(d){if(d)switch(d){case ke.FoldingRangeKind.Comment:return ee.FoldingRangeKind.Comment;case ke.FoldingRangeKind.Imports:return ee.FoldingRangeKind.Imports;case ke.FoldingRangeKind.Region:return ee.FoldingRangeKind.Region}}function xn(d){return new ee.FoldingRange(d.startLine,d.endLine,bn(d.kind))}async function Vn(d,S){if(d)return Ve.map(d,xn,S)}function vn(d){return new ee.SelectionRange(C(d.range),d.parent?vn(d.parent):void 0)}async function mt(d,S){return Array.isArray(d)?Ve.map(d,vn,S):[]}function En(d){return ke.InlineValueText.is(d)?new ee.InlineValueText(C(d.range),d.text):ke.InlineValueVariableLookup.is(d)?new ee.InlineValueVariableLookup(C(d.range),d.variableName,d.caseSensitiveLookup):new ee.InlineValueEvaluatableExpression(C(d.range),d.expression)}async function $n(d,S){return Array.isArray(d)?Ve.map(d,En,S):[]}async function Lt(d,S){const O=typeof d.label=="string"?d.label:await Ve.map(d.label,y,S),W=new J6.default(_(d.position),O);return d.kind!==void 0&&(W.kind=d.kind),d.textEdits!==void 0&&(W.textEdits=await I(d.textEdits,S)),d.tooltip!==void 0&&(W.tooltip=L(d.tooltip)),d.paddingLeft!==void 0&&(W.paddingLeft=d.paddingLeft),d.paddingRight!==void 0&&(W.paddingRight=d.paddingRight),d.data!==void 0&&(W.data=d.data),W}function y(d){const S=new ee.InlayHintLabelPart(d.value);return d.location!==void 0&&(S.location=Pe(d.location)),d.tooltip!==void 0&&(S.tooltip=L(d.tooltip)),d.command!==void 0&&(S.command=Rt(d.command)),S}function L(d){return typeof d=="string"?d:j(d)}async function te(d,S){if(Array.isArray(d))return Ve.mapAsync(d,Lt,S)}function Te(d){if(d===null)return;const S=new K6.default(oe(d.kind),d.name,d.detail||"",s(d.uri),C(d.range),C(d.selectionRange),d.data);return d.tags!==void 0&&(S.tags=Ce(d.tags)),S}async function xe(d,S){if(d!==null)return Ve.map(d,Te,S)}async function ut(d,S){return new ee.CallHierarchyIncomingCall(Te(d.from),await k(d.fromRanges,S))}async function T(d,S){if(d!==null)return Ve.mapAsync(d,ut,S)}async function U(d,S){return new ee.CallHierarchyOutgoingCall(Te(d.to),await k(d.fromRanges,S))}async function X(d,S){if(d!==null)return Ve.mapAsync(d,U,S)}async function w(d,S){if(d!=null)return new ee.SemanticTokens(new Uint32Array(d.data),d.resultId)}function ge(d){return new ee.SemanticTokensEdit(d.start,d.deleteCount,d.data!==void 0?new Uint32Array(d.data):void 0)}async function me(d,S){if(d!=null)return new ee.SemanticTokensEdits(d.edits.map(ge),d.resultId)}function J(d){return d}async function h(d,S){if(d!=null)return new ee.LinkedEditingRanges(await k(d.ranges,S),D(d.wordPattern))}function D(d){if(d!=null)return new RegExp(d)}function x(d){if(d===null)return;let S=new G6.default(oe(d.kind),d.name,d.detail||"",s(d.uri),C(d.range),C(d.selectionRange),d.data);return d.tags!==void 0&&(S.tags=Ce(d.tags)),S}async function N(d,S){if(d!==null)return Ve.map(d,x,S)}function le(d){if(Gn.string(d))return d;if(ke.RelativePattern.is(d)){if(ke.URI.is(d.baseUri))return new ee.RelativePattern(s(d.baseUri),d.pattern);if(ke.WorkspaceFolder.is(d.baseUri)){const S=ee.workspace.getWorkspaceFolder(s(d.baseUri.uri));return S!==void 0?new ee.RelativePattern(S,d.pattern):void 0}}}async function ce(d,S){if(!d)return;if(Array.isArray(d))return Ve.map(d,de=>fe(de),S);const O=d,W=await Ve.map(O.items,de=>fe(de),S);return new ee.InlineCompletionList(W)}function fe(d){let S;typeof d.insertText=="string"?S=d.insertText:S=new ee.SnippetString(d.insertText.value);let O;d.command&&(O=Rt(d.command));const W=new ee.InlineCompletionItem(S,C(d.range),O);return d.filterText&&(W.filterText=d.filterText),W}return{asUri:s,asDocumentSelector:o,asDiagnostics:a,asDiagnostic:l,asRange:C,asRanges:k,asPosition:_,asDiagnosticSeverity:M,asDiagnosticTag:g,asHover:B,asCompletionResult:z,asCompletionItem:Le,asTextEdit:R,asTextEdits:I,asSignatureHelp:V,asSignatureInformations:Me,asSignatureInformation:we,asParameterInformations:lt,asParameterInformation:He,asDeclarationResult:st,asDefinitionResult:Fe,asLocation:Pe,asReferences:Ft,asDocumentHighlights:Je,asDocumentHighlight:Xe,asDocumentHighlightKind:vt,asSymbolKind:oe,asSymbolTag:gt,asSymbolTags:Ce,asSymbolInformations:at,asSymbolInformation:Ze,asDocumentSymbols:en,asDocumentSymbol:tn,asCommand:Rt,asCommands:xt,asCodeAction:Dn,asCodeActionKind:Ut,asCodeActionKinds:Ln,asCodeActionResult:Tn,asCodeLens:Nn,asCodeLenses:kn,asWorkspaceEdit:ln,asDocumentLink:mn,asDocumentLinks:Bn,asFoldingRangeKind:bn,asFoldingRange:xn,asFoldingRanges:Vn,asColor:Kt,asColorInformation:nn,asColorInformations:yn,asColorPresentation:Gt,asColorPresentations:Rn,asSelectionRange:vn,asSelectionRanges:mt,asInlineValue:En,asInlineValues:$n,asInlayHint:Lt,asInlayHints:te,asSemanticTokensLegend:J,asSemanticTokens:w,asSemanticTokensEdit:ge,asSemanticTokensEdits:me,asCallHierarchyItem:Te,asCallHierarchyItems:xe,asCallHierarchyIncomingCall:ut,asCallHierarchyIncomingCalls:T,asCallHierarchyOutgoingCall:U,asCallHierarchyOutgoingCalls:X,asLinkedEditingRanges:h,asTypeHierarchyItem:x,asTypeHierarchyItems:N,asGlobPattern:le,asInlineCompletionResult:ce,asInlineCompletionItem:fe}}rl.createConverter=Y6;var la={};Object.defineProperty(la,"__esModule",{value:!0});la.ProgressPart=void 0;const k0=Re,R0=ye,x0=Ye;class X6{constructor(e,n,r){this._client=e,this._token=n,this._reported=0,this._infinite=!1,this._lspProgressDisposable=this._client.onProgress(R0.WorkDoneProgress.type,this._token,i=>{switch(i.kind){case"begin":this.begin(i);break;case"report":this.report(i);break;case"end":this.done(),r&&r(this);break}})}begin(e){this._infinite=e.percentage===void 0,this._lspProgressDisposable!==void 0&&k0.window.withProgress({location:k0.ProgressLocation.Window,cancellable:e.cancellable,title:e.title},async(n,r)=>{if(this._lspProgressDisposable!==void 0)return this._progress=n,this._cancellationToken=r,this._tokenDisposable=this._cancellationToken.onCancellationRequested(()=>{this._client.sendNotification(R0.WorkDoneProgressCancelNotification.type,{token:this._token})}),this.report(e),new Promise((i,s)=>{this._resolve=i,this._reject=s})})}report(e){if(this._infinite&&x0.string(e.message))this._progress!==void 0&&this._progress.report({message:e.message});else if(x0.number(e.percentage)){const n=Math.max(0,Math.min(e.percentage,100)),r=Math.max(0,n-this._reported);this._reported+=r,this._progress!==void 0&&this._progress.report({message:e.message,increment:r})}}cancel(){this.cleanup(),this._reject!==void 0&&(this._reject(),this._resolve=void 0,this._reject=void 0)}done(){this.cleanup(),this._resolve!==void 0&&(this._resolve(),this._resolve=void 0,this._reject=void 0)}cleanup(){this._lspProgressDisposable!==void 0&&(this._lspProgressDisposable.dispose(),this._lspProgressDisposable=void 0),this._tokenDisposable!==void 0&&(this._tokenDisposable.dispose(),this._tokenDisposable=void 0),this._progress=void 0,this._cancellationToken=void 0}}la.ProgressPart=X6;var il={};Object.defineProperty(il,"__esModule",{value:!0});il.NotebookDocumentSyncFeature=void 0;const fn=Re,Z6=Vc,qr=ye,e3=Be,E0=Ye;function P0(t,e){return t[e]===void 0&&(t[e]={}),t[e]}var fs;(function(t){(function(e){function n(p,g){return{version:p.version,uri:g.asUri(p.uri)}}e.asVersionedNotebookDocumentIdentifier=n;function r(p,g,_){const C=qr.NotebookDocument.create(_.asUri(p.uri),p.notebookType,p.version,i(g,_));return Object.keys(p.metadata).length>0&&(C.metadata=s(p.metadata)),C}e.asNotebookDocument=r;function i(p,g){return p.map(_=>o(_,g))}e.asNotebookCells=i;function s(p){return c(new Set,p)}e.asMetadata=s;function o(p,g){const _=qr.NotebookCell.create(a(p.kind),g.asUri(p.document.uri));return Object.keys(p.metadata).length>0&&(_.metadata=s(p.metadata)),p.executionSummary!==void 0&&E0.number(p.executionSummary.executionOrder)&&E0.boolean(p.executionSummary.success)&&(_.executionSummary={executionOrder:p.executionSummary.executionOrder,success:p.executionSummary.success}),_}e.asNotebookCell=o;function a(p){switch(p){case fn.NotebookCellKind.Markup:return qr.NotebookCellKind.Markup;case fn.NotebookCellKind.Code:return qr.NotebookCellKind.Code}}function c(p,g){if(p.has(g))throw new Error("Can't deep copy cyclic structures.");if(Array.isArray(g)){const _=[];for(const C of g)if(C!==null&&typeof C=="object"||Array.isArray(C))_.push(c(p,C));else{if(C instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");_.push(C)}return _}else{const _=Object.keys(g),C=Object.create(null);for(const k of _){const M=g[k];if(M!==null&&typeof M=="object"||Array.isArray(M))C[k]=c(p,M);else{if(M instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");C[k]=M}}return C}}function l(p,g){const _=g.asChangeTextDocumentParams(p,p.document.uri,p.document.version);return{document:_.textDocument,changes:_.contentChanges}}e.asTextContentChange=l;function f(p,g){const _=Object.create(null);if(p.metadata&&(_.metadata=t.c2p.asMetadata(p.metadata)),p.cells!==void 0){const C=Object.create(null),k=p.cells;k.structure&&(C.structure={array:{start:k.structure.array.start,deleteCount:k.structure.array.deleteCount,cells:k.structure.array.cells!==void 0?k.structure.array.cells.map(M=>t.c2p.asNotebookCell(M,g)):void 0},didOpen:k.structure.didOpen!==void 0?k.structure.didOpen.map(M=>g.asOpenTextDocumentParams(M.document).textDocument):void 0,didClose:k.structure.didClose!==void 0?k.structure.didClose.map(M=>g.asCloseTextDocumentParams(M.document).textDocument):void 0}),k.data!==void 0&&(C.data=k.data.map(M=>t.c2p.asNotebookCell(M,g))),k.textContent!==void 0&&(C.textContent=k.textContent.map(M=>t.c2p.asTextContentChange(M,g))),Object.keys(C).length>0&&(_.cells=C)}return _}e.asNotebookDocumentChangeEvent=f})(t.c2p||(t.c2p={}))})(fs||(fs={}));var F1;(function(t){function e(a,c,l){const f=a.length,p=c.length;let g=0;for(;g<p&&g<f&&n(a[g],c[g],l);)g++;if(g<p&&g<f){let _=f-1,C=p-1;for(;_>=0&&C>=0&&n(a[_],c[C],l);)_--,C--;const k=_+1-g,M=g===C+1?void 0:c.slice(g,C+1);return M!==void 0?{start:g,deleteCount:k,cells:M}:{start:g,deleteCount:k}}else return g<p?{start:g,deleteCount:0,cells:c.slice(g)}:g<f?{start:g,deleteCount:f-g}:void 0}t.computeDiff=e;function n(a,c,l=!0){return a.kind!==c.kind||a.document.uri.toString()!==c.document.uri.toString()||a.document.languageId!==c.document.languageId||!r(a.executionSummary,c.executionSummary)?!1:!l||l&&s(a.metadata,c.metadata)}function r(a,c){return a===c?!0:a===void 0||c===void 0?!1:a.executionOrder===c.executionOrder&&a.success===c.success&&i(a.timing,c.timing)}function i(a,c){return a===c?!0:a===void 0||c===void 0?!1:a.startTime===c.startTime&&a.endTime===c.endTime}function s(a,c){if(a===c)return!0;if(a==null||c===null||c===void 0||typeof a!=typeof c||typeof a!="object")return!1;const l=Array.isArray(a),f=Array.isArray(c);if(l!==f)return!1;if(l&&f){if(a.length!==c.length)return!1;for(let p=0;p<a.length;p++)if(!s(a[p],c[p]))return!1}if(o(a)&&o(c)){const p=Object.keys(a),g=Object.keys(c);if(p.length!==g.length||(p.sort(),g.sort(),!s(p,g)))return!1;for(let _=0;_<p.length;_++){const C=p[_];if(!s(a[C],c[C]))return!1}return!0}return!1}function o(a){return a!==null&&typeof a=="object"}t.isObjectLiteral=o})(F1||(F1={}));var L1;(function(t){function e(n,r){if(typeof n=="string")return n==="*"||r.notebookType===n;if(n.notebookType!==void 0&&n.notebookType!=="*"&&r.notebookType!==n.notebookType)return!1;const i=r.uri;if(n.scheme!==void 0&&n.scheme!=="*"&&i.scheme!==n.scheme)return!1;if(n.pattern!==void 0){const s=new Z6.Minimatch(n.pattern,{noext:!0});if(!s.makeRe()||!s.match(i.fsPath))return!1}return!0}t.matchNotebook=e})(L1||(L1={}));var wc;(function(t){function e(r){var o,a,c;const i=r.notebookSelector,s=[];for(const l of i){const f=(typeof l.notebook=="string"?l.notebook:(o=l.notebook)==null?void 0:o.notebookType)??"*",p=typeof l.notebook=="string"||(a=l.notebook)==null?void 0:a.scheme,g=typeof l.notebook=="string"||(c=l.notebook)==null?void 0:c.pattern;if(l.cells!==void 0)for(const _ of l.cells)s.push(n(f,p,g,_.language));else s.push(n(f,p,g,void 0))}return s}t.asDocumentSelector=e;function n(r,i,s,o){return i===void 0&&s===void 0?{notebook:r,language:o}:{notebook:{notebookType:r,scheme:i,pattern:s},language:o}}})(wc||(wc={}));var Cc;(function(t){function e(n){return{cells:n,uris:new Set(n.map(r=>r.document.uri.toString()))}}t.create=e})(Cc||(Cc={}));class wa{constructor(e,n){this.client=e,this.options=n,this.notebookSyncInfo=new Map,this.notebookDidOpen=new Set,this.disposables=[],this.selector=e.protocol2CodeConverter.asDocumentSelector(wc.asDocumentSelector(n)),fn.workspace.onDidOpenNotebookDocument(r=>{this.notebookDidOpen.add(r.uri.toString()),this.didOpen(r)},void 0,this.disposables);for(const r of fn.workspace.notebookDocuments)this.notebookDidOpen.add(r.uri.toString()),this.didOpen(r);fn.workspace.onDidChangeNotebookDocument(r=>this.didChangeNotebookDocument(r),void 0,this.disposables),this.options.save===!0&&fn.workspace.onDidSaveNotebookDocument(r=>this.didSave(r),void 0,this.disposables),fn.workspace.onDidCloseNotebookDocument(r=>{this.didClose(r),this.notebookDidOpen.delete(r.uri.toString())},void 0,this.disposables)}getState(){for(const e of fn.workspace.notebookDocuments)if(this.getMatchingCells(e)!==void 0)return{kind:"document",id:"$internal",registrations:!0,matches:!0};return{kind:"document",id:"$internal",registrations:!0,matches:!1}}get mode(){return"notebook"}handles(e){return fn.languages.match(this.selector,e)>0}didOpenNotebookCellTextDocument(e,n){if(fn.languages.match(this.selector,n.document)===0||!this.notebookDidOpen.has(e.uri.toString()))return;const r=this.notebookSyncInfo.get(e.uri.toString()),i=this.cellMatches(e,n);if(r!==void 0){const s=r.uris.has(n.document.uri.toString());if(i&&s||!i&&!s)return;if(i){const o=this.getMatchingCells(e);if(o!==void 0){const a=this.asNotebookDocumentChangeEvent(e,void 0,r,o);a!==void 0&&this.doSendChange(a,o).catch(()=>{})}}}else i&&this.doSendOpen(e,[n]).catch(()=>{})}didChangeNotebookCellTextDocument(e,n){fn.languages.match(this.selector,n.document)!==0&&this.doSendChange({notebook:e,cells:{textContent:[n]}},void 0).catch(()=>{})}didCloseNotebookCellTextDocument(e,n){const r=this.notebookSyncInfo.get(e.uri.toString());if(r===void 0)return;const i=n.document.uri,s=r.cells.findIndex(o=>o.document.uri.toString()===i.toString());if(s!==-1)if(s===0&&r.cells.length===1)this.doSendClose(e,r.cells).catch(()=>{});else{const o=r.cells.slice(),a=o.splice(s,1);this.doSendChange({notebook:e,cells:{structure:{array:{start:s,deleteCount:1},didClose:a}}},o).catch(()=>{})}}dispose(){for(const e of this.disposables)e.dispose()}didOpen(e,n=this.getMatchingCells(e),r=this.notebookSyncInfo.get(e.uri.toString())){if(r!==void 0)if(n!==void 0){const i=this.asNotebookDocumentChangeEvent(e,void 0,r,n);i!==void 0&&this.doSendChange(i,n).catch(()=>{})}else this.doSendClose(e,[]).catch(()=>{});else{if(n===void 0)return;this.doSendOpen(e,n).catch(()=>{})}}didChangeNotebookDocument(e){const n=e.notebook,r=this.notebookSyncInfo.get(n.uri.toString());if(r===void 0){if(e.contentChanges.length===0)return;const i=this.getMatchingCells(n);if(i===void 0)return;this.didOpen(n,i,r)}else{const i=this.getMatchingCells(n);if(i===void 0){this.didClose(n,r);return}const s=this.asNotebookDocumentChangeEvent(e.notebook,e,r,i);s!==void 0&&this.doSendChange(s,i).catch(()=>{})}}didSave(e){this.notebookSyncInfo.get(e.uri.toString())!==void 0&&this.doSendSave(e).catch(()=>{})}didClose(e,n=this.notebookSyncInfo.get(e.uri.toString())){if(n===void 0)return;const r=e.getCells().filter(i=>n.uris.has(i.document.uri.toString()));this.doSendClose(e,r).catch(()=>{})}async sendDidOpenNotebookDocument(e){const n=this.getMatchingCells(e);if(n!==void 0)return this.doSendOpen(e,n)}async doSendOpen(e,n){var s;const r=async(o,a)=>{const c=fs.c2p.asNotebookDocument(o,a,this.client.code2ProtocolConverter),l=a.map(f=>this.client.code2ProtocolConverter.asTextDocumentItem(f.document));try{await this.client.sendNotification(qr.DidOpenNotebookDocumentNotification.type,{notebookDocument:c,cellTextDocuments:l})}catch(f){throw this.client.error("Sending DidOpenNotebookDocumentNotification failed",f),f}},i=(s=this.client.middleware)==null?void 0:s.notebooks;return this.notebookSyncInfo.set(e.uri.toString(),Cc.create(n)),(i==null?void 0:i.didOpen)!==void 0?i.didOpen(e,n,r):r(e,n)}async sendDidChangeNotebookDocument(e){return this.doSendChange(e,void 0)}async doSendChange(e,n=this.getMatchingCells(e.notebook)){var s,o;const r=async a=>{try{await this.client.sendNotification(qr.DidChangeNotebookDocumentNotification.type,{notebookDocument:fs.c2p.asVersionedNotebookDocumentIdentifier(a.notebook,this.client.code2ProtocolConverter),change:fs.c2p.asNotebookDocumentChangeEvent(a,this.client.code2ProtocolConverter)})}catch(c){throw this.client.error("Sending DidChangeNotebookDocumentNotification failed",c),c}},i=(s=this.client.middleware)==null?void 0:s.notebooks;return((o=e.cells)==null?void 0:o.structure)!==void 0&&this.notebookSyncInfo.set(e.notebook.uri.toString(),Cc.create(n??[])),(i==null?void 0:i.didChange)!==void 0?i==null?void 0:i.didChange(e,r):r(e)}async sendDidSaveNotebookDocument(e){return this.doSendSave(e)}async doSendSave(e){var i;const n=async s=>{try{await this.client.sendNotification(qr.DidSaveNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(s.uri)}})}catch(o){throw this.client.error("Sending DidSaveNotebookDocumentNotification failed",o),o}},r=(i=this.client.middleware)==null?void 0:i.notebooks;return(r==null?void 0:r.didSave)!==void 0?r.didSave(e,n):n(e)}async sendDidCloseNotebookDocument(e){return this.doSendClose(e,this.getMatchingCells(e)??[])}async doSendClose(e,n){var s;const r=async(o,a)=>{try{await this.client.sendNotification(qr.DidCloseNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(o.uri)},cellTextDocuments:a.map(c=>this.client.code2ProtocolConverter.asTextDocumentIdentifier(c.document))})}catch(c){throw this.client.error("Sending DidCloseNotebookDocumentNotification failed",c),c}},i=(s=this.client.middleware)==null?void 0:s.notebooks;return this.notebookSyncInfo.delete(e.uri.toString()),(i==null?void 0:i.didClose)!==void 0?i.didClose(e,n,r):r(e,n)}asNotebookDocumentChangeEvent(e,n,r,i){if(n!==void 0&&n.notebook!==e)throw new Error("Notebook must be identical");const s={notebook:e};(n==null?void 0:n.metadata)!==void 0&&(s.metadata=fs.c2p.asMetadata(n.metadata));let o;if((n==null?void 0:n.cellChanges)!==void 0&&n.cellChanges.length>0){const a=[];o=new Set(i.map(c=>c.document.uri.toString()));for(const c of n.cellChanges)o.has(c.cell.document.uri.toString())&&(c.executionSummary!==void 0||c.metadata!==void 0)&&a.push(c.cell);a.length>0&&(s.cells=s.cells??{},s.cells.data=a)}if(((n==null?void 0:n.contentChanges)!==void 0&&n.contentChanges.length>0||n===void 0)&&r!==void 0&&i!==void 0){const a=r.cells,c=i,l=F1.computeDiff(a,c,!1);let f,p;if(l!==void 0){f=l.cells===void 0?new Map:new Map(l.cells.map(C=>[C.document.uri.toString(),C])),p=l.deleteCount===0?new Map:new Map(a.slice(l.start,l.start+l.deleteCount).map(C=>[C.document.uri.toString(),C]));for(const C of Array.from(p.keys()))f.has(C)&&(p.delete(C),f.delete(C));s.cells=s.cells??{};const g=[],_=[];if(f.size>0||p.size>0){for(const C of f.values())g.push(C);for(const C of p.values())_.push(C)}s.cells.structure={array:l,didOpen:g,didClose:_}}}return Object.keys(s).length>1?s:void 0}getMatchingCells(e,n=e.getCells()){if(this.options.notebookSelector!==void 0){for(const r of this.options.notebookSelector)if(r.notebook===void 0||L1.matchNotebook(r.notebook,e)){const i=this.filterCells(e,n,r.cells);return i.length===0?void 0:i}}}cellMatches(e,n){const r=this.getMatchingCells(e,[n]);return r!==void 0&&r[0]===n}filterCells(e,n,r){var s;const i=r!==void 0?n.filter(o=>{const a=o.document.languageId;return r.some(c=>c.language==="*"||a===c.language)}):n;return typeof((s=this.client.clientOptions.notebookDocumentOptions)==null?void 0:s.filterCells)=="function"?this.client.clientOptions.notebookDocumentOptions.filterCells(e,i):i}}class qi{constructor(e){this.client=e,this.registrations=new Map,this.registrationType=qr.NotebookDocumentSyncRegistrationType.type,fn.workspace.onDidOpenTextDocument(n=>{if(n.uri.scheme!==qi.CellScheme)return;const[r,i]=this.findNotebookDocumentAndCell(n);if(!(r===void 0||i===void 0))for(const s of this.registrations.values())s instanceof wa&&s.didOpenNotebookCellTextDocument(r,i)}),fn.workspace.onDidChangeTextDocument(n=>{if(n.contentChanges.length===0)return;const r=n.document;if(r.uri.scheme!==qi.CellScheme)return;const[i]=this.findNotebookDocumentAndCell(r);if(i!==void 0)for(const s of this.registrations.values())s instanceof wa&&s.didChangeNotebookCellTextDocument(i,n)}),fn.workspace.onDidCloseTextDocument(n=>{if(n.uri.scheme!==qi.CellScheme)return;const[r,i]=this.findNotebookDocumentAndCell(n);if(!(r===void 0||i===void 0))for(const s of this.registrations.values())s instanceof wa&&s.didCloseNotebookCellTextDocument(r,i)})}getState(){if(this.registrations.size===0)return{kind:"document",id:this.registrationType.method,registrations:!1,matches:!1};for(const e of this.registrations.values()){const n=e.getState();if(n.kind==="document"&&n.registrations===!0&&n.matches===!0)return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!0}}return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!1}}fillClientCapabilities(e){const n=P0(P0(e,"notebookDocument"),"synchronization");n.dynamicRegistration=!0,n.executionSummarySupport=!0}preInitialize(e){const n=e.notebookDocumentSync;n!==void 0&&(this.dedicatedChannel=this.client.protocol2CodeConverter.asDocumentSelector(wc.asDocumentSelector(n)))}initialize(e){const n=e.notebookDocumentSync;if(n===void 0)return;const r=n.id??e3.generateUuid();this.register({id:r,registerOptions:n})}register(e){const n=new wa(this.client,e.registerOptions);this.registrations.set(e.id,n)}unregister(e){const n=this.registrations.get(e);n&&n.dispose()}clear(){for(const e of this.registrations.values())e.dispose();this.registrations.clear()}handles(e){if(e.uri.scheme!==qi.CellScheme)return!1;if(this.dedicatedChannel!==void 0&&fn.languages.match(this.dedicatedChannel,e)>0)return!0;for(const n of this.registrations.values())if(n.handles(e))return!0;return!1}getProvider(e){for(const n of this.registrations.values())if(n.handles(e.document))return n}findNotebookDocumentAndCell(e){const n=e.uri.toString();for(const r of fn.workspace.notebookDocuments)for(const i of r.getCells())if(i.document.uri.toString()===n)return[r,i];return[void 0,void 0]}}il.NotebookDocumentSyncFeature=qi;qi.CellScheme="vscode-notebook-cell";var hi={};Object.defineProperty(hi,"__esModule",{value:!0});hi.SyncConfigurationFeature=hi.toJSONObject=hi.ConfigurationFeature=void 0;const ks=Re,vo=ye,t3=Ye,n3=Be,I0=De;class r3{constructor(e){this._client=e}getState(){return{kind:"static"}}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.configuration=!0}initialize(){let e=this._client;e.onRequest(vo.ConfigurationRequest.type,(n,r)=>{let i=o=>{let a=[];for(let c of o.items){let l=c.scopeUri!==void 0&&c.scopeUri!==null?this._client.protocol2CodeConverter.asUri(c.scopeUri):void 0;a.push(this.getConfiguration(l,c.section!==null?c.section:void 0))}return a},s=e.middleware.workspace;return s&&s.configuration?s.configuration(n,r,i):i(n)})}getConfiguration(e,n){let r=null;if(n){let i=n.lastIndexOf(".");if(i===-1)r=Vi(ks.workspace.getConfiguration(void 0,e).get(n));else{let s=ks.workspace.getConfiguration(n.substr(0,i),e);s&&(r=Vi(s.get(n.substr(i+1))))}}else{let i=ks.workspace.getConfiguration(void 0,e);r={};for(let s of Object.keys(i))i.has(s)&&(r[s]=Vi(i.get(s)))}return r===void 0&&(r=null),r}clear(){}}hi.ConfigurationFeature=r3;function Vi(t){if(t){if(Array.isArray(t))return t.map(Vi);if(typeof t=="object"){const e=Object.create(null);for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=Vi(t[n]));return e}}return t}hi.toJSONObject=Vi;class i3{constructor(e){this._client=e,this.isCleared=!1,this._listeners=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._listeners.size>0}}get registrationType(){return vo.DidChangeConfigurationNotification.type}fillClientCapabilities(e){(0,I0.ensure)((0,I0.ensure)(e,"workspace"),"didChangeConfiguration").dynamicRegistration=!0}initialize(){var n;this.isCleared=!1;let e=(n=this._client.clientOptions.synchronize)==null?void 0:n.configurationSection;e!==void 0&&this.register({id:n3.generateUuid(),registerOptions:{section:e}})}register(e){let n=ks.workspace.onDidChangeConfiguration(r=>{this.onDidChangeConfiguration(e.registerOptions.section,r)});this._listeners.set(e.id,n),e.registerOptions.section!==void 0&&this.onDidChangeConfiguration(e.registerOptions.section,void 0)}unregister(e){let n=this._listeners.get(e);n&&(this._listeners.delete(e),n.dispose())}clear(){for(const e of this._listeners.values())e.dispose();this._listeners.clear(),this.isCleared=!0}onDidChangeConfiguration(e,n){var o;if(this.isCleared)return;let r;if(t3.string(e)?r=[e]:r=e,r!==void 0&&n!==void 0&&!r.some(c=>n.affectsConfiguration(c)))return;const i=async a=>a===void 0?this._client.sendNotification(vo.DidChangeConfigurationNotification.type,{settings:null}):this._client.sendNotification(vo.DidChangeConfigurationNotification.type,{settings:this.extractSettingsInformation(a)});let s=(o=this._client.middleware.workspace)==null?void 0:o.didChangeConfiguration;(s?s(r,i):i(r)).catch(a=>{this._client.error(`Sending notification ${vo.DidChangeConfigurationNotification.type.method} failed`,a)})}extractSettingsInformation(e){function n(s,o){let a=s;for(let c=0;c<o.length-1;c++){let l=a[o[c]];l||(l=Object.create(null),a[o[c]]=l),a=l}return a}let r=this._client.clientOptions.workspaceFolder?this._client.clientOptions.workspaceFolder.uri:void 0,i=Object.create(null);for(let s=0;s<e.length;s++){let o=e[s],a=o.indexOf("."),c=null;if(a>=0?c=ks.workspace.getConfiguration(o.substr(0,a),r).get(o.substr(a+1)):c=ks.workspace.getConfiguration(void 0,r).get(o),c){let l=e[s].split(".");n(i,l)[l[l.length-1]]=Vi(c)}}return i}}hi.SyncConfigurationFeature=i3;var An={};Object.defineProperty(An,"__esModule",{value:!0});An.DidSaveTextDocumentFeature=An.WillSaveWaitUntilFeature=An.WillSaveFeature=An.DidChangeTextDocumentFeature=An.DidCloseTextDocumentFeature=An.DidOpenTextDocumentFeature=void 0;const Un=Re,ft=ye,Tt=De,Ks=Be;class s3 extends Tt.TextDocumentEventFeature{constructor(e,n){super(e,Un.workspace.onDidOpenTextDocument,ft.DidOpenTextDocumentNotification.type,()=>e.middleware.didOpen,r=>e.code2ProtocolConverter.asOpenTextDocumentParams(r),r=>r,Tt.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=n}get openDocuments(){return this._syncedDocuments.values()}fillClientCapabilities(e){(0,Tt.ensure)((0,Tt.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,n){const r=e.resolvedTextDocumentSync;n&&r&&r.openClose&&this.register({id:Ks.generateUuid(),registerOptions:{documentSelector:n}})}get registrationType(){return ft.DidOpenTextDocumentNotification.type}register(e){if(super.register(e),!e.registerOptions.documentSelector)return;const n=this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector);Un.workspace.textDocuments.forEach(r=>{const i=r.uri.toString();if(!this._syncedDocuments.has(i)&&Un.languages.match(n,r)>0&&!this._client.hasDedicatedTextSynchronizationFeature(r)){const s=this._client.middleware,o=a=>this._client.sendNotification(this._type,this._createParams(a));(s.didOpen?s.didOpen(r,o):o(r)).catch(a=>{this._client.error(`Sending document notification ${this._type.method} failed`,a)}),this._syncedDocuments.set(i,r)}})}getTextDocument(e){return e}notificationSent(e,n,r){this._syncedDocuments.set(e.uri.toString(),e),super.notificationSent(e,n,r)}}An.DidOpenTextDocumentFeature=s3;class o3 extends Tt.TextDocumentEventFeature{constructor(e,n,r){super(e,Un.workspace.onDidCloseTextDocument,ft.DidCloseTextDocumentNotification.type,()=>e.middleware.didClose,i=>e.code2ProtocolConverter.asCloseTextDocumentParams(i),i=>i,Tt.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=n,this._pendingTextDocumentChanges=r}get registrationType(){return ft.DidCloseTextDocumentNotification.type}fillClientCapabilities(e){(0,Tt.ensure)((0,Tt.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,n){let r=e.resolvedTextDocumentSync;n&&r&&r.openClose&&this.register({id:Ks.generateUuid(),registerOptions:{documentSelector:n}})}async callback(e){await super.callback(e),this._pendingTextDocumentChanges.delete(e.uri.toString())}getTextDocument(e){return e}notificationSent(e,n,r){this._syncedDocuments.delete(e.uri.toString()),super.notificationSent(e,n,r)}unregister(e){const n=this._selectors.get(e);super.unregister(e);const r=this._selectors.values();this._syncedDocuments.forEach(i=>{if(Un.languages.match(n,i)>0&&!this._selectorFilter(r,i)&&!this._client.hasDedicatedTextSynchronizationFeature(i)){let s=this._client.middleware,o=a=>this._client.sendNotification(this._type,this._createParams(a));this._syncedDocuments.delete(i.uri.toString()),(s.didClose?s.didClose(i,o):o(i)).catch(a=>{this._client.error(`Sending document notification ${this._type.method} failed`,a)})}})}}An.DidCloseTextDocumentFeature=o3;class a3 extends Tt.DynamicDocumentFeature{constructor(e,n){super(e),this._changeData=new Map,this._onNotificationSent=new Un.EventEmitter,this._onPendingChangeAdded=new Un.EventEmitter,this._pendingTextDocumentChanges=n,this._syncKind=ft.TextDocumentSyncKind.None}get onNotificationSent(){return this._onNotificationSent.event}get onPendingChangeAdded(){return this._onPendingChangeAdded.event}get syncKind(){return this._syncKind}get registrationType(){return ft.DidChangeTextDocumentNotification.type}fillClientCapabilities(e){(0,Tt.ensure)((0,Tt.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,n){let r=e.resolvedTextDocumentSync;n&&r&&r.change!==void 0&&r.change!==ft.TextDocumentSyncKind.None&&this.register({id:Ks.generateUuid(),registerOptions:Object.assign({},{documentSelector:n},{syncKind:r.change})})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=Un.workspace.onDidChangeTextDocument(this.callback,this)),this._changeData.set(e.id,{syncKind:e.registerOptions.syncKind,documentSelector:this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)}),this.updateSyncKind(e.registerOptions.syncKind))}*getDocumentSelectors(){for(const e of this._changeData.values())yield e.documentSelector}async callback(e){if(e.contentChanges.length===0)return;const n=e.document.uri,r=e.document.version,i=[];for(const s of this._changeData.values())if(Un.languages.match(s.documentSelector,e.document)>0&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){const o=this._client.middleware;if(s.syncKind===ft.TextDocumentSyncKind.Incremental){const a=async c=>{const l=this._client.code2ProtocolConverter.asChangeTextDocumentParams(c,n,r);await this._client.sendNotification(ft.DidChangeTextDocumentNotification.type,l),this.notificationSent(c.document,ft.DidChangeTextDocumentNotification.type,l)};i.push(o.didChange?o.didChange(e,c=>a(c)):a(e))}else if(s.syncKind===ft.TextDocumentSyncKind.Full){const a=async c=>{const l=c.document.uri.toString();this._pendingTextDocumentChanges.set(l,c.document),this._onPendingChangeAdded.fire()};i.push(o.didChange?o.didChange(e,c=>a(c)):a(e))}}return Promise.all(i).then(void 0,s=>{throw this._client.error(`Sending document notification ${ft.DidChangeTextDocumentNotification.type.method} failed`,s),s})}notificationSent(e,n,r){this._onNotificationSent.fire({textDocument:e,type:n,params:r})}unregister(e){if(this._changeData.delete(e),this._changeData.size===0)this._listener&&(this._listener.dispose(),this._listener=void 0),this._syncKind=ft.TextDocumentSyncKind.None;else{this._syncKind=ft.TextDocumentSyncKind.None;for(const n of this._changeData.values())if(this.updateSyncKind(n.syncKind),this._syncKind===ft.TextDocumentSyncKind.Full)break}}clear(){this._pendingTextDocumentChanges.clear(),this._changeData.clear(),this._syncKind=ft.TextDocumentSyncKind.None,this._listener&&(this._listener.dispose(),this._listener=void 0)}getPendingDocumentChanges(e){if(this._pendingTextDocumentChanges.size===0)return[];let n;if(e.size===0)n=Array.from(this._pendingTextDocumentChanges.values()),this._pendingTextDocumentChanges.clear();else{n=[];for(const r of this._pendingTextDocumentChanges)e.has(r[0])||(n.push(r[1]),this._pendingTextDocumentChanges.delete(r[0]))}return n}getProvider(e){for(const n of this._changeData.values())if(Un.languages.match(n.documentSelector,e)>0)return{send:r=>this.callback(r)}}updateSyncKind(e){if(this._syncKind!==ft.TextDocumentSyncKind.Full)switch(e){case ft.TextDocumentSyncKind.Full:this._syncKind=e;break;case ft.TextDocumentSyncKind.Incremental:this._syncKind===ft.TextDocumentSyncKind.None&&(this._syncKind=ft.TextDocumentSyncKind.Incremental);break}}}An.DidChangeTextDocumentFeature=a3;class c3 extends Tt.TextDocumentEventFeature{constructor(e){super(e,Un.workspace.onWillSaveTextDocument,ft.WillSaveTextDocumentNotification.type,()=>e.middleware.willSave,n=>e.code2ProtocolConverter.asWillSaveTextDocumentParams(n),n=>n.document,(n,r)=>Tt.TextDocumentEventFeature.textDocumentFilter(n,r.document))}get registrationType(){return ft.WillSaveTextDocumentNotification.type}fillClientCapabilities(e){let n=(0,Tt.ensure)((0,Tt.ensure)(e,"textDocument"),"synchronization");n.willSave=!0}initialize(e,n){let r=e.resolvedTextDocumentSync;n&&r&&r.willSave&&this.register({id:Ks.generateUuid(),registerOptions:{documentSelector:n}})}getTextDocument(e){return e.document}}An.WillSaveFeature=c3;class l3 extends Tt.DynamicDocumentFeature{constructor(e){super(e),this._selectors=new Map}getDocumentSelectors(){return this._selectors.values()}get registrationType(){return ft.WillSaveTextDocumentWaitUntilRequest.type}fillClientCapabilities(e){let n=(0,Tt.ensure)((0,Tt.ensure)(e,"textDocument"),"synchronization");n.willSaveWaitUntil=!0}initialize(e,n){let r=e.resolvedTextDocumentSync;n&&r&&r.willSaveWaitUntil&&this.register({id:Ks.generateUuid(),registerOptions:{documentSelector:n}})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=Un.workspace.onWillSaveTextDocument(this.callback,this)),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)))}callback(e){if(Tt.TextDocumentEventFeature.textDocumentFilter(this._selectors.values(),e.document)&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){let n=this._client.middleware,r=i=>this._client.sendRequest(ft.WillSaveTextDocumentWaitUntilRequest.type,this._client.code2ProtocolConverter.asWillSaveTextDocumentParams(i)).then(async s=>{let o=await this._client.protocol2CodeConverter.asTextEdits(s);return o===void 0?[]:o});e.waitUntil(n.willSaveWaitUntil?n.willSaveWaitUntil(e,r):r(e))}}unregister(e){this._selectors.delete(e),this._selectors.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._selectors.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}}An.WillSaveWaitUntilFeature=l3;class u3 extends Tt.TextDocumentEventFeature{constructor(e){super(e,Un.workspace.onDidSaveTextDocument,ft.DidSaveTextDocumentNotification.type,()=>e.middleware.didSave,n=>e.code2ProtocolConverter.asSaveTextDocumentParams(n,this._includeText),n=>n,Tt.TextDocumentEventFeature.textDocumentFilter),this._includeText=!1}get registrationType(){return ft.DidSaveTextDocumentNotification.type}fillClientCapabilities(e){(0,Tt.ensure)((0,Tt.ensure)(e,"textDocument"),"synchronization").didSave=!0}initialize(e,n){const r=e.resolvedTextDocumentSync;if(n&&r&&r.save){const i=typeof r.save=="boolean"?{includeText:!1}:{includeText:!!r.save.includeText};this.register({id:Ks.generateUuid(),registerOptions:Object.assign({},{documentSelector:n},i)})}}register(e){this._includeText=!!e.registerOptions.includeText,super.register(e)}getTextDocument(e){return e}}An.DidSaveTextDocumentFeature=u3;var sl={};Object.defineProperty(sl,"__esModule",{value:!0});sl.CompletionItemFeature=void 0;const d3=Re,We=ye,Xl=De,f3=Be,h3=[We.CompletionItemKind.Text,We.CompletionItemKind.Method,We.CompletionItemKind.Function,We.CompletionItemKind.Constructor,We.CompletionItemKind.Field,We.CompletionItemKind.Variable,We.CompletionItemKind.Class,We.CompletionItemKind.Interface,We.CompletionItemKind.Module,We.CompletionItemKind.Property,We.CompletionItemKind.Unit,We.CompletionItemKind.Value,We.CompletionItemKind.Enum,We.CompletionItemKind.Keyword,We.CompletionItemKind.Snippet,We.CompletionItemKind.Color,We.CompletionItemKind.File,We.CompletionItemKind.Reference,We.CompletionItemKind.Folder,We.CompletionItemKind.EnumMember,We.CompletionItemKind.Constant,We.CompletionItemKind.Struct,We.CompletionItemKind.Event,We.CompletionItemKind.Operator,We.CompletionItemKind.TypeParameter];class p3 extends Xl.TextDocumentLanguageFeature{constructor(e){super(e,We.CompletionRequest.type),this.labelDetailsSupport=new Map}fillClientCapabilities(e){let n=(0,Xl.ensure)((0,Xl.ensure)(e,"textDocument"),"completion");n.dynamicRegistration=!0,n.contextSupport=!0,n.completionItem={snippetSupport:!0,commitCharactersSupport:!0,documentationFormat:[We.MarkupKind.Markdown,We.MarkupKind.PlainText],deprecatedSupport:!0,preselectSupport:!0,tagSupport:{valueSet:[We.CompletionItemTag.Deprecated]},insertReplaceSupport:!0,resolveSupport:{properties:["documentation","detail","additionalTextEdits"]},insertTextModeSupport:{valueSet:[We.InsertTextMode.asIs,We.InsertTextMode.adjustIndentation]},labelDetailsSupport:!0},n.insertTextMode=We.InsertTextMode.adjustIndentation,n.completionItemKind={valueSet:h3},n.completionList={itemDefaults:["commitCharacters","editRange","insertTextFormat","insertTextMode","data"]}}initialize(e,n){const r=this.getRegistrationOptions(n,e.completionProvider);r&&this.register({id:f3.generateUuid(),registerOptions:r})}registerLanguageProvider(e,n){var a;this.labelDetailsSupport.set(n,!!((a=e.completionItem)!=null&&a.labelDetailsSupport));const r=e.triggerCharacters??[],i=e.allCommitCharacters,s=e.documentSelector,o={provideCompletionItems:(c,l,f,p)=>{const g=this._client,_=this._client.middleware,C=(k,M,H,K)=>g.sendRequest(We.CompletionRequest.type,g.code2ProtocolConverter.asCompletionParams(k,M,H),K).then(j=>K.isCancellationRequested?null:g.protocol2CodeConverter.asCompletionResult(j,i,K),j=>g.handleFailedRequest(We.CompletionRequest.type,K,j,null));return _.provideCompletionItem?_.provideCompletionItem(c,l,p,f,C):C(c,l,p,f)},resolveCompletionItem:e.resolveProvider?(c,l)=>{const f=this._client,p=this._client.middleware,g=(_,C)=>f.sendRequest(We.CompletionResolveRequest.type,f.code2ProtocolConverter.asCompletionItem(_,!!this.labelDetailsSupport.get(n)),C).then(k=>C.isCancellationRequested?null:f.protocol2CodeConverter.asCompletionItem(k),k=>f.handleFailedRequest(We.CompletionResolveRequest.type,C,k,_));return p.resolveCompletionItem?p.resolveCompletionItem(c,l,g):g(c,l)}:void 0};return[d3.languages.registerCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(s),o,...r),o]}}sl.CompletionItemFeature=p3;var ol={};Object.defineProperty(ol,"__esModule",{value:!0});ol.HoverFeature=void 0;const g3=Re,Xs=ye,Zl=De,m3=Be;class y3 extends Zl.TextDocumentLanguageFeature{constructor(e){super(e,Xs.HoverRequest.type)}fillClientCapabilities(e){const n=(0,Zl.ensure)((0,Zl.ensure)(e,"textDocument"),"hover");n.dynamicRegistration=!0,n.contentFormat=[Xs.MarkupKind.Markdown,Xs.MarkupKind.PlainText]}initialize(e,n){const r=this.getRegistrationOptions(n,e.hoverProvider);r&&this.register({id:m3.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideHover:(i,s,o)=>{const a=this._client,c=(f,p,g)=>a.sendRequest(Xs.HoverRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,p),g).then(_=>g.isCancellationRequested?null:a.protocol2CodeConverter.asHover(_),_=>a.handleFailedRequest(Xs.HoverRequest.type,g,_,null)),l=a.middleware;return l.provideHover?l.provideHover(i,s,o,c):c(i,s,o)}};return[this.registerProvider(n,r),r]}registerProvider(e,n){return g3.languages.registerHoverProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}ol.HoverFeature=y3;var al={};Object.defineProperty(al,"__esModule",{value:!0});al.DefinitionFeature=void 0;const b3=Re,eu=ye,tu=De,v3=Be;class w3 extends tu.TextDocumentLanguageFeature{constructor(e){super(e,eu.DefinitionRequest.type)}fillClientCapabilities(e){let n=(0,tu.ensure)((0,tu.ensure)(e,"textDocument"),"definition");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.definitionProvider);r&&this.register({id:v3.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideDefinition:(i,s,o)=>{const a=this._client,c=(f,p,g)=>a.sendRequest(eu.DefinitionRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,p),g).then(_=>g.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(_,g),_=>a.handleFailedRequest(eu.DefinitionRequest.type,g,_,null)),l=a.middleware;return l.provideDefinition?l.provideDefinition(i,s,o,c):c(i,s,o)}};return[this.registerProvider(n,r),r]}registerProvider(e,n){return b3.languages.registerDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}al.DefinitionFeature=w3;var cl={};Object.defineProperty(cl,"__esModule",{value:!0});cl.SignatureHelpFeature=void 0;const M0=Re,Zs=ye,nu=De,C3=Be;class _3 extends nu.TextDocumentLanguageFeature{constructor(e){super(e,Zs.SignatureHelpRequest.type)}fillClientCapabilities(e){let n=(0,nu.ensure)((0,nu.ensure)(e,"textDocument"),"signatureHelp");n.dynamicRegistration=!0,n.signatureInformation={documentationFormat:[Zs.MarkupKind.Markdown,Zs.MarkupKind.PlainText]},n.signatureInformation.parameterInformation={labelOffsetSupport:!0},n.signatureInformation.activeParameterSupport=!0,n.contextSupport=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.signatureHelpProvider);r&&this.register({id:C3.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n={provideSignatureHelp:(r,i,s,o)=>{const a=this._client,c=(f,p,g,_)=>a.sendRequest(Zs.SignatureHelpRequest.type,a.code2ProtocolConverter.asSignatureHelpParams(f,p,g),_).then(C=>_.isCancellationRequested?null:a.protocol2CodeConverter.asSignatureHelp(C,_),C=>a.handleFailedRequest(Zs.SignatureHelpRequest.type,_,C,null)),l=a.middleware;return l.provideSignatureHelp?l.provideSignatureHelp(r,i,o,s,c):c(r,i,o,s)}};return[this.registerProvider(e,n),n]}registerProvider(e,n){const r=this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector);if(e.retriggerCharacters===void 0){const i=e.triggerCharacters||[];return M0.languages.registerSignatureHelpProvider(r,n,...i)}else{const i={triggerCharacters:e.triggerCharacters||[],retriggerCharacters:e.retriggerCharacters||[]};return M0.languages.registerSignatureHelpProvider(r,n,i)}}}cl.SignatureHelpFeature=_3;var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.DocumentHighlightFeature=void 0;const S3=Re,ru=ye,iu=De,D3=Be;class T3 extends iu.TextDocumentLanguageFeature{constructor(e){super(e,ru.DocumentHighlightRequest.type)}fillClientCapabilities(e){(0,iu.ensure)((0,iu.ensure)(e,"textDocument"),"documentHighlight").dynamicRegistration=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.documentHighlightProvider);r&&this.register({id:D3.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideDocumentHighlights:(i,s,o)=>{const a=this._client,c=(f,p,g)=>a.sendRequest(ru.DocumentHighlightRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,p),g).then(_=>g.isCancellationRequested?null:a.protocol2CodeConverter.asDocumentHighlights(_,g),_=>a.handleFailedRequest(ru.DocumentHighlightRequest.type,g,_,null)),l=a.middleware;return l.provideDocumentHighlights?l.provideDocumentHighlights(i,s,o,c):c(i,s,o)}};return[S3.languages.registerDocumentHighlightProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),r]}}ll.DocumentHighlightFeature=T3;var fp={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentSymbolFeature=t.SupportedSymbolTags=t.SupportedSymbolKinds=void 0;const e=Re,n=ye,r=De,i=Be;t.SupportedSymbolKinds=[n.SymbolKind.File,n.SymbolKind.Module,n.SymbolKind.Namespace,n.SymbolKind.Package,n.SymbolKind.Class,n.SymbolKind.Method,n.SymbolKind.Property,n.SymbolKind.Field,n.SymbolKind.Constructor,n.SymbolKind.Enum,n.SymbolKind.Interface,n.SymbolKind.Function,n.SymbolKind.Variable,n.SymbolKind.Constant,n.SymbolKind.String,n.SymbolKind.Number,n.SymbolKind.Boolean,n.SymbolKind.Array,n.SymbolKind.Object,n.SymbolKind.Key,n.SymbolKind.Null,n.SymbolKind.EnumMember,n.SymbolKind.Struct,n.SymbolKind.Event,n.SymbolKind.Operator,n.SymbolKind.TypeParameter],t.SupportedSymbolTags=[n.SymbolTag.Deprecated];class s extends r.TextDocumentLanguageFeature{constructor(a){super(a,n.DocumentSymbolRequest.type)}fillClientCapabilities(a){let c=(0,r.ensure)((0,r.ensure)(a,"textDocument"),"documentSymbol");c.dynamicRegistration=!0,c.symbolKind={valueSet:t.SupportedSymbolKinds},c.hierarchicalDocumentSymbolSupport=!0,c.tagSupport={valueSet:t.SupportedSymbolTags},c.labelSupport=!0}initialize(a,c){const l=this.getRegistrationOptions(c,a.documentSymbolProvider);l&&this.register({id:i.generateUuid(),registerOptions:l})}registerLanguageProvider(a){const c=a.documentSelector,l={provideDocumentSymbols:(p,g)=>{const _=this._client,C=async(M,H)=>{try{const K=await _.sendRequest(n.DocumentSymbolRequest.type,_.code2ProtocolConverter.asDocumentSymbolParams(M),H);if(H.isCancellationRequested||K===void 0||K===null)return null;if(K.length===0)return[];{const j=K[0];return n.DocumentSymbol.is(j)?await _.protocol2CodeConverter.asDocumentSymbols(K,H):await _.protocol2CodeConverter.asSymbolInformations(K,H)}}catch(K){return _.handleFailedRequest(n.DocumentSymbolRequest.type,H,K,null)}},k=_.middleware;return k.provideDocumentSymbols?k.provideDocumentSymbols(p,g,C):C(p,g)}},f=a.label!==void 0?{label:a.label}:void 0;return[e.languages.registerDocumentSymbolProvider(this._client.protocol2CodeConverter.asDocumentSelector(c),l,f),l]}}t.DocumentSymbolFeature=s})(fp);var ul={};Object.defineProperty(ul,"__esModule",{value:!0});ul.WorkspaceSymbolFeature=void 0;const k3=Re,eo=ye,su=De,O0=fp,R3=Be;class x3 extends su.WorkspaceFeature{constructor(e){super(e,eo.WorkspaceSymbolRequest.type)}fillClientCapabilities(e){let n=(0,su.ensure)((0,su.ensure)(e,"workspace"),"symbol");n.dynamicRegistration=!0,n.symbolKind={valueSet:O0.SupportedSymbolKinds},n.tagSupport={valueSet:O0.SupportedSymbolTags},n.resolveSupport={properties:["location.range"]}}initialize(e){e.workspaceSymbolProvider&&this.register({id:R3.generateUuid(),registerOptions:e.workspaceSymbolProvider===!0?{workDoneProgress:!1}:e.workspaceSymbolProvider})}registerLanguageProvider(e){const n={provideWorkspaceSymbols:(r,i)=>{const s=this._client,o=(c,l)=>s.sendRequest(eo.WorkspaceSymbolRequest.type,{query:c},l).then(f=>l.isCancellationRequested?null:s.protocol2CodeConverter.asSymbolInformations(f,l),f=>s.handleFailedRequest(eo.WorkspaceSymbolRequest.type,l,f,null)),a=s.middleware;return a.provideWorkspaceSymbols?a.provideWorkspaceSymbols(r,i,o):o(r,i)},resolveWorkspaceSymbol:e.resolveProvider===!0?(r,i)=>{const s=this._client,o=(c,l)=>s.sendRequest(eo.WorkspaceSymbolResolveRequest.type,s.code2ProtocolConverter.asWorkspaceSymbol(c),l).then(f=>l.isCancellationRequested?null:s.protocol2CodeConverter.asSymbolInformation(f),f=>s.handleFailedRequest(eo.WorkspaceSymbolResolveRequest.type,l,f,null)),a=s.middleware;return a.resolveWorkspaceSymbol?a.resolveWorkspaceSymbol(r,i,o):o(r,i)}:void 0};return[k3.languages.registerWorkspaceSymbolProvider(n),n]}}ul.WorkspaceSymbolFeature=x3;var dl={};Object.defineProperty(dl,"__esModule",{value:!0});dl.ReferencesFeature=void 0;const E3=Re,ou=ye,au=De,P3=Be;class I3 extends au.TextDocumentLanguageFeature{constructor(e){super(e,ou.ReferencesRequest.type)}fillClientCapabilities(e){(0,au.ensure)((0,au.ensure)(e,"textDocument"),"references").dynamicRegistration=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.referencesProvider);r&&this.register({id:P3.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideReferences:(i,s,o,a)=>{const c=this._client,l=(p,g,_,C)=>c.sendRequest(ou.ReferencesRequest.type,c.code2ProtocolConverter.asReferenceParams(p,g,_),C).then(k=>C.isCancellationRequested?null:c.protocol2CodeConverter.asReferences(k,C),k=>c.handleFailedRequest(ou.ReferencesRequest.type,C,k,null)),f=c.middleware;return f.provideReferences?f.provideReferences(i,s,o,a,l):l(i,s,o,a)}};return[this.registerProvider(n,r),r]}registerProvider(e,n){return E3.languages.registerReferenceProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}dl.ReferencesFeature=I3;var fl={};Object.defineProperty(fl,"__esModule",{value:!0});fl.CodeActionFeature=void 0;const M3=Re,qn=ye,O3=Be,cu=De;class A3 extends cu.TextDocumentLanguageFeature{constructor(e){super(e,qn.CodeActionRequest.type)}fillClientCapabilities(e){const n=(0,cu.ensure)((0,cu.ensure)(e,"textDocument"),"codeAction");n.dynamicRegistration=!0,n.isPreferredSupport=!0,n.disabledSupport=!0,n.dataSupport=!0,n.resolveSupport={properties:["edit"]},n.codeActionLiteralSupport={codeActionKind:{valueSet:[qn.CodeActionKind.Empty,qn.CodeActionKind.QuickFix,qn.CodeActionKind.Refactor,qn.CodeActionKind.RefactorExtract,qn.CodeActionKind.RefactorInline,qn.CodeActionKind.RefactorRewrite,qn.CodeActionKind.Source,qn.CodeActionKind.SourceOrganizeImports]}},n.honorsChangeAnnotations=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.codeActionProvider);r&&this.register({id:O3.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideCodeActions:(i,s,o,a)=>{const c=this._client,l=async(p,g,_,C)=>{const k={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(p),range:c.code2ProtocolConverter.asRange(g),context:c.code2ProtocolConverter.asCodeActionContextSync(_)};return c.sendRequest(qn.CodeActionRequest.type,k,C).then(M=>C.isCancellationRequested||M===null||M===void 0?null:c.protocol2CodeConverter.asCodeActionResult(M,C),M=>c.handleFailedRequest(qn.CodeActionRequest.type,C,M,null))},f=c.middleware;return f.provideCodeActions?f.provideCodeActions(i,s,o,a,l):l(i,s,o,a)},resolveCodeAction:e.resolveProvider?(i,s)=>{const o=this._client,a=this._client.middleware,c=async(l,f)=>o.sendRequest(qn.CodeActionResolveRequest.type,o.code2ProtocolConverter.asCodeActionSync(l),f).then(p=>f.isCancellationRequested?l:o.protocol2CodeConverter.asCodeAction(p,f),p=>o.handleFailedRequest(qn.CodeActionResolveRequest.type,f,p,l));return a.resolveCodeAction?a.resolveCodeAction(i,s,c):c(i,s)}:void 0};return[M3.languages.registerCodeActionsProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r,e.codeActionKinds?{providedCodeActionKinds:this._client.protocol2CodeConverter.asCodeActionKinds(e.codeActionKinds)}:void 0),r]}}fl.CodeActionFeature=A3;var hl={};Object.defineProperty(hl,"__esModule",{value:!0});hl.CodeLensFeature=void 0;const A0=Re,ss=ye,F3=Be,to=De;class L3 extends to.TextDocumentLanguageFeature{constructor(e){super(e,ss.CodeLensRequest.type)}fillClientCapabilities(e){(0,to.ensure)((0,to.ensure)(e,"textDocument"),"codeLens").dynamicRegistration=!0,(0,to.ensure)((0,to.ensure)(e,"workspace"),"codeLens").refreshSupport=!0}initialize(e,n){this._client.onRequest(ss.CodeLensRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeCodeLensEmitter.fire()});const i=this.getRegistrationOptions(n,e.codeLensProvider);i&&this.register({id:F3.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r=new A0.EventEmitter,i={onDidChangeCodeLenses:r.event,provideCodeLenses:(s,o)=>{const a=this._client,c=(f,p)=>a.sendRequest(ss.CodeLensRequest.type,a.code2ProtocolConverter.asCodeLensParams(f),p).then(g=>p.isCancellationRequested?null:a.protocol2CodeConverter.asCodeLenses(g,p),g=>a.handleFailedRequest(ss.CodeLensRequest.type,p,g,null)),l=a.middleware;return l.provideCodeLenses?l.provideCodeLenses(s,o,c):c(s,o)},resolveCodeLens:e.resolveProvider?(s,o)=>{const a=this._client,c=(f,p)=>a.sendRequest(ss.CodeLensResolveRequest.type,a.code2ProtocolConverter.asCodeLens(f),p).then(g=>p.isCancellationRequested?f:a.protocol2CodeConverter.asCodeLens(g),g=>a.handleFailedRequest(ss.CodeLensResolveRequest.type,p,g,f)),l=a.middleware;return l.resolveCodeLens?l.resolveCodeLens(s,o,c):c(s,o)}:void 0};return[A0.languages.registerCodeLensProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),{provider:i,onDidChangeCodeLensEmitter:r}]}}hl.CodeLensFeature=L3;var pi={};Object.defineProperty(pi,"__esModule",{value:!0});pi.DocumentOnTypeFormattingFeature=pi.DocumentRangeFormattingFeature=pi.DocumentFormattingFeature=void 0;const pl=Re,cr=ye,hp=Be,zr=De;var Us;(function(t){function e(n){const r=pl.workspace.getConfiguration("files",n);return{trimTrailingWhitespace:r.get("trimTrailingWhitespace"),trimFinalNewlines:r.get("trimFinalNewlines"),insertFinalNewline:r.get("insertFinalNewline")}}t.fromConfiguration=e})(Us||(Us={}));class N3 extends zr.TextDocumentLanguageFeature{constructor(e){super(e,cr.DocumentFormattingRequest.type)}fillClientCapabilities(e){(0,zr.ensure)((0,zr.ensure)(e,"textDocument"),"formatting").dynamicRegistration=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.documentFormattingProvider);r&&this.register({id:hp.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideDocumentFormattingEdits:(i,s,o)=>{const a=this._client,c=(f,p,g)=>{const _={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(f),options:a.code2ProtocolConverter.asFormattingOptions(p,Us.fromConfiguration(f))};return a.sendRequest(cr.DocumentFormattingRequest.type,_,g).then(C=>g.isCancellationRequested?null:a.protocol2CodeConverter.asTextEdits(C,g),C=>a.handleFailedRequest(cr.DocumentFormattingRequest.type,g,C,null))},l=a.middleware;return l.provideDocumentFormattingEdits?l.provideDocumentFormattingEdits(i,s,o,c):c(i,s,o)}};return[pl.languages.registerDocumentFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),r]}}pi.DocumentFormattingFeature=N3;class $3 extends zr.TextDocumentLanguageFeature{constructor(e){super(e,cr.DocumentRangeFormattingRequest.type)}fillClientCapabilities(e){const n=(0,zr.ensure)((0,zr.ensure)(e,"textDocument"),"rangeFormatting");n.dynamicRegistration=!0,n.rangesSupport=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.documentRangeFormattingProvider);r&&this.register({id:hp.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideDocumentRangeFormattingEdits:(i,s,o,a)=>{const c=this._client,l=(p,g,_,C)=>{const k={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(p),range:c.code2ProtocolConverter.asRange(g),options:c.code2ProtocolConverter.asFormattingOptions(_,Us.fromConfiguration(p))};return c.sendRequest(cr.DocumentRangeFormattingRequest.type,k,C).then(M=>C.isCancellationRequested?null:c.protocol2CodeConverter.asTextEdits(M,C),M=>c.handleFailedRequest(cr.DocumentRangeFormattingRequest.type,C,M,null))},f=c.middleware;return f.provideDocumentRangeFormattingEdits?f.provideDocumentRangeFormattingEdits(i,s,o,a,l):l(i,s,o,a)}};return e.rangesSupport&&(r.provideDocumentRangesFormattingEdits=(i,s,o,a)=>{const c=this._client,l=(p,g,_,C)=>{const k={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(p),ranges:c.code2ProtocolConverter.asRanges(g),options:c.code2ProtocolConverter.asFormattingOptions(_,Us.fromConfiguration(p))};return c.sendRequest(cr.DocumentRangesFormattingRequest.type,k,C).then(M=>C.isCancellationRequested?null:c.protocol2CodeConverter.asTextEdits(M,C),M=>c.handleFailedRequest(cr.DocumentRangesFormattingRequest.type,C,M,null))},f=c.middleware;return f.provideDocumentRangesFormattingEdits?f.provideDocumentRangesFormattingEdits(i,s,o,a,l):l(i,s,o,a)}),[pl.languages.registerDocumentRangeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),r]}}pi.DocumentRangeFormattingFeature=$3;class q3 extends zr.TextDocumentLanguageFeature{constructor(e){super(e,cr.DocumentOnTypeFormattingRequest.type)}fillClientCapabilities(e){(0,zr.ensure)((0,zr.ensure)(e,"textDocument"),"onTypeFormatting").dynamicRegistration=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.documentOnTypeFormattingProvider);r&&this.register({id:hp.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideOnTypeFormattingEdits:(s,o,a,c,l)=>{const f=this._client,p=(_,C,k,M,H)=>{let K={textDocument:f.code2ProtocolConverter.asTextDocumentIdentifier(_),position:f.code2ProtocolConverter.asPosition(C),ch:k,options:f.code2ProtocolConverter.asFormattingOptions(M,Us.fromConfiguration(_))};return f.sendRequest(cr.DocumentOnTypeFormattingRequest.type,K,H).then(j=>H.isCancellationRequested?null:f.protocol2CodeConverter.asTextEdits(j,H),j=>f.handleFailedRequest(cr.DocumentOnTypeFormattingRequest.type,H,j,null))},g=f.middleware;return g.provideOnTypeFormattingEdits?g.provideOnTypeFormattingEdits(s,o,a,c,l,p):p(s,o,a,c,l)}},i=e.moreTriggerCharacter||[];return[pl.languages.registerOnTypeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r,e.firstTriggerCharacter,...i),r]}}pi.DocumentOnTypeFormattingFeature=q3;var gl={};Object.defineProperty(gl,"__esModule",{value:!0});gl.RenameFeature=void 0;const j3=Re,Si=ye,H3=Be,F0=Ye,lu=De;class W3 extends lu.TextDocumentLanguageFeature{constructor(e){super(e,Si.RenameRequest.type)}fillClientCapabilities(e){let n=(0,lu.ensure)((0,lu.ensure)(e,"textDocument"),"rename");n.dynamicRegistration=!0,n.prepareSupport=!0,n.prepareSupportDefaultBehavior=Si.PrepareSupportDefaultBehavior.Identifier,n.honorsChangeAnnotations=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.renameProvider);r&&(F0.boolean(e.renameProvider)&&(r.prepareProvider=!1),this.register({id:H3.generateUuid(),registerOptions:r}))}registerLanguageProvider(e){const n=e.documentSelector,r={provideRenameEdits:(i,s,o,a)=>{const c=this._client,l=(p,g,_,C)=>{let k={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(p),position:c.code2ProtocolConverter.asPosition(g),newName:_};return c.sendRequest(Si.RenameRequest.type,k,C).then(M=>C.isCancellationRequested?null:c.protocol2CodeConverter.asWorkspaceEdit(M,C),M=>c.handleFailedRequest(Si.RenameRequest.type,C,M,null,!1))},f=c.middleware;return f.provideRenameEdits?f.provideRenameEdits(i,s,o,a,l):l(i,s,o,a)},prepareRename:e.prepareProvider?(i,s,o)=>{const a=this._client,c=(f,p,g)=>{let _={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(f),position:a.code2ProtocolConverter.asPosition(p)};return a.sendRequest(Si.PrepareRenameRequest.type,_,g).then(C=>g.isCancellationRequested?null:Si.Range.is(C)?a.protocol2CodeConverter.asRange(C):this.isDefaultBehavior(C)?C.defaultBehavior===!0?null:Promise.reject(new Error("The element can't be renamed.")):C&&Si.Range.is(C.range)?{range:a.protocol2CodeConverter.asRange(C.range),placeholder:C.placeholder}:Promise.reject(new Error("The element can't be renamed.")),C=>{throw typeof C.message=="string"?new Error(C.message):new Error("The element can't be renamed.")})},l=a.middleware;return l.prepareRename?l.prepareRename(i,s,o,c):c(i,s,o)}:void 0};return[this.registerProvider(n,r),r]}registerProvider(e,n){return j3.languages.registerRenameProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}isDefaultBehavior(e){const n=e;return n&&F0.boolean(n.defaultBehavior)}}gl.RenameFeature=W3;var ml={};Object.defineProperty(ml,"__esModule",{value:!0});ml.DocumentLinkFeature=void 0;const U3=Re,no=ye,uu=De,z3=Be;class B3 extends uu.TextDocumentLanguageFeature{constructor(e){super(e,no.DocumentLinkRequest.type)}fillClientCapabilities(e){const n=(0,uu.ensure)((0,uu.ensure)(e,"textDocument"),"documentLink");n.dynamicRegistration=!0,n.tooltipSupport=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.documentLinkProvider);r&&this.register({id:z3.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideDocumentLinks:(i,s)=>{const o=this._client,a=(l,f)=>o.sendRequest(no.DocumentLinkRequest.type,o.code2ProtocolConverter.asDocumentLinkParams(l),f).then(p=>f.isCancellationRequested?null:o.protocol2CodeConverter.asDocumentLinks(p,f),p=>o.handleFailedRequest(no.DocumentLinkRequest.type,f,p,null)),c=o.middleware;return c.provideDocumentLinks?c.provideDocumentLinks(i,s,a):a(i,s)},resolveDocumentLink:e.resolveProvider?(i,s)=>{const o=this._client;let a=(l,f)=>o.sendRequest(no.DocumentLinkResolveRequest.type,o.code2ProtocolConverter.asDocumentLink(l),f).then(p=>f.isCancellationRequested?l:o.protocol2CodeConverter.asDocumentLink(p),p=>o.handleFailedRequest(no.DocumentLinkResolveRequest.type,f,p,l));const c=o.middleware;return c.resolveDocumentLink?c.resolveDocumentLink(i,s,a):a(i,s)}:void 0};return[U3.languages.registerDocumentLinkProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),r]}}ml.DocumentLinkFeature=B3;var yl={};Object.defineProperty(yl,"__esModule",{value:!0});yl.ExecuteCommandFeature=void 0;const V3=Re,du=ye,K3=Be,L0=De;class G3{constructor(e){this._client=e,this._commands=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._commands.size>0}}get registrationType(){return du.ExecuteCommandRequest.type}fillClientCapabilities(e){(0,L0.ensure)((0,L0.ensure)(e,"workspace"),"executeCommand").dynamicRegistration=!0}initialize(e){e.executeCommandProvider&&this.register({id:K3.generateUuid(),registerOptions:Object.assign({},e.executeCommandProvider)})}register(e){const n=this._client,r=n.middleware,i=(s,o)=>{let a={command:s,arguments:o};return n.sendRequest(du.ExecuteCommandRequest.type,a).then(void 0,c=>n.handleFailedRequest(du.ExecuteCommandRequest.type,void 0,c,void 0))};if(e.registerOptions.commands){const s=[];for(const o of e.registerOptions.commands)s.push(V3.commands.registerCommand(o,(...a)=>r.executeCommand?r.executeCommand(o,a,i):i(o,a)));this._commands.set(e.id,s)}}unregister(e){let n=this._commands.get(e);n&&n.forEach(r=>r.dispose())}clear(){this._commands.forEach(e=>{e.forEach(n=>n.dispose())}),this._commands.clear()}}yl.ExecuteCommandFeature=G3;var bl={};Object.defineProperty(bl,"__esModule",{value:!0});bl.FileSystemWatcherFeature=void 0;const Q3=Re,Di=ye,Ca=De;class J3{constructor(e,n){this._client=e,this._notifyFileEvent=n,this._watchers=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._watchers.size>0}}get registrationType(){return Di.DidChangeWatchedFilesNotification.type}fillClientCapabilities(e){(0,Ca.ensure)((0,Ca.ensure)(e,"workspace"),"didChangeWatchedFiles").dynamicRegistration=!0,(0,Ca.ensure)((0,Ca.ensure)(e,"workspace"),"didChangeWatchedFiles").relativePatternSupport=!0}initialize(e,n){}register(e){if(!Array.isArray(e.registerOptions.watchers))return;const n=[];for(const r of e.registerOptions.watchers){const i=this._client.protocol2CodeConverter.asGlobPattern(r.globPattern);if(i===void 0)continue;let s=!0,o=!0,a=!0;r.kind!==void 0&&r.kind!==null&&(s=(r.kind&Di.WatchKind.Create)!==0,o=(r.kind&Di.WatchKind.Change)!==0,a=(r.kind&Di.WatchKind.Delete)!==0);const c=Q3.workspace.createFileSystemWatcher(i,!s,!o,!a);this.hookListeners(c,s,o,a,n),n.push(c)}this._watchers.set(e.id,n)}registerRaw(e,n){let r=[];for(let i of n)this.hookListeners(i,!0,!0,!0,r);this._watchers.set(e,r)}hookListeners(e,n,r,i,s){n&&e.onDidCreate(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:Di.FileChangeType.Created}),null,s),r&&e.onDidChange(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:Di.FileChangeType.Changed}),null,s),i&&e.onDidDelete(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:Di.FileChangeType.Deleted}),null,s)}unregister(e){let n=this._watchers.get(e);if(n)for(let r of n)r.dispose()}clear(){this._watchers.forEach(e=>{for(let n of e)n.dispose()}),this._watchers.clear()}}bl.FileSystemWatcherFeature=J3;var vl={};Object.defineProperty(vl,"__esModule",{value:!0});vl.ColorProviderFeature=void 0;const Y3=Re,ro=ye,fu=De;class X3 extends fu.TextDocumentLanguageFeature{constructor(e){super(e,ro.DocumentColorRequest.type)}fillClientCapabilities(e){(0,fu.ensure)((0,fu.ensure)(e,"textDocument"),"colorProvider").dynamicRegistration=!0}initialize(e,n){let[r,i]=this.getRegistration(n,e.colorProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r={provideColorPresentations:(i,s,o)=>{const a=this._client,c=(f,p,g)=>{const _={color:f,textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(p.document),range:a.code2ProtocolConverter.asRange(p.range)};return a.sendRequest(ro.ColorPresentationRequest.type,_,g).then(C=>g.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorPresentations(C,g),C=>a.handleFailedRequest(ro.ColorPresentationRequest.type,g,C,null))},l=a.middleware;return l.provideColorPresentations?l.provideColorPresentations(i,s,o,c):c(i,s,o)},provideDocumentColors:(i,s)=>{const o=this._client,a=(l,f)=>{const p={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(l)};return o.sendRequest(ro.DocumentColorRequest.type,p,f).then(g=>f.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorInformations(g,f),g=>o.handleFailedRequest(ro.DocumentColorRequest.type,f,g,null))},c=o.middleware;return c.provideDocumentColors?c.provideDocumentColors(i,s,a):a(i,s)}};return[Y3.languages.registerColorProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),r]}}vl.ColorProviderFeature=X3;var wl={};Object.defineProperty(wl,"__esModule",{value:!0});wl.ImplementationFeature=void 0;const Z3=Re,hu=ye,pu=De;class eS extends pu.TextDocumentLanguageFeature{constructor(e){super(e,hu.ImplementationRequest.type)}fillClientCapabilities(e){let n=(0,pu.ensure)((0,pu.ensure)(e,"textDocument"),"implementation");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){let[r,i]=this.getRegistration(n,e.implementationProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r={provideImplementation:(i,s,o)=>{const a=this._client,c=(f,p,g)=>a.sendRequest(hu.ImplementationRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,p),g).then(_=>g.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(_,g),_=>a.handleFailedRequest(hu.ImplementationRequest.type,g,_,null)),l=a.middleware;return l.provideImplementation?l.provideImplementation(i,s,o,c):c(i,s,o)}};return[this.registerProvider(n,r),r]}registerProvider(e,n){return Z3.languages.registerImplementationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}wl.ImplementationFeature=eS;var Cl={};Object.defineProperty(Cl,"__esModule",{value:!0});Cl.TypeDefinitionFeature=void 0;const tS=Re,gu=ye,io=De;class nS extends io.TextDocumentLanguageFeature{constructor(e){super(e,gu.TypeDefinitionRequest.type)}fillClientCapabilities(e){(0,io.ensure)((0,io.ensure)(e,"textDocument"),"typeDefinition").dynamicRegistration=!0;let n=(0,io.ensure)((0,io.ensure)(e,"textDocument"),"typeDefinition");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){let[r,i]=this.getRegistration(n,e.typeDefinitionProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r={provideTypeDefinition:(i,s,o)=>{const a=this._client,c=(f,p,g)=>a.sendRequest(gu.TypeDefinitionRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,p),g).then(_=>g.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(_,g),_=>a.handleFailedRequest(gu.TypeDefinitionRequest.type,g,_,null)),l=a.middleware;return l.provideTypeDefinition?l.provideTypeDefinition(i,s,o,c):c(i,s,o)}};return[this.registerProvider(n,r),r]}registerProvider(e,n){return tS.languages.registerTypeDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Cl.TypeDefinitionFeature=nS;var zs={};Object.defineProperty(zs,"__esModule",{value:!0});zs.WorkspaceFoldersFeature=zs.arrayDiff=void 0;const rS=Be,_a=Re,so=ye;function mu(t,e){if(t!=null)return t[e]}function N1(t,e){return t.filter(n=>e.indexOf(n)<0)}zs.arrayDiff=N1;class iS{constructor(e){this._client=e,this._listeners=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._listeners.size>0}}get registrationType(){return so.DidChangeWorkspaceFoldersNotification.type}fillInitializeParams(e){const n=_a.workspace.workspaceFolders;this.initializeWithFolders(n),n===void 0?e.workspaceFolders=null:e.workspaceFolders=n.map(r=>this.asProtocol(r))}initializeWithFolders(e){this._initialFolders=e}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.workspaceFolders=!0}initialize(e){const n=this._client;n.onRequest(so.WorkspaceFoldersRequest.type,s=>{const o=()=>{const c=_a.workspace.workspaceFolders;return c===void 0?null:c.map(f=>this.asProtocol(f))},a=n.middleware.workspace;return a&&a.workspaceFolders?a.workspaceFolders(s,o):o()});const r=mu(mu(mu(e,"workspace"),"workspaceFolders"),"changeNotifications");let i;typeof r=="string"?i=r:r===!0&&(i=rS.generateUuid()),i&&this.register({id:i,registerOptions:void 0})}sendInitialEvent(e){let n;if(this._initialFolders&&e){const r=N1(this._initialFolders,e),i=N1(e,this._initialFolders);(i.length>0||r.length>0)&&(n=this.doSendEvent(i,r))}else this._initialFolders?n=this.doSendEvent([],this._initialFolders):e&&(n=this.doSendEvent(e,[]));n!==void 0&&n.catch(r=>{this._client.error(`Sending notification ${so.DidChangeWorkspaceFoldersNotification.type.method} failed`,r)})}doSendEvent(e,n){let r={event:{added:e.map(i=>this.asProtocol(i)),removed:n.map(i=>this.asProtocol(i))}};return this._client.sendNotification(so.DidChangeWorkspaceFoldersNotification.type,r)}register(e){let n=e.id,r=this._client,i=_a.workspace.onDidChangeWorkspaceFolders(s=>{let o=l=>this.doSendEvent(l.added,l.removed),a=r.middleware.workspace;(a&&a.didChangeWorkspaceFolders?a.didChangeWorkspaceFolders(s,o):o(s)).catch(l=>{this._client.error(`Sending notification ${so.DidChangeWorkspaceFoldersNotification.type.method} failed`,l)})});this._listeners.set(n,i),this.sendInitialEvent(_a.workspace.workspaceFolders)}unregister(e){let n=this._listeners.get(e);n!==void 0&&(this._listeners.delete(e),n.dispose())}clear(){for(let e of this._listeners.values())e.dispose();this._listeners.clear()}asProtocol(e){return e===void 0?null:{uri:this._client.code2ProtocolConverter.asUri(e.uri),name:e.name}}}zs.WorkspaceFoldersFeature=iS;var _l={};Object.defineProperty(_l,"__esModule",{value:!0});_l.FoldingRangeFeature=void 0;const N0=Re,Ti=ye,oo=De;class sS extends oo.TextDocumentLanguageFeature{constructor(e){super(e,Ti.FoldingRangeRequest.type)}fillClientCapabilities(e){let n=(0,oo.ensure)((0,oo.ensure)(e,"textDocument"),"foldingRange");n.dynamicRegistration=!0,n.rangeLimit=5e3,n.lineFoldingOnly=!0,n.foldingRangeKind={valueSet:[Ti.FoldingRangeKind.Comment,Ti.FoldingRangeKind.Imports,Ti.FoldingRangeKind.Region]},n.foldingRange={collapsedText:!1},(0,oo.ensure)((0,oo.ensure)(e,"workspace"),"foldingRange").refreshSupport=!0}initialize(e,n){this._client.onRequest(Ti.FoldingRangeRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeFoldingRange.fire()});let[r,i]=this.getRegistration(n,e.foldingRangeProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r=new N0.EventEmitter,i={onDidChangeFoldingRanges:r.event,provideFoldingRanges:(s,o,a)=>{const c=this._client,l=(p,g,_)=>{const C={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(p)};return c.sendRequest(Ti.FoldingRangeRequest.type,C,_).then(k=>_.isCancellationRequested?null:c.protocol2CodeConverter.asFoldingRanges(k,_),k=>c.handleFailedRequest(Ti.FoldingRangeRequest.type,_,k,null))},f=c.middleware;return f.provideFoldingRanges?f.provideFoldingRanges(s,o,a,l):l(s,o,a)}};return[N0.languages.registerFoldingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),{provider:i,onDidChangeFoldingRange:r}]}}_l.FoldingRangeFeature=sS;var Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});Sl.DeclarationFeature=void 0;const oS=Re,yu=ye,bu=De;class aS extends bu.TextDocumentLanguageFeature{constructor(e){super(e,yu.DeclarationRequest.type)}fillClientCapabilities(e){const n=(0,bu.ensure)((0,bu.ensure)(e,"textDocument"),"declaration");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){const[r,i]=this.getRegistration(n,e.declarationProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r={provideDeclaration:(i,s,o)=>{const a=this._client,c=(f,p,g)=>a.sendRequest(yu.DeclarationRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,p),g).then(_=>g.isCancellationRequested?null:a.protocol2CodeConverter.asDeclarationResult(_,g),_=>a.handleFailedRequest(yu.DeclarationRequest.type,g,_,null)),l=a.middleware;return l.provideDeclaration?l.provideDeclaration(i,s,o,c):c(i,s,o)}};return[this.registerProvider(n,r),r]}registerProvider(e,n){return oS.languages.registerDeclarationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Sl.DeclarationFeature=aS;var Dl={};Object.defineProperty(Dl,"__esModule",{value:!0});Dl.SelectionRangeFeature=void 0;const cS=Re,vu=ye,wu=De;class lS extends wu.TextDocumentLanguageFeature{constructor(e){super(e,vu.SelectionRangeRequest.type)}fillClientCapabilities(e){const n=(0,wu.ensure)((0,wu.ensure)(e,"textDocument"),"selectionRange");n.dynamicRegistration=!0}initialize(e,n){const[r,i]=this.getRegistration(n,e.selectionRangeProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r={provideSelectionRanges:(i,s,o)=>{const a=this._client,c=async(f,p,g)=>{const _={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(f),positions:a.code2ProtocolConverter.asPositionsSync(p,g)};return a.sendRequest(vu.SelectionRangeRequest.type,_,g).then(C=>g.isCancellationRequested?null:a.protocol2CodeConverter.asSelectionRanges(C,g),C=>a.handleFailedRequest(vu.SelectionRangeRequest.type,g,C,null))},l=a.middleware;return l.provideSelectionRanges?l.provideSelectionRanges(i,s,o,c):c(i,s,o)}};return[this.registerProvider(n,r),r]}registerProvider(e,n){return cS.languages.registerSelectionRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Dl.SelectionRangeFeature=lS;var Tl={};Object.defineProperty(Tl,"__esModule",{value:!0});Tl.ProgressFeature=void 0;const $0=ye,uS=la;function dS(t,e){return t[e]===void 0&&(t[e]=Object.create(null)),t[e]}class fS{constructor(e){this._client=e,this.activeParts=new Set}getState(){return{kind:"window",id:$0.WorkDoneProgressCreateRequest.method,registrations:this.activeParts.size>0}}fillClientCapabilities(e){dS(e,"window").workDoneProgress=!0}initialize(){const e=this._client,n=i=>{this.activeParts.delete(i)},r=i=>{this.activeParts.add(new uS.ProgressPart(this._client,i.token,n))};e.onRequest($0.WorkDoneProgressCreateRequest.type,r)}clear(){for(const e of this.activeParts)e.done();this.activeParts.clear()}}Tl.ProgressFeature=fS;var kl={};Object.defineProperty(kl,"__esModule",{value:!0});kl.CallHierarchyFeature=void 0;const hS=Re,Mi=ye,Cu=De;class pS{constructor(e){this.client=e,this.middleware=e.middleware}prepareCallHierarchy(e,n,r){const i=this.client,s=this.middleware,o=(a,c,l)=>{const f=i.code2ProtocolConverter.asTextDocumentPositionParams(a,c);return i.sendRequest(Mi.CallHierarchyPrepareRequest.type,f,l).then(p=>l.isCancellationRequested?null:i.protocol2CodeConverter.asCallHierarchyItems(p,l),p=>i.handleFailedRequest(Mi.CallHierarchyPrepareRequest.type,l,p,null))};return s.prepareCallHierarchy?s.prepareCallHierarchy(e,n,r,o):o(e,n,r)}provideCallHierarchyIncomingCalls(e,n){const r=this.client,i=this.middleware,s=(o,a)=>{const c={item:r.code2ProtocolConverter.asCallHierarchyItem(o)};return r.sendRequest(Mi.CallHierarchyIncomingCallsRequest.type,c,a).then(l=>a.isCancellationRequested?null:r.protocol2CodeConverter.asCallHierarchyIncomingCalls(l,a),l=>r.handleFailedRequest(Mi.CallHierarchyIncomingCallsRequest.type,a,l,null))};return i.provideCallHierarchyIncomingCalls?i.provideCallHierarchyIncomingCalls(e,n,s):s(e,n)}provideCallHierarchyOutgoingCalls(e,n){const r=this.client,i=this.middleware,s=(o,a)=>{const c={item:r.code2ProtocolConverter.asCallHierarchyItem(o)};return r.sendRequest(Mi.CallHierarchyOutgoingCallsRequest.type,c,a).then(l=>a.isCancellationRequested?null:r.protocol2CodeConverter.asCallHierarchyOutgoingCalls(l,a),l=>r.handleFailedRequest(Mi.CallHierarchyOutgoingCallsRequest.type,a,l,null))};return i.provideCallHierarchyOutgoingCalls?i.provideCallHierarchyOutgoingCalls(e,n,s):s(e,n)}}class gS extends Cu.TextDocumentLanguageFeature{constructor(e){super(e,Mi.CallHierarchyPrepareRequest.type)}fillClientCapabilities(e){const n=e,r=(0,Cu.ensure)((0,Cu.ensure)(n,"textDocument"),"callHierarchy");r.dynamicRegistration=!0}initialize(e,n){const[r,i]=this.getRegistration(n,e.callHierarchyProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=this._client,r=new pS(n);return[hS.languages.registerCallHierarchyProvider(this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector),r),r]}}kl.CallHierarchyFeature=gS;var Rl={};Object.defineProperty(Rl,"__esModule",{value:!0});Rl.SemanticTokensFeature=void 0;const Sa=Re,Ie=ye,ao=De,mS=Ye;class yS extends ao.TextDocumentLanguageFeature{constructor(e){super(e,Ie.SemanticTokensRegistrationType.type)}fillClientCapabilities(e){const n=(0,ao.ensure)((0,ao.ensure)(e,"textDocument"),"semanticTokens");n.dynamicRegistration=!0,n.tokenTypes=[Ie.SemanticTokenTypes.namespace,Ie.SemanticTokenTypes.type,Ie.SemanticTokenTypes.class,Ie.SemanticTokenTypes.enum,Ie.SemanticTokenTypes.interface,Ie.SemanticTokenTypes.struct,Ie.SemanticTokenTypes.typeParameter,Ie.SemanticTokenTypes.parameter,Ie.SemanticTokenTypes.variable,Ie.SemanticTokenTypes.property,Ie.SemanticTokenTypes.enumMember,Ie.SemanticTokenTypes.event,Ie.SemanticTokenTypes.function,Ie.SemanticTokenTypes.method,Ie.SemanticTokenTypes.macro,Ie.SemanticTokenTypes.keyword,Ie.SemanticTokenTypes.modifier,Ie.SemanticTokenTypes.comment,Ie.SemanticTokenTypes.string,Ie.SemanticTokenTypes.number,Ie.SemanticTokenTypes.regexp,Ie.SemanticTokenTypes.operator,Ie.SemanticTokenTypes.decorator],n.tokenModifiers=[Ie.SemanticTokenModifiers.declaration,Ie.SemanticTokenModifiers.definition,Ie.SemanticTokenModifiers.readonly,Ie.SemanticTokenModifiers.static,Ie.SemanticTokenModifiers.deprecated,Ie.SemanticTokenModifiers.abstract,Ie.SemanticTokenModifiers.async,Ie.SemanticTokenModifiers.modification,Ie.SemanticTokenModifiers.documentation,Ie.SemanticTokenModifiers.defaultLibrary],n.formats=[Ie.TokenFormat.Relative],n.requests={range:!0,full:{delta:!0}},n.multilineTokenSupport=!1,n.overlappingTokenSupport=!1,n.serverCancelSupport=!0,n.augmentsSyntaxTokens=!0,(0,ao.ensure)((0,ao.ensure)(e,"workspace"),"semanticTokens").refreshSupport=!0}initialize(e,n){this._client.onRequest(Ie.SemanticTokensRefreshRequest.type,async()=>{for(const o of this.getAllProviders())o.onDidChangeSemanticTokensEmitter.fire()});const[i,s]=this.getRegistration(n,e.semanticTokensProvider);!i||!s||this.register({id:i,registerOptions:s})}registerLanguageProvider(e){const n=e.documentSelector,r=mS.boolean(e.full)?e.full:e.full!==void 0,i=e.full!==void 0&&typeof e.full!="boolean"&&e.full.delta===!0,s=new Sa.EventEmitter,o=r?{onDidChangeSemanticTokens:s.event,provideDocumentSemanticTokens:(_,C)=>{const k=this._client,M=k.middleware,H=(K,j)=>{const B={textDocument:k.code2ProtocolConverter.asTextDocumentIdentifier(K)};return k.sendRequest(Ie.SemanticTokensRequest.type,B,j).then(z=>j.isCancellationRequested?null:k.protocol2CodeConverter.asSemanticTokens(z,j),z=>k.handleFailedRequest(Ie.SemanticTokensRequest.type,j,z,null))};return M.provideDocumentSemanticTokens?M.provideDocumentSemanticTokens(_,C,H):H(_,C)},provideDocumentSemanticTokensEdits:i?(_,C,k)=>{const M=this._client,H=M.middleware,K=(j,B,z)=>{const ne={textDocument:M.code2ProtocolConverter.asTextDocumentIdentifier(j),previousResultId:B};return M.sendRequest(Ie.SemanticTokensDeltaRequest.type,ne,z).then(async G=>z.isCancellationRequested?null:Ie.SemanticTokens.is(G)?await M.protocol2CodeConverter.asSemanticTokens(G,z):await M.protocol2CodeConverter.asSemanticTokensEdits(G,z),G=>M.handleFailedRequest(Ie.SemanticTokensDeltaRequest.type,z,G,null))};return H.provideDocumentSemanticTokensEdits?H.provideDocumentSemanticTokensEdits(_,C,k,K):K(_,C,k)}:void 0}:void 0,c=e.range===!0?{provideDocumentRangeSemanticTokens:(_,C,k)=>{const M=this._client,H=M.middleware,K=(j,B,z)=>{const ne={textDocument:M.code2ProtocolConverter.asTextDocumentIdentifier(j),range:M.code2ProtocolConverter.asRange(B)};return M.sendRequest(Ie.SemanticTokensRangeRequest.type,ne,z).then(G=>z.isCancellationRequested?null:M.protocol2CodeConverter.asSemanticTokens(G,z),G=>M.handleFailedRequest(Ie.SemanticTokensRangeRequest.type,z,G,null))};return H.provideDocumentRangeSemanticTokens?H.provideDocumentRangeSemanticTokens(_,C,k,K):K(_,C,k)}}:void 0,l=[],f=this._client,p=f.protocol2CodeConverter.asSemanticTokensLegend(e.legend),g=f.protocol2CodeConverter.asDocumentSelector(n);return o!==void 0&&l.push(Sa.languages.registerDocumentSemanticTokensProvider(g,o,p)),c!==void 0&&l.push(Sa.languages.registerDocumentRangeSemanticTokensProvider(g,c,p)),[new Sa.Disposable(()=>l.forEach(_=>_.dispose())),{range:c,full:o,onDidChangeSemanticTokensEmitter:s}]}}Rl.SemanticTokensFeature=yS;var Fn={};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.WillDeleteFilesFeature=Fn.WillRenameFilesFeature=Fn.WillCreateFilesFeature=Fn.DidDeleteFilesFeature=Fn.DidRenameFilesFeature=Fn.DidCreateFilesFeature=void 0;const Xn=Re,bS=Vc,Br=ye,vS=Be;function q0(t,e){return t[e]===void 0&&(t[e]={}),t[e]}function wS(t,e){return t[e]}function j0(t,e,n){t[e]=n}class Ki{constructor(e,n,r,i,s){this._client=e,this._event=n,this._registrationType=r,this._clientCapability=i,this._serverCapability=s,this._filters=new Map}getState(){return{kind:"workspace",id:this._registrationType.method,registrations:this._filters.size>0}}filterSize(){return this._filters.size}get registrationType(){return this._registrationType}fillClientCapabilities(e){const n=q0(q0(e,"workspace"),"fileOperations");j0(n,"dynamicRegistration",!0),j0(n,this._clientCapability,!0)}initialize(e){var i;const n=(i=e.workspace)==null?void 0:i.fileOperations,r=n!==void 0?wS(n,this._serverCapability):void 0;if((r==null?void 0:r.filters)!==void 0)try{this.register({id:vS.generateUuid(),registerOptions:{filters:r.filters}})}catch(s){this._client.warn(`Ignoring invalid glob pattern for ${this._serverCapability} registration: ${s}`)}}register(e){this._listener||(this._listener=this._event(this.send,this));const n=e.registerOptions.filters.map(r=>{const i=new bS.Minimatch(r.pattern.glob,Ki.asMinimatchOptions(r.pattern.options));if(!i.makeRe())throw new Error(`Invalid pattern ${r.pattern.glob}!`);return{scheme:r.scheme,matcher:i,kind:r.pattern.matches}});this._filters.set(e.id,n)}unregister(e){this._filters.delete(e),this._filters.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._filters.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getFileType(e){return Ki.getFileType(e)}async filter(e,n){const r=await Promise.all(e.files.map(async s=>{const o=n(s),a=o.fsPath.replace(/\\/g,"/");for(const c of this._filters.values())for(const l of c)if(!(l.scheme!==void 0&&l.scheme!==o.scheme)){if(l.matcher.match(a)){if(l.kind===void 0)return!0;const f=await this.getFileType(o);if(f===void 0)return this._client.error(`Failed to determine file type for ${o.toString()}.`),!0;if(f===Xn.FileType.File&&l.kind===Br.FileOperationPatternKind.file||f===Xn.FileType.Directory&&l.kind===Br.FileOperationPatternKind.folder)return!0}else if(l.kind===Br.FileOperationPatternKind.folder&&await Ki.getFileType(o)===Xn.FileType.Directory&&l.matcher.match(`${a}/`))return!0}return!1})),i=e.files.filter((s,o)=>r[o]);return{...e,files:i}}static async getFileType(e){try{return(await Xn.workspace.fs.stat(e)).type}catch{return}}static asMinimatchOptions(e){const n={dot:!0};return(e==null?void 0:e.ignoreCase)===!0&&(n.nocase=!0),n}}class Dy extends Ki{constructor(e,n,r,i,s,o,a){super(e,n,r,i,s),this._notificationType=r,this._accessUri=o,this._createParams=a}async send(e){const n=await this.filter(e,this._accessUri);if(n.files.length){const r=async i=>this._client.sendNotification(this._notificationType,this._createParams(i));return this.doSend(n,r)}}}class Ty extends Dy{constructor(){super(...arguments),this._fsPathFileTypes=new Map}async getFileType(e){const n=e.fsPath;if(this._fsPathFileTypes.has(n))return this._fsPathFileTypes.get(n);const r=await Ki.getFileType(e);return r&&this._fsPathFileTypes.set(n,r),r}async cacheFileTypes(e,n){await this.filter(e,n)}clearFileTypeCache(){this._fsPathFileTypes.clear()}unregister(e){super.unregister(e),this.filterSize()===0&&this._willListener&&(this._willListener.dispose(),this._willListener=void 0)}clear(){super.clear(),this._willListener&&(this._willListener.dispose(),this._willListener=void 0)}}class CS extends Dy{constructor(e){super(e,Xn.workspace.onDidCreateFiles,Br.DidCreateFilesNotification.type,"didCreate","didCreate",n=>n,e.code2ProtocolConverter.asDidCreateFilesParams)}doSend(e,n){const r=this._client.middleware.workspace;return r!=null&&r.didCreateFiles?r.didCreateFiles(e,n):n(e)}}Fn.DidCreateFilesFeature=CS;class _S extends Ty{constructor(e){super(e,Xn.workspace.onDidRenameFiles,Br.DidRenameFilesNotification.type,"didRename","didRename",n=>n.oldUri,e.code2ProtocolConverter.asDidRenameFilesParams)}register(e){this._willListener||(this._willListener=Xn.workspace.onWillRenameFiles(this.willRename,this)),super.register(e)}willRename(e){e.waitUntil(this.cacheFileTypes(e,n=>n.oldUri))}doSend(e,n){this.clearFileTypeCache();const r=this._client.middleware.workspace;return r!=null&&r.didRenameFiles?r.didRenameFiles(e,n):n(e)}}Fn.DidRenameFilesFeature=_S;class SS extends Ty{constructor(e){super(e,Xn.workspace.onDidDeleteFiles,Br.DidDeleteFilesNotification.type,"didDelete","didDelete",n=>n,e.code2ProtocolConverter.asDidDeleteFilesParams)}register(e){this._willListener||(this._willListener=Xn.workspace.onWillDeleteFiles(this.willDelete,this)),super.register(e)}willDelete(e){e.waitUntil(this.cacheFileTypes(e,n=>n))}doSend(e,n){this.clearFileTypeCache();const r=this._client.middleware.workspace;return r!=null&&r.didDeleteFiles?r.didDeleteFiles(e,n):n(e)}}Fn.DidDeleteFilesFeature=SS;class pp extends Ki{constructor(e,n,r,i,s,o,a){super(e,n,r,i,s),this._requestType=r,this._accessUri=o,this._createParams=a}async send(e){const n=this.waitUntil(e);e.waitUntil(n)}async waitUntil(e){const n=await this.filter(e,this._accessUri);if(n.files.length){const r=i=>this._client.sendRequest(this._requestType,this._createParams(i),i.token).then(this._client.protocol2CodeConverter.asWorkspaceEdit);return this.doSend(n,r)}else return}}class DS extends pp{constructor(e){super(e,Xn.workspace.onWillCreateFiles,Br.WillCreateFilesRequest.type,"willCreate","willCreate",n=>n,e.code2ProtocolConverter.asWillCreateFilesParams)}doSend(e,n){const r=this._client.middleware.workspace;return r!=null&&r.willCreateFiles?r.willCreateFiles(e,n):n(e)}}Fn.WillCreateFilesFeature=DS;class TS extends pp{constructor(e){super(e,Xn.workspace.onWillRenameFiles,Br.WillRenameFilesRequest.type,"willRename","willRename",n=>n.oldUri,e.code2ProtocolConverter.asWillRenameFilesParams)}doSend(e,n){const r=this._client.middleware.workspace;return r!=null&&r.willRenameFiles?r.willRenameFiles(e,n):n(e)}}Fn.WillRenameFilesFeature=TS;class kS extends pp{constructor(e){super(e,Xn.workspace.onWillDeleteFiles,Br.WillDeleteFilesRequest.type,"willDelete","willDelete",n=>n,e.code2ProtocolConverter.asWillDeleteFilesParams)}doSend(e,n){const r=this._client.middleware.workspace;return r!=null&&r.willDeleteFiles?r.willDeleteFiles(e,n):n(e)}}Fn.WillDeleteFilesFeature=kS;var xl={};Object.defineProperty(xl,"__esModule",{value:!0});xl.LinkedEditingFeature=void 0;const RS=Re,_u=ye,Su=De;class xS extends Su.TextDocumentLanguageFeature{constructor(e){super(e,_u.LinkedEditingRangeRequest.type)}fillClientCapabilities(e){const n=(0,Su.ensure)((0,Su.ensure)(e,"textDocument"),"linkedEditingRange");n.dynamicRegistration=!0}initialize(e,n){let[r,i]=this.getRegistration(n,e.linkedEditingRangeProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r={provideLinkedEditingRanges:(i,s,o)=>{const a=this._client,c=(f,p,g)=>a.sendRequest(_u.LinkedEditingRangeRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,p),g).then(_=>g.isCancellationRequested?null:a.protocol2CodeConverter.asLinkedEditingRanges(_,g),_=>a.handleFailedRequest(_u.LinkedEditingRangeRequest.type,g,_,null)),l=a.middleware;return l.provideLinkedEditingRange?l.provideLinkedEditingRange(i,s,o,c):c(i,s,o)}};return[this.registerProvider(n,r),r]}registerProvider(e,n){return RS.languages.registerLinkedEditingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}xl.LinkedEditingFeature=xS;var El={};Object.defineProperty(El,"__esModule",{value:!0});El.TypeHierarchyFeature=void 0;const ES=Re,Oi=ye,Du=De;class PS{constructor(e){this.client=e,this.middleware=e.middleware}prepareTypeHierarchy(e,n,r){const i=this.client,s=this.middleware,o=(a,c,l)=>{const f=i.code2ProtocolConverter.asTextDocumentPositionParams(a,c);return i.sendRequest(Oi.TypeHierarchyPrepareRequest.type,f,l).then(p=>l.isCancellationRequested?null:i.protocol2CodeConverter.asTypeHierarchyItems(p,l),p=>i.handleFailedRequest(Oi.TypeHierarchyPrepareRequest.type,l,p,null))};return s.prepareTypeHierarchy?s.prepareTypeHierarchy(e,n,r,o):o(e,n,r)}provideTypeHierarchySupertypes(e,n){const r=this.client,i=this.middleware,s=(o,a)=>{const c={item:r.code2ProtocolConverter.asTypeHierarchyItem(o)};return r.sendRequest(Oi.TypeHierarchySupertypesRequest.type,c,a).then(l=>a.isCancellationRequested?null:r.protocol2CodeConverter.asTypeHierarchyItems(l,a),l=>r.handleFailedRequest(Oi.TypeHierarchySupertypesRequest.type,a,l,null))};return i.provideTypeHierarchySupertypes?i.provideTypeHierarchySupertypes(e,n,s):s(e,n)}provideTypeHierarchySubtypes(e,n){const r=this.client,i=this.middleware,s=(o,a)=>{const c={item:r.code2ProtocolConverter.asTypeHierarchyItem(o)};return r.sendRequest(Oi.TypeHierarchySubtypesRequest.type,c,a).then(l=>a.isCancellationRequested?null:r.protocol2CodeConverter.asTypeHierarchyItems(l,a),l=>r.handleFailedRequest(Oi.TypeHierarchySubtypesRequest.type,a,l,null))};return i.provideTypeHierarchySubtypes?i.provideTypeHierarchySubtypes(e,n,s):s(e,n)}}class IS extends Du.TextDocumentLanguageFeature{constructor(e){super(e,Oi.TypeHierarchyPrepareRequest.type)}fillClientCapabilities(e){const n=(0,Du.ensure)((0,Du.ensure)(e,"textDocument"),"typeHierarchy");n.dynamicRegistration=!0}initialize(e,n){const[r,i]=this.getRegistration(n,e.typeHierarchyProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=this._client,r=new PS(n);return[ES.languages.registerTypeHierarchyProvider(n.protocol2CodeConverter.asDocumentSelector(e.documentSelector),r),r]}}El.TypeHierarchyFeature=IS;var Pl={};Object.defineProperty(Pl,"__esModule",{value:!0});Pl.InlineValueFeature=void 0;const H0=Re,Da=ye,co=De;class MS extends co.TextDocumentLanguageFeature{constructor(e){super(e,Da.InlineValueRequest.type)}fillClientCapabilities(e){(0,co.ensure)((0,co.ensure)(e,"textDocument"),"inlineValue").dynamicRegistration=!0,(0,co.ensure)((0,co.ensure)(e,"workspace"),"inlineValue").refreshSupport=!0}initialize(e,n){this._client.onRequest(Da.InlineValueRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeInlineValues.fire()});const[r,i]=this.getRegistration(n,e.inlineValueProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r=new H0.EventEmitter,i={onDidChangeInlineValues:r.event,provideInlineValues:(s,o,a,c)=>{const l=this._client,f=(g,_,C,k)=>{const M={textDocument:l.code2ProtocolConverter.asTextDocumentIdentifier(g),range:l.code2ProtocolConverter.asRange(_),context:l.code2ProtocolConverter.asInlineValueContext(C)};return l.sendRequest(Da.InlineValueRequest.type,M,k).then(H=>k.isCancellationRequested?null:l.protocol2CodeConverter.asInlineValues(H,k),H=>l.handleFailedRequest(Da.InlineValueRequest.type,k,H,null))},p=l.middleware;return p.provideInlineValues?p.provideInlineValues(s,o,a,c,f):f(s,o,a,c)}};return[this.registerProvider(n,i),{provider:i,onDidChangeInlineValues:r}]}registerProvider(e,n){return H0.languages.registerInlineValuesProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Pl.InlineValueFeature=MS;var Il={};Object.defineProperty(Il,"__esModule",{value:!0});Il.InlayHintsFeature=void 0;const W0=Re,os=ye,lo=De;class OS extends lo.TextDocumentLanguageFeature{constructor(e){super(e,os.InlayHintRequest.type)}fillClientCapabilities(e){const n=(0,lo.ensure)((0,lo.ensure)(e,"textDocument"),"inlayHint");n.dynamicRegistration=!0,n.resolveSupport={properties:["tooltip","textEdits","label.tooltip","label.location","label.command"]},(0,lo.ensure)((0,lo.ensure)(e,"workspace"),"inlayHint").refreshSupport=!0}initialize(e,n){this._client.onRequest(os.InlayHintRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeInlayHints.fire()});const[r,i]=this.getRegistration(n,e.inlayHintProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r=new W0.EventEmitter,i={onDidChangeInlayHints:r.event,provideInlayHints:(s,o,a)=>{const c=this._client,l=async(p,g,_)=>{const C={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(p),range:c.code2ProtocolConverter.asRange(g)};try{const k=await c.sendRequest(os.InlayHintRequest.type,C,_);return _.isCancellationRequested?null:c.protocol2CodeConverter.asInlayHints(k,_)}catch(k){return c.handleFailedRequest(os.InlayHintRequest.type,_,k,null)}},f=c.middleware;return f.provideInlayHints?f.provideInlayHints(s,o,a,l):l(s,o,a)}};return i.resolveInlayHint=e.resolveProvider===!0?(s,o)=>{const a=this._client,c=async(f,p)=>{try{const g=await a.sendRequest(os.InlayHintResolveRequest.type,a.code2ProtocolConverter.asInlayHint(f),p);if(p.isCancellationRequested)return null;const _=a.protocol2CodeConverter.asInlayHint(g,p);return p.isCancellationRequested?null:_}catch(g){return a.handleFailedRequest(os.InlayHintResolveRequest.type,p,g,null)}},l=a.middleware;return l.resolveInlayHint?l.resolveInlayHint(s,o,c):c(s,o)}:void 0,[this.registerProvider(n,i),{provider:i,onDidChangeInlayHints:r}]}registerProvider(e,n){return W0.languages.registerInlayHintsProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Il.InlayHintsFeature=OS;var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});Ml.InlineCompletionItemFeature=void 0;const AS=Re,Tu=ye,ku=De,FS=Be;class LS extends ku.TextDocumentLanguageFeature{constructor(e){super(e,Tu.InlineCompletionRequest.type)}fillClientCapabilities(e){let n=(0,ku.ensure)((0,ku.ensure)(e,"textDocument"),"inlineCompletion");n.dynamicRegistration=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.inlineCompletionProvider);r&&this.register({id:FS.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideInlineCompletionItems:(i,s,o,a)=>{const c=this._client,l=this._client.middleware,f=(p,g,_,C)=>c.sendRequest(Tu.InlineCompletionRequest.type,c.code2ProtocolConverter.asInlineCompletionParams(p,g,_),C).then(k=>C.isCancellationRequested?null:c.protocol2CodeConverter.asInlineCompletionResult(k,C),k=>c.handleFailedRequest(Tu.InlineCompletionRequest.type,C,k,null));return l.provideInlineCompletionItems?l.provideInlineCompletionItems(i,s,o,a,f):f(i,s,o,a)}};return[AS.languages.registerInlineCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),r]}}Ml.InlineCompletionItemFeature=LS;Object.defineProperty(Xt,"__esModule",{value:!0});Xt.ProposedFeatures=Xt.BaseLanguageClient=Xt.MessageTransports=Xt.SuspendMode=Xt.State=Xt.CloseAction=Xt.ErrorAction=Xt.RevealOutputChannelOn=void 0;const nt=Re,Q=ye,NS=Gc,$S=rl,sr=Ye,Ta=Zt,U0=Be,qS=la,nr=De,jS=Ur,z0=il,B0=hi,as=An,HS=sl,WS=ol,US=al,zS=cl,BS=ll,VS=fp,KS=ul,GS=dl,QS=fl,JS=hl,Ru=pi,YS=gl,XS=ml,ZS=yl,eD=bl,tD=vl,nD=wl,rD=Cl,iD=zs,sD=_l,oD=Sl,aD=Dl,cD=Tl,lD=kl,uD=Rl,cs=Fn,dD=xl,fD=El,hD=Pl,pD=Il,gD=Ml;var Fi;(function(t){t[t.Debug=0]="Debug",t[t.Info=1]="Info",t[t.Warn=2]="Warn",t[t.Error=3]="Error",t[t.Never=4]="Never"})(Fi||(Xt.RevealOutputChannelOn=Fi={}));var Jo;(function(t){t[t.Continue=1]="Continue",t[t.Shutdown=2]="Shutdown"})(Jo||(Xt.ErrorAction=Jo={}));var gi;(function(t){t[t.DoNotRestart=1]="DoNotRestart",t[t.Restart=2]="Restart"})(gi||(Xt.CloseAction=gi={}));var xo;(function(t){t[t.Stopped=1]="Stopped",t[t.Starting=3]="Starting",t[t.Running=2]="Running"})(xo||(Xt.State=xo={}));var V0;(function(t){t.off="off",t.on="on"})(V0||(Xt.SuspendMode=V0={}));var $1;(function(t){function e(n){return n==null?!1:typeof n=="boolean"||typeof n=="object"&&n!==null&&sr.stringArray(n.enabledCommands)?n:!1}t.sanitizeIsTrusted=e})($1||($1={}));class mD{constructor(e,n){this.client=e,this.maxRestartCount=n,this.restarts=[]}error(e,n,r){return r&&r<=3?{action:Jo.Continue}:{action:Jo.Shutdown}}closed(){return this.restarts.push(Date.now()),this.restarts.length<=this.maxRestartCount?{action:gi.Restart}:this.restarts[this.restarts.length-1]-this.restarts[0]<=3*60*1e3?{action:gi.DoNotRestart,message:`The ${this.client.name} server crashed ${this.maxRestartCount+1} times in the last 3 minutes. The server will not be restarted. See the output for more information.`}:(this.restarts.shift(),{action:gi.Restart})}}var Ne;(function(t){t.Initial="initial",t.Starting="starting",t.StartFailed="startFailed",t.Running="running",t.Stopping="stopping",t.Stopped="stopped"})(Ne||(Ne={}));var K0;(function(t){function e(n){return n&&Q.MessageReader.is(n.reader)&&Q.MessageWriter.is(n.writer)}t.is=e})(K0||(Xt.MessageTransports=K0={}));class Gi{constructor(e,n,r){var s;this._traceFormat=Q.TraceFormat.Text,this._diagnosticQueue=new Map,this._diagnosticQueueState={state:"idle"},this._features=[],this._dynamicFeatures=new Map,this.workspaceEditLock=new Ta.Semaphore(1),this._id=e,this._name=n,r=r||{};const i={isTrusted:!1,supportHtml:!1};r.markdown!==void 0&&(i.isTrusted=$1.sanitizeIsTrusted(r.markdown.isTrusted),i.supportHtml=r.markdown.supportHtml===!0),this._clientOptions={documentSelector:r.documentSelector??[],synchronize:r.synchronize??{},diagnosticCollectionName:r.diagnosticCollectionName,outputChannelName:r.outputChannelName??this._name,revealOutputChannelOn:r.revealOutputChannelOn??Fi.Error,stdioEncoding:r.stdioEncoding??"utf8",initializationOptions:r.initializationOptions,initializationFailedHandler:r.initializationFailedHandler,progressOnInitialization:!!r.progressOnInitialization,errorHandler:r.errorHandler??this.createDefaultErrorHandler((s=r.connectionOptions)==null?void 0:s.maxRestartCount),middleware:r.middleware??{},uriConverters:r.uriConverters,workspaceFolder:r.workspaceFolder,connectionOptions:r.connectionOptions,markdown:i,diagnosticPullOptions:r.diagnosticPullOptions??{onChange:!0,onSave:!1},notebookDocumentOptions:r.notebookDocumentOptions??{}},this._clientOptions.synchronize=this._clientOptions.synchronize||{},this._state=Ne.Initial,this._ignoredRegistrations=new Set,this._listeners=[],this._notificationHandlers=new Map,this._pendingNotificationHandlers=new Map,this._notificationDisposables=new Map,this._requestHandlers=new Map,this._pendingRequestHandlers=new Map,this._requestDisposables=new Map,this._progressHandlers=new Map,this._pendingProgressHandlers=new Map,this._progressDisposables=new Map,this._connection=void 0,this._initializeResult=void 0,r.outputChannel?(this._outputChannel=r.outputChannel,this._disposeOutputChannel=!1):(this._outputChannel=void 0,this._disposeOutputChannel=!0),this._traceOutputChannel=r.traceOutputChannel,this._diagnostics=void 0,this._pendingOpenNotifications=new Set,this._pendingChangeSemaphore=new Ta.Semaphore(1),this._pendingChangeDelayer=new Ta.Delayer(250),this._fileEvents=[],this._fileEventDelayer=new Ta.Delayer(250),this._onStop=void 0,this._telemetryEmitter=new Q.Emitter,this._stateChangeEmitter=new Q.Emitter,this._trace=Q.Trace.Off,this._tracer={log:(o,a)=>{sr.string(o)?this.logTrace(o,a):this.logObjectTrace(o)}},this._c2p=NS.createConverter(r.uriConverters?r.uriConverters.code2Protocol:void 0),this._p2c=$S.createConverter(r.uriConverters?r.uriConverters.protocol2Code:void 0,this._clientOptions.markdown.isTrusted,this._clientOptions.markdown.supportHtml),this._syncedDocuments=new Map,this.registerBuiltinFeatures()}get name(){return this._name}get middleware(){return this._clientOptions.middleware??Object.create(null)}get clientOptions(){return this._clientOptions}get protocol2CodeConverter(){return this._p2c}get code2ProtocolConverter(){return this._c2p}get onTelemetry(){return this._telemetryEmitter.event}get onDidChangeState(){return this._stateChangeEmitter.event}get outputChannel(){return this._outputChannel||(this._outputChannel=nt.window.createOutputChannel(this._clientOptions.outputChannelName?this._clientOptions.outputChannelName:this._name)),this._outputChannel}get traceOutputChannel(){return this._traceOutputChannel?this._traceOutputChannel:this.outputChannel}get diagnostics(){return this._diagnostics}get state(){return this.getPublicState()}get $state(){return this._state}set $state(e){let n=this.getPublicState();this._state=e;let r=this.getPublicState();r!==n&&this._stateChangeEmitter.fire({oldState:n,newState:r})}getPublicState(){switch(this.$state){case Ne.Starting:return xo.Starting;case Ne.Running:return xo.Running;default:return xo.Stopped}}get initializeResult(){return this._initializeResult}async sendRequest(e,...n){var s;if(this.$state===Ne.StartFailed||this.$state===Ne.Stopping||this.$state===Ne.Stopped)return Promise.reject(new Q.ResponseError(Q.ErrorCodes.ConnectionInactive,"Client is not running"));const r=await this.$start();this._didChangeTextDocumentFeature.syncKind===Q.TextDocumentSyncKind.Full&&await this.sendPendingFullTextDocumentChanges(r);const i=(s=this._clientOptions.middleware)==null?void 0:s.sendRequest;if(i!==void 0){let o,a;return n.length===1?Q.CancellationToken.is(n[0])?a=n[0]:o=n[0]:n.length===2&&(o=n[0],a=n[1]),i(e,o,a,(c,l,f)=>{const p=[];return l!==void 0&&p.push(l),f!==void 0&&p.push(f),r.sendRequest(c,...p)})}else return r.sendRequest(e,...n)}onRequest(e,n){const r=typeof e=="string"?e:e.method;this._requestHandlers.set(r,n);const i=this.activeConnection();let s;return i!==void 0?(this._requestDisposables.set(r,i.onRequest(e,n)),s={dispose:()=>{const o=this._requestDisposables.get(r);o!==void 0&&(o.dispose(),this._requestDisposables.delete(r))}}):(this._pendingRequestHandlers.set(r,n),s={dispose:()=>{this._pendingRequestHandlers.delete(r);const o=this._requestDisposables.get(r);o!==void 0&&(o.dispose(),this._requestDisposables.delete(r))}}),{dispose:()=>{this._requestHandlers.delete(r),s.dispose()}}}async sendNotification(e,n){var a;if(this.$state===Ne.StartFailed||this.$state===Ne.Stopping||this.$state===Ne.Stopped)return Promise.reject(new Q.ResponseError(Q.ErrorCodes.ConnectionInactive,"Client is not running"));const r=this._didChangeTextDocumentFeature.syncKind===Q.TextDocumentSyncKind.Full;let i;r&&typeof e!="string"&&e.method===Q.DidOpenTextDocumentNotification.method&&(i=n==null?void 0:n.textDocument.uri,this._pendingOpenNotifications.add(i));const s=await this.$start();r&&await this.sendPendingFullTextDocumentChanges(s),i!==void 0&&this._pendingOpenNotifications.delete(i);const o=(a=this._clientOptions.middleware)==null?void 0:a.sendNotification;return o?o(e,s.sendNotification.bind(s),n):s.sendNotification(e,n)}onNotification(e,n){const r=typeof e=="string"?e:e.method;this._notificationHandlers.set(r,n);const i=this.activeConnection();let s;return i!==void 0?(this._notificationDisposables.set(r,i.onNotification(e,n)),s={dispose:()=>{const o=this._notificationDisposables.get(r);o!==void 0&&(o.dispose(),this._notificationDisposables.delete(r))}}):(this._pendingNotificationHandlers.set(r,n),s={dispose:()=>{this._pendingNotificationHandlers.delete(r);const o=this._notificationDisposables.get(r);o!==void 0&&(o.dispose(),this._notificationDisposables.delete(r))}}),{dispose:()=>{this._notificationHandlers.delete(r),s.dispose()}}}async sendProgress(e,n,r){if(this.$state===Ne.StartFailed||this.$state===Ne.Stopping||this.$state===Ne.Stopped)return Promise.reject(new Q.ResponseError(Q.ErrorCodes.ConnectionInactive,"Client is not running"));try{return(await this.$start()).sendProgress(e,n,r)}catch(i){throw this.error(`Sending progress for token ${n} failed.`,i),i}}onProgress(e,n,r){var c;this._progressHandlers.set(n,{type:e,handler:r});const i=this.activeConnection();let s;const o=(c=this._clientOptions.middleware)==null?void 0:c.handleWorkDoneProgress,a=Q.WorkDoneProgress.is(e)&&o!==void 0?l=>{o(n,l,()=>r(l))}:r;return i!==void 0?(this._progressDisposables.set(n,i.onProgress(e,n,a)),s={dispose:()=>{const l=this._progressDisposables.get(n);l!==void 0&&(l.dispose(),this._progressDisposables.delete(n))}}):(this._pendingProgressHandlers.set(n,{type:e,handler:r}),s={dispose:()=>{this._pendingProgressHandlers.delete(n);const l=this._progressDisposables.get(n);l!==void 0&&(l.dispose(),this._progressDisposables.delete(n))}}),{dispose:()=>{this._progressHandlers.delete(n),s.dispose()}}}createDefaultErrorHandler(e){if(e!==void 0&&e<0)throw new Error(`Invalid maxRestartCount: ${e}`);return new mD(this,e??4)}async setTrace(e){this._trace=e;const n=this.activeConnection();n!==void 0&&await n.trace(this._trace,this._tracer,{sendNotification:!1,traceFormat:this._traceFormat})}data2String(e){if(e instanceof Q.ResponseError){const n=e;return` Message: ${n.message}
|
|
114
|
+
- Values greater than or equal to 8 will be used as effective values.`)})}compute(e,n,i){return e.fontInfo.lineHeight}}class i7 extends Ke{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:m(b,67,"Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:m(b,68,"Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[m(b,69,"The minimap has the same size as the editor contents (and might scroll)."),m(b,70,"The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),m(b,71,"The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:m(b,72,"Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:m(b,73,"Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:m(b,74,"Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:m(b,75,"Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:m(b,76,"Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:m(b,77,"Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:m(b,78,"Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:m(b,79,"Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:m(b,80,"Controls the font size of section headers in the minimap.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Q(n.enabled,this.defaultValue.enabled),autohide:Q(n.autohide,this.defaultValue.autohide),size:gt(n.size,this.defaultValue.size,["proportional","fill","fit"]),side:gt(n.side,this.defaultValue.side,["right","left"]),showSlider:gt(n.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:Q(n.renderCharacters,this.defaultValue.renderCharacters),scale:je.clampedInt(n.scale,1,1,3),maxColumn:je.clampedInt(n.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:Q(n.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:Q(n.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:ui.clamp(n.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32)}}}function r7(t){return t==="ctrlCmd"?Si?"metaKey":"ctrlKey":"altKey"}class s7 extends Ke{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:m(b,81,"Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:m(b,82,"Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{top:je.clampedInt(n.top,0,0,1e3),bottom:je.clampedInt(n.bottom,0,0,1e3)}}}class o7 extends Ke{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:m(b,83,"Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:m(b,84,"Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Q(n.enabled,this.defaultValue.enabled),cycle:Q(n.cycle,this.defaultValue.cycle)}}}class a7 extends aa{constructor(){super(143)}compute(e,n,i){return e.pixelRatio}}class c7 extends Ke{constructor(){const e={other:"on",comments:"off",strings:"off"},n=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[m(b,85,"Quick suggestions show inside the suggest widget"),m(b,86,"Quick suggestions show as ghost text"),m(b,87,"Quick suggestions are disabled")]}];super(89,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:n,default:e.strings,description:m(b,88,"Enable quick suggestions inside strings.")},comments:{anyOf:n,default:e.comments,description:m(b,89,"Enable quick suggestions inside comments.")},other:{anyOf:n,default:e.other,description:m(b,90,"Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:m(b,91,"Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const l=e?"on":"off";return{comments:l,strings:l,other:l}}if(!e||typeof e!="object")return this.defaultValue;const{other:n,comments:i,strings:r}=e,s=["on","inline","off"];let o,a,c;return typeof n=="boolean"?o=n?"on":"off":o=gt(n,this.defaultValue.other,s),typeof i=="boolean"?a=i?"on":"off":a=gt(i,this.defaultValue.comments,s),typeof r=="boolean"?c=r?"on":"off":c=gt(r,this.defaultValue.strings,s),{other:o,comments:a,strings:c}}}class l7 extends Ke{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[m(b,92,"Line numbers are not rendered."),m(b,93,"Line numbers are rendered as absolute number."),m(b,94,"Line numbers are rendered as distance in lines to cursor position."),m(b,95,"Line numbers are rendered every 10 lines.")],default:"on",description:m(b,96,"Controls the display of line numbers.")})}validate(e){let n=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(n=4,i=e):e==="interval"?n=3:e==="relative"?n=2:e==="on"?n=1:n=0),{renderType:n,renderFn:i}}}class u7 extends Ke{constructor(){const e=[],n={type:"number",description:m(b,97,"Number of monospace characters at which this editor ruler will render.")};super(102,"rulers",e,{type:"array",items:{anyOf:[n,{type:["object"],properties:{column:n,color:{type:"string",description:m(b,98,"Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:m(b,99,"Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const n=[];for(const i of e)if(typeof i=="number")n.push({column:je.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const r=i;n.push({column:je.clampedInt(r.column,0,0,1e4),color:r.color})}return n.sort((i,r)=>i.column-r.column),n}return this.defaultValue}}class d7 extends Ke{constructor(){super(92,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function h0(t,e){if(typeof t!="string")return e;switch(t){case"hidden":return 2;case"visible":return 3;default:return 1}}class f7 extends Ke{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(103,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[m(b,100,"The vertical scrollbar will be visible only when necessary."),m(b,101,"The vertical scrollbar will always be visible."),m(b,102,"The vertical scrollbar will always be hidden.")],default:"auto",description:m(b,103,"Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[m(b,104,"The horizontal scrollbar will be visible only when necessary."),m(b,105,"The horizontal scrollbar will always be visible."),m(b,106,"The horizontal scrollbar will always be hidden.")],default:"auto",description:m(b,107,"Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:m(b,108,"The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:m(b,109,"The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:m(b,110,"Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:m(b,111,"When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e,i=je.clampedInt(n.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),r=je.clampedInt(n.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:je.clampedInt(n.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:h0(n.vertical,this.defaultValue.vertical),horizontal:h0(n.horizontal,this.defaultValue.horizontal),useShadows:Q(n.useShadows,this.defaultValue.useShadows),verticalHasArrows:Q(n.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:Q(n.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:Q(n.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:Q(n.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:je.clampedInt(n.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:r,verticalSliderSize:je.clampedInt(n.verticalSliderSize,r,0,1e3),scrollByPage:Q(n.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:Q(n.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}const ti="inUntrustedWorkspace",Cr={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class h7 extends Ke{constructor(){const e={nonBasicASCII:ti,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:ti,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",e,{[Cr.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,ti],default:e.nonBasicASCII,description:m(b,112,"Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[Cr.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:m(b,113,"Controls whether characters that just reserve space or have no width at all are highlighted.")},[Cr.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:m(b,114,"Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[Cr.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,ti],default:e.includeComments,description:m(b,115,"Controls whether characters in comments should also be subject to Unicode highlighting.")},[Cr.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,ti],default:e.includeStrings,description:m(b,116,"Controls whether characters in strings should also be subject to Unicode highlighting.")},[Cr.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:m(b,117,"Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[Cr.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:m(b,118,"Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,n){let i=!1;n.allowedCharacters&&e&&(To(e.allowedCharacters,n.allowedCharacters)||(e={...e,allowedCharacters:n.allowedCharacters},i=!0)),n.allowedLocales&&e&&(To(e.allowedLocales,n.allowedLocales)||(e={...e,allowedLocales:n.allowedLocales},i=!0));const r=super.applyUpdate(e,n);return i?new Aa(r.newValue,!0):r}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{nonBasicASCII:Ts(n.nonBasicASCII,ti,[!0,!1,ti]),invisibleCharacters:Q(n.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:Q(n.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:Ts(n.includeComments,ti,[!0,!1,ti]),includeStrings:Ts(n.includeStrings,ti,[!0,!1,ti]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,n){if(typeof e!="object"||!e)return n;const i={};for(const[r,s]of Object.entries(e))s===!0&&(i[r]=!0);return i}}class g7 extends Ke{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:m(b,119,"Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[m(b,120,"Show the inline suggestion toolbar whenever an inline suggestion is shown."),m(b,121,"Show the inline suggestion toolbar when hovering over an inline suggestion."),m(b,122,"Never show the inline suggestion toolbar.")],description:m(b,123,"Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:m(b,124,"Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:m(b,125,"Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Q(n.enabled,this.defaultValue.enabled),mode:gt(n.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:gt(n.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:Q(n.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:Q(n.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:on.string(n.fontFamily,this.defaultValue.fontFamily)}}}class p7 extends Ke{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:m(b,126,"Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[m(b,127,"Show the inline edit toolbar whenever an inline suggestion is shown."),m(b,128,"Show the inline edit toolbar when hovering over an inline suggestion."),m(b,129,"Never show the inline edit toolbar.")],description:m(b,130,"Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:m(b,131,"Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:m(b,132,"Controls whether to color the background of inline edits.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Q(n.enabled,this.defaultValue.enabled),showToolbar:gt(n.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:on.string(n.fontFamily,this.defaultValue.fontFamily),keepOnBlur:Q(n.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:Q(n.backgroundColoring,this.defaultValue.backgroundColoring)}}}class m7 extends Ke{constructor(){const e={enabled:f0.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:f0.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:m(b,133,"Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:m(b,134,"Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Q(n.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:Q(n.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class y7 extends Ke{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[m(b,135,"Enables bracket pair guides."),m(b,136,"Enables bracket pair guides only for the active bracket pair."),m(b,137,"Disables bracket pair guides.")],default:e.bracketPairs,description:m(b,138,"Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[m(b,139,"Enables horizontal guides as addition to vertical bracket pair guides."),m(b,140,"Enables horizontal guides only for the active bracket pair."),m(b,141,"Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:m(b,142,"Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:m(b,143,"Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:m(b,144,"Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[m(b,145,"Highlights the active indent guide."),m(b,146,"Highlights the active indent guide even if bracket guides are highlighted."),m(b,147,"Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:m(b,148,"Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{bracketPairs:Ts(n.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:Ts(n.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:Q(n.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:Q(n.indentation,this.defaultValue.indentation),highlightActiveIndentation:Ts(n.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function Ts(t,e,n){const i=n.indexOf(t);return i===-1?e:n[i]}class b7 extends Ke{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(118,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[m(b,149,"Insert suggestion without overwriting text right of the cursor."),m(b,150,"Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:m(b,151,"Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:m(b,152,"Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:m(b,153,"Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:m(b,154,"Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[m(b,155,"Always select a suggestion when automatically triggering IntelliSense."),m(b,156,"Never select a suggestion when automatically triggering IntelliSense."),m(b,157,"Select a suggestion only when triggering IntelliSense from a trigger character."),m(b,158,"Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:m(b,159,"Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:m(b,160,"Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:m(b,161,"Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:m(b,162,"Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:m(b,163,"Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:m(b,164,"Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:m(b,165,"This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:m(b,166,"This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:m(b,167,"When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:m(b,168,"When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:m(b,169,"When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:m(b,170,"When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:m(b,171,"When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:m(b,172,"When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:m(b,173,"When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:m(b,174,"When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:m(b,175,"When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:m(b,176,"When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:m(b,177,"When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:m(b,178,"When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:m(b,179,"When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:m(b,180,"When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:m(b,181,"When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:m(b,182,"When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:m(b,183,"When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:m(b,184,"When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:m(b,185,"When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:m(b,186,"When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:m(b,187,"When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:m(b,188,"When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:m(b,189,"When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:m(b,190,"When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:m(b,191,"When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:m(b,192,"When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:m(b,193,"When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:m(b,194,"When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:m(b,195,"When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:m(b,196,"When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{insertMode:gt(n.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:Q(n.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:Q(n.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:Q(n.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:Q(n.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:gt(n.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:Q(n.showIcons,this.defaultValue.showIcons),showStatusBar:Q(n.showStatusBar,this.defaultValue.showStatusBar),preview:Q(n.preview,this.defaultValue.preview),previewMode:gt(n.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:Q(n.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:Q(n.showMethods,this.defaultValue.showMethods),showFunctions:Q(n.showFunctions,this.defaultValue.showFunctions),showConstructors:Q(n.showConstructors,this.defaultValue.showConstructors),showDeprecated:Q(n.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:Q(n.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:Q(n.showFields,this.defaultValue.showFields),showVariables:Q(n.showVariables,this.defaultValue.showVariables),showClasses:Q(n.showClasses,this.defaultValue.showClasses),showStructs:Q(n.showStructs,this.defaultValue.showStructs),showInterfaces:Q(n.showInterfaces,this.defaultValue.showInterfaces),showModules:Q(n.showModules,this.defaultValue.showModules),showProperties:Q(n.showProperties,this.defaultValue.showProperties),showEvents:Q(n.showEvents,this.defaultValue.showEvents),showOperators:Q(n.showOperators,this.defaultValue.showOperators),showUnits:Q(n.showUnits,this.defaultValue.showUnits),showValues:Q(n.showValues,this.defaultValue.showValues),showConstants:Q(n.showConstants,this.defaultValue.showConstants),showEnums:Q(n.showEnums,this.defaultValue.showEnums),showEnumMembers:Q(n.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:Q(n.showKeywords,this.defaultValue.showKeywords),showWords:Q(n.showWords,this.defaultValue.showWords),showColors:Q(n.showColors,this.defaultValue.showColors),showFiles:Q(n.showFiles,this.defaultValue.showFiles),showReferences:Q(n.showReferences,this.defaultValue.showReferences),showFolders:Q(n.showFolders,this.defaultValue.showFolders),showTypeParameters:Q(n.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:Q(n.showSnippets,this.defaultValue.showSnippets),showUsers:Q(n.showUsers,this.defaultValue.showUsers),showIssues:Q(n.showIssues,this.defaultValue.showIssues)}}}class v7 extends Ke{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:m(b,197,"Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:m(b,198,"Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:Q(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:Q(e.selectSubwords,this.defaultValue.selectSubwords)}}}class w7 extends Ke{constructor(){const e=[];super(130,"wordSegmenterLocales",e,{anyOf:[{description:m(b,199,"Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:m(b,199,"Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if(typeof e=="string"&&(e=[e]),Array.isArray(e)){const n=[];for(const i of e)if(typeof i=="string")try{Intl.Segmenter.supportedLocalesOf(i).length>0&&n.push(i)}catch{}return n}return this.defaultValue}}class C7 extends Ke{constructor(){super(138,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[m(b,200,"No indentation. Wrapped lines begin at column 1."),m(b,201,"Wrapped lines get the same indentation as the parent."),m(b,202,"Wrapped lines get +1 indentation toward the parent."),m(b,203,"Wrapped lines get +2 indentation toward the parent.")],description:m(b,204,"Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,n,i){return n.get(2)===2?0:i}}class _7 extends aa{constructor(){super(146)}compute(e,n,i){const r=n.get(145);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:r.isWordWrapMinified,isViewportWrapping:r.isViewportWrapping,wrappingColumn:r.wrappingColumn}}}class S7 extends Ke{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:m(b,205,"Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:m(b,206,"Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[m(b,207,"Show the drop selector widget after a file is dropped into the editor."),m(b,208,"Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Q(n.enabled,this.defaultValue.enabled),showDropSelector:gt(n.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class D7 extends Ke{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:m(b,209,"Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:m(b,210,"Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[m(b,211,"Show the paste selector widget after content is pasted into the editor."),m(b,212,"Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Q(n.enabled,this.defaultValue.enabled),showPasteSelector:gt(n.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const T7="Consolas, 'Courier New', monospace",k7="Menlo, Monaco, 'Courier New', monospace",R7="'Droid Sans Mono', 'monospace', monospace",Wi={fontFamily:Si?k7:Qa?R7:T7,fontWeight:"normal",fontSize:Si?12:14,lineHeight:0,letterSpacing:0},x7=[];function F(t){return x7[t.id]=t,t}F(new Se(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:m(b,213,"Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),F(new tt(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",m(b,214,"Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:m(b,215,"Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),F(new jw),F(new je(3,"accessibilityPageSize",10,1,1073741824,{description:m(b,216,"Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),F(new on(4,"ariaLabel",m(b,217,"Editor content"))),F(new Se(5,"ariaRequired",!1,void 0)),F(new Se(8,"screenReaderAnnounceInlineSuggestion",!0,{description:m(b,218,"Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),F(new tt(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m(b,219,"Use language configurations to determine when to autoclose brackets."),m(b,220,"Autoclose brackets only when the cursor is to the left of whitespace."),""],description:m(b,221,"Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),F(new tt(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m(b,222,"Use language configurations to determine when to autoclose comments."),m(b,223,"Autoclose comments only when the cursor is to the left of whitespace."),""],description:m(b,224,"Controls whether the editor should automatically close comments after the user adds an opening comment.")})),F(new tt(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",m(b,225,"Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:m(b,226,"Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),F(new tt(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",m(b,227,"Type over closing quotes or brackets only if they were automatically inserted."),""],description:m(b,228,"Controls whether the editor should type over closing quotes or brackets.")})),F(new tt(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m(b,229,"Use language configurations to determine when to autoclose quotes."),m(b,230,"Autoclose quotes only when the cursor is to the left of whitespace."),""],description:m(b,231,"Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),F(new ya(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],qw,{enumDescriptions:[m(b,232,"The editor will not insert indentation automatically."),m(b,233,"The editor will keep the current line's indentation."),m(b,234,"The editor will keep the current line's indentation and honor language defined brackets."),m(b,235,"The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),m(b,236,"The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:m(b,237,"Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),F(new Se(13,"automaticLayout",!1)),F(new tt(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[m(b,238,"Use language configurations to determine when to automatically surround selections."),m(b,239,"Surround with quotes but not brackets."),m(b,240,"Surround with brackets but not quotes."),""],description:m(b,241,"Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),F(new m7),F(new y7),F(new Se(116,"stickyTabStops",!1,{description:m(b,242,"Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),F(new Se(17,"codeLens",!0,{description:m(b,243,"Controls whether the editor shows CodeLens.")})),F(new on(18,"codeLensFontFamily","",{description:m(b,244,"Controls the font family for CodeLens.")})),F(new je(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:m(b,245,"Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),F(new Se(20,"colorDecorators",!0,{description:m(b,246,"Controls whether the editor should render the inline color decorators and color picker.")})),F(new tt(148,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[m(b,247,"Make the color picker appear both on click and hover of the color decorator"),m(b,248,"Make the color picker appear on hover of the color decorator"),m(b,249,"Make the color picker appear on click of the color decorator")],description:m(b,250,"Controls the condition to make a color picker appear from a color decorator")})),F(new je(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:m(b,251,"Controls the max number of color decorators that can be rendered in an editor at once.")})),F(new Se(22,"columnSelection",!1,{description:m(b,252,"Enable that the selection with the mouse and keys is doing column selection.")})),F(new Hw),F(new Se(24,"contextmenu",!0)),F(new Se(25,"copyWithSyntaxHighlighting",!0,{description:m(b,253,"Controls whether syntax highlighting should be copied into the clipboard.")})),F(new ya(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],Ww,{description:m(b,254,"Control the cursor animation style.")})),F(new tt(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[m(b,255,"Smooth caret animation is disabled."),m(b,256,"Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),m(b,257,"Smooth caret animation is always enabled.")],description:m(b,258,"Controls whether the smooth caret animation should be enabled.")})),F(new ya(28,"cursorStyle",yi.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],Uw,{description:m(b,259,"Controls the cursor style.")})),F(new je(29,"cursorSurroundingLines",0,0,1073741824,{description:m(b,260,"Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),F(new tt(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[m(b,261,"`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),m(b,262,"`cursorSurroundingLines` is enforced always.")],markdownDescription:m(b,263,"Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),F(new je(31,"cursorWidth",0,0,1073741824,{markdownDescription:m(b,264,"Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),F(new Se(32,"disableLayerHinting",!1)),F(new Se(33,"disableMonospaceOptimizations",!1)),F(new Se(34,"domReadOnly",!1)),F(new Se(35,"dragAndDrop",!0,{description:m(b,265,"Controls whether the editor should allow moving selections via drag and drop.")})),F(new Bw),F(new S7),F(new Qw),F(new tt(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[m(b,266,"Use a new rendering method with svgs."),m(b,267,"Use a new rendering method with font characters."),m(b,268,"Use the stable rendering method.")],description:m(b,269,"Controls whether whitespace is rendered with a new, experimental method.")})),F(new on(39,"extraEditorClassName","")),F(new ui(40,"fastScrollSensitivity",5,t=>t<=0?5:t,{markdownDescription:m(b,270,"Scrolling speed multiplier when pressing `Alt`.")})),F(new Vw),F(new Se(42,"fixedOverflowWidgets",!1)),F(new Se(43,"folding",!0,{description:m(b,271,"Controls whether the editor has code folding enabled.")})),F(new tt(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[m(b,272,"Use a language-specific folding strategy if available, else the indentation-based one."),m(b,273,"Use the indentation-based folding strategy.")],description:m(b,274,"Controls the strategy for computing folding ranges.")})),F(new Se(45,"foldingHighlight",!0,{description:m(b,275,"Controls whether the editor should highlight folded ranges.")})),F(new Se(46,"foldingImportsByDefault",!1,{description:m(b,276,"Controls whether the editor automatically collapses import ranges.")})),F(new je(47,"foldingMaximumRegions",5e3,10,65e3,{description:m(b,277,"The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),F(new Se(48,"unfoldOnClickAfterEndOfLine",!1,{description:m(b,278,"Controls whether clicking on the empty content after a folded line will unfold the line.")})),F(new on(49,"fontFamily",Wi.fontFamily,{description:m(b,279,"Controls the font family.")})),F(new Kw),F(new x1),F(new Gw),F(new E1),F(new I1),F(new Se(55,"formatOnPaste",!1,{description:m(b,280,"Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),F(new Se(56,"formatOnType",!1,{description:m(b,281,"Controls whether the editor should automatically format the line after typing.")})),F(new Se(57,"glyphMargin",!0,{description:m(b,282,"Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),F(new Jw),F(new Se(59,"hideCursorInOverviewRuler",!1,{description:m(b,283,"Controls whether the cursor should be hidden in the overview ruler.")})),F(new Xw),F(new Se(61,"inDiffEditor",!1)),F(new ui(64,"letterSpacing",Wi.letterSpacing,t=>ui.clamp(t,-5,20),{description:m(b,284,"Controls the letter spacing in pixels.")})),F(new Yw),F(new t7),F(new n7),F(new l7),F(new je(69,"lineNumbersMinChars",5,1,300)),F(new Se(70,"linkedEditing",!1,{description:m(b,285,"Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),F(new Se(71,"links",!0,{description:m(b,286,"Controls whether the editor should detect links and make them clickable.")})),F(new tt(72,"matchBrackets","always",["always","near","never"],{description:m(b,287,"Highlight matching brackets.")})),F(new i7),F(new tt(74,"mouseStyle","text",["text","default","copy"])),F(new ui(75,"mouseWheelScrollSensitivity",1,t=>t===0?1:t,{markdownDescription:m(b,288,"A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),F(new Se(76,"mouseWheelZoom",!1,{markdownDescription:Si?m(b,289,"Zoom the font of the editor when using mouse wheel and holding `Cmd`."):m(b,290,"Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),F(new Se(77,"multiCursorMergeOverlapping",!0,{description:m(b,291,"Merge multiple cursors when they are overlapping.")})),F(new ya(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],r7,{markdownEnumDescriptions:[m(b,292,"Maps to `Control` on Windows and Linux and to `Command` on macOS."),m(b,293,"Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:m(b,294,"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),F(new tt(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[m(b,295,"Each cursor pastes a single line of the text."),m(b,296,"Each cursor pastes the full text.")],markdownDescription:m(b,297,"Controls pasting when the line count of the pasted text matches the cursor count.")})),F(new je(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:m(b,298,"Controls the max number of cursors that can be in an active editor at once.")})),F(new tt(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[m(b,299,"Does not highlight occurrences."),m(b,300,"Highlights occurrences only in the current file."),m(b,301,"Experimental: Highlights occurrences across all valid open files.")],markdownDescription:m(b,302,"Controls whether occurrences should be highlighted across open files.")})),F(new Se(82,"overviewRulerBorder",!0,{description:m(b,303,"Controls whether a border should be drawn around the overview ruler.")})),F(new je(83,"overviewRulerLanes",3,0,3)),F(new s7),F(new D7),F(new o7),F(new tt(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[m(b,304,"Focus the tree when opening peek"),m(b,305,"Focus the editor when opening peek")],description:m(b,306,"Controls whether to focus the inline editor or the tree in the peek widget.")})),F(new Se(88,"definitionLinkOpensInPeek",!1,{description:m(b,307,"Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),F(new c7),F(new je(90,"quickSuggestionsDelay",10,0,1073741824,{description:m(b,308,"Controls the delay in milliseconds after which quick suggestions will show up.")})),F(new Se(91,"readOnly",!1)),F(new d7),F(new Se(93,"renameOnType",!1,{description:m(b,309,"Controls whether the editor auto renames on type."),markdownDeprecationMessage:m(b,310,"Deprecated, use `editor.linkedEditing` instead.")})),F(new Se(94,"renderControlCharacters",!0,{description:m(b,311,"Controls whether the editor should render control characters."),restricted:!0})),F(new tt(95,"renderFinalNewline",Qa?"dimmed":"on",["off","on","dimmed"],{description:m(b,312,"Render last line number when the file ends with a newline.")})),F(new tt(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",m(b,313,"Highlights both the gutter and the current line.")],description:m(b,314,"Controls how the editor should render the current line highlight.")})),F(new Se(97,"renderLineHighlightOnlyWhenFocus",!1,{description:m(b,315,"Controls if the editor should render the current line highlight only when the editor is focused.")})),F(new tt(98,"renderValidationDecorations","editable",["editable","on","off"])),F(new tt(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",m(b,316,"Render whitespace characters except for single spaces between words."),m(b,317,"Render whitespace characters only on selected text."),m(b,318,"Render only trailing whitespace characters."),""],description:m(b,319,"Controls how the editor should render whitespace characters.")})),F(new je(100,"revealHorizontalRightPadding",15,0,1e3)),F(new Se(101,"roundedSelection",!0,{description:m(b,320,"Controls whether selections should have rounded corners.")})),F(new u7),F(new f7),F(new je(104,"scrollBeyondLastColumn",4,0,1073741824,{description:m(b,321,"Controls the number of extra characters beyond which the editor will scroll horizontally.")})),F(new Se(105,"scrollBeyondLastLine",!0,{description:m(b,322,"Controls whether the editor will scroll beyond the last line.")})),F(new Se(106,"scrollPredominantAxis",!0,{description:m(b,323,"Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),F(new Se(107,"selectionClipboard",!0,{description:m(b,324,"Controls whether the Linux primary clipboard should be supported."),included:Qa})),F(new Se(108,"selectionHighlight",!0,{description:m(b,325,"Controls whether the editor should highlight matches similar to the selection.")})),F(new Se(109,"selectOnLineNumbers",!0)),F(new tt(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[m(b,326,"Always show the folding controls."),m(b,327,"Never show the folding controls and reduce the gutter size."),m(b,328,"Only show the folding controls when the mouse is over the gutter.")],description:m(b,329,"Controls when the folding controls on the gutter are shown.")})),F(new Se(111,"showUnused",!0,{description:m(b,330,"Controls fading out of unused code.")})),F(new Se(140,"showDeprecated",!0,{description:m(b,331,"Controls strikethrough deprecated variables.")})),F(new e7),F(new tt(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[m(b,332,"Show snippet suggestions on top of other suggestions."),m(b,333,"Show snippet suggestions below other suggestions."),m(b,334,"Show snippets suggestions with other suggestions."),m(b,335,"Do not show snippet suggestions.")],description:m(b,336,"Controls whether snippets are shown with other suggestions and how they are sorted.")})),F(new v7),F(new Se(114,"smoothScrolling",!1,{description:m(b,337,"Controls whether the editor will scroll using an animation.")})),F(new je(117,"stopRenderingLineAfter",1e4,-1,1073741824)),F(new b7),F(new g7),F(new p7),F(new Se(149,"inlineCompletionsAccessibilityVerbose",!1,{description:m(b,338,"Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),F(new je(119,"suggestFontSize",0,0,1e3,{markdownDescription:m(b,339,"Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),F(new je(120,"suggestLineHeight",0,0,1e3,{markdownDescription:m(b,340,"Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),F(new Se(121,"suggestOnTriggerCharacters",!0,{description:m(b,341,"Controls whether suggestions should automatically show up when typing trigger characters.")})),F(new tt(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[m(b,342,"Always select the first suggestion."),m(b,343,"Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),m(b,344,"Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:m(b,345,"Controls how suggestions are pre-selected when showing the suggest list.")})),F(new tt(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[m(b,346,"Tab complete will insert the best matching suggestion when pressing tab."),m(b,347,"Disable tab completions."),m(b,348,"Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:m(b,349,"Enables tab completions.")})),F(new je(124,"tabIndex",0,-1,1073741824)),F(new h7),F(new tt(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[m(b,350,"Unusual line terminators are automatically removed."),m(b,351,"Unusual line terminators are ignored."),m(b,352,"Unusual line terminators prompt to be removed.")],description:m(b,353,"Remove unusual line terminators that might cause problems.")})),F(new Se(127,"useShadowDOM",!0)),F(new Se(128,"useTabStops",!0,{description:m(b,354,"Spaces and tabs are inserted and deleted in alignment with tab stops.")})),F(new tt(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[m(b,355,"Use the default line break rule."),m(b,356,"Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:m(b,357,"Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),F(new w7),F(new on(131,"wordSeparators",ly,{description:m(b,358,"Characters that will be used as word separators when doing word related navigations or operations.")})),F(new tt(132,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[m(b,359,"Lines will never wrap."),m(b,360,"Lines will wrap at the viewport width."),m(b,361,"Lines will wrap at `#editor.wordWrapColumn#`."),m(b,362,"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:m(b,363,"Controls how lines should wrap.")})),F(new on(133,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),F(new on(134,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),F(new je(135,"wordWrapColumn",80,1,1073741824,{markdownDescription:m(b,364,"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),F(new tt(136,"wordWrapOverride1","inherit",["off","on","inherit"])),F(new tt(137,"wordWrapOverride2","inherit",["off","on","inherit"])),F(new zw),F(new Se(147,"defaultColorDecorators",!1,{markdownDescription:m(b,365,"Controls whether inline color decorations should be shown using the default document color provider")})),F(new a7),F(new Se(144,"tabFocusMode",!1,{markdownDescription:m(b,366,"Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),F(new ko),F(new _7),F(new C7),F(new Zw);let I7=class{constructor(e){this.value=e,this.isTrustedTelemetryValue=!0}},P1;function E7(t){P1=t}function Jt(t){return new Proxy({},{get(e,n){if(P1==null)throw new Error("Default api is not ready yet, do not forget to import 'vscode/localExtensionHost' and wait for services initialization");return P1[t][n]}})}const P7={version:"1.89.1",tasks:Jt("tasks"),notebooks:Jt("notebooks"),scm:Jt("scm"),comments:Jt("comments"),authentication:Jt("authentication"),tests:Jt("tests"),extensions:Jt("extensions"),debug:Jt("debug"),env:Jt("env"),commands:Jt("commands"),window:Jt("window"),workspace:Jt("workspace"),languages:Jt("languages"),l10n:Jt("l10n"),interactive:Jt("interactive"),ai:Jt("ai"),chat:Jt("chat"),speech:Jt("speech"),Breakpoint:Ws,TerminalOutputAnchor:yf,ChatResultFeedbackKind:m1,ChatVariableLevel:g1,ChatCompletionItem:Iw,CallHierarchyIncomingCall:zv,CallHierarchyItem:Uv,CallHierarchyOutgoingCall:Bv,CancellationError:$2,CancellationTokenSource:X4,CandidatePortSource:_1,CodeAction:Pf,CodeActionKind:bt,CodeActionTriggerKind:Ef,CodeLens:Of,Color:fc,ColorInformation:nh,ColorPresentation:ih,ColorThemeKind:Bh,CommentMode:Lh,CommentState:Nh,CommentThreadCollapsibleState:Fh,CommentThreadState:$h,CompletionItem:zf,CompletionItemKind:dc,CompletionItemTag:Uf,CompletionList:Bf,CompletionTriggerKind:Wf,ConfigurationTarget:bh,CustomExecution:oy,DebugAdapterExecutable:_h,DebugAdapterInlineImplementation:Th,DebugAdapterNamedPipeServer:Dh,DebugAdapterServer:Sh,DebugConfigurationProviderTriggerKind:S1,DebugConsoleMode:jh,DebugVisualization:iw,DecorationRangeBehavior:eh,Diagnostic:Df,DiagnosticRelatedInformation:ac,DiagnosticSeverity:Uo,DiagnosticTag:Sf,Disposable:bf,DocumentHighlight:Tf,DocumentHighlightKind:Bo,MultiDocumentHighlight:kf,DocumentLink:th,DocumentSymbol:If,EndOfLine:wf,EnvironmentVariableMutatorType:Cf,EvaluatableExpression:kh,InlineValueText:xh,InlineValueVariableLookup:Ih,InlineValueEvaluatableExpression:Eh,InlineCompletionTriggerKind:Rh,EventEmitter:pi,ExtensionKind:zh,ExtensionMode:n1,ExternalUriOpenerPriority:l1,FileChangeType:Ph,FileDecoration:Qm,FileDecoration2:Qm,FileSystemError:Ah,FileType:of,FilePermission:af,FoldingRange:Mh,FoldingRangeKind:Oh,FunctionBreakpoint:Ch,InlineCompletionItem:Vf,InlineCompletionList:Kf,Hover:cc,IndentAction:w1,Location:zo,MarkdownString:uc,OverviewRulerLane:D1,ParameterInformation:Ff,PortAutoForwardAction:d1,Position:rt,ProcessExecution:hc,ProgressLocation:fh,QuickInputButtons:Hh,Range:Mt,RelativePattern:vh,Selection:vf,SelectionRange:Af,SemanticTokens:qh,SemanticTokensBuilder:ew,SemanticTokensEdit:tw,SemanticTokensEdits:nw,SemanticTokensLegend:Yv,ShellExecution:gc,ShellQuoting:uh,SignatureHelp:Nf,SignatureHelpTriggerKind:$f,SignatureInformation:Lf,SnippetString:oc,SourceBreakpoint:wh,StandardTokenType:r1,StatusBarAlignment:Jf,SymbolInformation:xf,SymbolKind:lc,SymbolTag:Rf,Task:dh,TaskGroup:lh,TaskPanelKind:ch,TaskRevealKind:ah,TaskScope:Go,TerminalLink:Vv,TerminalQuickFixTerminalCommand:Gv,TerminalQuickFixOpener:Kv,TerminalLocation:oh,TerminalProfile:Jv,TerminalExitReason:sh,TextDocumentSaveReason:Zf,TextEdit:rc,SnippetTextEdit:ry,TextEditorCursorStyle:yi,TextEditorLineNumbersStyle:Xf,TextEditorRevealType:Yf,TextEditorSelectionChangeKind:Vo,SyntaxTokenType:Ko,TextDocumentChangeReason:Qf,ThemeColor:yh,ThemeIcon:Ki,TreeItem:hh,TreeItemCheckboxState:Jo,TreeItemCollapsibleState:Ds,TypeHierarchyItem:bw,UIKind:T1,Uri:it,ViewColumn:Gf,WorkspaceEdit:_f,DocumentDropEdit:mh,DocumentPasteEdit:Xv,InlayHint:Hf,InlayHintLabelPart:jf,InlayHintKind:qf,RemoteAuthorityResolverError:Wv,ResolvedAuthority:jv,ManagedResolvedAuthority:Hv,SourceControlInputBoxValidationType:rh,ExtensionRuntime:i1,TimelineItem:t1,NotebookRange:yo,NotebookCellKind:Jh,NotebookCellExecutionState:Xh,NotebookCellData:rw,NotebookData:sw,NotebookRendererScript:lw,NotebookCellStatusBarAlignment:Zh,NotebookEditorRevealType:Yh,NotebookCellOutput:aw,NotebookCellOutputItem:ow,NotebookCellStatusBarItem:cw,NotebookControllerAffinity:Qh,NotebookControllerAffinity2:e1,NotebookEdit:sc,NotebookKernelSourceAction:uw,PortAttributes:fw,LinkedEditingRanges:dw,TestResultState:s1,TestRunRequest:a1,TestMessage:mc,TestMessage2:mc,TestTag:c1,TestRunProfileKind:o1,TextSearchCompleteMessageType:k1,DataTransfer:ph,DataTransferItem:gh,FileCoverage:gw,StatementCoverage:pw,BranchCoverage:mw,FunctionCoverage:yw,WorkspaceTrustState:u1,LanguageStatusSeverity:Mf,QuickPickItemKind:Wh,InputBoxValidationSeverity:Uh,TabInputText:vw,TabInputTextDiff:ww,TabInputTextMerge:Cw,TabInputCustom:_w,TabInputNotebook:Dw,TabInputNotebookDiff:Tw,TabInputWebview:Sw,TabInputTerminal:kw,TabInputInteractiveWindow:Rw,TabInputChat:xw,TelemetryTrustedValue:I7,LogLevel:ai,EditSessionIdentityMatch:R1,InteractiveSessionVoteDirection:f1,ChatCopyKind:h1,InteractiveEditorResponseFeedbackKind:p1,RelatedInformationType:y1,SpeechToTextStatus:b1,KeywordRecognitionStatus:v1},{version:A7,tasks:M7,notebooks:O7,scm:F7,comments:L7,authentication:N7,tests:$7,extensions:q7,debug:j7,env:H7,commands:W7,window:U7,workspace:z7,languages:B7,l10n:V7,interactive:K7,ai:G7,chat:J7,speech:X7,Breakpoint:Z7,TerminalOutputAnchor:Y7,ChatResultFeedbackKind:Q7,ChatVariableLevel:e9,ChatCompletionItem:t9,CallHierarchyIncomingCall:n9,CallHierarchyItem:i9,CallHierarchyOutgoingCall:r9,CancellationError:s9,CancellationTokenSource:o9,CandidatePortSource:a9,CodeAction:c9,CodeActionKind:l9,CodeActionTriggerKind:u9,CodeLens:d9,Color:f9,ColorInformation:h9,ColorPresentation:g9,ColorThemeKind:p9,CommentMode:m9,CommentState:y9,CommentThreadCollapsibleState:b9,CommentThreadState:v9,CompletionItem:w9,CompletionItemKind:C9,CompletionItemTag:_9,CompletionList:S9,CompletionTriggerKind:D9,ConfigurationTarget:T9,CustomExecution:k9,DebugAdapterExecutable:R9,DebugAdapterInlineImplementation:x9,DebugAdapterNamedPipeServer:I9,DebugAdapterServer:E9,DebugConfigurationProviderTriggerKind:P9,DebugConsoleMode:A9,DebugVisualization:M9,DecorationRangeBehavior:O9,Diagnostic:F9,DiagnosticRelatedInformation:L9,DiagnosticSeverity:N9,DiagnosticTag:$9,Disposable:q9,DocumentHighlight:j9,DocumentHighlightKind:H9,MultiDocumentHighlight:W9,DocumentLink:U9,DocumentSymbol:z9,EndOfLine:B9,EnvironmentVariableMutatorType:V9,EvaluatableExpression:K9,InlineValueText:G9,InlineValueVariableLookup:J9,InlineValueEvaluatableExpression:X9,InlineCompletionTriggerKind:Z9,EventEmitter:Y9,ExtensionKind:Q9,ExtensionMode:eC,ExternalUriOpenerPriority:tC,FileChangeType:nC,FileDecoration:iC,FileDecoration2:rC,FileSystemError:sC,FileType:oC,FilePermission:aC,FoldingRange:cC,FoldingRangeKind:lC,FunctionBreakpoint:uC,InlineCompletionItem:dC,InlineCompletionList:fC,Hover:hC,IndentAction:gC,Location:pC,MarkdownString:mC,OverviewRulerLane:yC,ParameterInformation:bC,PortAutoForwardAction:vC,Position:wC,ProcessExecution:CC,ProgressLocation:_C,QuickInputButtons:SC,Range:DC,RelativePattern:TC,Selection:kC,SelectionRange:RC,SemanticTokens:xC,SemanticTokensBuilder:IC,SemanticTokensEdit:EC,SemanticTokensEdits:PC,SemanticTokensLegend:AC,ShellExecution:MC,ShellQuoting:OC,SignatureHelp:FC,SignatureHelpTriggerKind:LC,SignatureInformation:NC,SnippetString:$C,SourceBreakpoint:qC,StandardTokenType:jC,StatusBarAlignment:HC,SymbolInformation:WC,SymbolKind:UC,SymbolTag:zC,Task:BC,TaskGroup:VC,TaskPanelKind:KC,TaskRevealKind:GC,TaskScope:JC,TerminalLink:XC,TerminalQuickFixTerminalCommand:ZC,TerminalQuickFixOpener:YC,TerminalLocation:QC,TerminalProfile:e8,TerminalExitReason:t8,TextDocumentSaveReason:n8,TextEdit:i8,SnippetTextEdit:r8,TextEditorCursorStyle:s8,TextEditorLineNumbersStyle:o8,TextEditorRevealType:a8,TextEditorSelectionChangeKind:c8,SyntaxTokenType:l8,TextDocumentChangeReason:u8,ThemeColor:d8,ThemeIcon:f8,TreeItem:h8,TreeItemCheckboxState:g8,TreeItemCollapsibleState:p8,TypeHierarchyItem:m8,UIKind:y8,Uri:b8,ViewColumn:v8,WorkspaceEdit:w8,DocumentDropEdit:C8,DocumentPasteEdit:_8,InlayHint:S8,InlayHintLabelPart:D8,InlayHintKind:T8,RemoteAuthorityResolverError:k8,ResolvedAuthority:R8,ManagedResolvedAuthority:x8,SourceControlInputBoxValidationType:I8,ExtensionRuntime:E8,TimelineItem:P8,NotebookRange:A8,NotebookCellKind:M8,NotebookCellExecutionState:O8,NotebookCellData:F8,NotebookData:L8,NotebookRendererScript:N8,NotebookCellStatusBarAlignment:$8,NotebookEditorRevealType:q8,NotebookCellOutput:j8,NotebookCellOutputItem:H8,NotebookCellStatusBarItem:W8,NotebookControllerAffinity:U8,NotebookControllerAffinity2:z8,NotebookEdit:B8,NotebookKernelSourceAction:V8,PortAttributes:K8,LinkedEditingRanges:G8,TestResultState:J8,TestRunRequest:X8,TestMessage:Z8,TestMessage2:Y8,TestTag:Q8,TestRunProfileKind:e6,TextSearchCompleteMessageType:t6,DataTransfer:n6,DataTransferItem:i6,FileCoverage:r6,StatementCoverage:s6,BranchCoverage:o6,FunctionCoverage:a6,WorkspaceTrustState:c6,LanguageStatusSeverity:l6,QuickPickItemKind:u6,InputBoxValidationSeverity:d6,TabInputText:f6,TabInputTextDiff:h6,TabInputTextMerge:g6,TabInputCustom:p6,TabInputNotebook:m6,TabInputNotebookDiff:y6,TabInputWebview:b6,TabInputTerminal:v6,TabInputInteractiveWindow:w6,TabInputChat:C6,TelemetryTrustedValue:_6,LogLevel:S6,EditSessionIdentityMatch:D6,InteractiveSessionVoteDirection:T6,ChatCopyKind:k6,InteractiveEditorResponseFeedbackKind:R6,RelatedInformationType:x6,SpeechToTextStatus:I6,KeywordRecognitionStatus:E6}=P7,P6=Object.freeze(Object.defineProperty({__proto__:null,BranchCoverage:o6,Breakpoint:Z7,CallHierarchyIncomingCall:n9,CallHierarchyItem:i9,CallHierarchyOutgoingCall:r9,CancellationError:s9,CancellationTokenSource:o9,CandidatePortSource:a9,ChatCompletionItem:t9,ChatCopyKind:k6,ChatResultFeedbackKind:Q7,ChatVariableLevel:e9,CodeAction:c9,CodeActionKind:l9,CodeActionTriggerKind:u9,CodeLens:d9,Color:f9,ColorInformation:h9,ColorPresentation:g9,ColorThemeKind:p9,CommentMode:m9,CommentState:y9,CommentThreadCollapsibleState:b9,CommentThreadState:v9,CompletionItem:w9,CompletionItemKind:C9,CompletionItemTag:_9,CompletionList:S9,CompletionTriggerKind:D9,ConfigurationTarget:T9,CustomExecution:k9,DataTransfer:n6,DataTransferItem:i6,DebugAdapterExecutable:R9,DebugAdapterInlineImplementation:x9,DebugAdapterNamedPipeServer:I9,DebugAdapterServer:E9,DebugConfigurationProviderTriggerKind:P9,DebugConsoleMode:A9,DebugVisualization:M9,DecorationRangeBehavior:O9,Diagnostic:F9,DiagnosticRelatedInformation:L9,DiagnosticSeverity:N9,DiagnosticTag:$9,Disposable:q9,DocumentDropEdit:C8,DocumentHighlight:j9,DocumentHighlightKind:H9,DocumentLink:U9,DocumentPasteEdit:_8,DocumentSymbol:z9,EditSessionIdentityMatch:D6,EndOfLine:B9,EnvironmentVariableMutatorType:V9,EvaluatableExpression:K9,EventEmitter:Y9,ExtensionKind:Q9,ExtensionMode:eC,ExtensionRuntime:E8,ExternalUriOpenerPriority:tC,FileChangeType:nC,FileCoverage:r6,FileDecoration:iC,FileDecoration2:rC,FilePermission:aC,FileSystemError:sC,FileType:oC,FoldingRange:cC,FoldingRangeKind:lC,FunctionBreakpoint:uC,FunctionCoverage:a6,Hover:hC,IndentAction:gC,InlayHint:S8,InlayHintKind:T8,InlayHintLabelPart:D8,InlineCompletionItem:dC,InlineCompletionList:fC,InlineCompletionTriggerKind:Z9,InlineValueEvaluatableExpression:X9,InlineValueText:G9,InlineValueVariableLookup:J9,InputBoxValidationSeverity:d6,InteractiveEditorResponseFeedbackKind:R6,InteractiveSessionVoteDirection:T6,KeywordRecognitionStatus:E6,LanguageStatusSeverity:l6,LinkedEditingRanges:G8,Location:pC,LogLevel:S6,ManagedResolvedAuthority:x8,MarkdownString:mC,MultiDocumentHighlight:W9,NotebookCellData:F8,NotebookCellExecutionState:O8,NotebookCellKind:M8,NotebookCellOutput:j8,NotebookCellOutputItem:H8,NotebookCellStatusBarAlignment:$8,NotebookCellStatusBarItem:W8,NotebookControllerAffinity:U8,NotebookControllerAffinity2:z8,NotebookData:L8,NotebookEdit:B8,NotebookEditorRevealType:q8,NotebookKernelSourceAction:V8,NotebookRange:A8,NotebookRendererScript:N8,OverviewRulerLane:yC,ParameterInformation:bC,PortAttributes:K8,PortAutoForwardAction:vC,Position:wC,ProcessExecution:CC,ProgressLocation:_C,QuickInputButtons:SC,QuickPickItemKind:u6,Range:DC,RelatedInformationType:x6,RelativePattern:TC,RemoteAuthorityResolverError:k8,ResolvedAuthority:R8,Selection:kC,SelectionRange:RC,SemanticTokens:xC,SemanticTokensBuilder:IC,SemanticTokensEdit:EC,SemanticTokensEdits:PC,SemanticTokensLegend:AC,ShellExecution:MC,ShellQuoting:OC,SignatureHelp:FC,SignatureHelpTriggerKind:LC,SignatureInformation:NC,SnippetString:$C,SnippetTextEdit:r8,SourceBreakpoint:qC,SourceControlInputBoxValidationType:I8,SpeechToTextStatus:I6,StandardTokenType:jC,StatementCoverage:s6,StatusBarAlignment:HC,SymbolInformation:WC,SymbolKind:UC,SymbolTag:zC,SyntaxTokenType:l8,TabInputChat:C6,TabInputCustom:p6,TabInputInteractiveWindow:w6,TabInputNotebook:m6,TabInputNotebookDiff:y6,TabInputTerminal:v6,TabInputText:f6,TabInputTextDiff:h6,TabInputTextMerge:g6,TabInputWebview:b6,Task:BC,TaskGroup:VC,TaskPanelKind:KC,TaskRevealKind:GC,TaskScope:JC,TelemetryTrustedValue:_6,TerminalExitReason:t8,TerminalLink:XC,TerminalLocation:QC,TerminalOutputAnchor:Y7,TerminalProfile:e8,TerminalQuickFixOpener:YC,TerminalQuickFixTerminalCommand:ZC,TestMessage:Z8,TestMessage2:Y8,TestResultState:J8,TestRunProfileKind:e6,TestRunRequest:X8,TestTag:Q8,TextDocumentChangeReason:u8,TextDocumentSaveReason:n8,TextEdit:i8,TextEditorCursorStyle:s8,TextEditorLineNumbersStyle:o8,TextEditorRevealType:a8,TextEditorSelectionChangeKind:c8,TextSearchCompleteMessageType:t6,ThemeColor:d8,ThemeIcon:f8,TimelineItem:P8,TreeItem:h8,TreeItemCheckboxState:g8,TreeItemCollapsibleState:p8,TypeHierarchyItem:m8,UIKind:y8,Uri:b8,ViewColumn:v8,WorkspaceEdit:w8,WorkspaceTrustState:c6,ai:G7,authentication:N7,chat:J7,commands:W7,comments:L7,debug:j7,env:H7,extensions:q7,interactive:K7,l10n:V7,languages:B7,notebooks:O7,scm:F7,setDefaultApi:E7,speech:X7,tasks:M7,tests:$7,version:A7,window:U7,workspace:z7},Symbol.toStringTag,{value:"Module"})),Re=v2(P6);var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.asPromise=Ze.thenable=Ze.typedArray=Ze.stringArray=Ze.array=Ze.func=Ze.error=Ze.number=Ze.string=Ze.boolean=void 0;function A6(t){return t===!0||t===!1}Ze.boolean=A6;function uy(t){return typeof t=="string"||t instanceof String}Ze.string=uy;function M6(t){return typeof t=="number"||t instanceof Number}Ze.number=M6;function O6(t){return t instanceof Error}Ze.error=O6;function dy(t){return typeof t=="function"}Ze.func=dy;function fy(t){return Array.isArray(t)}Ze.array=fy;function F6(t){return fy(t)&&t.every(e=>uy(e))}Ze.stringArray=F6;function L6(t,e){return Array.isArray(t)&&t.every(e)}Ze.typedArray=L6;function hy(t){return t&&dy(t.then)}Ze.thenable=hy;function N6(t){return t instanceof Promise?t:hy(t)?new Promise((e,n)=>{t.then(i=>e(i),i=>n(i))}):Promise.resolve(t)}Ze.asPromise=N6;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});Be.generateUuid=Be.parse=Be.isUUID=Be.v4=Be.empty=void 0;class cg{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}}class $e extends cg{static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return $e._oneOf($e._chars)}constructor(){super([$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),"-",$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),"-","4",$e._randomHex(),$e._randomHex(),$e._randomHex(),"-",$e._oneOf($e._timeHighBits),$e._randomHex(),$e._randomHex(),$e._randomHex(),"-",$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex()].join(""))}}$e._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];$e._timeHighBits=["8","9","a","b"];Be.empty=new cg("00000000-0000-0000-0000-000000000000");function gy(){return new $e}Be.v4=gy;const $6=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function py(t){return $6.test(t)}Be.isUUID=py;function q6(t){if(!py(t))throw new Error("invalid uuid");return new cg(t)}Be.parse=q6;function j6(){return gy().asHex()}Be.generateUuid=j6;Object.defineProperty(De,"__esModule",{value:!0});De.WorkspaceFeature=De.TextDocumentLanguageFeature=De.TextDocumentEventFeature=De.DynamicDocumentFeature=De.DynamicFeature=De.StaticFeature=De.ensure=De.LSPCancellationError=void 0;const Br=Re,Gl=ye,Sn=Ze,g0=Be;class H6 extends Br.CancellationError{constructor(e){super(),this.data=e}}De.LSPCancellationError=H6;function W6(t,e){return t[e]===void 0&&(t[e]={}),t[e]}De.ensure=W6;var p0;(function(t){function e(n){const i=n;return i!=null&&Sn.func(i.fillClientCapabilities)&&Sn.func(i.initialize)&&Sn.func(i.getState)&&Sn.func(i.clear)&&(i.fillInitializeParams===void 0||Sn.func(i.fillInitializeParams))}t.is=e})(p0||(De.StaticFeature=p0={}));var m0;(function(t){function e(n){const i=n;return i!=null&&Sn.func(i.fillClientCapabilities)&&Sn.func(i.initialize)&&Sn.func(i.getState)&&Sn.func(i.clear)&&(i.fillInitializeParams===void 0||Sn.func(i.fillInitializeParams))&&Sn.func(i.register)&&Sn.func(i.unregister)&&i.registrationType!==void 0}t.is=e})(m0||(De.DynamicFeature=m0={}));class lg{constructor(e){this._client=e}getState(){const e=this.getDocumentSelectors();let n=0;for(const r of e){n++;for(const s of Br.workspace.textDocuments)if(Br.languages.match(r,s)>0)return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!0}}const i=n>0;return{kind:"document",id:this.registrationType.method,registrations:i,matches:!1}}}De.DynamicDocumentFeature=lg;class U6 extends lg{static textDocumentFilter(e,n){for(const i of e)if(Br.languages.match(i,n)>0)return!0;return!1}constructor(e,n,i,r,s,o,a){super(e),this._event=n,this._type=i,this._middleware=r,this._createParams=s,this._textDocument=o,this._selectorFilter=a,this._selectors=new Map,this._onNotificationSent=new Br.EventEmitter}getStateInfo(){return[this._selectors.values(),!1]}getDocumentSelectors(){return this._selectors.values()}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=this._event(n=>{this.callback(n).catch(i=>{this._client.error(`Sending document notification ${this._type.method} failed.`,i)})})),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)))}async callback(e){const n=async i=>{const r=this._createParams(i);await this._client.sendNotification(this._type,r),this.notificationSent(this.getTextDocument(i),this._type,r)};if(this.matches(e)){const i=this._middleware();return i?i(e,r=>n(r)):n(e)}}matches(e){return this._client.hasDedicatedTextSynchronizationFeature(this._textDocument(e))?!1:!this._selectorFilter||this._selectorFilter(this._selectors.values(),e)}get onNotificationSent(){return this._onNotificationSent.event}notificationSent(e,n,i){this._onNotificationSent.fire({textDocument:e,type:n,params:i})}unregister(e){this._selectors.delete(e),this._selectors.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._selectors.clear(),this._onNotificationSent.dispose(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getProvider(e){for(const n of this._selectors.values())if(Br.languages.match(n,e)>0)return{send:i=>this.callback(i)}}}De.TextDocumentEventFeature=U6;class z6 extends lg{constructor(e,n){super(e),this._registrationType=n,this._registrations=new Map}*getDocumentSelectors(){for(const e of this._registrations.values()){const n=e.data.registerOptions.documentSelector;n!==null&&(yield this._client.protocol2CodeConverter.asDocumentSelector(n))}}get registrationType(){return this._registrationType}register(e){if(!e.registerOptions.documentSelector)return;let n=this.registerLanguageProvider(e.registerOptions,e.id);this._registrations.set(e.id,{disposable:n[0],data:e,provider:n[1]})}unregister(e){let n=this._registrations.get(e);n!==void 0&&n.disposable.dispose()}clear(){this._registrations.forEach(e=>{e.disposable.dispose()}),this._registrations.clear()}getRegistration(e,n){if(n){if(Gl.TextDocumentRegistrationOptions.is(n)){const i=Gl.StaticRegistrationOptions.hasId(n)?n.id:g0.generateUuid(),r=n.documentSelector??e;if(r)return[i,Object.assign({},n,{documentSelector:r})]}else if(Sn.boolean(n)&&n===!0||Gl.WorkDoneProgressOptions.is(n)){if(!e)return[void 0,void 0];const i=Sn.boolean(n)&&n===!0?{documentSelector:e}:Object.assign({},n,{documentSelector:e});return[g0.generateUuid(),i]}}else return[void 0,void 0];return[void 0,void 0]}getRegistrationOptions(e,n){if(!(!e||!n))return Sn.boolean(n)&&n===!0?{documentSelector:e}:Object.assign({},n,{documentSelector:e})}getProvider(e){for(const n of this._registrations.values()){let i=n.data.registerOptions.documentSelector;if(i!==null&&Br.languages.match(this._client.protocol2CodeConverter.asDocumentSelector(i),e)>0)return n.provider}}getAllProviders(){const e=[];for(const n of this._registrations.values())e.push(n.provider);return e}}De.TextDocumentLanguageFeature=z6;class B6{constructor(e,n){this._client=e,this._registrationType=n,this._registrations=new Map}getState(){const e=this._registrations.size>0;return{kind:"workspace",id:this._registrationType.method,registrations:e}}get registrationType(){return this._registrationType}register(e){const n=this.registerLanguageProvider(e.registerOptions);this._registrations.set(e.id,{disposable:n[0],provider:n[1]})}unregister(e){let n=this._registrations.get(e);n!==void 0&&n.disposable.dispose()}clear(){this._registrations.forEach(e=>{e.disposable.dispose()}),this._registrations.clear()}getProviders(){const e=[];for(const n of this._registrations.values())e.push(n.provider);return e}}De.WorkspaceFeature=B6;var Ui={};const V6=typeof process=="object"&&process&&process.platform==="win32";var K6=V6?{sep:"\\"}:{sep:"/"},G6=my;function my(t,e,n){t instanceof RegExp&&(t=y0(t,n)),e instanceof RegExp&&(e=y0(e,n));var i=yy(t,e,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+t.length,i[1]),post:n.slice(i[1]+e.length)}}function y0(t,e){var n=e.match(t);return n?n[0]:null}my.range=yy;function yy(t,e,n){var i,r,s,o,a,c=n.indexOf(t),l=n.indexOf(e,c+1),f=c;if(c>=0&&l>0){if(t===e)return[c,l];for(i=[],s=n.length;f>=0&&!a;)f==c?(i.push(f),c=n.indexOf(t,f+1)):i.length==1?a=[i.pop(),l]:(r=i.pop(),r<s&&(s=r,o=l),l=n.indexOf(e,f+1)),f=c<l&&c>=0?c:l;i.length&&(a=[s,o])}return a}var by=G6,J6=Y6,vy="\0SLASH"+Math.random()+"\0",wy="\0OPEN"+Math.random()+"\0",ug="\0CLOSE"+Math.random()+"\0",Cy="\0COMMA"+Math.random()+"\0",_y="\0PERIOD"+Math.random()+"\0";function Jl(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function X6(t){return t.split("\\\\").join(vy).split("\\{").join(wy).split("\\}").join(ug).split("\\,").join(Cy).split("\\.").join(_y)}function Z6(t){return t.split(vy).join("\\").split(wy).join("{").split(ug).join("}").split(Cy).join(",").split(_y).join(".")}function Sy(t){if(!t)return[""];var e=[],n=by("{","}",t);if(!n)return t.split(",");var i=n.pre,r=n.body,s=n.post,o=i.split(",");o[o.length-1]+="{"+r+"}";var a=Sy(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function Y6(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),bo(X6(t),!0).map(Z6)):[]}function Q6(t){return"{"+t+"}"}function e_(t){return/^-?0\d/.test(t)}function t_(t,e){return t<=e}function n_(t,e){return t>=e}function bo(t,e){var n=[],i=by("{","}",t);if(!i)return[t];var r=i.pre,s=i.post.length?bo(i.post,!1):[""];if(/\$$/.test(i.pre))for(var o=0;o<s.length;o++){var a=r+"{"+i.body+"}"+s[o];n.push(a)}else{var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),f=c||l,g=i.body.indexOf(",")>=0;if(!f&&!g)return i.post.match(/,.*\}/)?(t=i.pre+"{"+i.body+ug+i.post,bo(t)):[t];var p;if(f)p=i.body.split(/\.\./);else if(p=Sy(i.body),p.length===1&&(p=bo(p[0],!1).map(Q6),p.length===1))return s.map(function(Le){return i.pre+p[0]+Le});var _;if(f){var C=Jl(p[0]),k=Jl(p[1]),A=Math.max(p[0].length,p[1].length),H=p.length==3?Math.abs(Jl(p[2])):1,K=t_,j=k<C;j&&(H*=-1,K=n_);var B=p.some(e_);_=[];for(var z=C;K(z,k);z+=H){var ne;if(l)ne=String.fromCharCode(z),ne==="\\"&&(ne="");else if(ne=String(z),B){var G=A-ne.length;if(G>0){var Z=new Array(G+1).join("0");z<0?ne="-"+Z+ne.slice(1):ne=Z+ne}}_.push(ne)}}else{_=[];for(var ie=0;ie<p.length;ie++)_.push.apply(_,bo(p[ie],!1))}for(var ie=0;ie<_.length;ie++)for(var o=0;o<s.length;o++){var a=r+_[ie]+s[o];(!e||f||a)&&n.push(a)}}return n}const Un=Vc=(t,e,n={})=>(yc(e),!n.nocomment&&e.charAt(0)==="#"?!1:new Kc(e,n).match(t));var Vc=Un;const A1=K6;Un.sep=A1.sep;const ri=Symbol("globstar **");Un.GLOBSTAR=ri;const i_=J6,b0={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},M1="[^/]",Xl=M1+"*?",r_="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",s_="(?:(?!(?:\\/|^)\\.).)*?",Dy=t=>t.split("").reduce((e,n)=>(e[n]=!0,e),{}),v0=Dy("().*{}+?[]^$\\!"),o_=Dy("[.("),w0=/\/+/;Un.filter=(t,e={})=>(n,i,r)=>Un(n,t,e);const tr=(t,e={})=>{const n={};return Object.keys(t).forEach(i=>n[i]=t[i]),Object.keys(e).forEach(i=>n[i]=e[i]),n};Un.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Un;const e=Un,n=(i,r,s)=>e(i,r,tr(t,s));return n.Minimatch=class extends e.Minimatch{constructor(r,s){super(r,tr(t,s))}},n.Minimatch.defaults=i=>e.defaults(tr(t,i)).Minimatch,n.filter=(i,r)=>e.filter(i,tr(t,r)),n.defaults=i=>e.defaults(tr(t,i)),n.makeRe=(i,r)=>e.makeRe(i,tr(t,r)),n.braceExpand=(i,r)=>e.braceExpand(i,tr(t,r)),n.match=(i,r,s)=>e.match(i,r,tr(t,s)),n};Un.braceExpand=(t,e)=>Ty(t,e);const Ty=(t,e={})=>(yc(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:i_(t)),a_=1024*64,yc=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>a_)throw new TypeError("pattern is too long")},Zl=Symbol("subparse");Un.makeRe=(t,e)=>new Kc(t,e||{}).makeRe();Un.match=(t,e,n={})=>{const i=new Kc(e,n);return t=t.filter(r=>i.match(r)),i.options.nonull&&!t.length&&t.push(e),t};const c_=t=>t.replace(/\\(.)/g,"$1"),l_=t=>t.replace(/\\([^-\]])/g,"$1"),u_=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),d_=t=>t.replace(/[[\]\\]/g,"\\$&");class Kc{constructor(e,n){yc(e),n||(n={}),this.options=n,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.make()}debug(){}make(){const e=this.pattern,n=this.options;if(!n.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let i=this.globSet=this.braceExpand();n.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,i),i=this.globParts=i.map(r=>r.split(w0)),this.debug(this.pattern,i),i=i.map((r,s,o)=>r.map(this.parse,this)),this.debug(this.pattern,i),i=i.filter(r=>r.indexOf(!1)===-1),this.debug(this.pattern,i),this.set=i}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let n=!1,i=0;for(let r=0;r<e.length&&e.charAt(r)==="!";r++)n=!n,i++;i&&(this.pattern=e.slice(i)),this.negate=n}matchOne(e,n,i){var r=this.options;this.debug("matchOne",{this:this,file:e,pattern:n}),this.debug("matchOne",e.length,n.length);for(var s=0,o=0,a=e.length,c=n.length;s<a&&o<c;s++,o++){this.debug("matchOne loop");var l=n[o],f=e[s];if(this.debug(n,l,f),l===!1)return!1;if(l===ri){this.debug("GLOBSTAR",[n,l,f]);var g=s,p=o+1;if(p===c){for(this.debug("** at the end");s<a;s++)if(e[s]==="."||e[s]===".."||!r.dot&&e[s].charAt(0)===".")return!1;return!0}for(;g<a;){var _=e[g];if(this.debug(`
|
|
115
|
+
globstar while`,e,g,n,p,_),this.matchOne(e.slice(g),n.slice(p),i))return this.debug("globstar found match!",g,a,_),!0;if(_==="."||_===".."||!r.dot&&_.charAt(0)==="."){this.debug("dot detected!",e,g,n,p);break}this.debug("globstar swallow a segment, and continue"),g++}return!!(i&&(this.debug(`
|
|
116
|
+
>>> no match, partial?`,e,g,n,p),g===a))}var C;if(typeof l=="string"?(C=f===l,this.debug("string match",l,f,C)):(C=f.match(l),this.debug("pattern match",l,f,C)),!C)return!1}if(s===a&&o===c)return!0;if(s===a)return i;if(o===c)return s===a-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return Ty(this.pattern,this.options)}parse(e,n){yc(e);const i=this.options;if(e==="**")if(i.noglobstar)e="*";else return ri;if(e==="")return"";let r="",s=!1,o=!1;const a=[],c=[];let l,f=!1,g=-1,p=-1,_,C,k,A=e.charAt(0)===".",H=i.dot||A;const K=()=>A?"":H?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",j=G=>G.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",B=()=>{if(l){switch(l){case"*":r+=Xl,s=!0;break;case"?":r+=M1,s=!0;break;default:r+="\\"+l;break}this.debug("clearStateChar %j %j",l,r),l=!1}};for(let G=0,Z;G<e.length&&(Z=e.charAt(G));G++){if(this.debug("%s %s %s %j",e,G,r,Z),o){if(Z==="/")return!1;v0[Z]&&(r+="\\"),r+=Z,o=!1;continue}switch(Z){case"/":return!1;case"\\":if(f&&e.charAt(G+1)==="-"){r+=Z;continue}B(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,G,r,Z),f){this.debug(" in class"),Z==="!"&&G===p+1&&(Z="^"),r+=Z;continue}this.debug("call clearStateChar %j",l),B(),l=Z,i.noext&&B();continue;case"(":{if(f){r+="(";continue}if(!l){r+="\\(";continue}const ie={type:l,start:G-1,reStart:r.length,open:b0[l].open,close:b0[l].close};this.debug(this.pattern," ",ie),a.push(ie),r+=ie.open,ie.start===0&&ie.type!=="!"&&(A=!0,r+=j(e.slice(G+1))),this.debug("plType %j %j",l,r),l=!1;continue}case")":{const ie=a[a.length-1];if(f||!ie){r+="\\)";continue}a.pop(),B(),s=!0,C=ie,r+=C.close,C.type==="!"&&c.push(Object.assign(C,{reEnd:r.length}));continue}case"|":{const ie=a[a.length-1];if(f||!ie){r+="\\|";continue}B(),r+="|",ie.start===0&&ie.type!=="!"&&(A=!0,r+=j(e.slice(G+1)));continue}case"[":if(B(),f){r+="\\"+Z;continue}f=!0,p=G,g=r.length,r+=Z;continue;case"]":if(G===p+1||!f){r+="\\"+Z;continue}_=e.substring(p+1,G);try{RegExp("["+d_(l_(_))+"]"),r+=Z}catch{r=r.substring(0,g)+"(?:$.)"}s=!0,f=!1;continue;default:B(),v0[Z]&&!(Z==="^"&&f)&&(r+="\\"),r+=Z;break}}for(f&&(_=e.slice(p+1),k=this.parse(_,Zl),r=r.substring(0,g)+"\\["+k[0],s=s||k[1]),C=a.pop();C;C=a.pop()){let G;G=r.slice(C.reStart+C.open.length),this.debug("setting tail",r,C),G=G.replace(/((?:\\{2}){0,64})(\\?)\|/g,(ie,Le,$)=>($||($="\\"),Le+Le+$+"|")),this.debug(`tail=%j
|
|
117
|
+
%s`,G,G,C,r);const Z=C.type==="*"?Xl:C.type==="?"?M1:"\\"+C.type;s=!0,r=r.slice(0,C.reStart)+Z+"\\("+G}B(),o&&(r+="\\\\");const z=o_[r.charAt(0)];for(let G=c.length-1;G>-1;G--){const Z=c[G],ie=r.slice(0,Z.reStart),Le=r.slice(Z.reStart,Z.reEnd-8);let $=r.slice(Z.reEnd);const E=r.slice(Z.reEnd-8,Z.reEnd)+$,v=ie.split(")").length,R=ie.split("(").length-v;let P=$;for(let V=0;V<R;V++)P=P.replace(/\)[+*?]?/,"");$=P;const I=$===""&&n!==Zl?"(?:$|\\/)":"";r=ie+Le+$+I+E}if(r!==""&&s&&(r="(?=.)"+r),z&&(r=K()+r),n===Zl)return[r,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return c_(e);const ne=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+r+"$",ne),{_glob:e,_src:r})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const n=this.options,i=n.noglobstar?Xl:n.dot?r_:s_,r=n.nocase?"i":"";let s=e.map(o=>(o=o.map(a=>typeof a=="string"?u_(a):a===ri?ri:a._src).reduce((a,c)=>(a[a.length-1]===ri&&c===ri||a.push(c),a),[]),o.forEach((a,c)=>{a!==ri||o[c-1]===ri||(c===0?o.length>1?o[c+1]="(?:\\/|"+i+"\\/)?"+o[c+1]:o[c]=i:c===o.length-1?o[c-1]+="(?:\\/|"+i+")?":(o[c-1]+="(?:\\/|\\/"+i+"\\/)"+o[c+1],o[c+1]=ri))}),o.filter(a=>a!==ri).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,r)}catch{this.regexp=!1}return this.regexp}match(e,n=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&n)return!0;const i=this.options;A1.sep!=="/"&&(e=e.split(A1.sep).join("/")),e=e.split(w0),this.debug(this.pattern,"split",e);const r=this.set;this.debug(this.pattern,"set",r);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<r.length;o++){const a=r[o];let c=e;if(i.matchBase&&a.length===1&&(c=[s]),this.matchOne(c,a,n))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Un.defaults(e).Minimatch}}Un.Minimatch=Kc;Object.defineProperty(Ui,"__esModule",{value:!0});Ui.DiagnosticFeature=Ui.DiagnosticPullMode=Ui.vsdiag=void 0;const f_=Vc,Ue=Re,Et=ye,h_=Be,O1=De;function ba(t,e){return t[e]===void 0&&(t[e]={}),t[e]}var Vn;(function(t){(function(e){e.full="full",e.unChanged="unChanged"})(t.DocumentDiagnosticReportKind||(t.DocumentDiagnosticReportKind={}))})(Vn||(Ui.vsdiag=Vn={}));var bc;(function(t){t.onType="onType",t.onSave="onSave"})(bc||(Ui.DiagnosticPullMode=bc={}));var un;(function(t){t.active="open",t.reschedule="reschedule",t.outDated="drop"})(un||(un={}));class Ro{constructor(){this.open=new Set,this._onOpen=new Ue.EventEmitter,this._onClose=new Ue.EventEmitter,Ro.fillTabResources(this.open);const e=n=>{if(n.closed.length===0&&n.opened.length===0)return;const i=this.open,r=new Set;Ro.fillTabResources(r);const s=new Set,o=new Set(r);for(const a of i.values())r.has(a)?o.delete(a):s.add(a);if(this.open=r,s.size>0){const a=new Set;for(const c of s)a.add(Ue.Uri.parse(c));this._onClose.fire(a)}if(o.size>0){const a=new Set;for(const c of o)a.add(Ue.Uri.parse(c));this._onOpen.fire(a)}};Ue.window.tabGroups.onDidChangeTabs!==void 0?this.disposable=Ue.window.tabGroups.onDidChangeTabs(e):this.disposable={dispose:()=>{}}}get onClose(){return this._onClose.event}get onOpen(){return this._onOpen.event}dispose(){this.disposable.dispose()}isActive(e){var n,i;return e instanceof Ue.Uri?((n=Ue.window.activeTextEditor)==null?void 0:n.document.uri)===e:((i=Ue.window.activeTextEditor)==null?void 0:i.document)===e}isVisible(e){const n=e instanceof Ue.Uri?e:e.uri;return this.open.has(n.toString())}getTabResources(){const e=new Set;return Ro.fillTabResources(new Set,e),e}static fillTabResources(e,n){const i=e??new Set;for(const r of Ue.window.tabGroups.all)for(const s of r.tabs){const o=s.input;let a;o instanceof Ue.TabInputText?a=o.uri:o instanceof Ue.TabInputTextDiff?a=o.modified:o instanceof Ue.TabInputCustom&&(a=o.uri),a!==void 0&&!i.has(a.toString())&&(i.add(a.toString()),n!==void 0&&n.add(a))}}}var zt;(function(t){t[t.document=1]="document",t[t.workspace=2]="workspace"})(zt||(zt={}));var $i;(function(t){function e(n){return n instanceof Ue.Uri?n.toString():n.uri.toString()}t.asKey=e})($i||($i={}));class g_{constructor(){this.documentPullStates=new Map,this.workspacePullStates=new Map}track(e,n,i){const r=e===zt.document?this.documentPullStates:this.workspacePullStates,[s,o,a]=n instanceof Ue.Uri?[n.toString(),n,i]:[n.uri.toString(),n.uri,n.version];let c=r.get(s);return c===void 0&&(c={document:o,pulledVersion:a,resultId:void 0},r.set(s,c)),c}update(e,n,i,r){const s=e===zt.document?this.documentPullStates:this.workspacePullStates,[o,a,c,l]=n instanceof Ue.Uri?[n.toString(),n,i,r]:[n.uri.toString(),n.uri,n.version,i];let f=s.get(o);f===void 0?(f={document:a,pulledVersion:c,resultId:l},s.set(o,f)):(f.pulledVersion=c,f.resultId=l)}unTrack(e,n){const i=$i.asKey(n);(e===zt.document?this.documentPullStates:this.workspacePullStates).delete(i)}tracks(e,n){const i=$i.asKey(n);return(e===zt.document?this.documentPullStates:this.workspacePullStates).has(i)}getResultId(e,n){var s;const i=$i.asKey(n);return(s=(e===zt.document?this.documentPullStates:this.workspacePullStates).get(i))==null?void 0:s.resultId}getAllResultIds(){const e=[];for(let[n,i]of this.workspacePullStates)this.documentPullStates.has(n)&&(i=this.documentPullStates.get(n)),i.resultId!==void 0&&e.push({uri:n,value:i.resultId});return e}}class p_{constructor(e,n,i){this.client=e,this.tabs=n,this.options=i,this.isDisposed=!1,this.onDidChangeDiagnosticsEmitter=new Ue.EventEmitter,this.provider=this.createProvider(),this.diagnostics=Ue.languages.createDiagnosticCollection(i.identifier),this.openRequests=new Map,this.documentStates=new g_,this.workspaceErrorCounter=0}knows(e,n){const i=n instanceof Ue.Uri?n:n.uri;return this.documentStates.tracks(e,n)||this.openRequests.has(i.toString())}forget(e,n){this.documentStates.unTrack(e,n)}pull(e,n){if(this.isDisposed)return;const i=e instanceof Ue.Uri?e:e.uri;this.pullAsync(e).then(()=>{n&&n()},r=>{this.client.error(`Document pull failed for text document ${i.toString()}`,r,!1)})}async pullAsync(e,n){if(this.isDisposed)return;const i=e instanceof Ue.Uri,r=i?e:e.uri,s=r.toString();n=i?n:e.version;const o=this.openRequests.get(s),a=i?this.documentStates.track(zt.document,e,n):this.documentStates.track(zt.document,e);if(o===void 0){const c=new Ue.CancellationTokenSource;this.openRequests.set(s,{state:un.active,document:e,version:n,tokenSource:c});let l,f;try{l=await this.provider.provideDiagnostics(e,a.resultId,c.token)??{kind:Vn.DocumentDiagnosticReportKind.full,items:[]}}catch(g){if(g instanceof O1.LSPCancellationError&&Et.DiagnosticServerCancellationData.is(g.data)&&g.data.retriggerRequest===!1&&(f={state:un.outDated,document:e}),f===void 0&&g instanceof Ue.CancellationError)f={state:un.reschedule,document:e};else throw g}if(f=f??this.openRequests.get(s),f===void 0){this.client.error(`Lost request state in diagnostic pull model. Clearing diagnostics for ${s}`),this.diagnostics.delete(r);return}if(this.openRequests.delete(s),!this.tabs.isVisible(e)){this.documentStates.unTrack(zt.document,e);return}if(f.state===un.outDated)return;l!==void 0&&(l.kind===Vn.DocumentDiagnosticReportKind.full&&this.diagnostics.set(r,l.items),a.pulledVersion=n,a.resultId=l.resultId),f.state===un.reschedule&&this.pull(e)}else o.state===un.active?(o.tokenSource.cancel(),this.openRequests.set(s,{state:un.reschedule,document:o.document})):o.state===un.outDated&&this.openRequests.set(s,{state:un.reschedule,document:o.document})}forgetDocument(e){const n=e instanceof Ue.Uri?e:e.uri,i=n.toString(),r=this.openRequests.get(i);this.options.workspaceDiagnostics?r!==void 0?this.openRequests.set(i,{state:un.reschedule,document:e}):this.pull(e,()=>{this.forget(zt.document,e)}):(r!==void 0&&(r.state===un.active&&r.tokenSource.cancel(),this.openRequests.set(i,{state:un.outDated,document:e})),this.diagnostics.delete(n),this.forget(zt.document,e))}pullWorkspace(){this.isDisposed||this.pullWorkspaceAsync().then(()=>{this.workspaceTimeout=(0,Et.RAL)().timer.setTimeout(()=>{this.pullWorkspace()},2e3)},e=>{!(e instanceof O1.LSPCancellationError)&&!Et.DiagnosticServerCancellationData.is(e.data)&&(this.client.error("Workspace diagnostic pull failed.",e,!1),this.workspaceErrorCounter++),this.workspaceErrorCounter<=5&&(this.workspaceTimeout=(0,Et.RAL)().timer.setTimeout(()=>{this.pullWorkspace()},2e3))})}async pullWorkspaceAsync(){if(!this.provider.provideWorkspaceDiagnostics||this.isDisposed)return;this.workspaceCancellation!==void 0&&(this.workspaceCancellation.cancel(),this.workspaceCancellation=void 0),this.workspaceCancellation=new Ue.CancellationTokenSource;const e=this.documentStates.getAllResultIds().map(n=>({uri:this.client.protocol2CodeConverter.asUri(n.uri),value:n.value}));await this.provider.provideWorkspaceDiagnostics(e,this.workspaceCancellation.token,n=>{if(!(!n||this.isDisposed))for(const i of n.items)i.kind===Vn.DocumentDiagnosticReportKind.full&&(this.documentStates.tracks(zt.document,i.uri)||this.diagnostics.set(i.uri,i.items)),this.documentStates.update(zt.workspace,i.uri,i.version??void 0,i.resultId)})}createProvider(){const e={onDidChangeDiagnostics:this.onDidChangeDiagnosticsEmitter.event,provideDiagnostics:(n,i,r)=>{const s=(a,c,l)=>{const f={identifier:this.options.identifier,textDocument:{uri:this.client.code2ProtocolConverter.asUri(a instanceof Ue.Uri?a:a.uri)},previousResultId:c};return this.isDisposed===!0||!this.client.isRunning()?{kind:Vn.DocumentDiagnosticReportKind.full,items:[]}:this.client.sendRequest(Et.DocumentDiagnosticRequest.type,f,l).then(async g=>g==null||this.isDisposed||l.isCancellationRequested?{kind:Vn.DocumentDiagnosticReportKind.full,items:[]}:g.kind===Et.DocumentDiagnosticReportKind.Full?{kind:Vn.DocumentDiagnosticReportKind.full,resultId:g.resultId,items:await this.client.protocol2CodeConverter.asDiagnostics(g.items,l)}:{kind:Vn.DocumentDiagnosticReportKind.unChanged,resultId:g.resultId},g=>this.client.handleFailedRequest(Et.DocumentDiagnosticRequest.type,l,g,{kind:Vn.DocumentDiagnosticReportKind.full,items:[]}))},o=this.client.middleware;return o.provideDiagnostics?o.provideDiagnostics(n,i,r,s):s(n,i,r)}};return this.options.workspaceDiagnostics&&(e.provideWorkspaceDiagnostics=(n,i,r)=>{const s=async l=>l.kind===Et.DocumentDiagnosticReportKind.Full?{kind:Vn.DocumentDiagnosticReportKind.full,uri:this.client.protocol2CodeConverter.asUri(l.uri),resultId:l.resultId,version:l.version,items:await this.client.protocol2CodeConverter.asDiagnostics(l.items,i)}:{kind:Vn.DocumentDiagnosticReportKind.unChanged,uri:this.client.protocol2CodeConverter.asUri(l.uri),resultId:l.resultId,version:l.version},o=l=>{const f=[];for(const g of l)f.push({uri:this.client.code2ProtocolConverter.asUri(g.uri),value:g.value});return f},a=(l,f)=>{const g=(0,h_.generateUuid)(),p=this.client.onProgress(Et.WorkspaceDiagnosticRequest.partialResult,g,async C=>{if(C==null){r(null);return}const k={items:[]};for(const A of C.items)try{k.items.push(await s(A))}catch(H){this.client.error("Converting workspace diagnostics failed.",H)}r(k)}),_={identifier:this.options.identifier,previousResultIds:o(l),partialResultToken:g};return this.isDisposed===!0||!this.client.isRunning()?{items:[]}:this.client.sendRequest(Et.WorkspaceDiagnosticRequest.type,_,f).then(async C=>{if(f.isCancellationRequested)return{items:[]};const k={items:[]};for(const A of C.items)k.items.push(await s(A));return p.dispose(),r(k),{items:[]}},C=>(p.dispose(),this.client.handleFailedRequest(Et.DocumentDiagnosticRequest.type,f,C,{items:[]})))},c=this.client.middleware;return c.provideWorkspaceDiagnostics?c.provideWorkspaceDiagnostics(n,i,r,a):a(n,i)}),e}dispose(){var e,n;this.isDisposed=!0,(e=this.workspaceCancellation)==null||e.cancel(),(n=this.workspaceTimeout)==null||n.dispose();for(const[i,r]of this.openRequests)r.state===un.active&&r.tokenSource.cancel(),this.openRequests.set(i,{state:un.outDated,document:r.document});this.diagnostics.dispose()}}class m_{constructor(e){this.diagnosticRequestor=e,this.documents=new Et.LinkedMap,this.isDisposed=!1}add(e){if(this.isDisposed===!0)return;const n=$i.asKey(e);this.documents.has(n)||(this.documents.set(n,e,Et.Touch.Last),this.trigger())}remove(e){const n=$i.asKey(e);this.documents.delete(n),this.documents.size===0?this.stop():n===this.endDocumentKey()&&(this.endDocument=this.documents.last)}trigger(){if(this.isDisposed!==!0){if(this.intervalHandle!==void 0){this.endDocument=this.documents.last;return}this.endDocument=this.documents.last,this.intervalHandle=(0,Et.RAL)().timer.setInterval(()=>{const e=this.documents.first;if(e!==void 0){const n=$i.asKey(e);this.diagnosticRequestor.pull(e),this.documents.set(n,e,Et.Touch.Last),n===this.endDocumentKey()&&this.stop()}},200)}}dispose(){this.isDisposed=!0,this.stop(),this.documents.clear()}stop(){var e;(e=this.intervalHandle)==null||e.dispose(),this.intervalHandle=void 0,this.endDocument=void 0}endDocumentKey(){return this.endDocument!==void 0?$i.asKey(this.endDocument):void 0}}class y_{constructor(e,n,i){var C;const r=e.clientOptions.diagnosticPullOptions??{onChange:!0,onSave:!1},s=e.protocol2CodeConverter.asDocumentSelector(i.documentSelector),o=[],a=k=>{const A=i.documentSelector;if(r.match!==void 0)return r.match(A,k);for(const H of A)if(Et.TextDocumentFilter.is(H)){if(typeof H=="string"||H.language!==void 0&&H.language!=="*"||H.scheme!==void 0&&H.scheme!=="*"&&H.scheme!==k.scheme)return!1;if(H.pattern!==void 0){const K=new f_.Minimatch(H.pattern,{noext:!0});if(!K.makeRe()||!K.match(k.fsPath))return!1}}return!0},c=k=>k instanceof Ue.Uri?a(k):Ue.languages.match(s,k)>0&&n.isVisible(k),l=k=>{var A;return k instanceof Ue.Uri?((A=this.activeTextDocument)==null?void 0:A.uri.toString())===k.toString():this.activeTextDocument===k};this.diagnosticRequestor=new p_(e,n,i),this.backgroundScheduler=new m_(this.diagnosticRequestor);const f=k=>{!c(k)||!i.interFileDependencies||l(k)||this.backgroundScheduler.add(k)};this.activeTextDocument=(C=Ue.window.activeTextEditor)==null?void 0:C.document,Ue.window.onDidChangeActiveTextEditor(k=>{const A=this.activeTextDocument;this.activeTextDocument=k==null?void 0:k.document,A!==void 0&&f(A),this.activeTextDocument!==void 0&&this.backgroundScheduler.remove(this.activeTextDocument)});const g=e.getFeature(Et.DidOpenTextDocumentNotification.method);o.push(g.onNotificationSent(k=>{const A=k.textDocument;this.diagnosticRequestor.knows(zt.document,A)||c(A)&&this.diagnosticRequestor.pull(A,()=>{f(A)})})),o.push(n.onOpen(k=>{for(const A of k){if(this.diagnosticRequestor.knows(zt.document,A))continue;const H=A.toString();let K;for(const j of Ue.workspace.textDocuments)if(H===j.uri.toString()){K=j;break}K!==void 0&&c(K)&&this.diagnosticRequestor.pull(K,()=>{f(K)})}}));const p=new Set;for(const k of Ue.workspace.textDocuments)c(k)&&(this.diagnosticRequestor.pull(k,()=>{f(k)}),p.add(k.uri.toString()));if(r.onTabs===!0)for(const k of n.getTabResources())!p.has(k.toString())&&c(k)&&this.diagnosticRequestor.pull(k,()=>{f(k)});if(r.onChange===!0){const k=e.getFeature(Et.DidChangeTextDocumentNotification.method);o.push(k.onNotificationSent(async A=>{const H=A.textDocument;(r.filter===void 0||!r.filter(H,bc.onType))&&this.diagnosticRequestor.knows(zt.document,H)&&this.diagnosticRequestor.pull(H,()=>{this.backgroundScheduler.trigger()})}))}if(r.onSave===!0){const k=e.getFeature(Et.DidSaveTextDocumentNotification.method);o.push(k.onNotificationSent(A=>{const H=A.textDocument;(r.filter===void 0||!r.filter(H,bc.onSave))&&this.diagnosticRequestor.knows(zt.document,H)&&this.diagnosticRequestor.pull(A.textDocument,()=>{this.backgroundScheduler.trigger()})}))}const _=e.getFeature(Et.DidCloseTextDocumentNotification.method);o.push(_.onNotificationSent(k=>{this.cleanUpDocument(k.textDocument)})),n.onClose(k=>{for(const A of k)this.cleanUpDocument(A)}),this.diagnosticRequestor.onDidChangeDiagnosticsEmitter.event(()=>{for(const k of Ue.workspace.textDocuments)c(k)&&this.diagnosticRequestor.pull(k)}),i.workspaceDiagnostics===!0&&i.identifier!=="da348dc5-c30a-4515-9d98-31ff3be38d14"&&this.diagnosticRequestor.pullWorkspace(),this.disposable=Ue.Disposable.from(...o,this.backgroundScheduler,this.diagnosticRequestor)}get onDidChangeDiagnosticsEmitter(){return this.diagnosticRequestor.onDidChangeDiagnosticsEmitter}get diagnostics(){return this.diagnosticRequestor.provider}cleanUpDocument(e){this.diagnosticRequestor.knows(zt.document,e)&&(this.diagnosticRequestor.forgetDocument(e),this.backgroundScheduler.remove(e))}}class b_ extends O1.TextDocumentLanguageFeature{constructor(e){super(e,Et.DocumentDiagnosticRequest.type)}fillClientCapabilities(e){let n=ba(ba(e,"textDocument"),"diagnostic");n.dynamicRegistration=!0,n.relatedDocumentSupport=!1,ba(ba(e,"workspace"),"diagnostics").refreshSupport=!0}initialize(e,n){this._client.onRequest(Et.DiagnosticRefreshRequest.type,async()=>{for(const o of this.getAllProviders())o.onDidChangeDiagnosticsEmitter.fire()});let[r,s]=this.getRegistration(n,e.diagnosticProvider);!r||!s||this.register({id:r,registerOptions:s})}clear(){this.tabs!==void 0&&(this.tabs.dispose(),this.tabs=void 0),super.clear()}registerLanguageProvider(e){this.tabs===void 0&&(this.tabs=new Ro);const n=new y_(this._client,this.tabs,e);return[n.disposable,n]}}Ui.DiagnosticFeature=b_;var Yt={},Gc={},Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.forEach=Qt.mapAsync=Qt.map=Qt.clearTestMode=Qt.setTestMode=Qt.Semaphore=Qt.Delayer=void 0;const ca=ye;class v_{constructor(e){this.defaultDelay=e,this.timeout=void 0,this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0}trigger(e,n=this.defaultDelay){return this.task=e,n>=0&&this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(i=>{this.onSuccess=i}).then(()=>{this.completionPromise=void 0,this.onSuccess=void 0;var i=this.task();return this.task=void 0,i})),(n>=0||this.timeout===void 0)&&(this.timeout=(0,ca.RAL)().timer.setTimeout(()=>{this.timeout=void 0,this.onSuccess(void 0)},n>=0?n:this.defaultDelay)),this.completionPromise}forceDelivery(){if(!this.completionPromise)return;this.cancelTimeout();let e=this.task();return this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0,e}isTriggered(){return this.timeout!==void 0}cancel(){this.cancelTimeout(),this.completionPromise=void 0}cancelTimeout(){this.timeout!==void 0&&(this.timeout.dispose(),this.timeout=void 0)}}Qt.Delayer=v_;let w_=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((n,i)=>{this._waiting.push({thunk:e,resolve:n,reject:i}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,ca.RAL)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||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 n=e.thunk();n instanceof Promise?n.then(i=>{this._active--,e.resolve(i),this.runNext()},i=>{this._active--,e.reject(i),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};Qt.Semaphore=w_;let dg=!1;function C_(){dg=!0}Qt.setTestMode=C_;function __(){dg=!1}Qt.clearTestMode=__;const C0=15;class fg{constructor(e=C0){this.yieldAfter=dg===!0?Math.max(e,2):Math.max(e,C0),this.startTime=Date.now(),this.counter=0,this.total=0,this.counterInterval=1}start(){this.counter=0,this.total=0,this.counterInterval=1,this.startTime=Date.now()}shouldYield(){if(++this.counter>=this.counterInterval){const e=Date.now()-this.startTime,n=Math.max(0,this.yieldAfter-e);if(this.total+=this.counter,this.counter=0,e>=this.yieldAfter||n<=1)return this.counterInterval=1,this.total=0,!0;switch(e){case 0:case 1:this.counterInterval=this.total*2;break}}return!1}}async function S_(t,e,n,i){if(t.length===0)return[];const r=new Array(t.length),s=new fg(i==null?void 0:i.yieldAfter);function o(c){s.start();for(let l=c;l<t.length;l++)if(r[l]=e(t[l]),s.shouldYield())return i!=null&&i.yieldCallback&&i.yieldCallback(),l+1;return-1}let a=o(0);for(;a!==-1&&!(n!==void 0&&n.isCancellationRequested);)a=await new Promise(c=>{(0,ca.RAL)().timer.setImmediate(()=>{c(o(a))})});return r}Qt.map=S_;async function D_(t,e,n,i){if(t.length===0)return[];const r=new Array(t.length),s=new fg(i==null?void 0:i.yieldAfter);async function o(c){s.start();for(let l=c;l<t.length;l++)if(r[l]=await e(t[l],n),s.shouldYield())return i!=null&&i.yieldCallback&&i.yieldCallback(),l+1;return-1}let a=await o(0);for(;a!==-1&&!(n!==void 0&&n.isCancellationRequested);)a=await new Promise(c=>{(0,ca.RAL)().timer.setImmediate(()=>{c(o(a))})});return r}Qt.mapAsync=D_;async function T_(t,e,n,i){if(t.length===0)return;const r=new fg(i==null?void 0:i.yieldAfter);function s(a){r.start();for(let c=a;c<t.length;c++)if(e(t[c]),r.shouldYield())return i!=null&&i.yieldCallback&&i.yieldCallback(),c+1;return-1}let o=s(0);for(;o!==-1&&!(n!==void 0&&n.isCancellationRequested);)o=await new Promise(a=>{(0,ca.RAL)().timer.setImmediate(()=>{a(s(o))})})}Qt.forEach=T_;var Jc={};Object.defineProperty(Jc,"__esModule",{value:!0});const k_=Re;class R_ extends k_.CompletionItem{constructor(e){super(e)}}Jc.default=R_;var Xc={};Object.defineProperty(Xc,"__esModule",{value:!0});const x_=Re;class I_ extends x_.CodeLens{constructor(e){super(e)}}Xc.default=I_;var Zc={};Object.defineProperty(Zc,"__esModule",{value:!0});const E_=Re;class P_ extends E_.DocumentLink{constructor(e,n){super(e,n)}}Zc.default=P_;var Yc={};Object.defineProperty(Yc,"__esModule",{value:!0});const A_=Re;class M_ extends A_.CodeAction{constructor(e,n){super(e),this.data=n}}Yc.default=M_;var Zr={};Object.defineProperty(Zr,"__esModule",{value:!0});Zr.ProtocolDiagnostic=Zr.DiagnosticCode=void 0;const O_=Re,Yl=Ze;var _0;(function(t){function e(n){const i=n;return i!=null&&(Yl.number(i.value)||Yl.string(i.value))&&Yl.string(i.target)}t.is=e})(_0||(Zr.DiagnosticCode=_0={}));class F_ extends O_.Diagnostic{constructor(e,n,i,r){super(e,n,i),this.data=r,this.hasDiagnosticCode=!1}}Zr.ProtocolDiagnostic=F_;var Qc={};Object.defineProperty(Qc,"__esModule",{value:!0});const L_=Re;class N_ extends L_.CallHierarchyItem{constructor(e,n,i,r,s,o,a){super(e,n,i,r,s,o),a!==void 0&&(this.data=a)}}Qc.default=N_;var el={};Object.defineProperty(el,"__esModule",{value:!0});const $_=Re;class q_ extends $_.TypeHierarchyItem{constructor(e,n,i,r,s,o,a){super(e,n,i,r,s,o),a!==void 0&&(this.data=a)}}el.default=q_;var tl={};Object.defineProperty(tl,"__esModule",{value:!0});const va=Re;class j_ extends va.SymbolInformation{constructor(e,n,i,r,s){const o=!(r instanceof va.Uri);super(e,n,i,o?r:new va.Location(r,new va.Range(0,0,0,0))),this.hasRange=o,s!==void 0&&(this.data=s)}}tl.default=j_;var nl={};Object.defineProperty(nl,"__esModule",{value:!0});const H_=Re;class W_ extends H_.InlayHint{constructor(e,n,i){super(e,n,i)}}nl.default=W_;Object.defineProperty(Gc,"__esModule",{value:!0});Gc.createConverter=void 0;const $t=Re,Ie=ye,_r=Ze,S0=Qt,U_=Jc,z_=Xc,B_=Zc,D0=Yc,T0=Zr,V_=Qc,K_=el,G_=tl,J_=nl;var F1;(function(t){function e(n){const i=n;return i&&!!i.inserting&&!!i.replacing}t.is=e})(F1||(F1={}));function X_(t){const n=t||(y=>y.toString());function i(y){return n(y)}function r(y){return{uri:n(y.uri)}}function s(y){return{uri:n(y.uri),languageId:y.languageId,version:y.version,text:y.getText()}}function o(y){return{uri:n(y.uri),version:y.version}}function a(y){return{textDocument:s(y)}}function c(y){const L=y;return!!L.document&&!!L.contentChanges}function l(y){const L=y;return!!L.uri&&!!L.version}function f(y,L,te){if(l(y))return{textDocument:{uri:n(y.uri),version:y.version},contentChanges:[{text:y.getText()}]};if(c(y)){const Te=L,xe=te;return{textDocument:{uri:n(Te),version:xe},contentChanges:y.contentChanges.map(T=>{const U=T.range;return{range:{start:{line:U.start.line,character:U.start.character},end:{line:U.end.line,character:U.end.character}},rangeLength:T.rangeLength,text:T.text}})}}else throw Error("Unsupported text document change parameter")}function g(y){return{textDocument:r(y)}}function p(y,L=!1){let te={textDocument:r(y)};return L&&(te.text=y.getText()),te}function _(y){switch(y){case $t.TextDocumentSaveReason.Manual:return Ie.TextDocumentSaveReason.Manual;case $t.TextDocumentSaveReason.AfterDelay:return Ie.TextDocumentSaveReason.AfterDelay;case $t.TextDocumentSaveReason.FocusOut:return Ie.TextDocumentSaveReason.FocusOut}return Ie.TextDocumentSaveReason.Manual}function C(y){return{textDocument:r(y.document),reason:_(y.reason)}}function k(y){return{files:y.files.map(L=>({uri:n(L)}))}}function A(y){return{files:y.files.map(L=>({oldUri:n(L.oldUri),newUri:n(L.newUri)}))}}function H(y){return{files:y.files.map(L=>({uri:n(L)}))}}function K(y){return{files:y.files.map(L=>({uri:n(L)}))}}function j(y){return{files:y.files.map(L=>({oldUri:n(L.oldUri),newUri:n(L.newUri)}))}}function B(y){return{files:y.files.map(L=>({uri:n(L)}))}}function z(y,L){return{textDocument:r(y),position:P(L)}}function ne(y){switch(y){case $t.CompletionTriggerKind.TriggerCharacter:return Ie.CompletionTriggerKind.TriggerCharacter;case $t.CompletionTriggerKind.TriggerForIncompleteCompletions:return Ie.CompletionTriggerKind.TriggerForIncompleteCompletions;default:return Ie.CompletionTriggerKind.Invoked}}function G(y,L,te){return{textDocument:r(y),position:P(L),context:{triggerKind:ne(te.triggerKind),triggerCharacter:te.triggerCharacter}}}function Z(y){switch(y){case $t.SignatureHelpTriggerKind.Invoke:return Ie.SignatureHelpTriggerKind.Invoked;case $t.SignatureHelpTriggerKind.TriggerCharacter:return Ie.SignatureHelpTriggerKind.TriggerCharacter;case $t.SignatureHelpTriggerKind.ContentChange:return Ie.SignatureHelpTriggerKind.ContentChange}}function ie(y){return{label:y.label}}function Le(y){return y.map(ie)}function $(y){return{label:y.label,parameters:Le(y.parameters)}}function E(y){return y.map($)}function v(y){return y===void 0?y:{signatures:E(y.signatures),activeSignature:y.activeSignature,activeParameter:y.activeParameter}}function R(y,L,te){return{textDocument:r(y),position:P(L),context:{isRetrigger:te.isRetrigger,triggerCharacter:te.triggerCharacter,triggerKind:Z(te.triggerKind),activeSignatureHelp:v(te.activeSignatureHelp)}}}function P(y){return{line:y.line,character:y.character}}function I(y){return y==null?y:{line:y.line>Ie.uinteger.MAX_VALUE?Ie.uinteger.MAX_VALUE:y.line,character:y.character>Ie.uinteger.MAX_VALUE?Ie.uinteger.MAX_VALUE:y.character}}function V(y,L){return S0.map(y,I,L)}function Ae(y){return y.map(I)}function ve(y){return y==null?y:{start:I(y.start),end:I(y.end)}}function lt(y){return y.map(ve)}function He(y){return y==null?y:Ie.Location.create(i(y.uri),ve(y.range))}function Ee(y){switch(y){case $t.DiagnosticSeverity.Error:return Ie.DiagnosticSeverity.Error;case $t.DiagnosticSeverity.Warning:return Ie.DiagnosticSeverity.Warning;case $t.DiagnosticSeverity.Information:return Ie.DiagnosticSeverity.Information;case $t.DiagnosticSeverity.Hint:return Ie.DiagnosticSeverity.Hint}}function st(y){if(!y)return;let L=[];for(let te of y){let Te=Fe(te);Te!==void 0&&L.push(Te)}return L.length>0?L:void 0}function Fe(y){switch(y){case $t.DiagnosticTag.Unnecessary:return Ie.DiagnosticTag.Unnecessary;case $t.DiagnosticTag.Deprecated:return Ie.DiagnosticTag.Deprecated;default:return}}function ot(y){return{message:y.message,location:He(y.location)}}function Je(y){return y.map(ot)}function Ft(y){if(y!=null)return _r.number(y)||_r.string(y)?y:{value:y.value,target:i(y.target)}}function Xe(y){const L=Ie.Diagnostic.create(ve(y.range),y.message),te=y instanceof T0.ProtocolDiagnostic?y:void 0;te!==void 0&&te.data!==void 0&&(L.data=te.data);const Te=Ft(y.code);return T0.DiagnosticCode.is(Te)?te!==void 0&&te.hasDiagnosticCode?L.code=Te:(L.code=Te.value,L.codeDescription={href:Te.target}):L.code=Te,_r.number(y.severity)&&(L.severity=Ee(y.severity)),Array.isArray(y.tags)&&(L.tags=st(y.tags)),y.relatedInformation&&(L.relatedInformation=Je(y.relatedInformation)),y.source&&(L.source=y.source),L}function Ye(y,L){return y==null?y:S0.map(y,Xe,L)}function vt(y){return y==null?y:y.map(Xe)}function at(y,L){switch(y){case"$string":return L;case Ie.MarkupKind.PlainText:return{kind:y,value:L};case Ie.MarkupKind.Markdown:return{kind:y,value:L.value};default:return`Unsupported Markup content received. Kind is: ${y}`}}function oe(y){switch(y){case $t.CompletionItemTag.Deprecated:return Ie.CompletionItemTag.Deprecated}}function pt(y){if(y===void 0)return y;const L=[];for(let te of y){const Te=oe(te);Te!==void 0&&L.push(Te)}return L}function we(y,L){return L!==void 0?L:y+1}function Qe(y,L=!1){let te,Te;_r.string(y.label)?te=y.label:(te=y.label.label,L&&(y.label.detail!==void 0||y.label.description!==void 0)&&(Te={detail:y.label.detail,description:y.label.description}));let xe={label:te};Te!==void 0&&(xe.labelDetails=Te);let ut=y instanceof U_.default?y:void 0;y.detail&&(xe.detail=y.detail),y.documentation&&(!ut||ut.documentationFormat==="$string"?xe.documentation=y.documentation:xe.documentation=at(ut.documentationFormat,y.documentation)),y.filterText&&(xe.filterText=y.filterText),en(xe,y),_r.number(y.kind)&&(xe.kind=we(y.kind,ut&&ut.originalItemKind)),y.sortText&&(xe.sortText=y.sortText),y.additionalTextEdits&&(xe.additionalTextEdits=Rt(y.additionalTextEdits)),y.commitCharacters&&(xe.commitCharacters=y.commitCharacters.slice()),y.command&&(xe.command=Kt(y.command)),(y.preselect===!0||y.preselect===!1)&&(xe.preselect=y.preselect);const T=pt(y.tags);if(ut){if(ut.data!==void 0&&(xe.data=ut.data),ut.deprecated===!0||ut.deprecated===!1){if(ut.deprecated===!0&&T!==void 0&&T.length>0){const U=T.indexOf($t.CompletionItemTag.Deprecated);U!==-1&&T.splice(U,1)}xe.deprecated=ut.deprecated}ut.insertTextMode!==void 0&&(xe.insertTextMode=ut.insertTextMode)}return T!==void 0&&T.length>0&&(xe.tags=T),xe.insertTextMode===void 0&&y.keepWhitespace===!0&&(xe.insertTextMode=Ie.InsertTextMode.adjustIndentation),xe}function en(y,L){let te=Ie.InsertTextFormat.PlainText,Te,xe;L.textEdit?(Te=L.textEdit.newText,xe=L.textEdit.range):L.insertText instanceof $t.SnippetString?(te=Ie.InsertTextFormat.Snippet,Te=L.insertText.value):Te=L.insertText,L.range&&(xe=L.range),y.insertTextFormat=te,L.fromEdit&&Te!==void 0&&xe!==void 0?y.textEdit=tn(Te,xe):y.insertText=Te}function tn(y,L){return F1.is(L)?Ie.InsertReplaceEdit.create(y,ve(L.inserting),ve(L.replacing)):{newText:y,range:ve(L)}}function Wt(y){return{range:ve(y.range),newText:y.newText}}function Rt(y){return y==null?y:y.map(Wt)}function xt(y){return y<=$t.SymbolKind.TypeParameter?y+1:Ie.SymbolKind.Property}function qe(y){return y}function Ut(y){return y.map(qe)}function Ln(y,L,te){return{textDocument:r(y),position:P(L),context:{includeDeclaration:te.includeDeclaration}}}async function Dn(y,L){let te=Ie.CodeAction.create(y.title);if(y instanceof D0.default&&y.data!==void 0&&(te.data=y.data),y.kind!==void 0&&(te.kind=St(y.kind)),y.diagnostics!==void 0&&(te.diagnostics=await Ye(y.diagnostics,L)),y.edit!==void 0)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return y.command!==void 0&&(te.command=Kt(y.command)),y.isPreferred!==void 0&&(te.isPreferred=y.isPreferred),y.disabled!==void 0&&(te.disabled={reason:y.disabled.reason}),te}function Tn(y){let L=Ie.CodeAction.create(y.title);if(y instanceof D0.default&&y.data!==void 0&&(L.data=y.data),y.kind!==void 0&&(L.kind=St(y.kind)),y.diagnostics!==void 0&&(L.diagnostics=vt(y.diagnostics)),y.edit!==void 0)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return y.command!==void 0&&(L.command=Kt(y.command)),y.isPreferred!==void 0&&(L.isPreferred=y.isPreferred),y.disabled!==void 0&&(L.disabled={reason:y.disabled.reason}),L}async function Nn(y,L){if(y==null)return y;let te;return y.only&&_r.string(y.only.value)&&(te=[y.only.value]),Ie.CodeActionContext.create(await Ye(y.diagnostics,L),te,ln(y.triggerKind))}function kn(y){if(y==null)return y;let L;return y.only&&_r.string(y.only.value)&&(L=[y.only.value]),Ie.CodeActionContext.create(vt(y.diagnostics),L,ln(y.triggerKind))}function ln(y){switch(y){case $t.CodeActionTriggerKind.Invoke:return Ie.CodeActionTriggerKind.Invoked;case $t.CodeActionTriggerKind.Automatic:return Ie.CodeActionTriggerKind.Automatic;default:return}}function St(y){if(y!=null)return y.value}function mn(y){return y==null?y:Ie.InlineValueContext.create(y.frameId,ve(y.stoppedLocation))}function zn(y,L,te){return{context:Ie.InlineCompletionContext.create(te.triggerKind,te.selectedCompletionInfo),textDocument:r(y),position:I(L)}}function Kt(y){let L=Ie.Command.create(y.title,y.command);return y.arguments&&(L.arguments=y.arguments),L}function nn(y){let L=Ie.CodeLens.create(ve(y.range));return y.command&&(L.command=Kt(y.command)),y instanceof z_.default&&y.data&&(L.data=y.data),L}function yn(y,L){const te={tabSize:y.tabSize,insertSpaces:y.insertSpaces};return L.trimTrailingWhitespace&&(te.trimTrailingWhitespace=!0),L.trimFinalNewlines&&(te.trimFinalNewlines=!0),L.insertFinalNewline&&(te.insertFinalNewline=!0),te}function Gt(y){return{textDocument:r(y)}}function Rn(y){return{textDocument:r(y)}}function bn(y){let L=Ie.DocumentLink.create(ve(y.range));y.target&&(L.target=i(y.target)),y.tooltip!==void 0&&(L.tooltip=y.tooltip);let te=y instanceof B_.default?y:void 0;return te&&te.data&&(L.data=te.data),L}function xn(y){return{textDocument:r(y)}}function Bn(y){const L={name:y.name,kind:xt(y.kind),uri:i(y.uri),range:ve(y.range),selectionRange:ve(y.selectionRange)};return y.detail!==void 0&&y.detail.length>0&&(L.detail=y.detail),y.tags!==void 0&&(L.tags=Ut(y.tags)),y instanceof V_.default&&y.data!==void 0&&(L.data=y.data),L}function vn(y){const L={name:y.name,kind:xt(y.kind),uri:i(y.uri),range:ve(y.range),selectionRange:ve(y.selectionRange)};return y.detail!==void 0&&y.detail.length>0&&(L.detail=y.detail),y.tags!==void 0&&(L.tags=Ut(y.tags)),y instanceof K_.default&&y.data!==void 0&&(L.data=y.data),L}function mt(y){const L=y instanceof G_.default?{name:y.name,kind:xt(y.kind),location:y.hasRange?He(y.location):{uri:n(y.location.uri)},data:y.data}:{name:y.name,kind:xt(y.kind),location:He(y.location)};return y.tags!==void 0&&(L.tags=Ut(y.tags)),y.containerName!==""&&(L.containerName=y.containerName),L}function In(y){const L=typeof y.label=="string"?y.label:y.label.map($n),te=Ie.InlayHint.create(I(y.position),L);return y.kind!==void 0&&(te.kind=y.kind),y.textEdits!==void 0&&(te.textEdits=Rt(y.textEdits)),y.tooltip!==void 0&&(te.tooltip=Lt(y.tooltip)),y.paddingLeft!==void 0&&(te.paddingLeft=y.paddingLeft),y.paddingRight!==void 0&&(te.paddingRight=y.paddingRight),y instanceof J_.default&&y.data!==void 0&&(te.data=y.data),te}function $n(y){const L=Ie.InlayHintLabelPart.create(y.value);return y.location!==void 0&&(L.location=He(y.location)),y.command!==void 0&&(L.command=Kt(y.command)),y.tooltip!==void 0&&(L.tooltip=Lt(y.tooltip)),L}function Lt(y){return typeof y=="string"?y:{kind:Ie.MarkupKind.Markdown,value:y.value}}return{asUri:i,asTextDocumentIdentifier:r,asTextDocumentItem:s,asVersionedTextDocumentIdentifier:o,asOpenTextDocumentParams:a,asChangeTextDocumentParams:f,asCloseTextDocumentParams:g,asSaveTextDocumentParams:p,asWillSaveTextDocumentParams:C,asDidCreateFilesParams:k,asDidRenameFilesParams:A,asDidDeleteFilesParams:H,asWillCreateFilesParams:K,asWillRenameFilesParams:j,asWillDeleteFilesParams:B,asTextDocumentPositionParams:z,asCompletionParams:G,asSignatureHelpParams:R,asWorkerPosition:P,asRange:ve,asRanges:lt,asPosition:I,asPositions:V,asPositionsSync:Ae,asLocation:He,asDiagnosticSeverity:Ee,asDiagnosticTag:Fe,asDiagnostic:Xe,asDiagnostics:Ye,asDiagnosticsSync:vt,asCompletionItem:Qe,asTextEdit:Wt,asSymbolKind:xt,asSymbolTag:qe,asSymbolTags:Ut,asReferenceParams:Ln,asCodeAction:Dn,asCodeActionSync:Tn,asCodeActionContext:Nn,asCodeActionContextSync:kn,asInlineValueContext:mn,asCommand:Kt,asCodeLens:nn,asFormattingOptions:yn,asDocumentSymbolParams:Gt,asCodeLensParams:Rn,asDocumentLink:bn,asDocumentLinkParams:xn,asCallHierarchyItem:Bn,asTypeHierarchyItem:vn,asInlayHint:In,asWorkspaceSymbol:mt,asInlineCompletionParams:zn}}Gc.createConverter=X_;var il={};Object.defineProperty(il,"__esModule",{value:!0});il.createConverter=void 0;const ee=Re,ke=ye,Kn=Ze,Ve=Qt,Z_=Jc,Y_=Xc,Q_=Zc,e3=Yc,k0=Zr,t3=Qc,n3=el,i3=tl,r3=nl,R0=ye;var vc;(function(t){function e(n){let i=n;return i&&Kn.string(i.language)&&Kn.string(i.value)}t.is=e})(vc||(vc={}));function s3(t,e,n){const r=t||(d=>ee.Uri.parse(d));function s(d){return r(d)}function o(d){const S=[];for(const M of d)if(typeof M=="string")S.push(M);else if(R0.NotebookCellTextDocumentFilter.is(M))if(typeof M.notebook=="string")S.push({notebookType:M.notebook,language:M.language});else{const W=M.notebook.notebookType??"*";S.push({notebookType:W,scheme:M.notebook.scheme,pattern:M.notebook.pattern,language:M.language})}else R0.TextDocumentFilter.is(M)&&S.push({language:M.language,scheme:M.scheme,pattern:M.pattern});return S}async function a(d,S){return Ve.map(d,l,S)}function c(d){const S=new Array(d.length);for(let M=0;M<d.length;M++)S[M]=l(d[M]);return S}function l(d){let S=new k0.ProtocolDiagnostic(C(d.range),d.message,A(d.severity),d.data);if(d.code!==void 0){if(typeof d.code=="string"||typeof d.code=="number")ke.CodeDescription.is(d.codeDescription)?S.code={value:d.code,target:s(d.codeDescription.href)}:S.code=d.code;else if(k0.DiagnosticCode.is(d.code)){S.hasDiagnosticCode=!0;const M=d.code;S.code={value:M.value,target:s(M.target)}}}return d.source&&(S.source=d.source),d.relatedInformation&&(S.relatedInformation=f(d.relatedInformation)),Array.isArray(d.tags)&&(S.tags=g(d.tags)),S}function f(d){const S=new Array(d.length);for(let M=0;M<d.length;M++){const W=d[M];S[M]=new ee.DiagnosticRelatedInformation(Ee(W.location),W.message)}return S}function g(d){if(!d)return;let S=[];for(let M of d){let W=p(M);W!==void 0&&S.push(W)}return S.length>0?S:void 0}function p(d){switch(d){case ke.DiagnosticTag.Unnecessary:return ee.DiagnosticTag.Unnecessary;case ke.DiagnosticTag.Deprecated:return ee.DiagnosticTag.Deprecated;default:return}}function _(d){return d?new ee.Position(d.line,d.character):void 0}function C(d){return d?new ee.Range(d.start.line,d.start.character,d.end.line,d.end.character):void 0}async function k(d,S){return Ve.map(d,M=>new ee.Range(M.start.line,M.start.character,M.end.line,M.end.character),S)}function A(d){if(d==null)return ee.DiagnosticSeverity.Error;switch(d){case ke.DiagnosticSeverity.Error:return ee.DiagnosticSeverity.Error;case ke.DiagnosticSeverity.Warning:return ee.DiagnosticSeverity.Warning;case ke.DiagnosticSeverity.Information:return ee.DiagnosticSeverity.Information;case ke.DiagnosticSeverity.Hint:return ee.DiagnosticSeverity.Hint}return ee.DiagnosticSeverity.Error}function H(d){if(Kn.string(d))return j(d);if(vc.is(d))return j().appendCodeblock(d.value,d.language);if(Array.isArray(d)){let S=[];for(let M of d){let W=j();vc.is(M)?W.appendCodeblock(M.value,M.language):W.appendMarkdown(M),S.push(W)}return S}else return j(d)}function K(d){if(Kn.string(d))return d;switch(d.kind){case ke.MarkupKind.Markdown:return j(d.value);case ke.MarkupKind.PlainText:return d.value;default:return`Unsupported Markup content received. Kind is: ${d.kind}`}}function j(d){let S;if(d===void 0||typeof d=="string")S=new ee.MarkdownString(d);else switch(d.kind){case ke.MarkupKind.Markdown:S=new ee.MarkdownString(d.value);break;case ke.MarkupKind.PlainText:S=new ee.MarkdownString,S.appendText(d.value);break;default:S=new ee.MarkdownString,S.appendText(`Unsupported Markup content received. Kind is: ${d.kind}`);break}return S.isTrusted=e,S.supportHtml=n,S}function B(d){if(d)return new ee.Hover(H(d.contents),C(d.range))}async function z(d,S,M){if(!d)return;if(Array.isArray(d))return Ve.map(d,En=>Le(En,S),M);const W=d,{defaultRange:de,commitCharacters:be}=ne(W,S),Ce=await Ve.map(W.items,En=>{var et,wr,Gs;return Le(En,be,de,(et=W.itemDefaults)==null?void 0:et.insertTextMode,(wr=W.itemDefaults)==null?void 0:wr.insertTextFormat,(Gs=W.itemDefaults)==null?void 0:Gs.data)},M);return new ee.CompletionList(Ce,W.isIncomplete)}function ne(d,S){var de,be;const M=(de=d.itemDefaults)==null?void 0:de.editRange,W=((be=d.itemDefaults)==null?void 0:be.commitCharacters)??S;return ke.Range.is(M)?{defaultRange:C(M),commitCharacters:W}:M!==void 0?{defaultRange:{inserting:C(M.insert),replacing:C(M.replace)},commitCharacters:W}:{defaultRange:void 0,commitCharacters:W}}function G(d){return ke.CompletionItemKind.Text<=d&&d<=ke.CompletionItemKind.TypeParameter?[d-1,void 0]:[ee.CompletionItemKind.Text,d]}function Z(d){switch(d){case ke.CompletionItemTag.Deprecated:return ee.CompletionItemTag.Deprecated}}function ie(d){if(d==null)return[];const S=[];for(const M of d){const W=Z(M);W!==void 0&&S.push(W)}return S}function Le(d,S,M,W,de,be){const Ce=ie(d.tags),En=$(d),et=new Z_.default(En);d.detail&&(et.detail=d.detail),d.documentation&&(et.documentation=K(d.documentation),et.documentationFormat=Kn.string(d.documentation)?"$string":d.documentation.kind),d.filterText&&(et.filterText=d.filterText);const wr=E(d,M,de);if(wr&&(et.insertText=wr.text,et.range=wr.range,et.fromEdit=wr.fromEdit),Kn.number(d.kind)){let[Vy,_g]=G(d.kind);et.kind=Vy,_g&&(et.originalItemKind=_g)}d.sortText&&(et.sortText=d.sortText),d.additionalTextEdits&&(et.additionalTextEdits=I(d.additionalTextEdits));const Gs=d.commitCharacters!==void 0?Kn.stringArray(d.commitCharacters)?d.commitCharacters:void 0:S;Gs&&(et.commitCharacters=Gs.slice()),d.command&&(et.command=Rt(d.command)),(d.deprecated===!0||d.deprecated===!1)&&(et.deprecated=d.deprecated,d.deprecated===!0&&Ce.push(ee.CompletionItemTag.Deprecated)),(d.preselect===!0||d.preselect===!1)&&(et.preselect=d.preselect);const Cg=d.data??be;Cg!==void 0&&(et.data=Cg),Ce.length>0&&(et.tags=Ce);const Ll=d.insertTextMode??W;return Ll!==void 0&&(et.insertTextMode=Ll,Ll===ke.InsertTextMode.asIs&&(et.keepWhitespace=!0)),et}function $(d){return ke.CompletionItemLabelDetails.is(d.labelDetails)?{label:d.label,detail:d.labelDetails.detail,description:d.labelDetails.description}:d.label}function E(d,S,M){const W=d.insertTextFormat??M;if(d.textEdit!==void 0||S!==void 0){const[de,be]=d.textEdit!==void 0?v(d.textEdit):[S,d.textEditText??d.label];return W===ke.InsertTextFormat.Snippet?{text:new ee.SnippetString(be),range:de,fromEdit:!0}:{text:be,range:de,fromEdit:!0}}else return d.insertText?W===ke.InsertTextFormat.Snippet?{text:new ee.SnippetString(d.insertText),fromEdit:!1}:{text:d.insertText,fromEdit:!1}:void 0}function v(d){return ke.InsertReplaceEdit.is(d)?[{inserting:C(d.insert),replacing:C(d.replace)},d.newText]:[C(d.range),d.newText]}function R(d){if(d)return new ee.TextEdit(C(d.range),d.newText)}async function P(d,S){if(d)return Ve.map(d,R,S)}function I(d){if(!d)return;const S=new Array(d.length);for(let M=0;M<d.length;M++)S[M]=R(d[M]);return S}async function V(d,S){if(!d)return;let M=new ee.SignatureHelp;return Kn.number(d.activeSignature)?M.activeSignature=d.activeSignature:M.activeSignature=0,Kn.number(d.activeParameter)?M.activeParameter=d.activeParameter:M.activeParameter=0,d.signatures&&(M.signatures=await Ae(d.signatures,S)),M}async function Ae(d,S){return Ve.mapAsync(d,ve,S)}async function ve(d,S){let M=new ee.SignatureInformation(d.label);return d.documentation!==void 0&&(M.documentation=K(d.documentation)),d.parameters!==void 0&&(M.parameters=await lt(d.parameters,S)),d.activeParameter!==void 0&&(M.activeParameter=d.activeParameter),M}function lt(d,S){return Ve.map(d,He,S)}function He(d){let S=new ee.ParameterInformation(d.label);return d.documentation&&(S.documentation=K(d.documentation)),S}function Ee(d){return d?new ee.Location(r(d.uri),C(d.range)):void 0}async function st(d,S){if(d)return Je(d,S)}async function Fe(d,S){if(d)return Je(d,S)}function ot(d){if(!d)return;let S={targetUri:r(d.targetUri),targetRange:C(d.targetRange),originSelectionRange:C(d.originSelectionRange),targetSelectionRange:C(d.targetSelectionRange)};if(!S.targetSelectionRange)throw new Error("targetSelectionRange must not be undefined or null");return S}async function Je(d,S){if(d)if(Kn.array(d)){if(d.length===0)return[];if(ke.LocationLink.is(d[0])){const M=d;return Ve.map(M,ot,S)}else{const M=d;return Ve.map(M,Ee,S)}}else return ke.LocationLink.is(d)?[ot(d)]:Ee(d)}async function Ft(d,S){if(d)return Ve.map(d,Ee,S)}async function Xe(d,S){if(d)return Ve.map(d,Ye,S)}function Ye(d){let S=new ee.DocumentHighlight(C(d.range));return Kn.number(d.kind)&&(S.kind=vt(d.kind)),S}function vt(d){switch(d){case ke.DocumentHighlightKind.Text:return ee.DocumentHighlightKind.Text;case ke.DocumentHighlightKind.Read:return ee.DocumentHighlightKind.Read;case ke.DocumentHighlightKind.Write:return ee.DocumentHighlightKind.Write}return ee.DocumentHighlightKind.Text}async function at(d,S){if(d)return Ve.map(d,Qe,S)}function oe(d){return d<=ke.SymbolKind.TypeParameter?d-1:ee.SymbolKind.Property}function pt(d){switch(d){case ke.SymbolTag.Deprecated:return ee.SymbolTag.Deprecated;default:return}}function we(d){if(d==null)return;const S=[];for(const M of d){const W=pt(M);W!==void 0&&S.push(W)}return S.length===0?void 0:S}function Qe(d){const S=d.data,M=d.location,W=M.range===void 0||S!==void 0?new i3.default(d.name,oe(d.kind),d.containerName??"",M.range===void 0?r(M.uri):new ee.Location(r(d.location.uri),C(M.range)),S):new ee.SymbolInformation(d.name,oe(d.kind),d.containerName??"",new ee.Location(r(d.location.uri),C(M.range)));return Wt(W,d),W}async function en(d,S){if(d!=null)return Ve.map(d,tn,S)}function tn(d){let S=new ee.DocumentSymbol(d.name,d.detail||"",oe(d.kind),C(d.range),C(d.selectionRange));if(Wt(S,d),d.children!==void 0&&d.children.length>0){let M=[];for(let W of d.children)M.push(tn(W));S.children=M}return S}function Wt(d,S){d.tags=we(S.tags),S.deprecated&&(d.tags?d.tags.includes(ee.SymbolTag.Deprecated)||(d.tags=d.tags.concat(ee.SymbolTag.Deprecated)):d.tags=[ee.SymbolTag.Deprecated])}function Rt(d){let S={title:d.title,command:d.command};return d.arguments&&(S.arguments=d.arguments),S}async function xt(d,S){if(d)return Ve.map(d,Rt,S)}const qe=new Map;qe.set(ke.CodeActionKind.Empty,ee.CodeActionKind.Empty),qe.set(ke.CodeActionKind.QuickFix,ee.CodeActionKind.QuickFix),qe.set(ke.CodeActionKind.Refactor,ee.CodeActionKind.Refactor),qe.set(ke.CodeActionKind.RefactorExtract,ee.CodeActionKind.RefactorExtract),qe.set(ke.CodeActionKind.RefactorInline,ee.CodeActionKind.RefactorInline),qe.set(ke.CodeActionKind.RefactorRewrite,ee.CodeActionKind.RefactorRewrite),qe.set(ke.CodeActionKind.Source,ee.CodeActionKind.Source),qe.set(ke.CodeActionKind.SourceOrganizeImports,ee.CodeActionKind.SourceOrganizeImports);function Ut(d){if(d==null)return;let S=qe.get(d);if(S)return S;let M=d.split(".");S=ee.CodeActionKind.Empty;for(let W of M)S=S.append(W);return S}function Ln(d){if(d!=null)return d.map(S=>Ut(S))}async function Dn(d,S){if(d==null)return;let M=new e3.default(d.title,d.data);return d.kind!==void 0&&(M.kind=Ut(d.kind)),d.diagnostics!==void 0&&(M.diagnostics=c(d.diagnostics)),d.edit!==void 0&&(M.edit=await ln(d.edit,S)),d.command!==void 0&&(M.command=Rt(d.command)),d.isPreferred!==void 0&&(M.isPreferred=d.isPreferred),d.disabled!==void 0&&(M.disabled={reason:d.disabled.reason}),M}function Tn(d,S){return Ve.mapAsync(d,async M=>ke.Command.is(M)?Rt(M):Dn(M,S),S)}function Nn(d){if(!d)return;let S=new Y_.default(C(d.range));return d.command&&(S.command=Rt(d.command)),d.data!==void 0&&d.data!==null&&(S.data=d.data),S}async function kn(d,S){if(d)return Ve.map(d,Nn,S)}async function ln(d,S){if(!d)return;const M=new Map;if(d.changeAnnotations!==void 0){const be=d.changeAnnotations;await Ve.forEach(Object.keys(be),Ce=>{const En=St(be[Ce]);M.set(Ce,En)},S)}const W=be=>{if(be!==void 0)return M.get(be)},de=new ee.WorkspaceEdit;if(d.documentChanges){const be=d.documentChanges;await Ve.forEach(be,Ce=>{if(ke.CreateFile.is(Ce))de.createFile(r(Ce.uri),Ce.options,W(Ce.annotationId));else if(ke.RenameFile.is(Ce))de.renameFile(r(Ce.oldUri),r(Ce.newUri),Ce.options,W(Ce.annotationId));else if(ke.DeleteFile.is(Ce))de.deleteFile(r(Ce.uri),Ce.options,W(Ce.annotationId));else if(ke.TextDocumentEdit.is(Ce)){const En=r(Ce.textDocument.uri);for(const et of Ce.edits)ke.AnnotatedTextEdit.is(et)?de.replace(En,C(et.range),et.newText,W(et.annotationId)):de.replace(En,C(et.range),et.newText)}else throw new Error(`Unknown workspace edit change received:
|
|
118
|
+
${JSON.stringify(Ce,void 0,4)}`)},S)}else if(d.changes){const be=d.changes;await Ve.forEach(Object.keys(be),Ce=>{de.set(r(Ce),I(be[Ce]))},S)}return de}function St(d){if(d!==void 0)return{label:d.label,needsConfirmation:!!d.needsConfirmation,description:d.description}}function mn(d){let S=C(d.range),M=d.target?s(d.target):void 0,W=new Q_.default(S,M);return d.tooltip!==void 0&&(W.tooltip=d.tooltip),d.data!==void 0&&d.data!==null&&(W.data=d.data),W}async function zn(d,S){if(d)return Ve.map(d,mn,S)}function Kt(d){return new ee.Color(d.red,d.green,d.blue,d.alpha)}function nn(d){return new ee.ColorInformation(C(d.range),Kt(d.color))}async function yn(d,S){if(d)return Ve.map(d,nn,S)}function Gt(d){let S=new ee.ColorPresentation(d.label);return S.additionalTextEdits=I(d.additionalTextEdits),d.textEdit&&(S.textEdit=R(d.textEdit)),S}async function Rn(d,S){if(d)return Ve.map(d,Gt,S)}function bn(d){if(d)switch(d){case ke.FoldingRangeKind.Comment:return ee.FoldingRangeKind.Comment;case ke.FoldingRangeKind.Imports:return ee.FoldingRangeKind.Imports;case ke.FoldingRangeKind.Region:return ee.FoldingRangeKind.Region}}function xn(d){return new ee.FoldingRange(d.startLine,d.endLine,bn(d.kind))}async function Bn(d,S){if(d)return Ve.map(d,xn,S)}function vn(d){return new ee.SelectionRange(C(d.range),d.parent?vn(d.parent):void 0)}async function mt(d,S){return Array.isArray(d)?Ve.map(d,vn,S):[]}function In(d){return ke.InlineValueText.is(d)?new ee.InlineValueText(C(d.range),d.text):ke.InlineValueVariableLookup.is(d)?new ee.InlineValueVariableLookup(C(d.range),d.variableName,d.caseSensitiveLookup):new ee.InlineValueEvaluatableExpression(C(d.range),d.expression)}async function $n(d,S){return Array.isArray(d)?Ve.map(d,In,S):[]}async function Lt(d,S){const M=typeof d.label=="string"?d.label:await Ve.map(d.label,y,S),W=new r3.default(_(d.position),M);return d.kind!==void 0&&(W.kind=d.kind),d.textEdits!==void 0&&(W.textEdits=await P(d.textEdits,S)),d.tooltip!==void 0&&(W.tooltip=L(d.tooltip)),d.paddingLeft!==void 0&&(W.paddingLeft=d.paddingLeft),d.paddingRight!==void 0&&(W.paddingRight=d.paddingRight),d.data!==void 0&&(W.data=d.data),W}function y(d){const S=new ee.InlayHintLabelPart(d.value);return d.location!==void 0&&(S.location=Ee(d.location)),d.tooltip!==void 0&&(S.tooltip=L(d.tooltip)),d.command!==void 0&&(S.command=Rt(d.command)),S}function L(d){return typeof d=="string"?d:j(d)}async function te(d,S){if(Array.isArray(d))return Ve.mapAsync(d,Lt,S)}function Te(d){if(d===null)return;const S=new t3.default(oe(d.kind),d.name,d.detail||"",s(d.uri),C(d.range),C(d.selectionRange),d.data);return d.tags!==void 0&&(S.tags=we(d.tags)),S}async function xe(d,S){if(d!==null)return Ve.map(d,Te,S)}async function ut(d,S){return new ee.CallHierarchyIncomingCall(Te(d.from),await k(d.fromRanges,S))}async function T(d,S){if(d!==null)return Ve.mapAsync(d,ut,S)}async function U(d,S){return new ee.CallHierarchyOutgoingCall(Te(d.to),await k(d.fromRanges,S))}async function Y(d,S){if(d!==null)return Ve.mapAsync(d,U,S)}async function w(d,S){if(d!=null)return new ee.SemanticTokens(new Uint32Array(d.data),d.resultId)}function pe(d){return new ee.SemanticTokensEdit(d.start,d.deleteCount,d.data!==void 0?new Uint32Array(d.data):void 0)}async function me(d,S){if(d!=null)return new ee.SemanticTokensEdits(d.edits.map(pe),d.resultId)}function X(d){return d}async function h(d,S){if(d!=null)return new ee.LinkedEditingRanges(await k(d.ranges,S),D(d.wordPattern))}function D(d){if(d!=null)return new RegExp(d)}function x(d){if(d===null)return;let S=new n3.default(oe(d.kind),d.name,d.detail||"",s(d.uri),C(d.range),C(d.selectionRange),d.data);return d.tags!==void 0&&(S.tags=we(d.tags)),S}async function N(d,S){if(d!==null)return Ve.map(d,x,S)}function le(d){if(Kn.string(d))return d;if(ke.RelativePattern.is(d)){if(ke.URI.is(d.baseUri))return new ee.RelativePattern(s(d.baseUri),d.pattern);if(ke.WorkspaceFolder.is(d.baseUri)){const S=ee.workspace.getWorkspaceFolder(s(d.baseUri.uri));return S!==void 0?new ee.RelativePattern(S,d.pattern):void 0}}}async function ce(d,S){if(!d)return;if(Array.isArray(d))return Ve.map(d,de=>fe(de),S);const M=d,W=await Ve.map(M.items,de=>fe(de),S);return new ee.InlineCompletionList(W)}function fe(d){let S;typeof d.insertText=="string"?S=d.insertText:S=new ee.SnippetString(d.insertText.value);let M;d.command&&(M=Rt(d.command));const W=new ee.InlineCompletionItem(S,C(d.range),M);return d.filterText&&(W.filterText=d.filterText),W}return{asUri:s,asDocumentSelector:o,asDiagnostics:a,asDiagnostic:l,asRange:C,asRanges:k,asPosition:_,asDiagnosticSeverity:A,asDiagnosticTag:p,asHover:B,asCompletionResult:z,asCompletionItem:Le,asTextEdit:R,asTextEdits:P,asSignatureHelp:V,asSignatureInformations:Ae,asSignatureInformation:ve,asParameterInformations:lt,asParameterInformation:He,asDeclarationResult:st,asDefinitionResult:Fe,asLocation:Ee,asReferences:Ft,asDocumentHighlights:Xe,asDocumentHighlight:Ye,asDocumentHighlightKind:vt,asSymbolKind:oe,asSymbolTag:pt,asSymbolTags:we,asSymbolInformations:at,asSymbolInformation:Qe,asDocumentSymbols:en,asDocumentSymbol:tn,asCommand:Rt,asCommands:xt,asCodeAction:Dn,asCodeActionKind:Ut,asCodeActionKinds:Ln,asCodeActionResult:Tn,asCodeLens:Nn,asCodeLenses:kn,asWorkspaceEdit:ln,asDocumentLink:mn,asDocumentLinks:zn,asFoldingRangeKind:bn,asFoldingRange:xn,asFoldingRanges:Bn,asColor:Kt,asColorInformation:nn,asColorInformations:yn,asColorPresentation:Gt,asColorPresentations:Rn,asSelectionRange:vn,asSelectionRanges:mt,asInlineValue:In,asInlineValues:$n,asInlayHint:Lt,asInlayHints:te,asSemanticTokensLegend:X,asSemanticTokens:w,asSemanticTokensEdit:pe,asSemanticTokensEdits:me,asCallHierarchyItem:Te,asCallHierarchyItems:xe,asCallHierarchyIncomingCall:ut,asCallHierarchyIncomingCalls:T,asCallHierarchyOutgoingCall:U,asCallHierarchyOutgoingCalls:Y,asLinkedEditingRanges:h,asTypeHierarchyItem:x,asTypeHierarchyItems:N,asGlobPattern:le,asInlineCompletionResult:ce,asInlineCompletionItem:fe}}il.createConverter=s3;var la={};Object.defineProperty(la,"__esModule",{value:!0});la.ProgressPart=void 0;const x0=Re,I0=ye,E0=Ze;class o3{constructor(e,n,i){this._client=e,this._token=n,this._reported=0,this._infinite=!1,this._lspProgressDisposable=this._client.onProgress(I0.WorkDoneProgress.type,this._token,r=>{switch(r.kind){case"begin":this.begin(r);break;case"report":this.report(r);break;case"end":this.done(),i&&i(this);break}})}begin(e){this._infinite=e.percentage===void 0,this._lspProgressDisposable!==void 0&&x0.window.withProgress({location:x0.ProgressLocation.Window,cancellable:e.cancellable,title:e.title},async(n,i)=>{if(this._lspProgressDisposable!==void 0)return this._progress=n,this._cancellationToken=i,this._tokenDisposable=this._cancellationToken.onCancellationRequested(()=>{this._client.sendNotification(I0.WorkDoneProgressCancelNotification.type,{token:this._token})}),this.report(e),new Promise((r,s)=>{this._resolve=r,this._reject=s})})}report(e){if(this._infinite&&E0.string(e.message))this._progress!==void 0&&this._progress.report({message:e.message});else if(E0.number(e.percentage)){const n=Math.max(0,Math.min(e.percentage,100)),i=Math.max(0,n-this._reported);this._reported+=i,this._progress!==void 0&&this._progress.report({message:e.message,increment:i})}}cancel(){this.cleanup(),this._reject!==void 0&&(this._reject(),this._resolve=void 0,this._reject=void 0)}done(){this.cleanup(),this._resolve!==void 0&&(this._resolve(),this._resolve=void 0,this._reject=void 0)}cleanup(){this._lspProgressDisposable!==void 0&&(this._lspProgressDisposable.dispose(),this._lspProgressDisposable=void 0),this._tokenDisposable!==void 0&&(this._tokenDisposable.dispose(),this._tokenDisposable=void 0),this._progress=void 0,this._cancellationToken=void 0}}la.ProgressPart=o3;var rl={};Object.defineProperty(rl,"__esModule",{value:!0});rl.NotebookDocumentSyncFeature=void 0;const fn=Re,a3=Vc,qi=ye,c3=Be,P0=Ze;function A0(t,e){return t[e]===void 0&&(t[e]={}),t[e]}var fs;(function(t){(function(e){function n(g,p){return{version:g.version,uri:p.asUri(g.uri)}}e.asVersionedNotebookDocumentIdentifier=n;function i(g,p,_){const C=qi.NotebookDocument.create(_.asUri(g.uri),g.notebookType,g.version,r(p,_));return Object.keys(g.metadata).length>0&&(C.metadata=s(g.metadata)),C}e.asNotebookDocument=i;function r(g,p){return g.map(_=>o(_,p))}e.asNotebookCells=r;function s(g){return c(new Set,g)}e.asMetadata=s;function o(g,p){const _=qi.NotebookCell.create(a(g.kind),p.asUri(g.document.uri));return Object.keys(g.metadata).length>0&&(_.metadata=s(g.metadata)),g.executionSummary!==void 0&&P0.number(g.executionSummary.executionOrder)&&P0.boolean(g.executionSummary.success)&&(_.executionSummary={executionOrder:g.executionSummary.executionOrder,success:g.executionSummary.success}),_}e.asNotebookCell=o;function a(g){switch(g){case fn.NotebookCellKind.Markup:return qi.NotebookCellKind.Markup;case fn.NotebookCellKind.Code:return qi.NotebookCellKind.Code}}function c(g,p){if(g.has(p))throw new Error("Can't deep copy cyclic structures.");if(Array.isArray(p)){const _=[];for(const C of p)if(C!==null&&typeof C=="object"||Array.isArray(C))_.push(c(g,C));else{if(C instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");_.push(C)}return _}else{const _=Object.keys(p),C=Object.create(null);for(const k of _){const A=p[k];if(A!==null&&typeof A=="object"||Array.isArray(A))C[k]=c(g,A);else{if(A instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");C[k]=A}}return C}}function l(g,p){const _=p.asChangeTextDocumentParams(g,g.document.uri,g.document.version);return{document:_.textDocument,changes:_.contentChanges}}e.asTextContentChange=l;function f(g,p){const _=Object.create(null);if(g.metadata&&(_.metadata=t.c2p.asMetadata(g.metadata)),g.cells!==void 0){const C=Object.create(null),k=g.cells;k.structure&&(C.structure={array:{start:k.structure.array.start,deleteCount:k.structure.array.deleteCount,cells:k.structure.array.cells!==void 0?k.structure.array.cells.map(A=>t.c2p.asNotebookCell(A,p)):void 0},didOpen:k.structure.didOpen!==void 0?k.structure.didOpen.map(A=>p.asOpenTextDocumentParams(A.document).textDocument):void 0,didClose:k.structure.didClose!==void 0?k.structure.didClose.map(A=>p.asCloseTextDocumentParams(A.document).textDocument):void 0}),k.data!==void 0&&(C.data=k.data.map(A=>t.c2p.asNotebookCell(A,p))),k.textContent!==void 0&&(C.textContent=k.textContent.map(A=>t.c2p.asTextContentChange(A,p))),Object.keys(C).length>0&&(_.cells=C)}return _}e.asNotebookDocumentChangeEvent=f})(t.c2p||(t.c2p={}))})(fs||(fs={}));var L1;(function(t){function e(a,c,l){const f=a.length,g=c.length;let p=0;for(;p<g&&p<f&&n(a[p],c[p],l);)p++;if(p<g&&p<f){let _=f-1,C=g-1;for(;_>=0&&C>=0&&n(a[_],c[C],l);)_--,C--;const k=_+1-p,A=p===C+1?void 0:c.slice(p,C+1);return A!==void 0?{start:p,deleteCount:k,cells:A}:{start:p,deleteCount:k}}else return p<g?{start:p,deleteCount:0,cells:c.slice(p)}:p<f?{start:p,deleteCount:f-p}:void 0}t.computeDiff=e;function n(a,c,l=!0){return a.kind!==c.kind||a.document.uri.toString()!==c.document.uri.toString()||a.document.languageId!==c.document.languageId||!i(a.executionSummary,c.executionSummary)?!1:!l||l&&s(a.metadata,c.metadata)}function i(a,c){return a===c?!0:a===void 0||c===void 0?!1:a.executionOrder===c.executionOrder&&a.success===c.success&&r(a.timing,c.timing)}function r(a,c){return a===c?!0:a===void 0||c===void 0?!1:a.startTime===c.startTime&&a.endTime===c.endTime}function s(a,c){if(a===c)return!0;if(a==null||c===null||c===void 0||typeof a!=typeof c||typeof a!="object")return!1;const l=Array.isArray(a),f=Array.isArray(c);if(l!==f)return!1;if(l&&f){if(a.length!==c.length)return!1;for(let g=0;g<a.length;g++)if(!s(a[g],c[g]))return!1}if(o(a)&&o(c)){const g=Object.keys(a),p=Object.keys(c);if(g.length!==p.length||(g.sort(),p.sort(),!s(g,p)))return!1;for(let _=0;_<g.length;_++){const C=g[_];if(!s(a[C],c[C]))return!1}return!0}return!1}function o(a){return a!==null&&typeof a=="object"}t.isObjectLiteral=o})(L1||(L1={}));var N1;(function(t){function e(n,i){if(typeof n=="string")return n==="*"||i.notebookType===n;if(n.notebookType!==void 0&&n.notebookType!=="*"&&i.notebookType!==n.notebookType)return!1;const r=i.uri;if(n.scheme!==void 0&&n.scheme!=="*"&&r.scheme!==n.scheme)return!1;if(n.pattern!==void 0){const s=new a3.Minimatch(n.pattern,{noext:!0});if(!s.makeRe()||!s.match(r.fsPath))return!1}return!0}t.matchNotebook=e})(N1||(N1={}));var wc;(function(t){function e(i){var o,a,c;const r=i.notebookSelector,s=[];for(const l of r){const f=(typeof l.notebook=="string"?l.notebook:(o=l.notebook)==null?void 0:o.notebookType)??"*",g=typeof l.notebook=="string"||(a=l.notebook)==null?void 0:a.scheme,p=typeof l.notebook=="string"||(c=l.notebook)==null?void 0:c.pattern;if(l.cells!==void 0)for(const _ of l.cells)s.push(n(f,g,p,_.language));else s.push(n(f,g,p,void 0))}return s}t.asDocumentSelector=e;function n(i,r,s,o){return r===void 0&&s===void 0?{notebook:i,language:o}:{notebook:{notebookType:i,scheme:r,pattern:s},language:o}}})(wc||(wc={}));var Cc;(function(t){function e(n){return{cells:n,uris:new Set(n.map(i=>i.document.uri.toString()))}}t.create=e})(Cc||(Cc={}));class wa{constructor(e,n){this.client=e,this.options=n,this.notebookSyncInfo=new Map,this.notebookDidOpen=new Set,this.disposables=[],this.selector=e.protocol2CodeConverter.asDocumentSelector(wc.asDocumentSelector(n)),fn.workspace.onDidOpenNotebookDocument(i=>{this.notebookDidOpen.add(i.uri.toString()),this.didOpen(i)},void 0,this.disposables);for(const i of fn.workspace.notebookDocuments)this.notebookDidOpen.add(i.uri.toString()),this.didOpen(i);fn.workspace.onDidChangeNotebookDocument(i=>this.didChangeNotebookDocument(i),void 0,this.disposables),this.options.save===!0&&fn.workspace.onDidSaveNotebookDocument(i=>this.didSave(i),void 0,this.disposables),fn.workspace.onDidCloseNotebookDocument(i=>{this.didClose(i),this.notebookDidOpen.delete(i.uri.toString())},void 0,this.disposables)}getState(){for(const e of fn.workspace.notebookDocuments)if(this.getMatchingCells(e)!==void 0)return{kind:"document",id:"$internal",registrations:!0,matches:!0};return{kind:"document",id:"$internal",registrations:!0,matches:!1}}get mode(){return"notebook"}handles(e){return fn.languages.match(this.selector,e)>0}didOpenNotebookCellTextDocument(e,n){if(fn.languages.match(this.selector,n.document)===0||!this.notebookDidOpen.has(e.uri.toString()))return;const i=this.notebookSyncInfo.get(e.uri.toString()),r=this.cellMatches(e,n);if(i!==void 0){const s=i.uris.has(n.document.uri.toString());if(r&&s||!r&&!s)return;if(r){const o=this.getMatchingCells(e);if(o!==void 0){const a=this.asNotebookDocumentChangeEvent(e,void 0,i,o);a!==void 0&&this.doSendChange(a,o).catch(()=>{})}}}else r&&this.doSendOpen(e,[n]).catch(()=>{})}didChangeNotebookCellTextDocument(e,n){fn.languages.match(this.selector,n.document)!==0&&this.doSendChange({notebook:e,cells:{textContent:[n]}},void 0).catch(()=>{})}didCloseNotebookCellTextDocument(e,n){const i=this.notebookSyncInfo.get(e.uri.toString());if(i===void 0)return;const r=n.document.uri,s=i.cells.findIndex(o=>o.document.uri.toString()===r.toString());if(s!==-1)if(s===0&&i.cells.length===1)this.doSendClose(e,i.cells).catch(()=>{});else{const o=i.cells.slice(),a=o.splice(s,1);this.doSendChange({notebook:e,cells:{structure:{array:{start:s,deleteCount:1},didClose:a}}},o).catch(()=>{})}}dispose(){for(const e of this.disposables)e.dispose()}didOpen(e,n=this.getMatchingCells(e),i=this.notebookSyncInfo.get(e.uri.toString())){if(i!==void 0)if(n!==void 0){const r=this.asNotebookDocumentChangeEvent(e,void 0,i,n);r!==void 0&&this.doSendChange(r,n).catch(()=>{})}else this.doSendClose(e,[]).catch(()=>{});else{if(n===void 0)return;this.doSendOpen(e,n).catch(()=>{})}}didChangeNotebookDocument(e){const n=e.notebook,i=this.notebookSyncInfo.get(n.uri.toString());if(i===void 0){if(e.contentChanges.length===0)return;const r=this.getMatchingCells(n);if(r===void 0)return;this.didOpen(n,r,i)}else{const r=this.getMatchingCells(n);if(r===void 0){this.didClose(n,i);return}const s=this.asNotebookDocumentChangeEvent(e.notebook,e,i,r);s!==void 0&&this.doSendChange(s,r).catch(()=>{})}}didSave(e){this.notebookSyncInfo.get(e.uri.toString())!==void 0&&this.doSendSave(e).catch(()=>{})}didClose(e,n=this.notebookSyncInfo.get(e.uri.toString())){if(n===void 0)return;const i=e.getCells().filter(r=>n.uris.has(r.document.uri.toString()));this.doSendClose(e,i).catch(()=>{})}async sendDidOpenNotebookDocument(e){const n=this.getMatchingCells(e);if(n!==void 0)return this.doSendOpen(e,n)}async doSendOpen(e,n){var s;const i=async(o,a)=>{const c=fs.c2p.asNotebookDocument(o,a,this.client.code2ProtocolConverter),l=a.map(f=>this.client.code2ProtocolConverter.asTextDocumentItem(f.document));try{await this.client.sendNotification(qi.DidOpenNotebookDocumentNotification.type,{notebookDocument:c,cellTextDocuments:l})}catch(f){throw this.client.error("Sending DidOpenNotebookDocumentNotification failed",f),f}},r=(s=this.client.middleware)==null?void 0:s.notebooks;return this.notebookSyncInfo.set(e.uri.toString(),Cc.create(n)),(r==null?void 0:r.didOpen)!==void 0?r.didOpen(e,n,i):i(e,n)}async sendDidChangeNotebookDocument(e){return this.doSendChange(e,void 0)}async doSendChange(e,n=this.getMatchingCells(e.notebook)){var s,o;const i=async a=>{try{await this.client.sendNotification(qi.DidChangeNotebookDocumentNotification.type,{notebookDocument:fs.c2p.asVersionedNotebookDocumentIdentifier(a.notebook,this.client.code2ProtocolConverter),change:fs.c2p.asNotebookDocumentChangeEvent(a,this.client.code2ProtocolConverter)})}catch(c){throw this.client.error("Sending DidChangeNotebookDocumentNotification failed",c),c}},r=(s=this.client.middleware)==null?void 0:s.notebooks;return((o=e.cells)==null?void 0:o.structure)!==void 0&&this.notebookSyncInfo.set(e.notebook.uri.toString(),Cc.create(n??[])),(r==null?void 0:r.didChange)!==void 0?r==null?void 0:r.didChange(e,i):i(e)}async sendDidSaveNotebookDocument(e){return this.doSendSave(e)}async doSendSave(e){var r;const n=async s=>{try{await this.client.sendNotification(qi.DidSaveNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(s.uri)}})}catch(o){throw this.client.error("Sending DidSaveNotebookDocumentNotification failed",o),o}},i=(r=this.client.middleware)==null?void 0:r.notebooks;return(i==null?void 0:i.didSave)!==void 0?i.didSave(e,n):n(e)}async sendDidCloseNotebookDocument(e){return this.doSendClose(e,this.getMatchingCells(e)??[])}async doSendClose(e,n){var s;const i=async(o,a)=>{try{await this.client.sendNotification(qi.DidCloseNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(o.uri)},cellTextDocuments:a.map(c=>this.client.code2ProtocolConverter.asTextDocumentIdentifier(c.document))})}catch(c){throw this.client.error("Sending DidCloseNotebookDocumentNotification failed",c),c}},r=(s=this.client.middleware)==null?void 0:s.notebooks;return this.notebookSyncInfo.delete(e.uri.toString()),(r==null?void 0:r.didClose)!==void 0?r.didClose(e,n,i):i(e,n)}asNotebookDocumentChangeEvent(e,n,i,r){if(n!==void 0&&n.notebook!==e)throw new Error("Notebook must be identical");const s={notebook:e};(n==null?void 0:n.metadata)!==void 0&&(s.metadata=fs.c2p.asMetadata(n.metadata));let o;if((n==null?void 0:n.cellChanges)!==void 0&&n.cellChanges.length>0){const a=[];o=new Set(r.map(c=>c.document.uri.toString()));for(const c of n.cellChanges)o.has(c.cell.document.uri.toString())&&(c.executionSummary!==void 0||c.metadata!==void 0)&&a.push(c.cell);a.length>0&&(s.cells=s.cells??{},s.cells.data=a)}if(((n==null?void 0:n.contentChanges)!==void 0&&n.contentChanges.length>0||n===void 0)&&i!==void 0&&r!==void 0){const a=i.cells,c=r,l=L1.computeDiff(a,c,!1);let f,g;if(l!==void 0){f=l.cells===void 0?new Map:new Map(l.cells.map(C=>[C.document.uri.toString(),C])),g=l.deleteCount===0?new Map:new Map(a.slice(l.start,l.start+l.deleteCount).map(C=>[C.document.uri.toString(),C]));for(const C of Array.from(g.keys()))f.has(C)&&(g.delete(C),f.delete(C));s.cells=s.cells??{};const p=[],_=[];if(f.size>0||g.size>0){for(const C of f.values())p.push(C);for(const C of g.values())_.push(C)}s.cells.structure={array:l,didOpen:p,didClose:_}}}return Object.keys(s).length>1?s:void 0}getMatchingCells(e,n=e.getCells()){if(this.options.notebookSelector!==void 0){for(const i of this.options.notebookSelector)if(i.notebook===void 0||N1.matchNotebook(i.notebook,e)){const r=this.filterCells(e,n,i.cells);return r.length===0?void 0:r}}}cellMatches(e,n){const i=this.getMatchingCells(e,[n]);return i!==void 0&&i[0]===n}filterCells(e,n,i){var s;const r=i!==void 0?n.filter(o=>{const a=o.document.languageId;return i.some(c=>c.language==="*"||a===c.language)}):n;return typeof((s=this.client.clientOptions.notebookDocumentOptions)==null?void 0:s.filterCells)=="function"?this.client.clientOptions.notebookDocumentOptions.filterCells(e,r):r}}class qr{constructor(e){this.client=e,this.registrations=new Map,this.registrationType=qi.NotebookDocumentSyncRegistrationType.type,fn.workspace.onDidOpenTextDocument(n=>{if(n.uri.scheme!==qr.CellScheme)return;const[i,r]=this.findNotebookDocumentAndCell(n);if(!(i===void 0||r===void 0))for(const s of this.registrations.values())s instanceof wa&&s.didOpenNotebookCellTextDocument(i,r)}),fn.workspace.onDidChangeTextDocument(n=>{if(n.contentChanges.length===0)return;const i=n.document;if(i.uri.scheme!==qr.CellScheme)return;const[r]=this.findNotebookDocumentAndCell(i);if(r!==void 0)for(const s of this.registrations.values())s instanceof wa&&s.didChangeNotebookCellTextDocument(r,n)}),fn.workspace.onDidCloseTextDocument(n=>{if(n.uri.scheme!==qr.CellScheme)return;const[i,r]=this.findNotebookDocumentAndCell(n);if(!(i===void 0||r===void 0))for(const s of this.registrations.values())s instanceof wa&&s.didCloseNotebookCellTextDocument(i,r)})}getState(){if(this.registrations.size===0)return{kind:"document",id:this.registrationType.method,registrations:!1,matches:!1};for(const e of this.registrations.values()){const n=e.getState();if(n.kind==="document"&&n.registrations===!0&&n.matches===!0)return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!0}}return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!1}}fillClientCapabilities(e){const n=A0(A0(e,"notebookDocument"),"synchronization");n.dynamicRegistration=!0,n.executionSummarySupport=!0}preInitialize(e){const n=e.notebookDocumentSync;n!==void 0&&(this.dedicatedChannel=this.client.protocol2CodeConverter.asDocumentSelector(wc.asDocumentSelector(n)))}initialize(e){const n=e.notebookDocumentSync;if(n===void 0)return;const i=n.id??c3.generateUuid();this.register({id:i,registerOptions:n})}register(e){const n=new wa(this.client,e.registerOptions);this.registrations.set(e.id,n)}unregister(e){const n=this.registrations.get(e);n&&n.dispose()}clear(){for(const e of this.registrations.values())e.dispose();this.registrations.clear()}handles(e){if(e.uri.scheme!==qr.CellScheme)return!1;if(this.dedicatedChannel!==void 0&&fn.languages.match(this.dedicatedChannel,e)>0)return!0;for(const n of this.registrations.values())if(n.handles(e))return!0;return!1}getProvider(e){for(const n of this.registrations.values())if(n.handles(e.document))return n}findNotebookDocumentAndCell(e){const n=e.uri.toString();for(const i of fn.workspace.notebookDocuments)for(const r of i.getCells())if(r.document.uri.toString()===n)return[i,r];return[void 0,void 0]}}rl.NotebookDocumentSyncFeature=qr;qr.CellScheme="vscode-notebook-cell";var hr={};Object.defineProperty(hr,"__esModule",{value:!0});hr.SyncConfigurationFeature=hr.toJSONObject=hr.ConfigurationFeature=void 0;const ks=Re,vo=ye,l3=Ze,u3=Be,M0=De;class d3{constructor(e){this._client=e}getState(){return{kind:"static"}}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.configuration=!0}initialize(){let e=this._client;e.onRequest(vo.ConfigurationRequest.type,(n,i)=>{let r=o=>{let a=[];for(let c of o.items){let l=c.scopeUri!==void 0&&c.scopeUri!==null?this._client.protocol2CodeConverter.asUri(c.scopeUri):void 0;a.push(this.getConfiguration(l,c.section!==null?c.section:void 0))}return a},s=e.middleware.workspace;return s&&s.configuration?s.configuration(n,i,r):r(n)})}getConfiguration(e,n){let i=null;if(n){let r=n.lastIndexOf(".");if(r===-1)i=Vr(ks.workspace.getConfiguration(void 0,e).get(n));else{let s=ks.workspace.getConfiguration(n.substr(0,r),e);s&&(i=Vr(s.get(n.substr(r+1))))}}else{let r=ks.workspace.getConfiguration(void 0,e);i={};for(let s of Object.keys(r))r.has(s)&&(i[s]=Vr(r.get(s)))}return i===void 0&&(i=null),i}clear(){}}hr.ConfigurationFeature=d3;function Vr(t){if(t){if(Array.isArray(t))return t.map(Vr);if(typeof t=="object"){const e=Object.create(null);for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=Vr(t[n]));return e}}return t}hr.toJSONObject=Vr;class f3{constructor(e){this._client=e,this.isCleared=!1,this._listeners=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._listeners.size>0}}get registrationType(){return vo.DidChangeConfigurationNotification.type}fillClientCapabilities(e){(0,M0.ensure)((0,M0.ensure)(e,"workspace"),"didChangeConfiguration").dynamicRegistration=!0}initialize(){var n;this.isCleared=!1;let e=(n=this._client.clientOptions.synchronize)==null?void 0:n.configurationSection;e!==void 0&&this.register({id:u3.generateUuid(),registerOptions:{section:e}})}register(e){let n=ks.workspace.onDidChangeConfiguration(i=>{this.onDidChangeConfiguration(e.registerOptions.section,i)});this._listeners.set(e.id,n),e.registerOptions.section!==void 0&&this.onDidChangeConfiguration(e.registerOptions.section,void 0)}unregister(e){let n=this._listeners.get(e);n&&(this._listeners.delete(e),n.dispose())}clear(){for(const e of this._listeners.values())e.dispose();this._listeners.clear(),this.isCleared=!0}onDidChangeConfiguration(e,n){var o;if(this.isCleared)return;let i;if(l3.string(e)?i=[e]:i=e,i!==void 0&&n!==void 0&&!i.some(c=>n.affectsConfiguration(c)))return;const r=async a=>a===void 0?this._client.sendNotification(vo.DidChangeConfigurationNotification.type,{settings:null}):this._client.sendNotification(vo.DidChangeConfigurationNotification.type,{settings:this.extractSettingsInformation(a)});let s=(o=this._client.middleware.workspace)==null?void 0:o.didChangeConfiguration;(s?s(i,r):r(i)).catch(a=>{this._client.error(`Sending notification ${vo.DidChangeConfigurationNotification.type.method} failed`,a)})}extractSettingsInformation(e){function n(s,o){let a=s;for(let c=0;c<o.length-1;c++){let l=a[o[c]];l||(l=Object.create(null),a[o[c]]=l),a=l}return a}let i=this._client.clientOptions.workspaceFolder?this._client.clientOptions.workspaceFolder.uri:void 0,r=Object.create(null);for(let s=0;s<e.length;s++){let o=e[s],a=o.indexOf("."),c=null;if(a>=0?c=ks.workspace.getConfiguration(o.substr(0,a),i).get(o.substr(a+1)):c=ks.workspace.getConfiguration(void 0,i).get(o),c){let l=e[s].split(".");n(r,l)[l[l.length-1]]=Vr(c)}}return r}}hr.SyncConfigurationFeature=f3;var On={};Object.defineProperty(On,"__esModule",{value:!0});On.DidSaveTextDocumentFeature=On.WillSaveWaitUntilFeature=On.WillSaveFeature=On.DidChangeTextDocumentFeature=On.DidCloseTextDocumentFeature=On.DidOpenTextDocumentFeature=void 0;const Wn=Re,ft=ye,Tt=De,Ks=Be;class h3 extends Tt.TextDocumentEventFeature{constructor(e,n){super(e,Wn.workspace.onDidOpenTextDocument,ft.DidOpenTextDocumentNotification.type,()=>e.middleware.didOpen,i=>e.code2ProtocolConverter.asOpenTextDocumentParams(i),i=>i,Tt.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=n}get openDocuments(){return this._syncedDocuments.values()}fillClientCapabilities(e){(0,Tt.ensure)((0,Tt.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,n){const i=e.resolvedTextDocumentSync;n&&i&&i.openClose&&this.register({id:Ks.generateUuid(),registerOptions:{documentSelector:n}})}get registrationType(){return ft.DidOpenTextDocumentNotification.type}register(e){if(super.register(e),!e.registerOptions.documentSelector)return;const n=this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector);Wn.workspace.textDocuments.forEach(i=>{const r=i.uri.toString();if(!this._syncedDocuments.has(r)&&Wn.languages.match(n,i)>0&&!this._client.hasDedicatedTextSynchronizationFeature(i)){const s=this._client.middleware,o=a=>this._client.sendNotification(this._type,this._createParams(a));(s.didOpen?s.didOpen(i,o):o(i)).catch(a=>{this._client.error(`Sending document notification ${this._type.method} failed`,a)}),this._syncedDocuments.set(r,i)}})}getTextDocument(e){return e}notificationSent(e,n,i){this._syncedDocuments.set(e.uri.toString(),e),super.notificationSent(e,n,i)}}On.DidOpenTextDocumentFeature=h3;class g3 extends Tt.TextDocumentEventFeature{constructor(e,n,i){super(e,Wn.workspace.onDidCloseTextDocument,ft.DidCloseTextDocumentNotification.type,()=>e.middleware.didClose,r=>e.code2ProtocolConverter.asCloseTextDocumentParams(r),r=>r,Tt.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=n,this._pendingTextDocumentChanges=i}get registrationType(){return ft.DidCloseTextDocumentNotification.type}fillClientCapabilities(e){(0,Tt.ensure)((0,Tt.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,n){let i=e.resolvedTextDocumentSync;n&&i&&i.openClose&&this.register({id:Ks.generateUuid(),registerOptions:{documentSelector:n}})}async callback(e){await super.callback(e),this._pendingTextDocumentChanges.delete(e.uri.toString())}getTextDocument(e){return e}notificationSent(e,n,i){this._syncedDocuments.delete(e.uri.toString()),super.notificationSent(e,n,i)}unregister(e){const n=this._selectors.get(e);super.unregister(e);const i=this._selectors.values();this._syncedDocuments.forEach(r=>{if(Wn.languages.match(n,r)>0&&!this._selectorFilter(i,r)&&!this._client.hasDedicatedTextSynchronizationFeature(r)){let s=this._client.middleware,o=a=>this._client.sendNotification(this._type,this._createParams(a));this._syncedDocuments.delete(r.uri.toString()),(s.didClose?s.didClose(r,o):o(r)).catch(a=>{this._client.error(`Sending document notification ${this._type.method} failed`,a)})}})}}On.DidCloseTextDocumentFeature=g3;class p3 extends Tt.DynamicDocumentFeature{constructor(e,n){super(e),this._changeData=new Map,this._onNotificationSent=new Wn.EventEmitter,this._onPendingChangeAdded=new Wn.EventEmitter,this._pendingTextDocumentChanges=n,this._syncKind=ft.TextDocumentSyncKind.None}get onNotificationSent(){return this._onNotificationSent.event}get onPendingChangeAdded(){return this._onPendingChangeAdded.event}get syncKind(){return this._syncKind}get registrationType(){return ft.DidChangeTextDocumentNotification.type}fillClientCapabilities(e){(0,Tt.ensure)((0,Tt.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,n){let i=e.resolvedTextDocumentSync;n&&i&&i.change!==void 0&&i.change!==ft.TextDocumentSyncKind.None&&this.register({id:Ks.generateUuid(),registerOptions:Object.assign({},{documentSelector:n},{syncKind:i.change})})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=Wn.workspace.onDidChangeTextDocument(this.callback,this)),this._changeData.set(e.id,{syncKind:e.registerOptions.syncKind,documentSelector:this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)}),this.updateSyncKind(e.registerOptions.syncKind))}*getDocumentSelectors(){for(const e of this._changeData.values())yield e.documentSelector}async callback(e){if(e.contentChanges.length===0)return;const n=e.document.uri,i=e.document.version,r=[];for(const s of this._changeData.values())if(Wn.languages.match(s.documentSelector,e.document)>0&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){const o=this._client.middleware;if(s.syncKind===ft.TextDocumentSyncKind.Incremental){const a=async c=>{const l=this._client.code2ProtocolConverter.asChangeTextDocumentParams(c,n,i);await this._client.sendNotification(ft.DidChangeTextDocumentNotification.type,l),this.notificationSent(c.document,ft.DidChangeTextDocumentNotification.type,l)};r.push(o.didChange?o.didChange(e,c=>a(c)):a(e))}else if(s.syncKind===ft.TextDocumentSyncKind.Full){const a=async c=>{const l=c.document.uri.toString();this._pendingTextDocumentChanges.set(l,c.document),this._onPendingChangeAdded.fire()};r.push(o.didChange?o.didChange(e,c=>a(c)):a(e))}}return Promise.all(r).then(void 0,s=>{throw this._client.error(`Sending document notification ${ft.DidChangeTextDocumentNotification.type.method} failed`,s),s})}notificationSent(e,n,i){this._onNotificationSent.fire({textDocument:e,type:n,params:i})}unregister(e){if(this._changeData.delete(e),this._changeData.size===0)this._listener&&(this._listener.dispose(),this._listener=void 0),this._syncKind=ft.TextDocumentSyncKind.None;else{this._syncKind=ft.TextDocumentSyncKind.None;for(const n of this._changeData.values())if(this.updateSyncKind(n.syncKind),this._syncKind===ft.TextDocumentSyncKind.Full)break}}clear(){this._pendingTextDocumentChanges.clear(),this._changeData.clear(),this._syncKind=ft.TextDocumentSyncKind.None,this._listener&&(this._listener.dispose(),this._listener=void 0)}getPendingDocumentChanges(e){if(this._pendingTextDocumentChanges.size===0)return[];let n;if(e.size===0)n=Array.from(this._pendingTextDocumentChanges.values()),this._pendingTextDocumentChanges.clear();else{n=[];for(const i of this._pendingTextDocumentChanges)e.has(i[0])||(n.push(i[1]),this._pendingTextDocumentChanges.delete(i[0]))}return n}getProvider(e){for(const n of this._changeData.values())if(Wn.languages.match(n.documentSelector,e)>0)return{send:i=>this.callback(i)}}updateSyncKind(e){if(this._syncKind!==ft.TextDocumentSyncKind.Full)switch(e){case ft.TextDocumentSyncKind.Full:this._syncKind=e;break;case ft.TextDocumentSyncKind.Incremental:this._syncKind===ft.TextDocumentSyncKind.None&&(this._syncKind=ft.TextDocumentSyncKind.Incremental);break}}}On.DidChangeTextDocumentFeature=p3;class m3 extends Tt.TextDocumentEventFeature{constructor(e){super(e,Wn.workspace.onWillSaveTextDocument,ft.WillSaveTextDocumentNotification.type,()=>e.middleware.willSave,n=>e.code2ProtocolConverter.asWillSaveTextDocumentParams(n),n=>n.document,(n,i)=>Tt.TextDocumentEventFeature.textDocumentFilter(n,i.document))}get registrationType(){return ft.WillSaveTextDocumentNotification.type}fillClientCapabilities(e){let n=(0,Tt.ensure)((0,Tt.ensure)(e,"textDocument"),"synchronization");n.willSave=!0}initialize(e,n){let i=e.resolvedTextDocumentSync;n&&i&&i.willSave&&this.register({id:Ks.generateUuid(),registerOptions:{documentSelector:n}})}getTextDocument(e){return e.document}}On.WillSaveFeature=m3;class y3 extends Tt.DynamicDocumentFeature{constructor(e){super(e),this._selectors=new Map}getDocumentSelectors(){return this._selectors.values()}get registrationType(){return ft.WillSaveTextDocumentWaitUntilRequest.type}fillClientCapabilities(e){let n=(0,Tt.ensure)((0,Tt.ensure)(e,"textDocument"),"synchronization");n.willSaveWaitUntil=!0}initialize(e,n){let i=e.resolvedTextDocumentSync;n&&i&&i.willSaveWaitUntil&&this.register({id:Ks.generateUuid(),registerOptions:{documentSelector:n}})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=Wn.workspace.onWillSaveTextDocument(this.callback,this)),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)))}callback(e){if(Tt.TextDocumentEventFeature.textDocumentFilter(this._selectors.values(),e.document)&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){let n=this._client.middleware,i=r=>this._client.sendRequest(ft.WillSaveTextDocumentWaitUntilRequest.type,this._client.code2ProtocolConverter.asWillSaveTextDocumentParams(r)).then(async s=>{let o=await this._client.protocol2CodeConverter.asTextEdits(s);return o===void 0?[]:o});e.waitUntil(n.willSaveWaitUntil?n.willSaveWaitUntil(e,i):i(e))}}unregister(e){this._selectors.delete(e),this._selectors.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._selectors.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}}On.WillSaveWaitUntilFeature=y3;class b3 extends Tt.TextDocumentEventFeature{constructor(e){super(e,Wn.workspace.onDidSaveTextDocument,ft.DidSaveTextDocumentNotification.type,()=>e.middleware.didSave,n=>e.code2ProtocolConverter.asSaveTextDocumentParams(n,this._includeText),n=>n,Tt.TextDocumentEventFeature.textDocumentFilter),this._includeText=!1}get registrationType(){return ft.DidSaveTextDocumentNotification.type}fillClientCapabilities(e){(0,Tt.ensure)((0,Tt.ensure)(e,"textDocument"),"synchronization").didSave=!0}initialize(e,n){const i=e.resolvedTextDocumentSync;if(n&&i&&i.save){const r=typeof i.save=="boolean"?{includeText:!1}:{includeText:!!i.save.includeText};this.register({id:Ks.generateUuid(),registerOptions:Object.assign({},{documentSelector:n},r)})}}register(e){this._includeText=!!e.registerOptions.includeText,super.register(e)}getTextDocument(e){return e}}On.DidSaveTextDocumentFeature=b3;var sl={};Object.defineProperty(sl,"__esModule",{value:!0});sl.CompletionItemFeature=void 0;const v3=Re,We=ye,Ql=De,w3=Be,C3=[We.CompletionItemKind.Text,We.CompletionItemKind.Method,We.CompletionItemKind.Function,We.CompletionItemKind.Constructor,We.CompletionItemKind.Field,We.CompletionItemKind.Variable,We.CompletionItemKind.Class,We.CompletionItemKind.Interface,We.CompletionItemKind.Module,We.CompletionItemKind.Property,We.CompletionItemKind.Unit,We.CompletionItemKind.Value,We.CompletionItemKind.Enum,We.CompletionItemKind.Keyword,We.CompletionItemKind.Snippet,We.CompletionItemKind.Color,We.CompletionItemKind.File,We.CompletionItemKind.Reference,We.CompletionItemKind.Folder,We.CompletionItemKind.EnumMember,We.CompletionItemKind.Constant,We.CompletionItemKind.Struct,We.CompletionItemKind.Event,We.CompletionItemKind.Operator,We.CompletionItemKind.TypeParameter];class _3 extends Ql.TextDocumentLanguageFeature{constructor(e){super(e,We.CompletionRequest.type),this.labelDetailsSupport=new Map}fillClientCapabilities(e){let n=(0,Ql.ensure)((0,Ql.ensure)(e,"textDocument"),"completion");n.dynamicRegistration=!0,n.contextSupport=!0,n.completionItem={snippetSupport:!0,commitCharactersSupport:!0,documentationFormat:[We.MarkupKind.Markdown,We.MarkupKind.PlainText],deprecatedSupport:!0,preselectSupport:!0,tagSupport:{valueSet:[We.CompletionItemTag.Deprecated]},insertReplaceSupport:!0,resolveSupport:{properties:["documentation","detail","additionalTextEdits"]},insertTextModeSupport:{valueSet:[We.InsertTextMode.asIs,We.InsertTextMode.adjustIndentation]},labelDetailsSupport:!0},n.insertTextMode=We.InsertTextMode.adjustIndentation,n.completionItemKind={valueSet:C3},n.completionList={itemDefaults:["commitCharacters","editRange","insertTextFormat","insertTextMode","data"]}}initialize(e,n){const i=this.getRegistrationOptions(n,e.completionProvider);i&&this.register({id:w3.generateUuid(),registerOptions:i})}registerLanguageProvider(e,n){var a;this.labelDetailsSupport.set(n,!!((a=e.completionItem)!=null&&a.labelDetailsSupport));const i=e.triggerCharacters??[],r=e.allCommitCharacters,s=e.documentSelector,o={provideCompletionItems:(c,l,f,g)=>{const p=this._client,_=this._client.middleware,C=(k,A,H,K)=>p.sendRequest(We.CompletionRequest.type,p.code2ProtocolConverter.asCompletionParams(k,A,H),K).then(j=>K.isCancellationRequested?null:p.protocol2CodeConverter.asCompletionResult(j,r,K),j=>p.handleFailedRequest(We.CompletionRequest.type,K,j,null));return _.provideCompletionItem?_.provideCompletionItem(c,l,g,f,C):C(c,l,g,f)},resolveCompletionItem:e.resolveProvider?(c,l)=>{const f=this._client,g=this._client.middleware,p=(_,C)=>f.sendRequest(We.CompletionResolveRequest.type,f.code2ProtocolConverter.asCompletionItem(_,!!this.labelDetailsSupport.get(n)),C).then(k=>C.isCancellationRequested?null:f.protocol2CodeConverter.asCompletionItem(k),k=>f.handleFailedRequest(We.CompletionResolveRequest.type,C,k,_));return g.resolveCompletionItem?g.resolveCompletionItem(c,l,p):p(c,l)}:void 0};return[v3.languages.registerCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(s),o,...i),o]}}sl.CompletionItemFeature=_3;var ol={};Object.defineProperty(ol,"__esModule",{value:!0});ol.HoverFeature=void 0;const S3=Re,Ys=ye,eu=De,D3=Be;class T3 extends eu.TextDocumentLanguageFeature{constructor(e){super(e,Ys.HoverRequest.type)}fillClientCapabilities(e){const n=(0,eu.ensure)((0,eu.ensure)(e,"textDocument"),"hover");n.dynamicRegistration=!0,n.contentFormat=[Ys.MarkupKind.Markdown,Ys.MarkupKind.PlainText]}initialize(e,n){const i=this.getRegistrationOptions(n,e.hoverProvider);i&&this.register({id:D3.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideHover:(r,s,o)=>{const a=this._client,c=(f,g,p)=>a.sendRequest(Ys.HoverRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,g),p).then(_=>p.isCancellationRequested?null:a.protocol2CodeConverter.asHover(_),_=>a.handleFailedRequest(Ys.HoverRequest.type,p,_,null)),l=a.middleware;return l.provideHover?l.provideHover(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return S3.languages.registerHoverProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}ol.HoverFeature=T3;var al={};Object.defineProperty(al,"__esModule",{value:!0});al.DefinitionFeature=void 0;const k3=Re,tu=ye,nu=De,R3=Be;class x3 extends nu.TextDocumentLanguageFeature{constructor(e){super(e,tu.DefinitionRequest.type)}fillClientCapabilities(e){let n=(0,nu.ensure)((0,nu.ensure)(e,"textDocument"),"definition");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.definitionProvider);i&&this.register({id:R3.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDefinition:(r,s,o)=>{const a=this._client,c=(f,g,p)=>a.sendRequest(tu.DefinitionRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,g),p).then(_=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(_,p),_=>a.handleFailedRequest(tu.DefinitionRequest.type,p,_,null)),l=a.middleware;return l.provideDefinition?l.provideDefinition(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return k3.languages.registerDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}al.DefinitionFeature=x3;var cl={};Object.defineProperty(cl,"__esModule",{value:!0});cl.SignatureHelpFeature=void 0;const O0=Re,Qs=ye,iu=De,I3=Be;class E3 extends iu.TextDocumentLanguageFeature{constructor(e){super(e,Qs.SignatureHelpRequest.type)}fillClientCapabilities(e){let n=(0,iu.ensure)((0,iu.ensure)(e,"textDocument"),"signatureHelp");n.dynamicRegistration=!0,n.signatureInformation={documentationFormat:[Qs.MarkupKind.Markdown,Qs.MarkupKind.PlainText]},n.signatureInformation.parameterInformation={labelOffsetSupport:!0},n.signatureInformation.activeParameterSupport=!0,n.contextSupport=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.signatureHelpProvider);i&&this.register({id:I3.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n={provideSignatureHelp:(i,r,s,o)=>{const a=this._client,c=(f,g,p,_)=>a.sendRequest(Qs.SignatureHelpRequest.type,a.code2ProtocolConverter.asSignatureHelpParams(f,g,p),_).then(C=>_.isCancellationRequested?null:a.protocol2CodeConverter.asSignatureHelp(C,_),C=>a.handleFailedRequest(Qs.SignatureHelpRequest.type,_,C,null)),l=a.middleware;return l.provideSignatureHelp?l.provideSignatureHelp(i,r,o,s,c):c(i,r,o,s)}};return[this.registerProvider(e,n),n]}registerProvider(e,n){const i=this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector);if(e.retriggerCharacters===void 0){const r=e.triggerCharacters||[];return O0.languages.registerSignatureHelpProvider(i,n,...r)}else{const r={triggerCharacters:e.triggerCharacters||[],retriggerCharacters:e.retriggerCharacters||[]};return O0.languages.registerSignatureHelpProvider(i,n,r)}}}cl.SignatureHelpFeature=E3;var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.DocumentHighlightFeature=void 0;const P3=Re,ru=ye,su=De,A3=Be;class M3 extends su.TextDocumentLanguageFeature{constructor(e){super(e,ru.DocumentHighlightRequest.type)}fillClientCapabilities(e){(0,su.ensure)((0,su.ensure)(e,"textDocument"),"documentHighlight").dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentHighlightProvider);i&&this.register({id:A3.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDocumentHighlights:(r,s,o)=>{const a=this._client,c=(f,g,p)=>a.sendRequest(ru.DocumentHighlightRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,g),p).then(_=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDocumentHighlights(_,p),_=>a.handleFailedRequest(ru.DocumentHighlightRequest.type,p,_,null)),l=a.middleware;return l.provideDocumentHighlights?l.provideDocumentHighlights(r,s,o,c):c(r,s,o)}};return[P3.languages.registerDocumentHighlightProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}ll.DocumentHighlightFeature=M3;var hg={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentSymbolFeature=t.SupportedSymbolTags=t.SupportedSymbolKinds=void 0;const e=Re,n=ye,i=De,r=Be;t.SupportedSymbolKinds=[n.SymbolKind.File,n.SymbolKind.Module,n.SymbolKind.Namespace,n.SymbolKind.Package,n.SymbolKind.Class,n.SymbolKind.Method,n.SymbolKind.Property,n.SymbolKind.Field,n.SymbolKind.Constructor,n.SymbolKind.Enum,n.SymbolKind.Interface,n.SymbolKind.Function,n.SymbolKind.Variable,n.SymbolKind.Constant,n.SymbolKind.String,n.SymbolKind.Number,n.SymbolKind.Boolean,n.SymbolKind.Array,n.SymbolKind.Object,n.SymbolKind.Key,n.SymbolKind.Null,n.SymbolKind.EnumMember,n.SymbolKind.Struct,n.SymbolKind.Event,n.SymbolKind.Operator,n.SymbolKind.TypeParameter],t.SupportedSymbolTags=[n.SymbolTag.Deprecated];class s extends i.TextDocumentLanguageFeature{constructor(a){super(a,n.DocumentSymbolRequest.type)}fillClientCapabilities(a){let c=(0,i.ensure)((0,i.ensure)(a,"textDocument"),"documentSymbol");c.dynamicRegistration=!0,c.symbolKind={valueSet:t.SupportedSymbolKinds},c.hierarchicalDocumentSymbolSupport=!0,c.tagSupport={valueSet:t.SupportedSymbolTags},c.labelSupport=!0}initialize(a,c){const l=this.getRegistrationOptions(c,a.documentSymbolProvider);l&&this.register({id:r.generateUuid(),registerOptions:l})}registerLanguageProvider(a){const c=a.documentSelector,l={provideDocumentSymbols:(g,p)=>{const _=this._client,C=async(A,H)=>{try{const K=await _.sendRequest(n.DocumentSymbolRequest.type,_.code2ProtocolConverter.asDocumentSymbolParams(A),H);if(H.isCancellationRequested||K===void 0||K===null)return null;if(K.length===0)return[];{const j=K[0];return n.DocumentSymbol.is(j)?await _.protocol2CodeConverter.asDocumentSymbols(K,H):await _.protocol2CodeConverter.asSymbolInformations(K,H)}}catch(K){return _.handleFailedRequest(n.DocumentSymbolRequest.type,H,K,null)}},k=_.middleware;return k.provideDocumentSymbols?k.provideDocumentSymbols(g,p,C):C(g,p)}},f=a.label!==void 0?{label:a.label}:void 0;return[e.languages.registerDocumentSymbolProvider(this._client.protocol2CodeConverter.asDocumentSelector(c),l,f),l]}}t.DocumentSymbolFeature=s})(hg);var ul={};Object.defineProperty(ul,"__esModule",{value:!0});ul.WorkspaceSymbolFeature=void 0;const O3=Re,eo=ye,ou=De,F0=hg,F3=Be;class L3 extends ou.WorkspaceFeature{constructor(e){super(e,eo.WorkspaceSymbolRequest.type)}fillClientCapabilities(e){let n=(0,ou.ensure)((0,ou.ensure)(e,"workspace"),"symbol");n.dynamicRegistration=!0,n.symbolKind={valueSet:F0.SupportedSymbolKinds},n.tagSupport={valueSet:F0.SupportedSymbolTags},n.resolveSupport={properties:["location.range"]}}initialize(e){e.workspaceSymbolProvider&&this.register({id:F3.generateUuid(),registerOptions:e.workspaceSymbolProvider===!0?{workDoneProgress:!1}:e.workspaceSymbolProvider})}registerLanguageProvider(e){const n={provideWorkspaceSymbols:(i,r)=>{const s=this._client,o=(c,l)=>s.sendRequest(eo.WorkspaceSymbolRequest.type,{query:c},l).then(f=>l.isCancellationRequested?null:s.protocol2CodeConverter.asSymbolInformations(f,l),f=>s.handleFailedRequest(eo.WorkspaceSymbolRequest.type,l,f,null)),a=s.middleware;return a.provideWorkspaceSymbols?a.provideWorkspaceSymbols(i,r,o):o(i,r)},resolveWorkspaceSymbol:e.resolveProvider===!0?(i,r)=>{const s=this._client,o=(c,l)=>s.sendRequest(eo.WorkspaceSymbolResolveRequest.type,s.code2ProtocolConverter.asWorkspaceSymbol(c),l).then(f=>l.isCancellationRequested?null:s.protocol2CodeConverter.asSymbolInformation(f),f=>s.handleFailedRequest(eo.WorkspaceSymbolResolveRequest.type,l,f,null)),a=s.middleware;return a.resolveWorkspaceSymbol?a.resolveWorkspaceSymbol(i,r,o):o(i,r)}:void 0};return[O3.languages.registerWorkspaceSymbolProvider(n),n]}}ul.WorkspaceSymbolFeature=L3;var dl={};Object.defineProperty(dl,"__esModule",{value:!0});dl.ReferencesFeature=void 0;const N3=Re,au=ye,cu=De,$3=Be;class q3 extends cu.TextDocumentLanguageFeature{constructor(e){super(e,au.ReferencesRequest.type)}fillClientCapabilities(e){(0,cu.ensure)((0,cu.ensure)(e,"textDocument"),"references").dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.referencesProvider);i&&this.register({id:$3.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideReferences:(r,s,o,a)=>{const c=this._client,l=(g,p,_,C)=>c.sendRequest(au.ReferencesRequest.type,c.code2ProtocolConverter.asReferenceParams(g,p,_),C).then(k=>C.isCancellationRequested?null:c.protocol2CodeConverter.asReferences(k,C),k=>c.handleFailedRequest(au.ReferencesRequest.type,C,k,null)),f=c.middleware;return f.provideReferences?f.provideReferences(r,s,o,a,l):l(r,s,o,a)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return N3.languages.registerReferenceProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}dl.ReferencesFeature=q3;var fl={};Object.defineProperty(fl,"__esModule",{value:!0});fl.CodeActionFeature=void 0;const j3=Re,qn=ye,H3=Be,lu=De;class W3 extends lu.TextDocumentLanguageFeature{constructor(e){super(e,qn.CodeActionRequest.type)}fillClientCapabilities(e){const n=(0,lu.ensure)((0,lu.ensure)(e,"textDocument"),"codeAction");n.dynamicRegistration=!0,n.isPreferredSupport=!0,n.disabledSupport=!0,n.dataSupport=!0,n.resolveSupport={properties:["edit"]},n.codeActionLiteralSupport={codeActionKind:{valueSet:[qn.CodeActionKind.Empty,qn.CodeActionKind.QuickFix,qn.CodeActionKind.Refactor,qn.CodeActionKind.RefactorExtract,qn.CodeActionKind.RefactorInline,qn.CodeActionKind.RefactorRewrite,qn.CodeActionKind.Source,qn.CodeActionKind.SourceOrganizeImports]}},n.honorsChangeAnnotations=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.codeActionProvider);i&&this.register({id:H3.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideCodeActions:(r,s,o,a)=>{const c=this._client,l=async(g,p,_,C)=>{const k={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),range:c.code2ProtocolConverter.asRange(p),context:c.code2ProtocolConverter.asCodeActionContextSync(_)};return c.sendRequest(qn.CodeActionRequest.type,k,C).then(A=>C.isCancellationRequested||A===null||A===void 0?null:c.protocol2CodeConverter.asCodeActionResult(A,C),A=>c.handleFailedRequest(qn.CodeActionRequest.type,C,A,null))},f=c.middleware;return f.provideCodeActions?f.provideCodeActions(r,s,o,a,l):l(r,s,o,a)},resolveCodeAction:e.resolveProvider?(r,s)=>{const o=this._client,a=this._client.middleware,c=async(l,f)=>o.sendRequest(qn.CodeActionResolveRequest.type,o.code2ProtocolConverter.asCodeActionSync(l),f).then(g=>f.isCancellationRequested?l:o.protocol2CodeConverter.asCodeAction(g,f),g=>o.handleFailedRequest(qn.CodeActionResolveRequest.type,f,g,l));return a.resolveCodeAction?a.resolveCodeAction(r,s,c):c(r,s)}:void 0};return[j3.languages.registerCodeActionsProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i,e.codeActionKinds?{providedCodeActionKinds:this._client.protocol2CodeConverter.asCodeActionKinds(e.codeActionKinds)}:void 0),i]}}fl.CodeActionFeature=W3;var hl={};Object.defineProperty(hl,"__esModule",{value:!0});hl.CodeLensFeature=void 0;const L0=Re,ss=ye,U3=Be,to=De;class z3 extends to.TextDocumentLanguageFeature{constructor(e){super(e,ss.CodeLensRequest.type)}fillClientCapabilities(e){(0,to.ensure)((0,to.ensure)(e,"textDocument"),"codeLens").dynamicRegistration=!0,(0,to.ensure)((0,to.ensure)(e,"workspace"),"codeLens").refreshSupport=!0}initialize(e,n){this._client.onRequest(ss.CodeLensRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeCodeLensEmitter.fire()});const r=this.getRegistrationOptions(n,e.codeLensProvider);r&&this.register({id:U3.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i=new L0.EventEmitter,r={onDidChangeCodeLenses:i.event,provideCodeLenses:(s,o)=>{const a=this._client,c=(f,g)=>a.sendRequest(ss.CodeLensRequest.type,a.code2ProtocolConverter.asCodeLensParams(f),g).then(p=>g.isCancellationRequested?null:a.protocol2CodeConverter.asCodeLenses(p,g),p=>a.handleFailedRequest(ss.CodeLensRequest.type,g,p,null)),l=a.middleware;return l.provideCodeLenses?l.provideCodeLenses(s,o,c):c(s,o)},resolveCodeLens:e.resolveProvider?(s,o)=>{const a=this._client,c=(f,g)=>a.sendRequest(ss.CodeLensResolveRequest.type,a.code2ProtocolConverter.asCodeLens(f),g).then(p=>g.isCancellationRequested?f:a.protocol2CodeConverter.asCodeLens(p),p=>a.handleFailedRequest(ss.CodeLensResolveRequest.type,g,p,f)),l=a.middleware;return l.resolveCodeLens?l.resolveCodeLens(s,o,c):c(s,o)}:void 0};return[L0.languages.registerCodeLensProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),{provider:r,onDidChangeCodeLensEmitter:i}]}}hl.CodeLensFeature=z3;var gr={};Object.defineProperty(gr,"__esModule",{value:!0});gr.DocumentOnTypeFormattingFeature=gr.DocumentRangeFormattingFeature=gr.DocumentFormattingFeature=void 0;const gl=Re,ci=ye,gg=Be,zi=De;var Us;(function(t){function e(n){const i=gl.workspace.getConfiguration("files",n);return{trimTrailingWhitespace:i.get("trimTrailingWhitespace"),trimFinalNewlines:i.get("trimFinalNewlines"),insertFinalNewline:i.get("insertFinalNewline")}}t.fromConfiguration=e})(Us||(Us={}));class B3 extends zi.TextDocumentLanguageFeature{constructor(e){super(e,ci.DocumentFormattingRequest.type)}fillClientCapabilities(e){(0,zi.ensure)((0,zi.ensure)(e,"textDocument"),"formatting").dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentFormattingProvider);i&&this.register({id:gg.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDocumentFormattingEdits:(r,s,o)=>{const a=this._client,c=(f,g,p)=>{const _={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(f),options:a.code2ProtocolConverter.asFormattingOptions(g,Us.fromConfiguration(f))};return a.sendRequest(ci.DocumentFormattingRequest.type,_,p).then(C=>p.isCancellationRequested?null:a.protocol2CodeConverter.asTextEdits(C,p),C=>a.handleFailedRequest(ci.DocumentFormattingRequest.type,p,C,null))},l=a.middleware;return l.provideDocumentFormattingEdits?l.provideDocumentFormattingEdits(r,s,o,c):c(r,s,o)}};return[gl.languages.registerDocumentFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}gr.DocumentFormattingFeature=B3;class V3 extends zi.TextDocumentLanguageFeature{constructor(e){super(e,ci.DocumentRangeFormattingRequest.type)}fillClientCapabilities(e){const n=(0,zi.ensure)((0,zi.ensure)(e,"textDocument"),"rangeFormatting");n.dynamicRegistration=!0,n.rangesSupport=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentRangeFormattingProvider);i&&this.register({id:gg.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDocumentRangeFormattingEdits:(r,s,o,a)=>{const c=this._client,l=(g,p,_,C)=>{const k={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),range:c.code2ProtocolConverter.asRange(p),options:c.code2ProtocolConverter.asFormattingOptions(_,Us.fromConfiguration(g))};return c.sendRequest(ci.DocumentRangeFormattingRequest.type,k,C).then(A=>C.isCancellationRequested?null:c.protocol2CodeConverter.asTextEdits(A,C),A=>c.handleFailedRequest(ci.DocumentRangeFormattingRequest.type,C,A,null))},f=c.middleware;return f.provideDocumentRangeFormattingEdits?f.provideDocumentRangeFormattingEdits(r,s,o,a,l):l(r,s,o,a)}};return e.rangesSupport&&(i.provideDocumentRangesFormattingEdits=(r,s,o,a)=>{const c=this._client,l=(g,p,_,C)=>{const k={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),ranges:c.code2ProtocolConverter.asRanges(p),options:c.code2ProtocolConverter.asFormattingOptions(_,Us.fromConfiguration(g))};return c.sendRequest(ci.DocumentRangesFormattingRequest.type,k,C).then(A=>C.isCancellationRequested?null:c.protocol2CodeConverter.asTextEdits(A,C),A=>c.handleFailedRequest(ci.DocumentRangesFormattingRequest.type,C,A,null))},f=c.middleware;return f.provideDocumentRangesFormattingEdits?f.provideDocumentRangesFormattingEdits(r,s,o,a,l):l(r,s,o,a)}),[gl.languages.registerDocumentRangeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}gr.DocumentRangeFormattingFeature=V3;class K3 extends zi.TextDocumentLanguageFeature{constructor(e){super(e,ci.DocumentOnTypeFormattingRequest.type)}fillClientCapabilities(e){(0,zi.ensure)((0,zi.ensure)(e,"textDocument"),"onTypeFormatting").dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentOnTypeFormattingProvider);i&&this.register({id:gg.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideOnTypeFormattingEdits:(s,o,a,c,l)=>{const f=this._client,g=(_,C,k,A,H)=>{let K={textDocument:f.code2ProtocolConverter.asTextDocumentIdentifier(_),position:f.code2ProtocolConverter.asPosition(C),ch:k,options:f.code2ProtocolConverter.asFormattingOptions(A,Us.fromConfiguration(_))};return f.sendRequest(ci.DocumentOnTypeFormattingRequest.type,K,H).then(j=>H.isCancellationRequested?null:f.protocol2CodeConverter.asTextEdits(j,H),j=>f.handleFailedRequest(ci.DocumentOnTypeFormattingRequest.type,H,j,null))},p=f.middleware;return p.provideOnTypeFormattingEdits?p.provideOnTypeFormattingEdits(s,o,a,c,l,g):g(s,o,a,c,l)}},r=e.moreTriggerCharacter||[];return[gl.languages.registerOnTypeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i,e.firstTriggerCharacter,...r),i]}}gr.DocumentOnTypeFormattingFeature=K3;var pl={};Object.defineProperty(pl,"__esModule",{value:!0});pl.RenameFeature=void 0;const G3=Re,Sr=ye,J3=Be,N0=Ze,uu=De;class X3 extends uu.TextDocumentLanguageFeature{constructor(e){super(e,Sr.RenameRequest.type)}fillClientCapabilities(e){let n=(0,uu.ensure)((0,uu.ensure)(e,"textDocument"),"rename");n.dynamicRegistration=!0,n.prepareSupport=!0,n.prepareSupportDefaultBehavior=Sr.PrepareSupportDefaultBehavior.Identifier,n.honorsChangeAnnotations=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.renameProvider);i&&(N0.boolean(e.renameProvider)&&(i.prepareProvider=!1),this.register({id:J3.generateUuid(),registerOptions:i}))}registerLanguageProvider(e){const n=e.documentSelector,i={provideRenameEdits:(r,s,o,a)=>{const c=this._client,l=(g,p,_,C)=>{let k={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),position:c.code2ProtocolConverter.asPosition(p),newName:_};return c.sendRequest(Sr.RenameRequest.type,k,C).then(A=>C.isCancellationRequested?null:c.protocol2CodeConverter.asWorkspaceEdit(A,C),A=>c.handleFailedRequest(Sr.RenameRequest.type,C,A,null,!1))},f=c.middleware;return f.provideRenameEdits?f.provideRenameEdits(r,s,o,a,l):l(r,s,o,a)},prepareRename:e.prepareProvider?(r,s,o)=>{const a=this._client,c=(f,g,p)=>{let _={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(f),position:a.code2ProtocolConverter.asPosition(g)};return a.sendRequest(Sr.PrepareRenameRequest.type,_,p).then(C=>p.isCancellationRequested?null:Sr.Range.is(C)?a.protocol2CodeConverter.asRange(C):this.isDefaultBehavior(C)?C.defaultBehavior===!0?null:Promise.reject(new Error("The element can't be renamed.")):C&&Sr.Range.is(C.range)?{range:a.protocol2CodeConverter.asRange(C.range),placeholder:C.placeholder}:Promise.reject(new Error("The element can't be renamed.")),C=>{throw typeof C.message=="string"?new Error(C.message):new Error("The element can't be renamed.")})},l=a.middleware;return l.prepareRename?l.prepareRename(r,s,o,c):c(r,s,o)}:void 0};return[this.registerProvider(n,i),i]}registerProvider(e,n){return G3.languages.registerRenameProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}isDefaultBehavior(e){const n=e;return n&&N0.boolean(n.defaultBehavior)}}pl.RenameFeature=X3;var ml={};Object.defineProperty(ml,"__esModule",{value:!0});ml.DocumentLinkFeature=void 0;const Z3=Re,no=ye,du=De,Y3=Be;class Q3 extends du.TextDocumentLanguageFeature{constructor(e){super(e,no.DocumentLinkRequest.type)}fillClientCapabilities(e){const n=(0,du.ensure)((0,du.ensure)(e,"textDocument"),"documentLink");n.dynamicRegistration=!0,n.tooltipSupport=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentLinkProvider);i&&this.register({id:Y3.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDocumentLinks:(r,s)=>{const o=this._client,a=(l,f)=>o.sendRequest(no.DocumentLinkRequest.type,o.code2ProtocolConverter.asDocumentLinkParams(l),f).then(g=>f.isCancellationRequested?null:o.protocol2CodeConverter.asDocumentLinks(g,f),g=>o.handleFailedRequest(no.DocumentLinkRequest.type,f,g,null)),c=o.middleware;return c.provideDocumentLinks?c.provideDocumentLinks(r,s,a):a(r,s)},resolveDocumentLink:e.resolveProvider?(r,s)=>{const o=this._client;let a=(l,f)=>o.sendRequest(no.DocumentLinkResolveRequest.type,o.code2ProtocolConverter.asDocumentLink(l),f).then(g=>f.isCancellationRequested?l:o.protocol2CodeConverter.asDocumentLink(g),g=>o.handleFailedRequest(no.DocumentLinkResolveRequest.type,f,g,l));const c=o.middleware;return c.resolveDocumentLink?c.resolveDocumentLink(r,s,a):a(r,s)}:void 0};return[Z3.languages.registerDocumentLinkProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}ml.DocumentLinkFeature=Q3;var yl={};Object.defineProperty(yl,"__esModule",{value:!0});yl.ExecuteCommandFeature=void 0;const eS=Re,fu=ye,tS=Be,$0=De;class nS{constructor(e){this._client=e,this._commands=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._commands.size>0}}get registrationType(){return fu.ExecuteCommandRequest.type}fillClientCapabilities(e){(0,$0.ensure)((0,$0.ensure)(e,"workspace"),"executeCommand").dynamicRegistration=!0}initialize(e){e.executeCommandProvider&&this.register({id:tS.generateUuid(),registerOptions:Object.assign({},e.executeCommandProvider)})}register(e){const n=this._client,i=n.middleware,r=(s,o)=>{let a={command:s,arguments:o};return n.sendRequest(fu.ExecuteCommandRequest.type,a).then(void 0,c=>n.handleFailedRequest(fu.ExecuteCommandRequest.type,void 0,c,void 0))};if(e.registerOptions.commands){const s=[];for(const o of e.registerOptions.commands)s.push(eS.commands.registerCommand(o,(...a)=>i.executeCommand?i.executeCommand(o,a,r):r(o,a)));this._commands.set(e.id,s)}}unregister(e){let n=this._commands.get(e);n&&n.forEach(i=>i.dispose())}clear(){this._commands.forEach(e=>{e.forEach(n=>n.dispose())}),this._commands.clear()}}yl.ExecuteCommandFeature=nS;var bl={};Object.defineProperty(bl,"__esModule",{value:!0});bl.FileSystemWatcherFeature=void 0;const iS=Re,Dr=ye,Ca=De;class rS{constructor(e,n){this._client=e,this._notifyFileEvent=n,this._watchers=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._watchers.size>0}}get registrationType(){return Dr.DidChangeWatchedFilesNotification.type}fillClientCapabilities(e){(0,Ca.ensure)((0,Ca.ensure)(e,"workspace"),"didChangeWatchedFiles").dynamicRegistration=!0,(0,Ca.ensure)((0,Ca.ensure)(e,"workspace"),"didChangeWatchedFiles").relativePatternSupport=!0}initialize(e,n){}register(e){if(!Array.isArray(e.registerOptions.watchers))return;const n=[];for(const i of e.registerOptions.watchers){const r=this._client.protocol2CodeConverter.asGlobPattern(i.globPattern);if(r===void 0)continue;let s=!0,o=!0,a=!0;i.kind!==void 0&&i.kind!==null&&(s=(i.kind&Dr.WatchKind.Create)!==0,o=(i.kind&Dr.WatchKind.Change)!==0,a=(i.kind&Dr.WatchKind.Delete)!==0);const c=iS.workspace.createFileSystemWatcher(r,!s,!o,!a);this.hookListeners(c,s,o,a,n),n.push(c)}this._watchers.set(e.id,n)}registerRaw(e,n){let i=[];for(let r of n)this.hookListeners(r,!0,!0,!0,i);this._watchers.set(e,i)}hookListeners(e,n,i,r,s){n&&e.onDidCreate(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:Dr.FileChangeType.Created}),null,s),i&&e.onDidChange(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:Dr.FileChangeType.Changed}),null,s),r&&e.onDidDelete(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:Dr.FileChangeType.Deleted}),null,s)}unregister(e){let n=this._watchers.get(e);if(n)for(let i of n)i.dispose()}clear(){this._watchers.forEach(e=>{for(let n of e)n.dispose()}),this._watchers.clear()}}bl.FileSystemWatcherFeature=rS;var vl={};Object.defineProperty(vl,"__esModule",{value:!0});vl.ColorProviderFeature=void 0;const sS=Re,io=ye,hu=De;class oS extends hu.TextDocumentLanguageFeature{constructor(e){super(e,io.DocumentColorRequest.type)}fillClientCapabilities(e){(0,hu.ensure)((0,hu.ensure)(e,"textDocument"),"colorProvider").dynamicRegistration=!0}initialize(e,n){let[i,r]=this.getRegistration(n,e.colorProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i={provideColorPresentations:(r,s,o)=>{const a=this._client,c=(f,g,p)=>{const _={color:f,textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(g.document),range:a.code2ProtocolConverter.asRange(g.range)};return a.sendRequest(io.ColorPresentationRequest.type,_,p).then(C=>p.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorPresentations(C,p),C=>a.handleFailedRequest(io.ColorPresentationRequest.type,p,C,null))},l=a.middleware;return l.provideColorPresentations?l.provideColorPresentations(r,s,o,c):c(r,s,o)},provideDocumentColors:(r,s)=>{const o=this._client,a=(l,f)=>{const g={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(l)};return o.sendRequest(io.DocumentColorRequest.type,g,f).then(p=>f.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorInformations(p,f),p=>o.handleFailedRequest(io.DocumentColorRequest.type,f,p,null))},c=o.middleware;return c.provideDocumentColors?c.provideDocumentColors(r,s,a):a(r,s)}};return[sS.languages.registerColorProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}vl.ColorProviderFeature=oS;var wl={};Object.defineProperty(wl,"__esModule",{value:!0});wl.ImplementationFeature=void 0;const aS=Re,gu=ye,pu=De;class cS extends pu.TextDocumentLanguageFeature{constructor(e){super(e,gu.ImplementationRequest.type)}fillClientCapabilities(e){let n=(0,pu.ensure)((0,pu.ensure)(e,"textDocument"),"implementation");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){let[i,r]=this.getRegistration(n,e.implementationProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i={provideImplementation:(r,s,o)=>{const a=this._client,c=(f,g,p)=>a.sendRequest(gu.ImplementationRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,g),p).then(_=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(_,p),_=>a.handleFailedRequest(gu.ImplementationRequest.type,p,_,null)),l=a.middleware;return l.provideImplementation?l.provideImplementation(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return aS.languages.registerImplementationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}wl.ImplementationFeature=cS;var Cl={};Object.defineProperty(Cl,"__esModule",{value:!0});Cl.TypeDefinitionFeature=void 0;const lS=Re,mu=ye,ro=De;class uS extends ro.TextDocumentLanguageFeature{constructor(e){super(e,mu.TypeDefinitionRequest.type)}fillClientCapabilities(e){(0,ro.ensure)((0,ro.ensure)(e,"textDocument"),"typeDefinition").dynamicRegistration=!0;let n=(0,ro.ensure)((0,ro.ensure)(e,"textDocument"),"typeDefinition");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){let[i,r]=this.getRegistration(n,e.typeDefinitionProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i={provideTypeDefinition:(r,s,o)=>{const a=this._client,c=(f,g,p)=>a.sendRequest(mu.TypeDefinitionRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,g),p).then(_=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(_,p),_=>a.handleFailedRequest(mu.TypeDefinitionRequest.type,p,_,null)),l=a.middleware;return l.provideTypeDefinition?l.provideTypeDefinition(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return lS.languages.registerTypeDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Cl.TypeDefinitionFeature=uS;var zs={};Object.defineProperty(zs,"__esModule",{value:!0});zs.WorkspaceFoldersFeature=zs.arrayDiff=void 0;const dS=Be,_a=Re,so=ye;function yu(t,e){if(t!=null)return t[e]}function $1(t,e){return t.filter(n=>e.indexOf(n)<0)}zs.arrayDiff=$1;class fS{constructor(e){this._client=e,this._listeners=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._listeners.size>0}}get registrationType(){return so.DidChangeWorkspaceFoldersNotification.type}fillInitializeParams(e){const n=_a.workspace.workspaceFolders;this.initializeWithFolders(n),n===void 0?e.workspaceFolders=null:e.workspaceFolders=n.map(i=>this.asProtocol(i))}initializeWithFolders(e){this._initialFolders=e}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.workspaceFolders=!0}initialize(e){const n=this._client;n.onRequest(so.WorkspaceFoldersRequest.type,s=>{const o=()=>{const c=_a.workspace.workspaceFolders;return c===void 0?null:c.map(f=>this.asProtocol(f))},a=n.middleware.workspace;return a&&a.workspaceFolders?a.workspaceFolders(s,o):o()});const i=yu(yu(yu(e,"workspace"),"workspaceFolders"),"changeNotifications");let r;typeof i=="string"?r=i:i===!0&&(r=dS.generateUuid()),r&&this.register({id:r,registerOptions:void 0})}sendInitialEvent(e){let n;if(this._initialFolders&&e){const i=$1(this._initialFolders,e),r=$1(e,this._initialFolders);(r.length>0||i.length>0)&&(n=this.doSendEvent(r,i))}else this._initialFolders?n=this.doSendEvent([],this._initialFolders):e&&(n=this.doSendEvent(e,[]));n!==void 0&&n.catch(i=>{this._client.error(`Sending notification ${so.DidChangeWorkspaceFoldersNotification.type.method} failed`,i)})}doSendEvent(e,n){let i={event:{added:e.map(r=>this.asProtocol(r)),removed:n.map(r=>this.asProtocol(r))}};return this._client.sendNotification(so.DidChangeWorkspaceFoldersNotification.type,i)}register(e){let n=e.id,i=this._client,r=_a.workspace.onDidChangeWorkspaceFolders(s=>{let o=l=>this.doSendEvent(l.added,l.removed),a=i.middleware.workspace;(a&&a.didChangeWorkspaceFolders?a.didChangeWorkspaceFolders(s,o):o(s)).catch(l=>{this._client.error(`Sending notification ${so.DidChangeWorkspaceFoldersNotification.type.method} failed`,l)})});this._listeners.set(n,r),this.sendInitialEvent(_a.workspace.workspaceFolders)}unregister(e){let n=this._listeners.get(e);n!==void 0&&(this._listeners.delete(e),n.dispose())}clear(){for(let e of this._listeners.values())e.dispose();this._listeners.clear()}asProtocol(e){return e===void 0?null:{uri:this._client.code2ProtocolConverter.asUri(e.uri),name:e.name}}}zs.WorkspaceFoldersFeature=fS;var _l={};Object.defineProperty(_l,"__esModule",{value:!0});_l.FoldingRangeFeature=void 0;const q0=Re,Tr=ye,oo=De;class hS extends oo.TextDocumentLanguageFeature{constructor(e){super(e,Tr.FoldingRangeRequest.type)}fillClientCapabilities(e){let n=(0,oo.ensure)((0,oo.ensure)(e,"textDocument"),"foldingRange");n.dynamicRegistration=!0,n.rangeLimit=5e3,n.lineFoldingOnly=!0,n.foldingRangeKind={valueSet:[Tr.FoldingRangeKind.Comment,Tr.FoldingRangeKind.Imports,Tr.FoldingRangeKind.Region]},n.foldingRange={collapsedText:!1},(0,oo.ensure)((0,oo.ensure)(e,"workspace"),"foldingRange").refreshSupport=!0}initialize(e,n){this._client.onRequest(Tr.FoldingRangeRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeFoldingRange.fire()});let[i,r]=this.getRegistration(n,e.foldingRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i=new q0.EventEmitter,r={onDidChangeFoldingRanges:i.event,provideFoldingRanges:(s,o,a)=>{const c=this._client,l=(g,p,_)=>{const C={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g)};return c.sendRequest(Tr.FoldingRangeRequest.type,C,_).then(k=>_.isCancellationRequested?null:c.protocol2CodeConverter.asFoldingRanges(k,_),k=>c.handleFailedRequest(Tr.FoldingRangeRequest.type,_,k,null))},f=c.middleware;return f.provideFoldingRanges?f.provideFoldingRanges(s,o,a,l):l(s,o,a)}};return[q0.languages.registerFoldingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),{provider:r,onDidChangeFoldingRange:i}]}}_l.FoldingRangeFeature=hS;var Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});Sl.DeclarationFeature=void 0;const gS=Re,bu=ye,vu=De;class pS extends vu.TextDocumentLanguageFeature{constructor(e){super(e,bu.DeclarationRequest.type)}fillClientCapabilities(e){const n=(0,vu.ensure)((0,vu.ensure)(e,"textDocument"),"declaration");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){const[i,r]=this.getRegistration(n,e.declarationProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDeclaration:(r,s,o)=>{const a=this._client,c=(f,g,p)=>a.sendRequest(bu.DeclarationRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,g),p).then(_=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDeclarationResult(_,p),_=>a.handleFailedRequest(bu.DeclarationRequest.type,p,_,null)),l=a.middleware;return l.provideDeclaration?l.provideDeclaration(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return gS.languages.registerDeclarationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Sl.DeclarationFeature=pS;var Dl={};Object.defineProperty(Dl,"__esModule",{value:!0});Dl.SelectionRangeFeature=void 0;const mS=Re,wu=ye,Cu=De;class yS extends Cu.TextDocumentLanguageFeature{constructor(e){super(e,wu.SelectionRangeRequest.type)}fillClientCapabilities(e){const n=(0,Cu.ensure)((0,Cu.ensure)(e,"textDocument"),"selectionRange");n.dynamicRegistration=!0}initialize(e,n){const[i,r]=this.getRegistration(n,e.selectionRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i={provideSelectionRanges:(r,s,o)=>{const a=this._client,c=async(f,g,p)=>{const _={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(f),positions:a.code2ProtocolConverter.asPositionsSync(g,p)};return a.sendRequest(wu.SelectionRangeRequest.type,_,p).then(C=>p.isCancellationRequested?null:a.protocol2CodeConverter.asSelectionRanges(C,p),C=>a.handleFailedRequest(wu.SelectionRangeRequest.type,p,C,null))},l=a.middleware;return l.provideSelectionRanges?l.provideSelectionRanges(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return mS.languages.registerSelectionRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Dl.SelectionRangeFeature=yS;var Tl={};Object.defineProperty(Tl,"__esModule",{value:!0});Tl.ProgressFeature=void 0;const j0=ye,bS=la;function vS(t,e){return t[e]===void 0&&(t[e]=Object.create(null)),t[e]}class wS{constructor(e){this._client=e,this.activeParts=new Set}getState(){return{kind:"window",id:j0.WorkDoneProgressCreateRequest.method,registrations:this.activeParts.size>0}}fillClientCapabilities(e){vS(e,"window").workDoneProgress=!0}initialize(){const e=this._client,n=r=>{this.activeParts.delete(r)},i=r=>{this.activeParts.add(new bS.ProgressPart(this._client,r.token,n))};e.onRequest(j0.WorkDoneProgressCreateRequest.type,i)}clear(){for(const e of this.activeParts)e.done();this.activeParts.clear()}}Tl.ProgressFeature=wS;var kl={};Object.defineProperty(kl,"__esModule",{value:!0});kl.CallHierarchyFeature=void 0;const CS=Re,Ar=ye,_u=De;class _S{constructor(e){this.client=e,this.middleware=e.middleware}prepareCallHierarchy(e,n,i){const r=this.client,s=this.middleware,o=(a,c,l)=>{const f=r.code2ProtocolConverter.asTextDocumentPositionParams(a,c);return r.sendRequest(Ar.CallHierarchyPrepareRequest.type,f,l).then(g=>l.isCancellationRequested?null:r.protocol2CodeConverter.asCallHierarchyItems(g,l),g=>r.handleFailedRequest(Ar.CallHierarchyPrepareRequest.type,l,g,null))};return s.prepareCallHierarchy?s.prepareCallHierarchy(e,n,i,o):o(e,n,i)}provideCallHierarchyIncomingCalls(e,n){const i=this.client,r=this.middleware,s=(o,a)=>{const c={item:i.code2ProtocolConverter.asCallHierarchyItem(o)};return i.sendRequest(Ar.CallHierarchyIncomingCallsRequest.type,c,a).then(l=>a.isCancellationRequested?null:i.protocol2CodeConverter.asCallHierarchyIncomingCalls(l,a),l=>i.handleFailedRequest(Ar.CallHierarchyIncomingCallsRequest.type,a,l,null))};return r.provideCallHierarchyIncomingCalls?r.provideCallHierarchyIncomingCalls(e,n,s):s(e,n)}provideCallHierarchyOutgoingCalls(e,n){const i=this.client,r=this.middleware,s=(o,a)=>{const c={item:i.code2ProtocolConverter.asCallHierarchyItem(o)};return i.sendRequest(Ar.CallHierarchyOutgoingCallsRequest.type,c,a).then(l=>a.isCancellationRequested?null:i.protocol2CodeConverter.asCallHierarchyOutgoingCalls(l,a),l=>i.handleFailedRequest(Ar.CallHierarchyOutgoingCallsRequest.type,a,l,null))};return r.provideCallHierarchyOutgoingCalls?r.provideCallHierarchyOutgoingCalls(e,n,s):s(e,n)}}class SS extends _u.TextDocumentLanguageFeature{constructor(e){super(e,Ar.CallHierarchyPrepareRequest.type)}fillClientCapabilities(e){const n=e,i=(0,_u.ensure)((0,_u.ensure)(n,"textDocument"),"callHierarchy");i.dynamicRegistration=!0}initialize(e,n){const[i,r]=this.getRegistration(n,e.callHierarchyProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=this._client,i=new _S(n);return[CS.languages.registerCallHierarchyProvider(this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector),i),i]}}kl.CallHierarchyFeature=SS;var Rl={};Object.defineProperty(Rl,"__esModule",{value:!0});Rl.SemanticTokensFeature=void 0;const Sa=Re,Pe=ye,ao=De,DS=Ze;class TS extends ao.TextDocumentLanguageFeature{constructor(e){super(e,Pe.SemanticTokensRegistrationType.type)}fillClientCapabilities(e){const n=(0,ao.ensure)((0,ao.ensure)(e,"textDocument"),"semanticTokens");n.dynamicRegistration=!0,n.tokenTypes=[Pe.SemanticTokenTypes.namespace,Pe.SemanticTokenTypes.type,Pe.SemanticTokenTypes.class,Pe.SemanticTokenTypes.enum,Pe.SemanticTokenTypes.interface,Pe.SemanticTokenTypes.struct,Pe.SemanticTokenTypes.typeParameter,Pe.SemanticTokenTypes.parameter,Pe.SemanticTokenTypes.variable,Pe.SemanticTokenTypes.property,Pe.SemanticTokenTypes.enumMember,Pe.SemanticTokenTypes.event,Pe.SemanticTokenTypes.function,Pe.SemanticTokenTypes.method,Pe.SemanticTokenTypes.macro,Pe.SemanticTokenTypes.keyword,Pe.SemanticTokenTypes.modifier,Pe.SemanticTokenTypes.comment,Pe.SemanticTokenTypes.string,Pe.SemanticTokenTypes.number,Pe.SemanticTokenTypes.regexp,Pe.SemanticTokenTypes.operator,Pe.SemanticTokenTypes.decorator],n.tokenModifiers=[Pe.SemanticTokenModifiers.declaration,Pe.SemanticTokenModifiers.definition,Pe.SemanticTokenModifiers.readonly,Pe.SemanticTokenModifiers.static,Pe.SemanticTokenModifiers.deprecated,Pe.SemanticTokenModifiers.abstract,Pe.SemanticTokenModifiers.async,Pe.SemanticTokenModifiers.modification,Pe.SemanticTokenModifiers.documentation,Pe.SemanticTokenModifiers.defaultLibrary],n.formats=[Pe.TokenFormat.Relative],n.requests={range:!0,full:{delta:!0}},n.multilineTokenSupport=!1,n.overlappingTokenSupport=!1,n.serverCancelSupport=!0,n.augmentsSyntaxTokens=!0,(0,ao.ensure)((0,ao.ensure)(e,"workspace"),"semanticTokens").refreshSupport=!0}initialize(e,n){this._client.onRequest(Pe.SemanticTokensRefreshRequest.type,async()=>{for(const o of this.getAllProviders())o.onDidChangeSemanticTokensEmitter.fire()});const[r,s]=this.getRegistration(n,e.semanticTokensProvider);!r||!s||this.register({id:r,registerOptions:s})}registerLanguageProvider(e){const n=e.documentSelector,i=DS.boolean(e.full)?e.full:e.full!==void 0,r=e.full!==void 0&&typeof e.full!="boolean"&&e.full.delta===!0,s=new Sa.EventEmitter,o=i?{onDidChangeSemanticTokens:s.event,provideDocumentSemanticTokens:(_,C)=>{const k=this._client,A=k.middleware,H=(K,j)=>{const B={textDocument:k.code2ProtocolConverter.asTextDocumentIdentifier(K)};return k.sendRequest(Pe.SemanticTokensRequest.type,B,j).then(z=>j.isCancellationRequested?null:k.protocol2CodeConverter.asSemanticTokens(z,j),z=>k.handleFailedRequest(Pe.SemanticTokensRequest.type,j,z,null))};return A.provideDocumentSemanticTokens?A.provideDocumentSemanticTokens(_,C,H):H(_,C)},provideDocumentSemanticTokensEdits:r?(_,C,k)=>{const A=this._client,H=A.middleware,K=(j,B,z)=>{const ne={textDocument:A.code2ProtocolConverter.asTextDocumentIdentifier(j),previousResultId:B};return A.sendRequest(Pe.SemanticTokensDeltaRequest.type,ne,z).then(async G=>z.isCancellationRequested?null:Pe.SemanticTokens.is(G)?await A.protocol2CodeConverter.asSemanticTokens(G,z):await A.protocol2CodeConverter.asSemanticTokensEdits(G,z),G=>A.handleFailedRequest(Pe.SemanticTokensDeltaRequest.type,z,G,null))};return H.provideDocumentSemanticTokensEdits?H.provideDocumentSemanticTokensEdits(_,C,k,K):K(_,C,k)}:void 0}:void 0,c=e.range===!0?{provideDocumentRangeSemanticTokens:(_,C,k)=>{const A=this._client,H=A.middleware,K=(j,B,z)=>{const ne={textDocument:A.code2ProtocolConverter.asTextDocumentIdentifier(j),range:A.code2ProtocolConverter.asRange(B)};return A.sendRequest(Pe.SemanticTokensRangeRequest.type,ne,z).then(G=>z.isCancellationRequested?null:A.protocol2CodeConverter.asSemanticTokens(G,z),G=>A.handleFailedRequest(Pe.SemanticTokensRangeRequest.type,z,G,null))};return H.provideDocumentRangeSemanticTokens?H.provideDocumentRangeSemanticTokens(_,C,k,K):K(_,C,k)}}:void 0,l=[],f=this._client,g=f.protocol2CodeConverter.asSemanticTokensLegend(e.legend),p=f.protocol2CodeConverter.asDocumentSelector(n);return o!==void 0&&l.push(Sa.languages.registerDocumentSemanticTokensProvider(p,o,g)),c!==void 0&&l.push(Sa.languages.registerDocumentRangeSemanticTokensProvider(p,c,g)),[new Sa.Disposable(()=>l.forEach(_=>_.dispose())),{range:c,full:o,onDidChangeSemanticTokensEmitter:s}]}}Rl.SemanticTokensFeature=TS;var Fn={};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.WillDeleteFilesFeature=Fn.WillRenameFilesFeature=Fn.WillCreateFilesFeature=Fn.DidDeleteFilesFeature=Fn.DidRenameFilesFeature=Fn.DidCreateFilesFeature=void 0;const Yn=Re,kS=Vc,Bi=ye,RS=Be;function H0(t,e){return t[e]===void 0&&(t[e]={}),t[e]}function xS(t,e){return t[e]}function W0(t,e,n){t[e]=n}class Kr{constructor(e,n,i,r,s){this._client=e,this._event=n,this._registrationType=i,this._clientCapability=r,this._serverCapability=s,this._filters=new Map}getState(){return{kind:"workspace",id:this._registrationType.method,registrations:this._filters.size>0}}filterSize(){return this._filters.size}get registrationType(){return this._registrationType}fillClientCapabilities(e){const n=H0(H0(e,"workspace"),"fileOperations");W0(n,"dynamicRegistration",!0),W0(n,this._clientCapability,!0)}initialize(e){var r;const n=(r=e.workspace)==null?void 0:r.fileOperations,i=n!==void 0?xS(n,this._serverCapability):void 0;if((i==null?void 0:i.filters)!==void 0)try{this.register({id:RS.generateUuid(),registerOptions:{filters:i.filters}})}catch(s){this._client.warn(`Ignoring invalid glob pattern for ${this._serverCapability} registration: ${s}`)}}register(e){this._listener||(this._listener=this._event(this.send,this));const n=e.registerOptions.filters.map(i=>{const r=new kS.Minimatch(i.pattern.glob,Kr.asMinimatchOptions(i.pattern.options));if(!r.makeRe())throw new Error(`Invalid pattern ${i.pattern.glob}!`);return{scheme:i.scheme,matcher:r,kind:i.pattern.matches}});this._filters.set(e.id,n)}unregister(e){this._filters.delete(e),this._filters.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._filters.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getFileType(e){return Kr.getFileType(e)}async filter(e,n){const i=await Promise.all(e.files.map(async s=>{const o=n(s),a=o.fsPath.replace(/\\/g,"/");for(const c of this._filters.values())for(const l of c)if(!(l.scheme!==void 0&&l.scheme!==o.scheme)){if(l.matcher.match(a)){if(l.kind===void 0)return!0;const f=await this.getFileType(o);if(f===void 0)return this._client.error(`Failed to determine file type for ${o.toString()}.`),!0;if(f===Yn.FileType.File&&l.kind===Bi.FileOperationPatternKind.file||f===Yn.FileType.Directory&&l.kind===Bi.FileOperationPatternKind.folder)return!0}else if(l.kind===Bi.FileOperationPatternKind.folder&&await Kr.getFileType(o)===Yn.FileType.Directory&&l.matcher.match(`${a}/`))return!0}return!1})),r=e.files.filter((s,o)=>i[o]);return{...e,files:r}}static async getFileType(e){try{return(await Yn.workspace.fs.stat(e)).type}catch{return}}static asMinimatchOptions(e){const n={dot:!0};return(e==null?void 0:e.ignoreCase)===!0&&(n.nocase=!0),n}}class ky extends Kr{constructor(e,n,i,r,s,o,a){super(e,n,i,r,s),this._notificationType=i,this._accessUri=o,this._createParams=a}async send(e){const n=await this.filter(e,this._accessUri);if(n.files.length){const i=async r=>this._client.sendNotification(this._notificationType,this._createParams(r));return this.doSend(n,i)}}}class Ry extends ky{constructor(){super(...arguments),this._fsPathFileTypes=new Map}async getFileType(e){const n=e.fsPath;if(this._fsPathFileTypes.has(n))return this._fsPathFileTypes.get(n);const i=await Kr.getFileType(e);return i&&this._fsPathFileTypes.set(n,i),i}async cacheFileTypes(e,n){await this.filter(e,n)}clearFileTypeCache(){this._fsPathFileTypes.clear()}unregister(e){super.unregister(e),this.filterSize()===0&&this._willListener&&(this._willListener.dispose(),this._willListener=void 0)}clear(){super.clear(),this._willListener&&(this._willListener.dispose(),this._willListener=void 0)}}class IS extends ky{constructor(e){super(e,Yn.workspace.onDidCreateFiles,Bi.DidCreateFilesNotification.type,"didCreate","didCreate",n=>n,e.code2ProtocolConverter.asDidCreateFilesParams)}doSend(e,n){const i=this._client.middleware.workspace;return i!=null&&i.didCreateFiles?i.didCreateFiles(e,n):n(e)}}Fn.DidCreateFilesFeature=IS;class ES extends Ry{constructor(e){super(e,Yn.workspace.onDidRenameFiles,Bi.DidRenameFilesNotification.type,"didRename","didRename",n=>n.oldUri,e.code2ProtocolConverter.asDidRenameFilesParams)}register(e){this._willListener||(this._willListener=Yn.workspace.onWillRenameFiles(this.willRename,this)),super.register(e)}willRename(e){e.waitUntil(this.cacheFileTypes(e,n=>n.oldUri))}doSend(e,n){this.clearFileTypeCache();const i=this._client.middleware.workspace;return i!=null&&i.didRenameFiles?i.didRenameFiles(e,n):n(e)}}Fn.DidRenameFilesFeature=ES;class PS extends Ry{constructor(e){super(e,Yn.workspace.onDidDeleteFiles,Bi.DidDeleteFilesNotification.type,"didDelete","didDelete",n=>n,e.code2ProtocolConverter.asDidDeleteFilesParams)}register(e){this._willListener||(this._willListener=Yn.workspace.onWillDeleteFiles(this.willDelete,this)),super.register(e)}willDelete(e){e.waitUntil(this.cacheFileTypes(e,n=>n))}doSend(e,n){this.clearFileTypeCache();const i=this._client.middleware.workspace;return i!=null&&i.didDeleteFiles?i.didDeleteFiles(e,n):n(e)}}Fn.DidDeleteFilesFeature=PS;class pg extends Kr{constructor(e,n,i,r,s,o,a){super(e,n,i,r,s),this._requestType=i,this._accessUri=o,this._createParams=a}async send(e){const n=this.waitUntil(e);e.waitUntil(n)}async waitUntil(e){const n=await this.filter(e,this._accessUri);if(n.files.length){const i=r=>this._client.sendRequest(this._requestType,this._createParams(r),r.token).then(this._client.protocol2CodeConverter.asWorkspaceEdit);return this.doSend(n,i)}else return}}class AS extends pg{constructor(e){super(e,Yn.workspace.onWillCreateFiles,Bi.WillCreateFilesRequest.type,"willCreate","willCreate",n=>n,e.code2ProtocolConverter.asWillCreateFilesParams)}doSend(e,n){const i=this._client.middleware.workspace;return i!=null&&i.willCreateFiles?i.willCreateFiles(e,n):n(e)}}Fn.WillCreateFilesFeature=AS;class MS extends pg{constructor(e){super(e,Yn.workspace.onWillRenameFiles,Bi.WillRenameFilesRequest.type,"willRename","willRename",n=>n.oldUri,e.code2ProtocolConverter.asWillRenameFilesParams)}doSend(e,n){const i=this._client.middleware.workspace;return i!=null&&i.willRenameFiles?i.willRenameFiles(e,n):n(e)}}Fn.WillRenameFilesFeature=MS;class OS extends pg{constructor(e){super(e,Yn.workspace.onWillDeleteFiles,Bi.WillDeleteFilesRequest.type,"willDelete","willDelete",n=>n,e.code2ProtocolConverter.asWillDeleteFilesParams)}doSend(e,n){const i=this._client.middleware.workspace;return i!=null&&i.willDeleteFiles?i.willDeleteFiles(e,n):n(e)}}Fn.WillDeleteFilesFeature=OS;var xl={};Object.defineProperty(xl,"__esModule",{value:!0});xl.LinkedEditingFeature=void 0;const FS=Re,Su=ye,Du=De;class LS extends Du.TextDocumentLanguageFeature{constructor(e){super(e,Su.LinkedEditingRangeRequest.type)}fillClientCapabilities(e){const n=(0,Du.ensure)((0,Du.ensure)(e,"textDocument"),"linkedEditingRange");n.dynamicRegistration=!0}initialize(e,n){let[i,r]=this.getRegistration(n,e.linkedEditingRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i={provideLinkedEditingRanges:(r,s,o)=>{const a=this._client,c=(f,g,p)=>a.sendRequest(Su.LinkedEditingRangeRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,g),p).then(_=>p.isCancellationRequested?null:a.protocol2CodeConverter.asLinkedEditingRanges(_,p),_=>a.handleFailedRequest(Su.LinkedEditingRangeRequest.type,p,_,null)),l=a.middleware;return l.provideLinkedEditingRange?l.provideLinkedEditingRange(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return FS.languages.registerLinkedEditingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}xl.LinkedEditingFeature=LS;var Il={};Object.defineProperty(Il,"__esModule",{value:!0});Il.TypeHierarchyFeature=void 0;const NS=Re,Mr=ye,Tu=De;class $S{constructor(e){this.client=e,this.middleware=e.middleware}prepareTypeHierarchy(e,n,i){const r=this.client,s=this.middleware,o=(a,c,l)=>{const f=r.code2ProtocolConverter.asTextDocumentPositionParams(a,c);return r.sendRequest(Mr.TypeHierarchyPrepareRequest.type,f,l).then(g=>l.isCancellationRequested?null:r.protocol2CodeConverter.asTypeHierarchyItems(g,l),g=>r.handleFailedRequest(Mr.TypeHierarchyPrepareRequest.type,l,g,null))};return s.prepareTypeHierarchy?s.prepareTypeHierarchy(e,n,i,o):o(e,n,i)}provideTypeHierarchySupertypes(e,n){const i=this.client,r=this.middleware,s=(o,a)=>{const c={item:i.code2ProtocolConverter.asTypeHierarchyItem(o)};return i.sendRequest(Mr.TypeHierarchySupertypesRequest.type,c,a).then(l=>a.isCancellationRequested?null:i.protocol2CodeConverter.asTypeHierarchyItems(l,a),l=>i.handleFailedRequest(Mr.TypeHierarchySupertypesRequest.type,a,l,null))};return r.provideTypeHierarchySupertypes?r.provideTypeHierarchySupertypes(e,n,s):s(e,n)}provideTypeHierarchySubtypes(e,n){const i=this.client,r=this.middleware,s=(o,a)=>{const c={item:i.code2ProtocolConverter.asTypeHierarchyItem(o)};return i.sendRequest(Mr.TypeHierarchySubtypesRequest.type,c,a).then(l=>a.isCancellationRequested?null:i.protocol2CodeConverter.asTypeHierarchyItems(l,a),l=>i.handleFailedRequest(Mr.TypeHierarchySubtypesRequest.type,a,l,null))};return r.provideTypeHierarchySubtypes?r.provideTypeHierarchySubtypes(e,n,s):s(e,n)}}class qS extends Tu.TextDocumentLanguageFeature{constructor(e){super(e,Mr.TypeHierarchyPrepareRequest.type)}fillClientCapabilities(e){const n=(0,Tu.ensure)((0,Tu.ensure)(e,"textDocument"),"typeHierarchy");n.dynamicRegistration=!0}initialize(e,n){const[i,r]=this.getRegistration(n,e.typeHierarchyProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=this._client,i=new $S(n);return[NS.languages.registerTypeHierarchyProvider(n.protocol2CodeConverter.asDocumentSelector(e.documentSelector),i),i]}}Il.TypeHierarchyFeature=qS;var El={};Object.defineProperty(El,"__esModule",{value:!0});El.InlineValueFeature=void 0;const U0=Re,Da=ye,co=De;class jS extends co.TextDocumentLanguageFeature{constructor(e){super(e,Da.InlineValueRequest.type)}fillClientCapabilities(e){(0,co.ensure)((0,co.ensure)(e,"textDocument"),"inlineValue").dynamicRegistration=!0,(0,co.ensure)((0,co.ensure)(e,"workspace"),"inlineValue").refreshSupport=!0}initialize(e,n){this._client.onRequest(Da.InlineValueRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeInlineValues.fire()});const[i,r]=this.getRegistration(n,e.inlineValueProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i=new U0.EventEmitter,r={onDidChangeInlineValues:i.event,provideInlineValues:(s,o,a,c)=>{const l=this._client,f=(p,_,C,k)=>{const A={textDocument:l.code2ProtocolConverter.asTextDocumentIdentifier(p),range:l.code2ProtocolConverter.asRange(_),context:l.code2ProtocolConverter.asInlineValueContext(C)};return l.sendRequest(Da.InlineValueRequest.type,A,k).then(H=>k.isCancellationRequested?null:l.protocol2CodeConverter.asInlineValues(H,k),H=>l.handleFailedRequest(Da.InlineValueRequest.type,k,H,null))},g=l.middleware;return g.provideInlineValues?g.provideInlineValues(s,o,a,c,f):f(s,o,a,c)}};return[this.registerProvider(n,r),{provider:r,onDidChangeInlineValues:i}]}registerProvider(e,n){return U0.languages.registerInlineValuesProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}El.InlineValueFeature=jS;var Pl={};Object.defineProperty(Pl,"__esModule",{value:!0});Pl.InlayHintsFeature=void 0;const z0=Re,os=ye,lo=De;class HS extends lo.TextDocumentLanguageFeature{constructor(e){super(e,os.InlayHintRequest.type)}fillClientCapabilities(e){const n=(0,lo.ensure)((0,lo.ensure)(e,"textDocument"),"inlayHint");n.dynamicRegistration=!0,n.resolveSupport={properties:["tooltip","textEdits","label.tooltip","label.location","label.command"]},(0,lo.ensure)((0,lo.ensure)(e,"workspace"),"inlayHint").refreshSupport=!0}initialize(e,n){this._client.onRequest(os.InlayHintRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeInlayHints.fire()});const[i,r]=this.getRegistration(n,e.inlayHintProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i=new z0.EventEmitter,r={onDidChangeInlayHints:i.event,provideInlayHints:(s,o,a)=>{const c=this._client,l=async(g,p,_)=>{const C={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),range:c.code2ProtocolConverter.asRange(p)};try{const k=await c.sendRequest(os.InlayHintRequest.type,C,_);return _.isCancellationRequested?null:c.protocol2CodeConverter.asInlayHints(k,_)}catch(k){return c.handleFailedRequest(os.InlayHintRequest.type,_,k,null)}},f=c.middleware;return f.provideInlayHints?f.provideInlayHints(s,o,a,l):l(s,o,a)}};return r.resolveInlayHint=e.resolveProvider===!0?(s,o)=>{const a=this._client,c=async(f,g)=>{try{const p=await a.sendRequest(os.InlayHintResolveRequest.type,a.code2ProtocolConverter.asInlayHint(f),g);if(g.isCancellationRequested)return null;const _=a.protocol2CodeConverter.asInlayHint(p,g);return g.isCancellationRequested?null:_}catch(p){return a.handleFailedRequest(os.InlayHintResolveRequest.type,g,p,null)}},l=a.middleware;return l.resolveInlayHint?l.resolveInlayHint(s,o,c):c(s,o)}:void 0,[this.registerProvider(n,r),{provider:r,onDidChangeInlayHints:i}]}registerProvider(e,n){return z0.languages.registerInlayHintsProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Pl.InlayHintsFeature=HS;var Al={};Object.defineProperty(Al,"__esModule",{value:!0});Al.InlineCompletionItemFeature=void 0;const WS=Re,ku=ye,Ru=De,US=Be;class zS extends Ru.TextDocumentLanguageFeature{constructor(e){super(e,ku.InlineCompletionRequest.type)}fillClientCapabilities(e){let n=(0,Ru.ensure)((0,Ru.ensure)(e,"textDocument"),"inlineCompletion");n.dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.inlineCompletionProvider);i&&this.register({id:US.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideInlineCompletionItems:(r,s,o,a)=>{const c=this._client,l=this._client.middleware,f=(g,p,_,C)=>c.sendRequest(ku.InlineCompletionRequest.type,c.code2ProtocolConverter.asInlineCompletionParams(g,p,_),C).then(k=>C.isCancellationRequested?null:c.protocol2CodeConverter.asInlineCompletionResult(k,C),k=>c.handleFailedRequest(ku.InlineCompletionRequest.type,C,k,null));return l.provideInlineCompletionItems?l.provideInlineCompletionItems(r,s,o,a,f):f(r,s,o,a)}};return[WS.languages.registerInlineCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}Al.InlineCompletionItemFeature=zS;Object.defineProperty(Yt,"__esModule",{value:!0});Yt.ProposedFeatures=Yt.BaseLanguageClient=Yt.MessageTransports=Yt.SuspendMode=Yt.State=Yt.CloseAction=Yt.ErrorAction=Yt.RevealOutputChannelOn=void 0;const nt=Re,J=ye,BS=Gc,VS=il,si=Ze,Ta=Qt,B0=Be,KS=la,ni=De,GS=Ui,V0=rl,K0=hr,as=On,JS=sl,XS=ol,ZS=al,YS=cl,QS=ll,eD=hg,tD=ul,nD=dl,iD=fl,rD=hl,xu=gr,sD=pl,oD=ml,aD=yl,cD=bl,lD=vl,uD=wl,dD=Cl,fD=zs,hD=_l,gD=Sl,pD=Dl,mD=Tl,yD=kl,bD=Rl,cs=Fn,vD=xl,wD=Il,CD=El,_D=Pl,SD=Al;var Fr;(function(t){t[t.Debug=0]="Debug",t[t.Info=1]="Info",t[t.Warn=2]="Warn",t[t.Error=3]="Error",t[t.Never=4]="Never"})(Fr||(Yt.RevealOutputChannelOn=Fr={}));var Xo;(function(t){t[t.Continue=1]="Continue",t[t.Shutdown=2]="Shutdown"})(Xo||(Yt.ErrorAction=Xo={}));var pr;(function(t){t[t.DoNotRestart=1]="DoNotRestart",t[t.Restart=2]="Restart"})(pr||(Yt.CloseAction=pr={}));var xo;(function(t){t[t.Stopped=1]="Stopped",t[t.Starting=3]="Starting",t[t.Running=2]="Running"})(xo||(Yt.State=xo={}));var G0;(function(t){t.off="off",t.on="on"})(G0||(Yt.SuspendMode=G0={}));var q1;(function(t){function e(n){return n==null?!1:typeof n=="boolean"||typeof n=="object"&&n!==null&&si.stringArray(n.enabledCommands)?n:!1}t.sanitizeIsTrusted=e})(q1||(q1={}));class DD{constructor(e,n){this.client=e,this.maxRestartCount=n,this.restarts=[]}error(e,n,i){return i&&i<=3?{action:Xo.Continue}:{action:Xo.Shutdown}}closed(){return this.restarts.push(Date.now()),this.restarts.length<=this.maxRestartCount?{action:pr.Restart}:this.restarts[this.restarts.length-1]-this.restarts[0]<=3*60*1e3?{action:pr.DoNotRestart,message:`The ${this.client.name} server crashed ${this.maxRestartCount+1} times in the last 3 minutes. The server will not be restarted. See the output for more information.`}:(this.restarts.shift(),{action:pr.Restart})}}var Ne;(function(t){t.Initial="initial",t.Starting="starting",t.StartFailed="startFailed",t.Running="running",t.Stopping="stopping",t.Stopped="stopped"})(Ne||(Ne={}));var J0;(function(t){function e(n){return n&&J.MessageReader.is(n.reader)&&J.MessageWriter.is(n.writer)}t.is=e})(J0||(Yt.MessageTransports=J0={}));class Gr{constructor(e,n,i){var s;this._traceFormat=J.TraceFormat.Text,this._diagnosticQueue=new Map,this._diagnosticQueueState={state:"idle"},this._features=[],this._dynamicFeatures=new Map,this.workspaceEditLock=new Ta.Semaphore(1),this._id=e,this._name=n,i=i||{};const r={isTrusted:!1,supportHtml:!1};i.markdown!==void 0&&(r.isTrusted=q1.sanitizeIsTrusted(i.markdown.isTrusted),r.supportHtml=i.markdown.supportHtml===!0),this._clientOptions={documentSelector:i.documentSelector??[],synchronize:i.synchronize??{},diagnosticCollectionName:i.diagnosticCollectionName,outputChannelName:i.outputChannelName??this._name,revealOutputChannelOn:i.revealOutputChannelOn??Fr.Error,stdioEncoding:i.stdioEncoding??"utf8",initializationOptions:i.initializationOptions,initializationFailedHandler:i.initializationFailedHandler,progressOnInitialization:!!i.progressOnInitialization,errorHandler:i.errorHandler??this.createDefaultErrorHandler((s=i.connectionOptions)==null?void 0:s.maxRestartCount),middleware:i.middleware??{},uriConverters:i.uriConverters,workspaceFolder:i.workspaceFolder,connectionOptions:i.connectionOptions,markdown:r,diagnosticPullOptions:i.diagnosticPullOptions??{onChange:!0,onSave:!1},notebookDocumentOptions:i.notebookDocumentOptions??{}},this._clientOptions.synchronize=this._clientOptions.synchronize||{},this._state=Ne.Initial,this._ignoredRegistrations=new Set,this._listeners=[],this._notificationHandlers=new Map,this._pendingNotificationHandlers=new Map,this._notificationDisposables=new Map,this._requestHandlers=new Map,this._pendingRequestHandlers=new Map,this._requestDisposables=new Map,this._progressHandlers=new Map,this._pendingProgressHandlers=new Map,this._progressDisposables=new Map,this._connection=void 0,this._initializeResult=void 0,i.outputChannel?(this._outputChannel=i.outputChannel,this._disposeOutputChannel=!1):(this._outputChannel=void 0,this._disposeOutputChannel=!0),this._traceOutputChannel=i.traceOutputChannel,this._diagnostics=void 0,this._pendingOpenNotifications=new Set,this._pendingChangeSemaphore=new Ta.Semaphore(1),this._pendingChangeDelayer=new Ta.Delayer(250),this._fileEvents=[],this._fileEventDelayer=new Ta.Delayer(250),this._onStop=void 0,this._telemetryEmitter=new J.Emitter,this._stateChangeEmitter=new J.Emitter,this._trace=J.Trace.Off,this._tracer={log:(o,a)=>{si.string(o)?this.logTrace(o,a):this.logObjectTrace(o)}},this._c2p=BS.createConverter(i.uriConverters?i.uriConverters.code2Protocol:void 0),this._p2c=VS.createConverter(i.uriConverters?i.uriConverters.protocol2Code:void 0,this._clientOptions.markdown.isTrusted,this._clientOptions.markdown.supportHtml),this._syncedDocuments=new Map,this.registerBuiltinFeatures()}get name(){return this._name}get middleware(){return this._clientOptions.middleware??Object.create(null)}get clientOptions(){return this._clientOptions}get protocol2CodeConverter(){return this._p2c}get code2ProtocolConverter(){return this._c2p}get onTelemetry(){return this._telemetryEmitter.event}get onDidChangeState(){return this._stateChangeEmitter.event}get outputChannel(){return this._outputChannel||(this._outputChannel=nt.window.createOutputChannel(this._clientOptions.outputChannelName?this._clientOptions.outputChannelName:this._name)),this._outputChannel}get traceOutputChannel(){return this._traceOutputChannel?this._traceOutputChannel:this.outputChannel}get diagnostics(){return this._diagnostics}get state(){return this.getPublicState()}get $state(){return this._state}set $state(e){let n=this.getPublicState();this._state=e;let i=this.getPublicState();i!==n&&this._stateChangeEmitter.fire({oldState:n,newState:i})}getPublicState(){switch(this.$state){case Ne.Starting:return xo.Starting;case Ne.Running:return xo.Running;default:return xo.Stopped}}get initializeResult(){return this._initializeResult}async sendRequest(e,...n){var s;if(this.$state===Ne.StartFailed||this.$state===Ne.Stopping||this.$state===Ne.Stopped)return Promise.reject(new J.ResponseError(J.ErrorCodes.ConnectionInactive,"Client is not running"));const i=await this.$start();this._didChangeTextDocumentFeature.syncKind===J.TextDocumentSyncKind.Full&&await this.sendPendingFullTextDocumentChanges(i);const r=(s=this._clientOptions.middleware)==null?void 0:s.sendRequest;if(r!==void 0){let o,a;return n.length===1?J.CancellationToken.is(n[0])?a=n[0]:o=n[0]:n.length===2&&(o=n[0],a=n[1]),r(e,o,a,(c,l,f)=>{const g=[];return l!==void 0&&g.push(l),f!==void 0&&g.push(f),i.sendRequest(c,...g)})}else return i.sendRequest(e,...n)}onRequest(e,n){const i=typeof e=="string"?e:e.method;this._requestHandlers.set(i,n);const r=this.activeConnection();let s;return r!==void 0?(this._requestDisposables.set(i,r.onRequest(e,n)),s={dispose:()=>{const o=this._requestDisposables.get(i);o!==void 0&&(o.dispose(),this._requestDisposables.delete(i))}}):(this._pendingRequestHandlers.set(i,n),s={dispose:()=>{this._pendingRequestHandlers.delete(i);const o=this._requestDisposables.get(i);o!==void 0&&(o.dispose(),this._requestDisposables.delete(i))}}),{dispose:()=>{this._requestHandlers.delete(i),s.dispose()}}}async sendNotification(e,n){var a;if(this.$state===Ne.StartFailed||this.$state===Ne.Stopping||this.$state===Ne.Stopped)return Promise.reject(new J.ResponseError(J.ErrorCodes.ConnectionInactive,"Client is not running"));const i=this._didChangeTextDocumentFeature.syncKind===J.TextDocumentSyncKind.Full;let r;i&&typeof e!="string"&&e.method===J.DidOpenTextDocumentNotification.method&&(r=n==null?void 0:n.textDocument.uri,this._pendingOpenNotifications.add(r));const s=await this.$start();i&&await this.sendPendingFullTextDocumentChanges(s),r!==void 0&&this._pendingOpenNotifications.delete(r);const o=(a=this._clientOptions.middleware)==null?void 0:a.sendNotification;return o?o(e,s.sendNotification.bind(s),n):s.sendNotification(e,n)}onNotification(e,n){const i=typeof e=="string"?e:e.method;this._notificationHandlers.set(i,n);const r=this.activeConnection();let s;return r!==void 0?(this._notificationDisposables.set(i,r.onNotification(e,n)),s={dispose:()=>{const o=this._notificationDisposables.get(i);o!==void 0&&(o.dispose(),this._notificationDisposables.delete(i))}}):(this._pendingNotificationHandlers.set(i,n),s={dispose:()=>{this._pendingNotificationHandlers.delete(i);const o=this._notificationDisposables.get(i);o!==void 0&&(o.dispose(),this._notificationDisposables.delete(i))}}),{dispose:()=>{this._notificationHandlers.delete(i),s.dispose()}}}async sendProgress(e,n,i){if(this.$state===Ne.StartFailed||this.$state===Ne.Stopping||this.$state===Ne.Stopped)return Promise.reject(new J.ResponseError(J.ErrorCodes.ConnectionInactive,"Client is not running"));try{return(await this.$start()).sendProgress(e,n,i)}catch(r){throw this.error(`Sending progress for token ${n} failed.`,r),r}}onProgress(e,n,i){var c;this._progressHandlers.set(n,{type:e,handler:i});const r=this.activeConnection();let s;const o=(c=this._clientOptions.middleware)==null?void 0:c.handleWorkDoneProgress,a=J.WorkDoneProgress.is(e)&&o!==void 0?l=>{o(n,l,()=>i(l))}:i;return r!==void 0?(this._progressDisposables.set(n,r.onProgress(e,n,a)),s={dispose:()=>{const l=this._progressDisposables.get(n);l!==void 0&&(l.dispose(),this._progressDisposables.delete(n))}}):(this._pendingProgressHandlers.set(n,{type:e,handler:i}),s={dispose:()=>{this._pendingProgressHandlers.delete(n);const l=this._progressDisposables.get(n);l!==void 0&&(l.dispose(),this._progressDisposables.delete(n))}}),{dispose:()=>{this._progressHandlers.delete(n),s.dispose()}}}createDefaultErrorHandler(e){if(e!==void 0&&e<0)throw new Error(`Invalid maxRestartCount: ${e}`);return new DD(this,e??4)}async setTrace(e){this._trace=e;const n=this.activeConnection();n!==void 0&&await n.trace(this._trace,this._tracer,{sendNotification:!1,traceFormat:this._traceFormat})}data2String(e){if(e instanceof J.ResponseError){const n=e;return` Message: ${n.message}
|
|
103
119
|
Code: ${n.code} ${n.data?`
|
|
104
|
-
`+n.data.toString():""}`}return e instanceof Error?sr.string(e.stack)?e.stack:e.message:sr.string(e)?e:e.toString()}debug(e,n,r=!0){this.logOutputMessage(Q.MessageType.Debug,Fi.Debug,"Debug",e,n,r)}info(e,n,r=!0){this.logOutputMessage(Q.MessageType.Info,Fi.Info,"Info",e,n,r)}warn(e,n,r=!0){this.logOutputMessage(Q.MessageType.Warning,Fi.Warn,"Warn",e,n,r)}error(e,n,r=!0){this.logOutputMessage(Q.MessageType.Error,Fi.Error,"Error",e,n,r)}logOutputMessage(e,n,r,i,s,o){this.outputChannel.appendLine(`[${r.padEnd(5)} - ${new Date().toLocaleTimeString()}] ${i}`),s!=null&&this.outputChannel.appendLine(this.data2String(s)),(o==="force"||o&&this._clientOptions.revealOutputChannelOn<=n)&&this.showNotificationMessage(e,i)}showNotificationMessage(e,n){n=n??"A request has failed. See the output for more information.",(e===Q.MessageType.Error?nt.window.showErrorMessage:e===Q.MessageType.Warning?nt.window.showWarningMessage:nt.window.showInformationMessage)(n,"Go to output").then(i=>{i!==void 0&&this.outputChannel.show(!0)})}logTrace(e,n){this.traceOutputChannel.appendLine(`[Trace - ${new Date().toLocaleTimeString()}] ${e}`),n&&this.traceOutputChannel.appendLine(this.data2String(n))}logObjectTrace(e){e.isLSPMessage&&e.type?this.traceOutputChannel.append(`[LSP - ${new Date().toLocaleTimeString()}] `):this.traceOutputChannel.append(`[Trace - ${new Date().toLocaleTimeString()}] `),e&&this.traceOutputChannel.appendLine(`${JSON.stringify(e)}`)}needsStart(){return this.$state===Ne.Initial||this.$state===Ne.Stopping||this.$state===Ne.Stopped}needsStop(){return this.$state===Ne.Starting||this.$state===Ne.Running}activeConnection(){return this.$state===Ne.Running&&this._connection!==void 0?this._connection:void 0}isRunning(){return this.$state===Ne.Running}async start(){if(this._disposed==="disposing"||this._disposed==="disposed")throw new Error("Client got disposed and can't be restarted.");if(this.$state===Ne.Stopping)throw new Error("Client is currently stopping. Can only restart a full stopped client");if(this._onStart!==void 0)return this._onStart;const[e,n,r]=this.createOnStartPromise();this._onStart=e,this._diagnostics===void 0&&(this._diagnostics=this._clientOptions.diagnosticCollectionName?nt.languages.createDiagnosticCollection(this._clientOptions.diagnosticCollectionName):nt.languages.createDiagnosticCollection());for(const[i,s]of this._notificationHandlers)this._pendingNotificationHandlers.has(i)||this._pendingNotificationHandlers.set(i,s);for(const[i,s]of this._requestHandlers)this._pendingRequestHandlers.has(i)||this._pendingRequestHandlers.set(i,s);for(const[i,s]of this._progressHandlers)this._pendingProgressHandlers.has(i)||this._pendingProgressHandlers.set(i,s);this.$state=Ne.Starting;try{const i=await this.createConnection();i.onNotification(Q.LogMessageNotification.type,s=>{switch(s.type){case Q.MessageType.Error:this.error(s.message,void 0,!1);break;case Q.MessageType.Warning:this.warn(s.message,void 0,!1);break;case Q.MessageType.Info:this.info(s.message,void 0,!1);break;case Q.MessageType.Debug:this.debug(s.message,void 0,!1);break;default:this.outputChannel.appendLine(s.message)}}),i.onNotification(Q.ShowMessageNotification.type,s=>{switch(s.type){case Q.MessageType.Error:nt.window.showErrorMessage(s.message);break;case Q.MessageType.Warning:nt.window.showWarningMessage(s.message);break;case Q.MessageType.Info:nt.window.showInformationMessage(s.message);break;default:nt.window.showInformationMessage(s.message)}}),i.onRequest(Q.ShowMessageRequest.type,s=>{let o;switch(s.type){case Q.MessageType.Error:o=nt.window.showErrorMessage;break;case Q.MessageType.Warning:o=nt.window.showWarningMessage;break;case Q.MessageType.Info:o=nt.window.showInformationMessage;break;default:o=nt.window.showInformationMessage}let a=s.actions||[];return o(s.message,...a)}),i.onNotification(Q.TelemetryEventNotification.type,s=>{this._telemetryEmitter.fire(s)}),i.onRequest(Q.ShowDocumentRequest.type,async s=>{var c;const o=async l=>{const f=this.protocol2CodeConverter.asUri(l.uri);try{if(l.external===!0)return{success:await nt.env.openExternal(f)};{const p={};return l.selection!==void 0&&(p.selection=this.protocol2CodeConverter.asRange(l.selection)),l.takeFocus===void 0||l.takeFocus===!1?p.preserveFocus=!0:l.takeFocus===!0&&(p.preserveFocus=!1),await nt.window.showTextDocument(f,p),{success:!0}}}catch{return{success:!1}}},a=(c=this._clientOptions.middleware.window)==null?void 0:c.showDocument;return a!==void 0?a(s,o):o(s)}),i.listen(),await this.initialize(i),n()}catch(i){this.$state=Ne.StartFailed,this.error(`${this._name} client: couldn't create connection to server.`,i,"force"),r(i)}return this._onStart}createOnStartPromise(){let e,n;return[new Promise((i,s)=>{e=i,n=s}),e,n]}async initialize(e){this.refreshTrace(e,!1);const n=this._clientOptions.initializationOptions,[r,i]=this._clientOptions.workspaceFolder!==void 0?[this._clientOptions.workspaceFolder.uri.fsPath,[{uri:this._c2p.asUri(this._clientOptions.workspaceFolder.uri),name:this._clientOptions.workspaceFolder.name}]]:[this._clientGetRootPath(),null],s={processId:null,clientInfo:{name:nt.env.appName,version:nt.version},locale:this.getLocale(),rootPath:r||null,rootUri:r?this._c2p.asUri(nt.Uri.file(r)):null,capabilities:this.computeClientCapabilities(),initializationOptions:sr.func(n)?n():n,trace:Q.Trace.toString(this._trace),workspaceFolders:i};if(this.fillInitializeParams(s),this._clientOptions.progressOnInitialization){const o=U0.generateUuid(),a=new qS.ProgressPart(e,o);s.workDoneToken=o;try{const c=await this.doInitialize(e,s);return a.done(),c}catch(c){throw a.cancel(),c}}else return this.doInitialize(e,s)}async doInitialize(e,n){try{const r=await e.initialize(n);if(r.capabilities.positionEncoding!==void 0&&r.capabilities.positionEncoding!==Q.PositionEncodingKind.UTF16)throw new Error(`Unsupported position encoding (${r.capabilities.positionEncoding}) received from server ${this.name}`);this._initializeResult=r,this.$state=Ne.Running;let i;sr.number(r.capabilities.textDocumentSync)?r.capabilities.textDocumentSync===Q.TextDocumentSyncKind.None?i={openClose:!1,change:Q.TextDocumentSyncKind.None,save:void 0}:i={openClose:!0,change:r.capabilities.textDocumentSync,save:{includeText:!1}}:r.capabilities.textDocumentSync!==void 0&&r.capabilities.textDocumentSync!==null&&(i=r.capabilities.textDocumentSync),this._capabilities=Object.assign({},r.capabilities,{resolvedTextDocumentSync:i}),e.onNotification(Q.PublishDiagnosticsNotification.type,s=>this.handleDiagnostics(s)),e.onRequest(Q.RegistrationRequest.type,s=>this.handleRegistrationRequest(s)),e.onRequest("client/registerFeature",s=>this.handleRegistrationRequest(s)),e.onRequest(Q.UnregistrationRequest.type,s=>this.handleUnregistrationRequest(s)),e.onRequest("client/unregisterFeature",s=>this.handleUnregistrationRequest(s)),e.onRequest(Q.ApplyWorkspaceEditRequest.type,s=>this.handleApplyWorkspaceEdit(s));for(const[s,o]of this._pendingNotificationHandlers)this._notificationDisposables.set(s,e.onNotification(s,o));this._pendingNotificationHandlers.clear();for(const[s,o]of this._pendingRequestHandlers)this._requestDisposables.set(s,e.onRequest(s,o));this._pendingRequestHandlers.clear();for(const[s,o]of this._pendingProgressHandlers)this._progressDisposables.set(s,e.onProgress(o.type,s,o.handler));return this._pendingProgressHandlers.clear(),await e.sendNotification(Q.InitializedNotification.type,{}),this.hookFileEvents(e),this.hookConfigurationChanged(e),this.initializeFeatures(e),r}catch(r){throw this._clientOptions.initializationFailedHandler?this._clientOptions.initializationFailedHandler(r)?this.initialize(e):this.stop():r instanceof Q.ResponseError&&r.data&&r.data.retry?nt.window.showErrorMessage(r.message,{title:"Retry",id:"retry"}).then(i=>{i&&i.id==="retry"?this.initialize(e):this.stop()}):(r&&r.message&&nt.window.showErrorMessage(r.message),this.error("Server initialization failed.",r),this.stop()),r}}_clientGetRootPath(){let e=nt.workspace.workspaceFolders;if(!e||e.length===0)return;let n=e[0];if(n.uri.scheme==="file")return n.uri.fsPath}stop(e=2e3){return this.shutdown("stop",e)}dispose(e=2e3){try{return this._disposed="disposing",this.stop(e)}finally{this._disposed="disposed"}}async shutdown(e,n){if(this.$state===Ne.Stopped||this.$state===Ne.Initial)return;if(this.$state===Ne.Stopping){if(this._onStop!==void 0)return this._onStop;throw new Error("Client is stopping but no stop promise available.")}const r=this.activeConnection();if(r===void 0||this.$state!==Ne.Running)throw new Error(`Client is not running and can't be stopped. It's current state is: ${this.$state}`);this._initializeResult=void 0,this.$state=Ne.Stopping,this.cleanUp(e);const i=new Promise(o=>{(0,Q.RAL)().timer.setTimeout(o,n)}),s=(async o=>(await o.shutdown(),await o.exit(),o))(r);return this._onStop=Promise.race([i,s]).then(o=>{if(o!==void 0)o.end(),o.dispose();else throw this.error("Stopping server timed out",void 0,!1),new Error("Stopping the server timed out")},o=>{throw this.error("Stopping server failed",o,!1),o}).finally(()=>{this.$state=Ne.Stopped,e==="stop"&&this.cleanUpChannel(),this._onStart=void 0,this._onStop=void 0,this._connection=void 0,this._ignoredRegistrations.clear()})}cleanUp(e){this._fileEvents=[],this._fileEventDelayer.cancel();const n=this._listeners.splice(0,this._listeners.length);for(const r of n)r.dispose();this._syncedDocuments&&this._syncedDocuments.clear();for(const r of Array.from(this._features.entries()).map(i=>i[1]).reverse())r.clear();e==="stop"&&this._diagnostics!==void 0&&(this._diagnostics.dispose(),this._diagnostics=void 0),this._idleInterval!==void 0&&(this._idleInterval.dispose(),this._idleInterval=void 0)}cleanUpChannel(){this._outputChannel!==void 0&&this._disposeOutputChannel&&(this._outputChannel.dispose(),this._outputChannel=void 0)}notifyFileEvent(e){var s;const n=this;async function r(o){return n._fileEvents.push(o),n._fileEventDelayer.trigger(async()=>{await n.sendNotification(Q.DidChangeWatchedFilesNotification.type,{changes:n._fileEvents}),n._fileEvents=[]})}const i=(s=this.clientOptions.middleware)==null?void 0:s.workspace;(i!=null&&i.didChangeWatchedFile?i.didChangeWatchedFile(e,r):r(e)).catch(o=>{n.error("Notify file events failed.",o)})}async sendPendingFullTextDocumentChanges(e){return this._pendingChangeSemaphore.lock(async()=>{try{const n=this._didChangeTextDocumentFeature.getPendingDocumentChanges(this._pendingOpenNotifications);if(n.length===0)return;for(const r of n){const i=this.code2ProtocolConverter.asChangeTextDocumentParams(r);await e.sendNotification(Q.DidChangeTextDocumentNotification.type,i),this._didChangeTextDocumentFeature.notificationSent(r,Q.DidChangeTextDocumentNotification.type,i)}}catch(n){throw this.error("Sending pending changes failed",n,!1),n}})}triggerPendingChangeDelivery(){this._pendingChangeDelayer.trigger(async()=>{const e=this.activeConnection();if(e===void 0){this.triggerPendingChangeDelivery();return}await this.sendPendingFullTextDocumentChanges(e)}).catch(e=>this.error("Delivering pending changes failed",e,!1))}handleDiagnostics(e){if(!this._diagnostics)return;const n=e.uri;this._diagnosticQueueState.state==="busy"&&this._diagnosticQueueState.document===n&&this._diagnosticQueueState.tokenSource.cancel(),this._diagnosticQueue.set(e.uri,e.diagnostics),this.triggerDiagnosticQueue()}triggerDiagnosticQueue(){(0,Q.RAL)().timer.setImmediate(()=>{this.workDiagnosticQueue()})}workDiagnosticQueue(){if(this._diagnosticQueueState.state==="busy")return;const e=this._diagnosticQueue.entries().next();if(e.done===!0)return;const[n,r]=e.value;this._diagnosticQueue.delete(n);const i=new nt.CancellationTokenSource;this._diagnosticQueueState={state:"busy",document:n,tokenSource:i},this._p2c.asDiagnostics(r,i.token).then(s=>{if(!i.token.isCancellationRequested){const o=this._p2c.asUri(n),a=this.clientOptions.middleware;a.handleDiagnostics?a.handleDiagnostics(o,s,(c,l)=>this.setDiagnostics(c,l)):this.setDiagnostics(o,s)}}).finally(()=>{this._diagnosticQueueState={state:"idle"},this.triggerDiagnosticQueue()})}setDiagnostics(e,n){this._diagnostics&&this._diagnostics.set(e,n)}getLocale(){return nt.env.language}async $start(){if(this.$state===Ne.StartFailed)throw new Error("Previous start failed. Can't restart server.");await this.start();const e=this.activeConnection();if(e===void 0)throw new Error("Starting server failed");return e}async createConnection(){let e=(i,s,o)=>{this.handleConnectionError(i,s,o).catch(a=>this.error("Handling connection error failed",a))},n=()=>{this.handleConnectionClosed().catch(i=>this.error("Handling connection close failed",i))};const r=await this.createMessageTransports(this._clientOptions.stdioEncoding||"utf8");return this._connection=bD(r.reader,r.writer,e,n,this._clientOptions.connectionOptions),this._connection}async handleConnectionClosed(){if(this.$state===Ne.Stopped)return;try{this._connection!==void 0&&this._connection.dispose()}catch{}let e={action:gi.DoNotRestart};if(this.$state!==Ne.Stopping)try{e=await this._clientOptions.errorHandler.closed()}catch{}this._connection=void 0,e.action===gi.DoNotRestart?(this.error(e.message??"Connection to server got closed. Server will not be restarted.",void 0,e.handled===!0?!1:"force"),this.cleanUp("stop"),this.$state===Ne.Starting?this.$state=Ne.StartFailed:this.$state=Ne.Stopped,this._onStop=Promise.resolve(),this._onStart=void 0):e.action===gi.Restart&&(this.info(e.message??"Connection to server got closed. Server will restart.",!e.handled),this.cleanUp("restart"),this.$state=Ne.Initial,this._onStop=Promise.resolve(),this._onStart=void 0,this.start().catch(n=>this.error("Restarting server failed",n,"force")))}async handleConnectionError(e,n,r){const i=await this._clientOptions.errorHandler.error(e,n,r);i.action===Jo.Shutdown?(this.error(i.message??`Client ${this._name}: connection to server is erroring.
|
|
120
|
+
`+n.data.toString():""}`}return e instanceof Error?si.string(e.stack)?e.stack:e.message:si.string(e)?e:e.toString()}debug(e,n,i=!0){this.logOutputMessage(J.MessageType.Debug,Fr.Debug,"Debug",e,n,i)}info(e,n,i=!0){this.logOutputMessage(J.MessageType.Info,Fr.Info,"Info",e,n,i)}warn(e,n,i=!0){this.logOutputMessage(J.MessageType.Warning,Fr.Warn,"Warn",e,n,i)}error(e,n,i=!0){this.logOutputMessage(J.MessageType.Error,Fr.Error,"Error",e,n,i)}logOutputMessage(e,n,i,r,s,o){this.outputChannel.appendLine(`[${i.padEnd(5)} - ${new Date().toLocaleTimeString()}] ${r}`),s!=null&&this.outputChannel.appendLine(this.data2String(s)),(o==="force"||o&&this._clientOptions.revealOutputChannelOn<=n)&&this.showNotificationMessage(e,r)}showNotificationMessage(e,n){n=n??"A request has failed. See the output for more information.",(e===J.MessageType.Error?nt.window.showErrorMessage:e===J.MessageType.Warning?nt.window.showWarningMessage:nt.window.showInformationMessage)(n,"Go to output").then(r=>{r!==void 0&&this.outputChannel.show(!0)})}logTrace(e,n){this.traceOutputChannel.appendLine(`[Trace - ${new Date().toLocaleTimeString()}] ${e}`),n&&this.traceOutputChannel.appendLine(this.data2String(n))}logObjectTrace(e){e.isLSPMessage&&e.type?this.traceOutputChannel.append(`[LSP - ${new Date().toLocaleTimeString()}] `):this.traceOutputChannel.append(`[Trace - ${new Date().toLocaleTimeString()}] `),e&&this.traceOutputChannel.appendLine(`${JSON.stringify(e)}`)}needsStart(){return this.$state===Ne.Initial||this.$state===Ne.Stopping||this.$state===Ne.Stopped}needsStop(){return this.$state===Ne.Starting||this.$state===Ne.Running}activeConnection(){return this.$state===Ne.Running&&this._connection!==void 0?this._connection:void 0}isRunning(){return this.$state===Ne.Running}async start(){if(this._disposed==="disposing"||this._disposed==="disposed")throw new Error("Client got disposed and can't be restarted.");if(this.$state===Ne.Stopping)throw new Error("Client is currently stopping. Can only restart a full stopped client");if(this._onStart!==void 0)return this._onStart;const[e,n,i]=this.createOnStartPromise();this._onStart=e,this._diagnostics===void 0&&(this._diagnostics=this._clientOptions.diagnosticCollectionName?nt.languages.createDiagnosticCollection(this._clientOptions.diagnosticCollectionName):nt.languages.createDiagnosticCollection());for(const[r,s]of this._notificationHandlers)this._pendingNotificationHandlers.has(r)||this._pendingNotificationHandlers.set(r,s);for(const[r,s]of this._requestHandlers)this._pendingRequestHandlers.has(r)||this._pendingRequestHandlers.set(r,s);for(const[r,s]of this._progressHandlers)this._pendingProgressHandlers.has(r)||this._pendingProgressHandlers.set(r,s);this.$state=Ne.Starting;try{const r=await this.createConnection();r.onNotification(J.LogMessageNotification.type,s=>{switch(s.type){case J.MessageType.Error:this.error(s.message,void 0,!1);break;case J.MessageType.Warning:this.warn(s.message,void 0,!1);break;case J.MessageType.Info:this.info(s.message,void 0,!1);break;case J.MessageType.Debug:this.debug(s.message,void 0,!1);break;default:this.outputChannel.appendLine(s.message)}}),r.onNotification(J.ShowMessageNotification.type,s=>{switch(s.type){case J.MessageType.Error:nt.window.showErrorMessage(s.message);break;case J.MessageType.Warning:nt.window.showWarningMessage(s.message);break;case J.MessageType.Info:nt.window.showInformationMessage(s.message);break;default:nt.window.showInformationMessage(s.message)}}),r.onRequest(J.ShowMessageRequest.type,s=>{let o;switch(s.type){case J.MessageType.Error:o=nt.window.showErrorMessage;break;case J.MessageType.Warning:o=nt.window.showWarningMessage;break;case J.MessageType.Info:o=nt.window.showInformationMessage;break;default:o=nt.window.showInformationMessage}let a=s.actions||[];return o(s.message,...a)}),r.onNotification(J.TelemetryEventNotification.type,s=>{this._telemetryEmitter.fire(s)}),r.onRequest(J.ShowDocumentRequest.type,async s=>{var c;const o=async l=>{const f=this.protocol2CodeConverter.asUri(l.uri);try{if(l.external===!0)return{success:await nt.env.openExternal(f)};{const g={};return l.selection!==void 0&&(g.selection=this.protocol2CodeConverter.asRange(l.selection)),l.takeFocus===void 0||l.takeFocus===!1?g.preserveFocus=!0:l.takeFocus===!0&&(g.preserveFocus=!1),await nt.window.showTextDocument(f,g),{success:!0}}}catch{return{success:!1}}},a=(c=this._clientOptions.middleware.window)==null?void 0:c.showDocument;return a!==void 0?a(s,o):o(s)}),r.listen(),await this.initialize(r),n()}catch(r){this.$state=Ne.StartFailed,this.error(`${this._name} client: couldn't create connection to server.`,r,"force"),i(r)}return this._onStart}createOnStartPromise(){let e,n;return[new Promise((r,s)=>{e=r,n=s}),e,n]}async initialize(e){this.refreshTrace(e,!1);const n=this._clientOptions.initializationOptions,[i,r]=this._clientOptions.workspaceFolder!==void 0?[this._clientOptions.workspaceFolder.uri.fsPath,[{uri:this._c2p.asUri(this._clientOptions.workspaceFolder.uri),name:this._clientOptions.workspaceFolder.name}]]:[this._clientGetRootPath(),null],s={processId:null,clientInfo:{name:nt.env.appName,version:nt.version},locale:this.getLocale(),rootPath:i||null,rootUri:i?this._c2p.asUri(nt.Uri.file(i)):null,capabilities:this.computeClientCapabilities(),initializationOptions:si.func(n)?n():n,trace:J.Trace.toString(this._trace),workspaceFolders:r};if(this.fillInitializeParams(s),this._clientOptions.progressOnInitialization){const o=B0.generateUuid(),a=new KS.ProgressPart(e,o);s.workDoneToken=o;try{const c=await this.doInitialize(e,s);return a.done(),c}catch(c){throw a.cancel(),c}}else return this.doInitialize(e,s)}async doInitialize(e,n){try{const i=await e.initialize(n);if(i.capabilities.positionEncoding!==void 0&&i.capabilities.positionEncoding!==J.PositionEncodingKind.UTF16)throw new Error(`Unsupported position encoding (${i.capabilities.positionEncoding}) received from server ${this.name}`);this._initializeResult=i,this.$state=Ne.Running;let r;si.number(i.capabilities.textDocumentSync)?i.capabilities.textDocumentSync===J.TextDocumentSyncKind.None?r={openClose:!1,change:J.TextDocumentSyncKind.None,save:void 0}:r={openClose:!0,change:i.capabilities.textDocumentSync,save:{includeText:!1}}:i.capabilities.textDocumentSync!==void 0&&i.capabilities.textDocumentSync!==null&&(r=i.capabilities.textDocumentSync),this._capabilities=Object.assign({},i.capabilities,{resolvedTextDocumentSync:r}),e.onNotification(J.PublishDiagnosticsNotification.type,s=>this.handleDiagnostics(s)),e.onRequest(J.RegistrationRequest.type,s=>this.handleRegistrationRequest(s)),e.onRequest("client/registerFeature",s=>this.handleRegistrationRequest(s)),e.onRequest(J.UnregistrationRequest.type,s=>this.handleUnregistrationRequest(s)),e.onRequest("client/unregisterFeature",s=>this.handleUnregistrationRequest(s)),e.onRequest(J.ApplyWorkspaceEditRequest.type,s=>this.handleApplyWorkspaceEdit(s));for(const[s,o]of this._pendingNotificationHandlers)this._notificationDisposables.set(s,e.onNotification(s,o));this._pendingNotificationHandlers.clear();for(const[s,o]of this._pendingRequestHandlers)this._requestDisposables.set(s,e.onRequest(s,o));this._pendingRequestHandlers.clear();for(const[s,o]of this._pendingProgressHandlers)this._progressDisposables.set(s,e.onProgress(o.type,s,o.handler));return this._pendingProgressHandlers.clear(),await e.sendNotification(J.InitializedNotification.type,{}),this.hookFileEvents(e),this.hookConfigurationChanged(e),this.initializeFeatures(e),i}catch(i){throw this._clientOptions.initializationFailedHandler?this._clientOptions.initializationFailedHandler(i)?this.initialize(e):this.stop():i instanceof J.ResponseError&&i.data&&i.data.retry?nt.window.showErrorMessage(i.message,{title:"Retry",id:"retry"}).then(r=>{r&&r.id==="retry"?this.initialize(e):this.stop()}):(i&&i.message&&nt.window.showErrorMessage(i.message),this.error("Server initialization failed.",i),this.stop()),i}}_clientGetRootPath(){let e=nt.workspace.workspaceFolders;if(!e||e.length===0)return;let n=e[0];if(n.uri.scheme==="file")return n.uri.fsPath}stop(e=2e3){return this.shutdown("stop",e)}dispose(e=2e3){try{return this._disposed="disposing",this.stop(e)}finally{this._disposed="disposed"}}async shutdown(e,n){if(this.$state===Ne.Stopped||this.$state===Ne.Initial)return;if(this.$state===Ne.Stopping){if(this._onStop!==void 0)return this._onStop;throw new Error("Client is stopping but no stop promise available.")}const i=this.activeConnection();if(i===void 0||this.$state!==Ne.Running)throw new Error(`Client is not running and can't be stopped. It's current state is: ${this.$state}`);this._initializeResult=void 0,this.$state=Ne.Stopping,this.cleanUp(e);const r=new Promise(o=>{(0,J.RAL)().timer.setTimeout(o,n)}),s=(async o=>(await o.shutdown(),await o.exit(),o))(i);return this._onStop=Promise.race([r,s]).then(o=>{if(o!==void 0)o.end(),o.dispose();else throw this.error("Stopping server timed out",void 0,!1),new Error("Stopping the server timed out")},o=>{throw this.error("Stopping server failed",o,!1),o}).finally(()=>{this.$state=Ne.Stopped,e==="stop"&&this.cleanUpChannel(),this._onStart=void 0,this._onStop=void 0,this._connection=void 0,this._ignoredRegistrations.clear()})}cleanUp(e){this._fileEvents=[],this._fileEventDelayer.cancel();const n=this._listeners.splice(0,this._listeners.length);for(const i of n)i.dispose();this._syncedDocuments&&this._syncedDocuments.clear();for(const i of Array.from(this._features.entries()).map(r=>r[1]).reverse())i.clear();e==="stop"&&this._diagnostics!==void 0&&(this._diagnostics.dispose(),this._diagnostics=void 0),this._idleInterval!==void 0&&(this._idleInterval.dispose(),this._idleInterval=void 0)}cleanUpChannel(){this._outputChannel!==void 0&&this._disposeOutputChannel&&(this._outputChannel.dispose(),this._outputChannel=void 0)}notifyFileEvent(e){var s;const n=this;async function i(o){return n._fileEvents.push(o),n._fileEventDelayer.trigger(async()=>{await n.sendNotification(J.DidChangeWatchedFilesNotification.type,{changes:n._fileEvents}),n._fileEvents=[]})}const r=(s=this.clientOptions.middleware)==null?void 0:s.workspace;(r!=null&&r.didChangeWatchedFile?r.didChangeWatchedFile(e,i):i(e)).catch(o=>{n.error("Notify file events failed.",o)})}async sendPendingFullTextDocumentChanges(e){return this._pendingChangeSemaphore.lock(async()=>{try{const n=this._didChangeTextDocumentFeature.getPendingDocumentChanges(this._pendingOpenNotifications);if(n.length===0)return;for(const i of n){const r=this.code2ProtocolConverter.asChangeTextDocumentParams(i);await e.sendNotification(J.DidChangeTextDocumentNotification.type,r),this._didChangeTextDocumentFeature.notificationSent(i,J.DidChangeTextDocumentNotification.type,r)}}catch(n){throw this.error("Sending pending changes failed",n,!1),n}})}triggerPendingChangeDelivery(){this._pendingChangeDelayer.trigger(async()=>{const e=this.activeConnection();if(e===void 0){this.triggerPendingChangeDelivery();return}await this.sendPendingFullTextDocumentChanges(e)}).catch(e=>this.error("Delivering pending changes failed",e,!1))}handleDiagnostics(e){if(!this._diagnostics)return;const n=e.uri;this._diagnosticQueueState.state==="busy"&&this._diagnosticQueueState.document===n&&this._diagnosticQueueState.tokenSource.cancel(),this._diagnosticQueue.set(e.uri,e.diagnostics),this.triggerDiagnosticQueue()}triggerDiagnosticQueue(){(0,J.RAL)().timer.setImmediate(()=>{this.workDiagnosticQueue()})}workDiagnosticQueue(){if(this._diagnosticQueueState.state==="busy")return;const e=this._diagnosticQueue.entries().next();if(e.done===!0)return;const[n,i]=e.value;this._diagnosticQueue.delete(n);const r=new nt.CancellationTokenSource;this._diagnosticQueueState={state:"busy",document:n,tokenSource:r},this._p2c.asDiagnostics(i,r.token).then(s=>{if(!r.token.isCancellationRequested){const o=this._p2c.asUri(n),a=this.clientOptions.middleware;a.handleDiagnostics?a.handleDiagnostics(o,s,(c,l)=>this.setDiagnostics(c,l)):this.setDiagnostics(o,s)}}).finally(()=>{this._diagnosticQueueState={state:"idle"},this.triggerDiagnosticQueue()})}setDiagnostics(e,n){this._diagnostics&&this._diagnostics.set(e,n)}getLocale(){return nt.env.language}async $start(){if(this.$state===Ne.StartFailed)throw new Error("Previous start failed. Can't restart server.");await this.start();const e=this.activeConnection();if(e===void 0)throw new Error("Starting server failed");return e}async createConnection(){let e=(r,s,o)=>{this.handleConnectionError(r,s,o).catch(a=>this.error("Handling connection error failed",a))},n=()=>{this.handleConnectionClosed().catch(r=>this.error("Handling connection close failed",r))};const i=await this.createMessageTransports(this._clientOptions.stdioEncoding||"utf8");return this._connection=kD(i.reader,i.writer,e,n,this._clientOptions.connectionOptions),this._connection}async handleConnectionClosed(){if(this.$state===Ne.Stopped)return;try{this._connection!==void 0&&this._connection.dispose()}catch{}let e={action:pr.DoNotRestart};if(this.$state!==Ne.Stopping)try{e=await this._clientOptions.errorHandler.closed()}catch{}this._connection=void 0,e.action===pr.DoNotRestart?(this.error(e.message??"Connection to server got closed. Server will not be restarted.",void 0,e.handled===!0?!1:"force"),this.cleanUp("stop"),this.$state===Ne.Starting?this.$state=Ne.StartFailed:this.$state=Ne.Stopped,this._onStop=Promise.resolve(),this._onStart=void 0):e.action===pr.Restart&&(this.info(e.message??"Connection to server got closed. Server will restart.",!e.handled),this.cleanUp("restart"),this.$state=Ne.Initial,this._onStop=Promise.resolve(),this._onStart=void 0,this.start().catch(n=>this.error("Restarting server failed",n,"force")))}async handleConnectionError(e,n,i){const r=await this._clientOptions.errorHandler.error(e,n,i);r.action===Xo.Shutdown?(this.error(r.message??`Client ${this._name}: connection to server is erroring.
|
|
105
121
|
${e.message}
|
|
106
|
-
Shutting down server.`,void 0,
|
|
107
|
-
${e.message}`,void 0,i.handled===!0?!1:"force")}hookConfigurationChanged(e){this._listeners.push(nt.workspace.onDidChangeConfiguration(()=>{this.refreshTrace(e,!0)}))}refreshTrace(e,n=!1){const r=nt.workspace.getConfiguration(this._id);let i=Q.Trace.Off,s=Q.TraceFormat.Text;if(r){const o=r.get("trace.server","off");typeof o=="string"?i=Q.Trace.fromString(o):(i=Q.Trace.fromString(r.get("trace.server.verbosity","off")),s=Q.TraceFormat.fromString(r.get("trace.server.format","text")))}this._trace=i,this._traceFormat=s,e.trace(this._trace,this._tracer,{sendNotification:n,traceFormat:this._traceFormat}).catch(o=>{this.error("Updating trace failed with error",o,!1)})}hookFileEvents(e){let n=this._clientOptions.synchronize.fileEvents;if(!n)return;let r;sr.array(n)?r=n:r=[n],r&&this._dynamicFeatures.get(Q.DidChangeWatchedFilesNotification.type.method).registerRaw(U0.generateUuid(),r)}registerFeatures(e){for(let n of e)this.registerFeature(n)}registerFeature(e){if(this._features.push(e),nr.DynamicFeature.is(e)){const n=e.registrationType;this._dynamicFeatures.set(n.method,e)}}getFeature(e){return this._dynamicFeatures.get(e)}hasDedicatedTextSynchronizationFeature(e){const n=this.getFeature(Q.NotebookDocumentSyncRegistrationType.method);return n===void 0||!(n instanceof z0.NotebookDocumentSyncFeature)?!1:n.handles(e)}registerBuiltinFeatures(){const e=new Map;this.registerFeature(new B0.ConfigurationFeature(this)),this.registerFeature(new as.DidOpenTextDocumentFeature(this,this._syncedDocuments)),this._didChangeTextDocumentFeature=new as.DidChangeTextDocumentFeature(this,e),this._didChangeTextDocumentFeature.onPendingChangeAdded(()=>{this.triggerPendingChangeDelivery()}),this.registerFeature(this._didChangeTextDocumentFeature),this.registerFeature(new as.WillSaveFeature(this)),this.registerFeature(new as.WillSaveWaitUntilFeature(this)),this.registerFeature(new as.DidSaveTextDocumentFeature(this)),this.registerFeature(new as.DidCloseTextDocumentFeature(this,this._syncedDocuments,e)),this.registerFeature(new eD.FileSystemWatcherFeature(this,n=>this.notifyFileEvent(n))),this.registerFeature(new HS.CompletionItemFeature(this)),this.registerFeature(new WS.HoverFeature(this)),this.registerFeature(new zS.SignatureHelpFeature(this)),this.registerFeature(new US.DefinitionFeature(this)),this.registerFeature(new GS.ReferencesFeature(this)),this.registerFeature(new BS.DocumentHighlightFeature(this)),this.registerFeature(new VS.DocumentSymbolFeature(this)),this.registerFeature(new KS.WorkspaceSymbolFeature(this)),this.registerFeature(new QS.CodeActionFeature(this)),this.registerFeature(new JS.CodeLensFeature(this)),this.registerFeature(new Ru.DocumentFormattingFeature(this)),this.registerFeature(new Ru.DocumentRangeFormattingFeature(this)),this.registerFeature(new Ru.DocumentOnTypeFormattingFeature(this)),this.registerFeature(new YS.RenameFeature(this)),this.registerFeature(new XS.DocumentLinkFeature(this)),this.registerFeature(new ZS.ExecuteCommandFeature(this)),this.registerFeature(new B0.SyncConfigurationFeature(this)),this.registerFeature(new rD.TypeDefinitionFeature(this)),this.registerFeature(new nD.ImplementationFeature(this)),this.registerFeature(new tD.ColorProviderFeature(this)),this.clientOptions.workspaceFolder===void 0&&this.registerFeature(new iD.WorkspaceFoldersFeature(this)),this.registerFeature(new sD.FoldingRangeFeature(this)),this.registerFeature(new oD.DeclarationFeature(this)),this.registerFeature(new aD.SelectionRangeFeature(this)),this.registerFeature(new cD.ProgressFeature(this)),this.registerFeature(new lD.CallHierarchyFeature(this)),this.registerFeature(new uD.SemanticTokensFeature(this)),this.registerFeature(new dD.LinkedEditingFeature(this)),this.registerFeature(new cs.DidCreateFilesFeature(this)),this.registerFeature(new cs.DidRenameFilesFeature(this)),this.registerFeature(new cs.DidDeleteFilesFeature(this)),this.registerFeature(new cs.WillCreateFilesFeature(this)),this.registerFeature(new cs.WillRenameFilesFeature(this)),this.registerFeature(new cs.WillDeleteFilesFeature(this)),this.registerFeature(new fD.TypeHierarchyFeature(this)),this.registerFeature(new hD.InlineValueFeature(this)),this.registerFeature(new pD.InlayHintsFeature(this)),this.registerFeature(new jS.DiagnosticFeature(this)),this.registerFeature(new z0.NotebookDocumentSyncFeature(this))}registerProposedFeatures(){this.registerFeatures(q1.createAll(this))}fillInitializeParams(e){for(let n of this._features)sr.func(n.fillInitializeParams)&&n.fillInitializeParams(e)}computeClientCapabilities(){const e={};(0,nr.ensure)(e,"workspace").applyEdit=!0;const n=(0,nr.ensure)((0,nr.ensure)(e,"workspace"),"workspaceEdit");n.documentChanges=!0,n.resourceOperations=[Q.ResourceOperationKind.Create,Q.ResourceOperationKind.Rename,Q.ResourceOperationKind.Delete],n.failureHandling=Q.FailureHandlingKind.TextOnlyTransactional,n.normalizesLineEndings=!0,n.changeAnnotationSupport={groupsOnLabel:!0};const r=(0,nr.ensure)((0,nr.ensure)(e,"textDocument"),"publishDiagnostics");r.relatedInformation=!0,r.versionSupport=!1,r.tagSupport={valueSet:[Q.DiagnosticTag.Unnecessary,Q.DiagnosticTag.Deprecated]},r.codeDescriptionSupport=!0,r.dataSupport=!0;const i=(0,nr.ensure)(e,"window"),s=(0,nr.ensure)(i,"showMessage");s.messageActionItem={additionalPropertiesSupport:!0};const o=(0,nr.ensure)(i,"showDocument");o.support=!0;const a=(0,nr.ensure)(e,"general");a.staleRequestSupport={cancel:!0,retryOnContentModified:Array.from(Gi.RequestsToCancelOnContentModified)},a.regularExpressions={engine:"ECMAScript",version:"ES2020"},a.markdown={parser:"marked",version:"1.1.0"},a.positionEncodings=["utf-16"],this._clientOptions.markdown.supportHtml&&(a.markdown.allowedTags=["ul","li","p","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"]);for(let c of this._features)c.fillClientCapabilities(e);return e}initializeFeatures(e){const n=this._clientOptions.documentSelector;for(const r of this._features)sr.func(r.preInitialize)&&r.preInitialize(this._capabilities,n);for(const r of this._features)r.initialize(this._capabilities,n)}async handleRegistrationRequest(e){var r;const n=(r=this.clientOptions.middleware)==null?void 0:r.handleRegisterCapability;return n?n(e,i=>this.doRegisterCapability(i)):this.doRegisterCapability(e)}async doRegisterCapability(e){if(!this.isRunning()){for(const n of e.registrations)this._ignoredRegistrations.add(n.id);return}for(const n of e.registrations){const r=this._dynamicFeatures.get(n.method);if(r===void 0)return Promise.reject(new Error(`No feature implementation for ${n.method} found. Registration failed.`));const i=n.registerOptions??{};i.documentSelector=i.documentSelector??this._clientOptions.documentSelector;const s={id:n.id,registerOptions:i};try{r.register(s)}catch(o){return Promise.reject(o)}}}async handleUnregistrationRequest(e){var r;const n=(r=this.clientOptions.middleware)==null?void 0:r.handleUnregisterCapability;return n?n(e,i=>this.doUnregisterCapability(i)):this.doUnregisterCapability(e)}async doUnregisterCapability(e){for(const n of e.unregisterations){if(this._ignoredRegistrations.has(n.id))continue;const r=this._dynamicFeatures.get(n.method);if(!r)return Promise.reject(new Error(`No feature implementation for ${n.method} found. Unregistration failed.`));r.unregister(n.id)}}async handleApplyWorkspaceEdit(e){const n=e.edit,r=await this.workspaceEditLock.lock(()=>this._p2c.asWorkspaceEdit(n)),i=new Map;nt.workspace.textDocuments.forEach(o=>i.set(o.uri.toString(),o));let s=!1;if(n.documentChanges){for(const o of n.documentChanges)if(Q.TextDocumentEdit.is(o)&&o.textDocument.version&&o.textDocument.version>=0){const a=this._p2c.asUri(o.textDocument.uri).toString(),c=i.get(a);if(c&&c.version!==o.textDocument.version){s=!0;break}}}return s?Promise.resolve({applied:!1}):sr.asPromise(nt.workspace.applyEdit(r).then(o=>({applied:o})))}handleFailedRequest(e,n,r,i,s=!0){if(r instanceof Q.ResponseError){if(r.code===Q.ErrorCodes.PendingResponseRejected||r.code===Q.ErrorCodes.ConnectionInactive)return i;if(r.code===Q.LSPErrorCodes.RequestCancelled||r.code===Q.LSPErrorCodes.ServerCancelled){if(n!==void 0&&n.isCancellationRequested)return i;throw r.data!==void 0?new nr.LSPCancellationError(r.data):new nt.CancellationError}else if(r.code===Q.LSPErrorCodes.ContentModified){if(Gi.RequestsToCancelOnContentModified.has(e.method)||Gi.CancellableResolveCalls.has(e.method))throw new nt.CancellationError;return i}}throw this.error(`Request ${e.method} failed.`,r,s),r}}Xt.BaseLanguageClient=Gi;Gi.RequestsToCancelOnContentModified=new Set([Q.SemanticTokensRequest.method,Q.SemanticTokensRangeRequest.method,Q.SemanticTokensDeltaRequest.method]);Gi.CancellableResolveCalls=new Set([Q.CompletionResolveRequest.method,Q.CodeLensResolveRequest.method,Q.CodeActionResolveRequest.method,Q.InlayHintResolveRequest.method,Q.DocumentLinkResolveRequest.method,Q.WorkspaceSymbolResolveRequest.method]);class yD{error(e){(0,Q.RAL)().console.error(e)}warn(e){(0,Q.RAL)().console.warn(e)}info(e){(0,Q.RAL)().console.info(e)}log(e){(0,Q.RAL)().console.log(e)}}function bD(t,e,n,r,i){const s=new yD,o=(0,Q.createProtocolConnection)(t,e,s,i);return o.onError(c=>{n(c[0],c[1],c[2])}),o.onClose(r),{listen:()=>o.listen(),sendRequest:o.sendRequest,onRequest:o.onRequest,hasPendingResponse:o.hasPendingResponse,sendNotification:o.sendNotification,onNotification:o.onNotification,onProgress:o.onProgress,sendProgress:o.sendProgress,trace:(c,l,f)=>{const p={sendNotification:!1,traceFormat:Q.TraceFormat.Text};return f===void 0?o.trace(c,l,p):(sr.boolean(f),o.trace(c,l,f))},initialize:c=>o.sendRequest(Q.InitializeRequest.type,c),shutdown:()=>o.sendRequest(Q.ShutdownRequest.type,void 0),exit:()=>o.sendNotification(Q.ExitNotification.type),end:()=>o.end(),dispose:()=>o.dispose()}}var q1;(function(t){function e(n){return[new gD.InlineCompletionItemFeature(n)]}t.createAll=e})(q1||(Xt.ProposedFeatures=q1={}));(function(t){var e=_t&&_t.__createBinding||(Object.create?function(i,s,o,a){a===void 0&&(a=o);var c=Object.getOwnPropertyDescriptor(s,o);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[o]}}),Object.defineProperty(i,a,c)}:function(i,s,o,a){a===void 0&&(a=o),i[a]=s[o]}),n=_t&&_t.__exportStar||function(i,s){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,i,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticPullMode=t.vsdiag=void 0,n(ye,t),n(De,t);var r=Ur;Object.defineProperty(t,"vsdiag",{enumerable:!0,get:function(){return r.vsdiag}}),Object.defineProperty(t,"DiagnosticPullMode",{enumerable:!0,get:function(){return r.DiagnosticPullMode}}),n(Xt,t)})(Ou);var G0=ye;(function(t){var e=_t&&_t.__createBinding||(Object.create?function(o,a,c,l){l===void 0&&(l=c);var f=Object.getOwnPropertyDescriptor(a,c);(!f||("get"in f?!a.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(o,l,f)}:function(o,a,c,l){l===void 0&&(l=c),o[l]=a[c]}),n=_t&&_t.__exportStar||function(o,a){for(var c in o)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&e(a,o,c)};Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageClient=void 0;const r=Ou,i=G0;n(G0,t),n(Ou,t);class s extends r.BaseLanguageClient{constructor(a,c,l,f){super(a,c,l),this.worker=f}createMessageTransports(a){const c=new i.BrowserMessageReader(this.worker),l=new i.BrowserMessageWriter(this.worker);return Promise.resolve({reader:c,writer:l})}}t.LanguageClient=s})(Mu);var mi={},Jr={};Object.defineProperty(Jr,"__esModule",{value:!0});let j1;function H1(){if(j1===void 0)throw new Error("No runtime abstraction layer installed");return j1}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");j1=n}t.install=e})(H1||(H1={}));Jr.default=H1;var Ht={};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.stringArray=Ht.array=Ht.func=Ht.error=Ht.number=Ht.string=Ht.boolean=void 0;function vD(t){return t===!0||t===!1}Ht.boolean=vD;function ky(t){return typeof t=="string"||t instanceof String}Ht.string=ky;function wD(t){return typeof t=="number"||t instanceof Number}Ht.number=wD;function CD(t){return t instanceof Error}Ht.error=CD;function _D(t){return typeof t=="function"}Ht.func=_D;function Ry(t){return Array.isArray(t)}Ht.array=Ry;function SD(t){return Ry(t)&&t.every(e=>ky(e))}Ht.stringArray=SD;var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.Emitter=Tr.Event=void 0;const DD=Jr;var Q0;(function(t){const e={dispose(){}};t.None=function(){return e}})(Q0||(Tr.Event=Q0={}));class TD{add(e,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,s=this._callbacks.length;i<s;i++)if(this._callbacks[i]===e)if(this._contexts[i]===n){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];const n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let s=0,o=r.length;s<o;s++)try{n.push(r[s].apply(i[s],e))}catch(a){(0,DD.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}}class Ol{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,r)=>{this._callbacks||(this._callbacks=new TD),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);const i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,n),i.dispose=Ol._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}Tr.Emitter=Ol;Ol._noop=function(){};var ua={};Object.defineProperty(ua,"__esModule",{value:!0});ua.Semaphore=void 0;const kD=Jr;class RD{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((n,r)=>{this._waiting.push({thunk:e,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,kD.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||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 n=e.thunk();n instanceof Promise?n.then(r=>{this._active--,e.resolve(r),this.runNext()},r=>{this._active--,e.reject(r),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}}ua.Semaphore=RD;Object.defineProperty(mi,"__esModule",{value:!0});mi.ReadableStreamMessageReader=Ey=mi.AbstractMessageReader=mi.MessageReader=void 0;const W1=Jr,us=Ht,xu=Tr,xD=ua;var J0;(function(t){function e(n){let r=n;return r&&us.func(r.listen)&&us.func(r.dispose)&&us.func(r.onError)&&us.func(r.onClose)&&us.func(r.onPartialMessage)}t.is=e})(J0||(mi.MessageReader=J0={}));class xy{constructor(){this.errorEmitter=new xu.Emitter,this.closeEmitter=new xu.Emitter,this.partialMessageEmitter=new xu.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: ${us.string(e.message)?e.message:"unknown"}`)}}var Ey=mi.AbstractMessageReader=xy,U1;(function(t){function e(n){let r,i;const s=new Map;let o;const a=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(i=n.contentDecoder,s.set(i.name,i)),n.contentDecoders!==void 0)for(const c of n.contentDecoders)s.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(o=n.contentTypeDecoder,a.set(o.name,o)),n.contentTypeDecoders!==void 0)for(const c of n.contentTypeDecoders)a.set(c.name,c)}return o===void 0&&(o=(0,W1.default)().applicationJson.decoder,a.set(o.name,o)),{charset:r,contentDecoder:i,contentDecoders:s,contentTypeDecoder:o,contentTypeDecoders:a}}t.fromOptions=e})(U1||(U1={}));class ED extends xy{constructor(e,n){super(),this.readable=e,this.options=U1.fromOptions(n),this.buffer=(0,W1.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new xD.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 n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){const r=this.buffer.tryReadHeaders(!0);if(!r)return;const i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
108
|
-
${JSON.stringify(Object.fromEntries(
|
|
109
|
-
`;var e2;(function(t){function e(n){let r=n;return r&&wo.func(r.dispose)&&wo.func(r.onClose)&&wo.func(r.onError)&&wo.func(r.write)}t.is=e})(e2||(yi.MessageWriter=e2={}));class Py{constructor(){this.errorEmitter=new X0.Emitter,this.closeEmitter=new X0.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,n,r){this.errorEmitter.fire([this.asError(e),n,r])}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: ${wo.string(e.message)?e.message:"unknown"}`)}}var Iy=yi.AbstractMessageWriter=Py,z1;(function(t){function e(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,Y0.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,Y0.default)().applicationJson.encoder}}t.fromOptions=e})(z1||(z1={}));class OD extends Py{constructor(e,n){super(),this.writable=e,this.options=z1.fromOptions(n),this.errorCount=0,this.writeSemaphore=new ID.Semaphore(1),this.writable.onError(r=>this.fireError(r)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(r=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(r):r).then(r=>{const i=[];return i.push(MD,r.byteLength.toString(),Z0),i.push(Z0),this.doWrite(e,i,r)},r=>{throw this.fireError(r),r}))}async doWrite(e,n,r){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,e),Promise.reject(i)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){this.writable.end()}}yi.WriteableStreamMessageWriter=OD;let AD=class extends Iy{constructor(n){super();Nt(this,"errorCount",0);Nt(this,"socket");this.socket=n}end(){}async write(n){try{const r=JSON.stringify(n);this.socket.send(r)}catch(r){this.errorCount++,this.fireError(r,n,this.errorCount)}}};var FD={},gp={},Eu={},he={},t2;function My(){if(t2)return he;t2=1,Object.defineProperty(he,"__esModule",{value:!0}),he.Message=he.NotificationType9=he.NotificationType8=he.NotificationType7=he.NotificationType6=he.NotificationType5=he.NotificationType4=he.NotificationType3=he.NotificationType2=he.NotificationType1=he.NotificationType0=he.NotificationType=he.RequestType9=he.RequestType8=he.RequestType7=he.RequestType6=he.RequestType5=he.RequestType4=he.RequestType3=he.RequestType2=he.RequestType1=he.RequestType=he.RequestType0=he.AbstractMessageSignature=he.ParameterStructures=he.ResponseError=he.ErrorCodes=void 0;const t=Ht;var e;(function(P){P.ParseError=-32700,P.InvalidRequest=-32600,P.MethodNotFound=-32601,P.InvalidParams=-32602,P.InternalError=-32603,P.jsonrpcReservedErrorRangeStart=-32099,P.serverErrorStart=-32099,P.MessageWriteError=-32099,P.MessageReadError=-32098,P.PendingResponseRejected=-32097,P.ConnectionInactive=-32096,P.ServerNotInitialized=-32002,P.UnknownErrorCode=-32001,P.jsonrpcReservedErrorRangeEnd=-32e3,P.serverErrorEnd=-32e3})(e||(he.ErrorCodes=e={}));class n extends Error{constructor(v,R,I){super(R),this.code=t.number(v)?v:e.UnknownErrorCode,this.data=I,Object.setPrototypeOf(this,n.prototype)}toJson(){const v={code:this.code,message:this.message};return this.data!==void 0&&(v.data=this.data),v}}he.ResponseError=n;class r{constructor(v){this.kind=v}static is(v){return v===r.auto||v===r.byName||v===r.byPosition}toString(){return this.kind}}he.ParameterStructures=r,r.auto=new r("auto"),r.byPosition=new r("byPosition"),r.byName=new r("byName");class i{constructor(v,R){this.method=v,this.numberOfParams=R}get parameterStructures(){return r.auto}}he.AbstractMessageSignature=i;class s extends i{constructor(v){super(v,0)}}he.RequestType0=s;class o extends i{constructor(v,R=r.auto){super(v,1),this._parameterStructures=R}get parameterStructures(){return this._parameterStructures}}he.RequestType=o;class a extends i{constructor(v,R=r.auto){super(v,1),this._parameterStructures=R}get parameterStructures(){return this._parameterStructures}}he.RequestType1=a;class c extends i{constructor(v){super(v,2)}}he.RequestType2=c;class l extends i{constructor(v){super(v,3)}}he.RequestType3=l;class f extends i{constructor(v){super(v,4)}}he.RequestType4=f;class p extends i{constructor(v){super(v,5)}}he.RequestType5=p;class g extends i{constructor(v){super(v,6)}}he.RequestType6=g;class _ extends i{constructor(v){super(v,7)}}he.RequestType7=_;class C extends i{constructor(v){super(v,8)}}he.RequestType8=C;class k extends i{constructor(v){super(v,9)}}he.RequestType9=k;class M extends i{constructor(v,R=r.auto){super(v,1),this._parameterStructures=R}get parameterStructures(){return this._parameterStructures}}he.NotificationType=M;class H extends i{constructor(v){super(v,0)}}he.NotificationType0=H;class K extends i{constructor(v,R=r.auto){super(v,1),this._parameterStructures=R}get parameterStructures(){return this._parameterStructures}}he.NotificationType1=K;class j extends i{constructor(v){super(v,2)}}he.NotificationType2=j;class B extends i{constructor(v){super(v,3)}}he.NotificationType3=B;class z extends i{constructor(v){super(v,4)}}he.NotificationType4=z;class ne extends i{constructor(v){super(v,5)}}he.NotificationType5=ne;class G extends i{constructor(v){super(v,6)}}he.NotificationType6=G;class Y extends i{constructor(v){super(v,7)}}he.NotificationType7=Y;class re extends i{constructor(v){super(v,8)}}he.NotificationType8=re;class Le extends i{constructor(v){super(v,9)}}he.NotificationType9=Le;var $;return function(P){function v(E){const V=E;return V&&t.string(V.method)&&(t.string(V.id)||t.number(V.id))}P.isRequest=v;function R(E){const V=E;return V&&t.string(V.method)&&E.id===void 0}P.isNotification=R;function I(E){const V=E;return V&&(V.result!==void 0||!!V.error)&&(t.string(V.id)||t.number(V.id)||V.id===null)}P.isResponse=I}($||(he.Message=$={})),he}var Rr={},n2;function Oy(){if(n2)return Rr;n2=1;var t;Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.LRUCache=Rr.LinkedMap=Rr.Touch=void 0;var e;(function(i){i.None=0,i.First=1,i.AsOld=i.First,i.Last=2,i.AsNew=i.Last})(e||(Rr.Touch=e={}));class n{constructor(){this[t]="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(){var s;return(s=this._head)==null?void 0:s.value}get last(){var s;return(s=this._tail)==null?void 0:s.value}has(s){return this._map.has(s)}get(s,o=e.None){const a=this._map.get(s);if(a)return o!==e.None&&this.touch(a,o),a.value}set(s,o,a=e.None){let c=this._map.get(s);if(c)c.value=o,a!==e.None&&this.touch(c,a);else{switch(c={key:s,value:o,next:void 0,previous:void 0},a){case e.None:this.addItemLast(c);break;case e.First:this.addItemFirst(c);break;case e.Last:this.addItemLast(c);break;default:this.addItemLast(c);break}this._map.set(s,c),this._size++}return this}delete(s){return!!this.remove(s)}remove(s){const o=this._map.get(s);if(o)return this._map.delete(s),this.removeItem(o),this._size--,o.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const s=this._head;return this._map.delete(s.key),this.removeItem(s),this._size--,s.value}forEach(s,o){const a=this._state;let c=this._head;for(;c;){if(o?s.bind(o)(c.value,c.key,this):s(c.value,c.key,this),this._state!==a)throw new Error("LinkedMap got modified during iteration.");c=c.next}}keys(){const s=this._state;let o=this._head;const a={[Symbol.iterator]:()=>a,next:()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){const c={value:o.key,done:!1};return o=o.next,c}else return{value:void 0,done:!0}}};return a}values(){const s=this._state;let o=this._head;const a={[Symbol.iterator]:()=>a,next:()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){const c={value:o.value,done:!1};return o=o.next,c}else return{value:void 0,done:!0}}};return a}entries(){const s=this._state;let o=this._head;const a={[Symbol.iterator]:()=>a,next:()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){const c={value:[o.key,o.value],done:!1};return o=o.next,c}else return{value:void 0,done:!0}}};return a}[(t=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(s){if(s>=this.size)return;if(s===0){this.clear();return}let o=this._head,a=this.size;for(;o&&a>s;)this._map.delete(o.key),o=o.next,a--;this._head=o,this._size=a,o&&(o.previous=void 0),this._state++}addItemFirst(s){if(!this._head&&!this._tail)this._tail=s;else if(this._head)s.next=this._head,this._head.previous=s;else throw new Error("Invalid list");this._head=s,this._state++}addItemLast(s){if(!this._head&&!this._tail)this._head=s;else if(this._tail)s.previous=this._tail,this._tail.next=s;else throw new Error("Invalid list");this._tail=s,this._state++}removeItem(s){if(s===this._head&&s===this._tail)this._head=void 0,this._tail=void 0;else if(s===this._head){if(!s.next)throw new Error("Invalid list");s.next.previous=void 0,this._head=s.next}else if(s===this._tail){if(!s.previous)throw new Error("Invalid list");s.previous.next=void 0,this._tail=s.previous}else{const o=s.next,a=s.previous;if(!o||!a)throw new Error("Invalid list");o.previous=a,a.next=o}s.next=void 0,s.previous=void 0,this._state++}touch(s,o){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(o!==e.First&&o!==e.Last)){if(o===e.First){if(s===this._head)return;const a=s.next,c=s.previous;s===this._tail?(c.next=void 0,this._tail=c):(a.previous=c,c.next=a),s.previous=void 0,s.next=this._head,this._head.previous=s,this._head=s,this._state++}else if(o===e.Last){if(s===this._tail)return;const a=s.next,c=s.previous;s===this._head?(a.previous=void 0,this._head=a):(a.previous=c,c.next=a),s.next=void 0,s.previous=this._tail,this._tail.next=s,this._tail=s,this._state++}}}toJSON(){const s=[];return this.forEach((o,a)=>{s.push([a,o])}),s}fromJSON(s){this.clear();for(const[o,a]of s)this.set(o,a)}}Rr.LinkedMap=n;class r extends n{constructor(s,o=1){super(),this._limit=s,this._ratio=Math.min(Math.max(0,o),1)}get limit(){return this._limit}set limit(s){this._limit=s,this.checkTrim()}get ratio(){return this._ratio}set ratio(s){this._ratio=Math.min(Math.max(0,s),1),this.checkTrim()}get(s,o=e.AsNew){return super.get(s,o)}peek(s){return super.get(s,e.None)}set(s,o){return super.set(s,o,e.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}return Rr.LRUCache=r,Rr}var uo={},r2;function LD(){if(r2)return uo;r2=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.Disposable=void 0;var t;return function(e){function n(r){return{dispose:r}}e.create=n}(t||(uo.Disposable=t={})),uo}var ki={},i2;function mp(){if(i2)return ki;i2=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.CancellationTokenSource=ki.CancellationToken=void 0;const t=Jr,e=Ht,n=Tr;var r;(function(a){a.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),a.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n.Event.None});function c(l){const f=l;return f&&(f===a.None||f===a.Cancelled||e.boolean(f.isCancellationRequested)&&!!f.onCancellationRequested)}a.is=c})(r||(ki.CancellationToken=r={}));const i=Object.freeze(function(a,c){const l=(0,t.default)().timer.setTimeout(a.bind(c),0);return{dispose(){l.dispose()}}});class s{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?i:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}class o{get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token.cancel():this._token=r.Cancelled}dispose(){this._token?this._token instanceof s&&this._token.dispose():this._token=r.None}}return ki.CancellationTokenSource=o,ki}var Ri={},s2;function ND(){if(s2)return Ri;s2=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.SharedArrayReceiverStrategy=Ri.SharedArraySenderStrategy=void 0;const t=mp();var e;(function(o){o.Continue=0,o.Cancelled=1})(e||(e={}));class n{constructor(){this.buffers=new Map}enableCancellation(a){if(a.id===null)return;const c=new SharedArrayBuffer(4),l=new Int32Array(c,0,1);l[0]=e.Continue,this.buffers.set(a.id,c),a.$cancellationData=c}async sendCancellation(a,c){const l=this.buffers.get(c);if(l===void 0)return;const f=new Int32Array(l,0,1);Atomics.store(f,0,e.Cancelled)}cleanup(a){this.buffers.delete(a)}dispose(){this.buffers.clear()}}Ri.SharedArraySenderStrategy=n;class r{constructor(a){this.data=new Int32Array(a,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===e.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class i{constructor(a){this.token=new r(a)}cancel(){}dispose(){}}class s{constructor(){this.kind="request"}createCancellationTokenSource(a){const c=a.$cancellationData;return c===void 0?new t.CancellationTokenSource:new i(c)}}return Ri.SharedArrayReceiverStrategy=s,Ri}var fo={},o2;function $D(){if(o2)return fo;o2=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.AbstractMessageBuffer=void 0;const t=13,e=10,n=`\r
|
|
110
|
-
`;class
|
|
111
|
-
${C}`);const
|
|
112
|
-
${JSON.stringify(h.error,void 0,4)}`):V.error("Received response message without id. No further error information provided.");else{const D=h.id,x=
|
|
113
|
-
${JSON.stringify(h,null,4)}`);const D=h;if(n.string(D.id)||n.number(D.id)){const x=D.id,N=
|
|
122
|
+
Shutting down server.`,void 0,r.handled===!0?!1:"force"),this.stop().catch(s=>{this.error("Stopping server failed",s,!1)})):this.error(r.message??`Client ${this._name}: connection to server is erroring.
|
|
123
|
+
${e.message}`,void 0,r.handled===!0?!1:"force")}hookConfigurationChanged(e){this._listeners.push(nt.workspace.onDidChangeConfiguration(()=>{this.refreshTrace(e,!0)}))}refreshTrace(e,n=!1){const i=nt.workspace.getConfiguration(this._id);let r=J.Trace.Off,s=J.TraceFormat.Text;if(i){const o=i.get("trace.server","off");typeof o=="string"?r=J.Trace.fromString(o):(r=J.Trace.fromString(i.get("trace.server.verbosity","off")),s=J.TraceFormat.fromString(i.get("trace.server.format","text")))}this._trace=r,this._traceFormat=s,e.trace(this._trace,this._tracer,{sendNotification:n,traceFormat:this._traceFormat}).catch(o=>{this.error("Updating trace failed with error",o,!1)})}hookFileEvents(e){let n=this._clientOptions.synchronize.fileEvents;if(!n)return;let i;si.array(n)?i=n:i=[n],i&&this._dynamicFeatures.get(J.DidChangeWatchedFilesNotification.type.method).registerRaw(B0.generateUuid(),i)}registerFeatures(e){for(let n of e)this.registerFeature(n)}registerFeature(e){if(this._features.push(e),ni.DynamicFeature.is(e)){const n=e.registrationType;this._dynamicFeatures.set(n.method,e)}}getFeature(e){return this._dynamicFeatures.get(e)}hasDedicatedTextSynchronizationFeature(e){const n=this.getFeature(J.NotebookDocumentSyncRegistrationType.method);return n===void 0||!(n instanceof V0.NotebookDocumentSyncFeature)?!1:n.handles(e)}registerBuiltinFeatures(){const e=new Map;this.registerFeature(new K0.ConfigurationFeature(this)),this.registerFeature(new as.DidOpenTextDocumentFeature(this,this._syncedDocuments)),this._didChangeTextDocumentFeature=new as.DidChangeTextDocumentFeature(this,e),this._didChangeTextDocumentFeature.onPendingChangeAdded(()=>{this.triggerPendingChangeDelivery()}),this.registerFeature(this._didChangeTextDocumentFeature),this.registerFeature(new as.WillSaveFeature(this)),this.registerFeature(new as.WillSaveWaitUntilFeature(this)),this.registerFeature(new as.DidSaveTextDocumentFeature(this)),this.registerFeature(new as.DidCloseTextDocumentFeature(this,this._syncedDocuments,e)),this.registerFeature(new cD.FileSystemWatcherFeature(this,n=>this.notifyFileEvent(n))),this.registerFeature(new JS.CompletionItemFeature(this)),this.registerFeature(new XS.HoverFeature(this)),this.registerFeature(new YS.SignatureHelpFeature(this)),this.registerFeature(new ZS.DefinitionFeature(this)),this.registerFeature(new nD.ReferencesFeature(this)),this.registerFeature(new QS.DocumentHighlightFeature(this)),this.registerFeature(new eD.DocumentSymbolFeature(this)),this.registerFeature(new tD.WorkspaceSymbolFeature(this)),this.registerFeature(new iD.CodeActionFeature(this)),this.registerFeature(new rD.CodeLensFeature(this)),this.registerFeature(new xu.DocumentFormattingFeature(this)),this.registerFeature(new xu.DocumentRangeFormattingFeature(this)),this.registerFeature(new xu.DocumentOnTypeFormattingFeature(this)),this.registerFeature(new sD.RenameFeature(this)),this.registerFeature(new oD.DocumentLinkFeature(this)),this.registerFeature(new aD.ExecuteCommandFeature(this)),this.registerFeature(new K0.SyncConfigurationFeature(this)),this.registerFeature(new dD.TypeDefinitionFeature(this)),this.registerFeature(new uD.ImplementationFeature(this)),this.registerFeature(new lD.ColorProviderFeature(this)),this.clientOptions.workspaceFolder===void 0&&this.registerFeature(new fD.WorkspaceFoldersFeature(this)),this.registerFeature(new hD.FoldingRangeFeature(this)),this.registerFeature(new gD.DeclarationFeature(this)),this.registerFeature(new pD.SelectionRangeFeature(this)),this.registerFeature(new mD.ProgressFeature(this)),this.registerFeature(new yD.CallHierarchyFeature(this)),this.registerFeature(new bD.SemanticTokensFeature(this)),this.registerFeature(new vD.LinkedEditingFeature(this)),this.registerFeature(new cs.DidCreateFilesFeature(this)),this.registerFeature(new cs.DidRenameFilesFeature(this)),this.registerFeature(new cs.DidDeleteFilesFeature(this)),this.registerFeature(new cs.WillCreateFilesFeature(this)),this.registerFeature(new cs.WillRenameFilesFeature(this)),this.registerFeature(new cs.WillDeleteFilesFeature(this)),this.registerFeature(new wD.TypeHierarchyFeature(this)),this.registerFeature(new CD.InlineValueFeature(this)),this.registerFeature(new _D.InlayHintsFeature(this)),this.registerFeature(new GS.DiagnosticFeature(this)),this.registerFeature(new V0.NotebookDocumentSyncFeature(this))}registerProposedFeatures(){this.registerFeatures(j1.createAll(this))}fillInitializeParams(e){for(let n of this._features)si.func(n.fillInitializeParams)&&n.fillInitializeParams(e)}computeClientCapabilities(){const e={};(0,ni.ensure)(e,"workspace").applyEdit=!0;const n=(0,ni.ensure)((0,ni.ensure)(e,"workspace"),"workspaceEdit");n.documentChanges=!0,n.resourceOperations=[J.ResourceOperationKind.Create,J.ResourceOperationKind.Rename,J.ResourceOperationKind.Delete],n.failureHandling=J.FailureHandlingKind.TextOnlyTransactional,n.normalizesLineEndings=!0,n.changeAnnotationSupport={groupsOnLabel:!0};const i=(0,ni.ensure)((0,ni.ensure)(e,"textDocument"),"publishDiagnostics");i.relatedInformation=!0,i.versionSupport=!1,i.tagSupport={valueSet:[J.DiagnosticTag.Unnecessary,J.DiagnosticTag.Deprecated]},i.codeDescriptionSupport=!0,i.dataSupport=!0;const r=(0,ni.ensure)(e,"window"),s=(0,ni.ensure)(r,"showMessage");s.messageActionItem={additionalPropertiesSupport:!0};const o=(0,ni.ensure)(r,"showDocument");o.support=!0;const a=(0,ni.ensure)(e,"general");a.staleRequestSupport={cancel:!0,retryOnContentModified:Array.from(Gr.RequestsToCancelOnContentModified)},a.regularExpressions={engine:"ECMAScript",version:"ES2020"},a.markdown={parser:"marked",version:"1.1.0"},a.positionEncodings=["utf-16"],this._clientOptions.markdown.supportHtml&&(a.markdown.allowedTags=["ul","li","p","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"]);for(let c of this._features)c.fillClientCapabilities(e);return e}initializeFeatures(e){const n=this._clientOptions.documentSelector;for(const i of this._features)si.func(i.preInitialize)&&i.preInitialize(this._capabilities,n);for(const i of this._features)i.initialize(this._capabilities,n)}async handleRegistrationRequest(e){var i;const n=(i=this.clientOptions.middleware)==null?void 0:i.handleRegisterCapability;return n?n(e,r=>this.doRegisterCapability(r)):this.doRegisterCapability(e)}async doRegisterCapability(e){if(!this.isRunning()){for(const n of e.registrations)this._ignoredRegistrations.add(n.id);return}for(const n of e.registrations){const i=this._dynamicFeatures.get(n.method);if(i===void 0)return Promise.reject(new Error(`No feature implementation for ${n.method} found. Registration failed.`));const r=n.registerOptions??{};r.documentSelector=r.documentSelector??this._clientOptions.documentSelector;const s={id:n.id,registerOptions:r};try{i.register(s)}catch(o){return Promise.reject(o)}}}async handleUnregistrationRequest(e){var i;const n=(i=this.clientOptions.middleware)==null?void 0:i.handleUnregisterCapability;return n?n(e,r=>this.doUnregisterCapability(r)):this.doUnregisterCapability(e)}async doUnregisterCapability(e){for(const n of e.unregisterations){if(this._ignoredRegistrations.has(n.id))continue;const i=this._dynamicFeatures.get(n.method);if(!i)return Promise.reject(new Error(`No feature implementation for ${n.method} found. Unregistration failed.`));i.unregister(n.id)}}async handleApplyWorkspaceEdit(e){const n=e.edit,i=await this.workspaceEditLock.lock(()=>this._p2c.asWorkspaceEdit(n)),r=new Map;nt.workspace.textDocuments.forEach(o=>r.set(o.uri.toString(),o));let s=!1;if(n.documentChanges){for(const o of n.documentChanges)if(J.TextDocumentEdit.is(o)&&o.textDocument.version&&o.textDocument.version>=0){const a=this._p2c.asUri(o.textDocument.uri).toString(),c=r.get(a);if(c&&c.version!==o.textDocument.version){s=!0;break}}}return s?Promise.resolve({applied:!1}):si.asPromise(nt.workspace.applyEdit(i).then(o=>({applied:o})))}handleFailedRequest(e,n,i,r,s=!0){if(i instanceof J.ResponseError){if(i.code===J.ErrorCodes.PendingResponseRejected||i.code===J.ErrorCodes.ConnectionInactive)return r;if(i.code===J.LSPErrorCodes.RequestCancelled||i.code===J.LSPErrorCodes.ServerCancelled){if(n!==void 0&&n.isCancellationRequested)return r;throw i.data!==void 0?new ni.LSPCancellationError(i.data):new nt.CancellationError}else if(i.code===J.LSPErrorCodes.ContentModified){if(Gr.RequestsToCancelOnContentModified.has(e.method)||Gr.CancellableResolveCalls.has(e.method))throw new nt.CancellationError;return r}}throw this.error(`Request ${e.method} failed.`,i,s),i}}Yt.BaseLanguageClient=Gr;Gr.RequestsToCancelOnContentModified=new Set([J.SemanticTokensRequest.method,J.SemanticTokensRangeRequest.method,J.SemanticTokensDeltaRequest.method]);Gr.CancellableResolveCalls=new Set([J.CompletionResolveRequest.method,J.CodeLensResolveRequest.method,J.CodeActionResolveRequest.method,J.InlayHintResolveRequest.method,J.DocumentLinkResolveRequest.method,J.WorkspaceSymbolResolveRequest.method]);class TD{error(e){(0,J.RAL)().console.error(e)}warn(e){(0,J.RAL)().console.warn(e)}info(e){(0,J.RAL)().console.info(e)}log(e){(0,J.RAL)().console.log(e)}}function kD(t,e,n,i,r){const s=new TD,o=(0,J.createProtocolConnection)(t,e,s,r);return o.onError(c=>{n(c[0],c[1],c[2])}),o.onClose(i),{listen:()=>o.listen(),sendRequest:o.sendRequest,onRequest:o.onRequest,hasPendingResponse:o.hasPendingResponse,sendNotification:o.sendNotification,onNotification:o.onNotification,onProgress:o.onProgress,sendProgress:o.sendProgress,trace:(c,l,f)=>{const g={sendNotification:!1,traceFormat:J.TraceFormat.Text};return f===void 0?o.trace(c,l,g):(si.boolean(f),o.trace(c,l,f))},initialize:c=>o.sendRequest(J.InitializeRequest.type,c),shutdown:()=>o.sendRequest(J.ShutdownRequest.type,void 0),exit:()=>o.sendNotification(J.ExitNotification.type),end:()=>o.end(),dispose:()=>o.dispose()}}var j1;(function(t){function e(n){return[new SD.InlineCompletionItemFeature(n)]}t.createAll=e})(j1||(Yt.ProposedFeatures=j1={}));(function(t){var e=_t&&_t.__createBinding||(Object.create?function(r,s,o,a){a===void 0&&(a=o);var c=Object.getOwnPropertyDescriptor(s,o);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[o]}}),Object.defineProperty(r,a,c)}:function(r,s,o,a){a===void 0&&(a=o),r[a]=s[o]}),n=_t&&_t.__exportStar||function(r,s){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,r,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticPullMode=t.vsdiag=void 0,n(ye,t),n(De,t);var i=Ui;Object.defineProperty(t,"vsdiag",{enumerable:!0,get:function(){return i.vsdiag}}),Object.defineProperty(t,"DiagnosticPullMode",{enumerable:!0,get:function(){return i.DiagnosticPullMode}}),n(Yt,t)})(Ou);var X0=ye;(function(t){var e=_t&&_t.__createBinding||(Object.create?function(o,a,c,l){l===void 0&&(l=c);var f=Object.getOwnPropertyDescriptor(a,c);(!f||("get"in f?!a.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(o,l,f)}:function(o,a,c,l){l===void 0&&(l=c),o[l]=a[c]}),n=_t&&_t.__exportStar||function(o,a){for(var c in o)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&e(a,o,c)};Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageClient=void 0;const i=Ou,r=X0;n(X0,t),n(Ou,t);class s extends i.BaseLanguageClient{constructor(a,c,l,f){super(a,c,l),this.worker=f}createMessageTransports(a){const c=new r.BrowserMessageReader(this.worker),l=new r.BrowserMessageWriter(this.worker);return Promise.resolve({reader:c,writer:l})}}t.LanguageClient=s})(Mu);var mr={},Xi={};Object.defineProperty(Xi,"__esModule",{value:!0});let H1;function W1(){if(H1===void 0)throw new Error("No runtime abstraction layer installed");return H1}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");H1=n}t.install=e})(W1||(W1={}));Xi.default=W1;var Ht={};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.stringArray=Ht.array=Ht.func=Ht.error=Ht.number=Ht.string=Ht.boolean=void 0;function RD(t){return t===!0||t===!1}Ht.boolean=RD;function xy(t){return typeof t=="string"||t instanceof String}Ht.string=xy;function xD(t){return typeof t=="number"||t instanceof Number}Ht.number=xD;function ID(t){return t instanceof Error}Ht.error=ID;function ED(t){return typeof t=="function"}Ht.func=ED;function Iy(t){return Array.isArray(t)}Ht.array=Iy;function PD(t){return Iy(t)&&t.every(e=>xy(e))}Ht.stringArray=PD;var Ti={};Object.defineProperty(Ti,"__esModule",{value:!0});Ti.Emitter=Ti.Event=void 0;const AD=Xi;var Z0;(function(t){const e={dispose(){}};t.None=function(){return e}})(Z0||(Ti.Event=Z0={}));class MD{add(e,n=null,i){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(i)&&i.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let i=!1;for(let r=0,s=this._callbacks.length;r<s;r++)if(this._callbacks[r]===e)if(this._contexts[r]===n){this._callbacks.splice(r,1),this._contexts.splice(r,1);return}else i=!0;if(i)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];const n=[],i=this._callbacks.slice(0),r=this._contexts.slice(0);for(let s=0,o=i.length;s<o;s++)try{n.push(i[s].apply(r[s],e))}catch(a){(0,AD.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}}class Ml{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,i)=>{this._callbacks||(this._callbacks=new MD),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);const r={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,n),r.dispose=Ml._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(i)&&i.push(r),r}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}Ti.Emitter=Ml;Ml._noop=function(){};var ua={};Object.defineProperty(ua,"__esModule",{value:!0});ua.Semaphore=void 0;const OD=Xi;class FD{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((n,i)=>{this._waiting.push({thunk:e,resolve:n,reject:i}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,OD.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||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 n=e.thunk();n instanceof Promise?n.then(i=>{this._active--,e.resolve(i),this.runNext()},i=>{this._active--,e.reject(i),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}}ua.Semaphore=FD;Object.defineProperty(mr,"__esModule",{value:!0});mr.ReadableStreamMessageReader=Py=mr.AbstractMessageReader=mr.MessageReader=void 0;const U1=Xi,us=Ht,Iu=Ti,LD=ua;var Y0;(function(t){function e(n){let i=n;return i&&us.func(i.listen)&&us.func(i.dispose)&&us.func(i.onError)&&us.func(i.onClose)&&us.func(i.onPartialMessage)}t.is=e})(Y0||(mr.MessageReader=Y0={}));class Ey{constructor(){this.errorEmitter=new Iu.Emitter,this.closeEmitter=new Iu.Emitter,this.partialMessageEmitter=new Iu.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: ${us.string(e.message)?e.message:"unknown"}`)}}var Py=mr.AbstractMessageReader=Ey,z1;(function(t){function e(n){let i,r;const s=new Map;let o;const a=new Map;if(n===void 0||typeof n=="string")i=n??"utf-8";else{if(i=n.charset??"utf-8",n.contentDecoder!==void 0&&(r=n.contentDecoder,s.set(r.name,r)),n.contentDecoders!==void 0)for(const c of n.contentDecoders)s.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(o=n.contentTypeDecoder,a.set(o.name,o)),n.contentTypeDecoders!==void 0)for(const c of n.contentTypeDecoders)a.set(c.name,c)}return o===void 0&&(o=(0,U1.default)().applicationJson.decoder,a.set(o.name,o)),{charset:i,contentDecoder:r,contentDecoders:s,contentTypeDecoder:o,contentTypeDecoders:a}}t.fromOptions=e})(z1||(z1={}));class ND extends Ey{constructor(e,n){super(),this.readable=e,this.options=z1.fromOptions(n),this.buffer=(0,U1.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new LD.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 n=this.readable.onData(i=>{this.onData(i)});return this.readable.onError(i=>this.fireError(i)),this.readable.onClose(()=>this.fireClose()),n}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){const i=this.buffer.tryReadHeaders(!0);if(!i)return;const r=i.get("content-length");if(!r){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
124
|
+
${JSON.stringify(Object.fromEntries(i))}`));return}const s=parseInt(r);if(isNaN(s)){this.fireError(new Error(`Content-Length value must be a number. Got ${r}`));return}this.nextMessageLength=s}const n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{const i=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,r=await this.options.contentTypeDecoder.decode(i,this.options);this.callback(r)}).catch(i=>{this.fireError(i)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,U1.default)().timer.setTimeout((e,n)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:n}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}mr.ReadableStreamMessageReader=ND;let $D=class extends Py{constructor(n){super();Nt(this,"socket");Nt(this,"state","initial");Nt(this,"callback");Nt(this,"events",[]);this.socket=n,this.socket.onMessage(i=>this.readMessage(i)),this.socket.onError(i=>this.fireError(i)),this.socket.onClose((i,r)=>{if(i!==1e3){const s={name:""+i,message:`Error during socket reconnect: code = ${i}, reason = ${r}`};this.fireError(s)}this.fireClose()})}listen(n){if(this.state==="initial")for(this.state="listening",this.callback=n;this.events.length!==0;){const i=this.events.pop();i.message!==void 0?this.readMessage(i.message):i.error!==void 0?this.fireError(i.error):this.fireClose()}return{dispose:()=>{this.callback===n&&(this.state="initial",this.callback=void 0)}}}dispose(){super.dispose(),this.state="initial",this.callback=void 0,this.events.splice(0,this.events.length)}readMessage(n){if(this.state==="initial")this.events.splice(0,0,{message:n});else if(this.state==="listening")try{const i=JSON.parse(n);this.callback(i)}catch(i){const r={name:"400",message:`Error during message parsing, reason = ${typeof i=="object"?i.message:"unknown"}`};this.fireError(r)}}fireError(n){this.state==="initial"?this.events.splice(0,0,{error:n}):this.state==="listening"&&super.fireError(n)}fireClose(){this.state==="initial"?this.events.splice(0,0,{}):this.state==="listening"&&super.fireClose(),this.state="closed"}};var yr={};Object.defineProperty(yr,"__esModule",{value:!0});yr.WriteableStreamMessageWriter=My=yr.AbstractMessageWriter=yr.MessageWriter=void 0;const Q0=Xi,wo=Ht,qD=ua,e2=Ti,jD="Content-Length: ",t2=`\r
|
|
125
|
+
`;var n2;(function(t){function e(n){let i=n;return i&&wo.func(i.dispose)&&wo.func(i.onClose)&&wo.func(i.onError)&&wo.func(i.write)}t.is=e})(n2||(yr.MessageWriter=n2={}));class Ay{constructor(){this.errorEmitter=new e2.Emitter,this.closeEmitter=new e2.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,n,i){this.errorEmitter.fire([this.asError(e),n,i])}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: ${wo.string(e.message)?e.message:"unknown"}`)}}var My=yr.AbstractMessageWriter=Ay,B1;(function(t){function e(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,Q0.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,Q0.default)().applicationJson.encoder}}t.fromOptions=e})(B1||(B1={}));class HD extends Ay{constructor(e,n){super(),this.writable=e,this.options=B1.fromOptions(n),this.errorCount=0,this.writeSemaphore=new qD.Semaphore(1),this.writable.onError(i=>this.fireError(i)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(i=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(i):i).then(i=>{const r=[];return r.push(jD,i.byteLength.toString(),t2),r.push(t2),this.doWrite(e,r,i)},i=>{throw this.fireError(i),i}))}async doWrite(e,n,i){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(i)}catch(r){return this.handleError(r,e),Promise.reject(r)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){this.writable.end()}}yr.WriteableStreamMessageWriter=HD;let WD=class extends My{constructor(n){super();Nt(this,"errorCount",0);Nt(this,"socket");this.socket=n}end(){}async write(n){try{const i=JSON.stringify(n);this.socket.send(i)}catch(i){this.errorCount++,this.fireError(i,n,this.errorCount)}}};var UD={},mg={},Eu={},he={},i2;function Oy(){if(i2)return he;i2=1,Object.defineProperty(he,"__esModule",{value:!0}),he.Message=he.NotificationType9=he.NotificationType8=he.NotificationType7=he.NotificationType6=he.NotificationType5=he.NotificationType4=he.NotificationType3=he.NotificationType2=he.NotificationType1=he.NotificationType0=he.NotificationType=he.RequestType9=he.RequestType8=he.RequestType7=he.RequestType6=he.RequestType5=he.RequestType4=he.RequestType3=he.RequestType2=he.RequestType1=he.RequestType=he.RequestType0=he.AbstractMessageSignature=he.ParameterStructures=he.ResponseError=he.ErrorCodes=void 0;const t=Ht;var e;(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})(e||(he.ErrorCodes=e={}));class n extends Error{constructor(v,R,P){super(R),this.code=t.number(v)?v:e.UnknownErrorCode,this.data=P,Object.setPrototypeOf(this,n.prototype)}toJson(){const v={code:this.code,message:this.message};return this.data!==void 0&&(v.data=this.data),v}}he.ResponseError=n;class i{constructor(v){this.kind=v}static is(v){return v===i.auto||v===i.byName||v===i.byPosition}toString(){return this.kind}}he.ParameterStructures=i,i.auto=new i("auto"),i.byPosition=new i("byPosition"),i.byName=new i("byName");class r{constructor(v,R){this.method=v,this.numberOfParams=R}get parameterStructures(){return i.auto}}he.AbstractMessageSignature=r;class s extends r{constructor(v){super(v,0)}}he.RequestType0=s;class o extends r{constructor(v,R=i.auto){super(v,1),this._parameterStructures=R}get parameterStructures(){return this._parameterStructures}}he.RequestType=o;class a extends r{constructor(v,R=i.auto){super(v,1),this._parameterStructures=R}get parameterStructures(){return this._parameterStructures}}he.RequestType1=a;class c extends r{constructor(v){super(v,2)}}he.RequestType2=c;class l extends r{constructor(v){super(v,3)}}he.RequestType3=l;class f extends r{constructor(v){super(v,4)}}he.RequestType4=f;class g extends r{constructor(v){super(v,5)}}he.RequestType5=g;class p extends r{constructor(v){super(v,6)}}he.RequestType6=p;class _ extends r{constructor(v){super(v,7)}}he.RequestType7=_;class C extends r{constructor(v){super(v,8)}}he.RequestType8=C;class k extends r{constructor(v){super(v,9)}}he.RequestType9=k;class A extends r{constructor(v,R=i.auto){super(v,1),this._parameterStructures=R}get parameterStructures(){return this._parameterStructures}}he.NotificationType=A;class H extends r{constructor(v){super(v,0)}}he.NotificationType0=H;class K extends r{constructor(v,R=i.auto){super(v,1),this._parameterStructures=R}get parameterStructures(){return this._parameterStructures}}he.NotificationType1=K;class j extends r{constructor(v){super(v,2)}}he.NotificationType2=j;class B extends r{constructor(v){super(v,3)}}he.NotificationType3=B;class z extends r{constructor(v){super(v,4)}}he.NotificationType4=z;class ne extends r{constructor(v){super(v,5)}}he.NotificationType5=ne;class G extends r{constructor(v){super(v,6)}}he.NotificationType6=G;class Z extends r{constructor(v){super(v,7)}}he.NotificationType7=Z;class ie extends r{constructor(v){super(v,8)}}he.NotificationType8=ie;class Le extends r{constructor(v){super(v,9)}}he.NotificationType9=Le;var $;return function(E){function v(I){const V=I;return V&&t.string(V.method)&&(t.string(V.id)||t.number(V.id))}E.isRequest=v;function R(I){const V=I;return V&&t.string(V.method)&&I.id===void 0}E.isNotification=R;function P(I){const V=I;return V&&(V.result!==void 0||!!V.error)&&(t.string(V.id)||t.number(V.id)||V.id===null)}E.isResponse=P}($||(he.Message=$={})),he}var Ri={},r2;function Fy(){if(r2)return Ri;r2=1;var t;Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.LRUCache=Ri.LinkedMap=Ri.Touch=void 0;var e;(function(r){r.None=0,r.First=1,r.AsOld=r.First,r.Last=2,r.AsNew=r.Last})(e||(Ri.Touch=e={}));class n{constructor(){this[t]="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(){var s;return(s=this._head)==null?void 0:s.value}get last(){var s;return(s=this._tail)==null?void 0:s.value}has(s){return this._map.has(s)}get(s,o=e.None){const a=this._map.get(s);if(a)return o!==e.None&&this.touch(a,o),a.value}set(s,o,a=e.None){let c=this._map.get(s);if(c)c.value=o,a!==e.None&&this.touch(c,a);else{switch(c={key:s,value:o,next:void 0,previous:void 0},a){case e.None:this.addItemLast(c);break;case e.First:this.addItemFirst(c);break;case e.Last:this.addItemLast(c);break;default:this.addItemLast(c);break}this._map.set(s,c),this._size++}return this}delete(s){return!!this.remove(s)}remove(s){const o=this._map.get(s);if(o)return this._map.delete(s),this.removeItem(o),this._size--,o.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const s=this._head;return this._map.delete(s.key),this.removeItem(s),this._size--,s.value}forEach(s,o){const a=this._state;let c=this._head;for(;c;){if(o?s.bind(o)(c.value,c.key,this):s(c.value,c.key,this),this._state!==a)throw new Error("LinkedMap got modified during iteration.");c=c.next}}keys(){const s=this._state;let o=this._head;const a={[Symbol.iterator]:()=>a,next:()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){const c={value:o.key,done:!1};return o=o.next,c}else return{value:void 0,done:!0}}};return a}values(){const s=this._state;let o=this._head;const a={[Symbol.iterator]:()=>a,next:()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){const c={value:o.value,done:!1};return o=o.next,c}else return{value:void 0,done:!0}}};return a}entries(){const s=this._state;let o=this._head;const a={[Symbol.iterator]:()=>a,next:()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){const c={value:[o.key,o.value],done:!1};return o=o.next,c}else return{value:void 0,done:!0}}};return a}[(t=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(s){if(s>=this.size)return;if(s===0){this.clear();return}let o=this._head,a=this.size;for(;o&&a>s;)this._map.delete(o.key),o=o.next,a--;this._head=o,this._size=a,o&&(o.previous=void 0),this._state++}addItemFirst(s){if(!this._head&&!this._tail)this._tail=s;else if(this._head)s.next=this._head,this._head.previous=s;else throw new Error("Invalid list");this._head=s,this._state++}addItemLast(s){if(!this._head&&!this._tail)this._head=s;else if(this._tail)s.previous=this._tail,this._tail.next=s;else throw new Error("Invalid list");this._tail=s,this._state++}removeItem(s){if(s===this._head&&s===this._tail)this._head=void 0,this._tail=void 0;else if(s===this._head){if(!s.next)throw new Error("Invalid list");s.next.previous=void 0,this._head=s.next}else if(s===this._tail){if(!s.previous)throw new Error("Invalid list");s.previous.next=void 0,this._tail=s.previous}else{const o=s.next,a=s.previous;if(!o||!a)throw new Error("Invalid list");o.previous=a,a.next=o}s.next=void 0,s.previous=void 0,this._state++}touch(s,o){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(o!==e.First&&o!==e.Last)){if(o===e.First){if(s===this._head)return;const a=s.next,c=s.previous;s===this._tail?(c.next=void 0,this._tail=c):(a.previous=c,c.next=a),s.previous=void 0,s.next=this._head,this._head.previous=s,this._head=s,this._state++}else if(o===e.Last){if(s===this._tail)return;const a=s.next,c=s.previous;s===this._head?(a.previous=void 0,this._head=a):(a.previous=c,c.next=a),s.next=void 0,s.previous=this._tail,this._tail.next=s,this._tail=s,this._state++}}}toJSON(){const s=[];return this.forEach((o,a)=>{s.push([a,o])}),s}fromJSON(s){this.clear();for(const[o,a]of s)this.set(o,a)}}Ri.LinkedMap=n;class i extends n{constructor(s,o=1){super(),this._limit=s,this._ratio=Math.min(Math.max(0,o),1)}get limit(){return this._limit}set limit(s){this._limit=s,this.checkTrim()}get ratio(){return this._ratio}set ratio(s){this._ratio=Math.min(Math.max(0,s),1),this.checkTrim()}get(s,o=e.AsNew){return super.get(s,o)}peek(s){return super.get(s,e.None)}set(s,o){return super.set(s,o,e.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}return Ri.LRUCache=i,Ri}var uo={},s2;function zD(){if(s2)return uo;s2=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.Disposable=void 0;var t;return function(e){function n(i){return{dispose:i}}e.create=n}(t||(uo.Disposable=t={})),uo}var kr={},o2;function yg(){if(o2)return kr;o2=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.CancellationTokenSource=kr.CancellationToken=void 0;const t=Xi,e=Ht,n=Ti;var i;(function(a){a.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),a.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n.Event.None});function c(l){const f=l;return f&&(f===a.None||f===a.Cancelled||e.boolean(f.isCancellationRequested)&&!!f.onCancellationRequested)}a.is=c})(i||(kr.CancellationToken=i={}));const r=Object.freeze(function(a,c){const l=(0,t.default)().timer.setTimeout(a.bind(c),0);return{dispose(){l.dispose()}}});class s{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?r:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}class o{get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token.cancel():this._token=i.Cancelled}dispose(){this._token?this._token instanceof s&&this._token.dispose():this._token=i.None}}return kr.CancellationTokenSource=o,kr}var Rr={},a2;function BD(){if(a2)return Rr;a2=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.SharedArrayReceiverStrategy=Rr.SharedArraySenderStrategy=void 0;const t=yg();var e;(function(o){o.Continue=0,o.Cancelled=1})(e||(e={}));class n{constructor(){this.buffers=new Map}enableCancellation(a){if(a.id===null)return;const c=new SharedArrayBuffer(4),l=new Int32Array(c,0,1);l[0]=e.Continue,this.buffers.set(a.id,c),a.$cancellationData=c}async sendCancellation(a,c){const l=this.buffers.get(c);if(l===void 0)return;const f=new Int32Array(l,0,1);Atomics.store(f,0,e.Cancelled)}cleanup(a){this.buffers.delete(a)}dispose(){this.buffers.clear()}}Rr.SharedArraySenderStrategy=n;class i{constructor(a){this.data=new Int32Array(a,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===e.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class r{constructor(a){this.token=new i(a)}cancel(){}dispose(){}}class s{constructor(){this.kind="request"}createCancellationTokenSource(a){const c=a.$cancellationData;return c===void 0?new t.CancellationTokenSource:new r(c)}}return Rr.SharedArrayReceiverStrategy=s,Rr}var fo={},c2;function VD(){if(c2)return fo;c2=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.AbstractMessageBuffer=void 0;const t=13,e=10,n=`\r
|
|
126
|
+
`;class i{constructor(s="utf-8"){this._encoding=s,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(s){const o=typeof s=="string"?this.fromString(s,this._encoding):s;this._chunks.push(o),this._totalLength+=o.byteLength}tryReadHeaders(s=!1){if(this._chunks.length===0)return;let o=0,a=0,c=0,l=0;e:for(;a<this._chunks.length;){const _=this._chunks[a];for(c=0;c<_.length;){switch(_[c]){case t:switch(o){case 0:o=1;break;case 2:o=3;break;default:o=0}break;case e:switch(o){case 1:o=2;break;case 3:o=4,c++;break e;default:o=0}break;default:o=0}c++}l+=_.byteLength,a++}if(o!==4)return;const f=this._read(l+c),g=new Map,p=this.toString(f,"ascii").split(n);if(p.length<2)return g;for(let _=0;_<p.length-2;_++){const C=p[_],k=C.indexOf(":");if(k===-1)throw new Error(`Message header must separate key and value using ':'
|
|
127
|
+
${C}`);const A=C.substr(0,k),H=C.substr(k+1).trim();g.set(s?A.toLowerCase():A,H)}return g}tryReadBody(s){if(!(this._totalLength<s))return this._read(s)}get numberOfBytes(){return this._totalLength}_read(s){if(s===0)return this.emptyBuffer();if(s>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===s){const l=this._chunks[0];return this._chunks.shift(),this._totalLength-=s,this.asNative(l)}if(this._chunks[0].byteLength>s){const l=this._chunks[0],f=this.asNative(l,s);return this._chunks[0]=l.slice(s),this._totalLength-=s,f}const o=this.allocNative(s);let a=0,c=0;for(;s>0;){const l=this._chunks[c];if(l.byteLength>s){const f=l.slice(0,s);o.set(f,a),a+=s,this._chunks[c]=l.slice(s),this._totalLength-=s,s-=s}else o.set(l,a),a+=l.byteLength,this._chunks.shift(),this._totalLength-=l.byteLength,s-=l.byteLength}return o}}return fo.AbstractMessageBuffer=i,fo}var Pu={},l2;function KD(){return l2||(l2=1,function(t){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 e=Xi,n=Ht,i=Oy(),r=Fy(),s=Ti,o=yg();var a;(function(v){v.type=new i.NotificationType("$/cancelRequest")})(a||(a={}));var c;(function(v){function R(P){return typeof P=="string"||typeof P=="number"}v.is=R})(c||(t.ProgressToken=c={}));var l;(function(v){v.type=new i.NotificationType("$/progress")})(l||(l={}));class f{constructor(){}}t.ProgressType=f;var g;(function(v){function R(P){return n.func(P)}v.is=R})(g||(g={})),t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var p;(function(v){v[v.Off=0]="Off",v[v.Messages=1]="Messages",v[v.Compact=2]="Compact",v[v.Verbose=3]="Verbose"})(p||(t.Trace=p={}));var _;(function(v){v.Off="off",v.Messages="messages",v.Compact="compact",v.Verbose="verbose"})(_||(t.TraceValues=_={})),function(v){function R(I){if(!n.string(I))return v.Off;switch(I=I.toLowerCase(),I){case"off":return v.Off;case"messages":return v.Messages;case"compact":return v.Compact;case"verbose":return v.Verbose;default:return v.Off}}v.fromString=R;function P(I){switch(I){case v.Off:return"off";case v.Messages:return"messages";case v.Compact:return"compact";case v.Verbose:return"verbose";default:return"off"}}v.toString=P}(p||(t.Trace=p={}));var C;(function(v){v.Text="text",v.JSON="json"})(C||(t.TraceFormat=C={})),function(v){function R(P){return n.string(P)?(P=P.toLowerCase(),P==="json"?v.JSON:v.Text):v.Text}v.fromString=R}(C||(t.TraceFormat=C={}));var k;(function(v){v.type=new i.NotificationType("$/setTrace")})(k||(t.SetTraceNotification=k={}));var A;(function(v){v.type=new i.NotificationType("$/logTrace")})(A||(t.LogTraceNotification=A={}));var H;(function(v){v[v.Closed=1]="Closed",v[v.Disposed=2]="Disposed",v[v.AlreadyListening=3]="AlreadyListening"})(H||(t.ConnectionErrors=H={}));class K extends Error{constructor(R,P){super(P),this.code=R,Object.setPrototypeOf(this,K.prototype)}}t.ConnectionError=K;var j;(function(v){function R(P){const I=P;return I&&n.func(I.cancelUndispatched)}v.is=R})(j||(t.ConnectionStrategy=j={}));var B;(function(v){function R(P){const I=P;return I&&(I.kind===void 0||I.kind==="id")&&n.func(I.createCancellationTokenSource)&&(I.dispose===void 0||n.func(I.dispose))}v.is=R})(B||(t.IdCancellationReceiverStrategy=B={}));var z;(function(v){function R(P){const I=P;return I&&I.kind==="request"&&n.func(I.createCancellationTokenSource)&&(I.dispose===void 0||n.func(I.dispose))}v.is=R})(z||(t.RequestCancellationReceiverStrategy=z={}));var ne;(function(v){v.Message=Object.freeze({createCancellationTokenSource(P){return new o.CancellationTokenSource}});function R(P){return B.is(P)||z.is(P)}v.is=R})(ne||(t.CancellationReceiverStrategy=ne={}));var G;(function(v){v.Message=Object.freeze({sendCancellation(P,I){return P.sendNotification(a.type,{id:I})},cleanup(P){}});function R(P){const I=P;return I&&n.func(I.sendCancellation)&&n.func(I.cleanup)}v.is=R})(G||(t.CancellationSenderStrategy=G={}));var Z;(function(v){v.Message=Object.freeze({receiver:ne.Message,sender:G.Message});function R(P){const I=P;return I&&ne.is(I.receiver)&&G.is(I.sender)}v.is=R})(Z||(t.CancellationStrategy=Z={}));var ie;(function(v){function R(P){const I=P;return I&&n.func(I.handleMessage)}v.is=R})(ie||(t.MessageStrategy=ie={}));var Le;(function(v){function R(P){const I=P;return I&&(Z.is(I.cancellationStrategy)||j.is(I.connectionStrategy)||ie.is(I.messageStrategy))}v.is=R})(Le||(t.ConnectionOptions=Le={}));var $;(function(v){v[v.New=1]="New",v[v.Listening=2]="Listening",v[v.Closed=3]="Closed",v[v.Disposed=4]="Disposed"})($||($={}));function E(v,R,P,I){const V=P!==void 0?P:t.NullLogger;let Ae=0,ve=0,lt=0;const He="2.0";let Ee;const st=new Map;let Fe;const ot=new Map,Je=new Map;let Ft,Xe=new r.LinkedMap,Ye=new Map,vt=new Set,at=new Map,oe=p.Off,pt=C.Text,we,Qe=$.New;const en=new s.Emitter,tn=new s.Emitter,Wt=new s.Emitter,Rt=new s.Emitter,xt=new s.Emitter,qe=I&&I.cancellationStrategy?I.cancellationStrategy:Z.Message;function Ut(h){if(h===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+h.toString()}function Ln(h){return h===null?"res-unknown-"+(++lt).toString():"res-"+h.toString()}function Dn(){return"not-"+(++ve).toString()}function Tn(h,D){i.Message.isRequest(D)?h.set(Ut(D.id),D):i.Message.isResponse(D)?h.set(Ln(D.id),D):h.set(Dn(),D)}function Nn(h){}function kn(){return Qe===$.Listening}function ln(){return Qe===$.Closed}function St(){return Qe===$.Disposed}function mn(){(Qe===$.New||Qe===$.Listening)&&(Qe=$.Closed,tn.fire(void 0))}function zn(h){en.fire([h,void 0,void 0])}function Kt(h){en.fire(h)}v.onClose(mn),v.onError(zn),R.onClose(mn),R.onError(Kt);function nn(){Ft||Xe.size===0||(Ft=(0,e.default)().timer.setImmediate(()=>{Ft=void 0,Gt()}))}function yn(h){i.Message.isRequest(h)?bn(h):i.Message.isNotification(h)?Bn(h):i.Message.isResponse(h)?xn(h):vn(h)}function Gt(){if(Xe.size===0)return;const h=Xe.shift();try{const D=I==null?void 0:I.messageStrategy;ie.is(D)?D.handleMessage(h,yn):yn(h)}finally{nn()}}const Rn=h=>{try{if(i.Message.isNotification(h)&&h.method===a.type.method){const D=h.params.id,x=Ut(D),N=Xe.get(x);if(i.Message.isRequest(N)){const ce=I==null?void 0:I.connectionStrategy,fe=ce&&ce.cancelUndispatched?ce.cancelUndispatched(N,Nn):void 0;if(fe&&(fe.error!==void 0||fe.result!==void 0)){Xe.delete(x),at.delete(D),fe.id=N.id,Lt(fe,h.method,Date.now()),R.write(fe).catch(()=>V.error("Sending response for canceled message failed."));return}}const le=at.get(D);if(le!==void 0){le.cancel(),L(h);return}else vt.add(D)}Tn(Xe,h)}finally{nn()}};function bn(h){if(St())return;function D(S,M,W){const de={jsonrpc:He,id:h.id};S instanceof i.ResponseError?de.error=S.toJson():de.result=S===void 0?null:S,Lt(de,M,W),R.write(de).catch(()=>V.error("Sending response failed."))}function x(S,M,W){const de={jsonrpc:He,id:h.id,error:S.toJson()};Lt(de,M,W),R.write(de).catch(()=>V.error("Sending response failed."))}function N(S,M,W){S===void 0&&(S=null);const de={jsonrpc:He,id:h.id,result:S};Lt(de,M,W),R.write(de).catch(()=>V.error("Sending response failed."))}y(h);const le=st.get(h.method);let ce,fe;le&&(ce=le.type,fe=le.handler);const d=Date.now();if(fe||Ee){const S=h.id??String(Date.now()),M=B.is(qe.receiver)?qe.receiver.createCancellationTokenSource(S):qe.receiver.createCancellationTokenSource(h);h.id!==null&&vt.has(h.id)&&M.cancel(),h.id!==null&&at.set(S,M);try{let W;if(fe)if(h.params===void 0){if(ce!==void 0&&ce.numberOfParams!==0){x(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${h.method} defines ${ce.numberOfParams} params but received none.`),h.method,d);return}W=fe(M.token)}else if(Array.isArray(h.params)){if(ce!==void 0&&ce.parameterStructures===i.ParameterStructures.byName){x(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${h.method} defines parameters by name but received parameters by position`),h.method,d);return}W=fe(...h.params,M.token)}else{if(ce!==void 0&&ce.parameterStructures===i.ParameterStructures.byPosition){x(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${h.method} defines parameters by position but received parameters by name`),h.method,d);return}W=fe(h.params,M.token)}else Ee&&(W=Ee(h.method,h.params,M.token));const de=W;W?de.then?de.then(be=>{at.delete(S),D(be,h.method,d)},be=>{at.delete(S),be instanceof i.ResponseError?x(be,h.method,d):be&&n.string(be.message)?x(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${h.method} failed with message: ${be.message}`),h.method,d):x(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${h.method} failed unexpectedly without providing any details.`),h.method,d)}):(at.delete(S),D(W,h.method,d)):(at.delete(S),N(W,h.method,d))}catch(W){at.delete(S),W instanceof i.ResponseError?D(W,h.method,d):W&&n.string(W.message)?x(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${h.method} failed with message: ${W.message}`),h.method,d):x(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${h.method} failed unexpectedly without providing any details.`),h.method,d)}}else x(new i.ResponseError(i.ErrorCodes.MethodNotFound,`Unhandled method ${h.method}`),h.method,d)}function xn(h){if(!St())if(h.id===null)h.error?V.error(`Received response message without id: Error is:
|
|
128
|
+
${JSON.stringify(h.error,void 0,4)}`):V.error("Received response message without id. No further error information provided.");else{const D=h.id,x=Ye.get(D);if(te(h,x),x!==void 0){Ye.delete(D);try{if(h.error){const N=h.error;x.reject(new i.ResponseError(N.code,N.message,N.data))}else if(h.result!==void 0)x.resolve(h.result);else throw new Error("Should never happen.")}catch(N){N.message?V.error(`Response handler '${x.method}' failed with message: ${N.message}`):V.error(`Response handler '${x.method}' failed unexpectedly.`)}}}}function Bn(h){if(St())return;let D,x;if(h.method===a.type.method){const N=h.params.id;vt.delete(N),L(h);return}else{const N=ot.get(h.method);N&&(x=N.handler,D=N.type)}if(x||Fe)try{if(L(h),x)if(h.params===void 0)D!==void 0&&D.numberOfParams!==0&&D.parameterStructures!==i.ParameterStructures.byName&&V.error(`Notification ${h.method} defines ${D.numberOfParams} params but received none.`),x();else if(Array.isArray(h.params)){const N=h.params;h.method===l.type.method&&N.length===2&&c.is(N[0])?x({token:N[0],value:N[1]}):(D!==void 0&&(D.parameterStructures===i.ParameterStructures.byName&&V.error(`Notification ${h.method} defines parameters by name but received parameters by position`),D.numberOfParams!==h.params.length&&V.error(`Notification ${h.method} defines ${D.numberOfParams} params but received ${N.length} arguments`)),x(...N))}else D!==void 0&&D.parameterStructures===i.ParameterStructures.byPosition&&V.error(`Notification ${h.method} defines parameters by position but received parameters by name`),x(h.params);else Fe&&Fe(h.method,h.params)}catch(N){N.message?V.error(`Notification handler '${h.method}' failed with message: ${N.message}`):V.error(`Notification handler '${h.method}' failed unexpectedly.`)}else Wt.fire(h)}function vn(h){if(!h){V.error("Received empty message.");return}V.error(`Received message which is neither a response nor a notification message:
|
|
129
|
+
${JSON.stringify(h,null,4)}`);const D=h;if(n.string(D.id)||n.number(D.id)){const x=D.id,N=Ye.get(x);N&&N.reject(new Error("The received response has neither a result nor an error property."))}}function mt(h){if(h!=null)switch(oe){case p.Verbose:return JSON.stringify(h,null,4);case p.Compact:return JSON.stringify(h);default:return}}function In(h){if(!(oe===p.Off||!we))if(pt===C.Text){let D;(oe===p.Verbose||oe===p.Compact)&&h.params&&(D=`Params: ${mt(h.params)}
|
|
114
130
|
|
|
115
|
-
`),
|
|
131
|
+
`),we.log(`Sending request '${h.method} - (${h.id})'.`,D)}else Te("send-request",h)}function $n(h){if(!(oe===p.Off||!we))if(pt===C.Text){let D;(oe===p.Verbose||oe===p.Compact)&&(h.params?D=`Params: ${mt(h.params)}
|
|
116
132
|
|
|
117
133
|
`:D=`No parameters provided.
|
|
118
134
|
|
|
119
|
-
`),
|
|
135
|
+
`),we.log(`Sending notification '${h.method}'.`,D)}else Te("send-notification",h)}function Lt(h,D,x){if(!(oe===p.Off||!we))if(pt===C.Text){let N;(oe===p.Verbose||oe===p.Compact)&&(h.error&&h.error.data?N=`Error data: ${mt(h.error.data)}
|
|
120
136
|
|
|
121
137
|
`:h.result?N=`Result: ${mt(h.result)}
|
|
122
138
|
|
|
123
139
|
`:h.error===void 0&&(N=`No result returned.
|
|
124
140
|
|
|
125
|
-
`)),
|
|
141
|
+
`)),we.log(`Sending response '${D} - (${h.id})'. Processing request took ${Date.now()-x}ms`,N)}else Te("send-response",h)}function y(h){if(!(oe===p.Off||!we))if(pt===C.Text){let D;(oe===p.Verbose||oe===p.Compact)&&h.params&&(D=`Params: ${mt(h.params)}
|
|
126
142
|
|
|
127
|
-
`),
|
|
143
|
+
`),we.log(`Received request '${h.method} - (${h.id})'.`,D)}else Te("receive-request",h)}function L(h){if(!(oe===p.Off||!we||h.method===A.type.method))if(pt===C.Text){let D;(oe===p.Verbose||oe===p.Compact)&&(h.params?D=`Params: ${mt(h.params)}
|
|
128
144
|
|
|
129
145
|
`:D=`No parameters provided.
|
|
130
146
|
|
|
131
|
-
`),
|
|
147
|
+
`),we.log(`Received notification '${h.method}'.`,D)}else Te("receive-notification",h)}function te(h,D){if(!(oe===p.Off||!we))if(pt===C.Text){let x;if((oe===p.Verbose||oe===p.Compact)&&(h.error&&h.error.data?x=`Error data: ${mt(h.error.data)}
|
|
132
148
|
|
|
133
149
|
`:h.result?x=`Result: ${mt(h.result)}
|
|
134
150
|
|
|
135
151
|
`:h.error===void 0&&(x=`No result returned.
|
|
136
152
|
|
|
137
|
-
`)),D){const N=h.error?` Request failed: ${h.error.message} (${h.error.code}).`:"";Ce.log(`Received response '${D.method} - (${h.id})' in ${Date.now()-D.timerStart}ms.${N}`,x)}else Ce.log(`Received response ${h.id} without active response promise.`,x)}else Te("receive-response",h)}function Te(h,D){if(!Ce||oe===g.Off)return;const x={isLSPMessage:!0,type:h,message:D,timestamp:Date.now()};Ce.log(x)}function xe(){if(ln())throw new K(H.Closed,"Connection is closed.");if(St())throw new K(H.Disposed,"Connection is disposed.")}function ut(){if(kn())throw new K(H.AlreadyListening,"Connection is already listening")}function T(){if(!kn())throw new Error("Call listen() first.")}function U(h){return h===void 0?null:h}function X(h){if(h!==null)return h}function w(h){return h!=null&&!Array.isArray(h)&&typeof h=="object"}function ge(h,D){switch(h){case r.ParameterStructures.auto:return w(D)?X(D):[U(D)];case r.ParameterStructures.byName:if(!w(D))throw new Error("Received parameters by name but param is not an object literal.");return X(D);case r.ParameterStructures.byPosition:return[U(D)];default:throw new Error(`Unknown parameter structure ${h.toString()}`)}}function me(h,D){let x;const N=h.numberOfParams;switch(N){case 0:x=void 0;break;case 1:x=ge(h.parameterStructures,D[0]);break;default:x=[];for(let le=0;le<D.length&&le<N;le++)x.push(U(D[le]));if(D.length<N)for(let le=D.length;le<N;le++)x.push(null);break}return x}const J={sendNotification:(h,...D)=>{xe();let x,N;if(n.string(h)){x=h;const ce=D[0];let fe=0,d=r.ParameterStructures.auto;r.ParameterStructures.is(ce)&&(fe=1,d=ce);let S=D.length;const O=S-fe;switch(O){case 0:N=void 0;break;case 1:N=ge(d,D[fe]);break;default:if(d===r.ParameterStructures.byName)throw new Error(`Received ${O} parameters for 'by Name' notification parameter structure.`);N=D.slice(fe,S).map(W=>U(W));break}}else{const ce=D;x=h.method,N=me(h,ce)}const le={jsonrpc:He,method:x,params:N};return $n(le),R.write(le).catch(ce=>{throw V.error("Sending notification failed."),ce})},onNotification:(h,D)=>{xe();let x;return n.func(h)?Fe=h:D&&(n.string(h)?(x=h,ot.set(h,{type:void 0,handler:D})):(x=h.method,ot.set(h.method,{type:h,handler:D}))),{dispose:()=>{x!==void 0?ot.delete(x):Fe=void 0}}},onProgress:(h,D,x)=>{if(Qe.has(D))throw new Error(`Progress handler for token ${D} already registered`);return Qe.set(D,x),{dispose:()=>{Qe.delete(D)}}},sendProgress:(h,D,x)=>J.sendNotification(l.type,{token:D,value:x}),onUnhandledProgress:Rt.event,sendRequest:(h,...D)=>{xe(),T();let x,N,le;if(n.string(h)){x=h;const S=D[0],O=D[D.length-1];let W=0,de=r.ParameterStructures.auto;r.ParameterStructures.is(S)&&(W=1,de=S);let be=D.length;o.CancellationToken.is(O)&&(be=be-1,le=O);const _e=be-W;switch(_e){case 0:N=void 0;break;case 1:N=ge(de,D[W]);break;default:if(de===r.ParameterStructures.byName)throw new Error(`Received ${_e} parameters for 'by Name' request parameter structure.`);N=D.slice(W,be).map(Pn=>U(Pn));break}}else{const S=D;x=h.method,N=me(h,S);const O=h.numberOfParams;le=o.CancellationToken.is(S[O])?S[O]:void 0}const ce=Me++;let fe;le&&(fe=le.onCancellationRequested(()=>{const S=qe.sender.sendCancellation(J,ce);return S===void 0?(V.log(`Received no promise from cancellation strategy when cancelling id ${ce}`),Promise.resolve()):S.catch(()=>{V.log(`Sending cancellation messages for id ${ce} failed`)})}));const d={jsonrpc:He,id:ce,method:x,params:N};return En(d),typeof qe.sender.enableCancellation=="function"&&qe.sender.enableCancellation(d),new Promise(async(S,O)=>{const W=_e=>{S(_e),qe.sender.cleanup(ce),fe==null||fe.dispose()},de=_e=>{O(_e),qe.sender.cleanup(ce),fe==null||fe.dispose()},be={method:x,timerStart:Date.now(),resolve:W,reject:de};try{Xe.set(ce,be),await R.write(d)}catch(_e){throw Xe.delete(ce),be.reject(new r.ResponseError(r.ErrorCodes.MessageWriteError,_e.message?_e.message:"Unknown reason")),V.error("Sending request failed."),_e}})},onRequest:(h,D)=>{xe();let x=null;return p.is(h)?(x=void 0,Pe=h):n.string(h)?(x=null,D!==void 0&&(x=h,st.set(h,{handler:D,type:void 0}))):D!==void 0&&(x=h.method,st.set(h.method,{type:h,handler:D})),{dispose:()=>{x!==null&&(x!==void 0?st.delete(x):Pe=void 0)}}},hasPendingResponse:()=>Xe.size>0,trace:async(h,D,x)=>{let N=!1,le=C.Text;x!==void 0&&(n.boolean(x)?N=x:(N=x.sendNotification||!1,le=x.traceFormat||C.Text)),oe=h,gt=le,oe===g.Off?Ce=void 0:Ce=D,N&&!ln()&&!St()&&await J.sendNotification(k.type,{value:g.toString(h)})},onError:en.event,onClose:tn.event,onUnhandledNotification:Wt.event,onDispose:xt.event,end:()=>{R.end()},dispose:()=>{if(St())return;Ze=$.Disposed,xt.fire(void 0);const h=new r.ResponseError(r.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const D of Xe.values())D.reject(h);Xe=new Map,at=new Map,vt=new Set,Je=new i.LinkedMap,n.func(R.dispose)&&R.dispose(),n.func(v.dispose)&&v.dispose()},listen:()=>{xe(),ut(),Ze=$.Listening,v.listen(Rn)},inspect:()=>{(0,e.default)().console.log("inspect")}};return J.onNotification(M.type,h=>{if(oe===g.Off||!Ce)return;const D=oe===g.Verbose||oe===g.Compact;Ce.log(h.message,D?h.verbose:void 0)}),J.onNotification(l.type,h=>{const D=Qe.get(h.token);D?D(h.value):Rt.fire(h)}),J}t.createMessageConnection=P}(Pu)),Pu}var c2;function B1(){return c2||(c2=1,function(t){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 e=My();Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return e.Message}}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return e.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return e.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return e.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return e.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return e.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return e.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return e.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return e.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return e.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return e.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return e.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return e.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return e.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return e.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return e.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return e.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return e.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return e.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return e.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return e.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return e.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return e.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return e.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return e.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return e.ParameterStructures}});const n=Oy();Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:function(){return n.LinkedMap}}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:function(){return n.LRUCache}}),Object.defineProperty(t,"Touch",{enumerable:!0,get:function(){return n.Touch}});const r=LD();Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return r.Disposable}});const i=Tr;Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return i.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return i.Emitter}});const s=mp();Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return s.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return s.CancellationToken}});const o=ND();Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return o.SharedArraySenderStrategy}}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return o.SharedArrayReceiverStrategy}});const a=mi;Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return a.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return a.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return a.ReadableStreamMessageReader}});const c=yi;Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return c.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return c.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return c.WriteableStreamMessageWriter}});const l=$D();Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:function(){return l.AbstractMessageBuffer}});const f=qD();Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return f.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return f.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return f.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return f.createMessageConnection}}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:function(){return f.ProgressToken}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return f.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return f.Trace}}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:function(){return f.TraceValues}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return f.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return f.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return f.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return f.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return f.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return f.CancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return f.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return f.CancellationStrategy}}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:function(){return f.MessageStrategy}});const p=Jr;t.RAL=p.default}(Eu)),Eu}Object.defineProperty(gp,"__esModule",{value:!0});const vr=B1();class Al extends vr.AbstractMessageBuffer{constructor(e="utf-8"){super(e),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return Al.emptyBuffer}fromString(e,n){return new TextEncoder().encode(e)}toString(e,n){return n==="ascii"?this.asciiDecoder.decode(e):new TextDecoder(n).decode(e)}asNative(e,n){return n===void 0?e:e.slice(0,n)}allocNative(e){return new Uint8Array(e)}}Al.emptyBuffer=new Uint8Array(0);class jD{constructor(e){this.socket=e,this._onData=new vr.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,vr.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(e){return this.socket.addEventListener("close",e),vr.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),vr.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),vr.Disposable.create(()=>this.socket.removeEventListener("end",e))}onData(e){return this._onData.event(e)}}class HD{constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener("close",e),vr.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),vr.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),vr.Disposable.create(()=>this.socket.removeEventListener("end",e))}write(e,n){if(typeof e=="string"){if(n!==void 0&&n!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${n}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}}const WD=new TextEncoder,Ay=Object.freeze({messageBuffer:Object.freeze({create:t=>new Al(t)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(t,e)=>{if(e.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${e.charset}`);return Promise.resolve(WD.encode(JSON.stringify(t,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(t,e)=>{if(!(t instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(e.charset).decode(t)))}})}),stream:Object.freeze({asReadableStream:t=>new jD(t),asWritableStream:t=>new HD(t)}),console,timer:Object.freeze({setTimeout(t,e,...n){const r=setTimeout(t,e,...n);return{dispose:()=>clearTimeout(r)}},setImmediate(t,...e){const n=setTimeout(t,0,...e);return{dispose:()=>clearTimeout(n)}},setInterval(t,e,...n){const r=setInterval(t,e,...n);return{dispose:()=>clearInterval(r)}}})});function V1(){return Ay}(function(t){function e(){vr.RAL.install(Ay)}t.install=e})(V1||(V1={}));gp.default=V1;(function(t){var e=_t&&_t.__createBinding||(Object.create?function(c,l,f,p){p===void 0&&(p=f);var g=Object.getOwnPropertyDescriptor(l,f);(!g||("get"in g?!l.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return l[f]}}),Object.defineProperty(c,p,g)}:function(c,l,f,p){p===void 0&&(p=f),c[p]=l[f]}),n=_t&&_t.__exportStar||function(c,l){for(var f in c)f!=="default"&&!Object.prototype.hasOwnProperty.call(l,f)&&e(l,c,f)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.BrowserMessageWriter=t.BrowserMessageReader=void 0,gp.default.install();const i=B1();n(B1(),t);class s extends i.AbstractMessageReader{constructor(l){super(),this._onData=new i.Emitter,this._messageListener=f=>{this._onData.fire(f.data)},l.addEventListener("error",f=>this.fireError(f)),l.onmessage=this._messageListener}listen(l){return this._onData.event(l)}}t.BrowserMessageReader=s;class o extends i.AbstractMessageWriter{constructor(l){super(),this.port=l,this.errorCount=0,l.addEventListener("error",f=>this.fireError(f))}write(l){try{return this.port.postMessage(l),Promise.resolve()}catch(f){return this.handleError(f,l),Promise.reject(f)}}handleError(l,f){this.errorCount++,this.fireError(l,f,this.errorCount)}end(){}}t.BrowserMessageWriter=o;function a(c,l,f,p){return f===void 0&&(f=i.NullLogger),i.ConnectionStrategy.is(p)&&(p={connectionStrategy:p}),(0,i.createMessageConnection)(c,l,f,p)}t.createMessageConnection=a})(FD);function UD(t){return{send:e=>t.send(e),onMessage:e=>{t.onmessage=n=>e(n.data)},onError:e=>{t.onerror=n=>{Object.hasOwn(n,"message")&&e(n.message)}},onClose:e=>{t.onclose=n=>e(n.code,n.reason)},dispose:()=>t.close()}}class zD extends PD{constructor(n,r){super(n);Nt(this,"onMessage");this.onMessage=r}readMessage(n){this.onMessage&&this.onMessage();const[,r]=n.split(`\r
|
|
153
|
+
`)),D){const N=h.error?` Request failed: ${h.error.message} (${h.error.code}).`:"";we.log(`Received response '${D.method} - (${h.id})' in ${Date.now()-D.timerStart}ms.${N}`,x)}else we.log(`Received response ${h.id} without active response promise.`,x)}else Te("receive-response",h)}function Te(h,D){if(!we||oe===p.Off)return;const x={isLSPMessage:!0,type:h,message:D,timestamp:Date.now()};we.log(x)}function xe(){if(ln())throw new K(H.Closed,"Connection is closed.");if(St())throw new K(H.Disposed,"Connection is disposed.")}function ut(){if(kn())throw new K(H.AlreadyListening,"Connection is already listening")}function T(){if(!kn())throw new Error("Call listen() first.")}function U(h){return h===void 0?null:h}function Y(h){if(h!==null)return h}function w(h){return h!=null&&!Array.isArray(h)&&typeof h=="object"}function pe(h,D){switch(h){case i.ParameterStructures.auto:return w(D)?Y(D):[U(D)];case i.ParameterStructures.byName:if(!w(D))throw new Error("Received parameters by name but param is not an object literal.");return Y(D);case i.ParameterStructures.byPosition:return[U(D)];default:throw new Error(`Unknown parameter structure ${h.toString()}`)}}function me(h,D){let x;const N=h.numberOfParams;switch(N){case 0:x=void 0;break;case 1:x=pe(h.parameterStructures,D[0]);break;default:x=[];for(let le=0;le<D.length&&le<N;le++)x.push(U(D[le]));if(D.length<N)for(let le=D.length;le<N;le++)x.push(null);break}return x}const X={sendNotification:(h,...D)=>{xe();let x,N;if(n.string(h)){x=h;const ce=D[0];let fe=0,d=i.ParameterStructures.auto;i.ParameterStructures.is(ce)&&(fe=1,d=ce);let S=D.length;const M=S-fe;switch(M){case 0:N=void 0;break;case 1:N=pe(d,D[fe]);break;default:if(d===i.ParameterStructures.byName)throw new Error(`Received ${M} parameters for 'by Name' notification parameter structure.`);N=D.slice(fe,S).map(W=>U(W));break}}else{const ce=D;x=h.method,N=me(h,ce)}const le={jsonrpc:He,method:x,params:N};return $n(le),R.write(le).catch(ce=>{throw V.error("Sending notification failed."),ce})},onNotification:(h,D)=>{xe();let x;return n.func(h)?Fe=h:D&&(n.string(h)?(x=h,ot.set(h,{type:void 0,handler:D})):(x=h.method,ot.set(h.method,{type:h,handler:D}))),{dispose:()=>{x!==void 0?ot.delete(x):Fe=void 0}}},onProgress:(h,D,x)=>{if(Je.has(D))throw new Error(`Progress handler for token ${D} already registered`);return Je.set(D,x),{dispose:()=>{Je.delete(D)}}},sendProgress:(h,D,x)=>X.sendNotification(l.type,{token:D,value:x}),onUnhandledProgress:Rt.event,sendRequest:(h,...D)=>{xe(),T();let x,N,le;if(n.string(h)){x=h;const S=D[0],M=D[D.length-1];let W=0,de=i.ParameterStructures.auto;i.ParameterStructures.is(S)&&(W=1,de=S);let be=D.length;o.CancellationToken.is(M)&&(be=be-1,le=M);const Ce=be-W;switch(Ce){case 0:N=void 0;break;case 1:N=pe(de,D[W]);break;default:if(de===i.ParameterStructures.byName)throw new Error(`Received ${Ce} parameters for 'by Name' request parameter structure.`);N=D.slice(W,be).map(En=>U(En));break}}else{const S=D;x=h.method,N=me(h,S);const M=h.numberOfParams;le=o.CancellationToken.is(S[M])?S[M]:void 0}const ce=Ae++;let fe;le&&(fe=le.onCancellationRequested(()=>{const S=qe.sender.sendCancellation(X,ce);return S===void 0?(V.log(`Received no promise from cancellation strategy when cancelling id ${ce}`),Promise.resolve()):S.catch(()=>{V.log(`Sending cancellation messages for id ${ce} failed`)})}));const d={jsonrpc:He,id:ce,method:x,params:N};return In(d),typeof qe.sender.enableCancellation=="function"&&qe.sender.enableCancellation(d),new Promise(async(S,M)=>{const W=Ce=>{S(Ce),qe.sender.cleanup(ce),fe==null||fe.dispose()},de=Ce=>{M(Ce),qe.sender.cleanup(ce),fe==null||fe.dispose()},be={method:x,timerStart:Date.now(),resolve:W,reject:de};try{Ye.set(ce,be),await R.write(d)}catch(Ce){throw Ye.delete(ce),be.reject(new i.ResponseError(i.ErrorCodes.MessageWriteError,Ce.message?Ce.message:"Unknown reason")),V.error("Sending request failed."),Ce}})},onRequest:(h,D)=>{xe();let x=null;return g.is(h)?(x=void 0,Ee=h):n.string(h)?(x=null,D!==void 0&&(x=h,st.set(h,{handler:D,type:void 0}))):D!==void 0&&(x=h.method,st.set(h.method,{type:h,handler:D})),{dispose:()=>{x!==null&&(x!==void 0?st.delete(x):Ee=void 0)}}},hasPendingResponse:()=>Ye.size>0,trace:async(h,D,x)=>{let N=!1,le=C.Text;x!==void 0&&(n.boolean(x)?N=x:(N=x.sendNotification||!1,le=x.traceFormat||C.Text)),oe=h,pt=le,oe===p.Off?we=void 0:we=D,N&&!ln()&&!St()&&await X.sendNotification(k.type,{value:p.toString(h)})},onError:en.event,onClose:tn.event,onUnhandledNotification:Wt.event,onDispose:xt.event,end:()=>{R.end()},dispose:()=>{if(St())return;Qe=$.Disposed,xt.fire(void 0);const h=new i.ResponseError(i.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const D of Ye.values())D.reject(h);Ye=new Map,at=new Map,vt=new Set,Xe=new r.LinkedMap,n.func(R.dispose)&&R.dispose(),n.func(v.dispose)&&v.dispose()},listen:()=>{xe(),ut(),Qe=$.Listening,v.listen(Rn)},inspect:()=>{(0,e.default)().console.log("inspect")}};return X.onNotification(A.type,h=>{if(oe===p.Off||!we)return;const D=oe===p.Verbose||oe===p.Compact;we.log(h.message,D?h.verbose:void 0)}),X.onNotification(l.type,h=>{const D=Je.get(h.token);D?D(h.value):Rt.fire(h)}),X}t.createMessageConnection=E}(Pu)),Pu}var u2;function V1(){return u2||(u2=1,function(t){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 e=Oy();Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return e.Message}}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return e.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return e.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return e.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return e.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return e.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return e.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return e.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return e.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return e.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return e.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return e.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return e.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return e.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return e.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return e.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return e.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return e.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return e.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return e.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return e.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return e.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return e.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return e.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return e.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return e.ParameterStructures}});const n=Fy();Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:function(){return n.LinkedMap}}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:function(){return n.LRUCache}}),Object.defineProperty(t,"Touch",{enumerable:!0,get:function(){return n.Touch}});const i=zD();Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return i.Disposable}});const r=Ti;Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return r.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return r.Emitter}});const s=yg();Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return s.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return s.CancellationToken}});const o=BD();Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return o.SharedArraySenderStrategy}}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return o.SharedArrayReceiverStrategy}});const a=mr;Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return a.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return a.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return a.ReadableStreamMessageReader}});const c=yr;Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return c.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return c.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return c.WriteableStreamMessageWriter}});const l=VD();Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:function(){return l.AbstractMessageBuffer}});const f=KD();Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return f.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return f.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return f.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return f.createMessageConnection}}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:function(){return f.ProgressToken}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return f.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return f.Trace}}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:function(){return f.TraceValues}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return f.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return f.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return f.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return f.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return f.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return f.CancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return f.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return f.CancellationStrategy}}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:function(){return f.MessageStrategy}});const g=Xi;t.RAL=g.default}(Eu)),Eu}Object.defineProperty(mg,"__esModule",{value:!0});const vi=V1();class Ol extends vi.AbstractMessageBuffer{constructor(e="utf-8"){super(e),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return Ol.emptyBuffer}fromString(e,n){return new TextEncoder().encode(e)}toString(e,n){return n==="ascii"?this.asciiDecoder.decode(e):new TextDecoder(n).decode(e)}asNative(e,n){return n===void 0?e:e.slice(0,n)}allocNative(e){return new Uint8Array(e)}}Ol.emptyBuffer=new Uint8Array(0);class GD{constructor(e){this.socket=e,this._onData=new vi.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(r=>{this._onData.fire(new Uint8Array(r))},()=>{(0,vi.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(e){return this.socket.addEventListener("close",e),vi.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),vi.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),vi.Disposable.create(()=>this.socket.removeEventListener("end",e))}onData(e){return this._onData.event(e)}}class JD{constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener("close",e),vi.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),vi.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),vi.Disposable.create(()=>this.socket.removeEventListener("end",e))}write(e,n){if(typeof e=="string"){if(n!==void 0&&n!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${n}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}}const XD=new TextEncoder,Ly=Object.freeze({messageBuffer:Object.freeze({create:t=>new Ol(t)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(t,e)=>{if(e.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${e.charset}`);return Promise.resolve(XD.encode(JSON.stringify(t,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(t,e)=>{if(!(t instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(e.charset).decode(t)))}})}),stream:Object.freeze({asReadableStream:t=>new GD(t),asWritableStream:t=>new JD(t)}),console,timer:Object.freeze({setTimeout(t,e,...n){const i=setTimeout(t,e,...n);return{dispose:()=>clearTimeout(i)}},setImmediate(t,...e){const n=setTimeout(t,0,...e);return{dispose:()=>clearTimeout(n)}},setInterval(t,e,...n){const i=setInterval(t,e,...n);return{dispose:()=>clearInterval(i)}}})});function K1(){return Ly}(function(t){function e(){vi.RAL.install(Ly)}t.install=e})(K1||(K1={}));mg.default=K1;(function(t){var e=_t&&_t.__createBinding||(Object.create?function(c,l,f,g){g===void 0&&(g=f);var p=Object.getOwnPropertyDescriptor(l,f);(!p||("get"in p?!l.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return l[f]}}),Object.defineProperty(c,g,p)}:function(c,l,f,g){g===void 0&&(g=f),c[g]=l[f]}),n=_t&&_t.__exportStar||function(c,l){for(var f in c)f!=="default"&&!Object.prototype.hasOwnProperty.call(l,f)&&e(l,c,f)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.BrowserMessageWriter=t.BrowserMessageReader=void 0,mg.default.install();const r=V1();n(V1(),t);class s extends r.AbstractMessageReader{constructor(l){super(),this._onData=new r.Emitter,this._messageListener=f=>{this._onData.fire(f.data)},l.addEventListener("error",f=>this.fireError(f)),l.onmessage=this._messageListener}listen(l){return this._onData.event(l)}}t.BrowserMessageReader=s;class o extends r.AbstractMessageWriter{constructor(l){super(),this.port=l,this.errorCount=0,l.addEventListener("error",f=>this.fireError(f))}write(l){try{return this.port.postMessage(l),Promise.resolve()}catch(f){return this.handleError(f,l),Promise.reject(f)}}handleError(l,f){this.errorCount++,this.fireError(l,f,this.errorCount)}end(){}}t.BrowserMessageWriter=o;function a(c,l,f,g){return f===void 0&&(f=r.NullLogger),r.ConnectionStrategy.is(g)&&(g={connectionStrategy:g}),(0,r.createMessageConnection)(c,l,f,g)}t.createMessageConnection=a})(UD);function ZD(t){return{send:e=>t.send(e),onMessage:e=>{t.onmessage=n=>e(n.data)},onError:e=>{t.onerror=n=>{Object.hasOwn(n,"message")&&e(n.message)}},onClose:e=>{t.onclose=n=>e(n.code,n.reason)},dispose:()=>t.close()}}class YD extends $D{constructor(n,i){super(n);Nt(this,"onMessage");this.onMessage=i}readMessage(n){this.onMessage&&this.onMessage();const[,i]=n.split(`\r
|
|
138
154
|
\r
|
|
139
|
-
`);if(this.state==="initial")this.events.splice(0,0,{message:
|
|
140
|
-
`),insertTextRules:
|
|
141
|
-
`),insertTextRules:
|
|
142
|
-
`),insertTextRules:
|
|
143
|
-
`),insertTextRules:
|
|
144
|
-
`),insertTextRules:
|
|
145
|
-
`),insertTextRules:
|
|
146
|
-
`),insertTextRules:
|
|
147
|
-
`),insertTextRules:
|
|
148
|
-
`),insertTextRules:
|
|
149
|
-
`),insertTextRules:
|
|
150
|
-
`),insertTextRules:
|
|
151
|
-
`),insertTextRules:
|
|
152
|
-
`),insertTextRules:
|
|
153
|
-
`),insertTextRules:
|
|
154
|
-
`),insertTextRules:
|
|
155
|
+
`);if(this.state==="initial")this.events.splice(0,0,{message:i});else if(this.state==="listening"){const r=JSON.parse(i);this.callback(r)}}}class QD extends WD{constructor(n,i){super(n);Nt(this,"onSend");this.onSend=i}async write(n){try{const i=JSON.stringify(n);this.socket.send(i),this.onSend&&this.onSend()}catch(i){this.errorCount++,this.fireError(i,n,this.errorCount)}}}function Gn(t){return`file:///PACKAGE/Project/Sources/${t}`}function bg(t,e=0){setTimeout(t,e)}function Ny(t,e){const n=new sn.Selection(e.startLineNumber,e.startColumn,e.endLineNumber||e.startLineNumber,e.endColumn||e.startColumn);bg(()=>{t.setSelection(n),t.revealRangeInCenter(n),t.focus()})}function $y(t,e,n=0){n>0&&(e=n+e),bg(()=>{t.setPosition({lineNumber:e,column:1}),t.revealLineInCenter(e),t.focus()})}function eT(t,e,n){const r=t.getModel();if(r&&e){const s=r.getLineCount();for(let o=1;o<=s;o++){const a=r.getLineContent(o);if(new RegExp(`(?:Function|function) ${n}`).test(a))return o}}return 0}const tT={provideCompletionItems:async(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"var",kind:_e.languages.CompletionItemKind.Snippet,range:new _e.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["var ${1:var_name} : ${2:var_type}"].join(`
|
|
156
|
+
`),insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"While",kind:_e.languages.CompletionItemKind.Snippet,range:new _e.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["While(${1:expression})"," ${2:body}","End while"].join(`
|
|
157
|
+
`),insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Case of",kind:_e.languages.CompletionItemKind.Snippet,range:new _e.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["Case of"," :(${1:boolean_expression})"," ${2:body}","End case"].join(`
|
|
158
|
+
`),insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Else",kind:_e.languages.CompletionItemKind.Snippet,range:new _e.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["Else"," "].join(`
|
|
159
|
+
`),insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"If",kind:_e.languages.CompletionItemKind.Snippet,range:new _e.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["If (${1:expression})"," ${5:body}","End if"].join(`
|
|
160
|
+
`),insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"For",kind:_e.languages.CompletionItemKind.Snippet,range:new _e.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["For(${1:counter};${2:start};${3:end}${4:;increment})"," ${5:body}","End for"].join(`
|
|
161
|
+
`),insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Function",kind:_e.languages.CompletionItemKind.Snippet,range:new _e.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["Function ${1:function_name}(${2:params}) -> ${3:var_name} : ${4:var_type}"," ${5:body}"].join(`
|
|
162
|
+
`),insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},nT={provideCompletionItems:async(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"var",kind:_e.languages.CompletionItemKind.Snippet,range:new _e.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["var ${1:var_name} : ${2:var_type}"].join(`
|
|
163
|
+
`),insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"while",kind:_e.languages.CompletionItemKind.Snippet,range:new _e.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["while(${1:expression})"," ${2:body}","end"].join(`
|
|
164
|
+
`),insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"switch",kind:_e.languages.CompletionItemKind.Snippet,range:new _e.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["switch"," :(${1:boolean_expression})"," ${2:body}","end"].join(`
|
|
165
|
+
`),insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"else",kind:_e.languages.CompletionItemKind.Snippet,range:new _e.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["else"," "].join(`
|
|
166
|
+
`),insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"if",kind:_e.languages.CompletionItemKind.Snippet,range:new _e.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["if (${1:expression})"," ${5:body}","end"].join(`
|
|
167
|
+
`),insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"for",kind:_e.languages.CompletionItemKind.Snippet,range:new _e.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["for(${1:counter},${2:start},${3:end}${4:,increment})"," ${5:body}","end"].join(`
|
|
168
|
+
`),insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"function",kind:_e.languages.CompletionItemKind.Snippet,range:new _e.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["function ${1:function_name}(${2:params}) -> ${3:var_name} : ${4:var_type}"," ${5:body}"].join(`
|
|
169
|
+
`),insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},iT=[{keybinding:sn.KeyMod.CtrlCmd|sn.KeyCode.NumpadAdd,command:"editor.action.fontZoomIn"},{keybinding:sn.KeyMod.CtrlCmd|sn.KeyCode.Equal,command:"editor.action.fontZoomIn"},{keybinding:sn.KeyMod.CtrlCmd|sn.KeyCode.NumpadSubtract,command:"editor.action.fontZoomOut"},{keybinding:sn.KeyMod.CtrlCmd|sn.KeyCode.Minus,command:"editor.action.fontZoomOut"},{keybinding:sn.KeyMod.CtrlCmd|sn.KeyCode.Numpad0,command:"editor.action.fontZoomReset"},{keybinding:sn.KeyMod.CtrlCmd|sn.KeyCode.Digit0,command:"editor.action.fontZoomReset"}],rT=({defaultZoom:t})=>(ht.useEffect(()=>{t!==void 0&&sn.editor.EditorZoom.setZoomLevel(t)},[]),null);({}).VITE_DISABLE_MONACO_LOADER||G1.loader.config({monaco:_e});const qy=ht.createContext(void 0),sT=({children:t,url:e,qodly:n,defaultZoom:i,openHandler:r,language:s="4d",defaultInited:o=!1})=>{const a=G1.useMonaco(),[c,l]=ht.useState(o),[f,g]=ht.useState(null),p=ht.useRef(),_=ht.useRef(0);ht.useEffect(()=>{e&&a&&C()},[e,a]);const C=async()=>{if(!a)return;const $=new Qy.Logger({enabled:process.env.NODE_ENV==="development",debugEnabled:process.env.NODE_ENV==="development"}),E=await ab({logger:$});await b2.initServices({caller:"Qodly Code Editor",logger:$,serviceConfig:E}),r&&Dg.StandaloneServices.get(Dg.ICodeEditorService).registerCodeEditorOpenHandler(r),a.languages.registerCompletionItemProvider(s,n?nT:tT),sn.editor.addKeybindingRules(iT),k()},k=()=>{g(null);let $;try{$=new WebSocket(localStorage.LSP_SERVER||e)}catch{g(new Event("INVALID_URL"));return}$.onopen=A,$.onclose=H,$.onerror=K,_.current=0},A=async function(){const $=ZD(this),E=new YD($),v=new QD($),R=new rb({name:"4D Language Client",clientOptions:{workspaceFolder:{uri:sn.Uri.parse("file:///PACKAGE")},documentSelector:[{scheme:"file",language:s}],errorHandler:{error:()=>({action:Mu.ErrorAction.Continue}),closed:()=>({action:Mu.CloseAction.DoNotRestart})}},connectionProvider:{get:()=>Promise.resolve({reader:E,writer:v})}});p.current=R;const P=R.sendRequest.bind(R);p.current.sendRequest=function(I,V,Ae){return typeof I=="object"&&I.method==="textDocument/diagnostic"&&/file:\/\/\/PACKAGE\/Project\/Sources\/Methods\/__Debugger_.*/.test(V.textDocument.uri)?Promise.resolve():P(I,V,Ae)},E.onClose(()=>{R.stop(),_.current<3?setTimeout(()=>{_.current++,k()},1e3):g(new Event("WEBSOCKET_CLOSED"))}),R.needsStart()&&await R.start(),l(!0)},H=()=>{},K=$=>{g($)};ht.useEffect(()=>{const $=Jn.lspSubject.subscribe(({action:E,payload:v})=>{switch(E){case Jn.LspActions.WILL_SAVE:j(v.filePath);break;case Jn.LspActions.DID_SAVE:B(v.filePath,v.content);break;case Jn.LspActions.WILL_CREATE:z(v.filePath);break;case Jn.LspActions.DID_CREATE:Z(v.filePath);break;case Jn.LspActions.WILL_RENAME:ne(v.oldPath,v.newPath);break;case Jn.LspActions.DID_RENAME:ie(v.oldPath,v.newPath);break;case Jn.LspActions.WILL_DELETE:G(v.filePath);break;case Jn.LspActions.DID_DELETE:Le(v.filePath);break}});return()=>$.unsubscribe()},[]);const j=($,E=ye.TextDocumentSaveReason.Manual)=>{var v;(v=p.current)==null||v.sendNotification(ye.WillSaveTextDocumentNotification.type,{textDocument:{uri:Gn($)},reason:E})},B=($,E)=>{var v;(v=p.current)==null||v.sendNotification(ye.DidSaveTextDocumentNotification.type,{textDocument:{uri:Gn($)},text:E})},z=$=>{var E;(E=p.current)==null||E.sendRequest(ye.WillCreateFilesRequest.type,{files:[{uri:Gn($)}]})},ne=($,E)=>{var v;(v=p.current)==null||v.sendRequest(ye.WillRenameFilesRequest.type,{files:[{oldUri:Gn($),newUri:Gn(E)}]})},G=$=>{var E;(E=p.current)==null||E.sendRequest(ye.WillDeleteFilesRequest.type,{files:[{uri:Gn($)}]})},Z=$=>{var E;(E=p.current)==null||E.sendNotification(ye.DidCreateFilesNotification.type,{files:[{uri:Gn($)}]})},ie=($,E)=>{var v;(v=p.current)==null||v.sendNotification(ye.DidRenameFilesNotification.type,{files:[{oldUri:Gn($),newUri:Gn(E)}]})},Le=$=>{var E;(E=p.current)==null||E.sendNotification(ye.DidDeleteFilesNotification.type,{files:[{uri:Gn($)}]})};return wt.jsxs(qy.Provider,{value:{inited:c||!!f,clientRef:p,lastError:f,reload:k},children:[t,wt.jsx(rT,{defaultZoom:i})]})};function oT(){const t=ht.useContext(qy);if(t===void 0)throw new Error("useLSP must be used within an LSPContext");return t}const jy=ht.createContext(void 0),aT=ht.memo(({children:t})=>{const[e,n]=ht.useState(null);return wt.jsx(jy.Provider,{value:{editor:e,setEditor:n},children:t})});function Hy(){const t=ht.useContext(jy),e=ht.useState(null);if(t===void 0){const[n,i]=e;return{editor:n,setEditor:i}}return t}var Wy={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},d2=ht.createContext&&ht.createContext(Wy),br=globalThis&&globalThis.__assign||function(){return br=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},br.apply(this,arguments)},cT=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n};function Uy(t){return t&&t.map(function(e,n){return ht.createElement(e.tag,br({key:n},e.attr),Uy(e.child))})}function zy(t){return function(e){return ht.createElement(lT,br({attr:br({},t.attr)},e),Uy(t.child))}}function lT(t){var e=function(n){var i=t.attr,r=t.size,s=t.title,o=cT(t,["attr","size","title"]),a=r||n.size||"1em",c;return n.className&&(c=n.className),t.className&&(c=(c?c+" ":"")+t.className),ht.createElement("svg",br({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,o,{className:c,style:br(br({color:t.color||n.color},n.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),s&&ht.createElement("title",null,s),t.children)};return d2!==void 0?ht.createElement(d2.Consumer,null,function(n){return e(n)}):e(Wy)}function uT(t){return zy({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 10.5858L9.17157 7.75736L7.75736 9.17157L10.5858 12L7.75736 14.8284L9.17157 16.2426L12 13.4142L14.8284 16.2426L16.2426 14.8284L13.4142 12L16.2426 9.17157L14.8284 7.75736L12 10.5858Z"}}]})(t)}function dT(t){return zy({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M449.07 399.08L278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0080 446.25h340.89a32 32 0 0028.18-47.17zm-198.6-1.83a20 20 0 1120-20 20 20 0 01-20 20zm21.72-201.15l-5.74 122a16 16 0 01-32 0l-5.74-121.95a21.73 21.73 0 0121.5-22.69h.21a21.74 21.74 0 0121.73 22.7z"}}]})(t)}const By=({lspProps:{lastError:t,reload:e}})=>{const[n,i]=ht.useState(!1),r=()=>{e()},s=()=>{i(!1)};return ht.useEffect(()=>{i(!!t)},[t]),n?wt.jsxs("div",{className:"flex items-center border-b border-fd-gray-darker bg-grey-800 px-2 py-1.5 text-xs text-grey-50",children:[wt.jsxs("span",{className:"flex flex-1 justify-center gap-1",children:[wt.jsx(dT,{className:"h-4 w-4 text-yellow-600"}),wt.jsxs("span",{children:["LSP not loaded."," ",wt.jsx("button",{className:"text-primary-dark underline",onClick:r,children:"Reload?"})]})]}),wt.jsx("button",{className:"focus:outline-none",children:wt.jsx(uT,{className:"h-4 w-4 text-white",onClick:s})})]}):null},fT={provideCompletionItems:(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"device:xs",kind:_e.languages.CompletionItemKind.Snippet,documentation:"Media query for phone device",range:new _e.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["@media screen and (max-width: ${1:365px}) {"," self {"," ${2:background-color}:${3:red};"," }","}"].join(`
|
|
170
|
+
`),insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},hT="#/definitions/Condition",gT={Base:{type:"object",properties:{id:{type:"string"},name:{type:"string"}},required:["id"]},Condition:{oneOf:[{$ref:"#/definitions/Datasource"},{$ref:"#/definitions/Privilege"},{$ref:"#/definitions/Combination"},{$ref:"#/definitions/CurrentState"},{$ref:"#/definitions/ParentState"},{$ref:"#/definitions/Reference"}]},Datasource:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"datasource"},path:{type:"string"},value:{type:["number","string","boolean","object","array","null"]},valueType:{enum:["datasource","hardCoded"]},dataType:{enum:["string","number","date","boolean","array","object"]},op:{enum:["eq","neq","regex","in","nin","gt","gte","lt","lte"]}},required:["name","type","path","value","op"]},Privilege:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"privilege"},value:{type:"string"},valueType:{enum:["datasource","hardCoded"]},op:{enum:["eq","neq","regex"]}},required:["name","type","value","op"]},Combination:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"combination"},op:{enum:["and","or"]},conditions:{type:"array",items:{$ref:"#/definitions/Condition"}}},required:["type","conditions","op"]},CurrentState:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"currentState"},value:{type:"string"},valueType:{enum:["datasource","hardCoded"]},dataType:{enum:["string","number","date","boolean","array","object"]},op:{enum:["eq","neq","regex"]}},required:["name","type","value","op"]},ParentState:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"parentState"},value:{type:"string"},valueType:{enum:["datasource","hardCoded"]},dataType:{enum:["string","number","date","boolean","array","object"]},op:{enum:["eq","neq","regex"]}},required:["name","type","value","op"]},Reference:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"reference"},ref:{type:"string"}},required:["type","ref"]}},pT={$ref:hT,definitions:gT};function mT(t,e){const n=document.createElement("style");n.dataset.id=e,n.textContent=t,document.head.append(n)}function yT(t){return Array.from(document.styleSheets).find(e=>e.ownerNode.getAttribute("data-id")===t)}function bT(t,e){const n=[];let i=[];const r=[],s=(B,z,ne,G)=>{n.push({startLineNumber:B,endLineNumber:ne,startColumn:z,endColumn:G}),l(),c()},o=B=>{r.indexOf(B)<0&&r.push(B)},a=B=>{const z=r.indexOf(B);z<0||r.splice(z,1)},c=()=>{for(const B of r)try{B(i)}catch(z){console.error(z)}},l=()=>{const B=t.getModel();B&&(i=wT(n.map(z=>[B.getOffsetAt({lineNumber:z.startLineNumber,column:z.startColumn}),B.getOffsetAt({lineNumber:z.endLineNumber,column:z.endColumn})]),!0),i.length>0&&(i[0][0]<=0&&(i[0][0]=Number.NEGATIVE_INFINITY),i[i.length-1][1]>=B.getValueLength()&&(i[i.length-1][1]=Number.POSITIVE_INFINITY)))},f=B=>{const z={isDeletion:!1,isAddition:!1,isReplacement:!1};return B.text===""?z.isDeletion=!0:B.range.startLineNumber===B.range.endLineNumber&&B.range.startColumn===B.range.endColumn?z.isAddition=!0:z.isReplacement=!0,z},g=t.onDidChangeModel(B=>{l(),K()}),p=t.onDidChangeModelContent(B=>{if(!B.isUndoing)for(const z of B.changes){const ne=f(z);if(ne.isReplacement||ne.isDeletion||ne.isAddition){const G=n.some(ie=>z.range.startLineNumber>=ie.startLineNumber&&z.range.endLineNumber<=ie.endLineNumber&&z.range.startColumn>=ie.startColumn&&z.range.endColumn<=ie.endColumn),Z=!G&&e&&z.range.startLineNumber===1&&z.range.startColumn===1&&!Jn.hasAttributesString(z.text);if(G||Z){const ie=t.getModel();if(ie){ie.undo();return}}}}}),_=()=>{g.dispose(),p.dispose()};let C=[],k=`
|
|
155
171
|
.idoc-readonly-mark {
|
|
156
172
|
cursor: not-allowed;
|
|
157
173
|
z-index: 1;
|
|
158
174
|
}
|
|
159
|
-
`;if(k){const B="monaco-read-only";dT(B)||uT(k,B),k=null}const M=()=>{o(K),K()},H=()=>{a(K),C=t.deltaDecorations(C,[])},K=()=>{const B=t.getModel();B&&(C=t.deltaDecorations(C,r.map(j(B))))},j=B=>z=>{const ne=B.getPositionAt(z[0]),G=B.getPositionAt(z[1]);return{range:new ve.Range(ne.lineNumber,ne.column,G.lineNumber,G.column),options:{className:"idoc-readonly-mark"}}};return{get buffer(){return r},exclude:s,attach:o,detach:a,dispose:_,show:M,hide:H}}function hT(t,e,n){let r=!1;const i=H=>H[1]<H[0]?(r=!0,[[H[1],H[0]]]):[[...H]],s=H=>r?H.map(K=>K[1]>K[0]?a(K):K).reverse():H;let o;const a=H=>(o=H[1],H[1]=H[0],H[0]=o,H),c=i(t);let l,f,p,g,_,C,k,M;p=c[0];for(f of e)for(k=f[0],M=f[1],g=0;g<c.length;g++){if(p=c[g],_=p[0],C=p[1],_<k)C<k?l=[p]:C<=M?l=[[_,k-1]]:l=[[_,k-1],[M+1,C]];else if(_<=M)if(k===Number.NEGATIVE_INFINITY){const H=M+1;l=n===0?[]:[[H,C>H?C:H]]}else M===Number.POSITIVE_INFINITY?l=n===0?[]:[[k-1,k-1]]:C<=M?l=n<0?[[k-1,k-1]]:n>0?[[M+1,M+1]]:[]:l=[[M+1,C]];else l=[p];if(c.splice(g,1,...l),c.length===1&&c[0][1]<k)return s(c)}return s(c)}function pT(t,e){if(t.length<2)return t;const n=[];let r=null,i,s;t=t.map(o=>(o[1]<o[0]&&(i=o[1],o[1]=o[0],o[1]=i),o)).sort((o,a)=>o[0]-a[0]),n.push(t[0]);for(let o=1;o<t.length;o++)r=n[n.length-1],s=t[o],r[1]===s[0]&&!e?n.push(s):r[1]===s[0]-1&&e?(r[1]=s[1],n.splice(n.length-1,1,r)):r[1]<s[0]?n.push(s):r[1]<s[1]&&(r[1]=s[1],n.splice(n.length-1,1,r));return n}function ho(t,e){return e.bind(t)}class gT{constructor(e,n){Nt(this,"editor");Nt(this,"intervals");Nt(this,"disposables",[]);Nt(this,"prefer",1);Nt(this,"lastPrefer",1);Nt(this,"onCursor",ho(this,function(e){if(e.source==="api")return;const n=this.getApprovedSelections();n.length!==0&&this.editor.setSelections(n)}));Nt(this,"onRectangleSelectionStart",ho(this,function({event:e}){e.middleButton&&(this.lastPrefer=this.prefer,this.prefer=0,window.addEventListener("pointerup",this.onRectangleSelectionStop))}));Nt(this,"onRectangleSelectionStop",ho(this,function(){this.prefer=this.lastPrefer,window.removeEventListener("pointerup",this.onRectangleSelectionStop)}));Nt(this,"onKey",ho(this,function(e){const n=e.keyCode,r=ve.KeyCode;if(e.altKey||r.F1<=n&&n<=r.F19||e.ctrlKey&&n!==r.Backspace)return;if(n===r.UpArrow||n===r.LeftArrow||n===r.Home||n===r.PageUp){this.prefer=-1;return}if(n===r.DownArrow||n===r.RightArrow||n===r.End||n===r.PageDown){this.prefer=1;return}const i=this.getSelections(),s=this.intervals.buffer;let o;if(n===r.Delete)o=a=>a[0]===a[1]&&s.find(c=>a[1]+1===c[0])!=null;else if(n===r.Backspace)o=a=>a[0]===a[1]&&s.find(c=>c[1]+1===a[0])!=null;else return;i.findIndex(o)!==-1&&(e.stopPropagation(),e.preventDefault())}));Nt(this,"getOffsetAt",ho(this,function(e){let n;for(let r=0;r<this.intervals.buffer.length;r++)if(n=this.intervals.buffer[r],e<=n[1])return n[0]-e<e-n[1]?n[0]:n[1]}));var r;this.editor=e,this.intervals=fT(e,n),(r=this.editor.getModel())==null||r.setEOL(ve.editor.EndOfLineSequence.LF)}enable(){this.disposables.push(this.editor.onDidChangeCursorPosition(this.onCursor),this.editor.onKeyDown(this.onKey),this.editor.onMouseDown(this.onRectangleSelectionStart)),this.intervals.show()}dispose(){for(const e of this.disposables)e.dispose();this.disposables.splice(0)}exclude(e,n,r,i){arguments.length===1?this.intervals.exclude(e,0,e,Number.MAX_SAFE_INTEGER):this.intervals.exclude(e,n,r,i)}getApprovedSelections(){const e=this.editor.getModel();return this.getSelections().map(r=>hT(r,this.intervals.buffer,this.prefer)).flat().map(r=>{const i=e.getPositionAt(r[0]),s=e.getPositionAt(r[1]);return new ve.Selection(i.lineNumber,i.column,s.lineNumber,s.column)})}getSelections(){const e=this.editor.getModel();return(this.editor.getSelections()||[]).map(n=>[e.getOffsetAt({lineNumber:n.selectionStartLineNumber,column:n.selectionStartColumn}),e.getOffsetAt({lineNumber:n.positionLineNumber,column:n.positionColumn})])}}const mT=new RegExp("^[ s]+(exposed|Function)","i"),u2=()=>wt.jsx("div",{className:"absolute inset-0 animate-pulse",children:wt.jsx("div",{className:"w-full space-y-4 px-4 py-1",children:wt.jsxs("div",{className:"space-y-2",children:[wt.jsx("div",{className:"h-3 w-3/4 rounded bg-grey-200"}),wt.jsx("div",{className:"h-3 rounded bg-grey-200"}),wt.jsx("div",{className:"h-3 w-5/6 rounded bg-grey-200"}),wt.jsx("div",{className:"h-3 rounded bg-grey-200"}),wt.jsx("div",{className:"h-3 rounded bg-grey-200"})]})})}),yT=({path:t,initialValue:e,theme:n="fd-dark",type:r,language:i,onChange:s,options:o={},extra:a={},showAlerts:c=!1,lspProps:l,...f})=>{const{initialLineInfo:p,initialSelectionInfo:g}=a,{editor:_,setEditor:C}=qy(),{inited:k}=l;function M(K){i==="css"&&K.languages.registerCompletionItemProvider("css",oT),i==="json"&&K.languages.json&&K.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,schemas:[{uri:"condition-schema.json",fileMatch:["*.condition.json"],schema:lT}]})}function H(K,j){C(K);const B=K.getModel();if(B&&(B.updateOptions({insertSpaces:!1}),K.onKeyUp(()=>{var ne;const z=(ne=K.getPosition())==null?void 0:ne.lineNumber;if(z){const G=B.getLineFirstNonWhitespaceColumn(z),Y=B.getLineLength(z),re=B.getLineContent(z);mT.test(re)&&K.executeEdits("edit-handler",[{range:new j.Range(z,0,z,Y),text:re.substr(G-1,Y-G)}])}})),r===jn.FileFolderType.METHOD&&jn.hasAttributesString(e)){const z=new gT(K,!0);z.exclude(1,1,1,Number.POSITIVE_INFINITY),z.enable()}}return ht.useEffect(()=>{if(!_)return;const{line:K,offset:j}=p||{};K&&Ly(_,K,j)},[p,_]),ht.useEffect(()=>{if(!_)return;const{selection:K}=g||{};K&&Fy(_,K)},[g,_]),k?wt.jsxs(wt.Fragment,{children:[c?wt.jsx(Uy,{lspProps:l}):null,wt.jsx(K1.Editor,{options:{readOnly:!0,fontSize:12,"semanticHighlighting.enabled":!0,padding:{top:10},...o},path:Qn(t),value:e,theme:"fd-dark",onChange:K=>s&&s(K||""),language:i,beforeMount:M,onMount:H,loading:wt.jsx(u2,{}),...f})]}):wt.jsx(u2,{})},bT={html:["html"],css:["css","less","scss"],json:["json"],javascript:["typescript"],typescript:["typescript"]};for(const[t,e]of Object.entries(bT))ve.languages.register({id:t,aliases:e});exports.Alerts=Uy;exports.CodeEditor=yT;exports.CodeEditorProvider=tT;exports.LSPProvider=ZD;exports._await=yp;exports.getFileSystemPath=Qn;exports.getFunctionOffset=KD;exports.jumpToLine=Ly;exports.jumpToSelection=Fy;exports.useCodeEditor=qy;exports.useLSP=eT;
|
|
175
|
+
`;if(k){const B="monaco-read-only";yT(B)||mT(k,B),k=null}const A=()=>{o(K),K()},H=()=>{a(K),C=t.deltaDecorations(C,[])},K=()=>{const B=t.getModel();B&&(C=t.deltaDecorations(C,i.map(j(B))))},j=B=>z=>{const ne=B.getPositionAt(z[0]),G=B.getPositionAt(z[1]);return{range:new _e.Range(ne.lineNumber,ne.column,G.lineNumber,G.column),options:{className:"idoc-readonly-mark"}}};return{get buffer(){return i},exclude:s,attach:o,detach:a,dispose:_,show:A,hide:H}}function vT(t,e,n){let i=!1;const r=H=>H[1]<H[0]?(i=!0,[[H[1],H[0]]]):[[...H]],s=H=>i?H.map(K=>K[1]>K[0]?a(K):K).reverse():H;let o;const a=H=>(o=H[1],H[1]=H[0],H[0]=o,H),c=r(t);let l,f,g,p,_,C,k,A;g=c[0];for(f of e)for(k=f[0],A=f[1],p=0;p<c.length;p++){if(g=c[p],_=g[0],C=g[1],_<k)C<k?l=[g]:C<=A?l=[[_,k-1]]:l=[[_,k-1],[A+1,C]];else if(_<=A)if(k===Number.NEGATIVE_INFINITY){const H=A+1;l=n===0?[]:[[H,C>H?C:H]]}else A===Number.POSITIVE_INFINITY?l=n===0?[]:[[k-1,k-1]]:C<=A?l=n<0?[[k-1,k-1]]:n>0?[[A+1,A+1]]:[]:l=[[A+1,C]];else l=[g];if(c.splice(p,1,...l),c.length===1&&c[0][1]<k)return s(c)}return s(c)}function wT(t,e){if(t.length<2)return t;const n=[];let i=null,r,s;t=t.map(o=>(o[1]<o[0]&&(r=o[1],o[1]=o[0],o[1]=r),o)).sort((o,a)=>o[0]-a[0]),n.push(t[0]);for(let o=1;o<t.length;o++)i=n[n.length-1],s=t[o],i[1]===s[0]&&!e?n.push(s):i[1]===s[0]-1&&e?(i[1]=s[1],n.splice(n.length-1,1,i)):i[1]<s[0]?n.push(s):i[1]<s[1]&&(i[1]=s[1],n.splice(n.length-1,1,i));return n}function ho(t,e){return e.bind(t)}class CT{constructor(e,n){Nt(this,"editor");Nt(this,"intervals");Nt(this,"disposables",[]);Nt(this,"prefer",1);Nt(this,"lastPrefer",1);Nt(this,"onCursor",ho(this,function(e){if(e.source==="api")return;const n=this.getApprovedSelections();n.length!==0&&this.editor.setSelections(n)}));Nt(this,"onRectangleSelectionStart",ho(this,function({event:e}){e.middleButton&&(this.lastPrefer=this.prefer,this.prefer=0,window.addEventListener("pointerup",this.onRectangleSelectionStop))}));Nt(this,"onRectangleSelectionStop",ho(this,function(){this.prefer=this.lastPrefer,window.removeEventListener("pointerup",this.onRectangleSelectionStop)}));Nt(this,"onKey",ho(this,function(e){const n=e.keyCode,i=_e.KeyCode;if(e.altKey||i.F1<=n&&n<=i.F19||e.ctrlKey&&n!==i.Backspace)return;if(n===i.UpArrow||n===i.LeftArrow||n===i.Home||n===i.PageUp){this.prefer=-1;return}if(n===i.DownArrow||n===i.RightArrow||n===i.End||n===i.PageDown){this.prefer=1;return}const r=this.getSelections(),s=this.intervals.buffer;let o;if(n===i.Delete)o=a=>a[0]===a[1]&&s.find(c=>a[1]+1===c[0])!=null;else if(n===i.Backspace)o=a=>a[0]===a[1]&&s.find(c=>c[1]+1===a[0])!=null;else return;r.findIndex(o)!==-1&&(e.stopPropagation(),e.preventDefault())}));Nt(this,"getOffsetAt",ho(this,function(e){let n;for(let i=0;i<this.intervals.buffer.length;i++)if(n=this.intervals.buffer[i],e<=n[1])return n[0]-e<e-n[1]?n[0]:n[1]}));var i;this.editor=e,this.intervals=bT(e,n),(i=this.editor.getModel())==null||i.setEOL(_e.editor.EndOfLineSequence.LF)}enable(){this.disposables.push(this.editor.onDidChangeCursorPosition(this.onCursor),this.editor.onKeyDown(this.onKey),this.editor.onMouseDown(this.onRectangleSelectionStart)),this.intervals.show()}dispose(){for(const e of this.disposables)e.dispose();this.disposables.splice(0)}exclude(e,n,i,r){arguments.length===1?this.intervals.exclude(e,0,e,Number.MAX_SAFE_INTEGER):this.intervals.exclude(e,n,i,r)}getApprovedSelections(){const e=this.editor.getModel();return this.getSelections().map(i=>vT(i,this.intervals.buffer,this.prefer)).flat().map(i=>{const r=e.getPositionAt(i[0]),s=e.getPositionAt(i[1]);return new _e.Selection(r.lineNumber,r.column,s.lineNumber,s.column)})}getSelections(){const e=this.editor.getModel();return(this.editor.getSelections()||[]).map(n=>[e.getOffsetAt({lineNumber:n.selectionStartLineNumber,column:n.selectionStartColumn}),e.getOffsetAt({lineNumber:n.positionLineNumber,column:n.positionColumn})])}}const _T=new RegExp("^[ s]+(exposed|Function)","i"),f2=()=>wt.jsx("div",{className:"absolute inset-0 animate-pulse",children:wt.jsx("div",{className:"w-full space-y-4 px-4 py-1",children:wt.jsxs("div",{className:"space-y-2",children:[wt.jsx("div",{className:"h-3 w-3/4 rounded bg-grey-200"}),wt.jsx("div",{className:"h-3 rounded bg-grey-200"}),wt.jsx("div",{className:"h-3 w-5/6 rounded bg-grey-200"}),wt.jsx("div",{className:"h-3 rounded bg-grey-200"}),wt.jsx("div",{className:"h-3 rounded bg-grey-200"})]})})}),ST=({path:t,initialValue:e,theme:n="fd-dark",type:i,language:r,onChange:s,options:o={},extra:a={},showAlerts:c=!1,lspProps:l,...f})=>{const{initialLineInfo:g,initialSelectionInfo:p}=a,{editor:_,setEditor:C}=Hy(),{inited:k}=l;function A(K){r==="css"&&K.languages.registerCompletionItemProvider("css",fT),r==="json"&&K.languages.json&&K.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,schemas:[{uri:"condition-schema.json",fileMatch:["*.condition.json"],schema:pT}]})}function H(K,j){C(K);const B=K.getModel();if(B&&(B.updateOptions({insertSpaces:!1}),K.onKeyUp(()=>{var ne;const z=(ne=K.getPosition())==null?void 0:ne.lineNumber;if(z){const G=B.getLineFirstNonWhitespaceColumn(z),Z=B.getLineLength(z),ie=B.getLineContent(z);_T.test(ie)&&K.executeEdits("edit-handler",[{range:new j.Range(z,0,z,Z),text:ie.substr(G-1,Z-G)}])}})),i===Jn.FileFolderType.METHOD&&Jn.hasAttributesString(e)){const z=new CT(K,!0);z.exclude(1,1,1,Number.POSITIVE_INFINITY),z.enable()}}return ht.useEffect(()=>{if(!_)return;const{line:K,offset:j}=g||{};K&&$y(_,K,j)},[g,_]),ht.useEffect(()=>{if(!_)return;const{selection:K}=p||{};K&&Ny(_,K)},[p,_]),k?wt.jsxs(wt.Fragment,{children:[c?wt.jsx(By,{lspProps:l}):null,wt.jsx(G1.Editor,{options:{readOnly:!0,fontSize:12,"semanticHighlighting.enabled":!0,padding:{top:10},...o},path:Gn(t),value:e,theme:"fd-dark",onChange:K=>s&&s(K||""),language:r,beforeMount:A,onMount:H,loading:wt.jsx(f2,{}),...f})]}):wt.jsx(f2,{})},DT={name:"4d",displayName:"%displayName%",description:"%description%",version:"1.0.0",publisher:"vscode",engines:{vscode:"0.10.x"},categories:["Programming Languages"],contributes:{languages:[{id:"4d",aliases:["4D","4d"],extensions:[".4dm",".4qs"],configuration:"./language-configuration.json"}],grammars:[{language:"4d",scopeName:"source.4dm",path:"./syntaxes/4d.tmLanguage.json"}]}},{registerFileUrl:Fl,whenReady:IR}=eb.registerExtension(DT,void 0,{system:!0});Fl("./syntaxes/4d.tmLanguage.json",new URL("data:application/json;base64,ewogICJuYW1lIjogIjREIiwKICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICJwYXR0ZXJucyI6IFsKICAgIHsKICAgICAgImluY2x1ZGUiOiAiI3N0YXRlbWVudHMiCiAgICB9CiAgXSwKICAicmVwb3NpdG9yeSI6IHsKICAgICJzdGF0ZW1lbnRzIjogewogICAgICAicGF0dGVybnMiOiBbCiAgICAgICAgewogICAgICAgICAgImluY2x1ZGUiOiAiI2NvbW1lbnQiCiAgICAgICAgfQogICAgICBdCiAgICB9LAogICAgImNvbW1lbnQiOiB7CiAgICAgICJwYXR0ZXJucyI6IFsKICAgICAgICB7CiAgICAgICAgICAibmFtZSI6ICJjb21tZW50LmJsb2NrLjRkIiwKICAgICAgICAgICJiZWdpbiI6ICIoL1xcKikoPzpcXHMqKChAKWludGVybmFsKSg/PVxcc3woXFwqLykpKT8iLAogICAgICAgICAgImJlZ2luQ2FwdHVyZXMiOiB7CiAgICAgICAgICAgICIxIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlZmluaXRpb24uY29tbWVudC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAic3RvcmFnZS50eXBlLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICIzIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlY29yYXRvci5pbnRlcm5hbGRlY2xhcmF0aW9uLjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9LAogICAgICAgICAgImVuZCI6ICJcXCovIiwKICAgICAgICAgICJlbmRDYXB0dXJlcyI6IHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICB7CiAgICAgICAgICAiYmVnaW4iOiAiKF5bIFxcdF0rKT8oKC8vKSg/OlxccyooKEApaW50ZXJuYWwpKD89XFxzfCQpKT8pIiwKICAgICAgICAgICJiZWdpbkNhcHR1cmVzIjogewogICAgICAgICAgICAiMSI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJwdW5jdHVhdGlvbi53aGl0ZXNwYWNlLmNvbW1lbnQubGVhZGluZy40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAiY29tbWVudC5saW5lLmRvdWJsZS1zbGFzaC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjMiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9LAogICAgICAgICAgICAiNCI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJzdG9yYWdlLnR5cGUuaW50ZXJuYWxkZWNsYXJhdGlvbi40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjUiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVjb3JhdG9yLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0KICAgICAgICAgIH0sCiAgICAgICAgICAiZW5kIjogIig/PSQpIiwKICAgICAgICAgICJjb250ZW50TmFtZSI6ICJjb21tZW50LmxpbmUuZG91YmxlLXNsYXNoLjRkIgogICAgICAgIH0KICAgICAgXQogICAgfQogIH0KfQo=",self.location).toString(),{mimeType:"application/json",size:1592});Fl("./language-configuration.json",new URL("data:application/json;base64,ewogICJjb21tZW50cyI6IHsKICAgICJsaW5lQ29tbWVudCI6ICIvLyIsCiAgICAiYmxvY2tDb21tZW50IjogWyIvKioiLCAiKiovIl0KICB9LAogIC8vIHN5bWJvbHMgdXNlZCBhcyBicmFja2V0cwogICJicmFja2V0cyI6IFsKICAgIFsieyIsICJ9Il0sCiAgICBbIigiLCAiKSJdLAogICAgWyJbIiwgIl0iXQogIF0sCiAgLy8gc3ltYm9scyB0aGF0IGFyZSBhdXRvIGNsb3NlZCB3aGVuIHR5cGluZwogIC8vIHN5bWJvbHMgdGhhdCB0aGF0IGNhbiBiZSB1c2VkIHRvIHN1cnJvdW5kIGEgc2VsZWN0aW9uCiAgInN1cnJvdW5kaW5nUGFpcnMiOiBbCiAgICBbInsiLCAifSJdLAogICAgWyJbIiwgIl0iXSwKICAgIFsiKCIsICIpIl0sCiAgICBbIlwiIiwgIlwiIl0sCiAgICBbIiciLCAiJyJdCiAgXSwKICAiYXV0b0Nsb3NpbmdQYWlycyI6IFsKICAgIHsKICAgICAgIm9wZW4iOiAiKCIsCiAgICAgICJjbG9zZSI6ICIpIgogICAgfSwKICAgIHsgIm9wZW4iOiAieyIsICJjbG9zZSI6ICJ9IiB9LAogICAgeyAib3BlbiI6ICJbIiwgImNsb3NlIjogIl0iIH0sCiAgICB7ICJvcGVuIjogIiciLCAiY2xvc2UiOiAiJyIsICJub3RJbiI6IFsic3RyaW5nIiwgImNvbW1lbnQiXSB9LAogICAgeyAib3BlbiI6ICJcIiIsICJjbG9zZSI6ICJcIiIsICJub3RJbiI6IFsic3RyaW5nIl0gfSwKICAgIHsgIm9wZW4iOiAiYCIsICJjbG9zZSI6ICJgIiwgIm5vdEluIjogWyJzdHJpbmciLCAiY29tbWVudCJdIH0sCiAgICB7ICJvcGVuIjogIi8qKiIsICJjbG9zZSI6ICIgKiovIiwgIm5vdEluIjogWyJzdHJpbmciXSB9CiAgXSwKICAiYXV0b0Nsb3NlQmVmb3JlIjogIjs6Liw9fV0pPmAgXG5cdCIsCiAgIndvcmRQYXR0ZXJuIjogIigtP1xcZCpcXC5cXGRcXHcqKXwoW15cXGBcXH5cXCFcXEBcXCNcXCVcXF5cXCZcXCpcXChcXClcXC1cXD1cXCtcXFtcXHtcXF1cXH1cXFxcXFx8XFw7XFw6XFwnXFxcIlxcLFxcLlxcPFxcPlxcL1xcP1xcclxcblxcdFxcZlxcdiBdKyl8KD88PVthLXpBLVpdKSA/KD89W2EtekEtWl0pIiwKICAiaW5kZW50YXRpb25SdWxlcyI6IHsKICAgICJpbmNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGNsYXNzIGNvbnN0cnVjdG9yKSl8KF4oPyFbXlxcc10pKlxccyooZXhwb3NlZHxsb2NhbHxcXHMqKXsxfVxccypmdW5jdGlvbnsxfVxccypcXHcpfCheKD8hW15cXHNdKSpcXHMqKElmfEVsc2V8Rm9yfEZvciBlYWNofFdoaWxlfEJlZ2luIFNRTHxDYXNlIG9mfFVzZXxSZXBlYXR8OiAqXFwoLiopKS4qJCIsCiAgICAgICJmbGFncyI6ICJpIgogICAgfSwKICAgICJkZWNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGV4cG9zZWR8bG9jYWx8XFxzKil7MX1cXHMqZnVuY3Rpb257MX1cXHMqXFx3KXwoRW5kIElmfEVuZCBGb3J8RWxzZXxFbmQgZm9yIGVhY2h8RW5kIFdoaWxlfEVuZCBTUUx8RW5kIGNhc2V8RW5kIHVzZXxVbnRpbHw6ICpcXCguKikuKiQiLAogICAgICAiZmxhZ3MiOiAiaSIKICAgIH0KICB9LAogICJvbkVudGVyUnVsZXMiOiBbCiAgICB7CiAgICAgICJiZWZvcmVUZXh0IjogewogICAgICAgICJwYXR0ZXJuIjogIl5leHBvc2VkIiwKICAgICAgICAiZmxhZ3MiOiAiaSIKICAgICAgfSwKICAgICAgImFjdGlvbiI6IHsgImluZGVudCI6ICJpbmRlbnQiLCAiaW5kZW50QWN0aW9uIjogMSB9CiAgICB9CiAgXQp9Cg==",self.location).toString(),{mimeType:"application/json",size:1723});Fl("package.json",new URL("data:application/json;base64,ewogICAgIm5hbWUiOiAiNGQiLAogICAgImRpc3BsYXlOYW1lIjogIiVkaXNwbGF5TmFtZSUiLAogICAgImRlc2NyaXB0aW9uIjogIiVkZXNjcmlwdGlvbiUiLAogICAgInZlcnNpb24iOiAiMS4wLjAiLAogICAgInB1Ymxpc2hlciI6ICJ2c2NvZGUiLAogICAgImxpY2Vuc2UiOiAiTUlUIiwKICAgICJlbmdpbmVzIjogewogICAgICAgICJ2c2NvZGUiOiAiMC4xMC54IgogICAgfSwKICAgICJzY3JpcHRzIjogewogICAgICAgICJ1cGRhdGUtZ3JhbW1hciI6ICJub2RlIC4uL25vZGVfbW9kdWxlcy92c2NvZGUtZ3JhbW1hci11cGRhdGVyL2JpbiBtaWNyb3NvZnQvdnNjb2RlLTRkIGdyYW1tYXJzLzRkLmNzb24gLi9zeW50YXhlcy80ZC50bUxhbmd1YWdlLmpzb24iCiAgICB9LAogICAgImNhdGVnb3JpZXMiOiBbCiAgICAgICAgIlByb2dyYW1taW5nIExhbmd1YWdlcyIKICAgIF0sCiAgICAiY29udHJpYnV0ZXMiOiB7CiAgICAgICAgImxhbmd1YWdlcyI6IFsKICAgICAgICAgICAgewogICAgICAgICAgICAgICJpZCI6ICI0ZCIsCiAgICAgICAgICAgICAgImFsaWFzZXMiOiBbIjREIiwgIjRkIl0sCiAgICAgICAgICAgICAgImV4dGVuc2lvbnMiOiBbIi40ZG0iLCAiLjRxcyJdLAogICAgICAgICAgICAgICJjb25maWd1cmF0aW9uIjogIi4vbGFuZ3VhZ2UtY29uZmlndXJhdGlvbi5qc29uIgogICAgICAgICAgICB9CiAgICAgICAgICBdLAogICAgICAgICAgImdyYW1tYXJzIjogWwogICAgICAgICAgICB7CiAgICAgICAgICAgICAgImxhbmd1YWdlIjogIjRkIiwKICAgICAgICAgICAgICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICAgICAgICAgICAgICJwYXRoIjogIi4vc3ludGF4ZXMvNGQudG1MYW5ndWFnZS5qc29uIgogICAgICAgICAgICB9CiAgICAgICAgICBdCiAgICB9LAogICAgInJlcG9zaXRvcnkiOiB7CiAgICAgICAgInR5cGUiOiAiZ2l0IiwKICAgICAgICAidXJsIjogImh0dHBzOi8vZ2l0aHViLmNvbS9taWNyb3NvZnQvdnNjb2RlLmdpdCIKICAgIH0KfQ==",self.location).toString(),{mimeType:"application/json",size:1006});Fl("package.nls.json",new URL("data:application/json;base64,ewogICJkaXNwbGF5TmFtZSI6ICI0RCBMYW5ndWFnZSBCYXNpY3MiLAogICJkZXNjcmlwdGlvbiI6ICJQcm92aWRlcyBzeW50YXggaGlnaGxpZ2h0aW5nIGFuZCBicmFja2V0IG1hdGNoaW5nIGZvciA0RE0gYW5kIDRRUyBmaWxlcy4iCn0K",self.location).toString(),{mimeType:"application/json",size:135});exports.Alerts=By;exports.CodeEditor=ST;exports.CodeEditorProvider=aT;exports.LSPProvider=sT;exports._await=bg;exports.getFileSystemPath=Gn;exports.getFunctionOffset=eT;exports.jumpToLine=$y;exports.jumpToSelection=Ny;exports.useCodeEditor=Hy;exports.useLSP=oT;
|
|
160
176
|
//# sourceMappingURL=index.cjs.js.map
|