@ws-ui/code-editor 0.1.30-rc.5 → 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/index.cjs.js CHANGED
@@ -1,44 +1,94 @@
1
- "use strict";var Q2=Object.defineProperty;var J2=(t,e,n)=>e in t?Q2(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var pn=(t,e,n)=>(J2(t,typeof e!="symbol"?e+"":e,n),n),_l=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var pt=(t,e,n)=>(_l(t,e,"read from private field"),n?n.call(t):e.get(t)),Br=(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)},Jo=(t,e,n,i)=>(_l(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n);var Ns=(t,e,n)=>(_l(t,e,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const nt=require("react"),S1=require("@monaco-editor/react"),kn=require("@ws-ui/shared"),Y2=require("vscode-languageclient/lib/common/client.js"),I0=require("monaco-languageclient/vscode/services"),Vt=require("monaco-editor"),X2=require("monaco-languageclient/tools"),de=require("vscode-languageserver-protocol"),$o=require("vscode-jsonrpc"),D1=require("vscode-ws-jsonrpc"),Z2=require("@codingame/monaco-vscode-model-service-override"),e4=require("@codingame/monaco-vscode-editor-service-override"),Y1=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-monarch-service-override");var X1=typeof document<"u"?document.currentScript:null;function t4(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 ue=t4(Vt);var Et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function F0(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 gu={exports:{}},Vr={};/*
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 Sl,Z1;function M0(){if(Z1)return Sl;Z1=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(h){return o[h]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(h){l[h]=h}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Sl=r()?Object.assign:function(s,o){for(var a,c=i(s),l,h=1;h<arguments.length;h++){a=Object(arguments[h]);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},Sl}/** @license React v17.0.2
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 eg;function n4(){if(eg)return Vr;eg=1,M0();var t=nt,e=60103;if(Vr.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;e=n("react.element"),Vr.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 h,g={},p=null,w=null;l!==void 0&&(p=""+l),c.key!==void 0&&(p=""+c.key),c.ref!==void 0&&(w=c.ref);for(h in c)r.call(c,h)&&!s.hasOwnProperty(h)&&(g[h]=c[h]);if(a&&a.defaultProps)for(h in c=a.defaultProps,c)g[h]===void 0&&(g[h]=c[h]);return{$$typeof:e,type:a,key:p,ref:w,props:g,_owner:i.current}}return Vr.jsx=o,Vr.jsxs=o,Vr}var Dl={};/** @license React v17.0.2
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 tg;function i4(){return tg||(tg=1,function(t){process.env.NODE_ENV!=="production"&&function(){var e=nt,n=M0(),i=60103,r=60106;t.Fragment=60107;var s=60108,o=60114,a=60109,c=60110,l=60112,h=60113,g=60120,p=60115,w=60116,v=60121,x=60122,T=60117,q=60129,z=60131;if(typeof Symbol=="function"&&Symbol.for){var A=Symbol.for;i=A("react.element"),r=A("react.portal"),t.Fragment=A("react.fragment"),s=A("react.strict_mode"),o=A("react.profiler"),a=A("react.provider"),c=A("react.context"),l=A("react.forward_ref"),h=A("react.suspense"),g=A("react.suspense_list"),p=A("react.memo"),w=A("react.lazy"),v=A("react.block"),x=A("react.server.block"),T=A("react.fundamental"),A("react.scope"),A("react.opaque.id"),q=A("react.debug_trace_mode"),A("react.offscreen"),z=A("react.legacy_hidden")}var W=typeof Symbol=="function"&&Symbol.iterator,j="@@iterator";function se(S){if(S===null||typeof S!="object")return null;var H=W&&S[W]||S[j];return typeof H=="function"?H:null}var B=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Z(S){{for(var H=arguments.length,Y=new Array(H>1?H-1:0),b=1;b<H;b++)Y[b-1]=arguments[b];oe("error",S,Y)}}function oe(S,H,Y){{var b=B.ReactDebugCurrentFrame,le=b.getStackAddendum();le!==""&&(H+="%s",Y=Y.concat([le]));var fe=Y.map(function(G){return""+G});fe.unshift("Warning: "+H),Function.prototype.apply.call(console[S],console,fe)}}var qe=!1;function O(S){return!!(typeof S=="string"||typeof S=="function"||S===t.Fragment||S===o||S===q||S===s||S===h||S===g||S===z||qe||typeof S=="object"&&S!==null&&(S.$$typeof===w||S.$$typeof===p||S.$$typeof===a||S.$$typeof===c||S.$$typeof===l||S.$$typeof===T||S.$$typeof===v||S[0]===x))}function L(S,H,Y){var b=H.displayName||H.name||"";return S.displayName||(b!==""?Y+"("+b+")":Y)}function D(S){return S.displayName||"Context"}function P(S){if(S==null)return null;if(typeof S.tag=="number"&&Z("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case t.Fragment:return"Fragment";case r:return"Portal";case o:return"Profiler";case s:return"StrictMode";case h:return"Suspense";case g:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case c:var H=S;return D(H)+".Consumer";case a:var Y=S;return D(Y._context)+".Provider";case l:return L(S,S.render,"ForwardRef");case p:return P(S.type);case v:return P(S._render);case w:{var b=S,le=b._payload,fe=b._init;try{return P(fe(le))}catch{return null}}}return null}var N=0,$,ee,ke,pe,ot,Ke,Pe;function ft(){}ft.__reactDisabledLog=!0;function He(){{if(N===0){$=console.log,ee=console.info,ke=console.warn,pe=console.error,ot=console.group,Ke=console.groupCollapsed,Pe=console.groupEnd;var S={configurable:!0,enumerable:!0,value:ft,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}N++}}function ht(){{if(N--,N===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},S,{value:$}),info:n({},S,{value:ee}),warn:n({},S,{value:ke}),error:n({},S,{value:pe}),group:n({},S,{value:ot}),groupCollapsed:n({},S,{value:Ke}),groupEnd:n({},S,{value:Pe})})}N<0&&Z("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var rt=B.ReactCurrentDispatcher,Ut;function gt(S,H,Y){{if(Ut===void 0)try{throw Error()}catch(le){var b=le.stack.trim().match(/\n( *(at )?)/);Ut=b&&b[1]||""}return`
20
- `+Ut+S}}var Dt=!1,Pt;{var Lt=typeof WeakMap=="function"?WeakMap:Map;Pt=new Lt}function Se(S,H){if(!S||Dt)return"";{var Y=Pt.get(S);if(Y!==void 0)return Y}var b;Dt=!0;var le=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var fe;fe=rt.current,rt.current=null,He();try{if(H){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(d){b=d}Reflect.construct(S,[],G)}else{try{G.call()}catch(d){b=d}S.call(G.prototype)}}else{try{throw Error()}catch(d){b=d}S()}}catch(d){if(d&&b&&typeof d.stack=="string"){for(var C=d.stack.split(`
21
- `),M=b.stack.split(`
22
- `),U=C.length-1,Q=M.length-1;U>=1&&Q>=0&&C[U]!==M[Q];)Q--;for(;U>=1&&Q>=0;U--,Q--)if(C[U]!==M[Q]){if(U!==1||Q!==1)do if(U--,Q--,Q<0||C[U]!==M[Q]){var Ie=`
23
- `+C[U].replace(" at new "," at ");return typeof S=="function"&&Pt.set(S,Ie),Ie}while(U>=1&&Q>=0);break}}}finally{Dt=!1,rt.current=fe,ht(),Error.prepareStackTrace=le}var Me=S?S.displayName||S.name:"",je=Me?gt(Me):"";return typeof S=="function"&&Pt.set(S,je),je}function Nt(S,H,Y){return Se(S,!1)}function Be(S){var H=S.prototype;return!!(H&&H.isReactComponent)}function xt(S,H,Y){if(S==null)return"";if(typeof S=="function")return Se(S,Be(S));if(typeof S=="string")return gt(S);switch(S){case h:return gt("Suspense");case g:return gt("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case l:return Nt(S.render);case p:return xt(S.type,H,Y);case v:return Nt(S._render);case w:{var b=S,le=b._payload,fe=b._init;try{return xt(fe(le),H,Y)}catch{}}}return""}var Cn={},hn=B.ReactDebugCurrentFrame;function Jt(S){if(S){var H=S._owner,Y=xt(S.type,S._source,H?H.type:null);hn.setExtraStackFrame(Y)}else hn.setExtraStackFrame(null)}function It(S,H,Y,b,le){{var fe=Function.call.bind(Object.prototype.hasOwnProperty);for(var G in S)if(fe(S,G)){var C=void 0;try{if(typeof S[G]!="function"){var M=Error((b||"React class")+": "+Y+" type `"+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[G]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw M.name="Invariant Violation",M}C=S[G](H,G,b,Y,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){C=U}C&&!(C instanceof Error)&&(Jt(le),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).",b||"React class",Y,G,typeof C),Jt(null)),C instanceof Error&&!(C.message in Cn)&&(Cn[C.message]=!0,Jt(le),Z("Failed %s type: %s",Y,C.message),Jt(null))}}}var Ft=B.ReactCurrentOwner,Xe=Object.prototype.hasOwnProperty,Yt={key:!0,ref:!0,__self:!0,__source:!0},Kn,In,Fn;Fn={};function Gn(S){if(Xe.call(S,"ref")){var H=Object.getOwnPropertyDescriptor(S,"ref").get;if(H&&H.isReactWarning)return!1}return S.ref!==void 0}function Qn(S){if(Xe.call(S,"key")){var H=Object.getOwnPropertyDescriptor(S,"key").get;if(H&&H.isReactWarning)return!1}return S.key!==void 0}function _n(S,H){if(typeof S.ref=="string"&&Ft.current&&H&&Ft.current.stateNode!==H){var Y=P(Ft.current.type);Fn[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',P(Ft.current.type),S.ref),Fn[Y]=!0)}}function Xt(S,H){{var Y=function(){Kn||(Kn=!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)",H))};Y.isReactWarning=!0,Object.defineProperty(S,"key",{get:Y,configurable:!0})}}function Mn(S,H){{var Y=function(){In||(In=!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)",H))};Y.isReactWarning=!0,Object.defineProperty(S,"ref",{get:Y,configurable:!0})}}var ai=function(S,H,Y,b,le,fe,G){var C={$$typeof:i,type:S,key:H,ref:Y,props:G,_owner:fe};return C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(C,"_self",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.defineProperty(C,"_source",{configurable:!1,enumerable:!1,writable:!1,value:le}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C};function Zt(S,H,Y,b,le){{var fe,G={},C=null,M=null;Y!==void 0&&(C=""+Y),Qn(H)&&(C=""+H.key),Gn(H)&&(M=H.ref,_n(H,le));for(fe in H)Xe.call(H,fe)&&!Yt.hasOwnProperty(fe)&&(G[fe]=H[fe]);if(S&&S.defaultProps){var U=S.defaultProps;for(fe in U)G[fe]===void 0&&(G[fe]=U[fe])}if(C||M){var Q=typeof S=="function"?S.displayName||S.name||"Unknown":S;C&&Xt(G,Q),M&&Mn(G,Q)}return ai(S,C,M,le,b,Ft.current,G)}}var gn=B.ReactCurrentOwner,On=B.ReactDebugCurrentFrame;function en(S){if(S){var H=S._owner,Y=xt(S.type,S._source,H?H.type:null);On.setExtraStackFrame(Y)}else On.setExtraStackFrame(null)}var An;An=!1;function Sn(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}function Ln(){{if(gn.current){var S=P(gn.current.type);if(S)return`
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
+ `),D=w.stack.split(`
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{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
24
 
25
- Check the render method of \``+S+"`."}return""}}function ci(S){{if(S!==void 0){var H=S.fileName.replace(/^.*[\\\/]/,""),Y=S.lineNumber;return`
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
26
 
27
- Check your code at `+H+":"+Y+"."}return""}}var Dn={};function zt(S){{var H=Ln();if(!H){var Y=typeof S=="string"?S:S.displayName||S.name;Y&&(H=`
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
28
 
29
- Check the top-level render call using <`+Y+">.")}return H}}function Nn(S,H){{if(!S._store||S._store.validated||S.key!=null)return;S._store.validated=!0;var Y=zt(H);if(Dn[Y])return;Dn[Y]=!0;var b="";S&&S._owner&&S._owner!==gn.current&&(b=" It was passed a child from "+P(S._owner.type)+"."),en(S),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,b),en(null)}}function Jn(S,H){{if(typeof S!="object")return;if(Array.isArray(S))for(var Y=0;Y<S.length;Y++){var b=S[Y];Sn(b)&&Nn(b,H)}else if(Sn(S))S._store&&(S._store.validated=!0);else if(S){var le=se(S);if(typeof le=="function"&&le!==S.entries)for(var fe=le.call(S),G;!(G=fe.next()).done;)Sn(G.value)&&Nn(G.value,H)}}}function cn(S){{var H=S.type;if(H==null||typeof H=="string")return;var Y;if(typeof H=="function")Y=H.propTypes;else if(typeof H=="object"&&(H.$$typeof===l||H.$$typeof===p))Y=H.propTypes;else return;if(Y){var b=P(H);It(Y,S.props,"prop",b,S)}else if(H.PropTypes!==void 0&&!An){An=!0;var le=P(H);Z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",le||"Unknown")}typeof H.getDefaultProps=="function"&&!H.getDefaultProps.isReactClassApproved&&Z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function m(S){{for(var H=Object.keys(S.props),Y=0;Y<H.length;Y++){var b=H[Y];if(b!=="children"&&b!=="key"){en(S),Z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",b),en(null);break}}S.ref!==null&&(en(S),Z("Invalid attribute `ref` supplied to `React.Fragment`."),en(null))}}function E(S,H,Y,b,le,fe){{var G=O(S);if(!G){var C="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(C+=" 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 M=ci(le);M?C+=M:C+=Ln();var U;S===null?U="null":Array.isArray(S)?U="array":S!==void 0&&S.$$typeof===i?(U="<"+(P(S.type)||"Unknown")+" />",C=" Did you accidentally export a JSX literal instead of a component?"):U=typeof S,Z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",U,C)}var Q=Zt(S,H,Y,le,fe);if(Q==null)return Q;if(G){var Ie=H.children;if(Ie!==void 0)if(b)if(Array.isArray(Ie)){for(var Me=0;Me<Ie.length;Me++)Jn(Ie[Me],S);Object.freeze&&Object.freeze(Ie)}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 Jn(Ie,S)}return S===t.Fragment?m(Q):cn(Q),Q}}function te(S,H,Y){return E(S,H,Y,!0)}function we(S,H,Y){return E(S,H,Y,!1)}var Te=we,at=te;t.jsx=Te,t.jsxs=at}()}(Dl)),Dl}process.env.NODE_ENV==="production"?gu.exports=n4():gu.exports=i4();var ut=gu.exports;class r4 extends Y2.BaseLanguageClient{constructor({id:n,name:i,clientOptions:r,connectionProvider:s}){super(n??i.toLowerCase(),i,r);pn(this,"connectionProvider");this.connectionProvider=s}createMessageTransports(n){return this.connectionProvider.get(n)}}const s4=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),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={};I0.mergeServices(s,e.userServices)}return i||(e.workspaceConfig={workspaceProvider:{trusted:!0,workspace:{workspaceUri:ue.Uri.file("/workspace")},async open(){return!1}}}),e};var pu={},mu={},ge={};function ne(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 o4(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 cc=class cc{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(cc.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=o4(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};cc.assertInvariants=!1;let ng=cc;function yu(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 a4(t){let e=0;for(let n=0;n<t.length;n++)t[n]&&(t[e]=t[n],e+=1);t.length=e}function ig(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 c4(t){return Array.isArray(t)?t:[t]}var bu;(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})(bu||(bu={}));function l4(t,e){return(n,i)=>e(t(n),t(i))}const u4=(t,e)=>t-e,ts=class ts{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 ts(n=>this.iterate(i=>e(i)?n(i):!0))}map(e){return new ts(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||bu.isGreaterThan(e(r,n)))&&(i=!1,n=r),!0)),n}};ts.empty=new ts(e=>{});let rg=ts;class d4{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?go.isErrorNoTelemetry(e)?new go(e.message+`
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)}
54
+
55
+ `:D=`No parameters provided.
56
+
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)}
58
+
59
+ `:h.result?N=`Result: ${mt(h.result)}
60
+
61
+ `:h.error===void 0&&(N=`No result returned.
62
+
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)}
64
+
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)}
66
+
67
+ `:D=`No parameters provided.
68
+
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)}
70
+
71
+ `:h.result?x=`Result: ${mt(h.result)}
72
+
73
+ `:h.error===void 0&&(x=`No result returned.
74
+
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=[`
76
+ `,`\r
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+`
30
80
 
31
81
  `+e.stack):new Error(e.message+`
32
82
 
33
- `+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 f4=new d4;function O0(t){h4(t)||f4.onUnexpectedError(t)}const vu="Canceled";function h4(t){return t instanceof A0?!0:t instanceof Error&&t.name===vu&&t.message===vu}let A0=class extends Error{constructor(){super(vu),this.name=this.message}};function xe(t){return t?new Error(`Illegal argument: ${t}`):new Error("Illegal argument")}function g4(t){return t?new Error(`Illegal state: ${t}`):new Error("Illegal state")}class go extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof go)return e;const n=new go;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}var sg,og;class p4{constructor(e,n){this.uri=e,this.value=n}}function m4(t){return Array.isArray(t)}const kr=class kr{constructor(e,n){if(this[sg]="ResourceMap",e instanceof kr)this.map=new Map(e.map),this.toKey=n??kr.defaultToKey;else if(m4(e)){this.map=new Map,this.toKey=n??kr.defaultToKey;for(const[i,r]of e)this.set(i,r)}else this.map=new Map,this.toKey=e??kr.defaultToKey}set(e,n){return this.map.set(this.toKey(e),new p4(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]}*[(sg=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}};kr.defaultToKey=e=>e.toString();let va=kr,y4=class{constructor(){this[og]="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}[(og=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 b4 extends y4{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))}}let L0=class extends b4{constructor(e,n=1){super(e,n)}trim(e){this.trimOld(e)}set(e,n){return super.set(e,n),this.checkTrim(),this}};class v4{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 w4(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 C4(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 wu;(function(t){function e(A){return A&&typeof A=="object"&&typeof A[Symbol.iterator]=="function"}t.is=e;const n=Object.freeze([]);function i(){return n}t.empty=i;function*r(A){yield A}t.single=r;function s(A){return e(A)?A:r(A)}t.wrap=s;function o(A){return A||n}t.from=o;function*a(A){for(let W=A.length-1;W>=0;W--)yield A[W]}t.reverse=a;function c(A){return!A||A[Symbol.iterator]().next().done===!0}t.isEmpty=c;function l(A){return A[Symbol.iterator]().next().value}t.first=l;function h(A,W){for(const j of A)if(W(j))return!0;return!1}t.some=h;function g(A,W){for(const j of A)if(W(j))return j}t.find=g;function*p(A,W){for(const j of A)W(j)&&(yield j)}t.filter=p;function*w(A,W){let j=0;for(const se of A)yield W(se,j++)}t.map=w;function*v(...A){for(const W of A)yield*W}t.concat=v;function x(A,W,j){let se=j;for(const B of A)se=W(se,B);return se}t.reduce=x;function*T(A,W,j=A.length){for(W<0&&(W+=A.length),j<0?j+=A.length:j>A.length&&(j=A.length);W<j;W++)yield A[W]}t.slice=T;function q(A,W=Number.POSITIVE_INFINITY){const j=[];if(W===0)return[j,A];const se=A[Symbol.iterator]();for(let B=0;B<W;B++){const Z=se.next();if(Z.done)return[j,t.empty()];j.push(Z.value)}return[j,{[Symbol.iterator](){return se}}]}t.consume=q;async function z(A){const W=[];for await(const j of A)W.push(j);return Promise.resolve(W)}t.asyncToArray=z})(wu||(wu={}));const lc=class lc{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:lc.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 h=new Set(l.map(g=>g.value));if(i=l.filter(g=>!(g.parent&&h.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(w=>typeof w=="string"?w===g[0]:g[0].match(w));)g.shift()}const h=c.source.split(`
34
- `).map(g=>g.trim().replace("at ","")).filter(g=>g!=="");return l(h,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),h.reverse()}const s=new v4;for(const c of i){const l=r(c);for(let h=0;h<=l.length;h++)s.add(l.slice(0,h).join(`
35
- `),c)}i.sort(l4(c=>c.idx,u4));let o="",a=0;for(const c of i.slice(0,e)){a++;const l=r(c),h=[];for(let g=0;g<l.length;g++){let p=l[g];p=`(shared with ${s.get(l.slice(0,g+1).join(`
36
- `)).size}/${i.length} leaks) at ${p}`;const v=s.get(l.slice(0,g).join(`
37
- `)),x=C4([...v].map(T=>r(T)[g]),T=>T);delete x[l[g]];for(const[T,q]of Object.entries(x))h.unshift(` - stacktraces of ${q.length} other leaks continue with ${T}`);h.unshift(p)}o+=`
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+=`
38
88
 
39
89
 
40
90
  ==================== Leaking disposable ${a}/${i.length}: ${c.value.constructor.name} ====================
41
- ${h.join(`
91
+ ${f.join(`
42
92
  `)}
43
93
  ============================================================
44
94
 
@@ -47,84 +97,80 @@ ${h.join(`
47
97
 
48
98
  ... and ${i.length-e} more leaking disposables
49
99
 
50
- `),{leaks:i,details:o}}};lc.idx=0;let ag=lc;function N0(t){if(wu.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 _4(...t){return x1(()=>N0(t))}function x1(t){return{dispose:w4(()=>{t()})}}const uc=class uc{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{N0(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?uc.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)}};uc.DISABLE_DISPOSED_WARNING=!1;let po=uc;var Lo;let Cu=(Lo=class{constructor(){this._store=new po,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)}},Lo.None=Object.freeze({dispose(){}}),Lo);const ns=class ns{constructor(e){this.element=e,this.next=ns.Undefined,this.prev=ns.Undefined}};ns.Undefined=new ns(void 0);let ct=ns;class S4{constructor(){this._first=ct.Undefined,this._last=ct.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ct.Undefined}clear(){let e=this._first;for(;e!==ct.Undefined;){const n=e.next;e.prev=ct.Undefined,e.next=ct.Undefined,e=n}this._first=ct.Undefined,this._last=ct.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const i=new ct(e);if(this._first===ct.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!==ct.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ct.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ct.Undefined&&e.next!==ct.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===ct.Undefined&&e.next===ct.Undefined?(this._first=ct.Undefined,this._last=ct.Undefined):e.next===ct.Undefined?(this._last=this._last.prev,this._last.next=ct.Undefined):e.prev===ct.Undefined&&(this._first=this._first.next,this._first.prev=ct.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ct.Undefined;)yield e.element,e=e.next}}const D4=globalThis.performance&&typeof globalThis.performance.now=="function";class k1{static create(e){return new k1(e)}constructor(e){this._now=D4&&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 wa;(function(t){t.None=()=>Cu.None;function e(O,L){return g(O,()=>{},0,void 0,!0,void 0,L)}t.defer=e;function n(O){return(L,D=null,P)=>{let N=!1,$;return $=O(ee=>{if(!N)return $?$.dispose():N=!0,L.call(D,ee)},null,P),N&&$.dispose(),$}}t.once=n;function i(O,L,D){return l((P,N=null,$)=>O(ee=>P.call(N,L(ee)),null,$),D)}t.map=i;function r(O,L,D){return l((P,N=null,$)=>O(ee=>{L(ee),P.call(N,ee)},null,$),D)}t.forEach=r;function s(O,L,D){return l((P,N=null,$)=>O(ee=>L(ee)&&P.call(N,ee),null,$),D)}t.filter=s;function o(O){return O}t.signal=o;function a(...O){return(L,D=null,P)=>{const N=_4(...O.map($=>$(ee=>L.call(D,ee))));return h(N,P)}}t.any=a;function c(O,L,D,P){let N=D;return i(O,$=>(N=L(N,$),N),P)}t.reduce=c;function l(O,L){let D;const P={onWillAddFirstListener(){D=O(N.fire,N)},onDidRemoveLastListener(){D==null||D.dispose()}},N=new hi(P);return L==null||L.add(N),N.event}function h(O,L){return L instanceof Array?L.push(O):L&&L.add(O),O}function g(O,L,D=100,P=!1,N=!1,$,ee){let ke,pe,ot,Ke=0,Pe;const ft={leakWarningThreshold:$,onWillAddFirstListener(){ke=O(ht=>{Ke++,pe=L(pe,ht),P&&!ot&&(He.fire(pe),pe=void 0),Pe=()=>{const rt=pe;pe=void 0,ot=void 0,(!P||Ke>1)&&He.fire(rt),Ke=0},typeof D=="number"?(clearTimeout(ot),ot=setTimeout(Pe,D)):ot===void 0&&(ot=0,queueMicrotask(Pe))})},onWillRemoveListener(){N&&Ke>0&&(Pe==null||Pe())},onDidRemoveLastListener(){Pe=void 0,ke.dispose()}},He=new hi(ft);return ee==null||ee.add(He),He.event}t.debounce=g;function p(O,L=0,D){return t.debounce(O,(P,N)=>P?(P.push(N),P):[N],L,void 0,!0,void 0,D)}t.accumulate=p;function w(O,L=(P,N)=>P===N,D){let P=!0,N;return s(O,$=>{const ee=P||!L($,N);return P=!1,N=$,ee},D)}t.latch=w;function v(O,L,D){return[t.filter(O,L,D),t.filter(O,P=>!L(P),D)]}t.split=v;function x(O,L=!1,D=[],P){let N=D.slice(),$=O(pe=>{N?N.push(pe):ke.fire(pe)});P&&P.add($);const ee=()=>{N==null||N.forEach(pe=>ke.fire(pe)),N=null},ke=new hi({onWillAddFirstListener(){$||($=O(pe=>ke.fire(pe)),P&&P.add($))},onDidAddFirstListener(){N&&(L?setTimeout(ee):ee())},onDidRemoveLastListener(){$&&$.dispose(),$=null}});return P&&P.add(ke),ke.event}t.buffer=x;function T(O,L){return(P,N,$)=>{const ee=L(new z);return O(function(ke){const pe=ee.evaluate(ke);pe!==q&&P.call(N,pe)},void 0,$)}}t.chain=T;const q=Symbol("HaltChainable");class z{constructor(){this.steps=[]}map(L){return this.steps.push(L),this}forEach(L){return this.steps.push(D=>(L(D),D)),this}filter(L){return this.steps.push(D=>L(D)?D:q),this}reduce(L,D){let P=D;return this.steps.push(N=>(P=L(P,N),P)),this}latch(L=(D,P)=>D===P){let D=!0,P;return this.steps.push(N=>{const $=D||!L(N,P);return D=!1,P=N,$?N:q}),this}evaluate(L){for(const D of this.steps)if(L=D(L),L===q)break;return L}}function A(O,L,D=P=>P){const P=(...ke)=>ee.fire(D(...ke)),N=()=>O.on(L,P),$=()=>O.removeListener(L,P),ee=new hi({onWillAddFirstListener:N,onDidRemoveLastListener:$});return ee.event}t.fromNodeEventEmitter=A;function W(O,L,D=P=>P){const P=(...ke)=>ee.fire(D(...ke)),N=()=>O.addEventListener(L,P),$=()=>O.removeEventListener(L,P),ee=new hi({onWillAddFirstListener:N,onDidRemoveLastListener:$});return ee.event}t.fromDOMEventEmitter=W;function j(O){return new Promise(L=>n(O)(L))}t.toPromise=j;function se(O){const L=new hi;return O.then(D=>{L.fire(D)},()=>{L.fire(void 0)}).finally(()=>{L.dispose()}),L.event}t.fromPromise=se;function B(O,L,D){return L(D),O(P=>L(P))}t.runAndSubscribe=B;class Z{constructor(L,D){this._observable=L,this._counter=0,this._hasChanged=!1;const P={onWillAddFirstListener:()=>{L.addObserver(this)},onDidRemoveLastListener:()=>{L.removeObserver(this)}};this.emitter=new hi(P),D&&D.add(this.emitter)}beginUpdate(L){this._counter++}handlePossibleChange(L){}handleChange(L,D){this._hasChanged=!0}endUpdate(L){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function oe(O,L){return new Z(O,L).emitter.event}t.fromObservable=oe;function qe(O){return(L,D,P)=>{let N=0,$=!1;const ee={beginUpdate(){N++},endUpdate(){N--,N===0&&(O.reportChanges(),$&&($=!1,L.call(D)))},handlePossibleChange(){},handleChange(){$=!0}};O.addObserver(ee),O.reportChanges();const ke={dispose(){O.removeObserver(ee)}};return P instanceof po?P.add(ke):Array.isArray(P)&&P.push(ke),ke}}t.fromObservableLight=qe})(wa||(wa={}));const is=class is{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${is._idPool++}`,is.all.add(this)}start(e){this._stopWatch=new k1,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}}};is.all=new Set,is._idPool=0;let _u=is,x4=-1;class k4{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 T1{static create(){return new T1(new Error().stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split(`
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(`
51
101
  `).slice(2).join(`
52
- `))}}let T4=0;class xl{constructor(e){this.value=e,this.id=T4++}}const R4=2;let hi=class{constructor(e){var n,i,r,s;this._size=0,this._options=e,this._leakageMon=(n=this._options)!=null&&n.leakWarningThreshold?new k4(((i=this._options)==null?void 0:i.leakWarningThreshold)??x4):void 0,this._perfMon=(r=this._options)!=null&&r._profName?new _u(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,h;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`),Cu.None;if(this._disposed)return Cu.None;n&&(e=e.bind(n));const r=new xl(e);let s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(r.stack=T1.create(),s=this._leakageMon.check(r.stack,this._size+1)),this._listeners?this._listeners instanceof xl?(this._deliveryQueue??(this._deliveryQueue=new E4),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,(h=(l=this._options)==null?void 0:l.onDidAddFirstListener)==null||h.call(l,this)),this._size++;const o=x1(()=>{s==null||s(),this._removeListener(r)});return i instanceof po?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*R4<=n.length){let l=0;for(let h=0;h<n.length;h++)n[h]?n[l++]=n[h]: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)||O0;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 xl)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 E4{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 $0=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});var Ca;(function(t){function e(n){return n===t.None||n===t.Cancelled||n instanceof da?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:wa.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:$0})})(Ca||(Ca={}));let da=class{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?$0:(this._emitter||(this._emitter=new hi),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},P4=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 da),this._token}cancel(){this._token?this._token instanceof da&&this._token.cancel():this._token=Ca.Cancelled}dispose(e=!1){var n;e&&this.cancel(),(n=this._parentListener)==null||n.dispose(),this._token?this._token instanceof da&&this._token.dispose():this._token=Ca.None}};function I4(t){return t}class F4{constructor(e,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=I4):(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 ds{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 M4(t){return!t||typeof t!="string"?!0:t.trim().length===0}function O4(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Su(t,e){return t<e?-1:t>e?1:0}function R1(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 cg(t,e){return qo(t,e,0,t.length,0,e.length)}function qo(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 R1(t.toLowerCase(),e.toLowerCase(),n,i,r,s);lg(c)&&(c-=32),lg(l)&&(l-=32);const h=c-l;if(h!==0)return h}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function lg(t){return t>=97&&t<=122}function A4(t,e){return t.length===e.length&&qo(t,e)===0}function q0(t,e){const n=e.length;return e.length>t.length?!1:qo(t,e,0,n)===0}function E1(t){return 55296<=t&&t<=56319}function _a(t){return 56320<=t&&t<=57343}function P1(t,e){return(t-55296<<10)+(e-56320)+65536}function L4(t,e,n){const i=t.charCodeAt(n);if(E1(i)&&n+1<e){const r=t.charCodeAt(n+1);if(_a(r))return P1(i,r)}return i}function N4(t,e){const n=t.charCodeAt(e-1);if(_a(n)&&e>1){const i=t.charCodeAt(e-2);if(E1(i))return P1(i,n)}return n}class $4{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=N4(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=L4(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class q4{get offset(){return this._iterator.offset}constructor(e,n=0){this._iterator=new $4(e,n)}nextGraphemeLength(){const e=Sa.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(dg(r,o)){n.setOffset(s);break}r=o}return n.offset-i}prevGraphemeLength(){const e=Sa.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(dg(o,r)){n.setOffset(s);break}r=o}return i-n.offset}eol(){return this._iterator.eol()}}function ug(t,e){return new q4(t,e).nextGraphemeLength()}function dg(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 Tr=class Tr{static getInstance(){return Tr._INSTANCE||(Tr._INSTANCE=new Tr),Tr._INSTANCE}constructor(){this._data=H4()}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}};Tr._INSTANCE=null;let Sa=Tr;function H4(){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 di=class di{static getInstance(e){return di.cache.get(Array.from(e))}static getLocales(){return di._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())}};di.ambiguousCharacterData=new ds(()=>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]}')),di.cache=new F4({getCacheKey:JSON.stringify},e=>{function n(h){const g=new Map;for(let p=0;p<h.length;p+=2)g.set(h[p],h[p+1]);return g}function i(h,g){const p=new Map(h);for(const[w,v]of g)p.set(w,v);return p}function r(h,g){if(!h)return g;const p=new Map;for(const[w,v]of h)g.has(w)&&p.set(w,v);return p}const s=di.ambiguousCharacterData.value;let o=e.filter(h=>!h.startsWith("_")&&h in s);o.length===0&&(o=["_default"]);let a;for(const h of o){const g=n(s[h]);a=r(a,g)}const c=n(s._common),l=i(c,a);return new di(l)}),di._locales=new ds(()=>Object.keys(di.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));let fg=di;const rs=class rs{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(rs.getRawData())),this._data}static isInvisibleCharacter(e){return rs.getData().has(e)}static get codePoints(){return rs.getData()}};rs._data=void 0;let hg=rs;H0.bind(void 0,!1);H0.bind(void 0,!0);function H0(t,e,n){if(!n||n.length<e.length)return null;let i;return t?i=q0(n,e):i=n.indexOf(e)===0,i?e.length>0?[{start:0,end:e.length}]:[]:null}const j4=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(t=>j4.add(t.charCodeAt(0)));new L0(1e4);const gg=128;function I1(){const t=[],e=[];for(let n=0;n<=gg;n++)e[n]=0;for(let n=0;n<=gg;n++)t.push(e.slice(0));return t}I1();I1();I1();var pg;(function(t){t.Default=[-100,0];function e(n){return!n||n.length===2&&n[0]===-100&&n[1]===0}t.isDefault=e})(pg||(pg={}));const K1=class K1{constructor(e,n){this.firstMatchCanBeWeak=e,this.boostFullMatch=n}};K1.default={boostFullMatch:!0,firstMatchCanBeWeak:!1};let mg=K1;function Tn(t){return typeof t=="string"}function W4(t){return Array.isArray(t)&&t.every(e=>Tn(e))}function yg(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}function so(t){return typeof t=="number"&&!isNaN(t)}const bg=Object.create(null);function u(t,e){if(Tn(e)){const n=bg[e];if(n===void 0)throw new Error(`${t} references an unknown codicon: ${e}`);e=n}return bg[t]=e,{id:t}}const U4={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)},z4={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)},B4={...U4,...z4};var Du;(function(t){function e(n){return n&&typeof n=="object"&&typeof n.id=="string"}t.isThemeColor=e})(Du||(Du={}));var mo;(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 w=e.exec(p.id);if(!w)return n(B4.error);const[,v,x]=w,T=["codicon","codicon-"+v];return x&&T.push("codicon-modifier-"+x.substring(1)),T}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"||Du.isThemeColor(p.color))}t.isThemeIcon=s;const o=new RegExp(`^\\$\\((${t.iconNameExpression}(?:${t.iconModifierExpression})?)\\)$`);function a(p){const w=o.exec(p);if(!w)return;const[,v]=w;return{id:v}}t.fromString=a;function c(p){return{id:p}}t.fromId=c;function l(p,w){let v=p.id;const x=v.lastIndexOf("~");return x!==-1&&(v=v.substring(0,x)),w&&(v=`${v}~${w}`),{id:v}}t.modify=l;function h(p){const w=p.id.lastIndexOf("~");if(w!==-1)return p.id.substring(w+1)}t.getModifier=h;function g(p,w){var v,x;return p.id===w.id&&((v=p.color)==null?void 0:v.id)===((x=w.color)==null?void 0:x.id)}t.isEqual=g})(mo||(mo={}));const F1=new RegExp(`\\$\\(${mo.iconNameExpression}(?:${mo.iconModifierExpression})?\\)`,"g"),V4=new RegExp(`(\\\\)?${F1.source}`,"g");function K4(t){return t.replace(V4,(e,n)=>n?e:`\\${e}`)}new RegExp(`\\\\${F1.source}`,"g");new RegExp(`(\\s)?(\\\\)?${F1.source}(\\s)?`,"g");new RegExp(`\\$\\(${mo.iconNameCharacter}+\\)`,"g");let G4=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Q4(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}),G4&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}let J4={};function f(t,e,n,...i){const r=typeof e=="object"?e.key:e,s=(J4[t]??{})[r]??n;return Q4(s,i)}const Zr="en";let xu=!1,ku=!1,Tu=!1,j0=!1,M1=!1,Yo,fa=Zr,vg=Zr,Zn;const Ai=globalThis;let dn;var k0;typeof Ai.vscode<"u"&&typeof Ai.vscode.process<"u"?dn=Ai.vscode.process:typeof process<"u"&&typeof((k0=process==null?void 0:process.versions)==null?void 0:k0.node)=="string"&&(dn=process);var T0;const Y4=typeof((T0=dn==null?void 0:dn.versions)==null?void 0:T0.electron)=="string",X4=Y4&&(dn==null?void 0:dn.type)==="renderer";if(typeof dn=="object"){xu=dn.platform==="win32",ku=dn.platform==="darwin",Tu=dn.platform==="linux",dn.env.CI||dn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Yo=Zr,fa=Zr;const t=dn.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t),n=e.availableLanguages["*"];Yo=e.locale,vg=e.osLocale,fa=n||Zr}catch{}j0=!0}else typeof navigator=="object"&&!X4?(Zn=navigator.userAgent,xu=Zn.indexOf("Windows")>=0,ku=Zn.indexOf("Macintosh")>=0,(Zn.indexOf("Macintosh")>=0||Zn.indexOf("iPad")>=0||Zn.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Tu=Zn.indexOf("Linux")>=0,(Zn==null?void 0:Zn.indexOf("Mobi"))>=0,M1=!0,Yo=Zr,fa=Yo,vg=navigator.language):console.error("Unable to resolve platform.");const qr=xu,bi=ku,Da=Tu,Z4=j0,O1=M1,ey=M1&&typeof Ai.importScripts=="function",ty=ey?Ai.origin:void 0,vi=Zn,Bi=fa;var wg;(function(t){function e(){return Bi}t.value=e;function n(){return Bi.length===2?Bi==="en":Bi.length>=3?Bi[0]==="e"&&Bi[1]==="n"&&Bi[2]==="-":!1}t.isDefaultVariant=n;function i(){return Bi==="en"}t.isDefault=i})(wg||(wg={}));const ny=typeof Ai.postMessage=="function"&&!Ai.importScripts;(()=>{if(ny){const t=[];Ai.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}),Ai.postMessage({vscodeScheduleAsyncWork:i},"*")}}return t=>setTimeout(t)})();const W0=!!(vi&&vi.indexOf("Chrome")>=0),iy=!!(vi&&vi.indexOf("Firefox")>=0),ry=!!(!W0&&vi&&vi.indexOf("Safari")>=0),sy=!!(vi&&vi.indexOf("Edg/")>=0);vi&&vi.indexOf("Android")>=0;let Fr;const kl=globalThis.vscode;if(typeof kl<"u"&&typeof kl.process<"u"){const t=kl.process;Fr={get platform(){return t.platform},get arch(){return t.arch},get env(){return t.env},cwd(){return t.cwd()}}}else typeof process<"u"?Fr={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Fr={get platform(){return qr?"win32":bi?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const xa=Fr.cwd,oy=Fr.env,ay=Fr.platform;Fr.arch;const cy=65,ly=97,uy=90,dy=122,Zi=46,Ht=47,mn=92,Vi=58,fy=63;class U0 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 hy(t,e){if(t===null||typeof t!="object")throw new U0(e,"Object",t)}function bt(t,e){if(typeof t!="string")throw new U0(e,"string",t)}const Vn=ay==="win32";function _e(t){return t===Ht||t===mn}function Ru(t){return t===Ht}function Ki(t){return t>=cy&&t<=uy||t>=ly&&t<=dy}function ka(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=Ht}if(i(c)){if(!(o===l-1||a===1))if(a===2){if(r.length<2||s!==2||r.charCodeAt(r.length-1)!==Zi||r.charCodeAt(r.length-2)!==Zi){if(r.length>2){const h=r.lastIndexOf(n);h===-1?(r="",s=0):(r=r.slice(0,h),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===Zi&&a!==-1?++a:a=-1}return r}function z0(t,e){hy(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 Ot={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],bt(s,"path"),s.length===0)continue}else e.length===0?s=xa():(s=oy[`=${e}`]||xa(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===mn)&&(s=`${e}\\`));const o=s.length;let a=0,c="",l=!1;const h=s.charCodeAt(0);if(o===1)_e(h)&&(a=1,l=!0);else if(_e(h))if(l=!0,_e(s.charCodeAt(1))){let g=2,p=g;for(;g<o&&!_e(s.charCodeAt(g));)g++;if(g<o&&g!==p){const w=s.slice(p,g);for(p=g;g<o&&_e(s.charCodeAt(g));)g++;if(g<o&&g!==p){for(p=g;g<o&&!_e(s.charCodeAt(g));)g++;(g===o||g!==p)&&(c=`\\\\${w}\\${s.slice(p,g)}`,a=g)}}}else a=1;else Ki(h)&&s.charCodeAt(1)===Vi&&(c=s.slice(0,2),a=2,o>2&&_e(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=ka(n,!i,"\\",_e),i?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){bt(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 Ru(s)?"\\":t;if(_e(s))if(r=!0,_e(t.charCodeAt(1))){let a=2,c=a;for(;a<e&&!_e(t.charCodeAt(a));)a++;if(a<e&&a!==c){const l=t.slice(c,a);for(c=a;a<e&&_e(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&!_e(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 Ki(s)&&t.charCodeAt(1)===Vi&&(i=t.slice(0,2),n=2,e>2&&_e(t.charCodeAt(2))&&(r=!0,n=3));let o=n<e?ka(t.slice(n),!r,"\\",_e):"";return o.length===0&&!r&&(o="."),o.length>0&&_e(t.charCodeAt(e-1))&&(o+="\\"),i===void 0?r?`\\${o}`:o:r?`${i}\\${o}`:`${i}${o}`},isAbsolute(t){bt(t,"path");const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0);return _e(n)||e>2&&Ki(n)&&t.charCodeAt(1)===Vi&&_e(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];bt(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"&&_e(n.charCodeAt(0))){++r;const s=n.length;s>1&&_e(n.charCodeAt(1))&&(++r,s>2&&(_e(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<e.length&&_e(e.charCodeAt(r));)r++;r>=2&&(e=`\\${e.slice(r)}`)}return Ot.normalize(e)},relative(t,e){if(bt(t,"from"),bt(e,"to"),t===e)return"";const n=Ot.resolve(t),i=Ot.resolve(e);if(n===i||(t=n.toLowerCase(),e=i.toLowerCase(),t===e))return"";let r=0;for(;r<t.length&&t.charCodeAt(r)===mn;)r++;let s=t.length;for(;s-1>r&&t.charCodeAt(s-1)===mn;)s--;const o=s-r;let a=0;for(;a<e.length&&e.charCodeAt(a)===mn;)a++;let c=e.length;for(;c-1>a&&e.charCodeAt(c-1)===mn;)c--;const l=c-a,h=o<l?o:l;let g=-1,p=0;for(;p<h;p++){const v=t.charCodeAt(r+p);if(v!==e.charCodeAt(a+p))break;v===mn&&(g=p)}if(p!==h){if(g===-1)return i}else{if(l>h){if(e.charCodeAt(a+p)===mn)return i.slice(a+p+1);if(p===2)return i.slice(a+p)}o>h&&(t.charCodeAt(r+p)===mn?g=p:p===2&&(g=3)),g===-1&&(g=0)}let w="";for(p=r+g+1;p<=s;++p)(p===s||t.charCodeAt(p)===mn)&&(w+=w.length===0?"..":"\\..");return a+=g,w.length>0?`${w}${i.slice(a,c)}`:(i.charCodeAt(a)===mn&&++a,i.slice(a,c))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=Ot.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===mn){if(e.charCodeAt(1)===mn){const n=e.charCodeAt(2);if(n!==fy&&n!==Zi)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(Ki(e.charCodeAt(0))&&e.charCodeAt(1)===Vi&&e.charCodeAt(2)===mn)return`\\\\?\\${e}`;return t},dirname(t){bt(t,"path");const e=t.length;if(e===0)return".";let n=-1,i=0;const r=t.charCodeAt(0);if(e===1)return _e(r)?t:".";if(_e(r)){if(n=i=1,_e(t.charCodeAt(1))){let a=2,c=a;for(;a<e&&!_e(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&_e(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&!_e(t.charCodeAt(a));)a++;if(a===e)return t;a!==c&&(n=i=a+1)}}}}else Ki(r)&&t.charCodeAt(1)===Vi&&(n=e>2&&_e(t.charCodeAt(2))?3:2,i=n);let s=-1,o=!0;for(let a=e-1;a>=i;--a)if(_e(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&&bt(e,"ext"),bt(t,"path");let n=0,i=-1,r=!0,s;if(t.length>=2&&Ki(t.charCodeAt(0))&&t.charCodeAt(1)===Vi&&(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(_e(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(_e(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){bt(t,"path");let e=0,n=-1,i=0,r=-1,s=!0,o=0;t.length>=2&&t.charCodeAt(1)===Vi&&Ki(t.charCodeAt(0))&&(e=i=2);for(let a=t.length-1;a>=e;--a){const c=t.charCodeAt(a);if(_e(c)){if(!s){i=a+1;break}continue}r===-1&&(s=!1,r=a+1),c===Zi?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:z0.bind(null,"\\"),parse(t){bt(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 _e(r)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if(_e(r)){if(i=1,_e(t.charCodeAt(1))){let g=2,p=g;for(;g<n&&!_e(t.charCodeAt(g));)g++;if(g<n&&g!==p){for(p=g;g<n&&_e(t.charCodeAt(g));)g++;if(g<n&&g!==p){for(p=g;g<n&&!_e(t.charCodeAt(g));)g++;g===n?i=g:g!==p&&(i=g+1)}}}}else if(Ki(r)&&t.charCodeAt(1)===Vi){if(n<=2)return e.root=e.dir=t,e;if(i=2,_e(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,h=0;for(;l>=i;--l){if(r=t.charCodeAt(l),_e(r)){if(!c){o=l+1;break}continue}a===-1&&(c=!1,a=l+1),r===Zi?s===-1?s=l:h!==1&&(h=1):s!==-1&&(h=-1)}return a!==-1&&(s===-1||h===0||h===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},gy=(()=>{if(Vn){const t=/\\/g;return()=>{const e=xa().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>xa()})(),Ze={resolve(...t){let e="",n=!1;for(let i=t.length-1;i>=-1&&!n;i--){const r=i>=0?t[i]:gy();bt(r,"path"),r.length!==0&&(e=`${r}/${e}`,n=r.charCodeAt(0)===Ht)}return e=ka(e,!n,"/",Ru),n?`/${e}`:e.length>0?e:"."},normalize(t){if(bt(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===Ht,n=t.charCodeAt(t.length-1)===Ht;return t=ka(t,!e,"/",Ru),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return bt(t,"path"),t.length>0&&t.charCodeAt(0)===Ht},join(...t){if(t.length===0)return".";let e;for(let n=0;n<t.length;++n){const i=t[n];bt(i,"path"),i.length>0&&(e===void 0?e=i:e+=`/${i}`)}return e===void 0?".":Ze.normalize(e)},relative(t,e){if(bt(t,"from"),bt(e,"to"),t===e||(t=Ze.resolve(t),e=Ze.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===Ht&&(c=l)}if(l===a)if(o>a){if(e.charCodeAt(s+l)===Ht)return e.slice(s+l+1);if(l===0)return e.slice(s+l)}else r>a&&(t.charCodeAt(n+l)===Ht?c=l:l===0&&(c=0));let h="";for(l=n+c+1;l<=i;++l)(l===i||t.charCodeAt(l)===Ht)&&(h+=h.length===0?"..":"/..");return`${h}${e.slice(s+c)}`},toNamespacedPath(t){return t},dirname(t){if(bt(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===Ht;let n=-1,i=!0;for(let r=t.length-1;r>=1;--r)if(t.charCodeAt(r)===Ht){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&&bt(e,"ext"),bt(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===Ht){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)===Ht){if(!r){n=s+1;break}}else i===-1&&(r=!1,i=s+1);return i===-1?"":t.slice(n,i)},extname(t){bt(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===Ht){if(!r){n=o+1;break}continue}i===-1&&(r=!1,i=o+1),a===Zi?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:z0.bind(null,"/"),parse(t){bt(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.charCodeAt(0)===Ht;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 h=t.charCodeAt(c);if(h===Ht){if(!a){s=c+1;break}continue}o===-1&&(a=!1,o=c+1),h===Zi?r===-1?r=c:l!==1&&(l=1):r!==-1&&(l=-1)}if(o!==-1){const h=s===0&&n?1:s;r===-1||l===0||l===1&&r===o-1&&r===s+1?e.base=e.name=t.slice(h,o):(e.name=t.slice(h,r),e.base=t.slice(h,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};Ze.win32=Ot.win32=Ot;Ze.posix=Ot.posix=Ze;const py=Vn?Ot.normalize:Ze.normalize;Vn?Ot.isAbsolute:Ze.isAbsolute;Vn?Ot.join:Ze.join;const my=Vn?Ot.resolve:Ze.resolve,yy=Vn?Ot.relative:Ze.relative,by=Vn?Ot.dirname:Ze.dirname;Vn?Ot.basename:Ze.basename;Vn?Ot.extname:Ze.extname;Vn?Ot.parse:Ze.parse;const ha=Vn?Ot.sep:Ze.sep;Vn?Ot.delimiter:Ze.delimiter;function Gi(t){return t===47||t===92}function B0(t){return t.replace(/[\\/]/g,Ze.sep)}function vy(t){return t.indexOf("/")===-1&&(t=B0(t)),/^[a-zA-Z]:(\/|$)/.test(t)&&(t="/"+t),t}function Cg(t,e=Ze.sep){if(!t)return"";const n=t.length,i=t.charCodeAt(0);if(Gi(i)){if(Gi(t.charCodeAt(1))&&!Gi(t.charCodeAt(2))){let s=3;const o=s;for(;s<n&&!Gi(t.charCodeAt(s));s++);if(o!==s&&!Gi(t.charCodeAt(s+1))){for(s+=1;s<n;s++)if(Gi(t.charCodeAt(s)))return t.slice(0,s+1).replace(/[\\/]/g,e)}}return e}else if(wy(i)&&t.charCodeAt(1)===58)return Gi(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(Gi(t.charCodeAt(r)))return t.slice(0,r+1)}return""}function _g(t,e,n,i=ha){if(t===e)return!0;if(!t||!e||e.length>t.length)return!1;if(n){if(!q0(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 wy(t){return t>=65&&t<=90||t>=97&&t<=122}const Cy=/^\w[\w\d+.-]*$/,_y=/^\//,Sy=/^\/\//;function Dy(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&&!Cy.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!_y.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(Sy.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 xy(t,e){return!t&&!e?"file":t}function ky(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==ni&&(e=ni+e):e=ni;break}return e}const et="",ni="/",Ty=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let st=class ga{static isUri(e){return e instanceof ga?!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||et,this.authority=e.authority||et,this.path=e.path||et,this.query=e.query||et,this.fragment=e.fragment||et):(this.scheme=xy(e,o),this.authority=n||et,this.path=ky(this.scheme,i||et),this.query=r||et,this.fragment=s||et,Dy(this,o))}get fsPath(){return Ta(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=et),i===void 0?i=this.authority:i===null&&(i=et),r===void 0?r=this.path:r===null&&(r=et),s===void 0?s=this.query:s===null&&(s=et),o===void 0?o=this.fragment:o===null&&(o=et),n===this.scheme&&i===this.authority&&r===this.path&&s===this.query&&o===this.fragment?this:new Kr(n,i,r,s,o)}static parse(e,n=!1){const i=Ty.exec(e);return i?new Kr(i[2]||et,Xo(i[4]||et),Xo(i[5]||et),Xo(i[7]||et),Xo(i[9]||et),n):new Kr(et,et,et,et,et)}static file(e){let n=et;if(qr&&(e=e.replace(/\\/g,ni)),e[0]===ni&&e[1]===ni){const i=e.indexOf(ni,2);i===-1?(n=e.substring(2),e=ni):(n=e.substring(2,i),e=e.substring(i)||ni)}return new Kr("file",n,e,et,et)}static from(e,n){return new Kr(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 qr&&e.scheme==="file"?i=ga.file(Ot.join(Ta(e,!0),...n)).path:i=Ze.join(e.path,...n),e.with({path:i})}toString(e=!1){return Eu(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof ga)return e;{const n=new Kr(e);return n._formatted=e.external??null,n._fsPath=e._sep===V0?e.fsPath??null:null,n}}else return e}};const V0=qr?1:void 0;let Kr=class extends st{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Ta(this,!1)),this._fsPath}toString(e=!1){return e?Eu(this,!0):(this._formatted||(this._formatted=Eu(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=V0),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 K0={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 Sg(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=K0[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 Ry(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+=K0[i]):e!==void 0&&(e+=t[n])}return e!==void 0?e:t}function Ta(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,qr&&(n=n.replace(/\//g,"\\")),n}function Eu(t,e){const n=e?Ry:Sg;let i="",{scheme:r,authority:s,path:o,query:a,fragment:c}=t;if(r&&(i+=r,i+=":"),(s||r==="file")&&(i+=ni,i+=ni),s){let l=s.indexOf("@");if(l!==-1){const h=s.substr(0,l);s=s.substr(l+1),l=h.lastIndexOf(":"),l===-1?i+=n(h,!1,!1):(i+=n(h.substr(0,l),!1,!1),i+=":",i+=n(h.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:Sg(c,!1,!1)),i}function G0(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+G0(t.substr(3)):t}}const Dg=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Xo(t){return t.match(Dg)?t.replace(Dg,e=>G0(e)):t}var dt;(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"})(dt||(dt={}));const Ey="tkn";class Py{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=Fy(e,n)}getServerRootPath(){return this._serverRootPath}get _remoteResourcesPath(){return Ze.join(this._serverRootPath,dt.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 O0(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+=`&${Ey}=${encodeURIComponent(s)}`),st.from({scheme:O1?this._preferredWebSchema:dt.vscodeRemoteResource,authority:`${i}:${r}`,path:this._remoteResourcesPath,query:o})}}const Iy=new Py;function Fy(t,e){return Ze.join(e??"/",`${t.quality??"oss"}-${t.commit??"dev"}`)}const My="vscode-app",ss=class ss{constructor(){this.staticBrowserUris=new va,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:X1&&X1.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===dt.vscodeRemote?Iy.rewrite(e):e.scheme===dt.file&&(Z4||ty===`${dt.vscodeFileResource}://${ss.FALLBACK_AUTHORITY}`)?e.with({scheme:dt.vscodeFileResource,authority:e.authority||ss.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===dt.vscodeFileResource?e.with({scheme:dt.file,authority:e.authority!==ss.FALLBACK_AUTHORITY?e.authority:null,query:null,fragment:null}):e}toUri(e,n){return st.isUri(e)?e:st.parse(n.toUrl(e))}registerStaticBrowserUri(e,n){return this.staticBrowserUris.set(e,n),x1(()=>{this.staticBrowserUris.get(e)===n&&this.staticBrowserUris.delete(e)})}getRegisteredBrowserUris(){return this.staticBrowserUris.keys()}};ss.FALLBACK_AUTHORITY=My;let Pu=ss;new Pu;var xg;(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:st.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})(xg||(xg={}));function _i(t){return Ta(t,!0)}class Oy{constructor(e){this._ignorePathCasing=e}compare(e,n,i=!1){return e===n?0:Su(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===dt.file)return _g(_i(e),_i(n),this._ignorePathCasing(e))&&e.query===n.query&&(i||e.fragment===n.fragment);if(kg(e.authority,n.authority))return _g(e.path,n.path,this._ignorePathCasing(e),"/")&&e.query===n.query&&(i||e.fragment===n.fragment)}return!1}joinPath(e,...n){return st.joinPath(e,...n)}basenameOrAuthority(e){return Ay(e)||e.authority}basename(e){return Ze.basename(e.path)}extname(e){return Ze.extname(e.path)}dirname(e){if(e.path.length===0)return e;let n;return e.scheme===dt.file?n=st.file(by(_i(e))).path:(n=Ze.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===dt.file?n=st.file(py(_i(e))).path:n=Ze.normalize(e.path),e.with({path:n})}relativePath(e,n){if(e.scheme!==n.scheme||!kg(e.authority,n.authority))return;if(e.scheme===dt.file){const s=yy(_i(e),_i(n));return qr?B0(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 Ze.relative(i,r)}resolvePath(e,n){if(e.scheme===dt.file){const i=st.file(my(_i(e),n));return e.with({authority:i.authority,path:i.path})}return n=vy(n),e.with({path:Ze.resolve(e.path,n)})}isAbsolutePath(e){return!!e.path&&e.path[0]==="/"}isEqualAuthority(e,n){return e===n||e!==void 0&&n!==void 0&&A4(e,n)}hasTrailingPathSeparator(e,n=ha){if(e.scheme===dt.file){const i=_i(e);return i.length>Cg(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=ha){return Tg(e,n)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,n=ha){let i=!1;if(e.scheme===dt.file){const r=_i(e);i=r!==void 0&&r.length===Cg(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&&!Tg(e,n)?e.with({path:e.path+"/"}):e}}const ze=new Oy(()=>!1);ze.isEqual.bind(ze);ze.isEqualOrParent.bind(ze);ze.getComparisonKey.bind(ze);ze.basenameOrAuthority.bind(ze);const Ay=ze.basename.bind(ze);ze.extname.bind(ze);ze.dirname.bind(ze);ze.joinPath.bind(ze);ze.normalizePath.bind(ze);ze.relativePath.bind(ze);ze.resolvePath.bind(ze);ze.isAbsolutePath.bind(ze);const kg=ze.isEqualAuthority.bind(ze),Tg=ze.hasTrailingPathSeparator.bind(ze);ze.removeTrailingPathSeparator.bind(ze);ze.addTrailingPathSeparator.bind(ze);var Rg;(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})(Rg||(Rg={}));let Ly=class{constructor(e="",n=!1){if(this.value=e,typeof this.value!="string")throw xe("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+=Ny(this.supportThemeIcons?K4(e):e).replace(/([ \t]+)/g,(i,r)=>"&nbsp;".repeat(r.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)=>"&nbsp;".repeat(r.length)).replace(/\>/gm,"\\>").replace(/\n/g,n===1?`\\
53
103
  `:`
54
104
 
55
105
  `),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,n){return this.value+=`
56
- ${$y(n,e)}
57
- `,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(O4(n),"g");return e.replace(i,(r,s)=>e.charAt(s-1)!=="\\"?`\\${r}`:r)}};function Ny(t){return t.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}function $y(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(`
58
- `)}const Mr=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"}),qy=/^(.+)\/(.+?)(;.+)?$/;function Q0(t,e){const n=qy.exec(t);return n?`${n[1].toLowerCase()}/${n[2].toLowerCase()}${n[3]??""}`:e?void 0:t}const mc=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 Hy{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 jy{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?R1(e,this._value,0,e.length,this._from,this._to):qo(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class J0{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?R1(e,this._value,0,e.length,this._from,this._to):qo(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class Wy{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 J0(!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 cg(e,this._value.scheme);if(this._states[this._stateIdx]===2)return cg(e,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(e);if(this._states[this._stateIdx]===4)return Su(e,this._value.query);if(this._states[this._stateIdx]===5)return Su(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 Zo{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 Xi{static forUris(e=()=>!1,n=()=>!1){return new Xi(new Wy(e,n))}static forPaths(e=!1){return new Xi(new J0(void 0,!e))}static forStrings(){return new Xi(new Hy)}static forConfigKeys(){return new Xi(new jy)}constructor(e){this._iter=e}clear(){this._root=void 0}fill(e,n){if(n){const i=n.slice(0);ig(i);for(const r of i)this.set(r,e)}else{const i=e.slice(0);ig(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 Zo,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 Zo,r.left.segment=i.value()),s.push([-1,r]),r=r.left;else if(a<0)r.right||(r.right=new Zo,r.right.segment=i.value()),s.push([1,r]),r=r.right;else if(i.hasNext())i.next(),r.mid||(r.mid=new Zo,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 h=s[a][0],g=s[a+1][0];if(h===1&&g===1)s[a][1]=c.rotateLeft();else if(h===-1&&g===-1)s[a][1]=c.rotateRight();else if(h===1&&g===-1)c.right=s[a+1][1]=s[a+1][1].rotateRight(),s[a][1]=c.rotateLeft();else if(h===-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 $s="vs/platform/files/common/files";var Iu;(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(Iu||(Iu={}));var Fu;(function(t){t[t.Readonly=1]="Readonly",t[t.Locked=2]="Locked"})(Fu||(Fu={}));var Eg;(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"})(Eg||(Eg={}));var Di;(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"})(Di||(Di={}));function Uy(t,e){return t.name=e?`${e} (FileSystemError)`:"FileSystemError",t}var Pg;(function(t){t[t.UPDATED=0]="UPDATED",t[t.ADDED=1]="ADDED",t[t.DELETED=2]="DELETED"})(Pg||(Pg={}));const os=class os{constructor(e,n){this.ignorePathCasing=n,this.correlationId=void 0,this.added=new ds(()=>{const i=Xi.forUris(()=>this.ignorePathCasing);return i.fill(this.rawAdded.map(r=>[r,!0])),i}),this.updated=new ds(()=>{const i=Xi.forUris(()=>this.ignorePathCasing);return i.fill(this.rawUpdated.map(r=>[r,!0])),i}),this.deleted=new ds(()=>{const i=Xi.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!==os.MIXED_CORRELATION&&(typeof i.cId=="number"?this.correlationId===void 0?this.correlationId=i.cId:this.correlationId!==i.cId&&(this.correlationId=os.MIXED_CORRELATION):this.correlationId!==void 0&&(this.correlationId=os.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"}};os.MIXED_CORRELATION=null;let Ig=os;var Fg;(function(t){t[t.FILE=0]="FILE",t[t.FOLDER=1]="FOLDER",t[t.ROOT_FOLDER=2]="ROOT_FOLDER"})(Fg||(Fg={}));const Tt=class Tt{static formatSize(e){return so(e)||(e=0),e<Tt.KB?f($s,1,"{0}B",e.toFixed(0)):e<Tt.MB?f($s,2,"{0}KB",(e/Tt.KB).toFixed(2)):e<Tt.GB?f($s,3,"{0}MB",(e/Tt.MB).toFixed(2)):e<Tt.TB?f($s,4,"{0}GB",(e/Tt.GB).toFixed(2)):f($s,5,"{0}TB",(e/Tt.TB).toFixed(2))}};Tt.KB=1024,Tt.MB=Tt.KB*Tt.KB,Tt.GB=Tt.MB*Tt.KB,Tt.TB=Tt.GB*Tt.KB;let Mg=Tt;var oo;(function(t){t.Unknown="Unknown",t.NotAvailable="NotAvailable",t.TemporarilyNotAvailable="TemporarilyNotAvailable",t.NoResolverFound="NoResolverFound",t.InvalidAuthority="InvalidAuthority"})(oo||(oo={}));const ea=typeof Buffer<"u",zy=new ds(()=>new Uint8Array(256));let Tl,Rl;class yn{static alloc(e){return ea?new yn(Buffer.allocUnsafe(e)):new yn(new Uint8Array(e))}static wrap(e){return ea&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new yn(e)}static fromString(e,n){return!((n==null?void 0:n.dontUseNodeBuffer)||!1)&&ea?new yn(Buffer.from(e)):(Tl||(Tl=new TextEncoder),new yn(Tl.encode(e)))}static fromByteArray(e){const n=yn.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=yn.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=yn.alloc(this.byteLength);return e.set(this),e}toString(){return ea?this.buffer.toString():(Rl||(Rl=new TextDecoder),Rl.decode(this.buffer))}slice(e,n){return new yn(this.buffer.subarray(e,n))}set(e,n){if(e instanceof yn)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 Vy(this.buffer,e)}writeUInt32BE(e,n){Ky(this.buffer,e,n)}readUInt32LE(e){return Gy(this.buffer,e)}writeUInt32LE(e,n){Qy(this.buffer,e,n)}readUInt8(e){return Jy(this.buffer,e)}writeUInt8(e,n){Yy(this.buffer,e,n)}indexOf(e,n=0){return By(this.buffer,e instanceof yn?e.buffer:e,n)}}function By(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=zy.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 Vy(t,e){return t[e]*2**24+t[e+1]*2**16+t[e+2]*2**8+t[e+3]}function Ky(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 Gy(t,e){return t[e+0]<<0>>>0|t[e+1]<<8>>>0|t[e+2]<<16>>>0|t[e+3]<<24>>>0}function Qy(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 Jy(t,e){return t[e]}function Yy(t,e,n){t[n]=e}function Xy(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 yn.wrap(r).slice(0,o)}const Zy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function t5({buffer:t},e=!0,n=!1){const i=n?e5:Zy;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 Og;(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})(Og||(Og={}));const un=class un{static fromArray(e){return new un(n=>{n.emitMany(e)})}static fromPromise(e){return new un(async n=>{n.emitMany(await e)})}static fromPromises(e){return new un(async n=>{await Promise.all(e.map(async i=>n.emitOne(await i)))})}static merge(e){return new un(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 hi,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 wa.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 un(async i=>{for await(const r of e)i.emitOne(n(r))})}map(e){return un.map(this,e)}static filter(e,n){return new un(async i=>{for await(const r of e)n(r)&&i.emitOne(r)})}filter(e){return un.filter(this,e)}static coalesce(e){return un.filter(e,n=>!!n)}coalesce(){return un.coalesce(this)}static async toPromise(e){const n=[];for await(const i of e)n.push(i);return n}toPromise(){return un.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())}};un.EMPTY=un.fromArray([]);let Ag=un;new L0(1e4);const ao="vs/platform/contextkey/common/scanner";function El(...t){switch(t.length){case 1:return f(ao,0,"Did you mean {0}?",t[0]);case 2:return f(ao,1,"Did you mean {0} or {1}?",t[0],t[1]);case 3:return f(ao,2,"Did you mean {0}, {1} or {2}?",t[0],t[1],t[2]);default:return}}const n5=f(ao,3,"Did you forget to open or close the quote?"),i5=f(ao,4,"Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'."),as=class as{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 g4(`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(El("==","=~"));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(El("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(El("||"));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=as._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(n5);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(i5);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&&as._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}};as._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0))),as._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);let Dr=as;const Ui="vs/platform/contextkey/common/contextkey",At=new Map;At.set("false",!1);At.set("true",!0);At.set("isMac",bi);At.set("isLinux",Da);At.set("isWindows",qr);At.set("isWeb",O1);At.set("isMacNative",bi&&!O1);At.set("isEdge",sy);At.set("isFirefox",iy);At.set("isChrome",W0);At.set("isSafari",ry);const r5=Object.prototype.hasOwnProperty,s5={regexParsingWithErrorRecovery:!0},o5=f(Ui,0,"Empty context key expression"),a5=f(Ui,1,"Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),c5=f(Ui,2,"'in' after 'not'."),Lg=f(Ui,3,"closing parenthesis ')'"),l5=f(Ui,4,"Unexpected token"),u5=f(Ui,5,"Did you forget to put && or || before the token?"),d5=f(Ui,6,"Unexpected end of expression"),f5=f(Ui,7,"Did you forget to put a context key?"),Rr=class Rr{get lexingErrors(){return this._scanner.errors}get parsingErrors(){return this._parsingErrors}constructor(e=s5){this._config=e,this._scanner=new Dr,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:o5,offset:0,lexeme:"",additionalInfo:a5});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?u5:void 0;throw this._parsingErrors.push({message:l5,offset:i.offset,lexeme:Dr.getLexeme(i),additionalInfo:r}),Rr._parseError}return n}catch(n){if(n!==Rr._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]:qt.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const n=this._term();e.push(n)}return e.length===1?e[0]:qt.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),Qt.INSTANCE;case 12:return this._advance(),an.INSTANCE;case 0:{this._advance();const n=this._expr();return this._consume(1,Lg),n==null?void 0:n.negate()}case 17:return this._advance(),Ur.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(),qt.true();case 12:return this._advance(),qt.false();case 0:{this._advance();const n=this._expr();return this._consume(1,Lg),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 yo.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(Dr.getLexeme(o)),this._advance(),o=this._peek()}const c=s.join(""),l=c.lastIndexOf("/"),h=l===c.length-1?void 0:this._removeFlagsGY(c.substring(l+1));let g;try{g=new RegExp(c.substring(1,l),h)}catch{throw this._errExpectedButGot("REGEX",r)}return qt.regex(n,g)}case 18:{const s=r.lexeme;this._advance();let o=null;if(!M4(s)){const a=s.indexOf("/"),c=s.lastIndexOf("/");if(a!==c&&a>=0){const l=s.slice(a+1,c),h=s[c+1]==="i"?"i":"";try{o=new RegExp(l,h)}catch{throw this._errExpectedButGot("REGEX",r)}}}if(o===null)throw this._errExpectedButGot("REGEX",r);return yo.create(n,o)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,c5);const r=this._value();return qt.notIn(n,r)}switch(this._peek().type){case 3:{this._advance();const r=this._value();if(this._previous().type===18)return qt.equals(n,r);switch(r){case"true":return qt.has(n);case"false":return qt.not(n);default:return qt.equals(n,r)}}case 4:{this._advance();const r=this._value();if(this._previous().type===18)return qt.notEquals(n,r);switch(r){case"true":return qt.not(n);case"false":return qt.has(n);default:return qt.notEquals(n,r)}}case 5:return this._advance(),zo.create(n,this._value());case 6:return this._advance(),Bo.create(n,this._value());case 7:return this._advance(),Wo.create(n,this._value());case 8:return this._advance(),Uo.create(n,this._value());case 13:return this._advance(),qt.in(n,this._value());default:return qt.has(n)}}case 20:throw this._parsingErrors.push({message:d5,offset:e.offset,lexeme:"",additionalInfo:f5}),Rr._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
59
109
  | KEY '=~' REGEX
60
- | 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=f(Ui,8,`Expected: {0}
61
- Received: '{1}'.`,e,Dr.getLexeme(n)),s=n.offset,o=Dr.getLexeme(n);return this._parsingErrors.push({message:r,offset:s,lexeme:o,additionalInfo:i}),Rr._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}};Rr._parseError=new Error;let Mu=Rr;const G1=class G1{static false(){return Qt.INSTANCE}static true(){return an.INSTANCE}static has(e){return Wr.create(e)}static equals(e,n){return Ho.create(e,n)}static notEquals(e,n){return jo.create(e,n)}static regex(e,n){return yo.create(e,n)}static in(e,n){return yc.create(e,n)}static notIn(e,n){return bc.create(e,n)}static not(e){return Ur.create(e)}static and(...e){return Yi.create(e,null,!0)}static or(...e){return gi.create(e,null,!0)}static greater(e,n){return Wo.create(e,n)}static greaterEquals(e,n){return Uo.create(e,n)}static smaller(e,n){return zo.create(e,n)}static smallerEquals(e,n){return Bo.create(e,n)}static deserialize(e){return e==null?void 0:this._parser.parse(e)}};G1._parser=new Mu({regexParsingWithErrorRecovery:!1});let qt=G1;function co(t,e){return t.cmp(e)}const dc=class dc{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 an.INSTANCE}};dc.INSTANCE=new dc;let Qt=dc;const fc=class fc{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 Qt.INSTANCE}};fc.INSTANCE=new fc;let an=fc;class Wr{static create(e,n=null){const i=At.get(e);return typeof i=="boolean"?i?an.INSTANCE:Qt.INSTANCE:new Wr(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:X0(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=At.get(this.key);return typeof e=="boolean"?e?an.INSTANCE:Qt.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=Ur.create(this.key,this)),this.negated}}class Ho{static create(e,n,i=null){if(typeof n=="boolean")return n?Wr.create(e,i):Ur.create(e,i);const r=At.get(e);return typeof r=="boolean"?n===(r?"true":"false")?an.INSTANCE:Qt.INSTANCE:new Ho(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:zr(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=At.get(this.key);if(typeof e=="boolean"){const n=e?"true":"false";return this.value===n?an.INSTANCE:Qt.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=jo.create(this.key,this.value,this)),this.negated}}class yc{static create(e,n){return new yc(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:zr(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?r5.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=bc.create(this.key,this.valueKey)),this.negated}}class bc{static create(e,n){return new bc(e,n)}constructor(e,n){this.key=e,this.valueKey=n,this.type=11,this._negated=yc.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 jo{static create(e,n,i=null){if(typeof n=="boolean")return n?Ur.create(e,i):Wr.create(e,i);const r=At.get(e);return typeof r=="boolean"?n===(r?"true":"false")?Qt.INSTANCE:an.INSTANCE:new jo(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:zr(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=At.get(this.key);if(typeof e=="boolean"){const n=e?"true":"false";return this.value===n?Qt.INSTANCE:an.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=Ho.create(this.key,this.value,this)),this.negated}}class Ur{static create(e,n=null){const i=At.get(e);return typeof i=="boolean"?i?Qt.INSTANCE:an.INSTANCE:new Ur(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:X0(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=At.get(this.key);return typeof e=="boolean"?e?Qt.INSTANCE:an.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=Wr.create(this.key,this)),this.negated}}function vc(t,e){if(typeof t=="string"){const n=parseFloat(t);isNaN(n)||(t=n)}return typeof t=="string"||typeof t=="number"?e(t):Qt.INSTANCE}class Wo{static create(e,n,i=null){return vc(n,r=>new Wo(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:zr(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=Bo.create(this.key,this.value,this)),this.negated}}class Uo{static create(e,n,i=null){return vc(n,r=>new Uo(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:zr(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=zo.create(this.key,this.value,this)),this.negated}}class zo{static create(e,n,i=null){return vc(n,r=>new zo(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:zr(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=Uo.create(this.key,this.value,this)),this.negated}}class Bo{static create(e,n,i=null){return vc(n,r=>new Bo(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:zr(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=Wo.create(this.key,this.value,this)),this.negated}}class yo{static create(e,n){return new yo(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=Ra.create(this)),this.negated}}class Ra{static create(e){return new Ra(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 Ra(this._actual.map(e))}negate(){return this._actual}}function Y0(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 Yi{static create(e,n,i){return Yi._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=co(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=Y0(this.expr);return e===this.expr?this:Yi.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 Qt.INSTANCE;if(o.type===6){r.push(...o.expr);continue}r.push(o)}if(r.length===0&&s)return an.INSTANCE;if(r.length!==0){if(r.length===1)return r[0];r.sort(co);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=gi.create(o.expr.map(h=>Yi.create([h,a],null,i)),null,c);l&&(r.push(l),r.sort(co))}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 Qt.INSTANCE;if(r.length===1)return r[0]}return new Yi(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 Yi(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=gi.create(e,this,!0)}return this.negated}}class gi{static create(e,n,i){return gi._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=co(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=Y0(this.expr);return e===this.expr?this:gi.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 an.INSTANCE;if(c.type===9){r=r.concat(c.expr);continue}r.push(c)}}if(r.length===0&&s)return Qt.INSTANCE;r.sort(co)}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 an.INSTANCE;if(r.length===1)return r[0]}return new gi(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 gi(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 Ng(n))for(const o of Ng(i))r.push(Yi.create([s,o],null,!1));e.unshift(gi.create(r,null,!1))}this.negated=gi.create(e,this,!0)}return this.negated}}const cs=class cs extends Wr{static all(){return cs._info.values()}constructor(e,n,i){super(e,null),this._defaultValue=n,typeof i=="object"?cs._info.push({...i,key:e}):i!==!0&&cs._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 Ho.create(this.key,e)}notEqualsTo(e){return jo.create(this.key,e)}};cs._info=[];let re=cs;function X0(t,e){return t<e?-1:t>e?1:0}function zr(t,e,n,i){return t<n?-1:t>n?1:e<i?-1:e>i?1:0}function Ng(t){return t.type===9?t.expr:[t]}var Fi;(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})(Fi||(Fi={}));g5("instantiationService");function h5(t,e,n){e[Fi.DI_TARGET]===e?e[Fi.DI_DEPENDENCIES].push({id:t,index:n}):(e[Fi.DI_DEPENDENCIES]=[{id:t,index:n}],e[Fi.DI_TARGET]=e)}function g5(t){if(Fi.serviceIds.has(t))return Fi.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");h5(e,n,r)};return e.toString=()=>t,Fi.serviceIds.set(t,e),e}const Ou=["W","X","Y","Z","a","b","c","d","e","f"],p5=new RegExp(`^[${Ou.join("")}]+`),Z0=7;function m5(t){if(t.scheme!==dt.vscodeNotebookCell)return;const e=t.fragment.indexOf("s");if(e<0)return;const n=parseInt(t.fragment.substring(0,e).replace(p5,""),Z0),i=Xy(t.fragment.substring(e+1)).toString();if(!isNaN(n))return{handle:n,notebook:t.with({scheme:i,fragment:null})}}function y5(t,e){const n=e.toString(Z0),r=`${n.length<Ou.length?Ou[n.length-1]:"z"}${n}s${t5(yn.fromString(t.scheme),!0,!0)}`;return t.with({scheme:dt.vscodeNotebookCell,fragment:r})}var $g;(function(t){t[t.Markup=1]="Markup",t[t.Code=2]="Code"})($g||($g={}));Mr.latex,Mr.markdown,Mr.text;Mr.latex,Mr.markdown,Mr.text;var qg;(function(t){t[t.Unconfirmed=1]="Unconfirmed",t[t.Pending=2]="Pending",t[t.Executing=3]="Executing"})(qg||(qg={}));var Hg;(function(t){t[t.Unconfirmed=1]="Unconfirmed",t[t.Pending=2]="Pending",t[t.Executing=3]="Executing"})(Hg||(Hg={}));var jg;(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"})(jg||(jg={}));var Wg;(function(t){t[t.Handle=0]="Handle",t[t.Index=1]="Index"})(Wg||(Wg={}));var Ug;(function(t){t.scheme=dt.vscodeNotebookCell;function e(a,c){return y5(a,c)}t.generate=e;function n(a){return m5(a)}t.parse=n;function i(a,c){return a.with({scheme:dt.vscodeNotebookCellOutput,fragment:`op${c??""},${a.scheme!==dt.file?a.scheme:""}`})}t.generateCellOutputUri=i;function r(a){if(a.scheme!==dt.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,h=c[2];return{outputId:l,notebook:a.with({scheme:h||dt.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})(Ug||(Ug={}));new re("notebookEditorCursorAtBoundary","none");new re("notebookEditorCursorAtLineBoundary","none");var zg;(function(t){t.default="default",t.option="option"})(zg||(zg={}));const ls=class ls{static create(e){return`${ls._prefix}${e}`}static parse(e){if(e.startsWith(ls._prefix))return e.substring(ls._prefix.length)}};ls._prefix="notebook/";let Bg=ls;function b5(t){return["application/vnd.code.notebook.stdout","application/vnd.code.notebook.stderr"].includes(t)}new TextDecoder;const v5=`${String.fromCharCode(27)}[A`;v5.split("").map(t=>t.charCodeAt(0));var Au,br,Si,Lu,vr,Ji,wr,Nu,$u,pa,Zs,qu,li,ui,Hu,ln,ju;function ie(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 Wu;(function(t){t[t.Top=0]="Top",t[t.Bottom=1]="Bottom"})(Wu||(Wu={}));var Pr,R0;let Uu=Au=(R0=class{constructor(e){Br(this,Pr,void 0);Jo(this,Pr,e)}static from(...e){let n=e;return new Au(function(){if(n){for(const i of n)i&&typeof i.dispose=="function"&&i.dispose();n=void 0}})}dispose(){typeof pt(this,Pr)=="function"&&(pt(this,Pr).call(this),Jo(this,Pr,void 0))}},Pr=new WeakMap,R0);Uu=Au=ne([ie],Uu);let Ye=br=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 br)return!0;const{line:n,character:i}=e;return typeof n=="number"&&typeof i=="number"}static of(e){if(e instanceof br)return e;if(this.isPosition(e))return new br(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 xe("line must be non-negative");if(n<0)throw xe("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 xe();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 br(this.line+i,this.character+n)}with(e,n=this.character){if(e===null||n===null)throw xe();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 br(i,n)}toJSON(){return{line:this.line,character:this.character}}};Ye=br=ne([ie],Ye);let _t=Si=class{static isRange(e){return e instanceof Si?!0:e?Ye.isPosition(e.start)&&Ye.isPosition(e.end):!1}static of(e){if(e instanceof Si)return e;if(this.isRange(e))return new Si(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 Ye(e,n),o=new Ye(i,r)):Ye.isPosition(e)&&Ye.isPosition(n)&&(s=Ye.of(e),o=Ye.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 Si.isRange(e)?this.contains(e.start)&&this.contains(e.end):Ye.isPosition(e)?!(Ye.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=Ye.Max(e.start,this._start),i=Ye.Min(e.end,this._end);if(!n.isAfter(i))return new Si(n,i)}union(e){if(this.contains(e))return this;if(e.contains(this))return e;const n=Ye.Min(e.start,this._start),i=Ye.Max(e.end,this.end);return new Si(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 xe();let i;return e?Ye.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 Si(i,n)}toJSON(){return[this.start,this.end]}};_t=Si=ne([ie],_t);let zu=Lu=class extends _t{static isSelection(e){return e instanceof Lu?!0:e?_t.isRange(e)&&Ye.isPosition(e.anchor)&&Ye.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 Ye(e,n),o=new Ye(i,r)):Ye.isPosition(e)&&Ye.isPosition(n)&&(s=Ye.of(e),o=Ye.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}}};zu=Lu=ne([ie],zu);const e2=t=>{if(typeof t!="string"||t.length===0||!/^[0-9A-Za-z_\-]+$/.test(t))throw xe("connectionToken")};let w5=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 xe("host");if(typeof n!="number"||n===0||Math.round(n)!==n)throw xe("port");typeof i<"u"&&e2(i),this.host=e,this.port=Math.round(n),this.connectionToken=i}},C5=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"&&e2(n)}},_5=class ma extends Error{static NotAvailable(e,n){return new ma(e,oo.NotAvailable,n)}static TemporarilyNotAvailable(e){return new ma(e,oo.TemporarilyNotAvailable)}constructor(e,n=oo.Unknown,i){super(e),this._message=e,this._code=n,this._detail=i,Object.setPrototypeOf(this,ma.prototype)}};var Bu;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Bu||(Bu={}));var Vu;(function(t){t[t.Replace=1]="Replace",t[t.Append=2]="Append",t[t.Prepend=3]="Prepend"})(Vu||(Vu={}));let Ea=vr=class{static isTextEdit(e){return e instanceof vr?!0:e?_t.isRange(e)&&typeof e.newText=="string":!1}static replace(e,n){return new vr(e,n)}static insert(e,n){return vr.replace(new _t(e,e),n)}static delete(e){return vr.replace(e,"")}static setEndOfLine(e){const n=new vr(new _t(new Ye(0,0),new Ye(0,0)),"");return n.newEol=e,n}get range(){return this._range}set range(e){if(e&&!_t.isRange(e))throw xe("range");this._range=e}get newText(){return this._newText||""}set newText(e){if(e&&typeof e!="string")throw xe("newText");this._newText=e}get newEol(){return this._newEol}set newEol(e){if(e&&typeof e!="number")throw xe("newEol");this._newEol=e}constructor(e,n){this._range=e,this._newText=n}toJSON(){return{range:this.range,newText:this.newText,newEol:this._newEol}}};Ea=vr=ne([ie],Ea);let Pa=Ji=class{static isNotebookCellEdit(e){return e instanceof Ji?!0:e?to.isNotebookRange(e)&&Array.isArray(e.newCells):!1}static replaceCells(e,n){return new Ji(e,n)}static insertCells(e,n){return new Ji(new to(e,e),n)}static deleteCells(e){return new Ji(e,[])}static updateCellMetadata(e,n){const i=new Ji(new to(e,e),[]);return i.newCellMetadata=n,i}static updateNotebookMetadata(e){const n=new Ji(new to(0,0),[]);return n.newNotebookMetadata=e,n}constructor(e,n){this.range=e,this.newCells=n}};Pa=Ji=ne([ie],Pa);let t2=class ya{static isSnippetTextEdit(e){return e instanceof ya?!0:e?_t.isRange(e.range)&&Ia.isSnippetString(e.snippet):!1}static replace(e,n){return new ya(e,n)}static insert(e,n){return ya.replace(new _t(e,e),n)}constructor(e,n){this.range=e,this.snippet=n}},Ku=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 Ea(n,i),metadata:r})}insert(e,n,i,r){this.replace(e,new _t(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,Pa.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):t2.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}}a4(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 va;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()}};Ku=ne([ie],Ku);let Ia=wr=class{static isSnippetString(e){return e instanceof wr?!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+=wr._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 wr;i._tabstop=this._tabstop,e(i),this._tabstop=i._tabstop,e=i.value}else e=wr._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 wr;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}};Ia=wr=ne([ie],Ia);var Gu;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(Gu||(Gu={}));var bo;(function(t){t[t.Hint=3]="Hint",t[t.Information=2]="Information",t[t.Warning=1]="Warning",t[t.Error=0]="Error"})(bo||(bo={}));let vo=Nu=class{static isLocation(e){return e instanceof Nu?!0:e?_t.isRange(e.range)&&st.isUri(e.uri):!1}constructor(e,n){if(this.uri=e,n)if(_t.isRange(n))this.range=_t.of(n);else if(Ye.isPosition(n))this.range=new _t(n,n);else throw new Error("Illegal argument")}toJSON(){return{uri:this.uri,range:this.range}}};vo=Nu=ne([ie],vo);let Fa=class{static is(e){return e?typeof e.message=="string"&&e.location&&_t.isRange(e.location.range)&&st.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()}};Fa=ne([ie],Fa);let Qu=class{constructor(e,n,i=bo.Error){if(!_t.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:bo[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)&&yu(e.tags,n.tags)&&yu(e.relatedInformation,n.relatedInformation,Fa.isEqual)}};Qu=ne([ie],Qu);let Ma=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}};Ma=ne([ie],Ma);let Vg=class extends Ma{constructor(e,n,i,r){super(e,n),this.canIncreaseHover=i,this.canDecreaseHover=r}};Vg=ne([ie],Vg);var Kg;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(Kg||(Kg={}));var wo;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(wo||(wo={}));let Ju=class{constructor(e,n=wo.Text){this.range=e,this.kind=n}toJSON(){return{range:this.range,kind:wo[this.kind]}}};Ju=ne([ie],Ju);let Yu=class{constructor(e,n){this.uri=e,this.highlights=n}toJSON(){return{uri:this.uri,highlights:this.highlights.map(e=>e.toJSON())}}};Yu=ne([ie],Yu);var Oa;(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"})(Oa||(Oa={}));var Xu;(function(t){t[t.Deprecated=1]="Deprecated"})(Xu||(Xu={}));let Zu=$u=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 vo?this.location=r:i instanceof _t&&(this.location=new vo(r,i)),$u.validate(this)}toJSON(){return{name:this.name,kind:Oa[this.kind],location:this.location,containerName:this.containerName}}};Zu=$u=ne([ie],Zu);let ed=pa=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(pa.validate)}constructor(e,n,i,r,s){this.name=e,this.detail=n,this.kind=i,this.range=r,this.selectionRange=s,this.children=[],pa.validate(this)}};ed=pa=ne([ie],ed);var td;(function(t){t[t.Invoke=1]="Invoke",t[t.Automatic=2]="Automatic"})(td||(td={}));let nd=class{constructor(e,n){this.title=e,this.kind=n}};nd=ne([ie],nd);var Ms;let lt=(Ms=class{constructor(e){this.value=e}append(e){return new Zs(this.value?this.value+Zs.sep+e:e)}intersects(e){return this.contains(e)||e.contains(this)}contains(e){return this.value===e.value||e.value.startsWith(this.value+Zs.sep)}},Zs=Ms,Ms.sep=".",Ms);lt=Zs=ne([ie],lt);lt.Empty=new lt("");lt.QuickFix=lt.Empty.append("quickfix");lt.Refactor=lt.Empty.append("refactor");lt.RefactorExtract=lt.Refactor.append("extract");lt.RefactorInline=lt.Refactor.append("inline");lt.RefactorMove=lt.Refactor.append("move");lt.RefactorRewrite=lt.Refactor.append("rewrite");lt.Source=lt.Empty.append("source");lt.SourceOrganizeImports=lt.Source.append("organizeImports");lt.SourceFixAll=lt.Source.append("fixAll");lt.Notebook=lt.Empty.append("notebook");let id=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")}};id=ne([ie],id);let S5=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}},D5=class{constructor(e,n){this.fromRanges=n,this.from=e}},x5=class{constructor(e,n){this.fromRanges=n,this.to=e}};var rd;(function(t){t[t.Information=0]="Information",t[t.Warning=1]="Warning",t[t.Error=2]="Error"})(rd||(rd={}));let sd=class{constructor(e,n){this.range=e,this.command=n}get isResolved(){return!!this.command}};sd=ne([ie],sd);var Bt,E0;let Aa=qu=(E0=class{constructor(e,n=!1){Br(this,Bt,void 0);Jo(this,Bt,new Ly(e,{supportThemeIcons:n}))}static isMarkdownString(e){return e instanceof qu?!0:e&&e.appendCodeblock&&e.appendMarkdown&&e.appendText&&e.value!==void 0}get value(){return pt(this,Bt).value}set value(e){pt(this,Bt).value=e}get isTrusted(){return pt(this,Bt).isTrusted}set isTrusted(e){pt(this,Bt).isTrusted=e}get supportThemeIcons(){return pt(this,Bt).supportThemeIcons}set supportThemeIcons(e){pt(this,Bt).supportThemeIcons=e}get supportHtml(){return pt(this,Bt).supportHtml}set supportHtml(e){pt(this,Bt).supportHtml=e}get baseUri(){return pt(this,Bt).baseUri}set baseUri(e){pt(this,Bt).baseUri=e}appendText(e){return pt(this,Bt).appendText(e),this}appendMarkdown(e){return pt(this,Bt).appendMarkdown(e),this}appendCodeblock(e,n){return pt(this,Bt).appendCodeblock(n??"",e),this}},Bt=new WeakMap,E0);Aa=qu=ne([ie],Aa);let od=class{constructor(e,n){this.label=e,this.documentation=n}};od=ne([ie],od);let ad=class{constructor(e,n){this.label=e,this.documentation=n,this.parameters=[]}};ad=ne([ie],ad);let cd=class{constructor(){this.activeSignature=0,this.activeParameter=0,this.signatures=[]}};cd=ne([ie],cd);var ld;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(ld||(ld={}));var ud;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(ud||(ud={}));let dd=class{constructor(e){this.value=e}};dd=ne([ie],dd);let fd=class{constructor(e,n,i){this.position=e,this.label=n,this.kind=i}};fd=ne([ie],fd);var hd;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(hd||(hd={}));var La;(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"})(La||(La={}));var gd;(function(t){t[t.Deprecated=1]="Deprecated"})(gd||(gd={}));let pd=class{constructor(e,n){this.label=e,this.kind=n}toJSON(){return{label:this.label,kind:this.kind&&La[this.kind],detail:this.detail,documentation:this.documentation,sortText:this.sortText,filterText:this.filterText,preselect:this.preselect,insertText:this.insertText,textEdit:this.textEdit}}};pd=ne([ie],pd);let md=class{constructor(e=[],n=!1){this.items=e,this.isIncomplete=n}};md=ne([ie],md);let yd=class{constructor(e,n,i){this.insertText=e,this.range=n,this.command=i}};yd=ne([ie],yd);let bd=class{constructor(e){this.commands=void 0,this.suppressSuggestions=void 0,this.items=e}};bd=ne([ie],bd);var Gg;(function(t){t[t.Unknown=0]="Unknown",t[t.Word=1]="Word",t[t.Line=2]="Line",t[t.Suggest=3]="Suggest"})(Gg||(Gg={}));var vd;(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"})(vd||(vd={}));var wd;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(wd||(wd={}));var Cd;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval"})(Cd||(Cd={}));var _d;(function(t){t[t.Manual=1]="Manual",t[t.AfterDelay=2]="AfterDelay",t[t.FocusOut=3]="FocusOut"})(_d||(_d={}));var Sd;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(Sd||(Sd={}));var Co;(function(t){t[t.Keyboard=1]="Keyboard",t[t.Mouse=2]="Mouse",t[t.Command=3]="Command"})(Co||(Co={}));var Dd;(function(t){t[t.Undo=1]="Undo",t[t.Redo=2]="Redo"})(Dd||(Dd={}));var xd;(function(t){t[t.OpenOpen=0]="OpenOpen",t[t.ClosedClosed=1]="ClosedClosed",t[t.OpenClosed=2]="OpenClosed",t[t.ClosedOpen=3]="ClosedOpen"})(xd||(xd={}));(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})(Co||(Co={}));var _o;(function(t){t[t.Other=0]="Other",t[t.Comment=1]="Comment",t[t.String=2]="String",t[t.RegEx=3]="RegEx"})(_o||(_o={}));(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})(_o||(_o={}));let kd=class{constructor(e,n){if(n&&!st.isUri(n))throw xe("target");if(!_t.isRange(e)||e.isEmpty)throw xe("range");this.range=e,this.target=n}};kd=ne([ie],kd);let Na=class{constructor(e,n,i,r){this.red=e,this.green=n,this.blue=i,this.alpha=r}};Na=ne([ie],Na);let Td=class{constructor(e,n){if(n&&!(n instanceof Na))throw xe("color");if(!_t.isRange(e)||e.isEmpty)throw xe("range");this.range=e,this.color=n}};Td=ne([ie],Td);let Rd=class{constructor(e){if(!e||typeof e!="string")throw xe("label");this.label=e}};Rd=ne([ie],Rd);var Ed;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Information=2]="Information"})(Ed||(Ed={}));var Pd;(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"})(Pd||(Pd={}));var Qg;(function(t){t[t.Low=0]="Low",t[t.Medium=1]="Medium",t[t.High=2]="High"})(Qg||(Qg={}));let k5=class{constructor(e,n,i){if(this.startIndex=e,this.length=n,this.tooltip=i,typeof e!="number"||e<0)throw xe("startIndex");if(typeof n!="number"||n<1)throw xe("length");if(i!==void 0&&typeof i!="string")throw xe("tooltip")}},T5=class{constructor(e){this.uri=e}};class R5{constructor(e){this.terminalCommand=e}}var Id;(function(t){t[t.Panel=1]="Panel",t[t.Editor=2]="Editor"})(Id||(Id={}));let E5=class{constructor(e){if(this.options=e,typeof e!="object")throw xe("options")}};var Fd;(function(t){t[t.Always=1]="Always",t[t.Silent=2]="Silent",t[t.Never=3]="Never"})(Fd||(Fd={}));var Md;(function(t){t[t.Shared=1]="Shared",t[t.Dedicated=2]="Dedicated",t[t.New=3]="New"})(Md||(Md={}));var Pi;let Od=(Pi=class{static from(e){switch(e){case"clean":return li.Clean;case"build":return li.Build;case"rebuild":return li.Rebuild;case"test":return li.Test;default:return}}constructor(e,n){if(this.label=n,typeof e!="string"||typeof n!="string")throw xe("name");this._id=e}get id(){return this._id}},li=Pi,Pi.Clean=new li("clean","Clean"),Pi.Build=new li("build","Build"),Pi.Rebuild=new li("rebuild","Rebuild"),Pi.Test=new li("test","Test"),Pi);Od=li=ne([ie],Od);function n2(t){let e="";for(let n=0;n<t.length;n++)e+=t[n].replace(/,/g,",,")+",";return e}let $a=class{constructor(e,n,i){if(typeof e!="string")throw xe("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 xe("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 n2(e)}};$a=ne([ie],$a);let qa=class{constructor(e,n,i){if(this._args=[],Array.isArray(n)){if(!e)throw xe("command can't be undefined or null");if(typeof e!="string"&&typeof e.value!="string")throw xe("command");this._command=e,this._args=n,this._options=i}else{if(typeof e!="string")throw xe("commandLine");this._commandLine=e,this._options=n}}get commandLine(){return this._commandLine}set commandLine(e){if(typeof e!="string")throw xe("commandLine");this._commandLine=e}get command(){return this._command?this._command:""}set command(e){if(typeof e!="string"&&typeof e.value!="string")throw xe("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 n2(e)}};qa=ne([ie],qa);var Ad;(function(t){t[t.Escape=1]="Escape",t[t.Strong=2]="Strong",t[t.Weak=3]="Weak"})(Ad||(Ad={}));var So;(function(t){t[t.Global=1]="Global",t[t.Workspace=2]="Workspace"})(So||(So={}));let i2=class{constructor(e){this._callback=e}computeId(){return"customExecution"+mc()}set callback(e){this._callback=e}get callback(){return this._callback}};var Ii;let Ld=(Ii=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===So.Global||n===So.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 $a?this._definition={type:ui.ProcessType,id:this._execution.computeId()}:this._execution instanceof qa?this._definition={type:ui.ShellType,id:this._execution.computeId()}:this._execution instanceof i2?this._definition={type:ui.ExtensionCallbackType,id:this._execution.computeId()}:this._definition={type:ui.EmptyType,id:mc()}}get definition(){return this._definition}set definition(e){if(e==null)throw xe("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 xe("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;(ui.EmptyType===n||ui.ProcessType===n||ui.ShellType===n||ui.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 xe("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}},ui=Ii,Ii.ExtensionCallbackType="customExecution",Ii.ProcessType="process",Ii.ShellType="shell",Ii.EmptyType="$empty",Ii);Ld=ui=ne([ie],Ld);var Nd;(function(t){t[t.SourceControl=1]="SourceControl",t[t.Window=10]="Window",t[t.Notification=15]="Notification"})(Nd||(Nd={}));var Jg;(function(t){function e(n){const i=n;return so(i.value)?i.tooltip&&!Tn(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})(Jg||(Jg={}));let $d=Hu=class{static isTreeItem(e,n){var r,s;const i=e;if(i.checkboxState!==void 0){const o=so(i.checkboxState)?i.checkboxState:yg(i.checkboxState)&&so(i.checkboxState.state)?i.checkboxState.state:void 0,a=!so(i.checkboxState)&&yg(i.checkboxState)?i.checkboxState.tooltip:void 0;if(o===void 0||o!==Do.Checked&&o!==Do.Unchecked||a!==void 0&&!Tn(a))return console.log("INVALID tree item, invalid checkboxState",i.checkboxState),!1}if(e instanceof Hu)return!0;if(i.label!==void 0&&!Tn(i.label)&&!((r=i.label)!=null&&r.label))return console.log("INVALID tree item, invalid label",i.label),!1;if(i.id!==void 0&&!Tn(i.id))return console.log("INVALID tree item, invalid id",i.id),!1;if(i.iconPath!==void 0&&!Tn(i.iconPath)&&!st.isUri(i.iconPath)&&(!i.iconPath||!Tn(i.iconPath.id))){const o=i.iconPath;if(!o||!Tn(o.light)&&!st.isUri(o.light)&&!Tn(o.dark)&&!st.isUri(o.dark))return console.log("INVALID tree item, invalid iconPath",i.iconPath),!1}return i.description!==void 0&&!Tn(i.description)&&typeof i.description!="boolean"?(console.log("INVALID tree item, invalid description",i.description),!1):i.resourceUri!==void 0&&!st.isUri(i.resourceUri)?(console.log("INVALID tree item, invalid resourceUri",i.resourceUri),!1):i.tooltip!==void 0&&!Tn(i.tooltip)&&!(i.tooltip instanceof Aa)?(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<fs.None&&i.collapsibleState>fs.Expanded?(console.log("INVALID tree item, invalid collapsibleState",i.collapsibleState),!1):i.contextValue!==void 0&&!Tn(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=fs.None){this.collapsibleState=n,st.isUri(e)?this.resourceUri=e:this.label=e}};$d=Hu=ne([ie],$d);var fs;(function(t){t[t.None=0]="None",t[t.Collapsed=1]="Collapsed",t[t.Expanded=2]="Expanded"})(fs||(fs={}));var Do;(function(t){t[t.Unchecked=0]="Unchecked",t[t.Checked=1]="Checked"})(Do||(Do={}));let qd=class{async asString(){return typeof this.value=="string"?this.value:JSON.stringify(this.value)}asFile(){}constructor(e){this.value=e}};qd=ne([ie],qd);var Ei,Ir,eo,P0;let Hd=(P0=class{constructor(e){Br(this,Ir);Br(this,Ei,new Map);for(const[n,i]of e??[]){const r=pt(this,Ei).get(Ns(this,Ir,eo).call(this,n));r?r.push(i):pt(this,Ei).set(Ns(this,Ir,eo).call(this,n),[i])}}get(e){var n;return(n=pt(this,Ei).get(Ns(this,Ir,eo).call(this,e)))==null?void 0:n[0]}set(e,n){pt(this,Ei).set(Ns(this,Ir,eo).call(this,e),[n])}forEach(e,n){for(const[i,r]of pt(this,Ei))for(const s of r)e.call(n,s,i,this)}*[Symbol.iterator](){for(const[e,n]of pt(this,Ei))for(const i of n)yield[e,i]}},Ei=new WeakMap,Ir=new WeakSet,eo=function(e){return e.toLowerCase()},P0);Hd=ne([ie],Hd);let jd=class{constructor(e,n,i){this.insertText=e,this.title=n,this.kind=i}};jd=ne([ie],jd);var Yg;(function(t){t[t.Automatic=0]="Automatic",t[t.PasteAs=1]="PasteAs"})(Yg||(Yg={}));const us=class us{constructor(e){this.value=e}append(...e){return new us((this.value?[this.value,...e]:e).join(us.sep))}intersects(e){return this.contains(e)||e.contains(this)}contains(e){return this.value===e.value||e.value.startsWith(this.value+us.sep)}};us.sep=".";let Ha=us;Ha.Empty=new Ha("");let P5=class{constructor(e,n,i){this.title=n,this.insertText=e,this.kind=i}},ji=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}};ji=ne([ie],ji);ji.File=new ji("file");ji.Folder=new ji("folder");let Wd=class{constructor(e){this.id=e}};Wd=ne([ie],Wd);var Ud;(function(t){t[t.Global=1]="Global",t[t.Workspace=2]="Workspace",t[t.WorkspaceFolder=3]="WorkspaceFolder"})(Ud||(Ud={}));let zd=class{get base(){return this._base}set base(e){this._base=e,this._baseUri=st.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||!st.isUri(e)&&!st.isUri(e.uri)))throw xe("base");if(typeof n!="string")throw xe("pattern");typeof e=="string"?this.baseUri=st.file(e):st.isUri(e)?this.baseUri=e:this.baseUri=e.uri,this.pattern=n}toJSON(){return{pattern:this.pattern,base:this.base,baseUri:this.baseUri.toJSON()}}};zd=ne([ie],zd);const I5=new WeakMap;let ps=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=I5.get(this)??mc()),this._id}};ps=ne([ie],ps);let Bd=class extends ps{constructor(e,n,i,r,s,o){if(super(n,i,r,s,o),e===null)throw xe("location");this.location=e}};Bd=ne([ie],Bd);let Vd=class extends ps{constructor(e,n,i,r,s,o){super(n,i,r,s,o),this.functionName=e}};Vd=ne([ie],Vd);let Xg=class extends ps{constructor(e,n,i,r,s,o,a,c){if(super(r,s,o,a,c),!n)throw xe("dataId");this.label=e,this.dataId=n,this.canPersist=i}};Xg=ne([ie],Xg);let Kd=class{constructor(e,n,i){this.command=e,this.args=n||[],this.options=i}};Kd=ne([ie],Kd);let Gd=class{constructor(e,n){this.port=e,this.host=n}};Gd=ne([ie],Gd);let Qd=class{constructor(e){this.path=e}};Qd=ne([ie],Qd);let Jd=class{constructor(e){this.implementation=e}};Jd=ne([ie],Jd);let Yd=class{constructor(e,n){this.range=e,this.expression=n}};Yd=ne([ie],Yd);var Xd;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(Xd||(Xd={}));let Zd=class{constructor(e,n){this.range=e,this.text=n}};Zd=ne([ie],Zd);let ef=class{constructor(e,n,i=!0){this.range=e,this.variableName=n,this.caseSensitiveLookup=i}};ef=ne([ie],ef);let tf=class{constructor(e,n){this.range=e,this.expression=n}};tf=ne([ie],tf);let Zg=class{constructor(e,n){this.frameId=e,this.stoppedLocation=n}};Zg=ne([ie],Zg);var ep;(function(t){t[t.AIGenerated=1]="AIGenerated"})(ep||(ep={}));var tp;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(tp||(tp={}));var nf;(function(t){t[t.Changed=1]="Changed",t[t.Created=2]="Created",t[t.Deleted=3]="Deleted"})(nf||(nf={}));let rf=ln=class extends Error{static FileExists(e){return new ln(e,Di.FileExists,ln.FileExists)}static FileNotFound(e){return new ln(e,Di.FileNotFound,ln.FileNotFound)}static FileNotADirectory(e){return new ln(e,Di.FileNotADirectory,ln.FileNotADirectory)}static FileIsADirectory(e){return new ln(e,Di.FileIsADirectory,ln.FileIsADirectory)}static NoPermissions(e){return new ln(e,Di.NoPermissions,ln.NoPermissions)}static Unavailable(e){return new ln(e,Di.Unavailable,ln.Unavailable)}constructor(e,n=Di.Unknown,i){super(st.isUri(e)?e.toString(!0):e),this.code=(i==null?void 0:i.name)??"Unknown",Uy(this,n),Object.setPrototypeOf(this,ln.prototype),typeof Error.captureStackTrace=="function"&&typeof i=="function"&&Error.captureStackTrace(this,i)}};rf=ln=ne([ie],rf);let sf=class{constructor(e,n,i){this.start=e,this.end=n,this.kind=i}};sf=ne([ie],sf);var of;(function(t){t[t.Comment=1]="Comment",t[t.Imports=2]="Imports",t[t.Region=3]="Region"})(of||(of={}));var af;(function(t){t[t.Collapsed=0]="Collapsed",t[t.Expanded=1]="Expanded"})(af||(af={}));var cf;(function(t){t[t.Editing=0]="Editing",t[t.Preview=1]="Preview"})(cf||(cf={}));var lf;(function(t){t[t.Published=0]="Published",t[t.Draft=1]="Draft"})(lf||(lf={}));var uf;(function(t){t[t.Unresolved=0]="Unresolved",t[t.Resolved=1]="Resolved"})(uf||(uf={}));var np;(function(t){t[t.Current=0]="Current",t[t.Outdated=1]="Outdated"})(np||(np={}));let F5=class{constructor(e,n=[]){this.tokenTypes=e,this.tokenModifiers=n}};function M5(t){return typeof t>"u"||W4(t)}let O5=class r2{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(_t.isRange(e)&&typeof n=="string"&&M5(i))return this._push(e,n,i);throw xe()}_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 h=this._tokenModifierStrToInt.get(l);c|=1<<h>>>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,h=0;for(let g=0;g<c;g++){let p=this._data[5*g],w=this._data[5*g+1];p===0?(p=l,w+=h):p+=l,this._data[5*g]=p,this._data[5*g+1]=w,l=p,h=w}}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],h=e[5*c];if(l===h){const g=e[5*a+1],p=e[5*c+1];return g-p}return l-h});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],h=e[c+1],g=e[c+2],p=e[c+3],w=e[c+4],v=l-s,x=v===0?h-o:h,T=5*a;r[T+0]=v,r[T+1]=x,r[T+2]=g,r[T+3]=p,r[T+4]=w,s=l,o=h}return r}build(e){return this._dataIsSortedAndDeltaEncoded?new df(new Uint32Array(this._data),e):new df(r2._sortAndDeltaEncode(this._data),e)}},df=class{constructor(e,n){this.resultId=n,this.data=e}},A5=class{constructor(e,n,i){this.start=e,this.deleteCount=n,this.data=i}},L5=class{constructor(e,n){this.resultId=n,this.edits=e}};var ff;(function(t){t[t.Separate=0]="Separate",t[t.MergeWithParent=1]="MergeWithParent"})(ff||(ff={}));let N5=class{constructor(e){this.name=e}};var No;let hf=(No=class{constructor(){}},No.Back={iconPath:new ji("arrow-left")},No);hf=ne([ie],hf);var gf;(function(t){t[t.Separator=-1]="Separator",t[t.Default=0]="Default"})(gf||(gf={}));var pf;(function(t){t[t.Info=1]="Info",t[t.Warning=2]="Warning",t[t.Error=3]="Error"})(pf||(pf={}));var mf;(function(t){t[t.UI=1]="UI",t[t.Workspace=2]="Workspace"})(mf||(mf={}));let ip=class{static validate(e){if(typeof e.badge=="string"){let n=ug(e.badge,0);if(n<e.badge.length&&(n+=ug(e.badge,n)),e.badge.length>n)throw new Error("The 'badge'-property must be undefined or a short character")}else if(e.badge&&!ji.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}},rp=class{constructor(e){this.kind=e}};rp=ne([ie],rp);var yf;(function(t){t[t.Light=1]="Light",t[t.Dark=2]="Dark",t[t.HighContrast=3]="HighContrast",t[t.HighContrastLight=4]="HighContrastLight"})(yf||(yf={}));let to=class bf{static isNotebookRange(e){return e instanceof bf?!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 xe("start must be positive");if(n<0)throw xe("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 bf(n,i)}},$5=class vf{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=>vf.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,vf.validate(this)}},q5=class{constructor(e){this.cells=e}};var Rn,hc;let H5=(Rn=class{static isNotebookCellOutputItem(e){return e instanceof Rn?!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 Rn.json(n,"application/vnd.code.notebook.error")}static stdout(e){return Rn.text(e,"application/vnd.code.notebook.stdout")}static stderr(e){return Rn.text(e,"application/vnd.code.notebook.stderr")}static bytes(e,n="application/octet-stream"){return new Rn(e,n)}static text(e,n=Mr.text){const i=pt(Rn,hc).encode(String(e));return new Rn(i,n)}static json(e,n="text/x-json"){const i=JSON.stringify(e,void 0," ");return Rn.text(i,n)}constructor(e,n){this.data=e,this.mime=n;const i=Q0(n,!0);if(!i)throw new Error(`INVALID mime type: ${n}. Must be in the format "type/subtype[;optionalparameter]"`);this.mime=i}},hc=new WeakMap,Br(Rn,hc,new TextEncoder),Rn),j5=class wf{static isNotebookCellOutput(e){return e instanceof wf?!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=Q0(o.mime);if(!i.has(a)||b5(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=wf.ensureUniqueMimeTypes(e,!0),typeof n=="string"?(this.id=n,this.metadata=i):(this.id=mc(),this.metadata=n??i)}};var Cf;(function(t){t[t.Markup=1]="Markup",t[t.Code=2]="Code"})(Cf||(Cf={}));var _f;(function(t){t[t.Idle=1]="Idle",t[t.Pending=2]="Pending",t[t.Executing=3]="Executing"})(_f||(_f={}));var Sf;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(Sf||(Sf={}));var Df;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(Df||(Df={}));let W5=class{constructor(e,n){this.text=e,this.alignment=n}};var xf;(function(t){t[t.Default=1]="Default",t[t.Preferred=2]="Preferred"})(xf||(xf={}));var kf;(function(t){t[t.Default=1]="Default",t[t.Preferred=2]="Preferred",t[t.Hidden=-1]="Hidden"})(kf||(kf={}));let U5=class{constructor(e,n=[]){this.uri=e,this.provides=c4(n)}},z5=class{constructor(e){this.label=e}};var sp;(function(t){t[t.Named=1]="Named",t[t.Indexed=2]="Indexed"})(sp||(sp={}));let Tf=class{constructor(e,n){this.label=e,this.timestamp=n}};Tf=ne([ie],Tf);var Rf;(function(t){t[t.Production=1]="Production",t[t.Development=2]="Development",t[t.Test=3]="Test"})(Rf||(Rf={}));var Ef;(function(t){t[t.Node=1]="Node",t[t.Webworker=2]="Webworker"})(Ef||(Ef={}));var Pf;(function(t){t[t.Other=0]="Other",t[t.Comment=1]="Comment",t[t.String=2]="String",t[t.RegEx=3]="RegEx"})(Pf||(Pf={}));let B5=class{constructor(e,n){this.ranges=e,this.wordPattern=n}},V5=class{constructor(e){this._autoForwardAction=e}get autoForwardAction(){return this._autoForwardAction}};var If;(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"})(If||(If={}));var Ff;(function(t){t[t.Run=1]="Run",t[t.Debug=2]="Debug",t[t.Coverage=3]="Coverage"})(Ff||(Ff={}));let Mf=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}};Mf=ne([ie],Mf);let ja=ju=class{static diff(e,n,i){const r=new ju(e);return r.expectedOutput=n,r.actualOutput=i,r}constructor(e){this.message=e}};ja=ju=ne([ie],ja);let Of=class{constructor(e){this.id=e}};Of=ne([ie],Of);class Pl{constructor(e,n){this.covered=e,this.total=n,K5(this)}}function K5(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 G5=class s2{static fromDetails(e,n){const i=new Pl(0,0),r=new Pl(0,0),s=new Pl(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 s2(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}},Q5=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}},J5=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 Y5{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 Af;(function(t){t[t.None=0]="None",t[t.Option=1]="Option",t[t.Default=2]="Default",t[t.Preferred=3]="Preferred"})(Af||(Af={}));var Lf;(function(t){t[t.Untrusted=0]="Untrusted",t[t.Trusted=1]="Trusted",t[t.Unspecified=2]="Unspecified"})(Lf||(Lf={}));var Nf;(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"})(Nf||(Nf={}));let X5=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 Z5{constructor(e){this.uri=e}}class eb{constructor(e,n){this.original=e,this.modified=n}}class tb{constructor(e,n,i,r){this.base=e,this.input1=n,this.input2=i,this.result=r}}class nb{constructor(e,n){this.uri=e,this.viewType=n}}class ib{constructor(e){this.viewType=e}}class rb{constructor(e,n){this.uri=e,this.notebookType=n}}class sb{constructor(e,n,i){this.original=e,this.modified=n,this.notebookType=i}}class ob{constructor(){}}class ab{constructor(e,n){this.uri=e,this.inputBoxUri=n}}class cb{constructor(){}}var $f;(function(t){t[t.Down=0]="Down",t[t.Up=1]="Up"})($f||($f={}));var qf;(function(t){t[t.Action=1]="Action",t[t.Toolbar=2]="Toolbar"})(qf||(qf={}));var Hf;(function(t){t[t.Short=1]="Short",t[t.Medium=2]="Medium",t[t.Full=3]="Full"})(Hf||(Hf={}));let lb=class{constructor(e,n){this.label=e,this.values=n}};var jf;(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"})(jf||(jf={}));var Wf;(function(t){t[t.Unhelpful=0]="Unhelpful",t[t.Helpful=1]="Helpful"})(Wf||(Wf={}));var op;(function(t){t[t.Panel=1]="Panel",t[t.Terminal=2]="Terminal",t[t.Notebook=3]="Notebook",t[t.Editor=4]="Editor"})(op||(op={}));var Uf;(function(t){t[t.SymbolInformation=1]="SymbolInformation",t[t.CommandInformation=2]="CommandInformation",t[t.SearchInformation=3]="SearchInformation",t[t.SettingInformation=4]="SettingInformation"})(Uf||(Uf={}));var zf;(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"})(zf||(zf={}));var Bf;(function(t){t[t.Recognized=1]="Recognized",t[t.Stopped=2]="Stopped"})(Bf||(Bf={}));var ap;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(ap||(ap={}));var Vf;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(Vf||(Vf={}));const gc=class gc{constructor(e){this._proxyIdentifierBrand=void 0,this.sid=e,this.nid=++gc.count}};gc.count=0;let Kf=gc;const ub=[];function F(t){const e=new Kf(t);return ub[e.nid]=e,e}var cp;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(cp||(cp={}));var lp;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(lp||(lp={}));var Gf;(function(t){t[t.None=0]="None",t[t.Process=1]="Process",t[t.Output=2]="Output"})(Gf||(Gf={}));F("MainThreadAuthentication"),F("MainThreadBulkEdits"),F("MainThreadLanguageModels"),F("MainThreadChatAgents2"),F("MainThreadChatVariables"),F("MainThreadClipboard"),F("MainThreadCommands"),F("MainThreadComments"),F("MainThreadConfiguration"),F("MainThreadConsole"),F("MainThreadDebugService"),F("MainThreadDecorations"),F("MainThreadDiagnostics"),F("MainThreadDiaglogs"),F("MainThreadDocuments"),F("MainThreadDocumentContentProviders"),F("MainThreadTextEditors"),F("MainThreadEditorInsets"),F("MainThreadEditorTabs"),F("MainThreadErrors"),F("MainThreadTreeViews"),F("MainThreadDownloadService"),F("MainThreadLanguageFeatures"),F("MainThreadLanguages"),F("MainThreadLogger"),F("MainThreadMessageService"),F("MainThreadOutputService"),F("MainThreadProgress"),F("MainThreadQuickDiff"),F("MainThreadQuickOpen"),F("MainThreadStatusBar"),F("MainThreadSecretState"),F("MainThreadStorage"),F("MainThreadSpeechProvider"),F("MainThreadTelemetry"),F("MainThreadTerminalService"),F("MainThreadTerminalShellIntegration"),F("MainThreadWebviews"),F("MainThreadWebviewPanels"),F("MainThreadWebviewViews"),F("MainThreadCustomEditors"),F("MainThreadUrls"),F("MainThreadUriOpeners"),F("MainThreadProfileContentHandlers"),F("MainThreadWorkspace"),F("MainThreadFileSystem"),F("MainThreadFileSystemEventService"),F("MainThreadExtensionService"),F("MainThreadSCM"),F("MainThreadSearch"),F("MainThreadShare"),F("MainThreadTask"),F("MainThreadWindow"),F("MainThreadLabelService"),F("MainThreadNotebook"),F("MainThreadNotebookDocumentsShape"),F("MainThreadNotebookEditorsShape"),F("MainThreadNotebookKernels"),F("MainThreadNotebookRenderers"),F("MainThreadInteractive"),F("MainThreadInlineChatShape"),F("MainThreadTheming"),F("MainThreadTunnelService"),F("MainThreadManagedSockets"),F("MainThreadTimeline"),F("MainThreadTesting"),F("MainThreadLocalizationShape"),F("MainThreadAiRelatedInformation"),F("MainThreadAiEmbeddingVector");F("ExtHostCommands"),F("ExtHostConfiguration"),F("ExtHostDiagnostics"),F("ExtHostDebugService"),F("ExtHostDecorations"),F("ExtHostDocumentsAndEditors"),F("ExtHostDocuments"),F("ExtHostDocumentContentProviders"),F("ExtHostDocumentSaveParticipant"),F("ExtHostEditors"),F("ExtHostTreeViews"),F("ExtHostFileSystem"),F("ExtHostFileSystemInfo"),F("ExtHostFileSystemEventService"),F("ExtHostLanguages"),F("ExtHostLanguageFeatures"),F("ExtHostQuickOpen"),F("ExtHostQuickDiff"),F("ExtHostStatusBar"),F("ExtHostShare"),F("ExtHostExtensionService"),F("ExtHostLogLevelServiceShape"),F("ExtHostTerminalService"),F("ExtHostTerminalShellIntegration"),F("ExtHostSCM"),F("ExtHostSearch"),F("ExtHostTask"),F("ExtHostWorkspace"),F("ExtHostWindow"),F("ExtHostWebviews"),F("ExtHostWebviewPanels"),F("ExtHostCustomEditors"),F("ExtHostWebviewViews"),F("ExtHostEditorInsets"),F("ExtHostEditorTabs"),F("ExtHostProgress"),F("ExtHostComments"),F("ExtHostSecretState"),F("ExtHostStorage"),F("ExtHostUrls"),F("ExtHostUriOpeners"),F("ExtHostProfileContentHandlers"),F("ExtHostOutputService"),F("ExtHostLabelService"),F("ExtHostNotebook"),F("ExtHostNotebookDocuments"),F("ExtHostNotebookEditors"),F("ExtHostNotebookKernels"),F("ExtHostNotebookRenderers"),F("ExtHostNotebookDocumentSaveParticipant"),F("ExtHostInteractive"),F("ExtHostInlineChatShape"),F("ExtHostChatAgents"),F("ExtHostChatVariables"),F("ExtHostChatProvider"),F("ExtHostSpeech"),F("ExtHostAiRelatedInformation"),F("ExtHostAiEmbeddingVector"),F("ExtHostTheming"),F("ExtHostTunnelService"),F("ExtHostManagedSockets"),F("ExtHostAuthentication"),F("ExtHostTimeline"),F("ExtHostTesting"),F("ExtHostTelemetry"),F("ExtHostLocalization");const ae="vs/workbench/contrib/debug/common/debug";new re("debugType",void 0,{type:"string",description:f(ae,0,"Debug type of the active debug session. For example 'python'.")});new re("debugConfigurationType",void 0,{type:"string",description:f(ae,1,"Debug type of the selected launch configuration. For example 'python'.")});new re("debugState","inactive",{type:"string",description:f(ae,2,"State that the focused debug session is in. One of the following: 'inactive', 'initializing', 'stopped' or 'running'.")});const db="debugUx";new re(db,"default",{type:"string",description:f(ae,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 re("hasDebugged",!1,{type:"boolean",description:f(ae,4,"True when a debug session has been started at least once, false otherwise.")});new re("inDebugMode",!1,{type:"boolean",description:f(ae,5,"True when debugging, false otherwise.")});new re("inDebugRepl",!1,{type:"boolean",description:f(ae,6,"True when focus is in the debug console, false otherwise.")});new re("breakpointWidgetVisible",!1,{type:"boolean",description:f(ae,7,"True when breakpoint editor zone widget is visible, false otherwise.")});new re("inBreakpointWidget",!1,{type:"boolean",description:f(ae,8,"True when focus is in the breakpoint editor zone widget, false otherwise.")});new re("breakpointsFocused",!0,{type:"boolean",description:f(ae,9,"True when the BREAKPOINTS view is focused, false otherwise.")});new re("watchExpressionsFocused",!0,{type:"boolean",description:f(ae,10,"True when the WATCH view is focused, false otherwsie.")});new re("watchExpressionsExist",!1,{type:"boolean",description:f(ae,11,"True when at least one watch expression exists, false otherwise.")});new re("variablesFocused",!0,{type:"boolean",description:f(ae,12,"True when the VARIABLES views is focused, false otherwsie")});new re("expressionSelected",!1,{type:"boolean",description:f(ae,13,"True when an expression input box is open in either the WATCH or the VARIABLES view, false otherwise.")});new re("breakpointInputFocused",!1,{type:"boolean",description:f(ae,14,"True when the input box has focus in the BREAKPOINTS view.")});new re("callStackItemType",void 0,{type:"string",description:f(ae,15,"Represents the item type of the focused element in the CALL STACK view. For example: 'session', 'thread', 'stackFrame'")});new re("callStackSessionIsAttach",!1,{type:"boolean",description:f(ae,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 re("callStackItemStopped",!1,{type:"boolean",description:f(ae,17,"True when the focused item in the CALL STACK is stopped. Used internaly for inline menus in the CALL STACK view.")});new re("callStackSessionHasOneThread",!1,{type:"boolean",description:f(ae,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 re("watchItemType",void 0,{type:"string",description:f(ae,19,"Represents the item type of the focused element in the WATCH view. For example: 'expression', 'variable'")});new re("canViewMemory",void 0,{type:"boolean",description:f(ae,20,"Indicates whether the item in the view has an associated memory refrence.")});new re("breakpointItemType",void 0,{type:"string",description:f(ae,21,"Represents the item type of the focused element in the BREAKPOINTS view. For example: 'breakpoint', 'exceptionBreakppint', 'functionBreakpoint', 'dataBreakpoint'")});new re("breakpointItemBytes",void 0,{type:"boolean",description:f(ae,22,"Whether the breakpoint item is a data breakpoint on a byte range.")});new re("breakpointHasModes",!1,{type:"boolean",description:f(ae,23,"Whether the breakpoint has multiple modes it can switch to.")});new re("breakpointSupportsCondition",!1,{type:"boolean",description:f(ae,24,"True when the focused breakpoint supports conditions.")});new re("loadedScriptsSupported",!1,{type:"boolean",description:f(ae,25,"True when the focused sessions supports the LOADED SCRIPTS view")});new re("loadedScriptsItemType",void 0,{type:"string",description:f(ae,26,"Represents the item type of the focused element in the LOADED SCRIPTS view.")});new re("focusedSessionIsAttach",!1,{type:"boolean",description:f(ae,27,"True when the focused session is 'attach'.")});new re("focusedSessionIsNoDebug",!1,{type:"boolean",description:f(ae,28,"True when the focused session is run without debugging.")});new re("stepBackSupported",!1,{type:"boolean",description:f(ae,29,"True when the focused session supports 'stepBack' requests.")});new re("restartFrameSupported",!1,{type:"boolean",description:f(ae,30,"True when the focused session supports 'restartFrame' requests.")});new re("stackFrameSupportsRestart",!1,{type:"boolean",description:f(ae,31,"True when the focused stack frame suppots 'restartFrame'.")});new re("jumpToCursorSupported",!1,{type:"boolean",description:f(ae,32,"True when the focused session supports 'jumpToCursor' request.")});new re("stepIntoTargetsSupported",!1,{type:"boolean",description:f(ae,33,"True when the focused session supports 'stepIntoTargets' request.")});new re("breakpointsExist",!1,{type:"boolean",description:f(ae,34,"True when at least one breakpoint exists.")});new re("debuggersAvailable",!1,{type:"boolean",description:f(ae,35,"True when there is at least one debug extensions active.")});new re("debugExtensionAvailable",!0,{type:"boolean",description:f(ae,36,"True when there is at least one debug extension installed and enabled.")});new re("debugProtocolVariableMenuContext",void 0,{type:"string",description:f(ae,37,"Represents the context the debug adapter sets on the focused variable in the VARIABLES view.")});new re("debugSetVariableSupported",!1,{type:"boolean",description:f(ae,38,"True when the focused session supports 'setVariable' request.")});new re("debugSetDataBreakpointAddressSupported",!1,{type:"boolean",description:f(ae,39,"True when the focused session supports 'getBreakpointInfo' request on an address.")});new re("debugSetExpressionSupported",!1,{type:"boolean",description:f(ae,40,"True when the focused session supports 'setExpression' request.")});new re("breakWhenValueChangesSupported",!1,{type:"boolean",description:f(ae,41,"True when the focused session supports to break when value changes.")});new re("breakWhenValueIsAccessedSupported",!1,{type:"boolean",description:f(ae,42,"True when the focused breakpoint supports to break when value is accessed.")});new re("breakWhenValueIsReadSupported",!1,{type:"boolean",description:f(ae,43,"True when the focused breakpoint supports to break when value is read.")});new re("terminateDebuggeeSupported",!1,{type:"boolean",description:f(ae,44,"True when the focused session supports the terminate debuggee capability.")});new re("suspendDebuggeeSupported",!1,{type:"boolean",description:f(ae,45,"True when the focused session supports the suspend debuggee capability.")});new re("variableEvaluateNamePresent",!1,{type:"boolean",description:f(ae,46,"True when the focused variable has an 'evalauteName' field set.")});new re("variableIsReadonly",!1,{type:"boolean",description:f(ae,47,"True when the focused variable is read-only.")});new re("variableValue",!1,{type:"string",description:f(ae,48,"Value of the variable, present for debug visualization clauses.")});new re("variableType",!1,{type:"string",description:f(ae,49,"Type of the variable, present for debug visualization clauses.")});new re("variableInterfaces",!1,{type:"array",description:f(ae,50,"Any interfaces or contracts that the variable satisfies, present for debug visualization clauses.")});new re("variableName",!1,{type:"string",description:f(ae,51,"Name of the variable, present for debug visualization clauses.")});new re("variableLanguage",!1,{type:"string",description:f(ae,52,"Language of the variable source, present for debug visualization clauses.")});new re("variableExtensionId",!1,{type:"string",description:f(ae,53,"Extension ID of the variable source, present for debug visualization clauses.")});new re("exceptionWidgetVisible",!1,{type:"boolean",description:f(ae,54,"True when the exception widget is visible.")});new re("multiSessionRepl",!1,{type:"boolean",description:f(ae,55,"True when there is more than 1 debug console.")});new re("multiSessionDebug",!1,{type:"boolean",description:f(ae,56,"True when there is more than 1 active debug session.")});new re("disassembleRequestSupported",!1,{type:"boolean",description:f(ae,57,"True when the focused sessions supports disassemble request.")});new re("disassemblyViewFocus",!1,{type:"boolean",description:f(ae,58,"True when the Disassembly View is focused.")});new re("languageSupportsDisassembleRequest",!1,{type:"boolean",description:f(ae,59,"True when the language in the current editor supports disassemble request.")});new re("focusedStackFrameHasInstructionReference",!1,{type:"boolean",description:f(ae,60,"True when the focused stack frame has instruction pointer reference.")});f(ae,62,"Controls when the internal Debug Console should open.");var Qf;(function(t){t[t.Initial=1]="Initial",t[t.Dynamic=2]="Dynamic"})(Qf||(Qf={}));var up;(function(t){t.UnverifiedBreakpoints="unverifiedBreakpoints"})(up||(up={}));var dp;(function(t){t.deserialize=e=>({id:e.id,name:e.name,iconPath:e.iconPath&&{light:st.revive(e.iconPath.light),dark:st.revive(e.iconPath.dark)},iconClass:e.iconClass,visualization:e.visualization}),t.serialize=e=>e})(dp||(dp={}));function lo(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(!lo(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(),!lo(r,s))return!1;for(n=0;n<r.length;n++)if(!lo(t[r[n]],e[r[n]]))return!1}return!0}var Jf;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(Jf||(Jf={}));var fp;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(fp||(fp={}));var hp;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(hp||(hp={}));var Yf;(function(t){t[t.Desktop=1]="Desktop",t[t.Web=2]="Web"})(Yf||(Yf={}));var Xf;(function(t){t[t.Information=1]="Information",t[t.Warning=2]="Warning"})(Xf||(Xf={}));function Il(t,e,n=32){const i=n-e,r=~((1<<i)-1);return(t<<e|(r&t)>>>i)>>>0}function gp(t,e=0,n=t.byteLength,i=0){for(let r=0;r<n;r++)t[e+r]=i}function fb(t,e,n="0"){for(;t.length<e;)t=n+t;return t}function qs(t,e=32){return t instanceof ArrayBuffer?Array.from(new Uint8Array(t)).map(n=>n.toString(16).padStart(2,"0")).join(""):fb((t>>>0).toString(16),e/4)}const pc=class pc{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(E1(o))if(a+1<n){const l=e.charCodeAt(a+1);_a(l)?(a++,c=P1(o,l)):c=65533}else{s=o;break}else _a(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()),qs(this._h0)+qs(this._h1)+qs(this._h2)+qs(this._h3)+qs(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,gp(this._buff,this._buffLen),this._buffLen>56&&(this._step(),gp(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=pc._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,Il(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,h;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),h=Il(i,5)+c+a+l+e.getUint32(g*4,!1)&4294967295,a=o,o=s,s=Il(r,30),r=i,i=h;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}};pc._bigBlock32=new DataView(new ArrayBuffer(320));let pp=pc;var ii;(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"})(ii||(ii={}));ii.Info;function hb(t){switch(t){case ii.Trace:return"trace";case ii.Debug:return"debug";case ii.Info:return"info";case ii.Warning:return"warn";case ii.Error:return"error";case ii.Off:return"off"}}new re("logLevel",hb(ii.Info));var Zf;(function(t){t[t.Complete=100]="Complete",t[t.Partial=50]="Partial",t[t.None=0]="None"})(Zf||(Zf={}));const mp={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},o2="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function gb(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of o2)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}gb();const pb=new S4;pb.unshift({maxLen:1e3,windowSize:15,timeBudget:150});const y="vs/editor/common/config/editorOptions",mb=8;class yb{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Ue{constructor(e,n,i,r){this.id=e,this.name=n,this.defaultValue=i,this.schema=r}applyUpdate(e,n){return wc(e,n)}compute(e,n,i){return i}}class ba{constructor(e,n){this.newValue=e,this.didChange=n}}function wc(t,e){if(typeof t!="object"||typeof e!="object"||!t||!e)return new ba(e,t!==e);if(Array.isArray(t)||Array.isArray(e)){const i=Array.isArray(t)&&Array.isArray(e)&&yu(t,e);return new ba(e,!i)}let n=!1;for(const i in e)if(e.hasOwnProperty(i)){const r=wc(t[i],e[i]);r.didChange&&(t[i]=r.newValue,n=!0)}return new ba(t,n)}class Vo{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,n){return wc(e,n)}validate(e){return this.defaultValue}}class Os{constructor(e,n,i,r){this.id=e,this.name=n,this.defaultValue=i,this.schema=r}applyUpdate(e,n){return wc(e,n)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,n,i){return i}}function J(t,e){return typeof t>"u"?e:t==="false"?!1:!!t}class he extends Os{constructor(e,n,i,r=void 0){typeof r<"u"&&(r.type="boolean",r.default=i),super(e,n,i,r)}validate(e){return J(e,this.defaultValue)}}function bb(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 Fe extends Os{static clampedInt(e,n,i,r){return bb(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 Fe.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class si extends Os{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(si.float(e,this.defaultValue))}}class Kt extends Os{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 Kt.string(e,this.defaultValue)}}function it(t,e,n,i){return typeof t!="string"?e:i&&t in i?i[t]:n.indexOf(t)===-1?e:t}class Qe extends Os{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 it(e,this.defaultValue,this._allowedValues)}}class ta extends Ue{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 vb(t){switch(t){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class wb extends Ue{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[f(y,0,"Use platform APIs to detect when a Screen Reader is attached."),f(y,1,"Optimize for usage with a Screen Reader."),f(y,2,"Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:f(y,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 Cb extends Ue{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:f(y,4,"Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:f(y,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:J(n.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:J(n.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function _b(t){switch(t){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var pi;(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"})(pi||(pi={}));function Sb(t){switch(t){case"line":return pi.Line;case"block":return pi.Block;case"underline":return pi.Underline;case"line-thin":return pi.LineThin;case"block-outline":return pi.BlockOutline;case"underline-thin":return pi.UnderlineThin}}class Db extends Vo{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 xb extends he{constructor(){super(37,"emptySelectionClipboard",!0,{description:f(y,6,"Controls whether copying without a selection copies the current line.")})}compute(e,n,i){return i&&e.emptySelectionClipboard}}class kb extends Ue{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:f(y,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:[f(y,8,"Never seed search string from the editor selection."),f(y,9,"Always seed search string from the editor selection, including word at cursor position."),f(y,10,"Only seed search string from the editor selection.")],description:f(y,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:[f(y,12,"Never turn on Find in Selection automatically (default)."),f(y,13,"Always turn on Find in Selection automatically."),f(y,14,"Turn on Find in Selection automatically when multiple lines of content are selected.")],description:f(y,15,"Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:f(y,16,"Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:bi},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:f(y,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:f(y,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:J(n.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":it(n.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":it(n.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:J(n.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:J(n.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:J(n.loop,this.defaultValue.loop)}}}const ki=class ki extends Ue{constructor(){super(51,"fontLigatures",ki.OFF,{anyOf:[{type:"boolean",description:f(y,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:f(y,20,"Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:f(y,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?ki.OFF:e==="true"?ki.ON:e:e?ki.ON:ki.OFF}};ki.OFF='"liga" off, "calt" off',ki.ON='"liga" on, "calt" on';let eh=ki;const Ti=class Ti extends Ue{constructor(){super(54,"fontVariations",Ti.OFF,{anyOf:[{type:"boolean",description:f(y,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:f(y,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:f(y,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"?Ti.OFF:e==="true"?Ti.TRANSLATE:e:e?Ti.TRANSLATE:Ti.OFF}compute(e,n,i){return e.fontInfo.fontVariationSettings}};Ti.OFF="normal",Ti.TRANSLATE="translate";let th=Ti;class Tb extends Vo{constructor(){super(50)}compute(e,n,i){return e.fontInfo}}class Rb extends Os{constructor(){super(52,"fontSize",Li.fontSize,{type:"number",minimum:6,maximum:100,default:Li.fontSize,description:f(y,25,"Controls the font size in pixels.")})}validate(e){const n=si.float(e,this.defaultValue);return n===0?Li.fontSize:si.clamp(n,6,100)}compute(e,n,i){return e.fontInfo.fontSize}}const fi=class fi extends Ue{constructor(){super(53,"fontWeight",Li.fontWeight,{anyOf:[{type:"number",minimum:fi.MINIMUM_VALUE,maximum:fi.MAXIMUM_VALUE,errorMessage:f(y,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:fi.SUGGESTION_VALUES}],default:Li.fontWeight,description:f(y,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(Fe.clampedInt(e,Li.fontWeight,fi.MINIMUM_VALUE,fi.MAXIMUM_VALUE))}};fi.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],fi.MINIMUM_VALUE=1,fi.MAXIMUM_VALUE=1e3;let nh=fi;class Eb extends Ue{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:[f(y,28,"Show Peek view of the results (default)"),f(y,29,"Go to the primary result and show a Peek view"),f(y,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:f(y,31,"This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:f(y,32,"Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleTypeDefinitions":{description:f(y,33,"Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleDeclarations":{description:f(y,34,"Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleImplementations":{description:f(y,35,"Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleReferences":{description:f(y,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:f(y,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:f(y,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:f(y,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:f(y,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:f(y,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:it(n.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:n.multipleDefinitions??it(n.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:n.multipleTypeDefinitions??it(n.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:n.multipleDeclarations??it(n.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:n.multipleImplementations??it(n.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:n.multipleReferences??it(n.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Kt.string(n.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Kt.string(n.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Kt.string(n.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Kt.string(n.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Kt.string(n.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class Pb extends Ue{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:f(y,42,"Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:f(y,43,"Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:f(y,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:f(y,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:f(y,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:J(n.enabled,this.defaultValue.enabled),delay:Fe.clampedInt(n.delay,this.defaultValue.delay,0,1e4),sticky:J(n.sticky,this.defaultValue.sticky),hidingDelay:Fe.clampedInt(n.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:J(n.above,this.defaultValue.above)}}}class uo extends Vo{constructor(){super(145)}compute(e,n,i){return uo.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,h=e.scrollBeyondLastLine,g=e.minimap.renderCharacters;let p=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const w=e.minimap.maxColumn,v=e.minimap.size,x=e.minimap.side,T=e.verticalScrollbarWidth,q=e.viewLineCount,z=e.remainingWidth,A=e.isViewportWrapping,W=g?2:3;let j=Math.floor(s*r);const se=j/s;let B=!1,Z=!1,oe=W*p,qe=p/s,O=1;if(v==="fill"||v==="fit"){const{typicalViewportLineCount:ke,extraLinesBeforeFirstLine:pe,extraLinesBeyondLastLine:ot,desiredRatio:Ke,minimapLineCount:Pe}=uo.computeContainedMinimapLineCount({viewLineCount:q,scrollBeyondLastLine:h,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:r,lineHeight:c,pixelRatio:s});if(q/Pe>1)B=!0,Z=!0,p=1,oe=1,qe=p/s;else{let He=!1,ht=p+1;if(v==="fit"){const rt=Math.ceil((pe+q+ot)*oe);A&&a&&z<=n.stableFitRemainingWidth?(He=!0,ht=n.stableFitMaxMinimapScale):He=rt>j}if(v==="fill"||He){B=!0;const rt=p;oe=Math.min(c*s,Math.max(1,Math.floor(1/Ke))),A&&a&&z<=n.stableFitRemainingWidth&&(ht=n.stableFitMaxMinimapScale),p=Math.min(ht,Math.max(1,Math.floor(oe/W))),p>rt&&(O=Math.min(2,p/rt)),qe=p/s/O,j=Math.ceil(Math.max(ke,pe+q+ot)*oe),A?(n.stableMinimapLayoutInput=e,n.stableFitRemainingWidth=z,n.stableFitMaxMinimapScale=p):(n.stableMinimapLayoutInput=null,n.stableFitRemainingWidth=0)}}}const L=Math.floor(w*qe),D=Math.min(L,Math.max(0,Math.floor((z-T-2)*qe/(l+qe)))+mb);let P=Math.floor(s*D);const N=P/s;P=Math.floor(P*O);const $=g?1:2,ee=x==="left"?0:i-D-T;return{renderMinimap:$,minimapLeft:ee,minimapWidth:D,minimapHeightIsEditorHeight:B,minimapIsSampling:Z,minimapScale:p,minimapLineHeight:oe,minimapCanvasInnerWidth:P,minimapCanvasInnerHeight:j,minimapCanvasOuterWidth:N,minimapCanvasOuterHeight:se}}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,h=n.viewLineCount,g=e.get(137),p=g==="inherit"?e.get(136):g,w=p==="inherit"?e.get(132):p,v=e.get(135),x=n.isDominatedByLongLines,T=e.get(57),q=e.get(68).renderType!==0,z=e.get(69),A=e.get(105),W=e.get(84),j=e.get(73),se=e.get(103),B=se.verticalScrollbarSize,Z=se.verticalHasArrows,oe=se.arrowSize,qe=se.horizontalScrollbarSize,O=e.get(43),L=e.get(110)!=="never";let D=e.get(66);O&&L&&(D+=16);let P=0;if(q){const gt=Math.max(o,z);P=Math.round(gt*c)}let N=0;T&&(N=s*n.glyphMarginDecorationLaneCount);let $=0,ee=$+N,ke=ee+P,pe=ke+D;const ot=i-N-P-D;let Ke=!1,Pe=!1,ft=-1;p==="inherit"&&x?(Ke=!0,Pe=!0):w==="on"||w==="bounded"?Pe=!0:w==="wordWrapColumn"&&(ft=v);const He=uo._computeMinimapLayout({outerWidth:i,outerHeight:r,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:l,scrollBeyondLastLine:A,paddingTop:W.top,paddingBottom:W.bottom,minimap:j,verticalScrollbarWidth:B,viewLineCount:h,remainingWidth:ot,isViewportWrapping:Pe},n.memory||new yb);He.renderMinimap!==0&&He.minimapLeft===0&&($+=He.minimapWidth,ee+=He.minimapWidth,ke+=He.minimapWidth,pe+=He.minimapWidth);const ht=ot-He.minimapWidth,rt=Math.max(1,Math.floor((ht-B-2)/a)),Ut=Z?oe:0;return Pe&&(ft=Math.max(1,rt),w==="bounded"&&(ft=Math.min(ft,v))),{width:i,height:r,glyphMarginLeft:$,glyphMarginWidth:N,glyphMarginDecorationLaneCount:n.glyphMarginDecorationLaneCount,lineNumbersLeft:ee,lineNumbersWidth:P,decorationsLeft:ke,decorationsWidth:D,contentLeft:pe,contentWidth:ht,minimap:He,viewportColumn:rt,isWordWrapMinified:Ke,isViewportWrapping:Pe,wrappingColumn:ft,verticalScrollbarWidth:B,horizontalScrollbarHeight:qe,overviewRuler:{top:Ut,width:B,height:r-2*Ut,right:0}}}}class Ib extends Ue{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[f(y,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."),f(y,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:f(y,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 it(e,"simple",["simple","advanced"])}compute(e,n,i){return n.get(2)===2?"advanced":i}}var xi;(function(t){t.Off="off",t.OnCode="onCode",t.On="on"})(xi||(xi={}));class Fb extends Ue{constructor(){const e={enabled:xi.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[xi.Off,xi.OnCode,xi.On],default:e.enabled,enumDescriptions:[f(y,50,"Disable the code action menu."),f(y,51,"Show the code action menu when the cursor is on lines with code."),f(y,52,"Show the code action menu when the cursor is on lines with code or on empty lines.")],description:f(y,53,"Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:it(e.enabled,this.defaultValue.enabled,[xi.Off,xi.OnCode,xi.On])}}}class Mb extends Ue{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:f(y,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:f(y,55,"Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:f(y,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:f(y,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:J(n.enabled,this.defaultValue.enabled),maxLineCount:Fe.clampedInt(n.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:it(n.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:J(n.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class Ob extends Ue{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:f(y,58,"Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[f(y,59,"Inlay hints are enabled"),f(y,60,"Inlay hints are showing by default and hide when holding {0}",bi?"Ctrl+Option":"Ctrl+Alt"),f(y,61,"Inlay hints are hidden by default and show when holding {0}",bi?"Ctrl+Option":"Ctrl+Alt"),f(y,62,"Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:f(y,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:f(y,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:f(y,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:it(n.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Fe.clampedInt(n.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Kt.string(n.fontFamily,this.defaultValue.fontFamily),padding:J(n.padding,this.defaultValue.padding)}}}class Ab extends Ue{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Fe.clampedInt(e,this.defaultValue,0,1e3)}compute(e,n,i){return i<0?Fe.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class Lb extends si{constructor(){super(67,"lineHeight",Li.lineHeight,e=>si.clamp(e,0,150),{markdownDescription:f(y,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.
62
112
  - Use 0 to automatically compute the line height from the font size.
63
113
  - Values between 0 and 8 will be used as a multiplier with the font size.
64
- - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,n,i){return e.fontInfo.lineHeight}}class Nb extends Ue{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:f(y,67,"Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:f(y,68,"Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[f(y,69,"The minimap has the same size as the editor contents (and might scroll)."),f(y,70,"The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),f(y,71,"The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:f(y,72,"Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:f(y,73,"Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:f(y,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:f(y,75,"Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:f(y,76,"Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:f(y,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:f(y,78,"Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:f(y,79,"Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:f(y,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:J(n.enabled,this.defaultValue.enabled),autohide:J(n.autohide,this.defaultValue.autohide),size:it(n.size,this.defaultValue.size,["proportional","fill","fit"]),side:it(n.side,this.defaultValue.side,["right","left"]),showSlider:it(n.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:J(n.renderCharacters,this.defaultValue.renderCharacters),scale:Fe.clampedInt(n.scale,1,1,3),maxColumn:Fe.clampedInt(n.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:J(n.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:J(n.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:si.clamp(n.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32)}}}function $b(t){return t==="ctrlCmd"?bi?"metaKey":"ctrlKey":"altKey"}class qb extends Ue{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:f(y,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:f(y,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:Fe.clampedInt(n.top,0,0,1e3),bottom:Fe.clampedInt(n.bottom,0,0,1e3)}}}class Hb extends Ue{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:f(y,83,"Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:f(y,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:J(n.enabled,this.defaultValue.enabled),cycle:J(n.cycle,this.defaultValue.cycle)}}}class jb extends Vo{constructor(){super(143)}compute(e,n,i){return e.pixelRatio}}class Wb extends Ue{constructor(){const e={other:"on",comments:"off",strings:"off"},n=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[f(y,85,"Quick suggestions show inside the suggest widget"),f(y,86,"Quick suggestions show as ghost text"),f(y,87,"Quick suggestions are disabled")]}];super(89,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:n,default:e.strings,description:f(y,88,"Enable quick suggestions inside strings.")},comments:{anyOf:n,default:e.comments,description:f(y,89,"Enable quick suggestions inside comments.")},other:{anyOf:n,default:e.other,description:f(y,90,"Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:f(y,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=it(n,this.defaultValue.other,s),typeof i=="boolean"?a=i?"on":"off":a=it(i,this.defaultValue.comments,s),typeof r=="boolean"?c=r?"on":"off":c=it(r,this.defaultValue.strings,s),{other:o,comments:a,strings:c}}}class Ub extends Ue{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[f(y,92,"Line numbers are not rendered."),f(y,93,"Line numbers are rendered as absolute number."),f(y,94,"Line numbers are rendered as distance in lines to cursor position."),f(y,95,"Line numbers are rendered every 10 lines.")],default:"on",description:f(y,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 zb extends Ue{constructor(){const e=[],n={type:"number",description:f(y,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:f(y,98,"Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:f(y,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:Fe.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const r=i;n.push({column:Fe.clampedInt(r.column,0,0,1e4),color:r.color})}return n.sort((i,r)=>i.column-r.column),n}return this.defaultValue}}class Bb extends Ue{constructor(){super(92,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function yp(t,e){if(typeof t!="string")return e;switch(t){case"hidden":return 2;case"visible":return 3;default:return 1}}class Vb extends Ue{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:[f(y,100,"The vertical scrollbar will be visible only when necessary."),f(y,101,"The vertical scrollbar will always be visible."),f(y,102,"The vertical scrollbar will always be hidden.")],default:"auto",description:f(y,103,"Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[f(y,104,"The horizontal scrollbar will be visible only when necessary."),f(y,105,"The horizontal scrollbar will always be visible."),f(y,106,"The horizontal scrollbar will always be hidden.")],default:"auto",description:f(y,107,"Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:f(y,108,"The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:f(y,109,"The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:f(y,110,"Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:f(y,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=Fe.clampedInt(n.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),r=Fe.clampedInt(n.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Fe.clampedInt(n.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:yp(n.vertical,this.defaultValue.vertical),horizontal:yp(n.horizontal,this.defaultValue.horizontal),useShadows:J(n.useShadows,this.defaultValue.useShadows),verticalHasArrows:J(n.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:J(n.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:J(n.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:J(n.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:Fe.clampedInt(n.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:r,verticalSliderSize:Fe.clampedInt(n.verticalSliderSize,r,0,1e3),scrollByPage:J(n.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:J(n.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}const Yn="inUntrustedWorkspace",hr={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 Kb extends Ue{constructor(){const e={nonBasicASCII:Yn,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:Yn,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",e,{[hr.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Yn],default:e.nonBasicASCII,description:f(y,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.")},[hr.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:f(y,113,"Controls whether characters that just reserve space or have no width at all are highlighted.")},[hr.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:f(y,114,"Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[hr.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Yn],default:e.includeComments,description:f(y,115,"Controls whether characters in comments should also be subject to Unicode highlighting.")},[hr.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Yn],default:e.includeStrings,description:f(y,116,"Controls whether characters in strings should also be subject to Unicode highlighting.")},[hr.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:f(y,117,"Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[hr.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:f(y,118,"Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,n){let i=!1;n.allowedCharacters&&e&&(lo(e.allowedCharacters,n.allowedCharacters)||(e={...e,allowedCharacters:n.allowedCharacters},i=!0)),n.allowedLocales&&e&&(lo(e.allowedLocales,n.allowedLocales)||(e={...e,allowedLocales:n.allowedLocales},i=!0));const r=super.applyUpdate(e,n);return i?new ba(r.newValue,!0):r}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{nonBasicASCII:hs(n.nonBasicASCII,Yn,[!0,!1,Yn]),invisibleCharacters:J(n.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:J(n.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:hs(n.includeComments,Yn,[!0,!1,Yn]),includeStrings:hs(n.includeStrings,Yn,[!0,!1,Yn]),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 Gb extends Ue{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:f(y,119,"Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[f(y,120,"Show the inline suggestion toolbar whenever an inline suggestion is shown."),f(y,121,"Show the inline suggestion toolbar when hovering over an inline suggestion."),f(y,122,"Never show the inline suggestion toolbar.")],description:f(y,123,"Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:f(y,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:f(y,125,"Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:J(n.enabled,this.defaultValue.enabled),mode:it(n.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:it(n.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:J(n.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:J(n.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:Kt.string(n.fontFamily,this.defaultValue.fontFamily)}}}class Qb extends Ue{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:f(y,126,"Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[f(y,127,"Show the inline edit toolbar whenever an inline suggestion is shown."),f(y,128,"Show the inline edit toolbar when hovering over an inline suggestion."),f(y,129,"Never show the inline edit toolbar.")],description:f(y,130,"Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:f(y,131,"Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:f(y,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:J(n.enabled,this.defaultValue.enabled),showToolbar:it(n.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:Kt.string(n.fontFamily,this.defaultValue.fontFamily),keepOnBlur:J(n.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:J(n.backgroundColoring,this.defaultValue.backgroundColoring)}}}class Jb extends Ue{constructor(){const e={enabled:mp.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:mp.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:f(y,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:f(y,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:J(n.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:J(n.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class Yb extends Ue{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:[f(y,135,"Enables bracket pair guides."),f(y,136,"Enables bracket pair guides only for the active bracket pair."),f(y,137,"Disables bracket pair guides.")],default:e.bracketPairs,description:f(y,138,"Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[f(y,139,"Enables horizontal guides as addition to vertical bracket pair guides."),f(y,140,"Enables horizontal guides only for the active bracket pair."),f(y,141,"Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:f(y,142,"Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:f(y,143,"Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:f(y,144,"Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[f(y,145,"Highlights the active indent guide."),f(y,146,"Highlights the active indent guide even if bracket guides are highlighted."),f(y,147,"Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:f(y,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:hs(n.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:hs(n.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:J(n.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:J(n.indentation,this.defaultValue.indentation),highlightActiveIndentation:hs(n.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function hs(t,e,n){const i=n.indexOf(t);return i===-1?e:n[i]}class Xb extends Ue{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:[f(y,149,"Insert suggestion without overwriting text right of the cursor."),f(y,150,"Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:f(y,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:f(y,152,"Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:f(y,153,"Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:f(y,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:[f(y,155,"Always select a suggestion when automatically triggering IntelliSense."),f(y,156,"Never select a suggestion when automatically triggering IntelliSense."),f(y,157,"Select a suggestion only when triggering IntelliSense from a trigger character."),f(y,158,"Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:f(y,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:f(y,160,"Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:f(y,161,"Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:f(y,162,"Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:f(y,163,"Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:f(y,164,"Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:f(y,165,"This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:f(y,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:f(y,167,"When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:f(y,168,"When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:f(y,169,"When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:f(y,170,"When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:f(y,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:f(y,172,"When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:f(y,173,"When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:f(y,174,"When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:f(y,175,"When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:f(y,176,"When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:f(y,177,"When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:f(y,178,"When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:f(y,179,"When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:f(y,180,"When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:f(y,181,"When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:f(y,182,"When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:f(y,183,"When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:f(y,184,"When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:f(y,185,"When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:f(y,186,"When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:f(y,187,"When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:f(y,188,"When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:f(y,189,"When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:f(y,190,"When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:f(y,191,"When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:f(y,192,"When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:f(y,193,"When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:f(y,194,"When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:f(y,195,"When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:f(y,196,"When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{insertMode:it(n.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:J(n.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:J(n.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:J(n.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:J(n.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:it(n.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:J(n.showIcons,this.defaultValue.showIcons),showStatusBar:J(n.showStatusBar,this.defaultValue.showStatusBar),preview:J(n.preview,this.defaultValue.preview),previewMode:it(n.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:J(n.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:J(n.showMethods,this.defaultValue.showMethods),showFunctions:J(n.showFunctions,this.defaultValue.showFunctions),showConstructors:J(n.showConstructors,this.defaultValue.showConstructors),showDeprecated:J(n.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:J(n.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:J(n.showFields,this.defaultValue.showFields),showVariables:J(n.showVariables,this.defaultValue.showVariables),showClasses:J(n.showClasses,this.defaultValue.showClasses),showStructs:J(n.showStructs,this.defaultValue.showStructs),showInterfaces:J(n.showInterfaces,this.defaultValue.showInterfaces),showModules:J(n.showModules,this.defaultValue.showModules),showProperties:J(n.showProperties,this.defaultValue.showProperties),showEvents:J(n.showEvents,this.defaultValue.showEvents),showOperators:J(n.showOperators,this.defaultValue.showOperators),showUnits:J(n.showUnits,this.defaultValue.showUnits),showValues:J(n.showValues,this.defaultValue.showValues),showConstants:J(n.showConstants,this.defaultValue.showConstants),showEnums:J(n.showEnums,this.defaultValue.showEnums),showEnumMembers:J(n.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:J(n.showKeywords,this.defaultValue.showKeywords),showWords:J(n.showWords,this.defaultValue.showWords),showColors:J(n.showColors,this.defaultValue.showColors),showFiles:J(n.showFiles,this.defaultValue.showFiles),showReferences:J(n.showReferences,this.defaultValue.showReferences),showFolders:J(n.showFolders,this.defaultValue.showFolders),showTypeParameters:J(n.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:J(n.showSnippets,this.defaultValue.showSnippets),showUsers:J(n.showUsers,this.defaultValue.showUsers),showIssues:J(n.showIssues,this.defaultValue.showIssues)}}}class Zb extends Ue{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:f(y,197,"Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:f(y,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:J(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:J(e.selectSubwords,this.defaultValue.selectSubwords)}}}class e7 extends Ue{constructor(){const e=[];super(130,"wordSegmenterLocales",e,{anyOf:[{description:f(y,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:f(y,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 t7 extends Ue{constructor(){super(138,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[f(y,200,"No indentation. Wrapped lines begin at column 1."),f(y,201,"Wrapped lines get the same indentation as the parent."),f(y,202,"Wrapped lines get +1 indentation toward the parent."),f(y,203,"Wrapped lines get +2 indentation toward the parent.")],description:f(y,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 n7 extends Vo{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 i7 extends Ue{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:f(y,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:f(y,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:[f(y,207,"Show the drop selector widget after a file is dropped into the editor."),f(y,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:J(n.enabled,this.defaultValue.enabled),showDropSelector:it(n.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class r7 extends Ue{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:f(y,209,"Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:f(y,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:[f(y,211,"Show the paste selector widget after content is pasted into the editor."),f(y,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:J(n.enabled,this.defaultValue.enabled),showPasteSelector:it(n.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const s7="Consolas, 'Courier New', monospace",o7="Menlo, Monaco, 'Courier New', monospace",a7="'Droid Sans Mono', 'monospace', monospace",Li={fontFamily:bi?o7:Da?a7:s7,fontWeight:"normal",fontSize:bi?12:14,lineHeight:0,letterSpacing:0},c7=[];function R(t){return c7[t.id]=t,t}R(new he(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:f(y,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.")})),R(new Qe(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",f(y,214,"Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:f(y,215,"Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),R(new wb),R(new Fe(3,"accessibilityPageSize",10,1,1073741824,{description:f(y,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"]})),R(new Kt(4,"ariaLabel",f(y,217,"Editor content"))),R(new he(5,"ariaRequired",!1,void 0)),R(new he(8,"screenReaderAnnounceInlineSuggestion",!0,{description:f(y,218,"Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),R(new Qe(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f(y,219,"Use language configurations to determine when to autoclose brackets."),f(y,220,"Autoclose brackets only when the cursor is to the left of whitespace."),""],description:f(y,221,"Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),R(new Qe(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f(y,222,"Use language configurations to determine when to autoclose comments."),f(y,223,"Autoclose comments only when the cursor is to the left of whitespace."),""],description:f(y,224,"Controls whether the editor should automatically close comments after the user adds an opening comment.")})),R(new Qe(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",f(y,225,"Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:f(y,226,"Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),R(new Qe(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",f(y,227,"Type over closing quotes or brackets only if they were automatically inserted."),""],description:f(y,228,"Controls whether the editor should type over closing quotes or brackets.")})),R(new Qe(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f(y,229,"Use language configurations to determine when to autoclose quotes."),f(y,230,"Autoclose quotes only when the cursor is to the left of whitespace."),""],description:f(y,231,"Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),R(new ta(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],vb,{enumDescriptions:[f(y,232,"The editor will not insert indentation automatically."),f(y,233,"The editor will keep the current line's indentation."),f(y,234,"The editor will keep the current line's indentation and honor language defined brackets."),f(y,235,"The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),f(y,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:f(y,237,"Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),R(new he(13,"automaticLayout",!1)),R(new Qe(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[f(y,238,"Use language configurations to determine when to automatically surround selections."),f(y,239,"Surround with quotes but not brackets."),f(y,240,"Surround with brackets but not quotes."),""],description:f(y,241,"Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),R(new Jb),R(new Yb),R(new he(116,"stickyTabStops",!1,{description:f(y,242,"Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),R(new he(17,"codeLens",!0,{description:f(y,243,"Controls whether the editor shows CodeLens.")})),R(new Kt(18,"codeLensFontFamily","",{description:f(y,244,"Controls the font family for CodeLens.")})),R(new Fe(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:f(y,245,"Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),R(new he(20,"colorDecorators",!0,{description:f(y,246,"Controls whether the editor should render the inline color decorators and color picker.")})),R(new Qe(148,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[f(y,247,"Make the color picker appear both on click and hover of the color decorator"),f(y,248,"Make the color picker appear on hover of the color decorator"),f(y,249,"Make the color picker appear on click of the color decorator")],description:f(y,250,"Controls the condition to make a color picker appear from a color decorator")})),R(new Fe(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:f(y,251,"Controls the max number of color decorators that can be rendered in an editor at once.")})),R(new he(22,"columnSelection",!1,{description:f(y,252,"Enable that the selection with the mouse and keys is doing column selection.")})),R(new Cb),R(new he(24,"contextmenu",!0)),R(new he(25,"copyWithSyntaxHighlighting",!0,{description:f(y,253,"Controls whether syntax highlighting should be copied into the clipboard.")})),R(new ta(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],_b,{description:f(y,254,"Control the cursor animation style.")})),R(new Qe(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[f(y,255,"Smooth caret animation is disabled."),f(y,256,"Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),f(y,257,"Smooth caret animation is always enabled.")],description:f(y,258,"Controls whether the smooth caret animation should be enabled.")})),R(new ta(28,"cursorStyle",pi.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],Sb,{description:f(y,259,"Controls the cursor style.")})),R(new Fe(29,"cursorSurroundingLines",0,0,1073741824,{description:f(y,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.")})),R(new Qe(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[f(y,261,"`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),f(y,262,"`cursorSurroundingLines` is enforced always.")],markdownDescription:f(y,263,"Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),R(new Fe(31,"cursorWidth",0,0,1073741824,{markdownDescription:f(y,264,"Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),R(new he(32,"disableLayerHinting",!1)),R(new he(33,"disableMonospaceOptimizations",!1)),R(new he(34,"domReadOnly",!1)),R(new he(35,"dragAndDrop",!0,{description:f(y,265,"Controls whether the editor should allow moving selections via drag and drop.")})),R(new xb),R(new i7),R(new Mb),R(new Qe(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[f(y,266,"Use a new rendering method with svgs."),f(y,267,"Use a new rendering method with font characters."),f(y,268,"Use the stable rendering method.")],description:f(y,269,"Controls whether whitespace is rendered with a new, experimental method.")})),R(new Kt(39,"extraEditorClassName","")),R(new si(40,"fastScrollSensitivity",5,t=>t<=0?5:t,{markdownDescription:f(y,270,"Scrolling speed multiplier when pressing `Alt`.")})),R(new kb),R(new he(42,"fixedOverflowWidgets",!1)),R(new he(43,"folding",!0,{description:f(y,271,"Controls whether the editor has code folding enabled.")})),R(new Qe(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[f(y,272,"Use a language-specific folding strategy if available, else the indentation-based one."),f(y,273,"Use the indentation-based folding strategy.")],description:f(y,274,"Controls the strategy for computing folding ranges.")})),R(new he(45,"foldingHighlight",!0,{description:f(y,275,"Controls whether the editor should highlight folded ranges.")})),R(new he(46,"foldingImportsByDefault",!1,{description:f(y,276,"Controls whether the editor automatically collapses import ranges.")})),R(new Fe(47,"foldingMaximumRegions",5e3,10,65e3,{description:f(y,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.")})),R(new he(48,"unfoldOnClickAfterEndOfLine",!1,{description:f(y,278,"Controls whether clicking on the empty content after a folded line will unfold the line.")})),R(new Kt(49,"fontFamily",Li.fontFamily,{description:f(y,279,"Controls the font family.")})),R(new Tb),R(new eh),R(new Rb),R(new nh),R(new th),R(new he(55,"formatOnPaste",!1,{description:f(y,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.")})),R(new he(56,"formatOnType",!1,{description:f(y,281,"Controls whether the editor should automatically format the line after typing.")})),R(new he(57,"glyphMargin",!0,{description:f(y,282,"Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),R(new Eb),R(new he(59,"hideCursorInOverviewRuler",!1,{description:f(y,283,"Controls whether the cursor should be hidden in the overview ruler.")})),R(new Pb),R(new he(61,"inDiffEditor",!1)),R(new si(64,"letterSpacing",Li.letterSpacing,t=>si.clamp(t,-5,20),{description:f(y,284,"Controls the letter spacing in pixels.")})),R(new Fb),R(new Ab),R(new Lb),R(new Ub),R(new Fe(69,"lineNumbersMinChars",5,1,300)),R(new he(70,"linkedEditing",!1,{description:f(y,285,"Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),R(new he(71,"links",!0,{description:f(y,286,"Controls whether the editor should detect links and make them clickable.")})),R(new Qe(72,"matchBrackets","always",["always","near","never"],{description:f(y,287,"Highlight matching brackets.")})),R(new Nb),R(new Qe(74,"mouseStyle","text",["text","default","copy"])),R(new si(75,"mouseWheelScrollSensitivity",1,t=>t===0?1:t,{markdownDescription:f(y,288,"A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),R(new he(76,"mouseWheelZoom",!1,{markdownDescription:bi?f(y,289,"Zoom the font of the editor when using mouse wheel and holding `Cmd`."):f(y,290,"Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),R(new he(77,"multiCursorMergeOverlapping",!0,{description:f(y,291,"Merge multiple cursors when they are overlapping.")})),R(new ta(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],$b,{markdownEnumDescriptions:[f(y,292,"Maps to `Control` on Windows and Linux and to `Command` on macOS."),f(y,293,"Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:f(y,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).")})),R(new Qe(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[f(y,295,"Each cursor pastes a single line of the text."),f(y,296,"Each cursor pastes the full text.")],markdownDescription:f(y,297,"Controls pasting when the line count of the pasted text matches the cursor count.")})),R(new Fe(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:f(y,298,"Controls the max number of cursors that can be in an active editor at once.")})),R(new Qe(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[f(y,299,"Does not highlight occurrences."),f(y,300,"Highlights occurrences only in the current file."),f(y,301,"Experimental: Highlights occurrences across all valid open files.")],markdownDescription:f(y,302,"Controls whether occurrences should be highlighted across open files.")})),R(new he(82,"overviewRulerBorder",!0,{description:f(y,303,"Controls whether a border should be drawn around the overview ruler.")})),R(new Fe(83,"overviewRulerLanes",3,0,3)),R(new qb),R(new r7),R(new Hb),R(new Qe(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[f(y,304,"Focus the tree when opening peek"),f(y,305,"Focus the editor when opening peek")],description:f(y,306,"Controls whether to focus the inline editor or the tree in the peek widget.")})),R(new he(88,"definitionLinkOpensInPeek",!1,{description:f(y,307,"Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),R(new Wb),R(new Fe(90,"quickSuggestionsDelay",10,0,1073741824,{description:f(y,308,"Controls the delay in milliseconds after which quick suggestions will show up.")})),R(new he(91,"readOnly",!1)),R(new Bb),R(new he(93,"renameOnType",!1,{description:f(y,309,"Controls whether the editor auto renames on type."),markdownDeprecationMessage:f(y,310,"Deprecated, use `editor.linkedEditing` instead.")})),R(new he(94,"renderControlCharacters",!0,{description:f(y,311,"Controls whether the editor should render control characters."),restricted:!0})),R(new Qe(95,"renderFinalNewline",Da?"dimmed":"on",["off","on","dimmed"],{description:f(y,312,"Render last line number when the file ends with a newline.")})),R(new Qe(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",f(y,313,"Highlights both the gutter and the current line.")],description:f(y,314,"Controls how the editor should render the current line highlight.")})),R(new he(97,"renderLineHighlightOnlyWhenFocus",!1,{description:f(y,315,"Controls if the editor should render the current line highlight only when the editor is focused.")})),R(new Qe(98,"renderValidationDecorations","editable",["editable","on","off"])),R(new Qe(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",f(y,316,"Render whitespace characters except for single spaces between words."),f(y,317,"Render whitespace characters only on selected text."),f(y,318,"Render only trailing whitespace characters."),""],description:f(y,319,"Controls how the editor should render whitespace characters.")})),R(new Fe(100,"revealHorizontalRightPadding",15,0,1e3)),R(new he(101,"roundedSelection",!0,{description:f(y,320,"Controls whether selections should have rounded corners.")})),R(new zb),R(new Vb),R(new Fe(104,"scrollBeyondLastColumn",4,0,1073741824,{description:f(y,321,"Controls the number of extra characters beyond which the editor will scroll horizontally.")})),R(new he(105,"scrollBeyondLastLine",!0,{description:f(y,322,"Controls whether the editor will scroll beyond the last line.")})),R(new he(106,"scrollPredominantAxis",!0,{description:f(y,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.")})),R(new he(107,"selectionClipboard",!0,{description:f(y,324,"Controls whether the Linux primary clipboard should be supported."),included:Da})),R(new he(108,"selectionHighlight",!0,{description:f(y,325,"Controls whether the editor should highlight matches similar to the selection.")})),R(new he(109,"selectOnLineNumbers",!0)),R(new Qe(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[f(y,326,"Always show the folding controls."),f(y,327,"Never show the folding controls and reduce the gutter size."),f(y,328,"Only show the folding controls when the mouse is over the gutter.")],description:f(y,329,"Controls when the folding controls on the gutter are shown.")})),R(new he(111,"showUnused",!0,{description:f(y,330,"Controls fading out of unused code.")})),R(new he(140,"showDeprecated",!0,{description:f(y,331,"Controls strikethrough deprecated variables.")})),R(new Ob),R(new Qe(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[f(y,332,"Show snippet suggestions on top of other suggestions."),f(y,333,"Show snippet suggestions below other suggestions."),f(y,334,"Show snippets suggestions with other suggestions."),f(y,335,"Do not show snippet suggestions.")],description:f(y,336,"Controls whether snippets are shown with other suggestions and how they are sorted.")})),R(new Zb),R(new he(114,"smoothScrolling",!1,{description:f(y,337,"Controls whether the editor will scroll using an animation.")})),R(new Fe(117,"stopRenderingLineAfter",1e4,-1,1073741824)),R(new Xb),R(new Gb),R(new Qb),R(new he(149,"inlineCompletionsAccessibilityVerbose",!1,{description:f(y,338,"Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),R(new Fe(119,"suggestFontSize",0,0,1e3,{markdownDescription:f(y,339,"Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),R(new Fe(120,"suggestLineHeight",0,0,1e3,{markdownDescription:f(y,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#`")})),R(new he(121,"suggestOnTriggerCharacters",!0,{description:f(y,341,"Controls whether suggestions should automatically show up when typing trigger characters.")})),R(new Qe(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[f(y,342,"Always select the first suggestion."),f(y,343,"Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),f(y,344,"Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:f(y,345,"Controls how suggestions are pre-selected when showing the suggest list.")})),R(new Qe(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[f(y,346,"Tab complete will insert the best matching suggestion when pressing tab."),f(y,347,"Disable tab completions."),f(y,348,"Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:f(y,349,"Enables tab completions.")})),R(new Fe(124,"tabIndex",0,-1,1073741824)),R(new Kb),R(new Qe(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[f(y,350,"Unusual line terminators are automatically removed."),f(y,351,"Unusual line terminators are ignored."),f(y,352,"Unusual line terminators prompt to be removed.")],description:f(y,353,"Remove unusual line terminators that might cause problems.")})),R(new he(127,"useShadowDOM",!0)),R(new he(128,"useTabStops",!0,{description:f(y,354,"Spaces and tabs are inserted and deleted in alignment with tab stops.")})),R(new Qe(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[f(y,355,"Use the default line break rule."),f(y,356,"Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:f(y,357,"Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),R(new e7),R(new Kt(131,"wordSeparators",o2,{description:f(y,358,"Characters that will be used as word separators when doing word related navigations or operations.")})),R(new Qe(132,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[f(y,359,"Lines will never wrap."),f(y,360,"Lines will wrap at the viewport width."),f(y,361,"Lines will wrap at `#editor.wordWrapColumn#`."),f(y,362,"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:f(y,363,"Controls how lines should wrap.")})),R(new Kt(133,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),R(new Kt(134,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),R(new Fe(135,"wordWrapColumn",80,1,1073741824,{markdownDescription:f(y,364,"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),R(new Qe(136,"wordWrapOverride1","inherit",["off","on","inherit"])),R(new Qe(137,"wordWrapOverride2","inherit",["off","on","inherit"])),R(new Db),R(new he(147,"defaultColorDecorators",!1,{markdownDescription:f(y,365,"Controls whether inline color decorations should be shown using the default document color provider")})),R(new jb),R(new he(144,"tabFocusMode",!1,{markdownDescription:f(y,366,"Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),R(new uo),R(new n7),R(new t7),R(new Ib);let l7=class{constructor(e){this.value=e,this.isTrustedTelemetryValue=!0}},ih;function u7(t){ih=t}function $t(t){return new Proxy({},{get(e,n){if(ih==null)throw new Error("Default api is not ready yet, do not forget to import 'vscode/localExtensionHost' and wait for services initialization");return ih[t][n]}})}const d7={version:"1.89.1",tasks:$t("tasks"),notebooks:$t("notebooks"),scm:$t("scm"),comments:$t("comments"),authentication:$t("authentication"),tests:$t("tests"),extensions:$t("extensions"),debug:$t("debug"),env:$t("env"),commands:$t("commands"),window:$t("window"),workspace:$t("workspace"),languages:$t("languages"),l10n:$t("l10n"),interactive:$t("interactive"),ai:$t("ai"),chat:$t("chat"),speech:$t("speech"),Breakpoint:ps,TerminalOutputAnchor:Wu,ChatResultFeedbackKind:Wf,ChatVariableLevel:Hf,ChatCompletionItem:lb,CallHierarchyIncomingCall:D5,CallHierarchyItem:S5,CallHierarchyOutgoingCall:x5,CancellationError:A0,CancellationTokenSource:P4,CandidatePortSource:Gf,CodeAction:nd,CodeActionKind:lt,CodeActionTriggerKind:td,CodeLens:sd,Color:Na,ColorInformation:Td,ColorPresentation:Rd,ColorThemeKind:yf,CommentMode:cf,CommentState:lf,CommentThreadCollapsibleState:af,CommentThreadState:uf,CompletionItem:pd,CompletionItemKind:La,CompletionItemTag:gd,CompletionList:md,CompletionTriggerKind:hd,ConfigurationTarget:Ud,CustomExecution:i2,DebugAdapterExecutable:Kd,DebugAdapterInlineImplementation:Jd,DebugAdapterNamedPipeServer:Qd,DebugAdapterServer:Gd,DebugConfigurationProviderTriggerKind:Qf,DebugConsoleMode:ff,DebugVisualization:N5,DecorationRangeBehavior:xd,Diagnostic:Qu,DiagnosticRelatedInformation:Fa,DiagnosticSeverity:bo,DiagnosticTag:Gu,Disposable:Uu,DocumentHighlight:Ju,DocumentHighlightKind:wo,MultiDocumentHighlight:Yu,DocumentLink:kd,DocumentSymbol:ed,EndOfLine:Bu,EnvironmentVariableMutatorType:Vu,EvaluatableExpression:Yd,InlineValueText:Zd,InlineValueVariableLookup:ef,InlineValueEvaluatableExpression:tf,InlineCompletionTriggerKind:Xd,EventEmitter:hi,ExtensionKind:mf,ExtensionMode:Rf,ExternalUriOpenerPriority:Af,FileChangeType:nf,FileDecoration:ip,FileDecoration2:ip,FileSystemError:rf,FileType:Iu,FilePermission:Fu,FoldingRange:sf,FoldingRangeKind:of,FunctionBreakpoint:Vd,InlineCompletionItem:yd,InlineCompletionList:bd,Hover:Ma,IndentAction:Vf,Location:vo,MarkdownString:Aa,OverviewRulerLane:Jf,ParameterInformation:od,PortAutoForwardAction:Nf,Position:Ye,ProcessExecution:$a,ProgressLocation:Nd,QuickInputButtons:hf,Range:_t,RelativePattern:zd,Selection:zu,SelectionRange:id,SemanticTokens:df,SemanticTokensBuilder:O5,SemanticTokensEdit:A5,SemanticTokensEdits:L5,SemanticTokensLegend:F5,ShellExecution:qa,ShellQuoting:Ad,SignatureHelp:cd,SignatureHelpTriggerKind:ld,SignatureInformation:ad,SnippetString:Ia,SourceBreakpoint:Bd,StandardTokenType:Pf,StatusBarAlignment:wd,SymbolInformation:Zu,SymbolKind:Oa,SymbolTag:Xu,Task:Ld,TaskGroup:Od,TaskPanelKind:Md,TaskRevealKind:Fd,TaskScope:So,TerminalLink:k5,TerminalQuickFixTerminalCommand:R5,TerminalQuickFixOpener:T5,TerminalLocation:Id,TerminalProfile:E5,TerminalExitReason:Pd,TextDocumentSaveReason:_d,TextEdit:Ea,SnippetTextEdit:t2,TextEditorCursorStyle:pi,TextEditorLineNumbersStyle:Cd,TextEditorRevealType:Sd,TextEditorSelectionChangeKind:Co,SyntaxTokenType:_o,TextDocumentChangeReason:Dd,ThemeColor:Wd,ThemeIcon:ji,TreeItem:$d,TreeItemCheckboxState:Do,TreeItemCollapsibleState:fs,TypeHierarchyItem:X5,UIKind:Yf,Uri:st,ViewColumn:vd,WorkspaceEdit:Ku,DocumentDropEdit:jd,DocumentPasteEdit:P5,InlayHint:fd,InlayHintLabelPart:dd,InlayHintKind:ud,RemoteAuthorityResolverError:_5,ResolvedAuthority:w5,ManagedResolvedAuthority:C5,SourceControlInputBoxValidationType:Ed,ExtensionRuntime:Ef,TimelineItem:Tf,NotebookRange:to,NotebookCellKind:Cf,NotebookCellExecutionState:_f,NotebookCellData:$5,NotebookData:q5,NotebookRendererScript:U5,NotebookCellStatusBarAlignment:Sf,NotebookEditorRevealType:Df,NotebookCellOutput:j5,NotebookCellOutputItem:H5,NotebookCellStatusBarItem:W5,NotebookControllerAffinity:xf,NotebookControllerAffinity2:kf,NotebookEdit:Pa,NotebookKernelSourceAction:z5,PortAttributes:V5,LinkedEditingRanges:B5,TestResultState:If,TestRunRequest:Mf,TestMessage:ja,TestMessage2:ja,TestTag:Of,TestRunProfileKind:Ff,TextSearchCompleteMessageType:Xf,DataTransfer:Hd,DataTransferItem:qd,FileCoverage:G5,StatementCoverage:Q5,BranchCoverage:J5,FunctionCoverage:Y5,WorkspaceTrustState:Lf,LanguageStatusSeverity:rd,QuickPickItemKind:gf,InputBoxValidationSeverity:pf,TabInputText:Z5,TabInputTextDiff:eb,TabInputTextMerge:tb,TabInputCustom:nb,TabInputNotebook:rb,TabInputNotebookDiff:sb,TabInputWebview:ib,TabInputTerminal:ob,TabInputInteractiveWindow:ab,TabInputChat:cb,TelemetryTrustedValue:l7,LogLevel:ii,EditSessionIdentityMatch:Zf,InteractiveSessionVoteDirection:$f,ChatCopyKind:qf,InteractiveEditorResponseFeedbackKind:jf,RelatedInformationType:Uf,SpeechToTextStatus:zf,KeywordRecognitionStatus:Bf},{version:f7,tasks:h7,notebooks:g7,scm:p7,comments:m7,authentication:y7,tests:b7,extensions:v7,debug:w7,env:C7,commands:_7,window:S7,workspace:D7,languages:x7,l10n:k7,interactive:T7,ai:R7,chat:E7,speech:P7,Breakpoint:I7,TerminalOutputAnchor:F7,ChatResultFeedbackKind:M7,ChatVariableLevel:O7,ChatCompletionItem:A7,CallHierarchyIncomingCall:L7,CallHierarchyItem:N7,CallHierarchyOutgoingCall:$7,CancellationError:q7,CancellationTokenSource:H7,CandidatePortSource:j7,CodeAction:W7,CodeActionKind:U7,CodeActionTriggerKind:z7,CodeLens:B7,Color:V7,ColorInformation:K7,ColorPresentation:G7,ColorThemeKind:Q7,CommentMode:J7,CommentState:Y7,CommentThreadCollapsibleState:X7,CommentThreadState:Z7,CompletionItem:ev,CompletionItemKind:tv,CompletionItemTag:nv,CompletionList:iv,CompletionTriggerKind:rv,ConfigurationTarget:sv,CustomExecution:ov,DebugAdapterExecutable:av,DebugAdapterInlineImplementation:cv,DebugAdapterNamedPipeServer:lv,DebugAdapterServer:uv,DebugConfigurationProviderTriggerKind:dv,DebugConsoleMode:fv,DebugVisualization:hv,DecorationRangeBehavior:gv,Diagnostic:pv,DiagnosticRelatedInformation:mv,DiagnosticSeverity:yv,DiagnosticTag:bv,Disposable:vv,DocumentHighlight:wv,DocumentHighlightKind:Cv,MultiDocumentHighlight:_v,DocumentLink:Sv,DocumentSymbol:Dv,EndOfLine:xv,EnvironmentVariableMutatorType:kv,EvaluatableExpression:Tv,InlineValueText:Rv,InlineValueVariableLookup:Ev,InlineValueEvaluatableExpression:Pv,InlineCompletionTriggerKind:Iv,EventEmitter:Fv,ExtensionKind:Mv,ExtensionMode:Ov,ExternalUriOpenerPriority:Av,FileChangeType:Lv,FileDecoration:Nv,FileDecoration2:$v,FileSystemError:qv,FileType:Hv,FilePermission:jv,FoldingRange:Wv,FoldingRangeKind:Uv,FunctionBreakpoint:zv,InlineCompletionItem:Bv,InlineCompletionList:Vv,Hover:Kv,IndentAction:Gv,Location:Qv,MarkdownString:Jv,OverviewRulerLane:Yv,ParameterInformation:Xv,PortAutoForwardAction:Zv,Position:e9,ProcessExecution:t9,ProgressLocation:n9,QuickInputButtons:i9,Range:r9,RelativePattern:s9,Selection:o9,SelectionRange:a9,SemanticTokens:c9,SemanticTokensBuilder:l9,SemanticTokensEdit:u9,SemanticTokensEdits:d9,SemanticTokensLegend:f9,ShellExecution:h9,ShellQuoting:g9,SignatureHelp:p9,SignatureHelpTriggerKind:m9,SignatureInformation:y9,SnippetString:b9,SourceBreakpoint:v9,StandardTokenType:w9,StatusBarAlignment:C9,SymbolInformation:_9,SymbolKind:S9,SymbolTag:D9,Task:x9,TaskGroup:k9,TaskPanelKind:T9,TaskRevealKind:R9,TaskScope:E9,TerminalLink:P9,TerminalQuickFixTerminalCommand:I9,TerminalQuickFixOpener:F9,TerminalLocation:M9,TerminalProfile:O9,TerminalExitReason:A9,TextDocumentSaveReason:L9,TextEdit:N9,SnippetTextEdit:$9,TextEditorCursorStyle:q9,TextEditorLineNumbersStyle:H9,TextEditorRevealType:j9,TextEditorSelectionChangeKind:W9,SyntaxTokenType:U9,TextDocumentChangeReason:z9,ThemeColor:B9,ThemeIcon:V9,TreeItem:K9,TreeItemCheckboxState:G9,TreeItemCollapsibleState:Q9,TypeHierarchyItem:J9,UIKind:Y9,Uri:X9,ViewColumn:Z9,WorkspaceEdit:ew,DocumentDropEdit:tw,DocumentPasteEdit:nw,InlayHint:iw,InlayHintLabelPart:rw,InlayHintKind:sw,RemoteAuthorityResolverError:ow,ResolvedAuthority:aw,ManagedResolvedAuthority:cw,SourceControlInputBoxValidationType:lw,ExtensionRuntime:uw,TimelineItem:dw,NotebookRange:fw,NotebookCellKind:hw,NotebookCellExecutionState:gw,NotebookCellData:pw,NotebookData:mw,NotebookRendererScript:yw,NotebookCellStatusBarAlignment:bw,NotebookEditorRevealType:vw,NotebookCellOutput:ww,NotebookCellOutputItem:Cw,NotebookCellStatusBarItem:_w,NotebookControllerAffinity:Sw,NotebookControllerAffinity2:Dw,NotebookEdit:xw,NotebookKernelSourceAction:kw,PortAttributes:Tw,LinkedEditingRanges:Rw,TestResultState:Ew,TestRunRequest:Pw,TestMessage:Iw,TestMessage2:Fw,TestTag:Mw,TestRunProfileKind:Ow,TextSearchCompleteMessageType:Aw,DataTransfer:Lw,DataTransferItem:Nw,FileCoverage:$w,StatementCoverage:qw,BranchCoverage:Hw,FunctionCoverage:jw,WorkspaceTrustState:Ww,LanguageStatusSeverity:Uw,QuickPickItemKind:zw,InputBoxValidationSeverity:Bw,TabInputText:Vw,TabInputTextDiff:Kw,TabInputTextMerge:Gw,TabInputCustom:Qw,TabInputNotebook:Jw,TabInputNotebookDiff:Yw,TabInputWebview:Xw,TabInputTerminal:Zw,TabInputInteractiveWindow:e8,TabInputChat:t8,TelemetryTrustedValue:n8,LogLevel:i8,EditSessionIdentityMatch:r8,InteractiveSessionVoteDirection:s8,ChatCopyKind:o8,InteractiveEditorResponseFeedbackKind:a8,RelatedInformationType:c8,SpeechToTextStatus:l8,KeywordRecognitionStatus:u8}=d7,d8=Object.freeze(Object.defineProperty({__proto__:null,BranchCoverage:Hw,Breakpoint:I7,CallHierarchyIncomingCall:L7,CallHierarchyItem:N7,CallHierarchyOutgoingCall:$7,CancellationError:q7,CancellationTokenSource:H7,CandidatePortSource:j7,ChatCompletionItem:A7,ChatCopyKind:o8,ChatResultFeedbackKind:M7,ChatVariableLevel:O7,CodeAction:W7,CodeActionKind:U7,CodeActionTriggerKind:z7,CodeLens:B7,Color:V7,ColorInformation:K7,ColorPresentation:G7,ColorThemeKind:Q7,CommentMode:J7,CommentState:Y7,CommentThreadCollapsibleState:X7,CommentThreadState:Z7,CompletionItem:ev,CompletionItemKind:tv,CompletionItemTag:nv,CompletionList:iv,CompletionTriggerKind:rv,ConfigurationTarget:sv,CustomExecution:ov,DataTransfer:Lw,DataTransferItem:Nw,DebugAdapterExecutable:av,DebugAdapterInlineImplementation:cv,DebugAdapterNamedPipeServer:lv,DebugAdapterServer:uv,DebugConfigurationProviderTriggerKind:dv,DebugConsoleMode:fv,DebugVisualization:hv,DecorationRangeBehavior:gv,Diagnostic:pv,DiagnosticRelatedInformation:mv,DiagnosticSeverity:yv,DiagnosticTag:bv,Disposable:vv,DocumentDropEdit:tw,DocumentHighlight:wv,DocumentHighlightKind:Cv,DocumentLink:Sv,DocumentPasteEdit:nw,DocumentSymbol:Dv,EditSessionIdentityMatch:r8,EndOfLine:xv,EnvironmentVariableMutatorType:kv,EvaluatableExpression:Tv,EventEmitter:Fv,ExtensionKind:Mv,ExtensionMode:Ov,ExtensionRuntime:uw,ExternalUriOpenerPriority:Av,FileChangeType:Lv,FileCoverage:$w,FileDecoration:Nv,FileDecoration2:$v,FilePermission:jv,FileSystemError:qv,FileType:Hv,FoldingRange:Wv,FoldingRangeKind:Uv,FunctionBreakpoint:zv,FunctionCoverage:jw,Hover:Kv,IndentAction:Gv,InlayHint:iw,InlayHintKind:sw,InlayHintLabelPart:rw,InlineCompletionItem:Bv,InlineCompletionList:Vv,InlineCompletionTriggerKind:Iv,InlineValueEvaluatableExpression:Pv,InlineValueText:Rv,InlineValueVariableLookup:Ev,InputBoxValidationSeverity:Bw,InteractiveEditorResponseFeedbackKind:a8,InteractiveSessionVoteDirection:s8,KeywordRecognitionStatus:u8,LanguageStatusSeverity:Uw,LinkedEditingRanges:Rw,Location:Qv,LogLevel:i8,ManagedResolvedAuthority:cw,MarkdownString:Jv,MultiDocumentHighlight:_v,NotebookCellData:pw,NotebookCellExecutionState:gw,NotebookCellKind:hw,NotebookCellOutput:ww,NotebookCellOutputItem:Cw,NotebookCellStatusBarAlignment:bw,NotebookCellStatusBarItem:_w,NotebookControllerAffinity:Sw,NotebookControllerAffinity2:Dw,NotebookData:mw,NotebookEdit:xw,NotebookEditorRevealType:vw,NotebookKernelSourceAction:kw,NotebookRange:fw,NotebookRendererScript:yw,OverviewRulerLane:Yv,ParameterInformation:Xv,PortAttributes:Tw,PortAutoForwardAction:Zv,Position:e9,ProcessExecution:t9,ProgressLocation:n9,QuickInputButtons:i9,QuickPickItemKind:zw,Range:r9,RelatedInformationType:c8,RelativePattern:s9,RemoteAuthorityResolverError:ow,ResolvedAuthority:aw,Selection:o9,SelectionRange:a9,SemanticTokens:c9,SemanticTokensBuilder:l9,SemanticTokensEdit:u9,SemanticTokensEdits:d9,SemanticTokensLegend:f9,ShellExecution:h9,ShellQuoting:g9,SignatureHelp:p9,SignatureHelpTriggerKind:m9,SignatureInformation:y9,SnippetString:b9,SnippetTextEdit:$9,SourceBreakpoint:v9,SourceControlInputBoxValidationType:lw,SpeechToTextStatus:l8,StandardTokenType:w9,StatementCoverage:qw,StatusBarAlignment:C9,SymbolInformation:_9,SymbolKind:S9,SymbolTag:D9,SyntaxTokenType:U9,TabInputChat:t8,TabInputCustom:Qw,TabInputInteractiveWindow:e8,TabInputNotebook:Jw,TabInputNotebookDiff:Yw,TabInputTerminal:Zw,TabInputText:Vw,TabInputTextDiff:Kw,TabInputTextMerge:Gw,TabInputWebview:Xw,Task:x9,TaskGroup:k9,TaskPanelKind:T9,TaskRevealKind:R9,TaskScope:E9,TelemetryTrustedValue:n8,TerminalExitReason:A9,TerminalLink:P9,TerminalLocation:M9,TerminalOutputAnchor:F7,TerminalProfile:O9,TerminalQuickFixOpener:F9,TerminalQuickFixTerminalCommand:I9,TestMessage:Iw,TestMessage2:Fw,TestResultState:Ew,TestRunProfileKind:Ow,TestRunRequest:Pw,TestTag:Mw,TextDocumentChangeReason:z9,TextDocumentSaveReason:L9,TextEdit:N9,TextEditorCursorStyle:q9,TextEditorLineNumbersStyle:H9,TextEditorRevealType:j9,TextEditorSelectionChangeKind:W9,TextSearchCompleteMessageType:Aw,ThemeColor:B9,ThemeIcon:V9,TimelineItem:dw,TreeItem:K9,TreeItemCheckboxState:G9,TreeItemCollapsibleState:Q9,TypeHierarchyItem:J9,UIKind:Y9,Uri:X9,ViewColumn:Z9,WorkspaceEdit:ew,WorkspaceTrustState:Ww,ai:R7,authentication:y7,chat:E7,commands:_7,comments:m7,debug:w7,env:C7,extensions:v7,interactive:T7,l10n:k7,languages:x7,notebooks:g7,scm:p7,setDefaultApi:u7,speech:P7,tasks:h7,tests:b7,version:f7,window:S7,workspace:D7},Symbol.toStringTag,{value:"Module"})),ye=F0(d8);var Ve={};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.asPromise=Ve.thenable=Ve.typedArray=Ve.stringArray=Ve.array=Ve.func=Ve.error=Ve.number=Ve.string=Ve.boolean=void 0;function f8(t){return t===!0||t===!1}Ve.boolean=f8;function a2(t){return typeof t=="string"||t instanceof String}Ve.string=a2;function h8(t){return typeof t=="number"||t instanceof Number}Ve.number=h8;function g8(t){return t instanceof Error}Ve.error=g8;function c2(t){return typeof t=="function"}Ve.func=c2;function l2(t){return Array.isArray(t)}Ve.array=l2;function p8(t){return l2(t)&&t.every(e=>a2(e))}Ve.stringArray=p8;function m8(t,e){return Array.isArray(t)&&t.every(e)}Ve.typedArray=m8;function u2(t){return t&&c2(t.then)}Ve.thenable=u2;function y8(t){return t instanceof Promise?t:u2(t)?new Promise((e,n)=>{t.then(i=>e(i),i=>n(i))}):Promise.resolve(t)}Ve.asPromise=y8;var $e={};Object.defineProperty($e,"__esModule",{value:!0});$e.generateUuid=$e.parse=$e.isUUID=$e.v4=$e.empty=void 0;class A1{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}}class Ee extends A1{static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return Ee._oneOf(Ee._chars)}constructor(){super([Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),"-",Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),"-","4",Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),"-",Ee._oneOf(Ee._timeHighBits),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),"-",Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex()].join(""))}}Ee._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Ee._timeHighBits=["8","9","a","b"];$e.empty=new A1("00000000-0000-0000-0000-000000000000");function d2(){return new Ee}$e.v4=d2;const b8=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function f2(t){return b8.test(t)}$e.isUUID=f2;function v8(t){if(!f2(t))throw new Error("invalid uuid");return new A1(t)}$e.parse=v8;function w8(){return d2().asHex()}$e.generateUuid=w8;Object.defineProperty(ge,"__esModule",{value:!0});ge.WorkspaceFeature=ge.TextDocumentLanguageFeature=ge.TextDocumentEventFeature=ge.DynamicDocumentFeature=ge.DynamicFeature=ge.StaticFeature=ge.ensure=ge.LSPCancellationError=void 0;const Or=ye,Fl=de,fn=Ve,bp=$e;class C8 extends Or.CancellationError{constructor(e){super(),this.data=e}}ge.LSPCancellationError=C8;function _8(t,e){return t[e]===void 0&&(t[e]={}),t[e]}ge.ensure=_8;var vp;(function(t){function e(n){const i=n;return i!=null&&fn.func(i.fillClientCapabilities)&&fn.func(i.initialize)&&fn.func(i.getState)&&fn.func(i.clear)&&(i.fillInitializeParams===void 0||fn.func(i.fillInitializeParams))}t.is=e})(vp||(ge.StaticFeature=vp={}));var wp;(function(t){function e(n){const i=n;return i!=null&&fn.func(i.fillClientCapabilities)&&fn.func(i.initialize)&&fn.func(i.getState)&&fn.func(i.clear)&&(i.fillInitializeParams===void 0||fn.func(i.fillInitializeParams))&&fn.func(i.register)&&fn.func(i.unregister)&&i.registrationType!==void 0}t.is=e})(wp||(ge.DynamicFeature=wp={}));class L1{constructor(e){this._client=e}getState(){const e=this.getDocumentSelectors();let n=0;for(const r of e){n++;for(const s of Or.workspace.textDocuments)if(Or.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}}}ge.DynamicDocumentFeature=L1;class S8 extends L1{static textDocumentFilter(e,n){for(const i of e)if(Or.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 Or.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(Or.languages.match(n,e)>0)return{send:i=>this.callback(i)}}}ge.TextDocumentEventFeature=S8;class D8 extends L1{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(Fl.TextDocumentRegistrationOptions.is(n)){const i=Fl.StaticRegistrationOptions.hasId(n)?n.id:bp.generateUuid(),r=n.documentSelector??e;if(r)return[i,Object.assign({},n,{documentSelector:r})]}else if(fn.boolean(n)&&n===!0||Fl.WorkDoneProgressOptions.is(n)){if(!e)return[void 0,void 0];const i=fn.boolean(n)&&n===!0?{documentSelector:e}:Object.assign({},n,{documentSelector:e});return[bp.generateUuid(),i]}}else return[void 0,void 0];return[void 0,void 0]}getRegistrationOptions(e,n){if(!(!e||!n))return fn.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&&Or.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}}ge.TextDocumentLanguageFeature=D8;class x8{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}}ge.WorkspaceFeature=x8;var Ni={};const k8=typeof process=="object"&&process&&process.platform==="win32";var T8=k8?{sep:"\\"}:{sep:"/"},R8=h2;function h2(t,e,n){t instanceof RegExp&&(t=Cp(t,n)),e instanceof RegExp&&(e=Cp(e,n));var i=g2(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 Cp(t,e){var n=e.match(t);return n?n[0]:null}h2.range=g2;function g2(t,e,n){var i,r,s,o,a,c=n.indexOf(t),l=n.indexOf(e,c+1),h=c;if(c>=0&&l>0){if(t===e)return[c,l];for(i=[],s=n.length;h>=0&&!a;)h==c?(i.push(h),c=n.indexOf(t,h+1)):i.length==1?a=[i.pop(),l]:(r=i.pop(),r<s&&(s=r,o=l),l=n.indexOf(e,h+1)),h=c<l&&c>=0?c:l;i.length&&(a=[s,o])}return a}var p2=R8,E8=F8,m2="\0SLASH"+Math.random()+"\0",y2="\0OPEN"+Math.random()+"\0",N1="\0CLOSE"+Math.random()+"\0",b2="\0COMMA"+Math.random()+"\0",v2="\0PERIOD"+Math.random()+"\0";function Ml(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function P8(t){return t.split("\\\\").join(m2).split("\\{").join(y2).split("\\}").join(N1).split("\\,").join(b2).split("\\.").join(v2)}function I8(t){return t.split(m2).join("\\").split(y2).join("{").split(N1).join("}").split(b2).join(",").split(v2).join(".")}function w2(t){if(!t)return[""];var e=[],n=p2("{","}",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=w2(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function F8(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),no(P8(t),!0).map(I8)):[]}function M8(t){return"{"+t+"}"}function O8(t){return/^-?0\d/.test(t)}function A8(t,e){return t<=e}function L8(t,e){return t>=e}function no(t,e){var n=[],i=p2("{","}",t);if(!i)return[t];var r=i.pre,s=i.post.length?no(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),h=c||l,g=i.body.indexOf(",")>=0;if(!h&&!g)return i.post.match(/,.*\}/)?(t=i.pre+"{"+i.body+N1+i.post,no(t)):[t];var p;if(h)p=i.body.split(/\.\./);else if(p=w2(i.body),p.length===1&&(p=no(p[0],!1).map(M8),p.length===1))return s.map(function(qe){return i.pre+p[0]+qe});var w;if(h){var v=Ml(p[0]),x=Ml(p[1]),T=Math.max(p[0].length,p[1].length),q=p.length==3?Math.abs(Ml(p[2])):1,z=A8,A=x<v;A&&(q*=-1,z=L8);var W=p.some(O8);w=[];for(var j=v;z(j,x);j+=q){var se;if(l)se=String.fromCharCode(j),se==="\\"&&(se="");else if(se=String(j),W){var B=T-se.length;if(B>0){var Z=new Array(B+1).join("0");j<0?se="-"+Z+se.slice(1):se=Z+se}}w.push(se)}}else{w=[];for(var oe=0;oe<p.length;oe++)w.push.apply(w,no(p[oe],!1))}for(var oe=0;oe<w.length;oe++)for(var o=0;o<s.length;o++){var a=r+w[oe]+s[o];(!e||h||a)&&n.push(a)}}return n}const Pn=Cc=(t,e,n={})=>(Wa(e),!n.nocomment&&e.charAt(0)==="#"?!1:new _c(e,n).match(t));var Cc=Pn;const rh=T8;Pn.sep=rh.sep;const ei=Symbol("globstar **");Pn.GLOBSTAR=ei;const N8=E8,_p={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},sh="[^/]",Ol=sh+"*?",$8="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",q8="(?:(?!(?:\\/|^)\\.).)*?",C2=t=>t.split("").reduce((e,n)=>(e[n]=!0,e),{}),Sp=C2("().*{}+?[]^$\\!"),H8=C2("[.("),Dp=/\/+/;Pn.filter=(t,e={})=>(n,i,r)=>Pn(n,t,e);const Qi=(t,e={})=>{const n={};return Object.keys(t).forEach(i=>n[i]=t[i]),Object.keys(e).forEach(i=>n[i]=e[i]),n};Pn.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Pn;const e=Pn,n=(i,r,s)=>e(i,r,Qi(t,s));return n.Minimatch=class extends e.Minimatch{constructor(r,s){super(r,Qi(t,s))}},n.Minimatch.defaults=i=>e.defaults(Qi(t,i)).Minimatch,n.filter=(i,r)=>e.filter(i,Qi(t,r)),n.defaults=i=>e.defaults(Qi(t,i)),n.makeRe=(i,r)=>e.makeRe(i,Qi(t,r)),n.braceExpand=(i,r)=>e.braceExpand(i,Qi(t,r)),n.match=(i,r,s)=>e.match(i,r,Qi(t,s)),n};Pn.braceExpand=(t,e)=>_2(t,e);const _2=(t,e={})=>(Wa(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:N8(t)),j8=1024*64,Wa=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>j8)throw new TypeError("pattern is too long")},Al=Symbol("subparse");Pn.makeRe=(t,e)=>new _c(t,e||{}).makeRe();Pn.match=(t,e,n={})=>{const i=new _c(e,n);return t=t.filter(r=>i.match(r)),i.options.nonull&&!t.length&&t.push(e),t};const W8=t=>t.replace(/\\(.)/g,"$1"),U8=t=>t.replace(/\\([^-\]])/g,"$1"),z8=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),B8=t=>t.replace(/[[\]\\]/g,"\\$&");class _c{constructor(e,n){Wa(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(Dp)),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],h=e[s];if(this.debug(n,l,h),l===!1)return!1;if(l===ei){this.debug("GLOBSTAR",[n,l,h]);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 w=e[g];if(this.debug(`
65
- globstar while`,e,g,n,p,w),this.matchOne(e.slice(g),n.slice(p),i))return this.debug("globstar found match!",g,a,w),!0;if(w==="."||w===".."||!r.dot&&w.charAt(0)==="."){this.debug("dot detected!",e,g,n,p);break}this.debug("globstar swallow a segment, and continue"),g++}return!!(i&&(this.debug(`
66
- >>> no match, partial?`,e,g,n,p),g===a))}var v;if(typeof l=="string"?(v=h===l,this.debug("string match",l,h,v)):(v=h.match(l),this.debug("pattern match",l,h,v)),!v)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 _2(this.pattern,this.options)}parse(e,n){Wa(e);const i=this.options;if(e==="**")if(i.noglobstar)e="*";else return ei;if(e==="")return"";let r="",s=!1,o=!1;const a=[],c=[];let l,h=!1,g=-1,p=-1,w,v,x,T=e.charAt(0)===".",q=i.dot||T;const z=()=>T?"":q?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",A=B=>B.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",W=()=>{if(l){switch(l){case"*":r+=Ol,s=!0;break;case"?":r+=sh,s=!0;break;default:r+="\\"+l;break}this.debug("clearStateChar %j %j",l,r),l=!1}};for(let B=0,Z;B<e.length&&(Z=e.charAt(B));B++){if(this.debug("%s %s %s %j",e,B,r,Z),o){if(Z==="/")return!1;Sp[Z]&&(r+="\\"),r+=Z,o=!1;continue}switch(Z){case"/":return!1;case"\\":if(h&&e.charAt(B+1)==="-"){r+=Z;continue}W(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,B,r,Z),h){this.debug(" in class"),Z==="!"&&B===p+1&&(Z="^"),r+=Z;continue}this.debug("call clearStateChar %j",l),W(),l=Z,i.noext&&W();continue;case"(":{if(h){r+="(";continue}if(!l){r+="\\(";continue}const oe={type:l,start:B-1,reStart:r.length,open:_p[l].open,close:_p[l].close};this.debug(this.pattern," ",oe),a.push(oe),r+=oe.open,oe.start===0&&oe.type!=="!"&&(T=!0,r+=A(e.slice(B+1))),this.debug("plType %j %j",l,r),l=!1;continue}case")":{const oe=a[a.length-1];if(h||!oe){r+="\\)";continue}a.pop(),W(),s=!0,v=oe,r+=v.close,v.type==="!"&&c.push(Object.assign(v,{reEnd:r.length}));continue}case"|":{const oe=a[a.length-1];if(h||!oe){r+="\\|";continue}W(),r+="|",oe.start===0&&oe.type!=="!"&&(T=!0,r+=A(e.slice(B+1)));continue}case"[":if(W(),h){r+="\\"+Z;continue}h=!0,p=B,g=r.length,r+=Z;continue;case"]":if(B===p+1||!h){r+="\\"+Z;continue}w=e.substring(p+1,B);try{RegExp("["+B8(U8(w))+"]"),r+=Z}catch{r=r.substring(0,g)+"(?:$.)"}s=!0,h=!1;continue;default:W(),Sp[Z]&&!(Z==="^"&&h)&&(r+="\\"),r+=Z;break}}for(h&&(w=e.slice(p+1),x=this.parse(w,Al),r=r.substring(0,g)+"\\["+x[0],s=s||x[1]),v=a.pop();v;v=a.pop()){let B;B=r.slice(v.reStart+v.open.length),this.debug("setting tail",r,v),B=B.replace(/((?:\\{2}){0,64})(\\?)\|/g,(oe,qe,O)=>(O||(O="\\"),qe+qe+O+"|")),this.debug(`tail=%j
67
- %s`,B,B,v,r);const Z=v.type==="*"?Ol:v.type==="?"?sh:"\\"+v.type;s=!0,r=r.slice(0,v.reStart)+Z+"\\("+B}W(),o&&(r+="\\\\");const j=H8[r.charAt(0)];for(let B=c.length-1;B>-1;B--){const Z=c[B],oe=r.slice(0,Z.reStart),qe=r.slice(Z.reStart,Z.reEnd-8);let O=r.slice(Z.reEnd);const L=r.slice(Z.reEnd-8,Z.reEnd)+O,D=oe.split(")").length,P=oe.split("(").length-D;let N=O;for(let ee=0;ee<P;ee++)N=N.replace(/\)[+*?]?/,"");O=N;const $=O===""&&n!==Al?"(?:$|\\/)":"";r=oe+qe+O+$+L}if(r!==""&&s&&(r="(?=.)"+r),j&&(r=z()+r),n===Al)return[r,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return W8(e);const se=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+r+"$",se),{_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?Ol:n.dot?$8:q8,r=n.nocase?"i":"";let s=e.map(o=>(o=o.map(a=>typeof a=="string"?z8(a):a===ei?ei:a._src).reduce((a,c)=>(a[a.length-1]===ei&&c===ei||a.push(c),a),[]),o.forEach((a,c)=>{a!==ei||o[c-1]===ei||(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]=ei))}),o.filter(a=>a!==ei).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;rh.sep!=="/"&&(e=e.split(rh.sep).join("/")),e=e.split(Dp),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 Pn.defaults(e).Minimatch}}Pn.Minimatch=_c;Object.defineProperty(Ni,"__esModule",{value:!0});Ni.DiagnosticFeature=Ni.DiagnosticPullMode=Ni.vsdiag=void 0;const V8=Cc,Le=ye,vt=de,K8=$e,oh=ge;function na(t,e){return t[e]===void 0&&(t[e]={}),t[e]}var qn;(function(t){(function(e){e.full="full",e.unChanged="unChanged"})(t.DocumentDiagnosticReportKind||(t.DocumentDiagnosticReportKind={}))})(qn||(Ni.vsdiag=qn={}));var Ua;(function(t){t.onType="onType",t.onSave="onSave"})(Ua||(Ni.DiagnosticPullMode=Ua={}));var tn;(function(t){t.active="open",t.reschedule="reschedule",t.outDated="drop"})(tn||(tn={}));class fo{constructor(){this.open=new Set,this._onOpen=new Le.EventEmitter,this._onClose=new Le.EventEmitter,fo.fillTabResources(this.open);const e=n=>{if(n.closed.length===0&&n.opened.length===0)return;const i=this.open,r=new Set;fo.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(Le.Uri.parse(c));this._onClose.fire(a)}if(o.size>0){const a=new Set;for(const c of o)a.add(Le.Uri.parse(c));this._onOpen.fire(a)}};Le.window.tabGroups.onDidChangeTabs!==void 0?this.disposable=Le.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 Le.Uri?((n=Le.window.activeTextEditor)==null?void 0:n.document.uri)===e:((i=Le.window.activeTextEditor)==null?void 0:i.document)===e}isVisible(e){const n=e instanceof Le.Uri?e:e.uri;return this.open.has(n.toString())}getTabResources(){const e=new Set;return fo.fillTabResources(new Set,e),e}static fillTabResources(e,n){const i=e??new Set;for(const r of Le.window.tabGroups.all)for(const s of r.tabs){const o=s.input;let a;o instanceof Le.TabInputText?a=o.uri:o instanceof Le.TabInputTextDiff?a=o.modified:o instanceof Le.TabInputCustom&&(a=o.uri),a!==void 0&&!i.has(a.toString())&&(i.add(a.toString()),n!==void 0&&n.add(a))}}}var Mt;(function(t){t[t.document=1]="document",t[t.workspace=2]="workspace"})(Mt||(Mt={}));var Mi;(function(t){function e(n){return n instanceof Le.Uri?n.toString():n.uri.toString()}t.asKey=e})(Mi||(Mi={}));class G8{constructor(){this.documentPullStates=new Map,this.workspacePullStates=new Map}track(e,n,i){const r=e===Mt.document?this.documentPullStates:this.workspacePullStates,[s,o,a]=n instanceof Le.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===Mt.document?this.documentPullStates:this.workspacePullStates,[o,a,c,l]=n instanceof Le.Uri?[n.toString(),n,i,r]:[n.uri.toString(),n.uri,n.version,i];let h=s.get(o);h===void 0?(h={document:a,pulledVersion:c,resultId:l},s.set(o,h)):(h.pulledVersion=c,h.resultId=l)}unTrack(e,n){const i=Mi.asKey(n);(e===Mt.document?this.documentPullStates:this.workspacePullStates).delete(i)}tracks(e,n){const i=Mi.asKey(n);return(e===Mt.document?this.documentPullStates:this.workspacePullStates).has(i)}getResultId(e,n){var s;const i=Mi.asKey(n);return(s=(e===Mt.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 Q8{constructor(e,n,i){this.client=e,this.tabs=n,this.options=i,this.isDisposed=!1,this.onDidChangeDiagnosticsEmitter=new Le.EventEmitter,this.provider=this.createProvider(),this.diagnostics=Le.languages.createDiagnosticCollection(i.identifier),this.openRequests=new Map,this.documentStates=new G8,this.workspaceErrorCounter=0}knows(e,n){const i=n instanceof Le.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 Le.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 Le.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(Mt.document,e,n):this.documentStates.track(Mt.document,e);if(o===void 0){const c=new Le.CancellationTokenSource;this.openRequests.set(s,{state:tn.active,document:e,version:n,tokenSource:c});let l,h;try{l=await this.provider.provideDiagnostics(e,a.resultId,c.token)??{kind:qn.DocumentDiagnosticReportKind.full,items:[]}}catch(g){if(g instanceof oh.LSPCancellationError&&vt.DiagnosticServerCancellationData.is(g.data)&&g.data.retriggerRequest===!1&&(h={state:tn.outDated,document:e}),h===void 0&&g instanceof Le.CancellationError)h={state:tn.reschedule,document:e};else throw g}if(h=h??this.openRequests.get(s),h===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(Mt.document,e);return}if(h.state===tn.outDated)return;l!==void 0&&(l.kind===qn.DocumentDiagnosticReportKind.full&&this.diagnostics.set(r,l.items),a.pulledVersion=n,a.resultId=l.resultId),h.state===tn.reschedule&&this.pull(e)}else o.state===tn.active?(o.tokenSource.cancel(),this.openRequests.set(s,{state:tn.reschedule,document:o.document})):o.state===tn.outDated&&this.openRequests.set(s,{state:tn.reschedule,document:o.document})}forgetDocument(e){const n=e instanceof Le.Uri?e:e.uri,i=n.toString(),r=this.openRequests.get(i);this.options.workspaceDiagnostics?r!==void 0?this.openRequests.set(i,{state:tn.reschedule,document:e}):this.pull(e,()=>{this.forget(Mt.document,e)}):(r!==void 0&&(r.state===tn.active&&r.tokenSource.cancel(),this.openRequests.set(i,{state:tn.outDated,document:e})),this.diagnostics.delete(n),this.forget(Mt.document,e))}pullWorkspace(){this.isDisposed||this.pullWorkspaceAsync().then(()=>{this.workspaceTimeout=(0,vt.RAL)().timer.setTimeout(()=>{this.pullWorkspace()},2e3)},e=>{!(e instanceof oh.LSPCancellationError)&&!vt.DiagnosticServerCancellationData.is(e.data)&&(this.client.error("Workspace diagnostic pull failed.",e,!1),this.workspaceErrorCounter++),this.workspaceErrorCounter<=5&&(this.workspaceTimeout=(0,vt.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 Le.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===qn.DocumentDiagnosticReportKind.full&&(this.documentStates.tracks(Mt.document,i.uri)||this.diagnostics.set(i.uri,i.items)),this.documentStates.update(Mt.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 h={identifier:this.options.identifier,textDocument:{uri:this.client.code2ProtocolConverter.asUri(a instanceof Le.Uri?a:a.uri)},previousResultId:c};return this.isDisposed===!0||!this.client.isRunning()?{kind:qn.DocumentDiagnosticReportKind.full,items:[]}:this.client.sendRequest(vt.DocumentDiagnosticRequest.type,h,l).then(async g=>g==null||this.isDisposed||l.isCancellationRequested?{kind:qn.DocumentDiagnosticReportKind.full,items:[]}:g.kind===vt.DocumentDiagnosticReportKind.Full?{kind:qn.DocumentDiagnosticReportKind.full,resultId:g.resultId,items:await this.client.protocol2CodeConverter.asDiagnostics(g.items,l)}:{kind:qn.DocumentDiagnosticReportKind.unChanged,resultId:g.resultId},g=>this.client.handleFailedRequest(vt.DocumentDiagnosticRequest.type,l,g,{kind:qn.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===vt.DocumentDiagnosticReportKind.Full?{kind:qn.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:qn.DocumentDiagnosticReportKind.unChanged,uri:this.client.protocol2CodeConverter.asUri(l.uri),resultId:l.resultId,version:l.version},o=l=>{const h=[];for(const g of l)h.push({uri:this.client.code2ProtocolConverter.asUri(g.uri),value:g.value});return h},a=(l,h)=>{const g=(0,K8.generateUuid)(),p=this.client.onProgress(vt.WorkspaceDiagnosticRequest.partialResult,g,async v=>{if(v==null){r(null);return}const x={items:[]};for(const T of v.items)try{x.items.push(await s(T))}catch(q){this.client.error("Converting workspace diagnostics failed.",q)}r(x)}),w={identifier:this.options.identifier,previousResultIds:o(l),partialResultToken:g};return this.isDisposed===!0||!this.client.isRunning()?{items:[]}:this.client.sendRequest(vt.WorkspaceDiagnosticRequest.type,w,h).then(async v=>{if(h.isCancellationRequested)return{items:[]};const x={items:[]};for(const T of v.items)x.items.push(await s(T));return p.dispose(),r(x),{items:[]}},v=>(p.dispose(),this.client.handleFailedRequest(vt.DocumentDiagnosticRequest.type,h,v,{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===tn.active&&r.tokenSource.cancel(),this.openRequests.set(i,{state:tn.outDated,document:r.document});this.diagnostics.dispose()}}class J8{constructor(e){this.diagnosticRequestor=e,this.documents=new vt.LinkedMap,this.isDisposed=!1}add(e){if(this.isDisposed===!0)return;const n=Mi.asKey(e);this.documents.has(n)||(this.documents.set(n,e,vt.Touch.Last),this.trigger())}remove(e){const n=Mi.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,vt.RAL)().timer.setInterval(()=>{const e=this.documents.first;if(e!==void 0){const n=Mi.asKey(e);this.diagnosticRequestor.pull(e),this.documents.set(n,e,vt.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?Mi.asKey(this.endDocument):void 0}}class Y8{constructor(e,n,i){var v;const r=e.clientOptions.diagnosticPullOptions??{onChange:!0,onSave:!1},s=e.protocol2CodeConverter.asDocumentSelector(i.documentSelector),o=[],a=x=>{const T=i.documentSelector;if(r.match!==void 0)return r.match(T,x);for(const q of T)if(vt.TextDocumentFilter.is(q)){if(typeof q=="string"||q.language!==void 0&&q.language!=="*"||q.scheme!==void 0&&q.scheme!=="*"&&q.scheme!==x.scheme)return!1;if(q.pattern!==void 0){const z=new V8.Minimatch(q.pattern,{noext:!0});if(!z.makeRe()||!z.match(x.fsPath))return!1}}return!0},c=x=>x instanceof Le.Uri?a(x):Le.languages.match(s,x)>0&&n.isVisible(x),l=x=>{var T;return x instanceof Le.Uri?((T=this.activeTextDocument)==null?void 0:T.uri.toString())===x.toString():this.activeTextDocument===x};this.diagnosticRequestor=new Q8(e,n,i),this.backgroundScheduler=new J8(this.diagnosticRequestor);const h=x=>{!c(x)||!i.interFileDependencies||l(x)||this.backgroundScheduler.add(x)};this.activeTextDocument=(v=Le.window.activeTextEditor)==null?void 0:v.document,Le.window.onDidChangeActiveTextEditor(x=>{const T=this.activeTextDocument;this.activeTextDocument=x==null?void 0:x.document,T!==void 0&&h(T),this.activeTextDocument!==void 0&&this.backgroundScheduler.remove(this.activeTextDocument)});const g=e.getFeature(vt.DidOpenTextDocumentNotification.method);o.push(g.onNotificationSent(x=>{const T=x.textDocument;this.diagnosticRequestor.knows(Mt.document,T)||c(T)&&this.diagnosticRequestor.pull(T,()=>{h(T)})})),o.push(n.onOpen(x=>{for(const T of x){if(this.diagnosticRequestor.knows(Mt.document,T))continue;const q=T.toString();let z;for(const A of Le.workspace.textDocuments)if(q===A.uri.toString()){z=A;break}z!==void 0&&c(z)&&this.diagnosticRequestor.pull(z,()=>{h(z)})}}));const p=new Set;for(const x of Le.workspace.textDocuments)c(x)&&(this.diagnosticRequestor.pull(x,()=>{h(x)}),p.add(x.uri.toString()));if(r.onTabs===!0)for(const x of n.getTabResources())!p.has(x.toString())&&c(x)&&this.diagnosticRequestor.pull(x,()=>{h(x)});if(r.onChange===!0){const x=e.getFeature(vt.DidChangeTextDocumentNotification.method);o.push(x.onNotificationSent(async T=>{const q=T.textDocument;(r.filter===void 0||!r.filter(q,Ua.onType))&&this.diagnosticRequestor.knows(Mt.document,q)&&this.diagnosticRequestor.pull(q,()=>{this.backgroundScheduler.trigger()})}))}if(r.onSave===!0){const x=e.getFeature(vt.DidSaveTextDocumentNotification.method);o.push(x.onNotificationSent(T=>{const q=T.textDocument;(r.filter===void 0||!r.filter(q,Ua.onSave))&&this.diagnosticRequestor.knows(Mt.document,q)&&this.diagnosticRequestor.pull(T.textDocument,()=>{this.backgroundScheduler.trigger()})}))}const w=e.getFeature(vt.DidCloseTextDocumentNotification.method);o.push(w.onNotificationSent(x=>{this.cleanUpDocument(x.textDocument)})),n.onClose(x=>{for(const T of x)this.cleanUpDocument(T)}),this.diagnosticRequestor.onDidChangeDiagnosticsEmitter.event(()=>{for(const x of Le.workspace.textDocuments)c(x)&&this.diagnosticRequestor.pull(x)}),i.workspaceDiagnostics===!0&&i.identifier!=="da348dc5-c30a-4515-9d98-31ff3be38d14"&&this.diagnosticRequestor.pullWorkspace(),this.disposable=Le.Disposable.from(...o,this.backgroundScheduler,this.diagnosticRequestor)}get onDidChangeDiagnosticsEmitter(){return this.diagnosticRequestor.onDidChangeDiagnosticsEmitter}get diagnostics(){return this.diagnosticRequestor.provider}cleanUpDocument(e){this.diagnosticRequestor.knows(Mt.document,e)&&(this.diagnosticRequestor.forgetDocument(e),this.backgroundScheduler.remove(e))}}class X8 extends oh.TextDocumentLanguageFeature{constructor(e){super(e,vt.DocumentDiagnosticRequest.type)}fillClientCapabilities(e){let n=na(na(e,"textDocument"),"diagnostic");n.dynamicRegistration=!0,n.relatedDocumentSupport=!1,na(na(e,"workspace"),"diagnostics").refreshSupport=!0}initialize(e,n){this._client.onRequest(vt.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 fo);const n=new Y8(this._client,this.tabs,e);return[n.disposable,n]}}Ni.DiagnosticFeature=X8;var jt={},Sc={},Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.forEach=Wt.mapAsync=Wt.map=Wt.clearTestMode=Wt.setTestMode=Wt.Semaphore=Wt.Delayer=void 0;const Ko=de;class Z8{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,Ko.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)}}Wt.Delayer=Z8;let e6=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,Ko.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()}}};Wt.Semaphore=e6;let $1=!1;function t6(){$1=!0}Wt.setTestMode=t6;function n6(){$1=!1}Wt.clearTestMode=n6;const xp=15;class q1{constructor(e=xp){this.yieldAfter=$1===!0?Math.max(e,2):Math.max(e,xp),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 i6(t,e,n,i){if(t.length===0)return[];const r=new Array(t.length),s=new q1(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,Ko.RAL)().timer.setImmediate(()=>{c(o(a))})});return r}Wt.map=i6;async function r6(t,e,n,i){if(t.length===0)return[];const r=new Array(t.length),s=new q1(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,Ko.RAL)().timer.setImmediate(()=>{c(o(a))})});return r}Wt.mapAsync=r6;async function s6(t,e,n,i){if(t.length===0)return;const r=new q1(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,Ko.RAL)().timer.setImmediate(()=>{a(s(o))})})}Wt.forEach=s6;var Dc={};Object.defineProperty(Dc,"__esModule",{value:!0});const o6=ye;class a6 extends o6.CompletionItem{constructor(e){super(e)}}Dc.default=a6;var xc={};Object.defineProperty(xc,"__esModule",{value:!0});const c6=ye;class l6 extends c6.CodeLens{constructor(e){super(e)}}xc.default=l6;var kc={};Object.defineProperty(kc,"__esModule",{value:!0});const u6=ye;class d6 extends u6.DocumentLink{constructor(e,n){super(e,n)}}kc.default=d6;var Tc={};Object.defineProperty(Tc,"__esModule",{value:!0});const f6=ye;class h6 extends f6.CodeAction{constructor(e,n){super(e),this.data=n}}Tc.default=h6;var Hr={};Object.defineProperty(Hr,"__esModule",{value:!0});Hr.ProtocolDiagnostic=Hr.DiagnosticCode=void 0;const g6=ye,Ll=Ve;var kp;(function(t){function e(n){const i=n;return i!=null&&(Ll.number(i.value)||Ll.string(i.value))&&Ll.string(i.target)}t.is=e})(kp||(Hr.DiagnosticCode=kp={}));class p6 extends g6.Diagnostic{constructor(e,n,i,r){super(e,n,i),this.data=r,this.hasDiagnosticCode=!1}}Hr.ProtocolDiagnostic=p6;var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0});const m6=ye;class y6 extends m6.CallHierarchyItem{constructor(e,n,i,r,s,o,a){super(e,n,i,r,s,o),a!==void 0&&(this.data=a)}}Rc.default=y6;var Ec={};Object.defineProperty(Ec,"__esModule",{value:!0});const b6=ye;class v6 extends b6.TypeHierarchyItem{constructor(e,n,i,r,s,o,a){super(e,n,i,r,s,o),a!==void 0&&(this.data=a)}}Ec.default=v6;var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0});const ia=ye;let w6=class extends ia.SymbolInformation{constructor(e,n,i,r,s){const o=!(r instanceof ia.Uri);super(e,n,i,o?r:new ia.Location(r,new ia.Range(0,0,0,0))),this.hasRange=o,s!==void 0&&(this.data=s)}};Pc.default=w6;var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0});const C6=ye;class _6 extends C6.InlayHint{constructor(e,n,i){super(e,n,i)}}Ic.default=_6;Object.defineProperty(Sc,"__esModule",{value:!0});Sc.createConverter=void 0;const kt=ye,be=de,gr=Ve,Tp=Wt,S6=Dc,D6=xc,x6=kc,Rp=Tc,Ep=Hr,k6=Rc,T6=Ec,R6=Pc,E6=Ic;var ah;(function(t){function e(n){const i=n;return i&&!!i.inserting&&!!i.replacing}t.is=e})(ah||(ah={}));function P6(t){const n=t||(m=>m.toString());function i(m){return n(m)}function r(m){return{uri:n(m.uri)}}function s(m){return{uri:n(m.uri),languageId:m.languageId,version:m.version,text:m.getText()}}function o(m){return{uri:n(m.uri),version:m.version}}function a(m){return{textDocument:s(m)}}function c(m){const E=m;return!!E.document&&!!E.contentChanges}function l(m){const E=m;return!!E.uri&&!!E.version}function h(m,E,te){if(l(m))return{textDocument:{uri:n(m.uri),version:m.version},contentChanges:[{text:m.getText()}]};if(c(m)){const we=E,Te=te;return{textDocument:{uri:n(we),version:Te},contentChanges:m.contentChanges.map(S=>{const H=S.range;return{range:{start:{line:H.start.line,character:H.start.character},end:{line:H.end.line,character:H.end.character}},rangeLength:S.rangeLength,text:S.text}})}}else throw Error("Unsupported text document change parameter")}function g(m){return{textDocument:r(m)}}function p(m,E=!1){let te={textDocument:r(m)};return E&&(te.text=m.getText()),te}function w(m){switch(m){case kt.TextDocumentSaveReason.Manual:return be.TextDocumentSaveReason.Manual;case kt.TextDocumentSaveReason.AfterDelay:return be.TextDocumentSaveReason.AfterDelay;case kt.TextDocumentSaveReason.FocusOut:return be.TextDocumentSaveReason.FocusOut}return be.TextDocumentSaveReason.Manual}function v(m){return{textDocument:r(m.document),reason:w(m.reason)}}function x(m){return{files:m.files.map(E=>({uri:n(E)}))}}function T(m){return{files:m.files.map(E=>({oldUri:n(E.oldUri),newUri:n(E.newUri)}))}}function q(m){return{files:m.files.map(E=>({uri:n(E)}))}}function z(m){return{files:m.files.map(E=>({uri:n(E)}))}}function A(m){return{files:m.files.map(E=>({oldUri:n(E.oldUri),newUri:n(E.newUri)}))}}function W(m){return{files:m.files.map(E=>({uri:n(E)}))}}function j(m,E){return{textDocument:r(m),position:N(E)}}function se(m){switch(m){case kt.CompletionTriggerKind.TriggerCharacter:return be.CompletionTriggerKind.TriggerCharacter;case kt.CompletionTriggerKind.TriggerForIncompleteCompletions:return be.CompletionTriggerKind.TriggerForIncompleteCompletions;default:return be.CompletionTriggerKind.Invoked}}function B(m,E,te){return{textDocument:r(m),position:N(E),context:{triggerKind:se(te.triggerKind),triggerCharacter:te.triggerCharacter}}}function Z(m){switch(m){case kt.SignatureHelpTriggerKind.Invoke:return be.SignatureHelpTriggerKind.Invoked;case kt.SignatureHelpTriggerKind.TriggerCharacter:return be.SignatureHelpTriggerKind.TriggerCharacter;case kt.SignatureHelpTriggerKind.ContentChange:return be.SignatureHelpTriggerKind.ContentChange}}function oe(m){return{label:m.label}}function qe(m){return m.map(oe)}function O(m){return{label:m.label,parameters:qe(m.parameters)}}function L(m){return m.map(O)}function D(m){return m===void 0?m:{signatures:L(m.signatures),activeSignature:m.activeSignature,activeParameter:m.activeParameter}}function P(m,E,te){return{textDocument:r(m),position:N(E),context:{isRetrigger:te.isRetrigger,triggerCharacter:te.triggerCharacter,triggerKind:Z(te.triggerKind),activeSignatureHelp:D(te.activeSignatureHelp)}}}function N(m){return{line:m.line,character:m.character}}function $(m){return m==null?m:{line:m.line>be.uinteger.MAX_VALUE?be.uinteger.MAX_VALUE:m.line,character:m.character>be.uinteger.MAX_VALUE?be.uinteger.MAX_VALUE:m.character}}function ee(m,E){return Tp.map(m,$,E)}function ke(m){return m.map($)}function pe(m){return m==null?m:{start:$(m.start),end:$(m.end)}}function ot(m){return m.map(pe)}function Ke(m){return m==null?m:be.Location.create(i(m.uri),pe(m.range))}function Pe(m){switch(m){case kt.DiagnosticSeverity.Error:return be.DiagnosticSeverity.Error;case kt.DiagnosticSeverity.Warning:return be.DiagnosticSeverity.Warning;case kt.DiagnosticSeverity.Information:return be.DiagnosticSeverity.Information;case kt.DiagnosticSeverity.Hint:return be.DiagnosticSeverity.Hint}}function ft(m){if(!m)return;let E=[];for(let te of m){let we=He(te);we!==void 0&&E.push(we)}return E.length>0?E:void 0}function He(m){switch(m){case kt.DiagnosticTag.Unnecessary:return be.DiagnosticTag.Unnecessary;case kt.DiagnosticTag.Deprecated:return be.DiagnosticTag.Deprecated;default:return}}function ht(m){return{message:m.message,location:Ke(m.location)}}function rt(m){return m.map(ht)}function Ut(m){if(m!=null)return gr.number(m)||gr.string(m)?m:{value:m.value,target:i(m.target)}}function gt(m){const E=be.Diagnostic.create(pe(m.range),m.message),te=m instanceof Ep.ProtocolDiagnostic?m:void 0;te!==void 0&&te.data!==void 0&&(E.data=te.data);const we=Ut(m.code);return Ep.DiagnosticCode.is(we)?te!==void 0&&te.hasDiagnosticCode?E.code=we:(E.code=we.value,E.codeDescription={href:we.target}):E.code=we,gr.number(m.severity)&&(E.severity=Pe(m.severity)),Array.isArray(m.tags)&&(E.tags=ft(m.tags)),m.relatedInformation&&(E.relatedInformation=rt(m.relatedInformation)),m.source&&(E.source=m.source),E}function Dt(m,E){return m==null?m:Tp.map(m,gt,E)}function Pt(m){return m==null?m:m.map(gt)}function Lt(m,E){switch(m){case"$string":return E;case be.MarkupKind.PlainText:return{kind:m,value:E};case be.MarkupKind.Markdown:return{kind:m,value:E.value};default:return`Unsupported Markup content received. Kind is: ${m}`}}function Se(m){switch(m){case kt.CompletionItemTag.Deprecated:return be.CompletionItemTag.Deprecated}}function Nt(m){if(m===void 0)return m;const E=[];for(let te of m){const we=Se(te);we!==void 0&&E.push(we)}return E}function Be(m,E){return E!==void 0?E:m+1}function xt(m,E=!1){let te,we;gr.string(m.label)?te=m.label:(te=m.label.label,E&&(m.label.detail!==void 0||m.label.description!==void 0)&&(we={detail:m.label.detail,description:m.label.description}));let Te={label:te};we!==void 0&&(Te.labelDetails=we);let at=m instanceof S6.default?m:void 0;m.detail&&(Te.detail=m.detail),m.documentation&&(!at||at.documentationFormat==="$string"?Te.documentation=m.documentation:Te.documentation=Lt(at.documentationFormat,m.documentation)),m.filterText&&(Te.filterText=m.filterText),Cn(Te,m),gr.number(m.kind)&&(Te.kind=Be(m.kind,at&&at.originalItemKind)),m.sortText&&(Te.sortText=m.sortText),m.additionalTextEdits&&(Te.additionalTextEdits=It(m.additionalTextEdits)),m.commitCharacters&&(Te.commitCharacters=m.commitCharacters.slice()),m.command&&(Te.command=Zt(m.command)),(m.preselect===!0||m.preselect===!1)&&(Te.preselect=m.preselect);const S=Nt(m.tags);if(at){if(at.data!==void 0&&(Te.data=at.data),at.deprecated===!0||at.deprecated===!1){if(at.deprecated===!0&&S!==void 0&&S.length>0){const H=S.indexOf(kt.CompletionItemTag.Deprecated);H!==-1&&S.splice(H,1)}Te.deprecated=at.deprecated}at.insertTextMode!==void 0&&(Te.insertTextMode=at.insertTextMode)}return S!==void 0&&S.length>0&&(Te.tags=S),Te.insertTextMode===void 0&&m.keepWhitespace===!0&&(Te.insertTextMode=be.InsertTextMode.adjustIndentation),Te}function Cn(m,E){let te=be.InsertTextFormat.PlainText,we,Te;E.textEdit?(we=E.textEdit.newText,Te=E.textEdit.range):E.insertText instanceof kt.SnippetString?(te=be.InsertTextFormat.Snippet,we=E.insertText.value):we=E.insertText,E.range&&(Te=E.range),m.insertTextFormat=te,E.fromEdit&&we!==void 0&&Te!==void 0?m.textEdit=hn(we,Te):m.insertText=we}function hn(m,E){return ah.is(E)?be.InsertReplaceEdit.create(m,pe(E.inserting),pe(E.replacing)):{newText:m,range:pe(E)}}function Jt(m){return{range:pe(m.range),newText:m.newText}}function It(m){return m==null?m:m.map(Jt)}function Ft(m){return m<=kt.SymbolKind.TypeParameter?m+1:be.SymbolKind.Property}function Xe(m){return m}function Yt(m){return m.map(Xe)}function Kn(m,E,te){return{textDocument:r(m),position:N(E),context:{includeDeclaration:te.includeDeclaration}}}async function In(m,E){let te=be.CodeAction.create(m.title);if(m instanceof Rp.default&&m.data!==void 0&&(te.data=m.data),m.kind!==void 0&&(te.kind=Xt(m.kind)),m.diagnostics!==void 0&&(te.diagnostics=await Dt(m.diagnostics,E)),m.edit!==void 0)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return m.command!==void 0&&(te.command=Zt(m.command)),m.isPreferred!==void 0&&(te.isPreferred=m.isPreferred),m.disabled!==void 0&&(te.disabled={reason:m.disabled.reason}),te}function Fn(m){let E=be.CodeAction.create(m.title);if(m instanceof Rp.default&&m.data!==void 0&&(E.data=m.data),m.kind!==void 0&&(E.kind=Xt(m.kind)),m.diagnostics!==void 0&&(E.diagnostics=Pt(m.diagnostics)),m.edit!==void 0)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return m.command!==void 0&&(E.command=Zt(m.command)),m.isPreferred!==void 0&&(E.isPreferred=m.isPreferred),m.disabled!==void 0&&(E.disabled={reason:m.disabled.reason}),E}async function Gn(m,E){if(m==null)return m;let te;return m.only&&gr.string(m.only.value)&&(te=[m.only.value]),be.CodeActionContext.create(await Dt(m.diagnostics,E),te,_n(m.triggerKind))}function Qn(m){if(m==null)return m;let E;return m.only&&gr.string(m.only.value)&&(E=[m.only.value]),be.CodeActionContext.create(Pt(m.diagnostics),E,_n(m.triggerKind))}function _n(m){switch(m){case kt.CodeActionTriggerKind.Invoke:return be.CodeActionTriggerKind.Invoked;case kt.CodeActionTriggerKind.Automatic:return be.CodeActionTriggerKind.Automatic;default:return}}function Xt(m){if(m!=null)return m.value}function Mn(m){return m==null?m:be.InlineValueContext.create(m.frameId,pe(m.stoppedLocation))}function ai(m,E,te){return{context:be.InlineCompletionContext.create(te.triggerKind,te.selectedCompletionInfo),textDocument:r(m),position:$(E)}}function Zt(m){let E=be.Command.create(m.title,m.command);return m.arguments&&(E.arguments=m.arguments),E}function gn(m){let E=be.CodeLens.create(pe(m.range));return m.command&&(E.command=Zt(m.command)),m instanceof D6.default&&m.data&&(E.data=m.data),E}function On(m,E){const te={tabSize:m.tabSize,insertSpaces:m.insertSpaces};return E.trimTrailingWhitespace&&(te.trimTrailingWhitespace=!0),E.trimFinalNewlines&&(te.trimFinalNewlines=!0),E.insertFinalNewline&&(te.insertFinalNewline=!0),te}function en(m){return{textDocument:r(m)}}function An(m){return{textDocument:r(m)}}function Sn(m){let E=be.DocumentLink.create(pe(m.range));m.target&&(E.target=i(m.target)),m.tooltip!==void 0&&(E.tooltip=m.tooltip);let te=m instanceof x6.default?m:void 0;return te&&te.data&&(E.data=te.data),E}function Ln(m){return{textDocument:r(m)}}function ci(m){const E={name:m.name,kind:Ft(m.kind),uri:i(m.uri),range:pe(m.range),selectionRange:pe(m.selectionRange)};return m.detail!==void 0&&m.detail.length>0&&(E.detail=m.detail),m.tags!==void 0&&(E.tags=Yt(m.tags)),m instanceof k6.default&&m.data!==void 0&&(E.data=m.data),E}function Dn(m){const E={name:m.name,kind:Ft(m.kind),uri:i(m.uri),range:pe(m.range),selectionRange:pe(m.selectionRange)};return m.detail!==void 0&&m.detail.length>0&&(E.detail=m.detail),m.tags!==void 0&&(E.tags=Yt(m.tags)),m instanceof T6.default&&m.data!==void 0&&(E.data=m.data),E}function zt(m){const E=m instanceof R6.default?{name:m.name,kind:Ft(m.kind),location:m.hasRange?Ke(m.location):{uri:n(m.location.uri)},data:m.data}:{name:m.name,kind:Ft(m.kind),location:Ke(m.location)};return m.tags!==void 0&&(E.tags=Yt(m.tags)),m.containerName!==""&&(E.containerName=m.containerName),E}function Nn(m){const E=typeof m.label=="string"?m.label:m.label.map(Jn),te=be.InlayHint.create($(m.position),E);return m.kind!==void 0&&(te.kind=m.kind),m.textEdits!==void 0&&(te.textEdits=It(m.textEdits)),m.tooltip!==void 0&&(te.tooltip=cn(m.tooltip)),m.paddingLeft!==void 0&&(te.paddingLeft=m.paddingLeft),m.paddingRight!==void 0&&(te.paddingRight=m.paddingRight),m instanceof E6.default&&m.data!==void 0&&(te.data=m.data),te}function Jn(m){const E=be.InlayHintLabelPart.create(m.value);return m.location!==void 0&&(E.location=Ke(m.location)),m.command!==void 0&&(E.command=Zt(m.command)),m.tooltip!==void 0&&(E.tooltip=cn(m.tooltip)),E}function cn(m){return typeof m=="string"?m:{kind:be.MarkupKind.Markdown,value:m.value}}return{asUri:i,asTextDocumentIdentifier:r,asTextDocumentItem:s,asVersionedTextDocumentIdentifier:o,asOpenTextDocumentParams:a,asChangeTextDocumentParams:h,asCloseTextDocumentParams:g,asSaveTextDocumentParams:p,asWillSaveTextDocumentParams:v,asDidCreateFilesParams:x,asDidRenameFilesParams:T,asDidDeleteFilesParams:q,asWillCreateFilesParams:z,asWillRenameFilesParams:A,asWillDeleteFilesParams:W,asTextDocumentPositionParams:j,asCompletionParams:B,asSignatureHelpParams:P,asWorkerPosition:N,asRange:pe,asRanges:ot,asPosition:$,asPositions:ee,asPositionsSync:ke,asLocation:Ke,asDiagnosticSeverity:Pe,asDiagnosticTag:He,asDiagnostic:gt,asDiagnostics:Dt,asDiagnosticsSync:Pt,asCompletionItem:xt,asTextEdit:Jt,asSymbolKind:Ft,asSymbolTag:Xe,asSymbolTags:Yt,asReferenceParams:Kn,asCodeAction:In,asCodeActionSync:Fn,asCodeActionContext:Gn,asCodeActionContextSync:Qn,asInlineValueContext:Mn,asCommand:Zt,asCodeLens:gn,asFormattingOptions:On,asDocumentSymbolParams:en,asCodeLensParams:An,asDocumentLink:Sn,asDocumentLinkParams:Ln,asCallHierarchyItem:ci,asTypeHierarchyItem:Dn,asInlayHint:Nn,asWorkspaceSymbol:zt,asInlineCompletionParams:ai}}Sc.createConverter=P6;var Fc={};Object.defineProperty(Fc,"__esModule",{value:!0});Fc.createConverter=void 0;const X=ye,me=de,Hn=Ve,We=Wt,I6=Dc,F6=xc,M6=kc,O6=Tc,Pp=Hr,A6=Rc,L6=Ec,N6=Pc,$6=Ic,Ip=de;var za;(function(t){function e(n){let i=n;return i&&Hn.string(i.language)&&Hn.string(i.value)}t.is=e})(za||(za={}));function q6(t,e,n){const r=t||(d=>X.Uri.parse(d));function s(d){return r(d)}function o(d){const _=[];for(const I of d)if(typeof I=="string")_.push(I);else if(Ip.NotebookCellTextDocumentFilter.is(I))if(typeof I.notebook=="string")_.push({notebookType:I.notebook,language:I.language});else{const V=I.notebook.notebookType??"*";_.push({notebookType:V,scheme:I.notebook.scheme,pattern:I.notebook.pattern,language:I.language})}else Ip.TextDocumentFilter.is(I)&&_.push({language:I.language,scheme:I.scheme,pattern:I.pattern});return _}async function a(d,_){return We.map(d,l,_)}function c(d){const _=new Array(d.length);for(let I=0;I<d.length;I++)_[I]=l(d[I]);return _}function l(d){let _=new Pp.ProtocolDiagnostic(v(d.range),d.message,T(d.severity),d.data);if(d.code!==void 0){if(typeof d.code=="string"||typeof d.code=="number")me.CodeDescription.is(d.codeDescription)?_.code={value:d.code,target:s(d.codeDescription.href)}:_.code=d.code;else if(Pp.DiagnosticCode.is(d.code)){_.hasDiagnosticCode=!0;const I=d.code;_.code={value:I.value,target:s(I.target)}}}return d.source&&(_.source=d.source),d.relatedInformation&&(_.relatedInformation=h(d.relatedInformation)),Array.isArray(d.tags)&&(_.tags=g(d.tags)),_}function h(d){const _=new Array(d.length);for(let I=0;I<d.length;I++){const V=d[I];_[I]=new X.DiagnosticRelatedInformation(Pe(V.location),V.message)}return _}function g(d){if(!d)return;let _=[];for(let I of d){let V=p(I);V!==void 0&&_.push(V)}return _.length>0?_:void 0}function p(d){switch(d){case me.DiagnosticTag.Unnecessary:return X.DiagnosticTag.Unnecessary;case me.DiagnosticTag.Deprecated:return X.DiagnosticTag.Deprecated;default:return}}function w(d){return d?new X.Position(d.line,d.character):void 0}function v(d){return d?new X.Range(d.start.line,d.start.character,d.end.line,d.end.character):void 0}async function x(d,_){return We.map(d,I=>new X.Range(I.start.line,I.start.character,I.end.line,I.end.character),_)}function T(d){if(d==null)return X.DiagnosticSeverity.Error;switch(d){case me.DiagnosticSeverity.Error:return X.DiagnosticSeverity.Error;case me.DiagnosticSeverity.Warning:return X.DiagnosticSeverity.Warning;case me.DiagnosticSeverity.Information:return X.DiagnosticSeverity.Information;case me.DiagnosticSeverity.Hint:return X.DiagnosticSeverity.Hint}return X.DiagnosticSeverity.Error}function q(d){if(Hn.string(d))return A(d);if(za.is(d))return A().appendCodeblock(d.value,d.language);if(Array.isArray(d)){let _=[];for(let I of d){let V=A();za.is(I)?V.appendCodeblock(I.value,I.language):V.appendMarkdown(I),_.push(V)}return _}else return A(d)}function z(d){if(Hn.string(d))return d;switch(d.kind){case me.MarkupKind.Markdown:return A(d.value);case me.MarkupKind.PlainText:return d.value;default:return`Unsupported Markup content received. Kind is: ${d.kind}`}}function A(d){let _;if(d===void 0||typeof d=="string")_=new X.MarkdownString(d);else switch(d.kind){case me.MarkupKind.Markdown:_=new X.MarkdownString(d.value);break;case me.MarkupKind.PlainText:_=new X.MarkdownString,_.appendText(d.value);break;default:_=new X.MarkdownString,_.appendText(`Unsupported Markup content received. Kind is: ${d.kind}`);break}return _.isTrusted=e,_.supportHtml=n,_}function W(d){if(d)return new X.Hover(q(d.contents),v(d.range))}async function j(d,_,I){if(!d)return;if(Array.isArray(d))return We.map(d,$n=>qe($n,_),I);const V=d,{defaultRange:Ce,commitCharacters:Oe}=se(V,_),De=await We.map(V.items,$n=>{var Ge,fr,Ls;return qe($n,Oe,Ce,(Ge=V.itemDefaults)==null?void 0:Ge.insertTextMode,(fr=V.itemDefaults)==null?void 0:fr.insertTextFormat,(Ls=V.itemDefaults)==null?void 0:Ls.data)},I);return new X.CompletionList(De,V.isIncomplete)}function se(d,_){var Ce,Oe;const I=(Ce=d.itemDefaults)==null?void 0:Ce.editRange,V=((Oe=d.itemDefaults)==null?void 0:Oe.commitCharacters)??_;return me.Range.is(I)?{defaultRange:v(I),commitCharacters:V}:I!==void 0?{defaultRange:{inserting:v(I.insert),replacing:v(I.replace)},commitCharacters:V}:{defaultRange:void 0,commitCharacters:V}}function B(d){return me.CompletionItemKind.Text<=d&&d<=me.CompletionItemKind.TypeParameter?[d-1,void 0]:[X.CompletionItemKind.Text,d]}function Z(d){switch(d){case me.CompletionItemTag.Deprecated:return X.CompletionItemTag.Deprecated}}function oe(d){if(d==null)return[];const _=[];for(const I of d){const V=Z(I);V!==void 0&&_.push(V)}return _}function qe(d,_,I,V,Ce,Oe){const De=oe(d.tags),$n=O(d),Ge=new I6.default($n);d.detail&&(Ge.detail=d.detail),d.documentation&&(Ge.documentation=z(d.documentation),Ge.documentationFormat=Hn.string(d.documentation)?"$string":d.documentation.kind),d.filterText&&(Ge.filterText=d.filterText);const fr=L(d,I,Ce);if(fr&&(Ge.insertText=fr.text,Ge.range=fr.range,Ge.fromEdit=fr.fromEdit),Hn.number(d.kind)){let[G2,J1]=B(d.kind);Ge.kind=G2,J1&&(Ge.originalItemKind=J1)}d.sortText&&(Ge.sortText=d.sortText),d.additionalTextEdits&&(Ge.additionalTextEdits=$(d.additionalTextEdits));const Ls=d.commitCharacters!==void 0?Hn.stringArray(d.commitCharacters)?d.commitCharacters:void 0:_;Ls&&(Ge.commitCharacters=Ls.slice()),d.command&&(Ge.command=It(d.command)),(d.deprecated===!0||d.deprecated===!1)&&(Ge.deprecated=d.deprecated,d.deprecated===!0&&De.push(X.CompletionItemTag.Deprecated)),(d.preselect===!0||d.preselect===!1)&&(Ge.preselect=d.preselect);const Q1=d.data??Oe;Q1!==void 0&&(Ge.data=Q1),De.length>0&&(Ge.tags=De);const Cl=d.insertTextMode??V;return Cl!==void 0&&(Ge.insertTextMode=Cl,Cl===me.InsertTextMode.asIs&&(Ge.keepWhitespace=!0)),Ge}function O(d){return me.CompletionItemLabelDetails.is(d.labelDetails)?{label:d.label,detail:d.labelDetails.detail,description:d.labelDetails.description}:d.label}function L(d,_,I){const V=d.insertTextFormat??I;if(d.textEdit!==void 0||_!==void 0){const[Ce,Oe]=d.textEdit!==void 0?D(d.textEdit):[_,d.textEditText??d.label];return V===me.InsertTextFormat.Snippet?{text:new X.SnippetString(Oe),range:Ce,fromEdit:!0}:{text:Oe,range:Ce,fromEdit:!0}}else return d.insertText?V===me.InsertTextFormat.Snippet?{text:new X.SnippetString(d.insertText),fromEdit:!1}:{text:d.insertText,fromEdit:!1}:void 0}function D(d){return me.InsertReplaceEdit.is(d)?[{inserting:v(d.insert),replacing:v(d.replace)},d.newText]:[v(d.range),d.newText]}function P(d){if(d)return new X.TextEdit(v(d.range),d.newText)}async function N(d,_){if(d)return We.map(d,P,_)}function $(d){if(!d)return;const _=new Array(d.length);for(let I=0;I<d.length;I++)_[I]=P(d[I]);return _}async function ee(d,_){if(!d)return;let I=new X.SignatureHelp;return Hn.number(d.activeSignature)?I.activeSignature=d.activeSignature:I.activeSignature=0,Hn.number(d.activeParameter)?I.activeParameter=d.activeParameter:I.activeParameter=0,d.signatures&&(I.signatures=await ke(d.signatures,_)),I}async function ke(d,_){return We.mapAsync(d,pe,_)}async function pe(d,_){let I=new X.SignatureInformation(d.label);return d.documentation!==void 0&&(I.documentation=z(d.documentation)),d.parameters!==void 0&&(I.parameters=await ot(d.parameters,_)),d.activeParameter!==void 0&&(I.activeParameter=d.activeParameter),I}function ot(d,_){return We.map(d,Ke,_)}function Ke(d){let _=new X.ParameterInformation(d.label);return d.documentation&&(_.documentation=z(d.documentation)),_}function Pe(d){return d?new X.Location(r(d.uri),v(d.range)):void 0}async function ft(d,_){if(d)return rt(d,_)}async function He(d,_){if(d)return rt(d,_)}function ht(d){if(!d)return;let _={targetUri:r(d.targetUri),targetRange:v(d.targetRange),originSelectionRange:v(d.originSelectionRange),targetSelectionRange:v(d.targetSelectionRange)};if(!_.targetSelectionRange)throw new Error("targetSelectionRange must not be undefined or null");return _}async function rt(d,_){if(d)if(Hn.array(d)){if(d.length===0)return[];if(me.LocationLink.is(d[0])){const I=d;return We.map(I,ht,_)}else{const I=d;return We.map(I,Pe,_)}}else return me.LocationLink.is(d)?[ht(d)]:Pe(d)}async function Ut(d,_){if(d)return We.map(d,Pe,_)}async function gt(d,_){if(d)return We.map(d,Dt,_)}function Dt(d){let _=new X.DocumentHighlight(v(d.range));return Hn.number(d.kind)&&(_.kind=Pt(d.kind)),_}function Pt(d){switch(d){case me.DocumentHighlightKind.Text:return X.DocumentHighlightKind.Text;case me.DocumentHighlightKind.Read:return X.DocumentHighlightKind.Read;case me.DocumentHighlightKind.Write:return X.DocumentHighlightKind.Write}return X.DocumentHighlightKind.Text}async function Lt(d,_){if(d)return We.map(d,xt,_)}function Se(d){return d<=me.SymbolKind.TypeParameter?d-1:X.SymbolKind.Property}function Nt(d){switch(d){case me.SymbolTag.Deprecated:return X.SymbolTag.Deprecated;default:return}}function Be(d){if(d==null)return;const _=[];for(const I of d){const V=Nt(I);V!==void 0&&_.push(V)}return _.length===0?void 0:_}function xt(d){const _=d.data,I=d.location,V=I.range===void 0||_!==void 0?new N6.default(d.name,Se(d.kind),d.containerName??"",I.range===void 0?r(I.uri):new X.Location(r(d.location.uri),v(I.range)),_):new X.SymbolInformation(d.name,Se(d.kind),d.containerName??"",new X.Location(r(d.location.uri),v(I.range)));return Jt(V,d),V}async function Cn(d,_){if(d!=null)return We.map(d,hn,_)}function hn(d){let _=new X.DocumentSymbol(d.name,d.detail||"",Se(d.kind),v(d.range),v(d.selectionRange));if(Jt(_,d),d.children!==void 0&&d.children.length>0){let I=[];for(let V of d.children)I.push(hn(V));_.children=I}return _}function Jt(d,_){d.tags=Be(_.tags),_.deprecated&&(d.tags?d.tags.includes(X.SymbolTag.Deprecated)||(d.tags=d.tags.concat(X.SymbolTag.Deprecated)):d.tags=[X.SymbolTag.Deprecated])}function It(d){let _={title:d.title,command:d.command};return d.arguments&&(_.arguments=d.arguments),_}async function Ft(d,_){if(d)return We.map(d,It,_)}const Xe=new Map;Xe.set(me.CodeActionKind.Empty,X.CodeActionKind.Empty),Xe.set(me.CodeActionKind.QuickFix,X.CodeActionKind.QuickFix),Xe.set(me.CodeActionKind.Refactor,X.CodeActionKind.Refactor),Xe.set(me.CodeActionKind.RefactorExtract,X.CodeActionKind.RefactorExtract),Xe.set(me.CodeActionKind.RefactorInline,X.CodeActionKind.RefactorInline),Xe.set(me.CodeActionKind.RefactorRewrite,X.CodeActionKind.RefactorRewrite),Xe.set(me.CodeActionKind.Source,X.CodeActionKind.Source),Xe.set(me.CodeActionKind.SourceOrganizeImports,X.CodeActionKind.SourceOrganizeImports);function Yt(d){if(d==null)return;let _=Xe.get(d);if(_)return _;let I=d.split(".");_=X.CodeActionKind.Empty;for(let V of I)_=_.append(V);return _}function Kn(d){if(d!=null)return d.map(_=>Yt(_))}async function In(d,_){if(d==null)return;let I=new O6.default(d.title,d.data);return d.kind!==void 0&&(I.kind=Yt(d.kind)),d.diagnostics!==void 0&&(I.diagnostics=c(d.diagnostics)),d.edit!==void 0&&(I.edit=await _n(d.edit,_)),d.command!==void 0&&(I.command=It(d.command)),d.isPreferred!==void 0&&(I.isPreferred=d.isPreferred),d.disabled!==void 0&&(I.disabled={reason:d.disabled.reason}),I}function Fn(d,_){return We.mapAsync(d,async I=>me.Command.is(I)?It(I):In(I,_),_)}function Gn(d){if(!d)return;let _=new F6.default(v(d.range));return d.command&&(_.command=It(d.command)),d.data!==void 0&&d.data!==null&&(_.data=d.data),_}async function Qn(d,_){if(d)return We.map(d,Gn,_)}async function _n(d,_){if(!d)return;const I=new Map;if(d.changeAnnotations!==void 0){const Oe=d.changeAnnotations;await We.forEach(Object.keys(Oe),De=>{const $n=Xt(Oe[De]);I.set(De,$n)},_)}const V=Oe=>{if(Oe!==void 0)return I.get(Oe)},Ce=new X.WorkspaceEdit;if(d.documentChanges){const Oe=d.documentChanges;await We.forEach(Oe,De=>{if(me.CreateFile.is(De))Ce.createFile(r(De.uri),De.options,V(De.annotationId));else if(me.RenameFile.is(De))Ce.renameFile(r(De.oldUri),r(De.newUri),De.options,V(De.annotationId));else if(me.DeleteFile.is(De))Ce.deleteFile(r(De.uri),De.options,V(De.annotationId));else if(me.TextDocumentEdit.is(De)){const $n=r(De.textDocument.uri);for(const Ge of De.edits)me.AnnotatedTextEdit.is(Ge)?Ce.replace($n,v(Ge.range),Ge.newText,V(Ge.annotationId)):Ce.replace($n,v(Ge.range),Ge.newText)}else throw new Error(`Unknown workspace edit change received:
68
- ${JSON.stringify(De,void 0,4)}`)},_)}else if(d.changes){const Oe=d.changes;await We.forEach(Object.keys(Oe),De=>{Ce.set(r(De),$(Oe[De]))},_)}return Ce}function Xt(d){if(d!==void 0)return{label:d.label,needsConfirmation:!!d.needsConfirmation,description:d.description}}function Mn(d){let _=v(d.range),I=d.target?s(d.target):void 0,V=new M6.default(_,I);return d.tooltip!==void 0&&(V.tooltip=d.tooltip),d.data!==void 0&&d.data!==null&&(V.data=d.data),V}async function ai(d,_){if(d)return We.map(d,Mn,_)}function Zt(d){return new X.Color(d.red,d.green,d.blue,d.alpha)}function gn(d){return new X.ColorInformation(v(d.range),Zt(d.color))}async function On(d,_){if(d)return We.map(d,gn,_)}function en(d){let _=new X.ColorPresentation(d.label);return _.additionalTextEdits=$(d.additionalTextEdits),d.textEdit&&(_.textEdit=P(d.textEdit)),_}async function An(d,_){if(d)return We.map(d,en,_)}function Sn(d){if(d)switch(d){case me.FoldingRangeKind.Comment:return X.FoldingRangeKind.Comment;case me.FoldingRangeKind.Imports:return X.FoldingRangeKind.Imports;case me.FoldingRangeKind.Region:return X.FoldingRangeKind.Region}}function Ln(d){return new X.FoldingRange(d.startLine,d.endLine,Sn(d.kind))}async function ci(d,_){if(d)return We.map(d,Ln,_)}function Dn(d){return new X.SelectionRange(v(d.range),d.parent?Dn(d.parent):void 0)}async function zt(d,_){return Array.isArray(d)?We.map(d,Dn,_):[]}function Nn(d){return me.InlineValueText.is(d)?new X.InlineValueText(v(d.range),d.text):me.InlineValueVariableLookup.is(d)?new X.InlineValueVariableLookup(v(d.range),d.variableName,d.caseSensitiveLookup):new X.InlineValueEvaluatableExpression(v(d.range),d.expression)}async function Jn(d,_){return Array.isArray(d)?We.map(d,Nn,_):[]}async function cn(d,_){const I=typeof d.label=="string"?d.label:await We.map(d.label,m,_),V=new $6.default(w(d.position),I);return d.kind!==void 0&&(V.kind=d.kind),d.textEdits!==void 0&&(V.textEdits=await N(d.textEdits,_)),d.tooltip!==void 0&&(V.tooltip=E(d.tooltip)),d.paddingLeft!==void 0&&(V.paddingLeft=d.paddingLeft),d.paddingRight!==void 0&&(V.paddingRight=d.paddingRight),d.data!==void 0&&(V.data=d.data),V}function m(d){const _=new X.InlayHintLabelPart(d.value);return d.location!==void 0&&(_.location=Pe(d.location)),d.tooltip!==void 0&&(_.tooltip=E(d.tooltip)),d.command!==void 0&&(_.command=It(d.command)),_}function E(d){return typeof d=="string"?d:A(d)}async function te(d,_){if(Array.isArray(d))return We.mapAsync(d,cn,_)}function we(d){if(d===null)return;const _=new A6.default(Se(d.kind),d.name,d.detail||"",s(d.uri),v(d.range),v(d.selectionRange),d.data);return d.tags!==void 0&&(_.tags=Be(d.tags)),_}async function Te(d,_){if(d!==null)return We.map(d,we,_)}async function at(d,_){return new X.CallHierarchyIncomingCall(we(d.from),await x(d.fromRanges,_))}async function S(d,_){if(d!==null)return We.mapAsync(d,at,_)}async function H(d,_){return new X.CallHierarchyOutgoingCall(we(d.to),await x(d.fromRanges,_))}async function Y(d,_){if(d!==null)return We.mapAsync(d,H,_)}async function b(d,_){if(d!=null)return new X.SemanticTokens(new Uint32Array(d.data),d.resultId)}function le(d){return new X.SemanticTokensEdit(d.start,d.deleteCount,d.data!==void 0?new Uint32Array(d.data):void 0)}async function fe(d,_){if(d!=null)return new X.SemanticTokensEdits(d.edits.map(le),d.resultId)}function G(d){return d}async function C(d,_){if(d!=null)return new X.LinkedEditingRanges(await x(d.ranges,_),M(d.wordPattern))}function M(d){if(d!=null)return new RegExp(d)}function U(d){if(d===null)return;let _=new L6.default(Se(d.kind),d.name,d.detail||"",s(d.uri),v(d.range),v(d.selectionRange),d.data);return d.tags!==void 0&&(_.tags=Be(d.tags)),_}async function Q(d,_){if(d!==null)return We.map(d,U,_)}function Ie(d){if(Hn.string(d))return d;if(me.RelativePattern.is(d)){if(me.URI.is(d.baseUri))return new X.RelativePattern(s(d.baseUri),d.pattern);if(me.WorkspaceFolder.is(d.baseUri)){const _=X.workspace.getWorkspaceFolder(s(d.baseUri.uri));return _!==void 0?new X.RelativePattern(_,d.pattern):void 0}}}async function Me(d,_){if(!d)return;if(Array.isArray(d))return We.map(d,Ce=>je(Ce),_);const I=d,V=await We.map(I.items,Ce=>je(Ce),_);return new X.InlineCompletionList(V)}function je(d){let _;typeof d.insertText=="string"?_=d.insertText:_=new X.SnippetString(d.insertText.value);let I;d.command&&(I=It(d.command));const V=new X.InlineCompletionItem(_,v(d.range),I);return d.filterText&&(V.filterText=d.filterText),V}return{asUri:s,asDocumentSelector:o,asDiagnostics:a,asDiagnostic:l,asRange:v,asRanges:x,asPosition:w,asDiagnosticSeverity:T,asDiagnosticTag:p,asHover:W,asCompletionResult:j,asCompletionItem:qe,asTextEdit:P,asTextEdits:N,asSignatureHelp:ee,asSignatureInformations:ke,asSignatureInformation:pe,asParameterInformations:ot,asParameterInformation:Ke,asDeclarationResult:ft,asDefinitionResult:He,asLocation:Pe,asReferences:Ut,asDocumentHighlights:gt,asDocumentHighlight:Dt,asDocumentHighlightKind:Pt,asSymbolKind:Se,asSymbolTag:Nt,asSymbolTags:Be,asSymbolInformations:Lt,asSymbolInformation:xt,asDocumentSymbols:Cn,asDocumentSymbol:hn,asCommand:It,asCommands:Ft,asCodeAction:In,asCodeActionKind:Yt,asCodeActionKinds:Kn,asCodeActionResult:Fn,asCodeLens:Gn,asCodeLenses:Qn,asWorkspaceEdit:_n,asDocumentLink:Mn,asDocumentLinks:ai,asFoldingRangeKind:Sn,asFoldingRange:Ln,asFoldingRanges:ci,asColor:Zt,asColorInformation:gn,asColorInformations:On,asColorPresentation:en,asColorPresentations:An,asSelectionRange:Dn,asSelectionRanges:zt,asInlineValue:Nn,asInlineValues:Jn,asInlayHint:cn,asInlayHints:te,asSemanticTokensLegend:G,asSemanticTokens:b,asSemanticTokensEdit:le,asSemanticTokensEdits:fe,asCallHierarchyItem:we,asCallHierarchyItems:Te,asCallHierarchyIncomingCall:at,asCallHierarchyIncomingCalls:S,asCallHierarchyOutgoingCall:H,asCallHierarchyOutgoingCalls:Y,asLinkedEditingRanges:C,asTypeHierarchyItem:U,asTypeHierarchyItems:Q,asGlobPattern:Ie,asInlineCompletionResult:Me,asInlineCompletionItem:je}}Fc.createConverter=q6;var Go={};Object.defineProperty(Go,"__esModule",{value:!0});Go.ProgressPart=void 0;const Fp=ye,Mp=de,Op=Ve;class H6{constructor(e,n,i){this._client=e,this._token=n,this._reported=0,this._infinite=!1,this._lspProgressDisposable=this._client.onProgress(Mp.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&&Fp.window.withProgress({location:Fp.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(Mp.WorkDoneProgressCancelNotification.type,{token:this._token})}),this.report(e),new Promise((r,s)=>{this._resolve=r,this._reject=s})})}report(e){if(this._infinite&&Op.string(e.message))this._progress!==void 0&&this._progress.report({message:e.message});else if(Op.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}}Go.ProgressPart=H6;var Mc={};Object.defineProperty(Mc,"__esModule",{value:!0});Mc.NotebookDocumentSyncFeature=void 0;const rn=ye,j6=Cc,Oi=de,W6=$e,Ap=Ve;function Lp(t,e){return t[e]===void 0&&(t[e]={}),t[e]}var es;(function(t){(function(e){function n(g,p){return{version:g.version,uri:p.asUri(g.uri)}}e.asVersionedNotebookDocumentIdentifier=n;function i(g,p,w){const v=Oi.NotebookDocument.create(w.asUri(g.uri),g.notebookType,g.version,r(p,w));return Object.keys(g.metadata).length>0&&(v.metadata=s(g.metadata)),v}e.asNotebookDocument=i;function r(g,p){return g.map(w=>o(w,p))}e.asNotebookCells=r;function s(g){return c(new Set,g)}e.asMetadata=s;function o(g,p){const w=Oi.NotebookCell.create(a(g.kind),p.asUri(g.document.uri));return Object.keys(g.metadata).length>0&&(w.metadata=s(g.metadata)),g.executionSummary!==void 0&&Ap.number(g.executionSummary.executionOrder)&&Ap.boolean(g.executionSummary.success)&&(w.executionSummary={executionOrder:g.executionSummary.executionOrder,success:g.executionSummary.success}),w}e.asNotebookCell=o;function a(g){switch(g){case rn.NotebookCellKind.Markup:return Oi.NotebookCellKind.Markup;case rn.NotebookCellKind.Code:return Oi.NotebookCellKind.Code}}function c(g,p){if(g.has(p))throw new Error("Can't deep copy cyclic structures.");if(Array.isArray(p)){const w=[];for(const v of p)if(v!==null&&typeof v=="object"||Array.isArray(v))w.push(c(g,v));else{if(v instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");w.push(v)}return w}else{const w=Object.keys(p),v=Object.create(null);for(const x of w){const T=p[x];if(T!==null&&typeof T=="object"||Array.isArray(T))v[x]=c(g,T);else{if(T instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");v[x]=T}}return v}}function l(g,p){const w=p.asChangeTextDocumentParams(g,g.document.uri,g.document.version);return{document:w.textDocument,changes:w.contentChanges}}e.asTextContentChange=l;function h(g,p){const w=Object.create(null);if(g.metadata&&(w.metadata=t.c2p.asMetadata(g.metadata)),g.cells!==void 0){const v=Object.create(null),x=g.cells;x.structure&&(v.structure={array:{start:x.structure.array.start,deleteCount:x.structure.array.deleteCount,cells:x.structure.array.cells!==void 0?x.structure.array.cells.map(T=>t.c2p.asNotebookCell(T,p)):void 0},didOpen:x.structure.didOpen!==void 0?x.structure.didOpen.map(T=>p.asOpenTextDocumentParams(T.document).textDocument):void 0,didClose:x.structure.didClose!==void 0?x.structure.didClose.map(T=>p.asCloseTextDocumentParams(T.document).textDocument):void 0}),x.data!==void 0&&(v.data=x.data.map(T=>t.c2p.asNotebookCell(T,p))),x.textContent!==void 0&&(v.textContent=x.textContent.map(T=>t.c2p.asTextContentChange(T,p))),Object.keys(v).length>0&&(w.cells=v)}return w}e.asNotebookDocumentChangeEvent=h})(t.c2p||(t.c2p={}))})(es||(es={}));var ch;(function(t){function e(a,c,l){const h=a.length,g=c.length;let p=0;for(;p<g&&p<h&&n(a[p],c[p],l);)p++;if(p<g&&p<h){let w=h-1,v=g-1;for(;w>=0&&v>=0&&n(a[w],c[v],l);)w--,v--;const x=w+1-p,T=p===v+1?void 0:c.slice(p,v+1);return T!==void 0?{start:p,deleteCount:x,cells:T}:{start:p,deleteCount:x}}else return p<g?{start:p,deleteCount:0,cells:c.slice(p)}:p<h?{start:p,deleteCount:h-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),h=Array.isArray(c);if(l!==h)return!1;if(l&&h){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 w=0;w<g.length;w++){const v=g[w];if(!s(a[v],c[v]))return!1}return!0}return!1}function o(a){return a!==null&&typeof a=="object"}t.isObjectLiteral=o})(ch||(ch={}));var lh;(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 j6.Minimatch(n.pattern,{noext:!0});if(!s.makeRe()||!s.match(r.fsPath))return!1}return!0}t.matchNotebook=e})(lh||(lh={}));var Ba;(function(t){function e(i){var o,a,c;const r=i.notebookSelector,s=[];for(const l of r){const h=(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 w of l.cells)s.push(n(h,g,p,w.language));else s.push(n(h,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}}})(Ba||(Ba={}));var Va;(function(t){function e(n){return{cells:n,uris:new Set(n.map(i=>i.document.uri.toString()))}}t.create=e})(Va||(Va={}));class ra{constructor(e,n){this.client=e,this.options=n,this.notebookSyncInfo=new Map,this.notebookDidOpen=new Set,this.disposables=[],this.selector=e.protocol2CodeConverter.asDocumentSelector(Ba.asDocumentSelector(n)),rn.workspace.onDidOpenNotebookDocument(i=>{this.notebookDidOpen.add(i.uri.toString()),this.didOpen(i)},void 0,this.disposables);for(const i of rn.workspace.notebookDocuments)this.notebookDidOpen.add(i.uri.toString()),this.didOpen(i);rn.workspace.onDidChangeNotebookDocument(i=>this.didChangeNotebookDocument(i),void 0,this.disposables),this.options.save===!0&&rn.workspace.onDidSaveNotebookDocument(i=>this.didSave(i),void 0,this.disposables),rn.workspace.onDidCloseNotebookDocument(i=>{this.didClose(i),this.notebookDidOpen.delete(i.uri.toString())},void 0,this.disposables)}getState(){for(const e of rn.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 rn.languages.match(this.selector,e)>0}didOpenNotebookCellTextDocument(e,n){if(rn.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){rn.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=es.c2p.asNotebookDocument(o,a,this.client.code2ProtocolConverter),l=a.map(h=>this.client.code2ProtocolConverter.asTextDocumentItem(h.document));try{await this.client.sendNotification(Oi.DidOpenNotebookDocumentNotification.type,{notebookDocument:c,cellTextDocuments:l})}catch(h){throw this.client.error("Sending DidOpenNotebookDocumentNotification failed",h),h}},r=(s=this.client.middleware)==null?void 0:s.notebooks;return this.notebookSyncInfo.set(e.uri.toString(),Va.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(Oi.DidChangeNotebookDocumentNotification.type,{notebookDocument:es.c2p.asVersionedNotebookDocumentIdentifier(a.notebook,this.client.code2ProtocolConverter),change:es.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(),Va.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(Oi.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(Oi.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=es.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=ch.computeDiff(a,c,!1);let h,g;if(l!==void 0){h=l.cells===void 0?new Map:new Map(l.cells.map(v=>[v.document.uri.toString(),v])),g=l.deleteCount===0?new Map:new Map(a.slice(l.start,l.start+l.deleteCount).map(v=>[v.document.uri.toString(),v]));for(const v of Array.from(g.keys()))h.has(v)&&(g.delete(v),h.delete(v));s.cells=s.cells??{};const p=[],w=[];if(h.size>0||g.size>0){for(const v of h.values())p.push(v);for(const v of g.values())w.push(v)}s.cells.structure={array:l,didOpen:p,didClose:w}}}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||lh.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 Er{constructor(e){this.client=e,this.registrations=new Map,this.registrationType=Oi.NotebookDocumentSyncRegistrationType.type,rn.workspace.onDidOpenTextDocument(n=>{if(n.uri.scheme!==Er.CellScheme)return;const[i,r]=this.findNotebookDocumentAndCell(n);if(!(i===void 0||r===void 0))for(const s of this.registrations.values())s instanceof ra&&s.didOpenNotebookCellTextDocument(i,r)}),rn.workspace.onDidChangeTextDocument(n=>{if(n.contentChanges.length===0)return;const i=n.document;if(i.uri.scheme!==Er.CellScheme)return;const[r]=this.findNotebookDocumentAndCell(i);if(r!==void 0)for(const s of this.registrations.values())s instanceof ra&&s.didChangeNotebookCellTextDocument(r,n)}),rn.workspace.onDidCloseTextDocument(n=>{if(n.uri.scheme!==Er.CellScheme)return;const[i,r]=this.findNotebookDocumentAndCell(n);if(!(i===void 0||r===void 0))for(const s of this.registrations.values())s instanceof ra&&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=Lp(Lp(e,"notebookDocument"),"synchronization");n.dynamicRegistration=!0,n.executionSummarySupport=!0}preInitialize(e){const n=e.notebookDocumentSync;n!==void 0&&(this.dedicatedChannel=this.client.protocol2CodeConverter.asDocumentSelector(Ba.asDocumentSelector(n)))}initialize(e){const n=e.notebookDocumentSync;if(n===void 0)return;const i=n.id??W6.generateUuid();this.register({id:i,registerOptions:n})}register(e){const n=new ra(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!==Er.CellScheme)return!1;if(this.dedicatedChannel!==void 0&&rn.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 rn.workspace.notebookDocuments)for(const r of i.getCells())if(r.document.uri.toString()===n)return[i,r];return[void 0,void 0]}}Mc.NotebookDocumentSyncFeature=Er;Er.CellScheme="vscode-notebook-cell";var er={};Object.defineProperty(er,"__esModule",{value:!0});er.SyncConfigurationFeature=er.toJSONObject=er.ConfigurationFeature=void 0;const gs=ye,io=de,U6=Ve,z6=$e,Np=ge;class B6{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(io.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=Ar(gs.workspace.getConfiguration(void 0,e).get(n));else{let s=gs.workspace.getConfiguration(n.substr(0,r),e);s&&(i=Ar(s.get(n.substr(r+1))))}}else{let r=gs.workspace.getConfiguration(void 0,e);i={};for(let s of Object.keys(r))r.has(s)&&(i[s]=Ar(r.get(s)))}return i===void 0&&(i=null),i}clear(){}}er.ConfigurationFeature=B6;function Ar(t){if(t){if(Array.isArray(t))return t.map(Ar);if(typeof t=="object"){const e=Object.create(null);for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=Ar(t[n]));return e}}return t}er.toJSONObject=Ar;class V6{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 io.DidChangeConfigurationNotification.type}fillClientCapabilities(e){(0,Np.ensure)((0,Np.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:z6.generateUuid(),registerOptions:{section:e}})}register(e){let n=gs.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(U6.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(io.DidChangeConfigurationNotification.type,{settings:null}):this._client.sendNotification(io.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 ${io.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=gs.workspace.getConfiguration(o.substr(0,a),i).get(o.substr(a+1)):c=gs.workspace.getConfiguration(void 0,i).get(o),c){let l=e[s].split(".");n(r,l)[l[l.length-1]]=Ar(c)}}return r}}er.SyncConfigurationFeature=V6;var bn={};Object.defineProperty(bn,"__esModule",{value:!0});bn.DidSaveTextDocumentFeature=bn.WillSaveWaitUntilFeature=bn.WillSaveFeature=bn.DidChangeTextDocumentFeature=bn.DidCloseTextDocumentFeature=bn.DidOpenTextDocumentFeature=void 0;const En=ye,tt=de,mt=ge,As=$e;class K6 extends mt.TextDocumentEventFeature{constructor(e,n){super(e,En.workspace.onDidOpenTextDocument,tt.DidOpenTextDocumentNotification.type,()=>e.middleware.didOpen,i=>e.code2ProtocolConverter.asOpenTextDocumentParams(i),i=>i,mt.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=n}get openDocuments(){return this._syncedDocuments.values()}fillClientCapabilities(e){(0,mt.ensure)((0,mt.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,n){const i=e.resolvedTextDocumentSync;n&&i&&i.openClose&&this.register({id:As.generateUuid(),registerOptions:{documentSelector:n}})}get registrationType(){return tt.DidOpenTextDocumentNotification.type}register(e){if(super.register(e),!e.registerOptions.documentSelector)return;const n=this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector);En.workspace.textDocuments.forEach(i=>{const r=i.uri.toString();if(!this._syncedDocuments.has(r)&&En.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)}}bn.DidOpenTextDocumentFeature=K6;class G6 extends mt.TextDocumentEventFeature{constructor(e,n,i){super(e,En.workspace.onDidCloseTextDocument,tt.DidCloseTextDocumentNotification.type,()=>e.middleware.didClose,r=>e.code2ProtocolConverter.asCloseTextDocumentParams(r),r=>r,mt.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=n,this._pendingTextDocumentChanges=i}get registrationType(){return tt.DidCloseTextDocumentNotification.type}fillClientCapabilities(e){(0,mt.ensure)((0,mt.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,n){let i=e.resolvedTextDocumentSync;n&&i&&i.openClose&&this.register({id:As.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(En.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)})}})}}bn.DidCloseTextDocumentFeature=G6;class Q6 extends mt.DynamicDocumentFeature{constructor(e,n){super(e),this._changeData=new Map,this._onNotificationSent=new En.EventEmitter,this._onPendingChangeAdded=new En.EventEmitter,this._pendingTextDocumentChanges=n,this._syncKind=tt.TextDocumentSyncKind.None}get onNotificationSent(){return this._onNotificationSent.event}get onPendingChangeAdded(){return this._onPendingChangeAdded.event}get syncKind(){return this._syncKind}get registrationType(){return tt.DidChangeTextDocumentNotification.type}fillClientCapabilities(e){(0,mt.ensure)((0,mt.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,n){let i=e.resolvedTextDocumentSync;n&&i&&i.change!==void 0&&i.change!==tt.TextDocumentSyncKind.None&&this.register({id:As.generateUuid(),registerOptions:Object.assign({},{documentSelector:n},{syncKind:i.change})})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=En.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(En.languages.match(s.documentSelector,e.document)>0&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){const o=this._client.middleware;if(s.syncKind===tt.TextDocumentSyncKind.Incremental){const a=async c=>{const l=this._client.code2ProtocolConverter.asChangeTextDocumentParams(c,n,i);await this._client.sendNotification(tt.DidChangeTextDocumentNotification.type,l),this.notificationSent(c.document,tt.DidChangeTextDocumentNotification.type,l)};r.push(o.didChange?o.didChange(e,c=>a(c)):a(e))}else if(s.syncKind===tt.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 ${tt.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=tt.TextDocumentSyncKind.None;else{this._syncKind=tt.TextDocumentSyncKind.None;for(const n of this._changeData.values())if(this.updateSyncKind(n.syncKind),this._syncKind===tt.TextDocumentSyncKind.Full)break}}clear(){this._pendingTextDocumentChanges.clear(),this._changeData.clear(),this._syncKind=tt.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(En.languages.match(n.documentSelector,e)>0)return{send:i=>this.callback(i)}}updateSyncKind(e){if(this._syncKind!==tt.TextDocumentSyncKind.Full)switch(e){case tt.TextDocumentSyncKind.Full:this._syncKind=e;break;case tt.TextDocumentSyncKind.Incremental:this._syncKind===tt.TextDocumentSyncKind.None&&(this._syncKind=tt.TextDocumentSyncKind.Incremental);break}}}bn.DidChangeTextDocumentFeature=Q6;class J6 extends mt.TextDocumentEventFeature{constructor(e){super(e,En.workspace.onWillSaveTextDocument,tt.WillSaveTextDocumentNotification.type,()=>e.middleware.willSave,n=>e.code2ProtocolConverter.asWillSaveTextDocumentParams(n),n=>n.document,(n,i)=>mt.TextDocumentEventFeature.textDocumentFilter(n,i.document))}get registrationType(){return tt.WillSaveTextDocumentNotification.type}fillClientCapabilities(e){let n=(0,mt.ensure)((0,mt.ensure)(e,"textDocument"),"synchronization");n.willSave=!0}initialize(e,n){let i=e.resolvedTextDocumentSync;n&&i&&i.willSave&&this.register({id:As.generateUuid(),registerOptions:{documentSelector:n}})}getTextDocument(e){return e.document}}bn.WillSaveFeature=J6;class Y6 extends mt.DynamicDocumentFeature{constructor(e){super(e),this._selectors=new Map}getDocumentSelectors(){return this._selectors.values()}get registrationType(){return tt.WillSaveTextDocumentWaitUntilRequest.type}fillClientCapabilities(e){let n=(0,mt.ensure)((0,mt.ensure)(e,"textDocument"),"synchronization");n.willSaveWaitUntil=!0}initialize(e,n){let i=e.resolvedTextDocumentSync;n&&i&&i.willSaveWaitUntil&&this.register({id:As.generateUuid(),registerOptions:{documentSelector:n}})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=En.workspace.onWillSaveTextDocument(this.callback,this)),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)))}callback(e){if(mt.TextDocumentEventFeature.textDocumentFilter(this._selectors.values(),e.document)&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){let n=this._client.middleware,i=r=>this._client.sendRequest(tt.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)}}bn.WillSaveWaitUntilFeature=Y6;class X6 extends mt.TextDocumentEventFeature{constructor(e){super(e,En.workspace.onDidSaveTextDocument,tt.DidSaveTextDocumentNotification.type,()=>e.middleware.didSave,n=>e.code2ProtocolConverter.asSaveTextDocumentParams(n,this._includeText),n=>n,mt.TextDocumentEventFeature.textDocumentFilter),this._includeText=!1}get registrationType(){return tt.DidSaveTextDocumentNotification.type}fillClientCapabilities(e){(0,mt.ensure)((0,mt.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:As.generateUuid(),registerOptions:Object.assign({},{documentSelector:n},r)})}}register(e){this._includeText=!!e.registerOptions.includeText,super.register(e)}getTextDocument(e){return e}}bn.DidSaveTextDocumentFeature=X6;var Oc={};Object.defineProperty(Oc,"__esModule",{value:!0});Oc.CompletionItemFeature=void 0;const Z6=ye,Ae=de,Nl=ge,eC=$e,tC=[Ae.CompletionItemKind.Text,Ae.CompletionItemKind.Method,Ae.CompletionItemKind.Function,Ae.CompletionItemKind.Constructor,Ae.CompletionItemKind.Field,Ae.CompletionItemKind.Variable,Ae.CompletionItemKind.Class,Ae.CompletionItemKind.Interface,Ae.CompletionItemKind.Module,Ae.CompletionItemKind.Property,Ae.CompletionItemKind.Unit,Ae.CompletionItemKind.Value,Ae.CompletionItemKind.Enum,Ae.CompletionItemKind.Keyword,Ae.CompletionItemKind.Snippet,Ae.CompletionItemKind.Color,Ae.CompletionItemKind.File,Ae.CompletionItemKind.Reference,Ae.CompletionItemKind.Folder,Ae.CompletionItemKind.EnumMember,Ae.CompletionItemKind.Constant,Ae.CompletionItemKind.Struct,Ae.CompletionItemKind.Event,Ae.CompletionItemKind.Operator,Ae.CompletionItemKind.TypeParameter];class nC extends Nl.TextDocumentLanguageFeature{constructor(e){super(e,Ae.CompletionRequest.type),this.labelDetailsSupport=new Map}fillClientCapabilities(e){let n=(0,Nl.ensure)((0,Nl.ensure)(e,"textDocument"),"completion");n.dynamicRegistration=!0,n.contextSupport=!0,n.completionItem={snippetSupport:!0,commitCharactersSupport:!0,documentationFormat:[Ae.MarkupKind.Markdown,Ae.MarkupKind.PlainText],deprecatedSupport:!0,preselectSupport:!0,tagSupport:{valueSet:[Ae.CompletionItemTag.Deprecated]},insertReplaceSupport:!0,resolveSupport:{properties:["documentation","detail","additionalTextEdits"]},insertTextModeSupport:{valueSet:[Ae.InsertTextMode.asIs,Ae.InsertTextMode.adjustIndentation]},labelDetailsSupport:!0},n.insertTextMode=Ae.InsertTextMode.adjustIndentation,n.completionItemKind={valueSet:tC},n.completionList={itemDefaults:["commitCharacters","editRange","insertTextFormat","insertTextMode","data"]}}initialize(e,n){const i=this.getRegistrationOptions(n,e.completionProvider);i&&this.register({id:eC.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,h,g)=>{const p=this._client,w=this._client.middleware,v=(x,T,q,z)=>p.sendRequest(Ae.CompletionRequest.type,p.code2ProtocolConverter.asCompletionParams(x,T,q),z).then(A=>z.isCancellationRequested?null:p.protocol2CodeConverter.asCompletionResult(A,r,z),A=>p.handleFailedRequest(Ae.CompletionRequest.type,z,A,null));return w.provideCompletionItem?w.provideCompletionItem(c,l,g,h,v):v(c,l,g,h)},resolveCompletionItem:e.resolveProvider?(c,l)=>{const h=this._client,g=this._client.middleware,p=(w,v)=>h.sendRequest(Ae.CompletionResolveRequest.type,h.code2ProtocolConverter.asCompletionItem(w,!!this.labelDetailsSupport.get(n)),v).then(x=>v.isCancellationRequested?null:h.protocol2CodeConverter.asCompletionItem(x),x=>h.handleFailedRequest(Ae.CompletionResolveRequest.type,v,x,w));return g.resolveCompletionItem?g.resolveCompletionItem(c,l,p):p(c,l)}:void 0};return[Z6.languages.registerCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(s),o,...i),o]}}Oc.CompletionItemFeature=nC;var Ac={};Object.defineProperty(Ac,"__esModule",{value:!0});Ac.HoverFeature=void 0;const iC=ye,Hs=de,$l=ge,rC=$e;class sC extends $l.TextDocumentLanguageFeature{constructor(e){super(e,Hs.HoverRequest.type)}fillClientCapabilities(e){const n=(0,$l.ensure)((0,$l.ensure)(e,"textDocument"),"hover");n.dynamicRegistration=!0,n.contentFormat=[Hs.MarkupKind.Markdown,Hs.MarkupKind.PlainText]}initialize(e,n){const i=this.getRegistrationOptions(n,e.hoverProvider);i&&this.register({id:rC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideHover:(r,s,o)=>{const a=this._client,c=(h,g,p)=>a.sendRequest(Hs.HoverRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asHover(w),w=>a.handleFailedRequest(Hs.HoverRequest.type,p,w,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 iC.languages.registerHoverProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Ac.HoverFeature=sC;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});Lc.DefinitionFeature=void 0;const oC=ye,ql=de,Hl=ge,aC=$e;class cC extends Hl.TextDocumentLanguageFeature{constructor(e){super(e,ql.DefinitionRequest.type)}fillClientCapabilities(e){let n=(0,Hl.ensure)((0,Hl.ensure)(e,"textDocument"),"definition");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.definitionProvider);i&&this.register({id:aC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDefinition:(r,s,o)=>{const a=this._client,c=(h,g,p)=>a.sendRequest(ql.DefinitionRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(w,p),w=>a.handleFailedRequest(ql.DefinitionRequest.type,p,w,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 oC.languages.registerDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Lc.DefinitionFeature=cC;var Nc={};Object.defineProperty(Nc,"__esModule",{value:!0});Nc.SignatureHelpFeature=void 0;const $p=ye,js=de,jl=ge,lC=$e;class uC extends jl.TextDocumentLanguageFeature{constructor(e){super(e,js.SignatureHelpRequest.type)}fillClientCapabilities(e){let n=(0,jl.ensure)((0,jl.ensure)(e,"textDocument"),"signatureHelp");n.dynamicRegistration=!0,n.signatureInformation={documentationFormat:[js.MarkupKind.Markdown,js.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:lC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n={provideSignatureHelp:(i,r,s,o)=>{const a=this._client,c=(h,g,p,w)=>a.sendRequest(js.SignatureHelpRequest.type,a.code2ProtocolConverter.asSignatureHelpParams(h,g,p),w).then(v=>w.isCancellationRequested?null:a.protocol2CodeConverter.asSignatureHelp(v,w),v=>a.handleFailedRequest(js.SignatureHelpRequest.type,w,v,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 $p.languages.registerSignatureHelpProvider(i,n,...r)}else{const r={triggerCharacters:e.triggerCharacters||[],retriggerCharacters:e.retriggerCharacters||[]};return $p.languages.registerSignatureHelpProvider(i,n,r)}}}Nc.SignatureHelpFeature=uC;var $c={};Object.defineProperty($c,"__esModule",{value:!0});$c.DocumentHighlightFeature=void 0;const dC=ye,Wl=de,Ul=ge,fC=$e;class hC extends Ul.TextDocumentLanguageFeature{constructor(e){super(e,Wl.DocumentHighlightRequest.type)}fillClientCapabilities(e){(0,Ul.ensure)((0,Ul.ensure)(e,"textDocument"),"documentHighlight").dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentHighlightProvider);i&&this.register({id:fC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDocumentHighlights:(r,s,o)=>{const a=this._client,c=(h,g,p)=>a.sendRequest(Wl.DocumentHighlightRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDocumentHighlights(w,p),w=>a.handleFailedRequest(Wl.DocumentHighlightRequest.type,p,w,null)),l=a.middleware;return l.provideDocumentHighlights?l.provideDocumentHighlights(r,s,o,c):c(r,s,o)}};return[dC.languages.registerDocumentHighlightProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}$c.DocumentHighlightFeature=hC;var H1={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentSymbolFeature=t.SupportedSymbolTags=t.SupportedSymbolKinds=void 0;const e=ye,n=de,i=ge,r=$e;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 w=this._client,v=async(T,q)=>{try{const z=await w.sendRequest(n.DocumentSymbolRequest.type,w.code2ProtocolConverter.asDocumentSymbolParams(T),q);if(q.isCancellationRequested||z===void 0||z===null)return null;if(z.length===0)return[];{const A=z[0];return n.DocumentSymbol.is(A)?await w.protocol2CodeConverter.asDocumentSymbols(z,q):await w.protocol2CodeConverter.asSymbolInformations(z,q)}}catch(z){return w.handleFailedRequest(n.DocumentSymbolRequest.type,q,z,null)}},x=w.middleware;return x.provideDocumentSymbols?x.provideDocumentSymbols(g,p,v):v(g,p)}},h=a.label!==void 0?{label:a.label}:void 0;return[e.languages.registerDocumentSymbolProvider(this._client.protocol2CodeConverter.asDocumentSelector(c),l,h),l]}}t.DocumentSymbolFeature=s})(H1);var qc={};Object.defineProperty(qc,"__esModule",{value:!0});qc.WorkspaceSymbolFeature=void 0;const gC=ye,Ws=de,zl=ge,qp=H1,pC=$e;class mC extends zl.WorkspaceFeature{constructor(e){super(e,Ws.WorkspaceSymbolRequest.type)}fillClientCapabilities(e){let n=(0,zl.ensure)((0,zl.ensure)(e,"workspace"),"symbol");n.dynamicRegistration=!0,n.symbolKind={valueSet:qp.SupportedSymbolKinds},n.tagSupport={valueSet:qp.SupportedSymbolTags},n.resolveSupport={properties:["location.range"]}}initialize(e){e.workspaceSymbolProvider&&this.register({id:pC.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(Ws.WorkspaceSymbolRequest.type,{query:c},l).then(h=>l.isCancellationRequested?null:s.protocol2CodeConverter.asSymbolInformations(h,l),h=>s.handleFailedRequest(Ws.WorkspaceSymbolRequest.type,l,h,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(Ws.WorkspaceSymbolResolveRequest.type,s.code2ProtocolConverter.asWorkspaceSymbol(c),l).then(h=>l.isCancellationRequested?null:s.protocol2CodeConverter.asSymbolInformation(h),h=>s.handleFailedRequest(Ws.WorkspaceSymbolResolveRequest.type,l,h,null)),a=s.middleware;return a.resolveWorkspaceSymbol?a.resolveWorkspaceSymbol(i,r,o):o(i,r)}:void 0};return[gC.languages.registerWorkspaceSymbolProvider(n),n]}}qc.WorkspaceSymbolFeature=mC;var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});Hc.ReferencesFeature=void 0;const yC=ye,Bl=de,Vl=ge,bC=$e;class vC extends Vl.TextDocumentLanguageFeature{constructor(e){super(e,Bl.ReferencesRequest.type)}fillClientCapabilities(e){(0,Vl.ensure)((0,Vl.ensure)(e,"textDocument"),"references").dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.referencesProvider);i&&this.register({id:bC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideReferences:(r,s,o,a)=>{const c=this._client,l=(g,p,w,v)=>c.sendRequest(Bl.ReferencesRequest.type,c.code2ProtocolConverter.asReferenceParams(g,p,w),v).then(x=>v.isCancellationRequested?null:c.protocol2CodeConverter.asReferences(x,v),x=>c.handleFailedRequest(Bl.ReferencesRequest.type,v,x,null)),h=c.middleware;return h.provideReferences?h.provideReferences(r,s,o,a,l):l(r,s,o,a)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return yC.languages.registerReferenceProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Hc.ReferencesFeature=vC;var jc={};Object.defineProperty(jc,"__esModule",{value:!0});jc.CodeActionFeature=void 0;const wC=ye,xn=de,CC=$e,Kl=ge;class _C extends Kl.TextDocumentLanguageFeature{constructor(e){super(e,xn.CodeActionRequest.type)}fillClientCapabilities(e){const n=(0,Kl.ensure)((0,Kl.ensure)(e,"textDocument"),"codeAction");n.dynamicRegistration=!0,n.isPreferredSupport=!0,n.disabledSupport=!0,n.dataSupport=!0,n.resolveSupport={properties:["edit"]},n.codeActionLiteralSupport={codeActionKind:{valueSet:[xn.CodeActionKind.Empty,xn.CodeActionKind.QuickFix,xn.CodeActionKind.Refactor,xn.CodeActionKind.RefactorExtract,xn.CodeActionKind.RefactorInline,xn.CodeActionKind.RefactorRewrite,xn.CodeActionKind.Source,xn.CodeActionKind.SourceOrganizeImports]}},n.honorsChangeAnnotations=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.codeActionProvider);i&&this.register({id:CC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideCodeActions:(r,s,o,a)=>{const c=this._client,l=async(g,p,w,v)=>{const x={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),range:c.code2ProtocolConverter.asRange(p),context:c.code2ProtocolConverter.asCodeActionContextSync(w)};return c.sendRequest(xn.CodeActionRequest.type,x,v).then(T=>v.isCancellationRequested||T===null||T===void 0?null:c.protocol2CodeConverter.asCodeActionResult(T,v),T=>c.handleFailedRequest(xn.CodeActionRequest.type,v,T,null))},h=c.middleware;return h.provideCodeActions?h.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,h)=>o.sendRequest(xn.CodeActionResolveRequest.type,o.code2ProtocolConverter.asCodeActionSync(l),h).then(g=>h.isCancellationRequested?l:o.protocol2CodeConverter.asCodeAction(g,h),g=>o.handleFailedRequest(xn.CodeActionResolveRequest.type,h,g,l));return a.resolveCodeAction?a.resolveCodeAction(r,s,c):c(r,s)}:void 0};return[wC.languages.registerCodeActionsProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i,e.codeActionKinds?{providedCodeActionKinds:this._client.protocol2CodeConverter.asCodeActionKinds(e.codeActionKinds)}:void 0),i]}}jc.CodeActionFeature=_C;var Wc={};Object.defineProperty(Wc,"__esModule",{value:!0});Wc.CodeLensFeature=void 0;const Hp=ye,Gr=de,SC=$e,Us=ge;class DC extends Us.TextDocumentLanguageFeature{constructor(e){super(e,Gr.CodeLensRequest.type)}fillClientCapabilities(e){(0,Us.ensure)((0,Us.ensure)(e,"textDocument"),"codeLens").dynamicRegistration=!0,(0,Us.ensure)((0,Us.ensure)(e,"workspace"),"codeLens").refreshSupport=!0}initialize(e,n){this._client.onRequest(Gr.CodeLensRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeCodeLensEmitter.fire()});const r=this.getRegistrationOptions(n,e.codeLensProvider);r&&this.register({id:SC.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i=new Hp.EventEmitter,r={onDidChangeCodeLenses:i.event,provideCodeLenses:(s,o)=>{const a=this._client,c=(h,g)=>a.sendRequest(Gr.CodeLensRequest.type,a.code2ProtocolConverter.asCodeLensParams(h),g).then(p=>g.isCancellationRequested?null:a.protocol2CodeConverter.asCodeLenses(p,g),p=>a.handleFailedRequest(Gr.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=(h,g)=>a.sendRequest(Gr.CodeLensResolveRequest.type,a.code2ProtocolConverter.asCodeLens(h),g).then(p=>g.isCancellationRequested?h:a.protocol2CodeConverter.asCodeLens(p),p=>a.handleFailedRequest(Gr.CodeLensResolveRequest.type,g,p,h)),l=a.middleware;return l.resolveCodeLens?l.resolveCodeLens(s,o,c):c(s,o)}:void 0};return[Hp.languages.registerCodeLensProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),{provider:r,onDidChangeCodeLensEmitter:i}]}}Wc.CodeLensFeature=DC;var tr={};Object.defineProperty(tr,"__esModule",{value:!0});tr.DocumentOnTypeFormattingFeature=tr.DocumentRangeFormattingFeature=tr.DocumentFormattingFeature=void 0;const Uc=ye,ri=de,j1=$e,$i=ge;var ms;(function(t){function e(n){const i=Uc.workspace.getConfiguration("files",n);return{trimTrailingWhitespace:i.get("trimTrailingWhitespace"),trimFinalNewlines:i.get("trimFinalNewlines"),insertFinalNewline:i.get("insertFinalNewline")}}t.fromConfiguration=e})(ms||(ms={}));class xC extends $i.TextDocumentLanguageFeature{constructor(e){super(e,ri.DocumentFormattingRequest.type)}fillClientCapabilities(e){(0,$i.ensure)((0,$i.ensure)(e,"textDocument"),"formatting").dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentFormattingProvider);i&&this.register({id:j1.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDocumentFormattingEdits:(r,s,o)=>{const a=this._client,c=(h,g,p)=>{const w={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(h),options:a.code2ProtocolConverter.asFormattingOptions(g,ms.fromConfiguration(h))};return a.sendRequest(ri.DocumentFormattingRequest.type,w,p).then(v=>p.isCancellationRequested?null:a.protocol2CodeConverter.asTextEdits(v,p),v=>a.handleFailedRequest(ri.DocumentFormattingRequest.type,p,v,null))},l=a.middleware;return l.provideDocumentFormattingEdits?l.provideDocumentFormattingEdits(r,s,o,c):c(r,s,o)}};return[Uc.languages.registerDocumentFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}tr.DocumentFormattingFeature=xC;class kC extends $i.TextDocumentLanguageFeature{constructor(e){super(e,ri.DocumentRangeFormattingRequest.type)}fillClientCapabilities(e){const n=(0,$i.ensure)((0,$i.ensure)(e,"textDocument"),"rangeFormatting");n.dynamicRegistration=!0,n.rangesSupport=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentRangeFormattingProvider);i&&this.register({id:j1.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDocumentRangeFormattingEdits:(r,s,o,a)=>{const c=this._client,l=(g,p,w,v)=>{const x={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),range:c.code2ProtocolConverter.asRange(p),options:c.code2ProtocolConverter.asFormattingOptions(w,ms.fromConfiguration(g))};return c.sendRequest(ri.DocumentRangeFormattingRequest.type,x,v).then(T=>v.isCancellationRequested?null:c.protocol2CodeConverter.asTextEdits(T,v),T=>c.handleFailedRequest(ri.DocumentRangeFormattingRequest.type,v,T,null))},h=c.middleware;return h.provideDocumentRangeFormattingEdits?h.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,w,v)=>{const x={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),ranges:c.code2ProtocolConverter.asRanges(p),options:c.code2ProtocolConverter.asFormattingOptions(w,ms.fromConfiguration(g))};return c.sendRequest(ri.DocumentRangesFormattingRequest.type,x,v).then(T=>v.isCancellationRequested?null:c.protocol2CodeConverter.asTextEdits(T,v),T=>c.handleFailedRequest(ri.DocumentRangesFormattingRequest.type,v,T,null))},h=c.middleware;return h.provideDocumentRangesFormattingEdits?h.provideDocumentRangesFormattingEdits(r,s,o,a,l):l(r,s,o,a)}),[Uc.languages.registerDocumentRangeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}tr.DocumentRangeFormattingFeature=kC;class TC extends $i.TextDocumentLanguageFeature{constructor(e){super(e,ri.DocumentOnTypeFormattingRequest.type)}fillClientCapabilities(e){(0,$i.ensure)((0,$i.ensure)(e,"textDocument"),"onTypeFormatting").dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentOnTypeFormattingProvider);i&&this.register({id:j1.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideOnTypeFormattingEdits:(s,o,a,c,l)=>{const h=this._client,g=(w,v,x,T,q)=>{let z={textDocument:h.code2ProtocolConverter.asTextDocumentIdentifier(w),position:h.code2ProtocolConverter.asPosition(v),ch:x,options:h.code2ProtocolConverter.asFormattingOptions(T,ms.fromConfiguration(w))};return h.sendRequest(ri.DocumentOnTypeFormattingRequest.type,z,q).then(A=>q.isCancellationRequested?null:h.protocol2CodeConverter.asTextEdits(A,q),A=>h.handleFailedRequest(ri.DocumentOnTypeFormattingRequest.type,q,A,null))},p=h.middleware;return p.provideOnTypeFormattingEdits?p.provideOnTypeFormattingEdits(s,o,a,c,l,g):g(s,o,a,c,l)}},r=e.moreTriggerCharacter||[];return[Uc.languages.registerOnTypeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i,e.firstTriggerCharacter,...r),i]}}tr.DocumentOnTypeFormattingFeature=TC;var zc={};Object.defineProperty(zc,"__esModule",{value:!0});zc.RenameFeature=void 0;const RC=ye,pr=de,EC=$e,jp=Ve,Gl=ge;class PC extends Gl.TextDocumentLanguageFeature{constructor(e){super(e,pr.RenameRequest.type)}fillClientCapabilities(e){let n=(0,Gl.ensure)((0,Gl.ensure)(e,"textDocument"),"rename");n.dynamicRegistration=!0,n.prepareSupport=!0,n.prepareSupportDefaultBehavior=pr.PrepareSupportDefaultBehavior.Identifier,n.honorsChangeAnnotations=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.renameProvider);i&&(jp.boolean(e.renameProvider)&&(i.prepareProvider=!1),this.register({id:EC.generateUuid(),registerOptions:i}))}registerLanguageProvider(e){const n=e.documentSelector,i={provideRenameEdits:(r,s,o,a)=>{const c=this._client,l=(g,p,w,v)=>{let x={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),position:c.code2ProtocolConverter.asPosition(p),newName:w};return c.sendRequest(pr.RenameRequest.type,x,v).then(T=>v.isCancellationRequested?null:c.protocol2CodeConverter.asWorkspaceEdit(T,v),T=>c.handleFailedRequest(pr.RenameRequest.type,v,T,null,!1))},h=c.middleware;return h.provideRenameEdits?h.provideRenameEdits(r,s,o,a,l):l(r,s,o,a)},prepareRename:e.prepareProvider?(r,s,o)=>{const a=this._client,c=(h,g,p)=>{let w={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(h),position:a.code2ProtocolConverter.asPosition(g)};return a.sendRequest(pr.PrepareRenameRequest.type,w,p).then(v=>p.isCancellationRequested?null:pr.Range.is(v)?a.protocol2CodeConverter.asRange(v):this.isDefaultBehavior(v)?v.defaultBehavior===!0?null:Promise.reject(new Error("The element can't be renamed.")):v&&pr.Range.is(v.range)?{range:a.protocol2CodeConverter.asRange(v.range),placeholder:v.placeholder}:Promise.reject(new Error("The element can't be renamed.")),v=>{throw typeof v.message=="string"?new Error(v.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 RC.languages.registerRenameProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}isDefaultBehavior(e){const n=e;return n&&jp.boolean(n.defaultBehavior)}}zc.RenameFeature=PC;var Bc={};Object.defineProperty(Bc,"__esModule",{value:!0});Bc.DocumentLinkFeature=void 0;const IC=ye,zs=de,Ql=ge,FC=$e;class MC extends Ql.TextDocumentLanguageFeature{constructor(e){super(e,zs.DocumentLinkRequest.type)}fillClientCapabilities(e){const n=(0,Ql.ensure)((0,Ql.ensure)(e,"textDocument"),"documentLink");n.dynamicRegistration=!0,n.tooltipSupport=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentLinkProvider);i&&this.register({id:FC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDocumentLinks:(r,s)=>{const o=this._client,a=(l,h)=>o.sendRequest(zs.DocumentLinkRequest.type,o.code2ProtocolConverter.asDocumentLinkParams(l),h).then(g=>h.isCancellationRequested?null:o.protocol2CodeConverter.asDocumentLinks(g,h),g=>o.handleFailedRequest(zs.DocumentLinkRequest.type,h,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,h)=>o.sendRequest(zs.DocumentLinkResolveRequest.type,o.code2ProtocolConverter.asDocumentLink(l),h).then(g=>h.isCancellationRequested?l:o.protocol2CodeConverter.asDocumentLink(g),g=>o.handleFailedRequest(zs.DocumentLinkResolveRequest.type,h,g,l));const c=o.middleware;return c.resolveDocumentLink?c.resolveDocumentLink(r,s,a):a(r,s)}:void 0};return[IC.languages.registerDocumentLinkProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}Bc.DocumentLinkFeature=MC;var Vc={};Object.defineProperty(Vc,"__esModule",{value:!0});Vc.ExecuteCommandFeature=void 0;const OC=ye,Jl=de,AC=$e,Wp=ge;class LC{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 Jl.ExecuteCommandRequest.type}fillClientCapabilities(e){(0,Wp.ensure)((0,Wp.ensure)(e,"workspace"),"executeCommand").dynamicRegistration=!0}initialize(e){e.executeCommandProvider&&this.register({id:AC.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(Jl.ExecuteCommandRequest.type,a).then(void 0,c=>n.handleFailedRequest(Jl.ExecuteCommandRequest.type,void 0,c,void 0))};if(e.registerOptions.commands){const s=[];for(const o of e.registerOptions.commands)s.push(OC.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()}}Vc.ExecuteCommandFeature=LC;var Kc={};Object.defineProperty(Kc,"__esModule",{value:!0});Kc.FileSystemWatcherFeature=void 0;const NC=ye,mr=de,sa=ge;class $C{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 mr.DidChangeWatchedFilesNotification.type}fillClientCapabilities(e){(0,sa.ensure)((0,sa.ensure)(e,"workspace"),"didChangeWatchedFiles").dynamicRegistration=!0,(0,sa.ensure)((0,sa.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&mr.WatchKind.Create)!==0,o=(i.kind&mr.WatchKind.Change)!==0,a=(i.kind&mr.WatchKind.Delete)!==0);const c=NC.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:mr.FileChangeType.Created}),null,s),i&&e.onDidChange(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:mr.FileChangeType.Changed}),null,s),r&&e.onDidDelete(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:mr.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()}}Kc.FileSystemWatcherFeature=$C;var Gc={};Object.defineProperty(Gc,"__esModule",{value:!0});Gc.ColorProviderFeature=void 0;const qC=ye,Bs=de,Yl=ge;class HC extends Yl.TextDocumentLanguageFeature{constructor(e){super(e,Bs.DocumentColorRequest.type)}fillClientCapabilities(e){(0,Yl.ensure)((0,Yl.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=(h,g,p)=>{const w={color:h,textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(g.document),range:a.code2ProtocolConverter.asRange(g.range)};return a.sendRequest(Bs.ColorPresentationRequest.type,w,p).then(v=>p.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorPresentations(v,p),v=>a.handleFailedRequest(Bs.ColorPresentationRequest.type,p,v,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,h)=>{const g={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(l)};return o.sendRequest(Bs.DocumentColorRequest.type,g,h).then(p=>h.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorInformations(p,h),p=>o.handleFailedRequest(Bs.DocumentColorRequest.type,h,p,null))},c=o.middleware;return c.provideDocumentColors?c.provideDocumentColors(r,s,a):a(r,s)}};return[qC.languages.registerColorProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}Gc.ColorProviderFeature=HC;var Qc={};Object.defineProperty(Qc,"__esModule",{value:!0});Qc.ImplementationFeature=void 0;const jC=ye,Xl=de,Zl=ge;class WC extends Zl.TextDocumentLanguageFeature{constructor(e){super(e,Xl.ImplementationRequest.type)}fillClientCapabilities(e){let n=(0,Zl.ensure)((0,Zl.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=(h,g,p)=>a.sendRequest(Xl.ImplementationRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(w,p),w=>a.handleFailedRequest(Xl.ImplementationRequest.type,p,w,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 jC.languages.registerImplementationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Qc.ImplementationFeature=WC;var Jc={};Object.defineProperty(Jc,"__esModule",{value:!0});Jc.TypeDefinitionFeature=void 0;const UC=ye,eu=de,Vs=ge;class zC extends Vs.TextDocumentLanguageFeature{constructor(e){super(e,eu.TypeDefinitionRequest.type)}fillClientCapabilities(e){(0,Vs.ensure)((0,Vs.ensure)(e,"textDocument"),"typeDefinition").dynamicRegistration=!0;let n=(0,Vs.ensure)((0,Vs.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=(h,g,p)=>a.sendRequest(eu.TypeDefinitionRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(w,p),w=>a.handleFailedRequest(eu.TypeDefinitionRequest.type,p,w,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 UC.languages.registerTypeDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Jc.TypeDefinitionFeature=zC;var ys={};Object.defineProperty(ys,"__esModule",{value:!0});ys.WorkspaceFoldersFeature=ys.arrayDiff=void 0;const BC=$e,oa=ye,Ks=de;function tu(t,e){if(t!=null)return t[e]}function uh(t,e){return t.filter(n=>e.indexOf(n)<0)}ys.arrayDiff=uh;class VC{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 Ks.DidChangeWorkspaceFoldersNotification.type}fillInitializeParams(e){const n=oa.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(Ks.WorkspaceFoldersRequest.type,s=>{const o=()=>{const c=oa.workspace.workspaceFolders;return c===void 0?null:c.map(h=>this.asProtocol(h))},a=n.middleware.workspace;return a&&a.workspaceFolders?a.workspaceFolders(s,o):o()});const i=tu(tu(tu(e,"workspace"),"workspaceFolders"),"changeNotifications");let r;typeof i=="string"?r=i:i===!0&&(r=BC.generateUuid()),r&&this.register({id:r,registerOptions:void 0})}sendInitialEvent(e){let n;if(this._initialFolders&&e){const i=uh(this._initialFolders,e),r=uh(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 ${Ks.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(Ks.DidChangeWorkspaceFoldersNotification.type,i)}register(e){let n=e.id,i=this._client,r=oa.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 ${Ks.DidChangeWorkspaceFoldersNotification.type.method} failed`,l)})});this._listeners.set(n,r),this.sendInitialEvent(oa.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}}}ys.WorkspaceFoldersFeature=VC;var Yc={};Object.defineProperty(Yc,"__esModule",{value:!0});Yc.FoldingRangeFeature=void 0;const Up=ye,yr=de,Gs=ge;class KC extends Gs.TextDocumentLanguageFeature{constructor(e){super(e,yr.FoldingRangeRequest.type)}fillClientCapabilities(e){let n=(0,Gs.ensure)((0,Gs.ensure)(e,"textDocument"),"foldingRange");n.dynamicRegistration=!0,n.rangeLimit=5e3,n.lineFoldingOnly=!0,n.foldingRangeKind={valueSet:[yr.FoldingRangeKind.Comment,yr.FoldingRangeKind.Imports,yr.FoldingRangeKind.Region]},n.foldingRange={collapsedText:!1},(0,Gs.ensure)((0,Gs.ensure)(e,"workspace"),"foldingRange").refreshSupport=!0}initialize(e,n){this._client.onRequest(yr.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 Up.EventEmitter,r={onDidChangeFoldingRanges:i.event,provideFoldingRanges:(s,o,a)=>{const c=this._client,l=(g,p,w)=>{const v={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g)};return c.sendRequest(yr.FoldingRangeRequest.type,v,w).then(x=>w.isCancellationRequested?null:c.protocol2CodeConverter.asFoldingRanges(x,w),x=>c.handleFailedRequest(yr.FoldingRangeRequest.type,w,x,null))},h=c.middleware;return h.provideFoldingRanges?h.provideFoldingRanges(s,o,a,l):l(s,o,a)}};return[Up.languages.registerFoldingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),{provider:r,onDidChangeFoldingRange:i}]}}Yc.FoldingRangeFeature=KC;var Xc={};Object.defineProperty(Xc,"__esModule",{value:!0});Xc.DeclarationFeature=void 0;const GC=ye,nu=de,iu=ge;class QC extends iu.TextDocumentLanguageFeature{constructor(e){super(e,nu.DeclarationRequest.type)}fillClientCapabilities(e){const n=(0,iu.ensure)((0,iu.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=(h,g,p)=>a.sendRequest(nu.DeclarationRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDeclarationResult(w,p),w=>a.handleFailedRequest(nu.DeclarationRequest.type,p,w,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 GC.languages.registerDeclarationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Xc.DeclarationFeature=QC;var Zc={};Object.defineProperty(Zc,"__esModule",{value:!0});Zc.SelectionRangeFeature=void 0;const JC=ye,ru=de,su=ge;class YC extends su.TextDocumentLanguageFeature{constructor(e){super(e,ru.SelectionRangeRequest.type)}fillClientCapabilities(e){const n=(0,su.ensure)((0,su.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(h,g,p)=>{const w={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(h),positions:a.code2ProtocolConverter.asPositionsSync(g,p)};return a.sendRequest(ru.SelectionRangeRequest.type,w,p).then(v=>p.isCancellationRequested?null:a.protocol2CodeConverter.asSelectionRanges(v,p),v=>a.handleFailedRequest(ru.SelectionRangeRequest.type,p,v,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 JC.languages.registerSelectionRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Zc.SelectionRangeFeature=YC;var el={};Object.defineProperty(el,"__esModule",{value:!0});el.ProgressFeature=void 0;const zp=de,XC=Go;function ZC(t,e){return t[e]===void 0&&(t[e]=Object.create(null)),t[e]}class e3{constructor(e){this._client=e,this.activeParts=new Set}getState(){return{kind:"window",id:zp.WorkDoneProgressCreateRequest.method,registrations:this.activeParts.size>0}}fillClientCapabilities(e){ZC(e,"window").workDoneProgress=!0}initialize(){const e=this._client,n=r=>{this.activeParts.delete(r)},i=r=>{this.activeParts.add(new XC.ProgressPart(this._client,r.token,n))};e.onRequest(zp.WorkDoneProgressCreateRequest.type,i)}clear(){for(const e of this.activeParts)e.done();this.activeParts.clear()}}el.ProgressFeature=e3;var tl={};Object.defineProperty(tl,"__esModule",{value:!0});tl.CallHierarchyFeature=void 0;const t3=ye,Cr=de,ou=ge;class n3{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 h=r.code2ProtocolConverter.asTextDocumentPositionParams(a,c);return r.sendRequest(Cr.CallHierarchyPrepareRequest.type,h,l).then(g=>l.isCancellationRequested?null:r.protocol2CodeConverter.asCallHierarchyItems(g,l),g=>r.handleFailedRequest(Cr.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(Cr.CallHierarchyIncomingCallsRequest.type,c,a).then(l=>a.isCancellationRequested?null:i.protocol2CodeConverter.asCallHierarchyIncomingCalls(l,a),l=>i.handleFailedRequest(Cr.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(Cr.CallHierarchyOutgoingCallsRequest.type,c,a).then(l=>a.isCancellationRequested?null:i.protocol2CodeConverter.asCallHierarchyOutgoingCalls(l,a),l=>i.handleFailedRequest(Cr.CallHierarchyOutgoingCallsRequest.type,a,l,null))};return r.provideCallHierarchyOutgoingCalls?r.provideCallHierarchyOutgoingCalls(e,n,s):s(e,n)}}class i3 extends ou.TextDocumentLanguageFeature{constructor(e){super(e,Cr.CallHierarchyPrepareRequest.type)}fillClientCapabilities(e){const n=e,i=(0,ou.ensure)((0,ou.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 n3(n);return[t3.languages.registerCallHierarchyProvider(this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector),i),i]}}tl.CallHierarchyFeature=i3;var nl={};Object.defineProperty(nl,"__esModule",{value:!0});nl.SemanticTokensFeature=void 0;const aa=ye,ve=de,Qs=ge,r3=Ve;class s3 extends Qs.TextDocumentLanguageFeature{constructor(e){super(e,ve.SemanticTokensRegistrationType.type)}fillClientCapabilities(e){const n=(0,Qs.ensure)((0,Qs.ensure)(e,"textDocument"),"semanticTokens");n.dynamicRegistration=!0,n.tokenTypes=[ve.SemanticTokenTypes.namespace,ve.SemanticTokenTypes.type,ve.SemanticTokenTypes.class,ve.SemanticTokenTypes.enum,ve.SemanticTokenTypes.interface,ve.SemanticTokenTypes.struct,ve.SemanticTokenTypes.typeParameter,ve.SemanticTokenTypes.parameter,ve.SemanticTokenTypes.variable,ve.SemanticTokenTypes.property,ve.SemanticTokenTypes.enumMember,ve.SemanticTokenTypes.event,ve.SemanticTokenTypes.function,ve.SemanticTokenTypes.method,ve.SemanticTokenTypes.macro,ve.SemanticTokenTypes.keyword,ve.SemanticTokenTypes.modifier,ve.SemanticTokenTypes.comment,ve.SemanticTokenTypes.string,ve.SemanticTokenTypes.number,ve.SemanticTokenTypes.regexp,ve.SemanticTokenTypes.operator,ve.SemanticTokenTypes.decorator],n.tokenModifiers=[ve.SemanticTokenModifiers.declaration,ve.SemanticTokenModifiers.definition,ve.SemanticTokenModifiers.readonly,ve.SemanticTokenModifiers.static,ve.SemanticTokenModifiers.deprecated,ve.SemanticTokenModifiers.abstract,ve.SemanticTokenModifiers.async,ve.SemanticTokenModifiers.modification,ve.SemanticTokenModifiers.documentation,ve.SemanticTokenModifiers.defaultLibrary],n.formats=[ve.TokenFormat.Relative],n.requests={range:!0,full:{delta:!0}},n.multilineTokenSupport=!1,n.overlappingTokenSupport=!1,n.serverCancelSupport=!0,n.augmentsSyntaxTokens=!0,(0,Qs.ensure)((0,Qs.ensure)(e,"workspace"),"semanticTokens").refreshSupport=!0}initialize(e,n){this._client.onRequest(ve.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=r3.boolean(e.full)?e.full:e.full!==void 0,r=e.full!==void 0&&typeof e.full!="boolean"&&e.full.delta===!0,s=new aa.EventEmitter,o=i?{onDidChangeSemanticTokens:s.event,provideDocumentSemanticTokens:(w,v)=>{const x=this._client,T=x.middleware,q=(z,A)=>{const W={textDocument:x.code2ProtocolConverter.asTextDocumentIdentifier(z)};return x.sendRequest(ve.SemanticTokensRequest.type,W,A).then(j=>A.isCancellationRequested?null:x.protocol2CodeConverter.asSemanticTokens(j,A),j=>x.handleFailedRequest(ve.SemanticTokensRequest.type,A,j,null))};return T.provideDocumentSemanticTokens?T.provideDocumentSemanticTokens(w,v,q):q(w,v)},provideDocumentSemanticTokensEdits:r?(w,v,x)=>{const T=this._client,q=T.middleware,z=(A,W,j)=>{const se={textDocument:T.code2ProtocolConverter.asTextDocumentIdentifier(A),previousResultId:W};return T.sendRequest(ve.SemanticTokensDeltaRequest.type,se,j).then(async B=>j.isCancellationRequested?null:ve.SemanticTokens.is(B)?await T.protocol2CodeConverter.asSemanticTokens(B,j):await T.protocol2CodeConverter.asSemanticTokensEdits(B,j),B=>T.handleFailedRequest(ve.SemanticTokensDeltaRequest.type,j,B,null))};return q.provideDocumentSemanticTokensEdits?q.provideDocumentSemanticTokensEdits(w,v,x,z):z(w,v,x)}:void 0}:void 0,c=e.range===!0?{provideDocumentRangeSemanticTokens:(w,v,x)=>{const T=this._client,q=T.middleware,z=(A,W,j)=>{const se={textDocument:T.code2ProtocolConverter.asTextDocumentIdentifier(A),range:T.code2ProtocolConverter.asRange(W)};return T.sendRequest(ve.SemanticTokensRangeRequest.type,se,j).then(B=>j.isCancellationRequested?null:T.protocol2CodeConverter.asSemanticTokens(B,j),B=>T.handleFailedRequest(ve.SemanticTokensRangeRequest.type,j,B,null))};return q.provideDocumentRangeSemanticTokens?q.provideDocumentRangeSemanticTokens(w,v,x,z):z(w,v,x)}}:void 0,l=[],h=this._client,g=h.protocol2CodeConverter.asSemanticTokensLegend(e.legend),p=h.protocol2CodeConverter.asDocumentSelector(n);return o!==void 0&&l.push(aa.languages.registerDocumentSemanticTokensProvider(p,o,g)),c!==void 0&&l.push(aa.languages.registerDocumentRangeSemanticTokensProvider(p,c,g)),[new aa.Disposable(()=>l.forEach(w=>w.dispose())),{range:c,full:o,onDidChangeSemanticTokensEmitter:s}]}}nl.SemanticTokensFeature=s3;var vn={};Object.defineProperty(vn,"__esModule",{value:!0});vn.WillDeleteFilesFeature=vn.WillRenameFilesFeature=vn.WillCreateFilesFeature=vn.DidDeleteFilesFeature=vn.DidRenameFilesFeature=vn.DidCreateFilesFeature=void 0;const zn=ye,o3=Cc,qi=de,a3=$e;function Bp(t,e){return t[e]===void 0&&(t[e]={}),t[e]}function c3(t,e){return t[e]}function Vp(t,e,n){t[e]=n}class Lr{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=Bp(Bp(e,"workspace"),"fileOperations");Vp(n,"dynamicRegistration",!0),Vp(n,this._clientCapability,!0)}initialize(e){var r;const n=(r=e.workspace)==null?void 0:r.fileOperations,i=n!==void 0?c3(n,this._serverCapability):void 0;if((i==null?void 0:i.filters)!==void 0)try{this.register({id:a3.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 o3.Minimatch(i.pattern.glob,Lr.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 Lr.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 h=await this.getFileType(o);if(h===void 0)return this._client.error(`Failed to determine file type for ${o.toString()}.`),!0;if(h===zn.FileType.File&&l.kind===qi.FileOperationPatternKind.file||h===zn.FileType.Directory&&l.kind===qi.FileOperationPatternKind.folder)return!0}else if(l.kind===qi.FileOperationPatternKind.folder&&await Lr.getFileType(o)===zn.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 zn.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 S2 extends Lr{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 D2 extends S2{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 Lr.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 l3 extends S2{constructor(e){super(e,zn.workspace.onDidCreateFiles,qi.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)}}vn.DidCreateFilesFeature=l3;class u3 extends D2{constructor(e){super(e,zn.workspace.onDidRenameFiles,qi.DidRenameFilesNotification.type,"didRename","didRename",n=>n.oldUri,e.code2ProtocolConverter.asDidRenameFilesParams)}register(e){this._willListener||(this._willListener=zn.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)}}vn.DidRenameFilesFeature=u3;class d3 extends D2{constructor(e){super(e,zn.workspace.onDidDeleteFiles,qi.DidDeleteFilesNotification.type,"didDelete","didDelete",n=>n,e.code2ProtocolConverter.asDidDeleteFilesParams)}register(e){this._willListener||(this._willListener=zn.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)}}vn.DidDeleteFilesFeature=d3;class W1 extends Lr{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 f3 extends W1{constructor(e){super(e,zn.workspace.onWillCreateFiles,qi.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)}}vn.WillCreateFilesFeature=f3;class h3 extends W1{constructor(e){super(e,zn.workspace.onWillRenameFiles,qi.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)}}vn.WillRenameFilesFeature=h3;class g3 extends W1{constructor(e){super(e,zn.workspace.onWillDeleteFiles,qi.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)}}vn.WillDeleteFilesFeature=g3;var il={};Object.defineProperty(il,"__esModule",{value:!0});il.LinkedEditingFeature=void 0;const p3=ye,au=de,cu=ge;class m3 extends cu.TextDocumentLanguageFeature{constructor(e){super(e,au.LinkedEditingRangeRequest.type)}fillClientCapabilities(e){const n=(0,cu.ensure)((0,cu.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=(h,g,p)=>a.sendRequest(au.LinkedEditingRangeRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asLinkedEditingRanges(w,p),w=>a.handleFailedRequest(au.LinkedEditingRangeRequest.type,p,w,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 p3.languages.registerLinkedEditingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}il.LinkedEditingFeature=m3;var rl={};Object.defineProperty(rl,"__esModule",{value:!0});rl.TypeHierarchyFeature=void 0;const y3=ye,_r=de,lu=ge;class b3{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 h=r.code2ProtocolConverter.asTextDocumentPositionParams(a,c);return r.sendRequest(_r.TypeHierarchyPrepareRequest.type,h,l).then(g=>l.isCancellationRequested?null:r.protocol2CodeConverter.asTypeHierarchyItems(g,l),g=>r.handleFailedRequest(_r.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(_r.TypeHierarchySupertypesRequest.type,c,a).then(l=>a.isCancellationRequested?null:i.protocol2CodeConverter.asTypeHierarchyItems(l,a),l=>i.handleFailedRequest(_r.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(_r.TypeHierarchySubtypesRequest.type,c,a).then(l=>a.isCancellationRequested?null:i.protocol2CodeConverter.asTypeHierarchyItems(l,a),l=>i.handleFailedRequest(_r.TypeHierarchySubtypesRequest.type,a,l,null))};return r.provideTypeHierarchySubtypes?r.provideTypeHierarchySubtypes(e,n,s):s(e,n)}}class v3 extends lu.TextDocumentLanguageFeature{constructor(e){super(e,_r.TypeHierarchyPrepareRequest.type)}fillClientCapabilities(e){const n=(0,lu.ensure)((0,lu.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 b3(n);return[y3.languages.registerTypeHierarchyProvider(n.protocol2CodeConverter.asDocumentSelector(e.documentSelector),i),i]}}rl.TypeHierarchyFeature=v3;var sl={};Object.defineProperty(sl,"__esModule",{value:!0});sl.InlineValueFeature=void 0;const Kp=ye,ca=de,Js=ge;class w3 extends Js.TextDocumentLanguageFeature{constructor(e){super(e,ca.InlineValueRequest.type)}fillClientCapabilities(e){(0,Js.ensure)((0,Js.ensure)(e,"textDocument"),"inlineValue").dynamicRegistration=!0,(0,Js.ensure)((0,Js.ensure)(e,"workspace"),"inlineValue").refreshSupport=!0}initialize(e,n){this._client.onRequest(ca.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 Kp.EventEmitter,r={onDidChangeInlineValues:i.event,provideInlineValues:(s,o,a,c)=>{const l=this._client,h=(p,w,v,x)=>{const T={textDocument:l.code2ProtocolConverter.asTextDocumentIdentifier(p),range:l.code2ProtocolConverter.asRange(w),context:l.code2ProtocolConverter.asInlineValueContext(v)};return l.sendRequest(ca.InlineValueRequest.type,T,x).then(q=>x.isCancellationRequested?null:l.protocol2CodeConverter.asInlineValues(q,x),q=>l.handleFailedRequest(ca.InlineValueRequest.type,x,q,null))},g=l.middleware;return g.provideInlineValues?g.provideInlineValues(s,o,a,c,h):h(s,o,a,c)}};return[this.registerProvider(n,r),{provider:r,onDidChangeInlineValues:i}]}registerProvider(e,n){return Kp.languages.registerInlineValuesProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}sl.InlineValueFeature=w3;var ol={};Object.defineProperty(ol,"__esModule",{value:!0});ol.InlayHintsFeature=void 0;const Gp=ye,Qr=de,Ys=ge;class C3 extends Ys.TextDocumentLanguageFeature{constructor(e){super(e,Qr.InlayHintRequest.type)}fillClientCapabilities(e){const n=(0,Ys.ensure)((0,Ys.ensure)(e,"textDocument"),"inlayHint");n.dynamicRegistration=!0,n.resolveSupport={properties:["tooltip","textEdits","label.tooltip","label.location","label.command"]},(0,Ys.ensure)((0,Ys.ensure)(e,"workspace"),"inlayHint").refreshSupport=!0}initialize(e,n){this._client.onRequest(Qr.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 Gp.EventEmitter,r={onDidChangeInlayHints:i.event,provideInlayHints:(s,o,a)=>{const c=this._client,l=async(g,p,w)=>{const v={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),range:c.code2ProtocolConverter.asRange(p)};try{const x=await c.sendRequest(Qr.InlayHintRequest.type,v,w);return w.isCancellationRequested?null:c.protocol2CodeConverter.asInlayHints(x,w)}catch(x){return c.handleFailedRequest(Qr.InlayHintRequest.type,w,x,null)}},h=c.middleware;return h.provideInlayHints?h.provideInlayHints(s,o,a,l):l(s,o,a)}};return r.resolveInlayHint=e.resolveProvider===!0?(s,o)=>{const a=this._client,c=async(h,g)=>{try{const p=await a.sendRequest(Qr.InlayHintResolveRequest.type,a.code2ProtocolConverter.asInlayHint(h),g);if(g.isCancellationRequested)return null;const w=a.protocol2CodeConverter.asInlayHint(p,g);return g.isCancellationRequested?null:w}catch(p){return a.handleFailedRequest(Qr.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 Gp.languages.registerInlayHintsProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}ol.InlayHintsFeature=C3;var al={};Object.defineProperty(al,"__esModule",{value:!0});al.InlineCompletionItemFeature=void 0;const _3=ye,uu=de,du=ge,S3=$e;class D3 extends du.TextDocumentLanguageFeature{constructor(e){super(e,uu.InlineCompletionRequest.type)}fillClientCapabilities(e){let n=(0,du.ensure)((0,du.ensure)(e,"textDocument"),"inlineCompletion");n.dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.inlineCompletionProvider);i&&this.register({id:S3.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideInlineCompletionItems:(r,s,o,a)=>{const c=this._client,l=this._client.middleware,h=(g,p,w,v)=>c.sendRequest(uu.InlineCompletionRequest.type,c.code2ProtocolConverter.asInlineCompletionParams(g,p,w),v).then(x=>v.isCancellationRequested?null:c.protocol2CodeConverter.asInlineCompletionResult(x,v),x=>c.handleFailedRequest(uu.InlineCompletionRequest.type,v,x,null));return l.provideInlineCompletionItems?l.provideInlineCompletionItems(r,s,o,a,h):h(r,s,o,a)}};return[_3.languages.registerInlineCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}al.InlineCompletionItemFeature=D3;Object.defineProperty(jt,"__esModule",{value:!0});jt.ProposedFeatures=jt.BaseLanguageClient=jt.MessageTransports=jt.SuspendMode=jt.State=jt.CloseAction=jt.ErrorAction=jt.RevealOutputChannelOn=void 0;const Je=ye,K=de,x3=Sc,k3=Fc,ti=Ve,la=Wt,Qp=$e,T3=Go,Xn=ge,R3=Ni,Jp=Mc,Yp=er,Jr=bn,E3=Oc,P3=Ac,I3=Lc,F3=Nc,M3=$c,O3=H1,A3=qc,L3=Hc,N3=jc,$3=Wc,fu=tr,q3=zc,H3=Bc,j3=Vc,W3=Kc,U3=Gc,z3=Qc,B3=Jc,V3=ys,K3=Yc,G3=Xc,Q3=Zc,J3=el,Y3=tl,X3=nl,Yr=vn,Z3=il,e_=rl,t_=sl,n_=ol,i_=al;var xr;(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"})(xr||(jt.RevealOutputChannelOn=xr={}));var xo;(function(t){t[t.Continue=1]="Continue",t[t.Shutdown=2]="Shutdown"})(xo||(jt.ErrorAction=xo={}));var nr;(function(t){t[t.DoNotRestart=1]="DoNotRestart",t[t.Restart=2]="Restart"})(nr||(jt.CloseAction=nr={}));var ho;(function(t){t[t.Stopped=1]="Stopped",t[t.Starting=3]="Starting",t[t.Running=2]="Running"})(ho||(jt.State=ho={}));var Xp;(function(t){t.off="off",t.on="on"})(Xp||(jt.SuspendMode=Xp={}));var dh;(function(t){function e(n){return n==null?!1:typeof n=="boolean"||typeof n=="object"&&n!==null&&ti.stringArray(n.enabledCommands)?n:!1}t.sanitizeIsTrusted=e})(dh||(dh={}));class r_{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:nr.Restart}:this.restarts[this.restarts.length-1]-this.restarts[0]<=3*60*1e3?{action:nr.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:nr.Restart})}}var Re;(function(t){t.Initial="initial",t.Starting="starting",t.StartFailed="startFailed",t.Running="running",t.Stopping="stopping",t.Stopped="stopped"})(Re||(Re={}));var Zp;(function(t){function e(n){return n&&K.MessageReader.is(n.reader)&&K.MessageWriter.is(n.writer)}t.is=e})(Zp||(jt.MessageTransports=Zp={}));class Nr{constructor(e,n,i){var s;this._traceFormat=K.TraceFormat.Text,this._diagnosticQueue=new Map,this._diagnosticQueueState={state:"idle"},this._features=[],this._dynamicFeatures=new Map,this.workspaceEditLock=new la.Semaphore(1),this._id=e,this._name=n,i=i||{};const r={isTrusted:!1,supportHtml:!1};i.markdown!==void 0&&(r.isTrusted=dh.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??xr.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=Re.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 la.Semaphore(1),this._pendingChangeDelayer=new la.Delayer(250),this._fileEvents=[],this._fileEventDelayer=new la.Delayer(250),this._onStop=void 0,this._telemetryEmitter=new K.Emitter,this._stateChangeEmitter=new K.Emitter,this._trace=K.Trace.Off,this._tracer={log:(o,a)=>{ti.string(o)?this.logTrace(o,a):this.logObjectTrace(o)}},this._c2p=x3.createConverter(i.uriConverters?i.uriConverters.code2Protocol:void 0),this._p2c=k3.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=Je.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 Re.Starting:return ho.Starting;case Re.Running:return ho.Running;default:return ho.Stopped}}get initializeResult(){return this._initializeResult}async sendRequest(e,...n){var s;if(this.$state===Re.StartFailed||this.$state===Re.Stopping||this.$state===Re.Stopped)return Promise.reject(new K.ResponseError(K.ErrorCodes.ConnectionInactive,"Client is not running"));const i=await this.$start();this._didChangeTextDocumentFeature.syncKind===K.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?K.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,h)=>{const g=[];return l!==void 0&&g.push(l),h!==void 0&&g.push(h),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===Re.StartFailed||this.$state===Re.Stopping||this.$state===Re.Stopped)return Promise.reject(new K.ResponseError(K.ErrorCodes.ConnectionInactive,"Client is not running"));const i=this._didChangeTextDocumentFeature.syncKind===K.TextDocumentSyncKind.Full;let r;i&&typeof e!="string"&&e.method===K.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===Re.StartFailed||this.$state===Re.Stopping||this.$state===Re.Stopped)return Promise.reject(new K.ResponseError(K.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=K.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 r_(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 K.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}
69
119
  Code: ${n.code} ${n.data?`
70
- `+n.data.toString():""}`}return e instanceof Error?ti.string(e.stack)?e.stack:e.message:ti.string(e)?e:e.toString()}debug(e,n,i=!0){this.logOutputMessage(K.MessageType.Debug,xr.Debug,"Debug",e,n,i)}info(e,n,i=!0){this.logOutputMessage(K.MessageType.Info,xr.Info,"Info",e,n,i)}warn(e,n,i=!0){this.logOutputMessage(K.MessageType.Warning,xr.Warn,"Warn",e,n,i)}error(e,n,i=!0){this.logOutputMessage(K.MessageType.Error,xr.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===K.MessageType.Error?Je.window.showErrorMessage:e===K.MessageType.Warning?Je.window.showWarningMessage:Je.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===Re.Initial||this.$state===Re.Stopping||this.$state===Re.Stopped}needsStop(){return this.$state===Re.Starting||this.$state===Re.Running}activeConnection(){return this.$state===Re.Running&&this._connection!==void 0?this._connection:void 0}isRunning(){return this.$state===Re.Running}async start(){if(this._disposed==="disposing"||this._disposed==="disposed")throw new Error("Client got disposed and can't be restarted.");if(this.$state===Re.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?Je.languages.createDiagnosticCollection(this._clientOptions.diagnosticCollectionName):Je.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=Re.Starting;try{const r=await this.createConnection();r.onNotification(K.LogMessageNotification.type,s=>{switch(s.type){case K.MessageType.Error:this.error(s.message,void 0,!1);break;case K.MessageType.Warning:this.warn(s.message,void 0,!1);break;case K.MessageType.Info:this.info(s.message,void 0,!1);break;case K.MessageType.Debug:this.debug(s.message,void 0,!1);break;default:this.outputChannel.appendLine(s.message)}}),r.onNotification(K.ShowMessageNotification.type,s=>{switch(s.type){case K.MessageType.Error:Je.window.showErrorMessage(s.message);break;case K.MessageType.Warning:Je.window.showWarningMessage(s.message);break;case K.MessageType.Info:Je.window.showInformationMessage(s.message);break;default:Je.window.showInformationMessage(s.message)}}),r.onRequest(K.ShowMessageRequest.type,s=>{let o;switch(s.type){case K.MessageType.Error:o=Je.window.showErrorMessage;break;case K.MessageType.Warning:o=Je.window.showWarningMessage;break;case K.MessageType.Info:o=Je.window.showInformationMessage;break;default:o=Je.window.showInformationMessage}let a=s.actions||[];return o(s.message,...a)}),r.onNotification(K.TelemetryEventNotification.type,s=>{this._telemetryEmitter.fire(s)}),r.onRequest(K.ShowDocumentRequest.type,async s=>{var c;const o=async l=>{const h=this.protocol2CodeConverter.asUri(l.uri);try{if(l.external===!0)return{success:await Je.env.openExternal(h)};{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 Je.window.showTextDocument(h,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=Re.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:Je.env.appName,version:Je.version},locale:this.getLocale(),rootPath:i||null,rootUri:i?this._c2p.asUri(Je.Uri.file(i)):null,capabilities:this.computeClientCapabilities(),initializationOptions:ti.func(n)?n():n,trace:K.Trace.toString(this._trace),workspaceFolders:r};if(this.fillInitializeParams(s),this._clientOptions.progressOnInitialization){const o=Qp.generateUuid(),a=new T3.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!==K.PositionEncodingKind.UTF16)throw new Error(`Unsupported position encoding (${i.capabilities.positionEncoding}) received from server ${this.name}`);this._initializeResult=i,this.$state=Re.Running;let r;ti.number(i.capabilities.textDocumentSync)?i.capabilities.textDocumentSync===K.TextDocumentSyncKind.None?r={openClose:!1,change:K.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(K.PublishDiagnosticsNotification.type,s=>this.handleDiagnostics(s)),e.onRequest(K.RegistrationRequest.type,s=>this.handleRegistrationRequest(s)),e.onRequest("client/registerFeature",s=>this.handleRegistrationRequest(s)),e.onRequest(K.UnregistrationRequest.type,s=>this.handleUnregistrationRequest(s)),e.onRequest("client/unregisterFeature",s=>this.handleUnregistrationRequest(s)),e.onRequest(K.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(K.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 K.ResponseError&&i.data&&i.data.retry?Je.window.showErrorMessage(i.message,{title:"Retry",id:"retry"}).then(r=>{r&&r.id==="retry"?this.initialize(e):this.stop()}):(i&&i.message&&Je.window.showErrorMessage(i.message),this.error("Server initialization failed.",i),this.stop()),i}}_clientGetRootPath(){let e=Je.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===Re.Stopped||this.$state===Re.Initial)return;if(this.$state===Re.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!==Re.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=Re.Stopping,this.cleanUp(e);const r=new Promise(o=>{(0,K.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=Re.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(K.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(K.DidChangeTextDocumentNotification.type,r),this._didChangeTextDocumentFeature.notificationSent(i,K.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,K.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 Je.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 Je.env.language}async $start(){if(this.$state===Re.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=o_(i.reader,i.writer,e,n,this._clientOptions.connectionOptions),this._connection}async handleConnectionClosed(){if(this.$state===Re.Stopped)return;try{this._connection!==void 0&&this._connection.dispose()}catch{}let e={action:nr.DoNotRestart};if(this.$state!==Re.Stopping)try{e=await this._clientOptions.errorHandler.closed()}catch{}this._connection=void 0,e.action===nr.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===Re.Starting?this.$state=Re.StartFailed:this.$state=Re.Stopped,this._onStop=Promise.resolve(),this._onStart=void 0):e.action===nr.Restart&&(this.info(e.message??"Connection to server got closed. Server will restart.",!e.handled),this.cleanUp("restart"),this.$state=Re.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.
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.
71
121
  ${e.message}
72
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.
73
- ${e.message}`,void 0,r.handled===!0?!1:"force")}hookConfigurationChanged(e){this._listeners.push(Je.workspace.onDidChangeConfiguration(()=>{this.refreshTrace(e,!0)}))}refreshTrace(e,n=!1){const i=Je.workspace.getConfiguration(this._id);let r=K.Trace.Off,s=K.TraceFormat.Text;if(i){const o=i.get("trace.server","off");typeof o=="string"?r=K.Trace.fromString(o):(r=K.Trace.fromString(i.get("trace.server.verbosity","off")),s=K.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;ti.array(n)?i=n:i=[n],i&&this._dynamicFeatures.get(K.DidChangeWatchedFilesNotification.type.method).registerRaw(Qp.generateUuid(),i)}registerFeatures(e){for(let n of e)this.registerFeature(n)}registerFeature(e){if(this._features.push(e),Xn.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(K.NotebookDocumentSyncRegistrationType.method);return n===void 0||!(n instanceof Jp.NotebookDocumentSyncFeature)?!1:n.handles(e)}registerBuiltinFeatures(){const e=new Map;this.registerFeature(new Yp.ConfigurationFeature(this)),this.registerFeature(new Jr.DidOpenTextDocumentFeature(this,this._syncedDocuments)),this._didChangeTextDocumentFeature=new Jr.DidChangeTextDocumentFeature(this,e),this._didChangeTextDocumentFeature.onPendingChangeAdded(()=>{this.triggerPendingChangeDelivery()}),this.registerFeature(this._didChangeTextDocumentFeature),this.registerFeature(new Jr.WillSaveFeature(this)),this.registerFeature(new Jr.WillSaveWaitUntilFeature(this)),this.registerFeature(new Jr.DidSaveTextDocumentFeature(this)),this.registerFeature(new Jr.DidCloseTextDocumentFeature(this,this._syncedDocuments,e)),this.registerFeature(new W3.FileSystemWatcherFeature(this,n=>this.notifyFileEvent(n))),this.registerFeature(new E3.CompletionItemFeature(this)),this.registerFeature(new P3.HoverFeature(this)),this.registerFeature(new F3.SignatureHelpFeature(this)),this.registerFeature(new I3.DefinitionFeature(this)),this.registerFeature(new L3.ReferencesFeature(this)),this.registerFeature(new M3.DocumentHighlightFeature(this)),this.registerFeature(new O3.DocumentSymbolFeature(this)),this.registerFeature(new A3.WorkspaceSymbolFeature(this)),this.registerFeature(new N3.CodeActionFeature(this)),this.registerFeature(new $3.CodeLensFeature(this)),this.registerFeature(new fu.DocumentFormattingFeature(this)),this.registerFeature(new fu.DocumentRangeFormattingFeature(this)),this.registerFeature(new fu.DocumentOnTypeFormattingFeature(this)),this.registerFeature(new q3.RenameFeature(this)),this.registerFeature(new H3.DocumentLinkFeature(this)),this.registerFeature(new j3.ExecuteCommandFeature(this)),this.registerFeature(new Yp.SyncConfigurationFeature(this)),this.registerFeature(new B3.TypeDefinitionFeature(this)),this.registerFeature(new z3.ImplementationFeature(this)),this.registerFeature(new U3.ColorProviderFeature(this)),this.clientOptions.workspaceFolder===void 0&&this.registerFeature(new V3.WorkspaceFoldersFeature(this)),this.registerFeature(new K3.FoldingRangeFeature(this)),this.registerFeature(new G3.DeclarationFeature(this)),this.registerFeature(new Q3.SelectionRangeFeature(this)),this.registerFeature(new J3.ProgressFeature(this)),this.registerFeature(new Y3.CallHierarchyFeature(this)),this.registerFeature(new X3.SemanticTokensFeature(this)),this.registerFeature(new Z3.LinkedEditingFeature(this)),this.registerFeature(new Yr.DidCreateFilesFeature(this)),this.registerFeature(new Yr.DidRenameFilesFeature(this)),this.registerFeature(new Yr.DidDeleteFilesFeature(this)),this.registerFeature(new Yr.WillCreateFilesFeature(this)),this.registerFeature(new Yr.WillRenameFilesFeature(this)),this.registerFeature(new Yr.WillDeleteFilesFeature(this)),this.registerFeature(new e_.TypeHierarchyFeature(this)),this.registerFeature(new t_.InlineValueFeature(this)),this.registerFeature(new n_.InlayHintsFeature(this)),this.registerFeature(new R3.DiagnosticFeature(this)),this.registerFeature(new Jp.NotebookDocumentSyncFeature(this))}registerProposedFeatures(){this.registerFeatures(fh.createAll(this))}fillInitializeParams(e){for(let n of this._features)ti.func(n.fillInitializeParams)&&n.fillInitializeParams(e)}computeClientCapabilities(){const e={};(0,Xn.ensure)(e,"workspace").applyEdit=!0;const n=(0,Xn.ensure)((0,Xn.ensure)(e,"workspace"),"workspaceEdit");n.documentChanges=!0,n.resourceOperations=[K.ResourceOperationKind.Create,K.ResourceOperationKind.Rename,K.ResourceOperationKind.Delete],n.failureHandling=K.FailureHandlingKind.TextOnlyTransactional,n.normalizesLineEndings=!0,n.changeAnnotationSupport={groupsOnLabel:!0};const i=(0,Xn.ensure)((0,Xn.ensure)(e,"textDocument"),"publishDiagnostics");i.relatedInformation=!0,i.versionSupport=!1,i.tagSupport={valueSet:[K.DiagnosticTag.Unnecessary,K.DiagnosticTag.Deprecated]},i.codeDescriptionSupport=!0,i.dataSupport=!0;const r=(0,Xn.ensure)(e,"window"),s=(0,Xn.ensure)(r,"showMessage");s.messageActionItem={additionalPropertiesSupport:!0};const o=(0,Xn.ensure)(r,"showDocument");o.support=!0;const a=(0,Xn.ensure)(e,"general");a.staleRequestSupport={cancel:!0,retryOnContentModified:Array.from(Nr.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)ti.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;Je.workspace.textDocuments.forEach(o=>r.set(o.uri.toString(),o));let s=!1;if(n.documentChanges){for(const o of n.documentChanges)if(K.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}):ti.asPromise(Je.workspace.applyEdit(i).then(o=>({applied:o})))}handleFailedRequest(e,n,i,r,s=!0){if(i instanceof K.ResponseError){if(i.code===K.ErrorCodes.PendingResponseRejected||i.code===K.ErrorCodes.ConnectionInactive)return r;if(i.code===K.LSPErrorCodes.RequestCancelled||i.code===K.LSPErrorCodes.ServerCancelled){if(n!==void 0&&n.isCancellationRequested)return r;throw i.data!==void 0?new Xn.LSPCancellationError(i.data):new Je.CancellationError}else if(i.code===K.LSPErrorCodes.ContentModified){if(Nr.RequestsToCancelOnContentModified.has(e.method)||Nr.CancellableResolveCalls.has(e.method))throw new Je.CancellationError;return r}}throw this.error(`Request ${e.method} failed.`,i,s),i}}jt.BaseLanguageClient=Nr;Nr.RequestsToCancelOnContentModified=new Set([K.SemanticTokensRequest.method,K.SemanticTokensRangeRequest.method,K.SemanticTokensDeltaRequest.method]);Nr.CancellableResolveCalls=new Set([K.CompletionResolveRequest.method,K.CodeLensResolveRequest.method,K.CodeActionResolveRequest.method,K.InlayHintResolveRequest.method,K.DocumentLinkResolveRequest.method,K.WorkspaceSymbolResolveRequest.method]);class s_{error(e){(0,K.RAL)().console.error(e)}warn(e){(0,K.RAL)().console.warn(e)}info(e){(0,K.RAL)().console.info(e)}log(e){(0,K.RAL)().console.log(e)}}function o_(t,e,n,i,r){const s=new s_,o=(0,K.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,h)=>{const g={sendNotification:!1,traceFormat:K.TraceFormat.Text};return h===void 0?o.trace(c,l,g):(ti.boolean(h),o.trace(c,l,h))},initialize:c=>o.sendRequest(K.InitializeRequest.type,c),shutdown:()=>o.sendRequest(K.ShutdownRequest.type,void 0),exit:()=>o.sendNotification(K.ExitNotification.type),end:()=>o.end(),dispose:()=>o.dispose()}}var fh;(function(t){function e(n){return[new i_.InlineCompletionItemFeature(n)]}t.createAll=e})(fh||(jt.ProposedFeatures=fh={}));(function(t){var e=Et&&Et.__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=Et&&Et.__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(de,t),n(ge,t);var i=Ni;Object.defineProperty(t,"vsdiag",{enumerable:!0,get:function(){return i.vsdiag}}),Object.defineProperty(t,"DiagnosticPullMode",{enumerable:!0,get:function(){return i.DiagnosticPullMode}}),n(jt,t)})(mu);var x2={},k2={},U1={},Ka={},ce={},Rt={};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.stringArray=Rt.array=Rt.func=Rt.error=Rt.number=Rt.string=Rt.boolean=void 0;function a_(t){return t===!0||t===!1}Rt.boolean=a_;function T2(t){return typeof t=="string"||t instanceof String}Rt.string=T2;function c_(t){return typeof t=="number"||t instanceof Number}Rt.number=c_;function l_(t){return t instanceof Error}Rt.error=l_;function u_(t){return typeof t=="function"}Rt.func=u_;function R2(t){return Array.isArray(t)}Rt.array=R2;function d_(t){return R2(t)&&t.every(e=>T2(e))}Rt.stringArray=d_;Object.defineProperty(ce,"__esModule",{value:!0});ce.Message=ce.NotificationType9=ce.NotificationType8=ce.NotificationType7=ce.NotificationType6=ce.NotificationType5=ce.NotificationType4=ce.NotificationType3=ce.NotificationType2=ce.NotificationType1=ce.NotificationType0=ce.NotificationType=ce.RequestType9=ce.RequestType8=ce.RequestType7=ce.RequestType6=ce.RequestType5=ce.RequestType4=ce.RequestType3=ce.RequestType2=ce.RequestType1=ce.RequestType=ce.RequestType0=ce.AbstractMessageSignature=ce.ParameterStructures=ce.ResponseError=ce.ErrorCodes=void 0;const Sr=Rt;var hh;(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})(hh||(ce.ErrorCodes=hh={}));class z1 extends Error{constructor(e,n,i){super(n),this.code=Sr.number(e)?e:hh.UnknownErrorCode,this.data=i,Object.setPrototypeOf(this,z1.prototype)}toJson(){const e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}}ce.ResponseError=z1;class on{constructor(e){this.kind=e}static is(e){return e===on.auto||e===on.byName||e===on.byPosition}toString(){return this.kind}}ce.ParameterStructures=on;on.auto=new on("auto");on.byPosition=new on("byPosition");on.byName=new on("byName");class yt{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return on.auto}}ce.AbstractMessageSignature=yt;class f_ extends yt{constructor(e){super(e,0)}}ce.RequestType0=f_;class h_ extends yt{constructor(e,n=on.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ce.RequestType=h_;class g_ extends yt{constructor(e,n=on.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ce.RequestType1=g_;class p_ extends yt{constructor(e){super(e,2)}}ce.RequestType2=p_;class m_ extends yt{constructor(e){super(e,3)}}ce.RequestType3=m_;class y_ extends yt{constructor(e){super(e,4)}}ce.RequestType4=y_;class b_ extends yt{constructor(e){super(e,5)}}ce.RequestType5=b_;class v_ extends yt{constructor(e){super(e,6)}}ce.RequestType6=v_;class w_ extends yt{constructor(e){super(e,7)}}ce.RequestType7=w_;class C_ extends yt{constructor(e){super(e,8)}}ce.RequestType8=C_;class __ extends yt{constructor(e){super(e,9)}}ce.RequestType9=__;class S_ extends yt{constructor(e,n=on.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ce.NotificationType=S_;class D_ extends yt{constructor(e){super(e,0)}}ce.NotificationType0=D_;class x_ extends yt{constructor(e,n=on.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ce.NotificationType1=x_;class k_ extends yt{constructor(e){super(e,2)}}ce.NotificationType2=k_;class T_ extends yt{constructor(e){super(e,3)}}ce.NotificationType3=T_;class R_ extends yt{constructor(e){super(e,4)}}ce.NotificationType4=R_;class E_ extends yt{constructor(e){super(e,5)}}ce.NotificationType5=E_;class P_ extends yt{constructor(e){super(e,6)}}ce.NotificationType6=P_;class I_ extends yt{constructor(e){super(e,7)}}ce.NotificationType7=I_;class F_ extends yt{constructor(e){super(e,8)}}ce.NotificationType8=F_;class M_ extends yt{constructor(e){super(e,9)}}ce.NotificationType9=M_;var em;(function(t){function e(r){const s=r;return s&&Sr.string(s.method)&&(Sr.string(s.id)||Sr.number(s.id))}t.isRequest=e;function n(r){const s=r;return s&&Sr.string(s.method)&&r.id===void 0}t.isNotification=n;function i(r){const s=r;return s&&(s.result!==void 0||!!s.error)&&(Sr.string(s.id)||Sr.number(s.id)||s.id===null)}t.isResponse=i})(em||(ce.Message=em={}));var Hi={},tm;Object.defineProperty(Hi,"__esModule",{value:!0});Hi.LRUCache=Hi.LinkedMap=Hi.Touch=void 0;var nn;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(nn||(Hi.Touch=nn={}));class E2{constructor(){this[tm]="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=nn.None){const i=this._map.get(e);if(i)return n!==nn.None&&this.touch(i,n),i.value}set(e,n,i=nn.None){let r=this._map.get(e);if(r)r.value=n,i!==nn.None&&this.touch(r,i);else{switch(r={key:e,value:n,next:void 0,previous:void 0},i){case nn.None:this.addItemLast(r);break;case nn.First:this.addItemFirst(r);break;case nn.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}[(tm=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!==nn.First&&n!==nn.Last)){if(n===nn.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===nn.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)}}Hi.LinkedMap=E2;class O_ extends E2{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=nn.AsNew){return super.get(e,n)}peek(e){return super.get(e,nn.None)}set(e,n){return super.set(e,n,nn.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}Hi.LRUCache=O_;var cl={};Object.defineProperty(cl,"__esModule",{value:!0});cl.Disposable=void 0;var nm;(function(t){function e(n){return{dispose:n}}t.create=e})(nm||(cl.Disposable=nm={}));var wi={},zi={};Object.defineProperty(zi,"__esModule",{value:!0});let gh;function ph(){if(gh===void 0)throw new Error("No runtime abstraction layer installed");return gh}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");gh=n}t.install=e})(ph||(ph={}));zi.default=ph;Object.defineProperty(wi,"__esModule",{value:!0});wi.Emitter=wi.Event=void 0;const A_=zi;var im;(function(t){const e={dispose(){}};t.None=function(){return e}})(im||(wi.Event=im={}));class L_{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,A_.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}}class ll{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,i)=>{this._callbacks||(this._callbacks=new L_),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=ll._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)}}wi.Emitter=ll;ll._noop=function(){};var dr={};Object.defineProperty(dr,"__esModule",{value:!0});dr.CancellationTokenSource=dr.CancellationToken=void 0;const N_=zi,$_=Rt,mh=wi;var Ga;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:mh.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:mh.Event.None});function e(n){const i=n;return i&&(i===t.None||i===t.Cancelled||$_.boolean(i.isCancellationRequested)&&!!i.onCancellationRequested)}t.is=e})(Ga||(dr.CancellationToken=Ga={}));const q_=Object.freeze(function(t,e){const n=(0,N_.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}});class rm{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?q_:(this._emitter||(this._emitter=new mh.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}class H_{get token(){return this._token||(this._token=new rm),this._token}cancel(){this._token?this._token.cancel():this._token=Ga.Cancelled}dispose(){this._token?this._token instanceof rm&&this._token.dispose():this._token=Ga.None}}dr.CancellationTokenSource=H_;var bs={};Object.defineProperty(bs,"__esModule",{value:!0});bs.SharedArrayReceiverStrategy=bs.SharedArraySenderStrategy=void 0;const j_=dr;var ko;(function(t){t.Continue=0,t.Cancelled=1})(ko||(ko={}));class W_{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]=ko.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,ko.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}}bs.SharedArraySenderStrategy=W_;class U_{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===ko.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class z_{constructor(e){this.token=new U_(e)}cancel(){}dispose(){}}class B_{constructor(){this.kind="request"}createCancellationTokenSource(e){const n=e.$cancellationData;return n===void 0?new j_.CancellationTokenSource:new z_(n)}}bs.SharedArrayReceiverStrategy=B_;var ir={},Qo={};Object.defineProperty(Qo,"__esModule",{value:!0});Qo.Semaphore=void 0;const V_=zi;class K_{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,V_.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=K_;Object.defineProperty(ir,"__esModule",{value:!0});ir.ReadableStreamMessageReader=ir.AbstractMessageReader=ir.MessageReader=void 0;const yh=zi,Xr=Rt,hu=wi,G_=Qo;var sm;(function(t){function e(n){let i=n;return i&&Xr.func(i.listen)&&Xr.func(i.dispose)&&Xr.func(i.onError)&&Xr.func(i.onClose)&&Xr.func(i.onPartialMessage)}t.is=e})(sm||(ir.MessageReader=sm={}));class P2{constructor(){this.errorEmitter=new hu.Emitter,this.closeEmitter=new hu.Emitter,this.partialMessageEmitter=new hu.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: ${Xr.string(e.message)?e.message:"unknown"}`)}}ir.AbstractMessageReader=P2;var bh;(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,yh.default)().applicationJson.decoder,a.set(o.name,o)),{charset:i,contentDecoder:r,contentDecoders:s,contentTypeDecoder:o,contentTypeDecoders:a}}t.fromOptions=e})(bh||(bh={}));class Q_ extends P2{constructor(e,n){super(),this.readable=e,this.options=bh.fromOptions(n),this.buffer=(0,yh.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new G_.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.
74
- ${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,yh.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))}}ir.ReadableStreamMessageReader=Q_;var rr={};Object.defineProperty(rr,"__esModule",{value:!0});rr.WriteableStreamMessageWriter=rr.AbstractMessageWriter=rr.MessageWriter=void 0;const om=zi,ro=Rt,J_=Qo,am=wi,Y_="Content-Length: ",cm=`\r
75
- `;var lm;(function(t){function e(n){let i=n;return i&&ro.func(i.dispose)&&ro.func(i.onClose)&&ro.func(i.onError)&&ro.func(i.write)}t.is=e})(lm||(rr.MessageWriter=lm={}));class I2{constructor(){this.errorEmitter=new am.Emitter,this.closeEmitter=new am.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: ${ro.string(e.message)?e.message:"unknown"}`)}}rr.AbstractMessageWriter=I2;var vh;(function(t){function e(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,om.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,om.default)().applicationJson.encoder}}t.fromOptions=e})(vh||(vh={}));class X_ extends I2{constructor(e,n){super(),this.writable=e,this.options=vh.fromOptions(n),this.errorCount=0,this.writeSemaphore=new J_.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(Y_,i.byteLength.toString(),cm),r.push(cm),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()}}rr.WriteableStreamMessageWriter=X_;var ul={};Object.defineProperty(ul,"__esModule",{value:!0});ul.AbstractMessageBuffer=void 0;const Z_=13,eS=10,tS=`\r
76
- `;class nS{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 Z_:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case eS: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(tS);if(c.length<2)return a;for(let l=0;l<c.length-2;l++){const h=c[l],g=h.indexOf(":");if(g===-1)throw new Error(`Message header must separate key and value using ':'
77
- ${h}`);const p=h.substr(0,g),w=h.substr(g+1).trim();a.set(e?p.toLowerCase():p,w)}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}}ul.AbstractMessageBuffer=nS;var F2={};(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=zi,n=Rt,i=ce,r=Hi,s=wi,o=dr;var a;(function(D){D.type=new i.NotificationType("$/cancelRequest")})(a||(a={}));var c;(function(D){function P(N){return typeof N=="string"||typeof N=="number"}D.is=P})(c||(t.ProgressToken=c={}));var l;(function(D){D.type=new i.NotificationType("$/progress")})(l||(l={}));class h{constructor(){}}t.ProgressType=h;var g;(function(D){function P(N){return n.func(N)}D.is=P})(g||(g={})),t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var p;(function(D){D[D.Off=0]="Off",D[D.Messages=1]="Messages",D[D.Compact=2]="Compact",D[D.Verbose=3]="Verbose"})(p||(t.Trace=p={}));var w;(function(D){D.Off="off",D.Messages="messages",D.Compact="compact",D.Verbose="verbose"})(w||(t.TraceValues=w={})),function(D){function P($){if(!n.string($))return D.Off;switch($=$.toLowerCase(),$){case"off":return D.Off;case"messages":return D.Messages;case"compact":return D.Compact;case"verbose":return D.Verbose;default:return D.Off}}D.fromString=P;function N($){switch($){case D.Off:return"off";case D.Messages:return"messages";case D.Compact:return"compact";case D.Verbose:return"verbose";default:return"off"}}D.toString=N}(p||(t.Trace=p={}));var v;(function(D){D.Text="text",D.JSON="json"})(v||(t.TraceFormat=v={})),function(D){function P(N){return n.string(N)?(N=N.toLowerCase(),N==="json"?D.JSON:D.Text):D.Text}D.fromString=P}(v||(t.TraceFormat=v={}));var x;(function(D){D.type=new i.NotificationType("$/setTrace")})(x||(t.SetTraceNotification=x={}));var T;(function(D){D.type=new i.NotificationType("$/logTrace")})(T||(t.LogTraceNotification=T={}));var q;(function(D){D[D.Closed=1]="Closed",D[D.Disposed=2]="Disposed",D[D.AlreadyListening=3]="AlreadyListening"})(q||(t.ConnectionErrors=q={}));class z extends Error{constructor(P,N){super(N),this.code=P,Object.setPrototypeOf(this,z.prototype)}}t.ConnectionError=z;var A;(function(D){function P(N){const $=N;return $&&n.func($.cancelUndispatched)}D.is=P})(A||(t.ConnectionStrategy=A={}));var W;(function(D){function P(N){const $=N;return $&&($.kind===void 0||$.kind==="id")&&n.func($.createCancellationTokenSource)&&($.dispose===void 0||n.func($.dispose))}D.is=P})(W||(t.IdCancellationReceiverStrategy=W={}));var j;(function(D){function P(N){const $=N;return $&&$.kind==="request"&&n.func($.createCancellationTokenSource)&&($.dispose===void 0||n.func($.dispose))}D.is=P})(j||(t.RequestCancellationReceiverStrategy=j={}));var se;(function(D){D.Message=Object.freeze({createCancellationTokenSource(N){return new o.CancellationTokenSource}});function P(N){return W.is(N)||j.is(N)}D.is=P})(se||(t.CancellationReceiverStrategy=se={}));var B;(function(D){D.Message=Object.freeze({sendCancellation(N,$){return N.sendNotification(a.type,{id:$})},cleanup(N){}});function P(N){const $=N;return $&&n.func($.sendCancellation)&&n.func($.cleanup)}D.is=P})(B||(t.CancellationSenderStrategy=B={}));var Z;(function(D){D.Message=Object.freeze({receiver:se.Message,sender:B.Message});function P(N){const $=N;return $&&se.is($.receiver)&&B.is($.sender)}D.is=P})(Z||(t.CancellationStrategy=Z={}));var oe;(function(D){function P(N){const $=N;return $&&n.func($.handleMessage)}D.is=P})(oe||(t.MessageStrategy=oe={}));var qe;(function(D){function P(N){const $=N;return $&&(Z.is($.cancellationStrategy)||A.is($.connectionStrategy)||oe.is($.messageStrategy))}D.is=P})(qe||(t.ConnectionOptions=qe={}));var O;(function(D){D[D.New=1]="New",D[D.Listening=2]="Listening",D[D.Closed=3]="Closed",D[D.Disposed=4]="Disposed"})(O||(O={}));function L(D,P,N,$){const ee=N!==void 0?N:t.NullLogger;let ke=0,pe=0,ot=0;const Ke="2.0";let Pe;const ft=new Map;let He;const ht=new Map,rt=new Map;let Ut,gt=new r.LinkedMap,Dt=new Map,Pt=new Set,Lt=new Map,Se=p.Off,Nt=v.Text,Be,xt=O.New;const Cn=new s.Emitter,hn=new s.Emitter,Jt=new s.Emitter,It=new s.Emitter,Ft=new s.Emitter,Xe=$&&$.cancellationStrategy?$.cancellationStrategy:Z.Message;function Yt(C){if(C===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+C.toString()}function Kn(C){return C===null?"res-unknown-"+(++ot).toString():"res-"+C.toString()}function In(){return"not-"+(++pe).toString()}function Fn(C,M){i.Message.isRequest(M)?C.set(Yt(M.id),M):i.Message.isResponse(M)?C.set(Kn(M.id),M):C.set(In(),M)}function Gn(C){}function Qn(){return xt===O.Listening}function _n(){return xt===O.Closed}function Xt(){return xt===O.Disposed}function Mn(){(xt===O.New||xt===O.Listening)&&(xt=O.Closed,hn.fire(void 0))}function ai(C){Cn.fire([C,void 0,void 0])}function Zt(C){Cn.fire(C)}D.onClose(Mn),D.onError(ai),P.onClose(Mn),P.onError(Zt);function gn(){Ut||gt.size===0||(Ut=(0,e.default)().timer.setImmediate(()=>{Ut=void 0,en()}))}function On(C){i.Message.isRequest(C)?Sn(C):i.Message.isNotification(C)?ci(C):i.Message.isResponse(C)?Ln(C):Dn(C)}function en(){if(gt.size===0)return;const C=gt.shift();try{const M=$==null?void 0:$.messageStrategy;oe.is(M)?M.handleMessage(C,On):On(C)}finally{gn()}}const An=C=>{try{if(i.Message.isNotification(C)&&C.method===a.type.method){const M=C.params.id,U=Yt(M),Q=gt.get(U);if(i.Message.isRequest(Q)){const Me=$==null?void 0:$.connectionStrategy,je=Me&&Me.cancelUndispatched?Me.cancelUndispatched(Q,Gn):void 0;if(je&&(je.error!==void 0||je.result!==void 0)){gt.delete(U),Lt.delete(M),je.id=Q.id,cn(je,C.method,Date.now()),P.write(je).catch(()=>ee.error("Sending response for canceled message failed."));return}}const Ie=Lt.get(M);if(Ie!==void 0){Ie.cancel(),E(C);return}else Pt.add(M)}Fn(gt,C)}finally{gn()}};function Sn(C){if(Xt())return;function M(_,I,V){const Ce={jsonrpc:Ke,id:C.id};_ instanceof i.ResponseError?Ce.error=_.toJson():Ce.result=_===void 0?null:_,cn(Ce,I,V),P.write(Ce).catch(()=>ee.error("Sending response failed."))}function U(_,I,V){const Ce={jsonrpc:Ke,id:C.id,error:_.toJson()};cn(Ce,I,V),P.write(Ce).catch(()=>ee.error("Sending response failed."))}function Q(_,I,V){_===void 0&&(_=null);const Ce={jsonrpc:Ke,id:C.id,result:_};cn(Ce,I,V),P.write(Ce).catch(()=>ee.error("Sending response failed."))}m(C);const Ie=ft.get(C.method);let Me,je;Ie&&(Me=Ie.type,je=Ie.handler);const d=Date.now();if(je||Pe){const _=C.id??String(Date.now()),I=W.is(Xe.receiver)?Xe.receiver.createCancellationTokenSource(_):Xe.receiver.createCancellationTokenSource(C);C.id!==null&&Pt.has(C.id)&&I.cancel(),C.id!==null&&Lt.set(_,I);try{let V;if(je)if(C.params===void 0){if(Me!==void 0&&Me.numberOfParams!==0){U(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${C.method} defines ${Me.numberOfParams} params but received none.`),C.method,d);return}V=je(I.token)}else if(Array.isArray(C.params)){if(Me!==void 0&&Me.parameterStructures===i.ParameterStructures.byName){U(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${C.method} defines parameters by name but received parameters by position`),C.method,d);return}V=je(...C.params,I.token)}else{if(Me!==void 0&&Me.parameterStructures===i.ParameterStructures.byPosition){U(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${C.method} defines parameters by position but received parameters by name`),C.method,d);return}V=je(C.params,I.token)}else Pe&&(V=Pe(C.method,C.params,I.token));const Ce=V;V?Ce.then?Ce.then(Oe=>{Lt.delete(_),M(Oe,C.method,d)},Oe=>{Lt.delete(_),Oe instanceof i.ResponseError?U(Oe,C.method,d):Oe&&n.string(Oe.message)?U(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${C.method} failed with message: ${Oe.message}`),C.method,d):U(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${C.method} failed unexpectedly without providing any details.`),C.method,d)}):(Lt.delete(_),M(V,C.method,d)):(Lt.delete(_),Q(V,C.method,d))}catch(V){Lt.delete(_),V instanceof i.ResponseError?M(V,C.method,d):V&&n.string(V.message)?U(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${C.method} failed with message: ${V.message}`),C.method,d):U(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${C.method} failed unexpectedly without providing any details.`),C.method,d)}}else U(new i.ResponseError(i.ErrorCodes.MethodNotFound,`Unhandled method ${C.method}`),C.method,d)}function Ln(C){if(!Xt())if(C.id===null)C.error?ee.error(`Received response message without id: Error is:
78
- ${JSON.stringify(C.error,void 0,4)}`):ee.error("Received response message without id. No further error information provided.");else{const M=C.id,U=Dt.get(M);if(te(C,U),U!==void 0){Dt.delete(M);try{if(C.error){const Q=C.error;U.reject(new i.ResponseError(Q.code,Q.message,Q.data))}else if(C.result!==void 0)U.resolve(C.result);else throw new Error("Should never happen.")}catch(Q){Q.message?ee.error(`Response handler '${U.method}' failed with message: ${Q.message}`):ee.error(`Response handler '${U.method}' failed unexpectedly.`)}}}}function ci(C){if(Xt())return;let M,U;if(C.method===a.type.method){const Q=C.params.id;Pt.delete(Q),E(C);return}else{const Q=ht.get(C.method);Q&&(U=Q.handler,M=Q.type)}if(U||He)try{if(E(C),U)if(C.params===void 0)M!==void 0&&M.numberOfParams!==0&&M.parameterStructures!==i.ParameterStructures.byName&&ee.error(`Notification ${C.method} defines ${M.numberOfParams} params but received none.`),U();else if(Array.isArray(C.params)){const Q=C.params;C.method===l.type.method&&Q.length===2&&c.is(Q[0])?U({token:Q[0],value:Q[1]}):(M!==void 0&&(M.parameterStructures===i.ParameterStructures.byName&&ee.error(`Notification ${C.method} defines parameters by name but received parameters by position`),M.numberOfParams!==C.params.length&&ee.error(`Notification ${C.method} defines ${M.numberOfParams} params but received ${Q.length} arguments`)),U(...Q))}else M!==void 0&&M.parameterStructures===i.ParameterStructures.byPosition&&ee.error(`Notification ${C.method} defines parameters by position but received parameters by name`),U(C.params);else He&&He(C.method,C.params)}catch(Q){Q.message?ee.error(`Notification handler '${C.method}' failed with message: ${Q.message}`):ee.error(`Notification handler '${C.method}' failed unexpectedly.`)}else Jt.fire(C)}function Dn(C){if(!C){ee.error("Received empty message.");return}ee.error(`Received message which is neither a response nor a notification message:
79
- ${JSON.stringify(C,null,4)}`);const M=C;if(n.string(M.id)||n.number(M.id)){const U=M.id,Q=Dt.get(U);Q&&Q.reject(new Error("The received response has neither a result nor an error property."))}}function zt(C){if(C!=null)switch(Se){case p.Verbose:return JSON.stringify(C,null,4);case p.Compact:return JSON.stringify(C);default:return}}function Nn(C){if(!(Se===p.Off||!Be))if(Nt===v.Text){let M;(Se===p.Verbose||Se===p.Compact)&&C.params&&(M=`Params: ${zt(C.params)}
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)}
80
130
 
81
- `),Be.log(`Sending request '${C.method} - (${C.id})'.`,M)}else we("send-request",C)}function Jn(C){if(!(Se===p.Off||!Be))if(Nt===v.Text){let M;(Se===p.Verbose||Se===p.Compact)&&(C.params?M=`Params: ${zt(C.params)}
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)}
82
132
 
83
- `:M=`No parameters provided.
133
+ `:D=`No parameters provided.
84
134
 
85
- `),Be.log(`Sending notification '${C.method}'.`,M)}else we("send-notification",C)}function cn(C,M,U){if(!(Se===p.Off||!Be))if(Nt===v.Text){let Q;(Se===p.Verbose||Se===p.Compact)&&(C.error&&C.error.data?Q=`Error data: ${zt(C.error.data)}
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)}
86
136
 
87
- `:C.result?Q=`Result: ${zt(C.result)}
137
+ `:h.result?N=`Result: ${mt(h.result)}
88
138
 
89
- `:C.error===void 0&&(Q=`No result returned.
139
+ `:h.error===void 0&&(N=`No result returned.
90
140
 
91
- `)),Be.log(`Sending response '${M} - (${C.id})'. Processing request took ${Date.now()-U}ms`,Q)}else we("send-response",C)}function m(C){if(!(Se===p.Off||!Be))if(Nt===v.Text){let M;(Se===p.Verbose||Se===p.Compact)&&C.params&&(M=`Params: ${zt(C.params)}
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)}
92
142
 
93
- `),Be.log(`Received request '${C.method} - (${C.id})'.`,M)}else we("receive-request",C)}function E(C){if(!(Se===p.Off||!Be||C.method===T.type.method))if(Nt===v.Text){let M;(Se===p.Verbose||Se===p.Compact)&&(C.params?M=`Params: ${zt(C.params)}
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)}
94
144
 
95
- `:M=`No parameters provided.
145
+ `:D=`No parameters provided.
96
146
 
97
- `),Be.log(`Received notification '${C.method}'.`,M)}else we("receive-notification",C)}function te(C,M){if(!(Se===p.Off||!Be))if(Nt===v.Text){let U;if((Se===p.Verbose||Se===p.Compact)&&(C.error&&C.error.data?U=`Error data: ${zt(C.error.data)}
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)}
98
148
 
99
- `:C.result?U=`Result: ${zt(C.result)}
149
+ `:h.result?x=`Result: ${mt(h.result)}
100
150
 
101
- `:C.error===void 0&&(U=`No result returned.
151
+ `:h.error===void 0&&(x=`No result returned.
102
152
 
103
- `)),M){const Q=C.error?` Request failed: ${C.error.message} (${C.error.code}).`:"";Be.log(`Received response '${M.method} - (${C.id})' in ${Date.now()-M.timerStart}ms.${Q}`,U)}else Be.log(`Received response ${C.id} without active response promise.`,U)}else we("receive-response",C)}function we(C,M){if(!Be||Se===p.Off)return;const U={isLSPMessage:!0,type:C,message:M,timestamp:Date.now()};Be.log(U)}function Te(){if(_n())throw new z(q.Closed,"Connection is closed.");if(Xt())throw new z(q.Disposed,"Connection is disposed.")}function at(){if(Qn())throw new z(q.AlreadyListening,"Connection is already listening")}function S(){if(!Qn())throw new Error("Call listen() first.")}function H(C){return C===void 0?null:C}function Y(C){if(C!==null)return C}function b(C){return C!=null&&!Array.isArray(C)&&typeof C=="object"}function le(C,M){switch(C){case i.ParameterStructures.auto:return b(M)?Y(M):[H(M)];case i.ParameterStructures.byName:if(!b(M))throw new Error("Received parameters by name but param is not an object literal.");return Y(M);case i.ParameterStructures.byPosition:return[H(M)];default:throw new Error(`Unknown parameter structure ${C.toString()}`)}}function fe(C,M){let U;const Q=C.numberOfParams;switch(Q){case 0:U=void 0;break;case 1:U=le(C.parameterStructures,M[0]);break;default:U=[];for(let Ie=0;Ie<M.length&&Ie<Q;Ie++)U.push(H(M[Ie]));if(M.length<Q)for(let Ie=M.length;Ie<Q;Ie++)U.push(null);break}return U}const G={sendNotification:(C,...M)=>{Te();let U,Q;if(n.string(C)){U=C;const Me=M[0];let je=0,d=i.ParameterStructures.auto;i.ParameterStructures.is(Me)&&(je=1,d=Me);let _=M.length;const I=_-je;switch(I){case 0:Q=void 0;break;case 1:Q=le(d,M[je]);break;default:if(d===i.ParameterStructures.byName)throw new Error(`Received ${I} parameters for 'by Name' notification parameter structure.`);Q=M.slice(je,_).map(V=>H(V));break}}else{const Me=M;U=C.method,Q=fe(C,Me)}const Ie={jsonrpc:Ke,method:U,params:Q};return Jn(Ie),P.write(Ie).catch(Me=>{throw ee.error("Sending notification failed."),Me})},onNotification:(C,M)=>{Te();let U;return n.func(C)?He=C:M&&(n.string(C)?(U=C,ht.set(C,{type:void 0,handler:M})):(U=C.method,ht.set(C.method,{type:C,handler:M}))),{dispose:()=>{U!==void 0?ht.delete(U):He=void 0}}},onProgress:(C,M,U)=>{if(rt.has(M))throw new Error(`Progress handler for token ${M} already registered`);return rt.set(M,U),{dispose:()=>{rt.delete(M)}}},sendProgress:(C,M,U)=>G.sendNotification(l.type,{token:M,value:U}),onUnhandledProgress:It.event,sendRequest:(C,...M)=>{Te(),S();let U,Q,Ie;if(n.string(C)){U=C;const _=M[0],I=M[M.length-1];let V=0,Ce=i.ParameterStructures.auto;i.ParameterStructures.is(_)&&(V=1,Ce=_);let Oe=M.length;o.CancellationToken.is(I)&&(Oe=Oe-1,Ie=I);const De=Oe-V;switch(De){case 0:Q=void 0;break;case 1:Q=le(Ce,M[V]);break;default:if(Ce===i.ParameterStructures.byName)throw new Error(`Received ${De} parameters for 'by Name' request parameter structure.`);Q=M.slice(V,Oe).map($n=>H($n));break}}else{const _=M;U=C.method,Q=fe(C,_);const I=C.numberOfParams;Ie=o.CancellationToken.is(_[I])?_[I]:void 0}const Me=ke++;let je;Ie&&(je=Ie.onCancellationRequested(()=>{const _=Xe.sender.sendCancellation(G,Me);return _===void 0?(ee.log(`Received no promise from cancellation strategy when cancelling id ${Me}`),Promise.resolve()):_.catch(()=>{ee.log(`Sending cancellation messages for id ${Me} failed`)})}));const d={jsonrpc:Ke,id:Me,method:U,params:Q};return Nn(d),typeof Xe.sender.enableCancellation=="function"&&Xe.sender.enableCancellation(d),new Promise(async(_,I)=>{const V=De=>{_(De),Xe.sender.cleanup(Me),je==null||je.dispose()},Ce=De=>{I(De),Xe.sender.cleanup(Me),je==null||je.dispose()},Oe={method:U,timerStart:Date.now(),resolve:V,reject:Ce};try{await P.write(d),Dt.set(Me,Oe)}catch(De){throw ee.error("Sending request failed."),Oe.reject(new i.ResponseError(i.ErrorCodes.MessageWriteError,De.message?De.message:"Unknown reason")),De}})},onRequest:(C,M)=>{Te();let U=null;return g.is(C)?(U=void 0,Pe=C):n.string(C)?(U=null,M!==void 0&&(U=C,ft.set(C,{handler:M,type:void 0}))):M!==void 0&&(U=C.method,ft.set(C.method,{type:C,handler:M})),{dispose:()=>{U!==null&&(U!==void 0?ft.delete(U):Pe=void 0)}}},hasPendingResponse:()=>Dt.size>0,trace:async(C,M,U)=>{let Q=!1,Ie=v.Text;U!==void 0&&(n.boolean(U)?Q=U:(Q=U.sendNotification||!1,Ie=U.traceFormat||v.Text)),Se=C,Nt=Ie,Se===p.Off?Be=void 0:Be=M,Q&&!_n()&&!Xt()&&await G.sendNotification(x.type,{value:p.toString(C)})},onError:Cn.event,onClose:hn.event,onUnhandledNotification:Jt.event,onDispose:Ft.event,end:()=>{P.end()},dispose:()=>{if(Xt())return;xt=O.Disposed,Ft.fire(void 0);const C=new i.ResponseError(i.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const M of Dt.values())M.reject(C);Dt=new Map,Lt=new Map,Pt=new Set,gt=new r.LinkedMap,n.func(P.dispose)&&P.dispose(),n.func(D.dispose)&&D.dispose()},listen:()=>{Te(),at(),xt=O.Listening,D.listen(An)},inspect:()=>{(0,e.default)().console.log("inspect")}};return G.onNotification(T.type,C=>{if(Se===p.Off||!Be)return;const M=Se===p.Verbose||Se===p.Compact;Be.log(C.message,M?C.verbose:void 0)}),G.onNotification(l.type,C=>{const M=rt.get(C.token);M?M(C.value):It.fire(C)}),G}t.createMessageConnection=L})(F2);(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=ce;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=Hi;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=cl;Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return i.Disposable}});const r=wi;Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return r.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return r.Emitter}});const s=dr;Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return s.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return s.CancellationToken}});const o=bs;Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return o.SharedArraySenderStrategy}}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return o.SharedArrayReceiverStrategy}});const a=ir;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=rr;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=ul;Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:function(){return l.AbstractMessageBuffer}});const h=F2;Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return h.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return h.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return h.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return h.createMessageConnection}}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:function(){return h.ProgressToken}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return h.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return h.Trace}}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:function(){return h.TraceValues}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return h.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return h.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return h.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return h.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return h.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return h.CancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return h.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return h.CancellationStrategy}}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:function(){return h.MessageStrategy}});const g=zi;t.RAL=g.default})(Ka);Object.defineProperty(U1,"__esModule",{value:!0});const mi=Ka;class dl extends mi.AbstractMessageBuffer{constructor(e="utf-8"){super(e),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return dl.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)}}dl.emptyBuffer=new Uint8Array(0);class iS{constructor(e){this.socket=e,this._onData=new mi.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(r=>{this._onData.fire(new Uint8Array(r))},()=>{(0,mi.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(e){return this.socket.addEventListener("close",e),mi.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),mi.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),mi.Disposable.create(()=>this.socket.removeEventListener("end",e))}onData(e){return this._onData.event(e)}}class rS{constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener("close",e),mi.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),mi.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),mi.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 sS=new TextEncoder,M2=Object.freeze({messageBuffer:Object.freeze({create:t=>new dl(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(sS.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 iS(t),asWritableStream:t=>new rS(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 wh(){return M2}(function(t){function e(){mi.RAL.install(M2)}t.install=e})(wh||(wh={}));U1.default=wh;(function(t){var e=Et&&Et.__createBinding||(Object.create?function(c,l,h,g){g===void 0&&(g=h);var p=Object.getOwnPropertyDescriptor(l,h);(!p||("get"in p?!l.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return l[h]}}),Object.defineProperty(c,g,p)}:function(c,l,h,g){g===void 0&&(g=h),c[g]=l[h]}),n=Et&&Et.__exportStar||function(c,l){for(var h in c)h!=="default"&&!Object.prototype.hasOwnProperty.call(l,h)&&e(l,c,h)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.BrowserMessageWriter=t.BrowserMessageReader=void 0,U1.default.install();const r=Ka;n(Ka,t);class s extends r.AbstractMessageReader{constructor(l){super(),this._onData=new r.Emitter,this._messageListener=h=>{this._onData.fire(h.data)},l.addEventListener("error",h=>this.fireError(h)),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",h=>this.fireError(h))}write(l){try{return this.port.postMessage(l),Promise.resolve()}catch(h){return this.handleError(h,l),Promise.reject(h)}}handleError(l,h){this.errorCount++,this.fireError(l,h,this.errorCount)}end(){}}t.BrowserMessageWriter=o;function a(c,l,h,g){return h===void 0&&(h=r.NullLogger),r.ConnectionStrategy.is(g)&&(g={connectionStrategy:g}),(0,r.createMessageConnection)(c,l,h,g)}t.createMessageConnection=a})(k2);var um=k2,O2={},Ch;(function(t){function e(n){return typeof n=="string"}t.is=e})(Ch||(Ch={}));var Qa;(function(t){function e(n){return typeof n=="string"}t.is=e})(Qa||(Qa={}));var _h;(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})(_h||(_h={}));var To;(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})(To||(To={}));var Wn;(function(t){function e(i,r){return i===Number.MAX_VALUE&&(i=To.MAX_VALUE),r===Number.MAX_VALUE&&(r=To.MAX_VALUE),{line:i,character:r}}t.create=e;function n(i){let r=i;return k.objectLiteral(r)&&k.uinteger(r.line)&&k.uinteger(r.character)}t.is=n})(Wn||(Wn={}));var St;(function(t){function e(i,r,s,o){if(k.uinteger(i)&&k.uinteger(r)&&k.uinteger(s)&&k.uinteger(o))return{start:Wn.create(i,r),end:Wn.create(s,o)};if(Wn.is(i)&&Wn.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 k.objectLiteral(r)&&Wn.is(r.start)&&Wn.is(r.end)}t.is=n})(St||(St={}));var Ro;(function(t){function e(i,r){return{uri:i,range:r}}t.create=e;function n(i){let r=i;return k.objectLiteral(r)&&St.is(r.range)&&(k.string(r.uri)||k.undefined(r.uri))}t.is=n})(Ro||(Ro={}));var Sh;(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 k.objectLiteral(r)&&St.is(r.targetRange)&&k.string(r.targetUri)&&St.is(r.targetSelectionRange)&&(St.is(r.originSelectionRange)||k.undefined(r.originSelectionRange))}t.is=n})(Sh||(Sh={}));var Ja;(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 k.objectLiteral(r)&&k.numberRange(r.red,0,1)&&k.numberRange(r.green,0,1)&&k.numberRange(r.blue,0,1)&&k.numberRange(r.alpha,0,1)}t.is=n})(Ja||(Ja={}));var Dh;(function(t){function e(i,r){return{range:i,color:r}}t.create=e;function n(i){const r=i;return k.objectLiteral(r)&&St.is(r.range)&&Ja.is(r.color)}t.is=n})(Dh||(Dh={}));var xh;(function(t){function e(i,r,s){return{label:i,textEdit:r,additionalTextEdits:s}}t.create=e;function n(i){const r=i;return k.objectLiteral(r)&&k.string(r.label)&&(k.undefined(r.textEdit)||yi.is(r))&&(k.undefined(r.additionalTextEdits)||k.typedArray(r.additionalTextEdits,yi.is))}t.is=n})(xh||(xh={}));var kh;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(kh||(kh={}));var Th;(function(t){function e(i,r,s,o,a,c){const l={startLine:i,endLine:r};return k.defined(s)&&(l.startCharacter=s),k.defined(o)&&(l.endCharacter=o),k.defined(a)&&(l.kind=a),k.defined(c)&&(l.collapsedText=c),l}t.create=e;function n(i){const r=i;return k.objectLiteral(r)&&k.uinteger(r.startLine)&&k.uinteger(r.startLine)&&(k.undefined(r.startCharacter)||k.uinteger(r.startCharacter))&&(k.undefined(r.endCharacter)||k.uinteger(r.endCharacter))&&(k.undefined(r.kind)||k.string(r.kind))}t.is=n})(Th||(Th={}));var Ya;(function(t){function e(i,r){return{location:i,message:r}}t.create=e;function n(i){let r=i;return k.defined(r)&&Ro.is(r.location)&&k.string(r.message)}t.is=n})(Ya||(Ya={}));var Rh;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Rh||(Rh={}));var Eh;(function(t){t.Unnecessary=1,t.Deprecated=2})(Eh||(Eh={}));var Ph;(function(t){function e(n){const i=n;return k.objectLiteral(i)&&k.string(i.href)}t.is=e})(Ph||(Ph={}));var Eo;(function(t){function e(i,r,s,o,a,c){let l={range:i,message:r};return k.defined(s)&&(l.severity=s),k.defined(o)&&(l.code=o),k.defined(a)&&(l.source=a),k.defined(c)&&(l.relatedInformation=c),l}t.create=e;function n(i){var r;let s=i;return k.defined(s)&&St.is(s.range)&&k.string(s.message)&&(k.number(s.severity)||k.undefined(s.severity))&&(k.integer(s.code)||k.string(s.code)||k.undefined(s.code))&&(k.undefined(s.codeDescription)||k.string((r=s.codeDescription)===null||r===void 0?void 0:r.href))&&(k.string(s.source)||k.undefined(s.source))&&(k.undefined(s.relatedInformation)||k.typedArray(s.relatedInformation,Ya.is))}t.is=n})(Eo||(Eo={}));var jr;(function(t){function e(i,r,...s){let o={title:i,command:r};return k.defined(s)&&s.length>0&&(o.arguments=s),o}t.create=e;function n(i){let r=i;return k.defined(r)&&k.string(r.title)&&k.string(r.command)}t.is=n})(jr||(jr={}));var yi;(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 k.objectLiteral(o)&&k.string(o.newText)&&St.is(o.range)}t.is=r})(yi||(yi={}));var $r;(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 k.objectLiteral(r)&&k.string(r.label)&&(k.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(k.string(r.description)||r.description===void 0)}t.is=n})($r||($r={}));var Gt;(function(t){function e(n){const i=n;return k.string(i)}t.is=e})(Gt||(Gt={}));var Ri;(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 yi.is(o)&&($r.is(o.annotationId)||Gt.is(o.annotationId))}t.is=r})(Ri||(Ri={}));var Po;(function(t){function e(i,r){return{textDocument:i,edits:r}}t.create=e;function n(i){let r=i;return k.defined(r)&&Io.is(r.textDocument)&&Array.isArray(r.edits)}t.is=n})(Po||(Po={}));var vs;(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"&&k.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||k.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||k.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||Gt.is(r.annotationId))}t.is=n})(vs||(vs={}));var ws;(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"&&k.string(r.oldUri)&&k.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||k.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||k.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||Gt.is(r.annotationId))}t.is=n})(ws||(ws={}));var Cs;(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"&&k.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||k.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||k.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||Gt.is(r.annotationId))}t.is=n})(Cs||(Cs={}));var Xa;(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=>k.string(r.kind)?vs.is(r)||ws.is(r)||Cs.is(r):Po.is(r)))}t.is=e})(Xa||(Xa={}));class ua{constructor(e,n){this.edits=e,this.changeAnnotations=n}insert(e,n,i){let r,s;if(i===void 0?r=yi.insert(e,n):Gt.is(i)?(s=i,r=Ri.insert(e,n,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),r=Ri.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=yi.replace(e,n):Gt.is(i)?(s=i,r=Ri.replace(e,n,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),r=Ri.replace(e,n,s)),this.edits.push(r),s!==void 0)return s}delete(e,n){let i,r;if(n===void 0?i=yi.del(e):Gt.is(n)?(r=n,i=Ri.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),i=Ri.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 dm{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(Gt.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 oS{constructor(e){this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new dm(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(n=>{if(Po.is(n)){const i=new ua(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(n=>{const i=new ua(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(Io.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 ua(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 ua(i),this._textEditChanges[e]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new dm,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;$r.is(n)||Gt.is(n)?r=n:i=n;let s,o;if(r===void 0?s=vs.create(e,i):(o=Gt.is(r)?r:this._changeAnnotations.manage(r),s=vs.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;$r.is(i)||Gt.is(i)?s=i:r=i;let o,a;if(s===void 0?o=ws.create(e,n,r):(a=Gt.is(s)?s:this._changeAnnotations.manage(s),o=ws.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;$r.is(n)||Gt.is(n)?r=n:i=n;let s,o;if(r===void 0?s=Cs.create(e,i):(o=Gt.is(r)?r:this._changeAnnotations.manage(r),s=Cs.create(e,i,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o}}var Ih;(function(t){function e(i){return{uri:i}}t.create=e;function n(i){let r=i;return k.defined(r)&&k.string(r.uri)}t.is=n})(Ih||(Ih={}));var Fh;(function(t){function e(i,r){return{uri:i,version:r}}t.create=e;function n(i){let r=i;return k.defined(r)&&k.string(r.uri)&&k.integer(r.version)}t.is=n})(Fh||(Fh={}));var Io;(function(t){function e(i,r){return{uri:i,version:r}}t.create=e;function n(i){let r=i;return k.defined(r)&&k.string(r.uri)&&(r.version===null||k.integer(r.version))}t.is=n})(Io||(Io={}));var Mh;(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 k.defined(r)&&k.string(r.uri)&&k.string(r.languageId)&&k.integer(r.version)&&k.string(r.text)}t.is=n})(Mh||(Mh={}));var Za;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){const i=n;return i===t.PlainText||i===t.Markdown}t.is=e})(Za||(Za={}));var _s;(function(t){function e(n){const i=n;return k.objectLiteral(n)&&Za.is(i.kind)&&k.string(i.value)}t.is=e})(_s||(_s={}));var Oh;(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})(Oh||(Oh={}));var Ah;(function(t){t.PlainText=1,t.Snippet=2})(Ah||(Ah={}));var Lh;(function(t){t.Deprecated=1})(Lh||(Lh={}));var Nh;(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&&k.string(r.newText)&&St.is(r.insert)&&St.is(r.replace)}t.is=n})(Nh||(Nh={}));var $h;(function(t){t.asIs=1,t.adjustIndentation=2})($h||($h={}));var qh;(function(t){function e(n){const i=n;return i&&(k.string(i.detail)||i.detail===void 0)&&(k.string(i.description)||i.description===void 0)}t.is=e})(qh||(qh={}));var Hh;(function(t){function e(n){return{label:n}}t.create=e})(Hh||(Hh={}));var jh;(function(t){function e(n,i){return{items:n||[],isIncomplete:!!i}}t.create=e})(jh||(jh={}));var Fo;(function(t){function e(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(i){const r=i;return k.string(r)||k.objectLiteral(r)&&k.string(r.language)&&k.string(r.value)}t.is=n})(Fo||(Fo={}));var Wh;(function(t){function e(n){let i=n;return!!i&&k.objectLiteral(i)&&(_s.is(i.contents)||Fo.is(i.contents)||k.typedArray(i.contents,Fo.is))&&(n.range===void 0||St.is(n.range))}t.is=e})(Wh||(Wh={}));var Uh;(function(t){function e(n,i){return i?{label:n,documentation:i}:{label:n}}t.create=e})(Uh||(Uh={}));var zh;(function(t){function e(n,i,...r){let s={label:n};return k.defined(i)&&(s.documentation=i),k.defined(r)?s.parameters=r:s.parameters=[],s}t.create=e})(zh||(zh={}));var Bh;(function(t){t.Text=1,t.Read=2,t.Write=3})(Bh||(Bh={}));var Vh;(function(t){function e(n,i){let r={range:n};return k.number(i)&&(r.kind=i),r}t.create=e})(Vh||(Vh={}));var Kh;(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})(Kh||(Kh={}));var Gh;(function(t){t.Deprecated=1})(Gh||(Gh={}));var Qh;(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})(Qh||(Qh={}));var Jh;(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})(Jh||(Jh={}));var Yh;(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&&k.string(r.name)&&k.number(r.kind)&&St.is(r.range)&&St.is(r.selectionRange)&&(r.detail===void 0||k.string(r.detail))&&(r.deprecated===void 0||k.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}t.is=n})(Yh||(Yh={}));var Xh;(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"})(Xh||(Xh={}));var Mo;(function(t){t.Invoked=1,t.Automatic=2})(Mo||(Mo={}));var Zh;(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 k.defined(r)&&k.typedArray(r.diagnostics,Eo.is)&&(r.only===void 0||k.typedArray(r.only,k.string))&&(r.triggerKind===void 0||r.triggerKind===Mo.Invoked||r.triggerKind===Mo.Automatic)}t.is=n})(Zh||(Zh={}));var e1;(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&&k.string(r.title)&&(r.diagnostics===void 0||k.typedArray(r.diagnostics,Eo.is))&&(r.kind===void 0||k.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||jr.is(r.command))&&(r.isPreferred===void 0||k.boolean(r.isPreferred))&&(r.edit===void 0||Xa.is(r.edit))}t.is=n})(e1||(e1={}));var t1;(function(t){function e(i,r){let s={range:i};return k.defined(r)&&(s.data=r),s}t.create=e;function n(i){let r=i;return k.defined(r)&&St.is(r.range)&&(k.undefined(r.command)||jr.is(r.command))}t.is=n})(t1||(t1={}));var n1;(function(t){function e(i,r){return{tabSize:i,insertSpaces:r}}t.create=e;function n(i){let r=i;return k.defined(r)&&k.uinteger(r.tabSize)&&k.boolean(r.insertSpaces)}t.is=n})(n1||(n1={}));var i1;(function(t){function e(i,r,s){return{range:i,target:r,data:s}}t.create=e;function n(i){let r=i;return k.defined(r)&&St.is(r.range)&&(k.undefined(r.target)||k.string(r.target))}t.is=n})(i1||(i1={}));var r1;(function(t){function e(i,r){return{range:i,parent:r}}t.create=e;function n(i){let r=i;return k.objectLiteral(r)&&St.is(r.range)&&(r.parent===void 0||t.is(r.parent))}t.is=n})(r1||(r1={}));var s1;(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"})(s1||(s1={}));var o1;(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"})(o1||(o1={}));var a1;(function(t){function e(n){const i=n;return k.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})(a1||(a1={}));var c1;(function(t){function e(i,r){return{range:i,text:r}}t.create=e;function n(i){const r=i;return r!=null&&St.is(r.range)&&k.string(r.text)}t.is=n})(c1||(c1={}));var l1;(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&&St.is(r.range)&&k.boolean(r.caseSensitiveLookup)&&(k.string(r.variableName)||r.variableName===void 0)}t.is=n})(l1||(l1={}));var u1;(function(t){function e(i,r){return{range:i,expression:r}}t.create=e;function n(i){const r=i;return r!=null&&St.is(r.range)&&(k.string(r.expression)||r.expression===void 0)}t.is=n})(u1||(u1={}));var d1;(function(t){function e(i,r){return{frameId:i,stoppedLocation:r}}t.create=e;function n(i){const r=i;return k.defined(r)&&St.is(i.stoppedLocation)}t.is=n})(d1||(d1={}));var ec;(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}t.is=e})(ec||(ec={}));var tc;(function(t){function e(i){return{value:i}}t.create=e;function n(i){const r=i;return k.objectLiteral(r)&&(r.tooltip===void 0||k.string(r.tooltip)||_s.is(r.tooltip))&&(r.location===void 0||Ro.is(r.location))&&(r.command===void 0||jr.is(r.command))}t.is=n})(tc||(tc={}));var f1;(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 k.objectLiteral(r)&&Wn.is(r.position)&&(k.string(r.label)||k.typedArray(r.label,tc.is))&&(r.kind===void 0||ec.is(r.kind))&&r.textEdits===void 0||k.typedArray(r.textEdits,yi.is)&&(r.tooltip===void 0||k.string(r.tooltip)||_s.is(r.tooltip))&&(r.paddingLeft===void 0||k.boolean(r.paddingLeft))&&(r.paddingRight===void 0||k.boolean(r.paddingRight))}t.is=n})(f1||(f1={}));var h1;(function(t){function e(n){return{kind:"snippet",value:n}}t.createSnippet=e})(h1||(h1={}));var g1;(function(t){function e(n,i,r,s){return{insertText:n,filterText:i,range:r,command:s}}t.create=e})(g1||(g1={}));var p1;(function(t){function e(n){return{items:n}}t.create=e})(p1||(p1={}));var m1;(function(t){t.Invoked=0,t.Automatic=1})(m1||(m1={}));var y1;(function(t){function e(n,i){return{range:n,text:i}}t.create=e})(y1||(y1={}));var b1;(function(t){function e(n,i){return{triggerKind:n,selectedCompletionInfo:i}}t.create=e})(b1||(b1={}));var v1;(function(t){function e(n){const i=n;return k.objectLiteral(i)&&Qa.is(i.uri)&&k.string(i.name)}t.is=e})(v1||(v1={}));const aS=[`
104
- `,`\r
105
- `,"\r"];var w1;(function(t){function e(s,o,a,c){return new cS(s,o,a,c)}t.create=e;function n(s){let o=s;return!!(k.defined(o)&&k.string(o.uri)&&(k.undefined(o.languageId)||k.string(o.languageId))&&k.uinteger(o.lineCount)&&k.func(o.getText)&&k.func(o.positionAt)&&k.func(o.offsetAt))}t.is=n;function i(s,o){let a=s.getText(),c=r(o,(h,g)=>{let p=h.range.start.line-g.range.start.line;return p===0?h.range.start.character-g.range.start.character:p}),l=a.length;for(let h=c.length-1;h>=0;h--){let g=c[h],p=s.offsetAt(g.range.start),w=s.offsetAt(g.range.end);if(w<=l)a=a.substring(0,p)+g.newText+a.substring(w,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 h=0,g=0,p=0;for(;h<c.length&&g<l.length;)o(c[h],l[g])<=0?s[p++]=c[h++]:s[p++]=l[g++];for(;h<c.length;)s[p++]=c[h++];for(;g<l.length;)s[p++]=l[g++];return s}})(w1||(w1={}));class cS{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===`
106
- `,s==="\r"&&r+1<n.length&&n.charAt(r+1)===`
107
- `&&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 Wn.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 Wn.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 k;(function(t){const e=Object.prototype.toString;function n(w){return typeof w<"u"}t.defined=n;function i(w){return typeof w>"u"}t.undefined=i;function r(w){return w===!0||w===!1}t.boolean=r;function s(w){return e.call(w)==="[object String]"}t.string=s;function o(w){return e.call(w)==="[object Number]"}t.number=o;function a(w,v,x){return e.call(w)==="[object Number]"&&v<=w&&w<=x}t.numberRange=a;function c(w){return e.call(w)==="[object Number]"&&-2147483648<=w&&w<=2147483647}t.integer=c;function l(w){return e.call(w)==="[object Number]"&&0<=w&&w<=2147483647}t.uinteger=l;function h(w){return e.call(w)==="[object Function]"}t.func=h;function g(w){return w!==null&&typeof w=="object"}t.objectLiteral=g;function p(w,v){return Array.isArray(w)&&w.every(v)}t.typedArray=p})(k||(k={}));const lS=Object.freeze(Object.defineProperty({__proto__:null,get AnnotatedTextEdit(){return Ri},get ChangeAnnotation(){return $r},get ChangeAnnotationIdentifier(){return Gt},get CodeAction(){return e1},get CodeActionContext(){return Zh},get CodeActionKind(){return Xh},get CodeActionTriggerKind(){return Mo},get CodeDescription(){return Ph},get CodeLens(){return t1},get Color(){return Ja},get ColorInformation(){return Dh},get ColorPresentation(){return xh},get Command(){return jr},get CompletionItem(){return Hh},get CompletionItemKind(){return Oh},get CompletionItemLabelDetails(){return qh},get CompletionItemTag(){return Lh},get CompletionList(){return jh},get CreateFile(){return vs},get DeleteFile(){return Cs},get Diagnostic(){return Eo},get DiagnosticRelatedInformation(){return Ya},get DiagnosticSeverity(){return Rh},get DiagnosticTag(){return Eh},get DocumentHighlight(){return Vh},get DocumentHighlightKind(){return Bh},get DocumentLink(){return i1},get DocumentSymbol(){return Yh},get DocumentUri(){return Ch},EOL:aS,get FoldingRange(){return Th},get FoldingRangeKind(){return kh},get FormattingOptions(){return n1},get Hover(){return Wh},get InlayHint(){return f1},get InlayHintKind(){return ec},get InlayHintLabelPart(){return tc},get InlineCompletionContext(){return b1},get InlineCompletionItem(){return g1},get InlineCompletionList(){return p1},get InlineCompletionTriggerKind(){return m1},get InlineValueContext(){return d1},get InlineValueEvaluatableExpression(){return u1},get InlineValueText(){return c1},get InlineValueVariableLookup(){return l1},get InsertReplaceEdit(){return Nh},get InsertTextFormat(){return Ah},get InsertTextMode(){return $h},get Location(){return Ro},get LocationLink(){return Sh},get MarkedString(){return Fo},get MarkupContent(){return _s},get MarkupKind(){return Za},get OptionalVersionedTextDocumentIdentifier(){return Io},get ParameterInformation(){return Uh},get Position(){return Wn},get Range(){return St},get RenameFile(){return ws},get SelectedCompletionInfo(){return y1},get SelectionRange(){return r1},get SemanticTokenModifiers(){return o1},get SemanticTokenTypes(){return s1},get SemanticTokens(){return a1},get SignatureInformation(){return zh},get StringValue(){return h1},get SymbolInformation(){return Qh},get SymbolKind(){return Kh},get SymbolTag(){return Gh},get TextDocument(){return w1},get TextDocumentEdit(){return Po},get TextDocumentIdentifier(){return Ih},get TextDocumentItem(){return Mh},get TextEdit(){return yi},get URI(){return Qa},get VersionedTextDocumentIdentifier(){return Fh},WorkspaceChange:oS,get WorkspaceEdit(){return Xa},get WorkspaceFolder(){return v1},get WorkspaceSymbol(){return Jh},get integer(){return _h},get uinteger(){return To}},Symbol.toStringTag,{value:"Module"})),B1=F0(lS);var Ne={};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.ProtocolNotificationType=Ne.ProtocolNotificationType0=Ne.ProtocolRequestType=Ne.ProtocolRequestType0=Ne.RegistrationType=Ne.MessageDirection=void 0;const Ss=$o;var fm;(function(t){t.clientToServer="clientToServer",t.serverToClient="serverToClient",t.both="both"})(fm||(Ne.MessageDirection=fm={}));class uS{constructor(e){this.method=e}}Ne.RegistrationType=uS;class dS extends Ss.RequestType0{constructor(e){super(e)}}Ne.ProtocolRequestType0=dS;class fS extends Ss.RequestType{constructor(e){super(e,Ss.ParameterStructures.byName)}}Ne.ProtocolRequestType=fS;class hS extends Ss.NotificationType0{constructor(e){super(e)}}Ne.ProtocolNotificationType0=hS;class gS extends Ss.NotificationType{constructor(e){super(e,Ss.ParameterStructures.byName)}}Ne.ProtocolNotificationType=gS;var A2={},Ct={};Object.defineProperty(Ct,"__esModule",{value:!0});Ct.objectLiteral=Ct.typedArray=Ct.stringArray=Ct.array=Ct.func=Ct.error=Ct.number=Ct.string=Ct.boolean=void 0;function pS(t){return t===!0||t===!1}Ct.boolean=pS;function L2(t){return typeof t=="string"||t instanceof String}Ct.string=L2;function mS(t){return typeof t=="number"||t instanceof Number}Ct.number=mS;function yS(t){return t instanceof Error}Ct.error=yS;function bS(t){return typeof t=="function"}Ct.func=bS;function N2(t){return Array.isArray(t)}Ct.array=N2;function vS(t){return N2(t)&&t.every(e=>L2(e))}Ct.stringArray=vS;function wS(t,e){return Array.isArray(t)&&t.every(e)}Ct.typedArray=wS;function CS(t){return t!==null&&typeof t=="object"}Ct.objectLiteral=CS;var fl={};Object.defineProperty(fl,"__esModule",{value:!0});fl.ImplementationRequest=void 0;const hm=Ne;var gm;(function(t){t.method="textDocument/implementation",t.messageDirection=hm.MessageDirection.clientToServer,t.type=new hm.ProtocolRequestType(t.method)})(gm||(fl.ImplementationRequest=gm={}));var hl={};Object.defineProperty(hl,"__esModule",{value:!0});hl.TypeDefinitionRequest=void 0;const pm=Ne;var mm;(function(t){t.method="textDocument/typeDefinition",t.messageDirection=pm.MessageDirection.clientToServer,t.type=new pm.ProtocolRequestType(t.method)})(mm||(hl.TypeDefinitionRequest=mm={}));var Ds={};Object.defineProperty(Ds,"__esModule",{value:!0});Ds.DidChangeWorkspaceFoldersNotification=Ds.WorkspaceFoldersRequest=void 0;const nc=Ne;var ym;(function(t){t.method="workspace/workspaceFolders",t.messageDirection=nc.MessageDirection.serverToClient,t.type=new nc.ProtocolRequestType0(t.method)})(ym||(Ds.WorkspaceFoldersRequest=ym={}));var bm;(function(t){t.method="workspace/didChangeWorkspaceFolders",t.messageDirection=nc.MessageDirection.clientToServer,t.type=new nc.ProtocolNotificationType(t.method)})(bm||(Ds.DidChangeWorkspaceFoldersNotification=bm={}));var gl={};Object.defineProperty(gl,"__esModule",{value:!0});gl.ConfigurationRequest=void 0;const vm=Ne;var wm;(function(t){t.method="workspace/configuration",t.messageDirection=vm.MessageDirection.serverToClient,t.type=new vm.ProtocolRequestType(t.method)})(wm||(gl.ConfigurationRequest=wm={}));var xs={};Object.defineProperty(xs,"__esModule",{value:!0});xs.ColorPresentationRequest=xs.DocumentColorRequest=void 0;const ic=Ne;var Cm;(function(t){t.method="textDocument/documentColor",t.messageDirection=ic.MessageDirection.clientToServer,t.type=new ic.ProtocolRequestType(t.method)})(Cm||(xs.DocumentColorRequest=Cm={}));var _m;(function(t){t.method="textDocument/colorPresentation",t.messageDirection=ic.MessageDirection.clientToServer,t.type=new ic.ProtocolRequestType(t.method)})(_m||(xs.ColorPresentationRequest=_m={}));var ks={};Object.defineProperty(ks,"__esModule",{value:!0});ks.FoldingRangeRefreshRequest=ks.FoldingRangeRequest=void 0;const rc=Ne;var Sm;(function(t){t.method="textDocument/foldingRange",t.messageDirection=rc.MessageDirection.clientToServer,t.type=new rc.ProtocolRequestType(t.method)})(Sm||(ks.FoldingRangeRequest=Sm={}));var Dm;(function(t){t.method="workspace/foldingRange/refresh",t.messageDirection=rc.MessageDirection.serverToClient,t.type=new rc.ProtocolRequestType0(t.method)})(Dm||(ks.FoldingRangeRefreshRequest=Dm={}));var pl={};Object.defineProperty(pl,"__esModule",{value:!0});pl.DeclarationRequest=void 0;const xm=Ne;var km;(function(t){t.method="textDocument/declaration",t.messageDirection=xm.MessageDirection.clientToServer,t.type=new xm.ProtocolRequestType(t.method)})(km||(pl.DeclarationRequest=km={}));var ml={};Object.defineProperty(ml,"__esModule",{value:!0});ml.SelectionRangeRequest=void 0;const Tm=Ne;var Rm;(function(t){t.method="textDocument/selectionRange",t.messageDirection=Tm.MessageDirection.clientToServer,t.type=new Tm.ProtocolRequestType(t.method)})(Rm||(ml.SelectionRangeRequest=Rm={}));var sr={};Object.defineProperty(sr,"__esModule",{value:!0});sr.WorkDoneProgressCancelNotification=sr.WorkDoneProgressCreateRequest=sr.WorkDoneProgress=void 0;const _S=$o,sc=Ne;var Em;(function(t){t.type=new _S.ProgressType;function e(n){return n===t.type}t.is=e})(Em||(sr.WorkDoneProgress=Em={}));var Pm;(function(t){t.method="window/workDoneProgress/create",t.messageDirection=sc.MessageDirection.serverToClient,t.type=new sc.ProtocolRequestType(t.method)})(Pm||(sr.WorkDoneProgressCreateRequest=Pm={}));var Im;(function(t){t.method="window/workDoneProgress/cancel",t.messageDirection=sc.MessageDirection.clientToServer,t.type=new sc.ProtocolNotificationType(t.method)})(Im||(sr.WorkDoneProgressCancelNotification=Im={}));var or={};Object.defineProperty(or,"__esModule",{value:!0});or.CallHierarchyOutgoingCallsRequest=or.CallHierarchyIncomingCallsRequest=or.CallHierarchyPrepareRequest=void 0;const Ts=Ne;var Fm;(function(t){t.method="textDocument/prepareCallHierarchy",t.messageDirection=Ts.MessageDirection.clientToServer,t.type=new Ts.ProtocolRequestType(t.method)})(Fm||(or.CallHierarchyPrepareRequest=Fm={}));var Mm;(function(t){t.method="callHierarchy/incomingCalls",t.messageDirection=Ts.MessageDirection.clientToServer,t.type=new Ts.ProtocolRequestType(t.method)})(Mm||(or.CallHierarchyIncomingCallsRequest=Mm={}));var Om;(function(t){t.method="callHierarchy/outgoingCalls",t.messageDirection=Ts.MessageDirection.clientToServer,t.type=new Ts.ProtocolRequestType(t.method)})(Om||(or.CallHierarchyOutgoingCallsRequest=Om={}));var wn={};Object.defineProperty(wn,"__esModule",{value:!0});wn.SemanticTokensRefreshRequest=wn.SemanticTokensRangeRequest=wn.SemanticTokensDeltaRequest=wn.SemanticTokensRequest=wn.SemanticTokensRegistrationType=wn.TokenFormat=void 0;const Wi=Ne;var Am;(function(t){t.Relative="relative"})(Am||(wn.TokenFormat=Am={}));var Oo;(function(t){t.method="textDocument/semanticTokens",t.type=new Wi.RegistrationType(t.method)})(Oo||(wn.SemanticTokensRegistrationType=Oo={}));var Lm;(function(t){t.method="textDocument/semanticTokens/full",t.messageDirection=Wi.MessageDirection.clientToServer,t.type=new Wi.ProtocolRequestType(t.method),t.registrationMethod=Oo.method})(Lm||(wn.SemanticTokensRequest=Lm={}));var Nm;(function(t){t.method="textDocument/semanticTokens/full/delta",t.messageDirection=Wi.MessageDirection.clientToServer,t.type=new Wi.ProtocolRequestType(t.method),t.registrationMethod=Oo.method})(Nm||(wn.SemanticTokensDeltaRequest=Nm={}));var $m;(function(t){t.method="textDocument/semanticTokens/range",t.messageDirection=Wi.MessageDirection.clientToServer,t.type=new Wi.ProtocolRequestType(t.method),t.registrationMethod=Oo.method})($m||(wn.SemanticTokensRangeRequest=$m={}));var qm;(function(t){t.method="workspace/semanticTokens/refresh",t.messageDirection=Wi.MessageDirection.serverToClient,t.type=new Wi.ProtocolRequestType0(t.method)})(qm||(wn.SemanticTokensRefreshRequest=qm={}));var yl={};Object.defineProperty(yl,"__esModule",{value:!0});yl.ShowDocumentRequest=void 0;const Hm=Ne;var jm;(function(t){t.method="window/showDocument",t.messageDirection=Hm.MessageDirection.serverToClient,t.type=new Hm.ProtocolRequestType(t.method)})(jm||(yl.ShowDocumentRequest=jm={}));var bl={};Object.defineProperty(bl,"__esModule",{value:!0});bl.LinkedEditingRangeRequest=void 0;const Wm=Ne;var Um;(function(t){t.method="textDocument/linkedEditingRange",t.messageDirection=Wm.MessageDirection.clientToServer,t.type=new Wm.ProtocolRequestType(t.method)})(Um||(bl.LinkedEditingRangeRequest=Um={}));var sn={};Object.defineProperty(sn,"__esModule",{value:!0});sn.WillDeleteFilesRequest=sn.DidDeleteFilesNotification=sn.DidRenameFilesNotification=sn.WillRenameFilesRequest=sn.DidCreateFilesNotification=sn.WillCreateFilesRequest=sn.FileOperationPatternKind=void 0;const Bn=Ne;var zm;(function(t){t.file="file",t.folder="folder"})(zm||(sn.FileOperationPatternKind=zm={}));var Bm;(function(t){t.method="workspace/willCreateFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolRequestType(t.method)})(Bm||(sn.WillCreateFilesRequest=Bm={}));var Vm;(function(t){t.method="workspace/didCreateFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolNotificationType(t.method)})(Vm||(sn.DidCreateFilesNotification=Vm={}));var Km;(function(t){t.method="workspace/willRenameFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolRequestType(t.method)})(Km||(sn.WillRenameFilesRequest=Km={}));var Gm;(function(t){t.method="workspace/didRenameFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolNotificationType(t.method)})(Gm||(sn.DidRenameFilesNotification=Gm={}));var Qm;(function(t){t.method="workspace/didDeleteFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolNotificationType(t.method)})(Qm||(sn.DidDeleteFilesNotification=Qm={}));var Jm;(function(t){t.method="workspace/willDeleteFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolRequestType(t.method)})(Jm||(sn.WillDeleteFilesRequest=Jm={}));var ar={};Object.defineProperty(ar,"__esModule",{value:!0});ar.MonikerRequest=ar.MonikerKind=ar.UniquenessLevel=void 0;const Ym=Ne;var Xm;(function(t){t.document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global"})(Xm||(ar.UniquenessLevel=Xm={}));var Zm;(function(t){t.$import="import",t.$export="export",t.local="local"})(Zm||(ar.MonikerKind=Zm={}));var e0;(function(t){t.method="textDocument/moniker",t.messageDirection=Ym.MessageDirection.clientToServer,t.type=new Ym.ProtocolRequestType(t.method)})(e0||(ar.MonikerRequest=e0={}));var cr={};Object.defineProperty(cr,"__esModule",{value:!0});cr.TypeHierarchySubtypesRequest=cr.TypeHierarchySupertypesRequest=cr.TypeHierarchyPrepareRequest=void 0;const Rs=Ne;var t0;(function(t){t.method="textDocument/prepareTypeHierarchy",t.messageDirection=Rs.MessageDirection.clientToServer,t.type=new Rs.ProtocolRequestType(t.method)})(t0||(cr.TypeHierarchyPrepareRequest=t0={}));var n0;(function(t){t.method="typeHierarchy/supertypes",t.messageDirection=Rs.MessageDirection.clientToServer,t.type=new Rs.ProtocolRequestType(t.method)})(n0||(cr.TypeHierarchySupertypesRequest=n0={}));var i0;(function(t){t.method="typeHierarchy/subtypes",t.messageDirection=Rs.MessageDirection.clientToServer,t.type=new Rs.ProtocolRequestType(t.method)})(i0||(cr.TypeHierarchySubtypesRequest=i0={}));var Es={};Object.defineProperty(Es,"__esModule",{value:!0});Es.InlineValueRefreshRequest=Es.InlineValueRequest=void 0;const oc=Ne;var r0;(function(t){t.method="textDocument/inlineValue",t.messageDirection=oc.MessageDirection.clientToServer,t.type=new oc.ProtocolRequestType(t.method)})(r0||(Es.InlineValueRequest=r0={}));var s0;(function(t){t.method="workspace/inlineValue/refresh",t.messageDirection=oc.MessageDirection.serverToClient,t.type=new oc.ProtocolRequestType0(t.method)})(s0||(Es.InlineValueRefreshRequest=s0={}));var lr={};Object.defineProperty(lr,"__esModule",{value:!0});lr.InlayHintRefreshRequest=lr.InlayHintResolveRequest=lr.InlayHintRequest=void 0;const Ps=Ne;var o0;(function(t){t.method="textDocument/inlayHint",t.messageDirection=Ps.MessageDirection.clientToServer,t.type=new Ps.ProtocolRequestType(t.method)})(o0||(lr.InlayHintRequest=o0={}));var a0;(function(t){t.method="inlayHint/resolve",t.messageDirection=Ps.MessageDirection.clientToServer,t.type=new Ps.ProtocolRequestType(t.method)})(a0||(lr.InlayHintResolveRequest=a0={}));var c0;(function(t){t.method="workspace/inlayHint/refresh",t.messageDirection=Ps.MessageDirection.serverToClient,t.type=new Ps.ProtocolRequestType0(t.method)})(c0||(lr.InlayHintRefreshRequest=c0={}));var Un={};Object.defineProperty(Un,"__esModule",{value:!0});Un.DiagnosticRefreshRequest=Un.WorkspaceDiagnosticRequest=Un.DocumentDiagnosticRequest=Un.DocumentDiagnosticReportKind=Un.DiagnosticServerCancellationData=void 0;const $2=$o,SS=Ct,Is=Ne;var l0;(function(t){function e(n){const i=n;return i&&SS.boolean(i.retriggerRequest)}t.is=e})(l0||(Un.DiagnosticServerCancellationData=l0={}));var u0;(function(t){t.Full="full",t.Unchanged="unchanged"})(u0||(Un.DocumentDiagnosticReportKind=u0={}));var d0;(function(t){t.method="textDocument/diagnostic",t.messageDirection=Is.MessageDirection.clientToServer,t.type=new Is.ProtocolRequestType(t.method),t.partialResult=new $2.ProgressType})(d0||(Un.DocumentDiagnosticRequest=d0={}));var f0;(function(t){t.method="workspace/diagnostic",t.messageDirection=Is.MessageDirection.clientToServer,t.type=new Is.ProtocolRequestType(t.method),t.partialResult=new $2.ProgressType})(f0||(Un.WorkspaceDiagnosticRequest=f0={}));var h0;(function(t){t.method="workspace/diagnostic/refresh",t.messageDirection=Is.MessageDirection.serverToClient,t.type=new Is.ProtocolRequestType0(t.method)})(h0||(Un.DiagnosticRefreshRequest=h0={}));var wt={};Object.defineProperty(wt,"__esModule",{value:!0});wt.DidCloseNotebookDocumentNotification=wt.DidSaveNotebookDocumentNotification=wt.DidChangeNotebookDocumentNotification=wt.NotebookCellArrayChange=wt.DidOpenNotebookDocumentNotification=wt.NotebookDocumentSyncRegistrationType=wt.NotebookDocument=wt.NotebookCell=wt.ExecutionSummary=wt.NotebookCellKind=void 0;const Ao=B1,oi=Ct,Ci=Ne;var C1;(function(t){t.Markup=1,t.Code=2;function e(n){return n===1||n===2}t.is=e})(C1||(wt.NotebookCellKind=C1={}));var _1;(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 oi.objectLiteral(s)&&Ao.uinteger.is(s.executionOrder)&&(s.success===void 0||oi.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})(_1||(wt.ExecutionSummary=_1={}));var ac;(function(t){function e(s,o){return{kind:s,document:o}}t.create=e;function n(s){const o=s;return oi.objectLiteral(o)&&C1.is(o.kind)&&Ao.DocumentUri.is(o.document)&&(o.metadata===void 0||oi.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)&&!_1.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(oi.objectLiteral(s)&&oi.objectLiteral(o)){const l=Object.keys(s),h=Object.keys(o);if(l.length!==h.length||(l.sort(),h.sort(),!r(l,h)))return!1;for(let g=0;g<l.length;g++){const p=l[g];if(!r(s[p],o[p]))return!1}}return!0}})(ac||(wt.NotebookCell=ac={}));var g0;(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 oi.objectLiteral(r)&&oi.string(r.uri)&&Ao.integer.is(r.version)&&oi.typedArray(r.cells,ac.is)}t.is=n})(g0||(wt.NotebookDocument=g0={}));var Fs;(function(t){t.method="notebookDocument/sync",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.RegistrationType(t.method)})(Fs||(wt.NotebookDocumentSyncRegistrationType=Fs={}));var p0;(function(t){t.method="notebookDocument/didOpen",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolNotificationType(t.method),t.registrationMethod=Fs.method})(p0||(wt.DidOpenNotebookDocumentNotification=p0={}));var m0;(function(t){function e(i){const r=i;return oi.objectLiteral(r)&&Ao.uinteger.is(r.start)&&Ao.uinteger.is(r.deleteCount)&&(r.cells===void 0||oi.typedArray(r.cells,ac.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})(m0||(wt.NotebookCellArrayChange=m0={}));var y0;(function(t){t.method="notebookDocument/didChange",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolNotificationType(t.method),t.registrationMethod=Fs.method})(y0||(wt.DidChangeNotebookDocumentNotification=y0={}));var b0;(function(t){t.method="notebookDocument/didSave",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolNotificationType(t.method),t.registrationMethod=Fs.method})(b0||(wt.DidSaveNotebookDocumentNotification=b0={}));var v0;(function(t){t.method="notebookDocument/didClose",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolNotificationType(t.method),t.registrationMethod=Fs.method})(v0||(wt.DidCloseNotebookDocumentNotification=v0={}));var vl={};Object.defineProperty(vl,"__esModule",{value:!0});vl.InlineCompletionRequest=void 0;const w0=Ne;var C0;(function(t){t.method="textDocument/inlineCompletion",t.messageDirection=w0.MessageDirection.clientToServer,t.type=new w0.ProtocolRequestType(t.method)})(C0||(vl.InlineCompletionRequest=C0={}));(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=Ne,n=B1,i=Ct,r=fl;Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return r.ImplementationRequest}});const s=hl;Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return s.TypeDefinitionRequest}});const o=Ds;Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return o.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return o.DidChangeWorkspaceFoldersNotification}});const a=gl;Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return a.ConfigurationRequest}});const c=xs;Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return c.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return c.ColorPresentationRequest}});const l=ks;Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return l.FoldingRangeRequest}}),Object.defineProperty(t,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return l.FoldingRangeRefreshRequest}});const h=pl;Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return h.DeclarationRequest}});const g=ml;Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return g.SelectionRangeRequest}});const p=sr;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 w=or;Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return w.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return w.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return w.CallHierarchyPrepareRequest}});const v=wn;Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return v.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return v.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return v.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return v.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return v.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return v.SemanticTokensRegistrationType}});const x=yl;Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return x.ShowDocumentRequest}});const T=bl;Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return T.LinkedEditingRangeRequest}});const q=sn;Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return q.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return q.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return q.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return q.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return q.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return q.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return q.WillDeleteFilesRequest}});const z=ar;Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return z.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return z.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return z.MonikerRequest}});const A=cr;Object.defineProperty(t,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return A.TypeHierarchyPrepareRequest}}),Object.defineProperty(t,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return A.TypeHierarchySubtypesRequest}}),Object.defineProperty(t,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return A.TypeHierarchySupertypesRequest}});const W=Es;Object.defineProperty(t,"InlineValueRequest",{enumerable:!0,get:function(){return W.InlineValueRequest}}),Object.defineProperty(t,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return W.InlineValueRefreshRequest}});const j=lr;Object.defineProperty(t,"InlayHintRequest",{enumerable:!0,get:function(){return j.InlayHintRequest}}),Object.defineProperty(t,"InlayHintResolveRequest",{enumerable:!0,get:function(){return j.InlayHintResolveRequest}}),Object.defineProperty(t,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return j.InlayHintRefreshRequest}});const se=Un;Object.defineProperty(t,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return se.DiagnosticServerCancellationData}}),Object.defineProperty(t,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return se.DocumentDiagnosticReportKind}}),Object.defineProperty(t,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return se.DocumentDiagnosticRequest}}),Object.defineProperty(t,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return se.WorkspaceDiagnosticRequest}}),Object.defineProperty(t,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return se.DiagnosticRefreshRequest}});const B=wt;Object.defineProperty(t,"NotebookCellKind",{enumerable:!0,get:function(){return B.NotebookCellKind}}),Object.defineProperty(t,"ExecutionSummary",{enumerable:!0,get:function(){return B.ExecutionSummary}}),Object.defineProperty(t,"NotebookCell",{enumerable:!0,get:function(){return B.NotebookCell}}),Object.defineProperty(t,"NotebookDocument",{enumerable:!0,get:function(){return B.NotebookDocument}}),Object.defineProperty(t,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return B.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(t,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return B.DidOpenNotebookDocumentNotification}}),Object.defineProperty(t,"NotebookCellArrayChange",{enumerable:!0,get:function(){return B.NotebookCellArrayChange}}),Object.defineProperty(t,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return B.DidChangeNotebookDocumentNotification}}),Object.defineProperty(t,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return B.DidSaveNotebookDocumentNotification}}),Object.defineProperty(t,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return B.DidCloseNotebookDocumentNotification}});const Z=vl;Object.defineProperty(t,"InlineCompletionRequest",{enumerable:!0,get:function(){return Z.InlineCompletionRequest}});var oe;(function(b){function le(fe){const G=fe;return i.string(G)||i.string(G.language)||i.string(G.scheme)||i.string(G.pattern)}b.is=le})(oe||(t.TextDocumentFilter=oe={}));var qe;(function(b){function le(fe){const G=fe;return i.objectLiteral(G)&&(i.string(G.notebookType)||i.string(G.scheme)||i.string(G.pattern))}b.is=le})(qe||(t.NotebookDocumentFilter=qe={}));var O;(function(b){function le(fe){const G=fe;return i.objectLiteral(G)&&(i.string(G.notebook)||qe.is(G.notebook))&&(G.language===void 0||i.string(G.language))}b.is=le})(O||(t.NotebookCellTextDocumentFilter=O={}));var L;(function(b){function le(fe){if(!Array.isArray(fe))return!1;for(let G of fe)if(!i.string(G)&&!oe.is(G)&&!O.is(G))return!1;return!0}b.is=le})(L||(t.DocumentSelector=L={}));var D;(function(b){b.method="client/registerCapability",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolRequestType(b.method)})(D||(t.RegistrationRequest=D={}));var P;(function(b){b.method="client/unregisterCapability",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolRequestType(b.method)})(P||(t.UnregistrationRequest=P={}));var N;(function(b){b.Create="create",b.Rename="rename",b.Delete="delete"})(N||(t.ResourceOperationKind=N={}));var $;(function(b){b.Abort="abort",b.Transactional="transactional",b.TextOnlyTransactional="textOnlyTransactional",b.Undo="undo"})($||(t.FailureHandlingKind=$={}));var ee;(function(b){b.UTF8="utf-8",b.UTF16="utf-16",b.UTF32="utf-32"})(ee||(t.PositionEncodingKind=ee={}));var ke;(function(b){function le(fe){const G=fe;return G&&i.string(G.id)&&G.id.length>0}b.hasId=le})(ke||(t.StaticRegistrationOptions=ke={}));var pe;(function(b){function le(fe){const G=fe;return G&&(G.documentSelector===null||L.is(G.documentSelector))}b.is=le})(pe||(t.TextDocumentRegistrationOptions=pe={}));var ot;(function(b){function le(G){const C=G;return i.objectLiteral(C)&&(C.workDoneProgress===void 0||i.boolean(C.workDoneProgress))}b.is=le;function fe(G){const C=G;return C&&i.boolean(C.workDoneProgress)}b.hasWorkDoneProgress=fe})(ot||(t.WorkDoneProgressOptions=ot={}));var Ke;(function(b){b.method="initialize",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Ke||(t.InitializeRequest=Ke={}));var Pe;(function(b){b.unknownProtocolVersion=1})(Pe||(t.InitializeErrorCodes=Pe={}));var ft;(function(b){b.method="initialized",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(ft||(t.InitializedNotification=ft={}));var He;(function(b){b.method="shutdown",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType0(b.method)})(He||(t.ShutdownRequest=He={}));var ht;(function(b){b.method="exit",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType0(b.method)})(ht||(t.ExitNotification=ht={}));var rt;(function(b){b.method="workspace/didChangeConfiguration",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(rt||(t.DidChangeConfigurationNotification=rt={}));var Ut;(function(b){b.Error=1,b.Warning=2,b.Info=3,b.Log=4,b.Debug=5})(Ut||(t.MessageType=Ut={}));var gt;(function(b){b.method="window/showMessage",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolNotificationType(b.method)})(gt||(t.ShowMessageNotification=gt={}));var Dt;(function(b){b.method="window/showMessageRequest",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolRequestType(b.method)})(Dt||(t.ShowMessageRequest=Dt={}));var Pt;(function(b){b.method="window/logMessage",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolNotificationType(b.method)})(Pt||(t.LogMessageNotification=Pt={}));var Lt;(function(b){b.method="telemetry/event",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolNotificationType(b.method)})(Lt||(t.TelemetryEventNotification=Lt={}));var Se;(function(b){b.None=0,b.Full=1,b.Incremental=2})(Se||(t.TextDocumentSyncKind=Se={}));var Nt;(function(b){b.method="textDocument/didOpen",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(Nt||(t.DidOpenTextDocumentNotification=Nt={}));var Be;(function(b){function le(G){let C=G;return C!=null&&typeof C.text=="string"&&C.range!==void 0&&(C.rangeLength===void 0||typeof C.rangeLength=="number")}b.isIncremental=le;function fe(G){let C=G;return C!=null&&typeof C.text=="string"&&C.range===void 0&&C.rangeLength===void 0}b.isFull=fe})(Be||(t.TextDocumentContentChangeEvent=Be={}));var xt;(function(b){b.method="textDocument/didChange",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(xt||(t.DidChangeTextDocumentNotification=xt={}));var Cn;(function(b){b.method="textDocument/didClose",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(Cn||(t.DidCloseTextDocumentNotification=Cn={}));var hn;(function(b){b.method="textDocument/didSave",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(hn||(t.DidSaveTextDocumentNotification=hn={}));var Jt;(function(b){b.Manual=1,b.AfterDelay=2,b.FocusOut=3})(Jt||(t.TextDocumentSaveReason=Jt={}));var It;(function(b){b.method="textDocument/willSave",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(It||(t.WillSaveTextDocumentNotification=It={}));var Ft;(function(b){b.method="textDocument/willSaveWaitUntil",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Ft||(t.WillSaveTextDocumentWaitUntilRequest=Ft={}));var Xe;(function(b){b.method="workspace/didChangeWatchedFiles",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(Xe||(t.DidChangeWatchedFilesNotification=Xe={}));var Yt;(function(b){b.Created=1,b.Changed=2,b.Deleted=3})(Yt||(t.FileChangeType=Yt={}));var Kn;(function(b){function le(fe){const G=fe;return i.objectLiteral(G)&&(n.URI.is(G.baseUri)||n.WorkspaceFolder.is(G.baseUri))&&i.string(G.pattern)}b.is=le})(Kn||(t.RelativePattern=Kn={}));var In;(function(b){b.Create=1,b.Change=2,b.Delete=4})(In||(t.WatchKind=In={}));var Fn;(function(b){b.method="textDocument/publishDiagnostics",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolNotificationType(b.method)})(Fn||(t.PublishDiagnosticsNotification=Fn={}));var Gn;(function(b){b.Invoked=1,b.TriggerCharacter=2,b.TriggerForIncompleteCompletions=3})(Gn||(t.CompletionTriggerKind=Gn={}));var Qn;(function(b){b.method="textDocument/completion",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Qn||(t.CompletionRequest=Qn={}));var _n;(function(b){b.method="completionItem/resolve",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(_n||(t.CompletionResolveRequest=_n={}));var Xt;(function(b){b.method="textDocument/hover",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Xt||(t.HoverRequest=Xt={}));var Mn;(function(b){b.Invoked=1,b.TriggerCharacter=2,b.ContentChange=3})(Mn||(t.SignatureHelpTriggerKind=Mn={}));var ai;(function(b){b.method="textDocument/signatureHelp",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(ai||(t.SignatureHelpRequest=ai={}));var Zt;(function(b){b.method="textDocument/definition",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Zt||(t.DefinitionRequest=Zt={}));var gn;(function(b){b.method="textDocument/references",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(gn||(t.ReferencesRequest=gn={}));var On;(function(b){b.method="textDocument/documentHighlight",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(On||(t.DocumentHighlightRequest=On={}));var en;(function(b){b.method="textDocument/documentSymbol",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(en||(t.DocumentSymbolRequest=en={}));var An;(function(b){b.method="textDocument/codeAction",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(An||(t.CodeActionRequest=An={}));var Sn;(function(b){b.method="codeAction/resolve",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Sn||(t.CodeActionResolveRequest=Sn={}));var Ln;(function(b){b.method="workspace/symbol",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Ln||(t.WorkspaceSymbolRequest=Ln={}));var ci;(function(b){b.method="workspaceSymbol/resolve",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(ci||(t.WorkspaceSymbolResolveRequest=ci={}));var Dn;(function(b){b.method="textDocument/codeLens",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Dn||(t.CodeLensRequest=Dn={}));var zt;(function(b){b.method="codeLens/resolve",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(zt||(t.CodeLensResolveRequest=zt={}));var Nn;(function(b){b.method="workspace/codeLens/refresh",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolRequestType0(b.method)})(Nn||(t.CodeLensRefreshRequest=Nn={}));var Jn;(function(b){b.method="textDocument/documentLink",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Jn||(t.DocumentLinkRequest=Jn={}));var cn;(function(b){b.method="documentLink/resolve",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(cn||(t.DocumentLinkResolveRequest=cn={}));var m;(function(b){b.method="textDocument/formatting",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(m||(t.DocumentFormattingRequest=m={}));var E;(function(b){b.method="textDocument/rangeFormatting",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(E||(t.DocumentRangeFormattingRequest=E={}));var te;(function(b){b.method="textDocument/rangesFormatting",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(te||(t.DocumentRangesFormattingRequest=te={}));var we;(function(b){b.method="textDocument/onTypeFormatting",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(we||(t.DocumentOnTypeFormattingRequest=we={}));var Te;(function(b){b.Identifier=1})(Te||(t.PrepareSupportDefaultBehavior=Te={}));var at;(function(b){b.method="textDocument/rename",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(at||(t.RenameRequest=at={}));var S;(function(b){b.method="textDocument/prepareRename",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(S||(t.PrepareRenameRequest=S={}));var H;(function(b){b.method="workspace/executeCommand",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(H||(t.ExecuteCommandRequest=H={}));var Y;(function(b){b.method="workspace/applyEdit",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolRequestType("workspace/applyEdit")})(Y||(t.ApplyWorkspaceEditRequest=Y={}))})(A2);var wl={};Object.defineProperty(wl,"__esModule",{value:!0});wl.createProtocolConnection=void 0;const _0=$o;function DS(t,e,n,i){return _0.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,_0.createMessageConnection)(t,e,n,i)}wl.createProtocolConnection=DS;(function(t){var e=Et&&Et.__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=Et&&Et.__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($o,t),n(B1,t),n(Ne,t),n(A2,t);var i=wl;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={}))})(O2);(function(t){var e=Et&&Et.__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=Et&&Et.__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=um;n(um,t),n(O2,t);function r(s,o,a,c){return(0,i.createMessageConnection)(s,o,a,c)}t.createProtocolConnection=r})(x2);var S0=x2;(function(t){var e=Et&&Et.__createBinding||(Object.create?function(o,a,c,l){l===void 0&&(l=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(o,l,h)}:function(o,a,c,l){l===void 0&&(l=c),o[l]=a[c]}),n=Et&&Et.__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=mu,r=S0;n(S0,t),n(mu,t);class s extends i.BaseLanguageClient{constructor(a,c,l,h){super(a,c,l),this.worker=h}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})(pu);class xS extends D1.WebSocketMessageReader{constructor(n,i){super(n);pn(this,"onMessage");this.onMessage=i}readMessage(n){this.onMessage&&this.onMessage();const[,i]=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
108
154
  \r
109
- `);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 kS extends D1.WebSocketMessageWriter{constructor(n,i){super(n);pn(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)}}}const TS={base:"vs-dark",inherit:!0,colors:{"editor.background":"#313131"},rules:[{token:"",background:"#313131"}]};function jn(t){return`file:///PACKAGE/Project/Sources/${t}`}function V1(t,e=0){setTimeout(t,e)}function q2(t,e){const n=new Vt.Selection(e.startLineNumber,e.startColumn,e.endLineNumber||e.startLineNumber,e.endColumn||e.startColumn);V1(()=>{t.setSelection(n),t.revealRangeInCenter(n),t.focus()})}function H2(t,e,n=0){n>0&&(e=n+e),V1(()=>{t.setPosition({lineNumber:e,column:1}),t.revealLineInCenter(e),t.focus()})}function RS(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 ES={comments:{lineComment:"//",blockComment:["/**","**/"]},brackets:[["{","}"],["(",")"],["[","]"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],autoClosingPairs:[{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" **/",notIn:["string"]}],autoCloseBefore:";:.,=}])>` \n ",wordPattern:new RegExp("(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\r\\n\\t\\f\\v ]+)|(?<=[a-zA-Z]) ?(?=[a-zA-Z])"),indentationRules:{increaseIndentPattern:new RegExp("(^(?![^\\s])*\\s*(class constructor))|(^(?![^\\s])*\\s*(exposed|local|\\s*){1}\\s*function{1}\\s*\\w)|(^(?![^\\s])*\\s*(If|Else|For|For each|While|Begin SQL|Case of|Use|Repeat|: *\\(.*)).*$","i"),decreaseIndentPattern:new RegExp("(^(?![^\\s])*\\s*(exposed|local|\\s*){1}\\s*function{1}\\s*\\w)|(End If|End For|Else|End for each|End While|End SQL|End case|End use|Until|: *\\(.*).*$","i")},onEnterRules:[{beforeText:new RegExp("^exposed","i"),action:{indentAction:1}}]},PS={provideCompletionItems:async(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"var",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["var ${1:var_name} : ${2:var_type}"].join(`
110
- `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"While",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["While(${1:expression})"," ${2:body}","End while"].join(`
111
- `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Case of",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["Case of"," :(${1:boolean_expression})"," ${2:body}","End case"].join(`
112
- `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Else",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["Else"," "].join(`
113
- `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"If",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["If (${1:expression})"," ${5:body}","End if"].join(`
114
- `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"For",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["For(${1:counter};${2:start};${3:end}${4:;increment})"," ${5:body}","End for"].join(`
115
- `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Function",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.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(`
116
- `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},IS={provideCompletionItems:async(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"var",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["var ${1:var_name} : ${2:var_type}"].join(`
117
- `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"while",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["while(${1:expression})"," ${2:body}","end"].join(`
118
- `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"switch",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["switch"," :(${1:boolean_expression})"," ${2:body}","end"].join(`
119
- `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"else",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["else"," "].join(`
120
- `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"if",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["if (${1:expression})"," ${5:body}","end"].join(`
121
- `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"for",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["for(${1:counter},${2:start},${3:end}${4:,increment})"," ${5:body}","end"].join(`
122
- `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"function",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.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(`
123
- `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},FS=[{keybinding:Vt.KeyMod.CtrlCmd|Vt.KeyCode.NumpadAdd,command:"editor.action.fontZoomIn"},{keybinding:Vt.KeyMod.CtrlCmd|Vt.KeyCode.Equal,command:"editor.action.fontZoomIn"},{keybinding:Vt.KeyMod.CtrlCmd|Vt.KeyCode.NumpadSubtract,command:"editor.action.fontZoomOut"},{keybinding:Vt.KeyMod.CtrlCmd|Vt.KeyCode.Minus,command:"editor.action.fontZoomOut"},{keybinding:Vt.KeyMod.CtrlCmd|Vt.KeyCode.Numpad0,command:"editor.action.fontZoomReset"},{keybinding:Vt.KeyMod.CtrlCmd|Vt.KeyCode.Digit0,command:"editor.action.fontZoomReset"}],MS=({defaultZoom:t})=>(nt.useEffect(()=>{t!==void 0&&Vt.editor.EditorZoom.setZoomLevel(t)},[]),null),OS=()=>{const t=Z2(),e=t.textModelService.ctor.prototype;return e.createModelReference=()=>Promise.resolve({dispose:()=>{}}),t},AS=()=>e4(()=>Promise.resolve(void 0));({}).VITE_DISABLE_MONACO_LOADER||S1.loader.config({monaco:ue});const j2=nt.createContext(void 0),LS=({children:t,url:e,qodly:n,defaultZoom:i,openHandler:r,language:s="4d",defaultInited:o=!1})=>{const a=S1.useMonaco(),[c,l]=nt.useState(o),[h,g]=nt.useState(null),p=nt.useRef(),w=nt.useRef(0);nt.useEffect(()=>{e&&a&&v()},[e,a]);const v=async()=>{if(!a)return;const O=new X2.Logger({enabled:process.env.NODE_ENV==="development",debugEnabled:process.env.NODE_ENV==="development"}),L=await s4({serviceConfig:{userServices:{...OS(),...AS()}},logger:O});await I0.initServices({caller:"Qodly Code Editor",logger:O,serviceConfig:L}),r&&Y1.StandaloneServices.get(Y1.ICodeEditorService).registerCodeEditorOpenHandler(r);const D=await kn.getMonacoTheme();a.editor.defineTheme("fd-dark",D||TS),a.languages.register({id:s,extensions:[".4dm",".4qm",".4qs"],aliases:["4d","4D"]}),a.languages.setLanguageConfiguration(s,ES),a.languages.registerCompletionItemProvider(s,n?IS:PS),Vt.editor.addKeybindingRules(FS),x()},x=()=>{g(null);let O;try{O=new WebSocket(localStorage.LSP_SERVER||e)}catch{g(new Event("INVALID_URL"));return}O.onopen=T,O.onclose=q,O.onerror=z,w.current=0},T=async function(){const O=D1.toSocket(this),L=new xS(O),D=new kS(O),P=new r4({name:"4D Language Client",clientOptions:{workspaceFolder:{uri:Vt.Uri.parse("file:///PACKAGE")},documentSelector:[{scheme:"file",language:s}],errorHandler:{error:()=>({action:pu.ErrorAction.Continue}),closed:()=>({action:pu.CloseAction.DoNotRestart})}},connectionProvider:{get:()=>Promise.resolve({reader:L,writer:D})}});p.current=P;const N=P.sendRequest.bind(P);p.current.sendRequest=function($,ee,ke){return typeof $=="object"&&$.method==="textDocument/diagnostic"&&/file:\/\/\/PACKAGE\/Project\/Sources\/Methods\/__Debugger_.*/.test(ee.textDocument.uri)?Promise.resolve():N($,ee,ke)},L.onClose(()=>{P.stop(),w.current<3?setTimeout(()=>{w.current++,x()},1e3):g(new Event("WEBSOCKET_CLOSED"))}),P.needsStart()&&await P.start(),l(!0)},q=()=>{},z=O=>{g(O)};nt.useEffect(()=>{const O=kn.lspSubject.subscribe(({action:L,payload:D})=>{switch(L){case kn.LspActions.WILL_SAVE:A(D.filePath);break;case kn.LspActions.DID_SAVE:W(D.filePath,D.content);break;case kn.LspActions.WILL_CREATE:j(D.filePath);break;case kn.LspActions.DID_CREATE:Z(D.filePath);break;case kn.LspActions.WILL_RENAME:se(D.oldPath,D.newPath);break;case kn.LspActions.DID_RENAME:oe(D.oldPath,D.newPath);break;case kn.LspActions.WILL_DELETE:B(D.filePath);break;case kn.LspActions.DID_DELETE:qe(D.filePath);break}});return()=>O.unsubscribe()},[]);const A=(O,L=de.TextDocumentSaveReason.Manual)=>{var D;(D=p.current)==null||D.sendNotification(de.WillSaveTextDocumentNotification.type,{textDocument:{uri:jn(O)},reason:L})},W=(O,L)=>{var D;(D=p.current)==null||D.sendNotification(de.DidSaveTextDocumentNotification.type,{textDocument:{uri:jn(O)},text:L})},j=O=>{var L;(L=p.current)==null||L.sendRequest(de.WillCreateFilesRequest.type,{files:[{uri:jn(O)}]})},se=(O,L)=>{var D;(D=p.current)==null||D.sendRequest(de.WillRenameFilesRequest.type,{files:[{oldUri:jn(O),newUri:jn(L)}]})},B=O=>{var L;(L=p.current)==null||L.sendRequest(de.WillDeleteFilesRequest.type,{files:[{uri:jn(O)}]})},Z=O=>{var L;(L=p.current)==null||L.sendNotification(de.DidCreateFilesNotification.type,{files:[{uri:jn(O)}]})},oe=(O,L)=>{var D;(D=p.current)==null||D.sendNotification(de.DidRenameFilesNotification.type,{files:[{oldUri:jn(O),newUri:jn(L)}]})},qe=O=>{var L;(L=p.current)==null||L.sendNotification(de.DidDeleteFilesNotification.type,{files:[{uri:jn(O)}]})};return ut.jsxs(j2.Provider,{value:{inited:c||!!h,clientRef:p,lastError:h,reload:x},children:[t,ut.jsx(MS,{defaultZoom:i})]})};function NS(){const t=nt.useContext(j2);if(t===void 0)throw new Error("useLSP must be used within an LSPContext");return t}const W2=nt.createContext(void 0),$S=nt.memo(({children:t})=>{const[e,n]=nt.useState(null);return ut.jsx(W2.Provider,{value:{editor:e,setEditor:n},children:t})});function U2(){const t=nt.useContext(W2),e=nt.useState(null);if(t===void 0){const[n,i]=e;return{editor:n,setEditor:i}}return t}var z2={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},D0=nt.createContext&&nt.createContext(z2),ur=globalThis&&globalThis.__assign||function(){return ur=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},ur.apply(this,arguments)},qS=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 B2(t){return t&&t.map(function(e,n){return nt.createElement(e.tag,ur({key:n},e.attr),B2(e.child))})}function V2(t){return function(e){return nt.createElement(HS,ur({attr:ur({},t.attr)},e),B2(t.child))}}function HS(t){var e=function(n){var i=t.attr,r=t.size,s=t.title,o=qS(t,["attr","size","title"]),a=r||n.size||"1em",c;return n.className&&(c=n.className),t.className&&(c=(c?c+" ":"")+t.className),nt.createElement("svg",ur({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,o,{className:c,style:ur(ur({color:t.color||n.color},n.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),s&&nt.createElement("title",null,s),t.children)};return D0!==void 0?nt.createElement(D0.Consumer,null,function(n){return e(n)}):e(z2)}function jS(t){return V2({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 WS(t){return V2({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 K2=({lspProps:{lastError:t,reload:e}})=>{const[n,i]=nt.useState(!1),r=()=>{e()},s=()=>{i(!1)};return nt.useEffect(()=>{i(!!t)},[t]),n?ut.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:[ut.jsxs("span",{className:"flex flex-1 justify-center gap-1",children:[ut.jsx(WS,{className:"h-4 w-4 text-yellow-600"}),ut.jsxs("span",{children:["LSP not loaded."," ",ut.jsx("button",{className:"text-primary-dark underline",onClick:r,children:"Reload?"})]})]}),ut.jsx("button",{className:"focus:outline-none",children:ut.jsx(jS,{className:"h-4 w-4 text-white",onClick:s})})]}):null},US={provideCompletionItems:(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"device:xs",kind:ue.languages.CompletionItemKind.Snippet,documentation:"Media query for phone device",range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["@media screen and (max-width: ${1:365px}) {"," self {"," ${2:background-color}:${3:red};"," }","}"].join(`
124
- `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},zS="#/definitions/Condition",BS={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"]}},VS={$ref:zS,definitions:BS};function KS(t,e){const n=document.createElement("style");n.dataset.id=e,n.textContent=t,document.head.append(n)}function GS(t){return Array.from(document.styleSheets).find(e=>e.ownerNode.getAttribute("data-id")===t)}function QS(t,e){const n=[];let i=[];const r=[],s=(W,j,se,B)=>{n.push({startLineNumber:W,endLineNumber:se,startColumn:j,endColumn:B}),l(),c()},o=W=>{r.indexOf(W)<0&&r.push(W)},a=W=>{const j=r.indexOf(W);j<0||r.splice(j,1)},c=()=>{for(const W of r)try{W(i)}catch(j){console.error(j)}},l=()=>{const W=t.getModel();W&&(i=YS(n.map(j=>[W.getOffsetAt({lineNumber:j.startLineNumber,column:j.startColumn}),W.getOffsetAt({lineNumber:j.endLineNumber,column:j.endColumn})]),!0),i.length>0&&(i[0][0]<=0&&(i[0][0]=Number.NEGATIVE_INFINITY),i[i.length-1][1]>=W.getValueLength()&&(i[i.length-1][1]=Number.POSITIVE_INFINITY)))},h=W=>{const j={isDeletion:!1,isAddition:!1,isReplacement:!1};return W.text===""?j.isDeletion=!0:W.range.startLineNumber===W.range.endLineNumber&&W.range.startColumn===W.range.endColumn?j.isAddition=!0:j.isReplacement=!0,j},g=t.onDidChangeModel(W=>{l(),z()}),p=t.onDidChangeModelContent(W=>{if(!W.isUndoing)for(const j of W.changes){const se=h(j);if(se.isReplacement||se.isDeletion||se.isAddition){const B=n.some(oe=>j.range.startLineNumber>=oe.startLineNumber&&j.range.endLineNumber<=oe.endLineNumber&&j.range.startColumn>=oe.startColumn&&j.range.endColumn<=oe.endColumn),Z=!B&&e&&j.range.startLineNumber===1&&j.range.startColumn===1&&!kn.hasAttributesString(j.text);if(B||Z){const oe=t.getModel();if(oe){oe.undo();return}}}}}),w=()=>{g.dispose(),p.dispose()};let v=[],x=`
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=`
125
171
  .idoc-readonly-mark {
126
172
  cursor: not-allowed;
127
173
  z-index: 1;
128
174
  }
129
- `;if(x){const W="monaco-read-only";GS(W)||KS(x,W),x=null}const T=()=>{o(z),z()},q=()=>{a(z),v=t.deltaDecorations(v,[])},z=()=>{const W=t.getModel();W&&(v=t.deltaDecorations(v,i.map(A(W))))},A=W=>j=>{const se=W.getPositionAt(j[0]),B=W.getPositionAt(j[1]);return{range:new ue.Range(se.lineNumber,se.column,B.lineNumber,B.column),options:{className:"idoc-readonly-mark"}}};return{get buffer(){return i},exclude:s,attach:o,detach:a,dispose:w,show:T,hide:q}}function JS(t,e,n){let i=!1;const r=q=>q[1]<q[0]?(i=!0,[[q[1],q[0]]]):[[...q]],s=q=>i?q.map(z=>z[1]>z[0]?a(z):z).reverse():q;let o;const a=q=>(o=q[1],q[1]=q[0],q[0]=o,q),c=r(t);let l,h,g,p,w,v,x,T;g=c[0];for(h of e)for(x=h[0],T=h[1],p=0;p<c.length;p++){if(g=c[p],w=g[0],v=g[1],w<x)v<x?l=[g]:v<=T?l=[[w,x-1]]:l=[[w,x-1],[T+1,v]];else if(w<=T)if(x===Number.NEGATIVE_INFINITY){const q=T+1;l=n===0?[]:[[q,v>q?v:q]]}else T===Number.POSITIVE_INFINITY?l=n===0?[]:[[x-1,x-1]]:v<=T?l=n<0?[[x-1,x-1]]:n>0?[[T+1,T+1]]:[]:l=[[T+1,v]];else l=[g];if(c.splice(p,1,...l),c.length===1&&c[0][1]<x)return s(c)}return s(c)}function YS(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 Xs(t,e){return e.bind(t)}class XS{constructor(e,n){pn(this,"editor");pn(this,"intervals");pn(this,"disposables",[]);pn(this,"prefer",1);pn(this,"lastPrefer",1);pn(this,"onCursor",Xs(this,function(e){if(e.source==="api")return;const n=this.getApprovedSelections();n.length!==0&&this.editor.setSelections(n)}));pn(this,"onRectangleSelectionStart",Xs(this,function({event:e}){e.middleButton&&(this.lastPrefer=this.prefer,this.prefer=0,window.addEventListener("pointerup",this.onRectangleSelectionStop))}));pn(this,"onRectangleSelectionStop",Xs(this,function(){this.prefer=this.lastPrefer,window.removeEventListener("pointerup",this.onRectangleSelectionStop)}));pn(this,"onKey",Xs(this,function(e){const n=e.keyCode,i=ue.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())}));pn(this,"getOffsetAt",Xs(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=QS(e,n),(i=this.editor.getModel())==null||i.setEOL(ue.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=>JS(i,this.intervals.buffer,this.prefer)).flat().map(i=>{const r=e.getPositionAt(i[0]),s=e.getPositionAt(i[1]);return new ue.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 ZS=new RegExp("^[ s]+(exposed|Function)","i"),x0=()=>ut.jsx("div",{className:"absolute inset-0 animate-pulse",children:ut.jsx("div",{className:"w-full space-y-4 px-4 py-1",children:ut.jsxs("div",{className:"space-y-2",children:[ut.jsx("div",{className:"h-3 w-3/4 rounded bg-grey-200"}),ut.jsx("div",{className:"h-3 rounded bg-grey-200"}),ut.jsx("div",{className:"h-3 w-5/6 rounded bg-grey-200"}),ut.jsx("div",{className:"h-3 rounded bg-grey-200"}),ut.jsx("div",{className:"h-3 rounded bg-grey-200"})]})})}),eD=({path:t,initialValue:e,theme:n="fd-dark",type:i,language:r,onChange:s,options:o={},extra:a={},showAlerts:c=!1,lspProps:l,...h})=>{const{initialLineInfo:g,initialSelectionInfo:p}=a,{editor:w,setEditor:v}=U2(),{inited:x}=l;function T(z){r==="css"&&z.languages.registerCompletionItemProvider("css",US),r==="json"&&z.languages.json&&z.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,schemas:[{uri:"condition-schema.json",fileMatch:["*.condition.json"],schema:VS}]})}function q(z,A){v(z);const W=z.getModel();if(W&&(W.updateOptions({insertSpaces:!1}),z.onKeyUp(()=>{var se;const j=(se=z.getPosition())==null?void 0:se.lineNumber;if(j){const B=W.getLineFirstNonWhitespaceColumn(j),Z=W.getLineLength(j),oe=W.getLineContent(j);ZS.test(oe)&&z.executeEdits("edit-handler",[{range:new A.Range(j,0,j,Z),text:oe.substr(B-1,Z-B)}])}})),i===kn.FileFolderType.METHOD&&kn.hasAttributesString(e)){const j=new XS(z,!0);j.exclude(1,1,1,Number.POSITIVE_INFINITY),j.enable()}}return nt.useEffect(()=>{if(!w)return;const{line:z,offset:A}=g||{};z&&H2(w,z,A)},[g,w]),nt.useEffect(()=>{if(!w)return;const{selection:z}=p||{};z&&q2(w,z)},[p,w]),x?ut.jsxs(ut.Fragment,{children:[c?ut.jsx(K2,{lspProps:l}):null,ut.jsx(S1.Editor,{options:{readOnly:!0,fontSize:12,"semanticHighlighting.enabled":!0,padding:{top:10},...o},path:jn(t),value:e,theme:"fd-dark",onChange:z=>s&&s(z||""),language:r,beforeMount:T,onMount:q,loading:ut.jsx(x0,{}),...h})]}):ut.jsx(x0,{})},tD={html:["html"],css:["css","less","scss"],json:["json"],javascript:["typescript"],typescript:["typescript"]};for(const[t,e]of Object.entries(tD))ue.languages.register({id:t,aliases:e});exports.Alerts=K2;exports.CodeEditor=eD;exports.CodeEditorProvider=$S;exports.LSPProvider=LS;exports._await=V1;exports.getFileSystemPath=jn;exports.getFunctionOffset=RS;exports.jumpToLine=H2;exports.jumpToSelection=q2;exports.useCodeEditor=U2;exports.useLSP=NS;
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;
130
176
  //# sourceMappingURL=index.cjs.js.map