@ws-ui/code-editor 0.1.30-rc.4 → 0.1.30-rc.6
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/editor/providers/LSPProvider/index.d.ts +3 -2
- package/dist/editor/services/editor-service-override.d.ts +1 -8
- package/dist/editor/services/model-service-override.d.ts +0 -5
- package/dist/index.cjs.js +104 -74
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.es.js +25303 -23104
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,130 +1,160 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var By=Object.defineProperty;var Vy=(t,e,n)=>e in t?By(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Nt=(t,e,n)=>(Vy(t,typeof e!="symbol"?e+"":e,n),n),Ll=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var Dt=(t,e,n)=>(Ll(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,r)=>(Ll(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);var Qs=(t,e,n)=>(Ll(t,e,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ht=require("react"),K1=require("@monaco-editor/react"),jn=require("@ws-ui/shared"),Ky=require("vscode-languageclient/lib/common/client.js"),m2=require("monaco-languageclient/vscode/services"),sn=require("monaco-editor"),Gy=require("monaco-languageclient/tools"),_p=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 Sp=typeof document<"u"?document.currentScript:null;function Qy(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const ve=Qy(sn);var _t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function y2(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?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(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var Iu={exports:{}},rs={};/*
|
|
2
2
|
object-assign
|
|
3
3
|
(c) Sindre Sorhus
|
|
4
4
|
@license MIT
|
|
5
|
-
*/var
|
|
5
|
+
*/var Nl,Dp;function b2(){if(Dp)return Nl;Dp=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){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 Nl=i()?Object.assign:function(s,o){for(var a,c=r(s),l,f=1;f<arguments.length;f++){a=Object(arguments[f]);for(var p in a)e.call(a,p)&&(c[p]=a[p]);if(t){l=t(a);for(var g=0;g<l.length;g++)n.call(a,l[g])&&(c[l[g]]=a[l[g]])}}return c},Nl}/** @license React v17.0.2
|
|
6
6
|
* react-jsx-runtime.production.min.js
|
|
7
7
|
*
|
|
8
8
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/var
|
|
12
|
+
*/var Tp;function Jy(){if(Tp)return rs;Tp=1,b2();var t=ht,e=60103;if(rs.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;e=n("react.element"),rs.Fragment=n("react.fragment")}var r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,l){var f,p={},g=null,_=null;l!==void 0&&(g=""+l),c.key!==void 0&&(g=""+c.key),c.ref!==void 0&&(_=c.ref);for(f in c)i.call(c,f)&&!s.hasOwnProperty(f)&&(p[f]=c[f]);if(a&&a.defaultProps)for(f in c=a.defaultProps,c)p[f]===void 0&&(p[f]=c[f]);return{$$typeof:e,type:a,key:g,ref:_,props:p,_owner:r.current}}return rs.jsx=o,rs.jsxs=o,rs}var $l={};/** @license React v17.0.2
|
|
13
13
|
* react-jsx-runtime.development.js
|
|
14
14
|
*
|
|
15
15
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var
|
|
20
|
-
`+
|
|
21
|
-
`),
|
|
22
|
-
`),
|
|
23
|
-
`+
|
|
19
|
+
*/var kp;function Yy(){return kp||(kp=1,function(t){process.env.NODE_ENV!=="production"&&function(){var e=ht,n=b2(),r=60103,i=60106;t.Fragment=60107;var s=60108,o=60114,a=60109,c=60110,l=60112,f=60113,p=60120,g=60115,_=60116,C=60121,k=60122,M=60117,H=60129,K=60131;if(typeof Symbol=="function"&&Symbol.for){var j=Symbol.for;r=j("react.element"),i=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"),p=j("react.suspense_list"),g=j("react.memo"),_=j("react.lazy"),C=j("react.block"),k=j("react.server.block"),M=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 Y(T){{for(var U=arguments.length,X=new Array(U>1?U-1:0),w=1;w<U;w++)X[w-1]=arguments[w];re("error",T,X)}}function re(T,U,X){{var w=G.ReactDebugCurrentFrame,ge=w.getStackAddendum();ge!==""&&(U+="%s",X=X.concat([ge]));var me=X.map(function(J){return""+J});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===p||T===K||Le||typeof T=="object"&&T!==null&&(T.$$typeof===_||T.$$typeof===g||T.$$typeof===a||T.$$typeof===c||T.$$typeof===l||T.$$typeof===M||T.$$typeof===C||T[0]===k))}function P(T,U,X){var w=U.displayName||U.name||"";return T.displayName||(w!==""?X+"("+w+")":X)}function v(T){return T.displayName||"Context"}function R(T){if(T==null)return null;if(typeof T.tag=="number"&&Y("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 i:return"Portal";case o:return"Profiler";case s:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if(typeof T=="object")switch(T.$$typeof){case c:var U=T;return v(U)+".Consumer";case a:var X=T;return v(X._context)+".Provider";case l:return P(T,T.render,"ForwardRef");case g:return R(T.type);case C:return R(T._render);case _:{var w=T,ge=w._payload,me=w._init;try{return R(me(ge))}catch{return null}}}return null}var I=0,E,V,Me,we,lt,He,Pe;function st(){}st.__reactDisabledLog=!0;function Fe(){{if(I===0){E=console.log,V=console.info,Me=console.warn,we=console.error,lt=console.group,He=console.groupCollapsed,Pe=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})}I++}}function ot(){{if(I--,I===0){var T={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},T,{value:E}),info:n({},T,{value:V}),warn:n({},T,{value:Me}),error:n({},T,{value:we}),group:n({},T,{value:lt}),groupCollapsed:n({},T,{value:He}),groupEnd:n({},T,{value:Pe})})}I<0&&Y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Qe=G.ReactCurrentDispatcher,Ft;function Je(T,U,X){{if(Ft===void 0)try{throw Error()}catch(ge){var w=ge.stack.trim().match(/\n( *(at )?)/);Ft=w&&w[1]||""}return`
|
|
20
|
+
`+Ft+T}}var Xe=!1,vt;{var at=typeof WeakMap=="function"?WeakMap:Map;vt=new at}function oe(T,U){if(!T||Xe)return"";{var X=vt.get(T);if(X!==void 0)return X}var w;Xe=!0;var ge=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var me;me=Qe.current,Qe.current=null,Fe();try{if(U){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(d){w=d}Reflect.construct(T,[],J)}else{try{J.call()}catch(d){w=d}T.call(J.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{Xe=!1,Qe.current=me,ot(),Error.prepareStackTrace=ge}var ce=T?T.displayName||T.name:"",fe=ce?Je(ce):"";return typeof T=="function"&&vt.set(T,fe),fe}function gt(T,U,X){return oe(T,!1)}function Ce(T){var U=T.prototype;return!!(U&&U.isReactComponent)}function Ze(T,U,X){if(T==null)return"";if(typeof T=="function")return oe(T,Ce(T));if(typeof T=="string")return Je(T);switch(T){case f:return Je("Suspense");case p:return Je("SuspenseList")}if(typeof T=="object")switch(T.$$typeof){case l:return gt(T.render);case g:return Ze(T.type,U,X);case C:return gt(T._render);case _:{var w=T,ge=w._payload,me=w._init;try{return Ze(me(ge),U,X)}catch{}}}return""}var en={},tn=G.ReactDebugCurrentFrame;function Wt(T){if(T){var U=T._owner,X=Ze(T.type,T._source,U?U.type:null);tn.setExtraStackFrame(X)}else tn.setExtraStackFrame(null)}function Rt(T,U,X,w,ge){{var me=Function.call.bind(Object.prototype.hasOwnProperty);for(var J in T)if(me(T,J)){var h=void 0;try{if(typeof T[J]!="function"){var D=Error((w||"React class")+": "+X+" type `"+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof T[J]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw D.name="Invariant Violation",D}h=T[J](U,J,w,X,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(x){h=x}h&&!(h instanceof Error)&&(Wt(ge),Y("%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",X,J,typeof h),Wt(null)),h instanceof Error&&!(h.message in en)&&(en[h.message]=!0,Wt(ge),Y("Failed %s type: %s",X,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 X=R(xt.current.type);Tn[X]||(Y('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[X]=!0)}}function St(T,U){{var X=function(){Ln||(Ln=!0,Y("%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))};X.isReactWarning=!0,Object.defineProperty(T,"key",{get:X,configurable:!0})}}function mn(T,U){{var X=function(){Dn||(Dn=!0,Y("%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))};X.isReactWarning=!0,Object.defineProperty(T,"ref",{get:X,configurable:!0})}}var Bn=function(T,U,X,w,ge,me,J){var h={$$typeof:r,type:T,key:U,ref:X,props:J,_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:ge}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h};function Kt(T,U,X,w,ge){{var me,J={},h=null,D=null;X!==void 0&&(h=""+X),kn(U)&&(h=""+U.key),Nn(U)&&(D=U.ref,ln(U,ge));for(me in U)qe.call(U,me)&&!Ut.hasOwnProperty(me)&&(J[me]=U[me]);if(T&&T.defaultProps){var x=T.defaultProps;for(me in x)J[me]===void 0&&(J[me]=x[me])}if(h||D){var N=typeof T=="function"?T.displayName||T.name||"Unknown":T;h&&St(J,N),D&&mn(J,N)}return Bn(T,h,D,ge,w,xt.current,J)}}var nn=G.ReactCurrentOwner,yn=G.ReactDebugCurrentFrame;function Gt(T){if(T){var U=T._owner,X=Ze(T.type,T._source,U?U.type:null);yn.setExtraStackFrame(X)}else yn.setExtraStackFrame(null)}var Rn;Rn=!1;function bn(T){return typeof T=="object"&&T!==null&&T.$$typeof===r}function xn(){{if(nn.current){var T=R(nn.current.type);if(T)return`
|
|
24
24
|
|
|
25
|
-
Check the render method of \``+
|
|
25
|
+
Check the render method of \``+T+"`."}return""}}function Vn(T){{if(T!==void 0){var U=T.fileName.replace(/^.*[\\\/]/,""),X=T.lineNumber;return`
|
|
26
26
|
|
|
27
|
-
Check your code at `+
|
|
27
|
+
Check your code at `+U+":"+X+"."}return""}}var vn={};function mt(T){{var U=xn();if(!U){var X=typeof T=="string"?T:T.displayName||T.name;X&&(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=t4():gu.exports=n4();var ut=gu.exports;class i4 extends J2.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 r4=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={};P0.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 s4(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=s4(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};cc.assertInvariants=!1;let tg=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 o4(t){let e=0;for(let n=0;n<t.length;n++)t[n]&&(t[e]=t[n],e+=1);t.length=e}function ng(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 a4(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 c4(t,e){return(n,i)=>e(t(n),t(i))}const l4=(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 ig=ts;class u4{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 <`+X+">.")}return U}}function En(T,U){{if(!T._store||T._store.validated||T.key!=null)return;T._store.validated=!0;var X=mt(U);if(vn[X])return;vn[X]=!0;var w="";T&&T._owner&&T._owner!==nn.current&&(w=" It was passed a child from "+R(T._owner.type)+"."),Gt(T),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',X,w),Gt(null)}}function $n(T,U){{if(typeof T!="object")return;if(Array.isArray(T))for(var X=0;X<T.length;X++){var w=T[X];bn(w)&&En(w,U)}else if(bn(T))T._store&&(T._store.validated=!0);else if(T){var ge=ne(T);if(typeof ge=="function"&&ge!==T.entries)for(var me=ge.call(T),J;!(J=me.next()).done;)bn(J.value)&&En(J.value,U)}}}function Lt(T){{var U=T.type;if(U==null||typeof U=="string")return;var X;if(typeof U=="function")X=U.propTypes;else if(typeof U=="object"&&(U.$$typeof===l||U.$$typeof===g))X=U.propTypes;else return;if(X){var w=R(U);Rt(X,T.props,"prop",w,T)}else if(U.PropTypes!==void 0&&!Rn){Rn=!0;var ge=R(U);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ge||"Unknown")}typeof U.getDefaultProps=="function"&&!U.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function y(T){{for(var U=Object.keys(T.props),X=0;X<U.length;X++){var w=U[X];if(w!=="children"&&w!=="key"){Gt(T),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",w),Gt(null);break}}T.ref!==null&&(Gt(T),Y("Invalid attribute `ref` supplied to `React.Fragment`."),Gt(null))}}function L(T,U,X,w,ge,me){{var J=$(T);if(!J){var h="";(T===void 0||typeof T=="object"&&T!==null&&Object.keys(T).length===0)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var D=Vn(ge);D?h+=D:h+=xn();var x;T===null?x="null":Array.isArray(T)?x="array":T!==void 0&&T.$$typeof===r?(x="<"+(R(T.type)||"Unknown")+" />",h=" Did you accidentally export a JSX literal instead of a component?"):x=typeof T,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,h)}var N=Kt(T,U,X,ge,me);if(N==null)return N;if(J){var le=U.children;if(le!==void 0)if(w)if(Array.isArray(le)){for(var ce=0;ce<le.length;ce++)$n(le[ce],T);Object.freeze&&Object.freeze(le)}else Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else $n(le,T)}return T===t.Fragment?y(N):Lt(N),N}}function te(T,U,X){return L(T,U,X,!0)}function Te(T,U,X){return L(T,U,X,!1)}var xe=Te,ut=te;t.jsx=xe,t.jsxs=ut}()}($l)),$l}process.env.NODE_ENV==="production"?Iu.exports=Jy():Iu.exports=Yy();var wt=Iu.exports;class Xy extends Ky.BaseLanguageClient{constructor({id:n,name:r,clientOptions:i,connectionProvider:s}){super(n??r.toLowerCase(),r,i);Nt(this,"connectionProvider");this.connectionProvider=s}createMessageTransports(n){return this.connectionProvider.get(n)}}const Zy=async t=>{var i;const e=t.serviceConfig??{};e.debugLogging=((i=t.logger)==null?void 0:i.isEnabled())===!0&&(e.debugLogging===!0||t.logger.isDebugEnabled()===!0),e.userServices=e.userServices??{};const n=e.userServices.configurationService??void 0,r=e.workspaceConfig??void 0;if(n===void 0){if(r)throw new Error("You provided a workspaceConfig without using the configurationServiceOverride");const s={};m2.mergeServices(s,e.userServices)}return r||(e.workspaceConfig={workspaceProvider:{trusted:!0,workspace:{workspaceUri:ve.Uri.file("/workspace")},async open(){return!1}}}),e};var Mu={},Ou={},ye={},Xi={},G1={},Oa={},pe={},jt={};Object.defineProperty(jt,"__esModule",{value:!0});jt.stringArray=jt.array=jt.func=jt.error=jt.number=jt.string=jt.boolean=void 0;function eb(t){return t===!0||t===!1}jt.boolean=eb;function v2(t){return typeof t=="string"||t instanceof String}jt.string=v2;function tb(t){return typeof t=="number"||t instanceof Number}jt.number=tb;function nb(t){return t instanceof Error}jt.error=nb;function rb(t){return typeof t=="function"}jt.func=rb;function w2(t){return Array.isArray(t)}jt.array=w2;function ib(t){return w2(t)&&t.every(e=>v2(e))}jt.stringArray=ib;Object.defineProperty(pe,"__esModule",{value:!0});pe.Message=pe.NotificationType9=pe.NotificationType8=pe.NotificationType7=pe.NotificationType6=pe.NotificationType5=pe.NotificationType4=pe.NotificationType3=pe.NotificationType2=pe.NotificationType1=pe.NotificationType0=pe.NotificationType=pe.RequestType9=pe.RequestType8=pe.RequestType7=pe.RequestType6=pe.RequestType5=pe.RequestType4=pe.RequestType3=pe.RequestType2=pe.RequestType1=pe.RequestType=pe.RequestType0=pe.AbstractMessageSignature=pe.ParameterStructures=pe.ResponseError=pe.ErrorCodes=void 0;const xi=jt;var Au;(function(t){t.ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=-32099,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.PendingResponseRejected=-32097,t.ConnectionInactive=-32096,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=-32e3})(Au||(pe.ErrorCodes=Au={}));class Q1 extends Error{constructor(e,n,r){super(n),this.code=xi.number(e)?e:Au.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,Q1.prototype)}toJson(){const e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}}pe.ResponseError=Q1;class pn{constructor(e){this.kind=e}static is(e){return e===pn.auto||e===pn.byName||e===pn.byPosition}toString(){return this.kind}}pe.ParameterStructures=pn;pn.auto=new pn("auto");pn.byPosition=new pn("byPosition");pn.byName=new pn("byName");class kt{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return pn.auto}}pe.AbstractMessageSignature=kt;class sb extends kt{constructor(e){super(e,0)}}pe.RequestType0=sb;class ob extends kt{constructor(e,n=pn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}pe.RequestType=ob;class ab extends kt{constructor(e,n=pn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}pe.RequestType1=ab;class cb extends kt{constructor(e){super(e,2)}}pe.RequestType2=cb;class lb extends kt{constructor(e){super(e,3)}}pe.RequestType3=lb;class ub extends kt{constructor(e){super(e,4)}}pe.RequestType4=ub;class db extends kt{constructor(e){super(e,5)}}pe.RequestType5=db;class fb extends kt{constructor(e){super(e,6)}}pe.RequestType6=fb;class hb extends kt{constructor(e){super(e,7)}}pe.RequestType7=hb;class pb extends kt{constructor(e){super(e,8)}}pe.RequestType8=pb;class gb extends kt{constructor(e){super(e,9)}}pe.RequestType9=gb;class mb extends kt{constructor(e,n=pn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}pe.NotificationType=mb;class yb extends kt{constructor(e){super(e,0)}}pe.NotificationType0=yb;class bb extends kt{constructor(e,n=pn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}pe.NotificationType1=bb;class vb extends kt{constructor(e){super(e,2)}}pe.NotificationType2=vb;class wb extends kt{constructor(e){super(e,3)}}pe.NotificationType3=wb;class Cb extends kt{constructor(e){super(e,4)}}pe.NotificationType4=Cb;class _b extends kt{constructor(e){super(e,5)}}pe.NotificationType5=_b;class Sb extends kt{constructor(e){super(e,6)}}pe.NotificationType6=Sb;class Db extends kt{constructor(e){super(e,7)}}pe.NotificationType7=Db;class Tb extends kt{constructor(e){super(e,8)}}pe.NotificationType8=Tb;class kb extends kt{constructor(e){super(e,9)}}pe.NotificationType9=kb;var Rp;(function(t){function e(i){const s=i;return s&&xi.string(s.method)&&(xi.string(s.id)||xi.number(s.id))}t.isRequest=e;function n(i){const s=i;return s&&xi.string(s.method)&&i.id===void 0}t.isNotification=n;function r(i){const s=i;return s&&(s.result!==void 0||!!s.error)&&(xi.string(s.id)||xi.number(s.id)||s.id===null)}t.isResponse=r})(Rp||(pe.Message=Rp={}));var jr={},xp;Object.defineProperty(jr,"__esModule",{value:!0});jr.LRUCache=jr.LinkedMap=jr.Touch=void 0;var dn;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(dn||(jr.Touch=dn={}));let C2=class{constructor(){this[xp]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return(e=this._head)==null?void 0:e.value}get last(){var e;return(e=this._tail)==null?void 0:e.value}has(e){return this._map.has(e)}get(e,n=dn.None){const r=this._map.get(e);if(r)return n!==dn.None&&this.touch(r,n),r.value}set(e,n,r=dn.None){let i=this._map.get(e);if(i)i.value=n,r!==dn.None&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case dn.None:this.addItemLast(i);break;case dn.First:this.addItemFirst(i);break;case dn.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){const r=this._state;let i=this._head;for(;i;){if(n?e.bind(n)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){const i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){const e=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){const i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){const e=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){const i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(xp=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const n=e.next,r=e.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==dn.First&&n!==dn.Last)){if(n===dn.First){if(e===this._head)return;const r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===dn.Last){if(e===this._tail)return;const r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((n,r)=>{e.push([r,n])}),e}fromJSON(e){this.clear();for(const[n,r]of e)this.set(n,r)}};jr.LinkedMap=C2;let Rb=class extends C2{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,n=dn.AsNew){return super.get(e,n)}peek(e){return super.get(e,dn.None)}set(e,n){return super.set(e,n,dn.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};jr.LRUCache=Rb;var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0});Pc.Disposable=void 0;var Ep;(function(t){function e(n){return{dispose:n}}t.create=e})(Ep||(Pc.Disposable=Ep={}));var Cr={},Gr={};Object.defineProperty(Gr,"__esModule",{value:!0});let Fu;function Lu(){if(Fu===void 0)throw new Error("No runtime abstraction layer installed");return Fu}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");Fu=n}t.install=e})(Lu||(Lu={}));Gr.default=Lu;Object.defineProperty(Cr,"__esModule",{value:!0});Cr.Emitter=Cr.Event=void 0;const xb=Gr;var Pp;(function(t){const e={dispose(){}};t.None=function(){return e}})(Pp||(Cr.Event=Pp={}));let Eb=class{add(e,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,s=this._callbacks.length;i<s;i++)if(this._callbacks[i]===e)if(this._contexts[i]===n){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];const n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let s=0,o=r.length;s<o;s++)try{n.push(r[s].apply(i[s],e))}catch(a){(0,xb.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},_2=class S2{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,r)=>{this._callbacks||(this._callbacks=new Eb),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);const i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,n),i.dispose=S2._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Cr.Emitter=_2;_2._noop=function(){};var vi={};Object.defineProperty(vi,"__esModule",{value:!0});vi.CancellationTokenSource=vi.CancellationToken=void 0;const Pb=Gr,Ib=jt,Nu=Cr;var Aa;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Nu.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Nu.Event.None});function e(n){const r=n;return r&&(r===t.None||r===t.Cancelled||Ib.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}t.is=e})(Aa||(vi.CancellationToken=Aa={}));const Mb=Object.freeze(function(t,e){const n=(0,Pb.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}});let Ip=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Mb:(this._emitter||(this._emitter=new Nu.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},Ob=class{get token(){return this._token||(this._token=new Ip),this._token}cancel(){this._token?this._token.cancel():this._token=Aa.Cancelled}dispose(){this._token?this._token instanceof Ip&&this._token.dispose():this._token=Aa.None}};vi.CancellationTokenSource=Ob;var Rs={};Object.defineProperty(Rs,"__esModule",{value:!0});Rs.SharedArrayReceiverStrategy=Rs.SharedArraySenderStrategy=void 0;const Ab=vi;var Eo;(function(t){t.Continue=0,t.Cancelled=1})(Eo||(Eo={}));class Fb{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;const n=new SharedArrayBuffer(4),r=new Int32Array(n,0,1);r[0]=Eo.Continue,this.buffers.set(e.id,n),e.$cancellationData=n}async sendCancellation(e,n){const r=this.buffers.get(n);if(r===void 0)return;const i=new Int32Array(r,0,1);Atomics.store(i,0,Eo.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}}Rs.SharedArraySenderStrategy=Fb;class Lb{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Eo.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class Nb{constructor(e){this.token=new Lb(e)}cancel(){}dispose(){}}class $b{constructor(){this.kind="request"}createCancellationTokenSource(e){const n=e.$cancellationData;return n===void 0?new Ab.CancellationTokenSource:new Nb(n)}}Rs.SharedArrayReceiverStrategy=$b;var si={},Zo={};Object.defineProperty(Zo,"__esModule",{value:!0});Zo.Semaphore=void 0;const qb=Gr;let jb=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((n,r)=>{this._waiting.push({thunk:e,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,qb.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const n=e.thunk();n instanceof Promise?n.then(r=>{this._active--,e.resolve(r),this.runNext()},r=>{this._active--,e.reject(r),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};Zo.Semaphore=jb;Object.defineProperty(si,"__esModule",{value:!0});si.ReadableStreamMessageReader=si.AbstractMessageReader=si.MessageReader=void 0;const $u=Gr,ls=jt,ql=Cr,Hb=Zo;var Mp;(function(t){function e(n){let r=n;return r&&ls.func(r.listen)&&ls.func(r.dispose)&&ls.func(r.onError)&&ls.func(r.onClose)&&ls.func(r.onPartialMessage)}t.is=e})(Mp||(si.MessageReader=Mp={}));let D2=class{constructor(){this.errorEmitter=new ql.Emitter,this.closeEmitter=new ql.Emitter,this.partialMessageEmitter=new ql.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${ls.string(e.message)?e.message:"unknown"}`)}};si.AbstractMessageReader=D2;var qu;(function(t){function e(n){let r,i;const s=new Map;let o;const a=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(i=n.contentDecoder,s.set(i.name,i)),n.contentDecoders!==void 0)for(const c of n.contentDecoders)s.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(o=n.contentTypeDecoder,a.set(o.name,o)),n.contentTypeDecoders!==void 0)for(const c of n.contentTypeDecoders)a.set(c.name,c)}return o===void 0&&(o=(0,$u.default)().applicationJson.decoder,a.set(o.name,o)),{charset:r,contentDecoder:i,contentDecoders:s,contentTypeDecoder:o,contentTypeDecoders:a}}t.fromOptions=e})(qu||(qu={}));let Wb=class extends D2{constructor(e,n){super(),this.readable=e,this.options=qu.fromOptions(n),this.buffer=(0,$u.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new Hb.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;const n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){const r=this.buffer.tryReadHeaders(!0);if(!r)return;const i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
30
|
+
${JSON.stringify(Object.fromEntries(r))}`));return}const s=parseInt(i);if(isNaN(s)){this.fireError(new Error(`Content-Length value must be a number. Got ${i}`));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 r=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch(r=>{this.fireError(r)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,$u.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))}};si.ReadableStreamMessageReader=Wb;var oi={};Object.defineProperty(oi,"__esModule",{value:!0});oi.WriteableStreamMessageWriter=oi.AbstractMessageWriter=oi.MessageWriter=void 0;const Op=Gr,po=jt,Ub=Zo,Ap=Cr,zb="Content-Length: ",Fp=`\r
|
|
31
|
+
`;var Lp;(function(t){function e(n){let r=n;return r&&po.func(r.dispose)&&po.func(r.onClose)&&po.func(r.onError)&&po.func(r.write)}t.is=e})(Lp||(oi.MessageWriter=Lp={}));let T2=class{constructor(){this.errorEmitter=new Ap.Emitter,this.closeEmitter=new Ap.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,n,r){this.errorEmitter.fire([this.asError(e),n,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${po.string(e.message)?e.message:"unknown"}`)}};oi.AbstractMessageWriter=T2;var ju;(function(t){function e(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,Op.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,Op.default)().applicationJson.encoder}}t.fromOptions=e})(ju||(ju={}));let Bb=class extends T2{constructor(e,n){super(),this.writable=e,this.options=ju.fromOptions(n),this.errorCount=0,this.writeSemaphore=new Ub.Semaphore(1),this.writable.onError(r=>this.fireError(r)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(r=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(r):r).then(r=>{const i=[];return i.push(zb,r.byteLength.toString(),Fp),i.push(Fp),this.doWrite(e,i,r)},r=>{throw this.fireError(r),r}))}async doWrite(e,n,r){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,e),Promise.reject(i)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){this.writable.end()}};oi.WriteableStreamMessageWriter=Bb;var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0});Ic.AbstractMessageBuffer=void 0;const Vb=13,Kb=10,Gb=`\r
|
|
32
|
+
`;class Qb{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,r=0,i=0,s=0;e:for(;r<this._chunks.length;){const l=this._chunks[r];for(i=0;i<l.length;){switch(l[i]){case Vb:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case Kb:switch(n){case 1:n=2;break;case 3:n=4,i++;break e;default:n=0}break;default:n=0}i++}s+=l.byteLength,r++}if(n!==4)return;const o=this._read(s+i),a=new Map,c=this.toString(o,"ascii").split(Gb);if(c.length<2)return a;for(let l=0;l<c.length-2;l++){const f=c[l],p=f.indexOf(":");if(p===-1)throw new Error(`Message header must separate key and value using ':'
|
|
33
|
+
${f}`);const g=f.substr(0,p),_=f.substr(p+1).trim();a.set(e?g.toLowerCase():g,_)}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 r=0,i=0;for(;e>0;){const s=this._chunks[i];if(s.byteLength>e){const o=s.slice(0,e);n.set(o,r),r+=e,this._chunks[i]=s.slice(e),this._totalLength-=e,e-=e}else n.set(s,r),r+=s.byteLength,this._chunks.shift(),this._totalLength-=s.byteLength,e-=s.byteLength}return n}}Ic.AbstractMessageBuffer=Qb;var k2={};(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=Gr,n=jt,r=pe,i=jr,s=Cr,o=vi;var a;(function(v){v.type=new r.NotificationType("$/cancelRequest")})(a||(a={}));var c;(function(v){function R(I){return typeof I=="string"||typeof I=="number"}v.is=R})(c||(t.ProgressToken=c={}));var l;(function(v){v.type=new r.NotificationType("$/progress")})(l||(l={}));class f{constructor(){}}t.ProgressType=f;var p;(function(v){function R(I){return n.func(I)}v.is=R})(p||(p={})),t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var g;(function(v){v[v.Off=0]="Off",v[v.Messages=1]="Messages",v[v.Compact=2]="Compact",v[v.Verbose=3]="Verbose"})(g||(t.Trace=g={}));var _;(function(v){v.Off="off",v.Messages="messages",v.Compact="compact",v.Verbose="verbose"})(_||(t.TraceValues=_={})),function(v){function R(E){if(!n.string(E))return v.Off;switch(E=E.toLowerCase(),E){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 I(E){switch(E){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=I}(g||(t.Trace=g={}));var C;(function(v){v.Text="text",v.JSON="json"})(C||(t.TraceFormat=C={})),function(v){function R(I){return n.string(I)?(I=I.toLowerCase(),I==="json"?v.JSON:v.Text):v.Text}v.fromString=R}(C||(t.TraceFormat=C={}));var k;(function(v){v.type=new r.NotificationType("$/setTrace")})(k||(t.SetTraceNotification=k={}));var M;(function(v){v.type=new r.NotificationType("$/logTrace")})(M||(t.LogTraceNotification=M={}));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,I){super(I),this.code=R,Object.setPrototypeOf(this,K.prototype)}}t.ConnectionError=K;var j;(function(v){function R(I){const E=I;return E&&n.func(E.cancelUndispatched)}v.is=R})(j||(t.ConnectionStrategy=j={}));var B;(function(v){function R(I){const E=I;return E&&(E.kind===void 0||E.kind==="id")&&n.func(E.createCancellationTokenSource)&&(E.dispose===void 0||n.func(E.dispose))}v.is=R})(B||(t.IdCancellationReceiverStrategy=B={}));var z;(function(v){function R(I){const E=I;return E&&E.kind==="request"&&n.func(E.createCancellationTokenSource)&&(E.dispose===void 0||n.func(E.dispose))}v.is=R})(z||(t.RequestCancellationReceiverStrategy=z={}));var ne;(function(v){v.Message=Object.freeze({createCancellationTokenSource(I){return new o.CancellationTokenSource}});function R(I){return B.is(I)||z.is(I)}v.is=R})(ne||(t.CancellationReceiverStrategy=ne={}));var G;(function(v){v.Message=Object.freeze({sendCancellation(I,E){return I.sendNotification(a.type,{id:E})},cleanup(I){}});function R(I){const E=I;return E&&n.func(E.sendCancellation)&&n.func(E.cleanup)}v.is=R})(G||(t.CancellationSenderStrategy=G={}));var Y;(function(v){v.Message=Object.freeze({receiver:ne.Message,sender:G.Message});function R(I){const E=I;return E&&ne.is(E.receiver)&&G.is(E.sender)}v.is=R})(Y||(t.CancellationStrategy=Y={}));var re;(function(v){function R(I){const E=I;return E&&n.func(E.handleMessage)}v.is=R})(re||(t.MessageStrategy=re={}));var Le;(function(v){function R(I){const E=I;return E&&(Y.is(E.cancellationStrategy)||j.is(E.connectionStrategy)||re.is(E.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 P(v,R,I,E){const V=I!==void 0?I:t.NullLogger;let Me=0,we=0,lt=0;const He="2.0";let Pe;const st=new Map;let Fe;const ot=new Map,Qe=new Map;let Ft,Je=new i.LinkedMap,Xe=new Map,vt=new Set,at=new Map,oe=g.Off,gt=C.Text,Ce,Ze=$.New;const en=new s.Emitter,tn=new s.Emitter,Wt=new s.Emitter,Rt=new s.Emitter,xt=new s.Emitter,qe=E&&E.cancellationStrategy?E.cancellationStrategy:Y.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-"+(++we).toString()}function Tn(h,D){r.Message.isRequest(D)?h.set(Ut(D.id),D):r.Message.isResponse(D)?h.set(Ln(D.id),D):h.set(Dn(),D)}function Nn(h){}function kn(){return Ze===$.Listening}function ln(){return Ze===$.Closed}function St(){return Ze===$.Disposed}function mn(){(Ze===$.New||Ze===$.Listening)&&(Ze=$.Closed,tn.fire(void 0))}function Bn(h){en.fire([h,void 0,void 0])}function Kt(h){en.fire(h)}v.onClose(mn),v.onError(Bn),R.onClose(mn),R.onError(Kt);function nn(){Ft||Je.size===0||(Ft=(0,e.default)().timer.setImmediate(()=>{Ft=void 0,Gt()}))}function yn(h){r.Message.isRequest(h)?bn(h):r.Message.isNotification(h)?Vn(h):r.Message.isResponse(h)?xn(h):vn(h)}function Gt(){if(Je.size===0)return;const h=Je.shift();try{const D=E==null?void 0:E.messageStrategy;re.is(D)?D.handleMessage(h,yn):yn(h)}finally{nn()}}const Rn=h=>{try{if(r.Message.isNotification(h)&&h.method===a.type.method){const D=h.params.id,x=Ut(D),N=Je.get(x);if(r.Message.isRequest(N)){const ce=E==null?void 0:E.connectionStrategy,fe=ce&&ce.cancelUndispatched?ce.cancelUndispatched(N,Nn):void 0;if(fe&&(fe.error!==void 0||fe.result!==void 0)){Je.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(Je,h)}finally{nn()}};function bn(h){if(St())return;function D(S,O,W){const de={jsonrpc:He,id:h.id};S instanceof r.ResponseError?de.error=S.toJson():de.result=S===void 0?null:S,Lt(de,O,W),R.write(de).catch(()=>V.error("Sending response failed."))}function x(S,O,W){const de={jsonrpc:He,id:h.id,error:S.toJson()};Lt(de,O,W),R.write(de).catch(()=>V.error("Sending response failed."))}function N(S,O,W){S===void 0&&(S=null);const de={jsonrpc:He,id:h.id,result:S};Lt(de,O,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||Pe){const S=h.id??String(Date.now()),O=B.is(qe.receiver)?qe.receiver.createCancellationTokenSource(S):qe.receiver.createCancellationTokenSource(h);h.id!==null&&vt.has(h.id)&&O.cancel(),h.id!==null&&at.set(S,O);try{let W;if(fe)if(h.params===void 0){if(ce!==void 0&&ce.numberOfParams!==0){x(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${h.method} defines ${ce.numberOfParams} params but received none.`),h.method,d);return}W=fe(O.token)}else if(Array.isArray(h.params)){if(ce!==void 0&&ce.parameterStructures===r.ParameterStructures.byName){x(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${h.method} defines parameters by name but received parameters by position`),h.method,d);return}W=fe(...h.params,O.token)}else{if(ce!==void 0&&ce.parameterStructures===r.ParameterStructures.byPosition){x(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${h.method} defines parameters by position but received parameters by name`),h.method,d);return}W=fe(h.params,O.token)}else Pe&&(W=Pe(h.method,h.params,O.token));const de=W;W?de.then?de.then(be=>{at.delete(S),D(be,h.method,d)},be=>{at.delete(S),be instanceof r.ResponseError?x(be,h.method,d):be&&n.string(be.message)?x(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${h.method} failed with message: ${be.message}`),h.method,d):x(new r.ResponseError(r.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 r.ResponseError?D(W,h.method,d):W&&n.string(W.message)?x(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${h.method} failed with message: ${W.message}`),h.method,d):x(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${h.method} failed unexpectedly without providing any details.`),h.method,d)}}else x(new r.ResponseError(r.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:
|
|
34
|
+
${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=Xe.get(D);if(te(h,x),x!==void 0){Xe.delete(D);try{if(h.error){const N=h.error;x.reject(new r.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 Vn(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!==r.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===r.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===r.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:
|
|
35
|
+
${JSON.stringify(h,null,4)}`);const D=h;if(n.string(D.id)||n.number(D.id)){const x=D.id,N=Xe.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 g.Verbose:return JSON.stringify(h,null,4);case g.Compact:return JSON.stringify(h);default:return}}function En(h){if(!(oe===g.Off||!Ce))if(gt===C.Text){let D;(oe===g.Verbose||oe===g.Compact)&&h.params&&(D=`Params: ${mt(h.params)}
|
|
36
|
+
|
|
37
|
+
`),Ce.log(`Sending request '${h.method} - (${h.id})'.`,D)}else Te("send-request",h)}function $n(h){if(!(oe===g.Off||!Ce))if(gt===C.Text){let D;(oe===g.Verbose||oe===g.Compact)&&(h.params?D=`Params: ${mt(h.params)}
|
|
38
|
+
|
|
39
|
+
`:D=`No parameters provided.
|
|
40
|
+
|
|
41
|
+
`),Ce.log(`Sending notification '${h.method}'.`,D)}else Te("send-notification",h)}function Lt(h,D,x){if(!(oe===g.Off||!Ce))if(gt===C.Text){let N;(oe===g.Verbose||oe===g.Compact)&&(h.error&&h.error.data?N=`Error data: ${mt(h.error.data)}
|
|
42
|
+
|
|
43
|
+
`:h.result?N=`Result: ${mt(h.result)}
|
|
44
|
+
|
|
45
|
+
`:h.error===void 0&&(N=`No result returned.
|
|
46
|
+
|
|
47
|
+
`)),Ce.log(`Sending response '${D} - (${h.id})'. Processing request took ${Date.now()-x}ms`,N)}else Te("send-response",h)}function y(h){if(!(oe===g.Off||!Ce))if(gt===C.Text){let D;(oe===g.Verbose||oe===g.Compact)&&h.params&&(D=`Params: ${mt(h.params)}
|
|
48
|
+
|
|
49
|
+
`),Ce.log(`Received request '${h.method} - (${h.id})'.`,D)}else Te("receive-request",h)}function L(h){if(!(oe===g.Off||!Ce||h.method===M.type.method))if(gt===C.Text){let D;(oe===g.Verbose||oe===g.Compact)&&(h.params?D=`Params: ${mt(h.params)}
|
|
50
|
+
|
|
51
|
+
`:D=`No parameters provided.
|
|
52
|
+
|
|
53
|
+
`),Ce.log(`Received notification '${h.method}'.`,D)}else Te("receive-notification",h)}function te(h,D){if(!(oe===g.Off||!Ce))if(gt===C.Text){let x;if((oe===g.Verbose||oe===g.Compact)&&(h.error&&h.error.data?x=`Error data: ${mt(h.error.data)}
|
|
54
|
+
|
|
55
|
+
`:h.result?x=`Result: ${mt(h.result)}
|
|
56
|
+
|
|
57
|
+
`:h.error===void 0&&(x=`No result returned.
|
|
58
|
+
|
|
59
|
+
`)),D){const N=h.error?` Request failed: ${h.error.message} (${h.error.code}).`:"";Ce.log(`Received response '${D.method} - (${h.id})' in ${Date.now()-D.timerStart}ms.${N}`,x)}else Ce.log(`Received response ${h.id} without active response promise.`,x)}else Te("receive-response",h)}function Te(h,D){if(!Ce||oe===g.Off)return;const x={isLSPMessage:!0,type:h,message:D,timestamp:Date.now()};Ce.log(x)}function xe(){if(ln())throw new K(H.Closed,"Connection is closed.");if(St())throw new K(H.Disposed,"Connection is disposed.")}function ut(){if(kn())throw new K(H.AlreadyListening,"Connection is already listening")}function T(){if(!kn())throw new Error("Call listen() first.")}function U(h){return h===void 0?null:h}function X(h){if(h!==null)return h}function w(h){return h!=null&&!Array.isArray(h)&&typeof h=="object"}function ge(h,D){switch(h){case r.ParameterStructures.auto:return w(D)?X(D):[U(D)];case r.ParameterStructures.byName:if(!w(D))throw new Error("Received parameters by name but param is not an object literal.");return X(D);case r.ParameterStructures.byPosition:return[U(D)];default:throw new Error(`Unknown parameter structure ${h.toString()}`)}}function me(h,D){let x;const N=h.numberOfParams;switch(N){case 0:x=void 0;break;case 1:x=ge(h.parameterStructures,D[0]);break;default:x=[];for(let le=0;le<D.length&&le<N;le++)x.push(U(D[le]));if(D.length<N)for(let le=D.length;le<N;le++)x.push(null);break}return x}const J={sendNotification:(h,...D)=>{xe();let x,N;if(n.string(h)){x=h;const ce=D[0];let fe=0,d=r.ParameterStructures.auto;r.ParameterStructures.is(ce)&&(fe=1,d=ce);let S=D.length;const O=S-fe;switch(O){case 0:N=void 0;break;case 1:N=ge(d,D[fe]);break;default:if(d===r.ParameterStructures.byName)throw new Error(`Received ${O} parameters for 'by Name' notification parameter structure.`);N=D.slice(fe,S).map(W=>U(W));break}}else{const ce=D;x=h.method,N=me(h,ce)}const le={jsonrpc:He,method:x,params:N};return $n(le),R.write(le).catch(ce=>{throw V.error("Sending notification failed."),ce})},onNotification:(h,D)=>{xe();let x;return n.func(h)?Fe=h:D&&(n.string(h)?(x=h,ot.set(h,{type:void 0,handler:D})):(x=h.method,ot.set(h.method,{type:h,handler:D}))),{dispose:()=>{x!==void 0?ot.delete(x):Fe=void 0}}},onProgress:(h,D,x)=>{if(Qe.has(D))throw new Error(`Progress handler for token ${D} already registered`);return Qe.set(D,x),{dispose:()=>{Qe.delete(D)}}},sendProgress:(h,D,x)=>J.sendNotification(l.type,{token:D,value:x}),onUnhandledProgress:Rt.event,sendRequest:(h,...D)=>{xe(),T();let x,N,le;if(n.string(h)){x=h;const S=D[0],O=D[D.length-1];let W=0,de=r.ParameterStructures.auto;r.ParameterStructures.is(S)&&(W=1,de=S);let be=D.length;o.CancellationToken.is(O)&&(be=be-1,le=O);const _e=be-W;switch(_e){case 0:N=void 0;break;case 1:N=ge(de,D[W]);break;default:if(de===r.ParameterStructures.byName)throw new Error(`Received ${_e} parameters for 'by Name' request parameter structure.`);N=D.slice(W,be).map(Pn=>U(Pn));break}}else{const S=D;x=h.method,N=me(h,S);const O=h.numberOfParams;le=o.CancellationToken.is(S[O])?S[O]:void 0}const ce=Me++;let fe;le&&(fe=le.onCancellationRequested(()=>{const S=qe.sender.sendCancellation(J,ce);return S===void 0?(V.log(`Received no promise from cancellation strategy when cancelling id ${ce}`),Promise.resolve()):S.catch(()=>{V.log(`Sending cancellation messages for id ${ce} failed`)})}));const d={jsonrpc:He,id:ce,method:x,params:N};return En(d),typeof qe.sender.enableCancellation=="function"&&qe.sender.enableCancellation(d),new Promise(async(S,O)=>{const W=_e=>{S(_e),qe.sender.cleanup(ce),fe==null||fe.dispose()},de=_e=>{O(_e),qe.sender.cleanup(ce),fe==null||fe.dispose()},be={method:x,timerStart:Date.now(),resolve:W,reject:de};try{await R.write(d),Xe.set(ce,be)}catch(_e){throw V.error("Sending request failed."),be.reject(new r.ResponseError(r.ErrorCodes.MessageWriteError,_e.message?_e.message:"Unknown reason")),_e}})},onRequest:(h,D)=>{xe();let x=null;return p.is(h)?(x=void 0,Pe=h):n.string(h)?(x=null,D!==void 0&&(x=h,st.set(h,{handler:D,type:void 0}))):D!==void 0&&(x=h.method,st.set(h.method,{type:h,handler:D})),{dispose:()=>{x!==null&&(x!==void 0?st.delete(x):Pe=void 0)}}},hasPendingResponse:()=>Xe.size>0,trace:async(h,D,x)=>{let N=!1,le=C.Text;x!==void 0&&(n.boolean(x)?N=x:(N=x.sendNotification||!1,le=x.traceFormat||C.Text)),oe=h,gt=le,oe===g.Off?Ce=void 0:Ce=D,N&&!ln()&&!St()&&await J.sendNotification(k.type,{value:g.toString(h)})},onError:en.event,onClose:tn.event,onUnhandledNotification:Wt.event,onDispose:xt.event,end:()=>{R.end()},dispose:()=>{if(St())return;Ze=$.Disposed,xt.fire(void 0);const h=new r.ResponseError(r.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const D of Xe.values())D.reject(h);Xe=new Map,at=new Map,vt=new Set,Je=new i.LinkedMap,n.func(R.dispose)&&R.dispose(),n.func(v.dispose)&&v.dispose()},listen:()=>{xe(),ut(),Ze=$.Listening,v.listen(Rn)},inspect:()=>{(0,e.default)().console.log("inspect")}};return J.onNotification(M.type,h=>{if(oe===g.Off||!Ce)return;const D=oe===g.Verbose||oe===g.Compact;Ce.log(h.message,D?h.verbose:void 0)}),J.onNotification(l.type,h=>{const D=Qe.get(h.token);D?D(h.value):Rt.fire(h)}),J}t.createMessageConnection=P})(k2);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressType=t.ProgressToken=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.AbstractMessageBuffer=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.LRUCache=t.Touch=t.LinkedMap=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.Message=t.RAL=void 0,t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=void 0;const e=pe;Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return e.Message}}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return e.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return e.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return e.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return e.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return e.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return e.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return e.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return e.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return e.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return e.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return e.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return e.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return e.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return e.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return e.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return e.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return e.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return e.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return e.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return e.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return e.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return e.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return e.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return e.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return e.ParameterStructures}});const n=jr;Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:function(){return n.LinkedMap}}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:function(){return n.LRUCache}}),Object.defineProperty(t,"Touch",{enumerable:!0,get:function(){return n.Touch}});const r=Pc;Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return r.Disposable}});const i=Cr;Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return i.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return i.Emitter}});const s=vi;Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return s.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return s.CancellationToken}});const o=Rs;Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return o.SharedArraySenderStrategy}}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return o.SharedArrayReceiverStrategy}});const a=si;Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return a.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return a.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return a.ReadableStreamMessageReader}});const c=oi;Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return c.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return c.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return c.WriteableStreamMessageWriter}});const l=Ic;Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:function(){return l.AbstractMessageBuffer}});const f=k2;Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return f.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return f.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return f.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return f.createMessageConnection}}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:function(){return f.ProgressToken}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return f.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return f.Trace}}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:function(){return f.TraceValues}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return f.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return f.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return f.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return f.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return f.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return f.CancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return f.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return f.CancellationStrategy}}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:function(){return f.MessageStrategy}});const p=Gr;t.RAL=p.default})(Oa);Object.defineProperty(G1,"__esModule",{value:!0});const br=Oa;let R2=class x2 extends br.AbstractMessageBuffer{constructor(e="utf-8"){super(e),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return x2.emptyBuffer}fromString(e,n){return new TextEncoder().encode(e)}toString(e,n){return n==="ascii"?this.asciiDecoder.decode(e):new TextDecoder(n).decode(e)}asNative(e,n){return n===void 0?e:e.slice(0,n)}allocNative(e){return new Uint8Array(e)}};R2.emptyBuffer=new Uint8Array(0);let Jb=class{constructor(e){this.socket=e,this._onData=new br.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,br.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(e){return this.socket.addEventListener("close",e),br.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),br.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),br.Disposable.create(()=>this.socket.removeEventListener("end",e))}onData(e){return this._onData.event(e)}},Yb=class{constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener("close",e),br.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),br.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),br.Disposable.create(()=>this.socket.removeEventListener("end",e))}write(e,n){if(typeof e=="string"){if(n!==void 0&&n!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${n}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}};const Xb=new TextEncoder,E2=Object.freeze({messageBuffer:Object.freeze({create:t=>new R2(t)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(t,e)=>{if(e.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${e.charset}`);return Promise.resolve(Xb.encode(JSON.stringify(t,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(t,e)=>{if(!(t instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(e.charset).decode(t)))}})}),stream:Object.freeze({asReadableStream:t=>new Jb(t),asWritableStream:t=>new Yb(t)}),console,timer:Object.freeze({setTimeout(t,e,...n){const r=setTimeout(t,e,...n);return{dispose:()=>clearTimeout(r)}},setImmediate(t,...e){const n=setTimeout(t,0,...e);return{dispose:()=>clearTimeout(n)}},setInterval(t,e,...n){const r=setInterval(t,e,...n);return{dispose:()=>clearInterval(r)}}})});function Hu(){return E2}(function(t){function e(){br.RAL.install(E2)}t.install=e})(Hu||(Hu={}));G1.default=Hu;(function(t){var e=_t&&_t.__createBinding||(Object.create?function(c,l,f,p){p===void 0&&(p=f);var g=Object.getOwnPropertyDescriptor(l,f);(!g||("get"in g?!l.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return l[f]}}),Object.defineProperty(c,p,g)}:function(c,l,f,p){p===void 0&&(p=f),c[p]=l[f]}),n=_t&&_t.__exportStar||function(c,l){for(var f in c)f!=="default"&&!Object.prototype.hasOwnProperty.call(l,f)&&e(l,c,f)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.BrowserMessageWriter=t.BrowserMessageReader=void 0,G1.default.install();const i=Oa;n(Oa,t);class s extends i.AbstractMessageReader{constructor(l){super(),this._onData=new i.Emitter,this._messageListener=f=>{this._onData.fire(f.data)},l.addEventListener("error",f=>this.fireError(f)),l.onmessage=this._messageListener}listen(l){return this._onData.event(l)}}t.BrowserMessageReader=s;class o extends i.AbstractMessageWriter{constructor(l){super(),this.port=l,this.errorCount=0,l.addEventListener("error",f=>this.fireError(f))}write(l){try{return this.port.postMessage(l),Promise.resolve()}catch(f){return this.handleError(f,l),Promise.reject(f)}}handleError(l,f){this.errorCount++,this.fireError(l,f,this.errorCount)}end(){}}t.BrowserMessageWriter=o;function a(c,l,f,p){return f===void 0&&(f=i.NullLogger),i.ConnectionStrategy.is(p)&&(p={connectionStrategy:p}),(0,i.createMessageConnection)(c,l,f,p)}t.createMessageConnection=a})(Xi);var Np=Xi,P2={},Wu;(function(t){function e(n){return typeof n=="string"}t.is=e})(Wu||(Wu={}));var Fa;(function(t){function e(n){return typeof n=="string"}t.is=e})(Fa||(Fa={}));var Uu;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(Uu||(Uu={}));var Po;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(Po||(Po={}));var Jn;(function(t){function e(r,i){return r===Number.MAX_VALUE&&(r=Po.MAX_VALUE),i===Number.MAX_VALUE&&(i=Po.MAX_VALUE),{line:r,character:i}}t.create=e;function n(r){let i=r;return A.objectLiteral(i)&&A.uinteger(i.line)&&A.uinteger(i.character)}t.is=n})(Jn||(Jn={}));var At;(function(t){function e(r,i,s,o){if(A.uinteger(r)&&A.uinteger(i)&&A.uinteger(s)&&A.uinteger(o))return{start:Jn.create(r,i),end:Jn.create(s,o)};if(Jn.is(r)&&Jn.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${s}, ${o}]`)}t.create=e;function n(r){let i=r;return A.objectLiteral(i)&&Jn.is(i.start)&&Jn.is(i.end)}t.is=n})(At||(At={}));var Io;(function(t){function e(r,i){return{uri:r,range:i}}t.create=e;function n(r){let i=r;return A.objectLiteral(i)&&At.is(i.range)&&(A.string(i.uri)||A.undefined(i.uri))}t.is=n})(Io||(Io={}));var zu;(function(t){function e(r,i,s,o){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:o}}t.create=e;function n(r){let i=r;return A.objectLiteral(i)&&At.is(i.targetRange)&&A.string(i.targetUri)&&At.is(i.targetSelectionRange)&&(At.is(i.originSelectionRange)||A.undefined(i.originSelectionRange))}t.is=n})(zu||(zu={}));var La;(function(t){function e(r,i,s,o){return{red:r,green:i,blue:s,alpha:o}}t.create=e;function n(r){const i=r;return A.objectLiteral(i)&&A.numberRange(i.red,0,1)&&A.numberRange(i.green,0,1)&&A.numberRange(i.blue,0,1)&&A.numberRange(i.alpha,0,1)}t.is=n})(La||(La={}));var Bu;(function(t){function e(r,i){return{range:r,color:i}}t.create=e;function n(r){const i=r;return A.objectLiteral(i)&&At.is(i.range)&&La.is(i.color)}t.is=n})(Bu||(Bu={}));var Vu;(function(t){function e(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}t.create=e;function n(r){const i=r;return A.objectLiteral(i)&&A.string(i.label)&&(A.undefined(i.textEdit)||wr.is(i))&&(A.undefined(i.additionalTextEdits)||A.typedArray(i.additionalTextEdits,wr.is))}t.is=n})(Vu||(Vu={}));var Ku;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Ku||(Ku={}));var Gu;(function(t){function e(r,i,s,o,a,c){const l={startLine:r,endLine:i};return A.defined(s)&&(l.startCharacter=s),A.defined(o)&&(l.endCharacter=o),A.defined(a)&&(l.kind=a),A.defined(c)&&(l.collapsedText=c),l}t.create=e;function n(r){const i=r;return A.objectLiteral(i)&&A.uinteger(i.startLine)&&A.uinteger(i.startLine)&&(A.undefined(i.startCharacter)||A.uinteger(i.startCharacter))&&(A.undefined(i.endCharacter)||A.uinteger(i.endCharacter))&&(A.undefined(i.kind)||A.string(i.kind))}t.is=n})(Gu||(Gu={}));var Na;(function(t){function e(r,i){return{location:r,message:i}}t.create=e;function n(r){let i=r;return A.defined(i)&&Io.is(i.location)&&A.string(i.message)}t.is=n})(Na||(Na={}));var Qu;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Qu||(Qu={}));var Ju;(function(t){t.Unnecessary=1,t.Deprecated=2})(Ju||(Ju={}));var Yu;(function(t){function e(n){const r=n;return A.objectLiteral(r)&&A.string(r.href)}t.is=e})(Yu||(Yu={}));var Mo;(function(t){function e(r,i,s,o,a,c){let l={range:r,message:i};return A.defined(s)&&(l.severity=s),A.defined(o)&&(l.code=o),A.defined(a)&&(l.source=a),A.defined(c)&&(l.relatedInformation=c),l}t.create=e;function n(r){var i;let s=r;return A.defined(s)&&At.is(s.range)&&A.string(s.message)&&(A.number(s.severity)||A.undefined(s.severity))&&(A.integer(s.code)||A.string(s.code)||A.undefined(s.code))&&(A.undefined(s.codeDescription)||A.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(A.string(s.source)||A.undefined(s.source))&&(A.undefined(s.relatedInformation)||A.typedArray(s.relatedInformation,Na.is))}t.is=n})(Mo||(Mo={}));var Qi;(function(t){function e(r,i,...s){let o={title:r,command:i};return A.defined(s)&&s.length>0&&(o.arguments=s),o}t.create=e;function n(r){let i=r;return A.defined(i)&&A.string(i.title)&&A.string(i.command)}t.is=n})(Qi||(Qi={}));var wr;(function(t){function e(s,o){return{range:s,newText:o}}t.replace=e;function n(s,o){return{range:{start:s,end:s},newText:o}}t.insert=n;function r(s){return{range:s,newText:""}}t.del=r;function i(s){const o=s;return A.objectLiteral(o)&&A.string(o.newText)&&At.is(o.range)}t.is=i})(wr||(wr={}));var Wi;(function(t){function e(r,i,s){const o={label:r};return i!==void 0&&(o.needsConfirmation=i),s!==void 0&&(o.description=s),o}t.create=e;function n(r){const i=r;return A.objectLiteral(i)&&A.string(i.label)&&(A.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(A.string(i.description)||i.description===void 0)}t.is=n})(Wi||(Wi={}));var an;(function(t){function e(n){const r=n;return A.string(r)}t.is=e})(an||(an={}));var Or;(function(t){function e(s,o,a){return{range:s,newText:o,annotationId:a}}t.replace=e;function n(s,o,a){return{range:{start:s,end:s},newText:o,annotationId:a}}t.insert=n;function r(s,o){return{range:s,newText:"",annotationId:o}}t.del=r;function i(s){const o=s;return wr.is(o)&&(Wi.is(o.annotationId)||an.is(o.annotationId))}t.is=i})(Or||(Or={}));var Oo;(function(t){function e(r,i){return{textDocument:r,edits:i}}t.create=e;function n(r){let i=r;return A.defined(i)&&Ao.is(i.textDocument)&&Array.isArray(i.edits)}t.is=n})(Oo||(Oo={}));var xs;(function(t){function e(r,i,s){let o={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(r){let i=r;return i&&i.kind==="create"&&A.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||A.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||A.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||an.is(i.annotationId))}t.is=n})(xs||(xs={}));var Es;(function(t){function e(r,i,s,o){let a={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(a.options=s),o!==void 0&&(a.annotationId=o),a}t.create=e;function n(r){let i=r;return i&&i.kind==="rename"&&A.string(i.oldUri)&&A.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||A.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||A.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||an.is(i.annotationId))}t.is=n})(Es||(Es={}));var Ps;(function(t){function e(r,i,s){let o={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(r){let i=r;return i&&i.kind==="delete"&&A.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||A.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||A.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||an.is(i.annotationId))}t.is=n})(Ps||(Ps={}));var $a;(function(t){function e(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>A.string(i.kind)?xs.is(i)||Es.is(i)||Ps.is(i):Oo.is(i)))}t.is=e})($a||($a={}));class fa{constructor(e,n){this.edits=e,this.changeAnnotations=n}insert(e,n,r){let i,s;if(r===void 0?i=wr.insert(e,n):an.is(r)?(s=r,i=Or.insert(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=Or.insert(e,n,s)),this.edits.push(i),s!==void 0)return s}replace(e,n,r){let i,s;if(r===void 0?i=wr.replace(e,n):an.is(r)?(s=r,i=Or.replace(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=Or.replace(e,n,s)),this.edits.push(i),s!==void 0)return s}delete(e,n){let r,i;if(n===void 0?r=wr.del(e):an.is(n)?(i=n,r=Or.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Or.del(e,i)),this.edits.push(r),i!==void 0)return i}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}}class $p{constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,n){let r;if(an.is(e)?r=e:(r=this.nextId(),n=e),this._annotations[r]!==void 0)throw new Error(`Id ${r} is already in use.`);if(n===void 0)throw new Error(`No annotation provided for id ${r}`);return this._annotations[r]=n,this._size++,r}nextId(){return this._counter++,this._counter.toString()}}class Zb{constructor(e){this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new $p(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(n=>{if(Oo.is(n)){const r=new fa(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):e.changes&&Object.keys(e.changes).forEach(n=>{const r=new fa(e.changes[n]);this._textEditChanges[n]=r})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(Ao.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const n={uri:e.uri,version:e.version};let r=this._textEditChanges[n.uri];if(!r){const i=[],s={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(s),r=new fa(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let n=this._textEditChanges[e];if(!n){let r=[];this._workspaceEdit.changes[e]=r,n=new fa(r),this._textEditChanges[e]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new $p,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;Wi.is(n)||an.is(n)?i=n:r=n;let s,o;if(i===void 0?s=xs.create(e,r):(o=an.is(i)?i:this._changeAnnotations.manage(i),s=xs.create(e,r,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o}renameFile(e,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let s;Wi.is(r)||an.is(r)?s=r:i=r;let o,a;if(s===void 0?o=Es.create(e,n,i):(a=an.is(s)?s:this._changeAnnotations.manage(s),o=Es.create(e,n,i,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a}deleteFile(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;Wi.is(n)||an.is(n)?i=n:r=n;let s,o;if(i===void 0?s=Ps.create(e,r):(o=an.is(i)?i:this._changeAnnotations.manage(i),s=Ps.create(e,r,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o}}var Xu;(function(t){function e(r){return{uri:r}}t.create=e;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)}t.is=n})(Xu||(Xu={}));var Zu;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)&&A.integer(i.version)}t.is=n})(Zu||(Zu={}));var Ao;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)&&(i.version===null||A.integer(i.version))}t.is=n})(Ao||(Ao={}));var ed;(function(t){function e(r,i,s,o){return{uri:r,languageId:i,version:s,text:o}}t.create=e;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)&&A.string(i.languageId)&&A.integer(i.version)&&A.string(i.text)}t.is=n})(ed||(ed={}));var qa;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){const r=n;return r===t.PlainText||r===t.Markdown}t.is=e})(qa||(qa={}));var Is;(function(t){function e(n){const r=n;return A.objectLiteral(n)&&qa.is(r.kind)&&A.string(r.value)}t.is=e})(Is||(Is={}));var td;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(td||(td={}));var nd;(function(t){t.PlainText=1,t.Snippet=2})(nd||(nd={}));var rd;(function(t){t.Deprecated=1})(rd||(rd={}));var id;(function(t){function e(r,i,s){return{newText:r,insert:i,replace:s}}t.create=e;function n(r){const i=r;return i&&A.string(i.newText)&&At.is(i.insert)&&At.is(i.replace)}t.is=n})(id||(id={}));var sd;(function(t){t.asIs=1,t.adjustIndentation=2})(sd||(sd={}));var od;(function(t){function e(n){const r=n;return r&&(A.string(r.detail)||r.detail===void 0)&&(A.string(r.description)||r.description===void 0)}t.is=e})(od||(od={}));var ad;(function(t){function e(n){return{label:n}}t.create=e})(ad||(ad={}));var cd;(function(t){function e(n,r){return{items:n||[],isIncomplete:!!r}}t.create=e})(cd||(cd={}));var Fo;(function(t){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(r){const i=r;return A.string(i)||A.objectLiteral(i)&&A.string(i.language)&&A.string(i.value)}t.is=n})(Fo||(Fo={}));var ld;(function(t){function e(n){let r=n;return!!r&&A.objectLiteral(r)&&(Is.is(r.contents)||Fo.is(r.contents)||A.typedArray(r.contents,Fo.is))&&(n.range===void 0||At.is(n.range))}t.is=e})(ld||(ld={}));var ud;(function(t){function e(n,r){return r?{label:n,documentation:r}:{label:n}}t.create=e})(ud||(ud={}));var dd;(function(t){function e(n,r,...i){let s={label:n};return A.defined(r)&&(s.documentation=r),A.defined(i)?s.parameters=i:s.parameters=[],s}t.create=e})(dd||(dd={}));var fd;(function(t){t.Text=1,t.Read=2,t.Write=3})(fd||(fd={}));var hd;(function(t){function e(n,r){let i={range:n};return A.number(r)&&(i.kind=r),i}t.create=e})(hd||(hd={}));var pd;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(pd||(pd={}));var gd;(function(t){t.Deprecated=1})(gd||(gd={}));var md;(function(t){function e(n,r,i,s,o){let a={name:n,kind:r,location:{uri:s,range:i}};return o&&(a.containerName=o),a}t.create=e})(md||(md={}));var yd;(function(t){function e(n,r,i,s){return s!==void 0?{name:n,kind:r,location:{uri:i,range:s}}:{name:n,kind:r,location:{uri:i}}}t.create=e})(yd||(yd={}));var bd;(function(t){function e(r,i,s,o,a,c){let l={name:r,detail:i,kind:s,range:o,selectionRange:a};return c!==void 0&&(l.children=c),l}t.create=e;function n(r){let i=r;return i&&A.string(i.name)&&A.number(i.kind)&&At.is(i.range)&&At.is(i.selectionRange)&&(i.detail===void 0||A.string(i.detail))&&(i.deprecated===void 0||A.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}t.is=n})(bd||(bd={}));var vd;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(vd||(vd={}));var Lo;(function(t){t.Invoked=1,t.Automatic=2})(Lo||(Lo={}));var wd;(function(t){function e(r,i,s){let o={diagnostics:r};return i!=null&&(o.only=i),s!=null&&(o.triggerKind=s),o}t.create=e;function n(r){let i=r;return A.defined(i)&&A.typedArray(i.diagnostics,Mo.is)&&(i.only===void 0||A.typedArray(i.only,A.string))&&(i.triggerKind===void 0||i.triggerKind===Lo.Invoked||i.triggerKind===Lo.Automatic)}t.is=n})(wd||(wd={}));var Cd;(function(t){function e(r,i,s){let o={title:r},a=!0;return typeof i=="string"?(a=!1,o.kind=i):Qi.is(i)?o.command=i:o.edit=i,a&&s!==void 0&&(o.kind=s),o}t.create=e;function n(r){let i=r;return i&&A.string(i.title)&&(i.diagnostics===void 0||A.typedArray(i.diagnostics,Mo.is))&&(i.kind===void 0||A.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Qi.is(i.command))&&(i.isPreferred===void 0||A.boolean(i.isPreferred))&&(i.edit===void 0||$a.is(i.edit))}t.is=n})(Cd||(Cd={}));var _d;(function(t){function e(r,i){let s={range:r};return A.defined(i)&&(s.data=i),s}t.create=e;function n(r){let i=r;return A.defined(i)&&At.is(i.range)&&(A.undefined(i.command)||Qi.is(i.command))}t.is=n})(_d||(_d={}));var Sd;(function(t){function e(r,i){return{tabSize:r,insertSpaces:i}}t.create=e;function n(r){let i=r;return A.defined(i)&&A.uinteger(i.tabSize)&&A.boolean(i.insertSpaces)}t.is=n})(Sd||(Sd={}));var Dd;(function(t){function e(r,i,s){return{range:r,target:i,data:s}}t.create=e;function n(r){let i=r;return A.defined(i)&&At.is(i.range)&&(A.undefined(i.target)||A.string(i.target))}t.is=n})(Dd||(Dd={}));var Td;(function(t){function e(r,i){return{range:r,parent:i}}t.create=e;function n(r){let i=r;return A.objectLiteral(i)&&At.is(i.range)&&(i.parent===void 0||t.is(i.parent))}t.is=n})(Td||(Td={}));var kd;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(kd||(kd={}));var Rd;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Rd||(Rd={}));var xd;(function(t){function e(n){const r=n;return A.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}t.is=e})(xd||(xd={}));var Ed;(function(t){function e(r,i){return{range:r,text:i}}t.create=e;function n(r){const i=r;return i!=null&&At.is(i.range)&&A.string(i.text)}t.is=n})(Ed||(Ed={}));var Pd;(function(t){function e(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}t.create=e;function n(r){const i=r;return i!=null&&At.is(i.range)&&A.boolean(i.caseSensitiveLookup)&&(A.string(i.variableName)||i.variableName===void 0)}t.is=n})(Pd||(Pd={}));var Id;(function(t){function e(r,i){return{range:r,expression:i}}t.create=e;function n(r){const i=r;return i!=null&&At.is(i.range)&&(A.string(i.expression)||i.expression===void 0)}t.is=n})(Id||(Id={}));var Md;(function(t){function e(r,i){return{frameId:r,stoppedLocation:i}}t.create=e;function n(r){const i=r;return A.defined(i)&&At.is(r.stoppedLocation)}t.is=n})(Md||(Md={}));var ja;(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}t.is=e})(ja||(ja={}));var Ha;(function(t){function e(r){return{value:r}}t.create=e;function n(r){const i=r;return A.objectLiteral(i)&&(i.tooltip===void 0||A.string(i.tooltip)||Is.is(i.tooltip))&&(i.location===void 0||Io.is(i.location))&&(i.command===void 0||Qi.is(i.command))}t.is=n})(Ha||(Ha={}));var Od;(function(t){function e(r,i,s){const o={position:r,label:i};return s!==void 0&&(o.kind=s),o}t.create=e;function n(r){const i=r;return A.objectLiteral(i)&&Jn.is(i.position)&&(A.string(i.label)||A.typedArray(i.label,Ha.is))&&(i.kind===void 0||ja.is(i.kind))&&i.textEdits===void 0||A.typedArray(i.textEdits,wr.is)&&(i.tooltip===void 0||A.string(i.tooltip)||Is.is(i.tooltip))&&(i.paddingLeft===void 0||A.boolean(i.paddingLeft))&&(i.paddingRight===void 0||A.boolean(i.paddingRight))}t.is=n})(Od||(Od={}));var Ad;(function(t){function e(n){return{kind:"snippet",value:n}}t.createSnippet=e})(Ad||(Ad={}));var Fd;(function(t){function e(n,r,i,s){return{insertText:n,filterText:r,range:i,command:s}}t.create=e})(Fd||(Fd={}));var Ld;(function(t){function e(n){return{items:n}}t.create=e})(Ld||(Ld={}));var Nd;(function(t){t.Invoked=0,t.Automatic=1})(Nd||(Nd={}));var $d;(function(t){function e(n,r){return{range:n,text:r}}t.create=e})($d||($d={}));var qd;(function(t){function e(n,r){return{triggerKind:n,selectedCompletionInfo:r}}t.create=e})(qd||(qd={}));var jd;(function(t){function e(n){const r=n;return A.objectLiteral(r)&&Fa.is(r.uri)&&A.string(r.name)}t.is=e})(jd||(jd={}));const e4=[`
|
|
60
|
+
`,`\r
|
|
61
|
+
`,"\r"];var Hd;(function(t){function e(s,o,a,c){return new t4(s,o,a,c)}t.create=e;function n(s){let o=s;return!!(A.defined(o)&&A.string(o.uri)&&(A.undefined(o.languageId)||A.string(o.languageId))&&A.uinteger(o.lineCount)&&A.func(o.getText)&&A.func(o.positionAt)&&A.func(o.offsetAt))}t.is=n;function r(s,o){let a=s.getText(),c=i(o,(f,p)=>{let g=f.range.start.line-p.range.start.line;return g===0?f.range.start.character-p.range.start.character:g}),l=a.length;for(let f=c.length-1;f>=0;f--){let p=c[f],g=s.offsetAt(p.range.start),_=s.offsetAt(p.range.end);if(_<=l)a=a.substring(0,g)+p.newText+a.substring(_,a.length);else throw new Error("Overlapping edit");l=g}return a}t.applyEdits=r;function i(s,o){if(s.length<=1)return s;const a=s.length/2|0,c=s.slice(0,a),l=s.slice(a);i(c,o),i(l,o);let f=0,p=0,g=0;for(;f<c.length&&p<l.length;)o(c[f],l[p])<=0?s[g++]=c[f++]:s[g++]=l[p++];for(;f<c.length;)s[g++]=c[f++];for(;p<l.length;)s[g++]=l[p++];return s}})(Hd||(Hd={}));class t4{constructor(e,n,r,i){this._uri=e,this._languageId=n,this._version=r,this._content=i,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),r=this.offsetAt(e.end);return this._content.substring(n,r)}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,r=!0;for(let i=0;i<n.length;i++){r&&(e.push(i),r=!1);let s=n.charAt(i);r=s==="\r"||s===`
|
|
62
|
+
`,s==="\r"&&i+1<n.length&&n.charAt(i+1)===`
|
|
63
|
+
`&&i++}r&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Jn.create(0,e);for(;r<i;){let o=Math.floor((r+i)/2);n[o]>e?i=o:r=o+1}let s=r-1;return Jn.create(s,e-n[s])}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let r=n[e.line],i=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(r+e.character,i),r)}get lineCount(){return this.getLineOffsets().length}}var A;(function(t){const e=Object.prototype.toString;function n(_){return typeof _<"u"}t.defined=n;function r(_){return typeof _>"u"}t.undefined=r;function i(_){return _===!0||_===!1}t.boolean=i;function s(_){return e.call(_)==="[object String]"}t.string=s;function o(_){return e.call(_)==="[object Number]"}t.number=o;function a(_,C,k){return e.call(_)==="[object Number]"&&C<=_&&_<=k}t.numberRange=a;function c(_){return e.call(_)==="[object Number]"&&-2147483648<=_&&_<=2147483647}t.integer=c;function l(_){return e.call(_)==="[object Number]"&&0<=_&&_<=2147483647}t.uinteger=l;function f(_){return e.call(_)==="[object Function]"}t.func=f;function p(_){return _!==null&&typeof _=="object"}t.objectLiteral=p;function g(_,C){return Array.isArray(_)&&_.every(C)}t.typedArray=g})(A||(A={}));const n4=Object.freeze(Object.defineProperty({__proto__:null,get AnnotatedTextEdit(){return Or},get ChangeAnnotation(){return Wi},get ChangeAnnotationIdentifier(){return an},get CodeAction(){return Cd},get CodeActionContext(){return wd},get CodeActionKind(){return vd},get CodeActionTriggerKind(){return Lo},get CodeDescription(){return Yu},get CodeLens(){return _d},get Color(){return La},get ColorInformation(){return Bu},get ColorPresentation(){return Vu},get Command(){return Qi},get CompletionItem(){return ad},get CompletionItemKind(){return td},get CompletionItemLabelDetails(){return od},get CompletionItemTag(){return rd},get CompletionList(){return cd},get CreateFile(){return xs},get DeleteFile(){return Ps},get Diagnostic(){return Mo},get DiagnosticRelatedInformation(){return Na},get DiagnosticSeverity(){return Qu},get DiagnosticTag(){return Ju},get DocumentHighlight(){return hd},get DocumentHighlightKind(){return fd},get DocumentLink(){return Dd},get DocumentSymbol(){return bd},get DocumentUri(){return Wu},EOL:e4,get FoldingRange(){return Gu},get FoldingRangeKind(){return Ku},get FormattingOptions(){return Sd},get Hover(){return ld},get InlayHint(){return Od},get InlayHintKind(){return ja},get InlayHintLabelPart(){return Ha},get InlineCompletionContext(){return qd},get InlineCompletionItem(){return Fd},get InlineCompletionList(){return Ld},get InlineCompletionTriggerKind(){return Nd},get InlineValueContext(){return Md},get InlineValueEvaluatableExpression(){return Id},get InlineValueText(){return Ed},get InlineValueVariableLookup(){return Pd},get InsertReplaceEdit(){return id},get InsertTextFormat(){return nd},get InsertTextMode(){return sd},get Location(){return Io},get LocationLink(){return zu},get MarkedString(){return Fo},get MarkupContent(){return Is},get MarkupKind(){return qa},get OptionalVersionedTextDocumentIdentifier(){return Ao},get ParameterInformation(){return ud},get Position(){return Jn},get Range(){return At},get RenameFile(){return Es},get SelectedCompletionInfo(){return $d},get SelectionRange(){return Td},get SemanticTokenModifiers(){return Rd},get SemanticTokenTypes(){return kd},get SemanticTokens(){return xd},get SignatureInformation(){return dd},get StringValue(){return Ad},get SymbolInformation(){return md},get SymbolKind(){return pd},get SymbolTag(){return gd},get TextDocument(){return Hd},get TextDocumentEdit(){return Oo},get TextDocumentIdentifier(){return Xu},get TextDocumentItem(){return ed},get TextEdit(){return wr},get URI(){return Fa},get VersionedTextDocumentIdentifier(){return Zu},WorkspaceChange:Zb,get WorkspaceEdit(){return $a},get WorkspaceFolder(){return jd},get WorkspaceSymbol(){return yd},get integer(){return Uu},get uinteger(){return Po}},Symbol.toStringTag,{value:"Module"})),J1=y2(n4);var ze={};Object.defineProperty(ze,"__esModule",{value:!0});ze.ProtocolNotificationType=ze.ProtocolNotificationType0=ze.ProtocolRequestType=ze.ProtocolRequestType0=ze.RegistrationType=ze.MessageDirection=void 0;const Ms=Xi;var qp;(function(t){t.clientToServer="clientToServer",t.serverToClient="serverToClient",t.both="both"})(qp||(ze.MessageDirection=qp={}));class r4{constructor(e){this.method=e}}ze.RegistrationType=r4;class i4 extends Ms.RequestType0{constructor(e){super(e)}}ze.ProtocolRequestType0=i4;class s4 extends Ms.RequestType{constructor(e){super(e,Ms.ParameterStructures.byName)}}ze.ProtocolRequestType=s4;class o4 extends Ms.NotificationType0{constructor(e){super(e)}}ze.ProtocolNotificationType0=o4;class a4 extends Ms.NotificationType{constructor(e){super(e,Ms.ParameterStructures.byName)}}ze.ProtocolNotificationType=a4;var I2={},Mt={};Object.defineProperty(Mt,"__esModule",{value:!0});Mt.objectLiteral=Mt.typedArray=Mt.stringArray=Mt.array=Mt.func=Mt.error=Mt.number=Mt.string=Mt.boolean=void 0;function c4(t){return t===!0||t===!1}Mt.boolean=c4;function M2(t){return typeof t=="string"||t instanceof String}Mt.string=M2;function l4(t){return typeof t=="number"||t instanceof Number}Mt.number=l4;function u4(t){return t instanceof Error}Mt.error=u4;function d4(t){return typeof t=="function"}Mt.func=d4;function O2(t){return Array.isArray(t)}Mt.array=O2;function f4(t){return O2(t)&&t.every(e=>M2(e))}Mt.stringArray=f4;function h4(t,e){return Array.isArray(t)&&t.every(e)}Mt.typedArray=h4;function p4(t){return t!==null&&typeof t=="object"}Mt.objectLiteral=p4;var Mc={};Object.defineProperty(Mc,"__esModule",{value:!0});Mc.ImplementationRequest=void 0;const jp=ze;var Hp;(function(t){t.method="textDocument/implementation",t.messageDirection=jp.MessageDirection.clientToServer,t.type=new jp.ProtocolRequestType(t.method)})(Hp||(Mc.ImplementationRequest=Hp={}));var Oc={};Object.defineProperty(Oc,"__esModule",{value:!0});Oc.TypeDefinitionRequest=void 0;const Wp=ze;var Up;(function(t){t.method="textDocument/typeDefinition",t.messageDirection=Wp.MessageDirection.clientToServer,t.type=new Wp.ProtocolRequestType(t.method)})(Up||(Oc.TypeDefinitionRequest=Up={}));var Os={};Object.defineProperty(Os,"__esModule",{value:!0});Os.DidChangeWorkspaceFoldersNotification=Os.WorkspaceFoldersRequest=void 0;const Wa=ze;var zp;(function(t){t.method="workspace/workspaceFolders",t.messageDirection=Wa.MessageDirection.serverToClient,t.type=new Wa.ProtocolRequestType0(t.method)})(zp||(Os.WorkspaceFoldersRequest=zp={}));var Bp;(function(t){t.method="workspace/didChangeWorkspaceFolders",t.messageDirection=Wa.MessageDirection.clientToServer,t.type=new Wa.ProtocolNotificationType(t.method)})(Bp||(Os.DidChangeWorkspaceFoldersNotification=Bp={}));var Ac={};Object.defineProperty(Ac,"__esModule",{value:!0});Ac.ConfigurationRequest=void 0;const Vp=ze;var Kp;(function(t){t.method="workspace/configuration",t.messageDirection=Vp.MessageDirection.serverToClient,t.type=new Vp.ProtocolRequestType(t.method)})(Kp||(Ac.ConfigurationRequest=Kp={}));var As={};Object.defineProperty(As,"__esModule",{value:!0});As.ColorPresentationRequest=As.DocumentColorRequest=void 0;const Ua=ze;var Gp;(function(t){t.method="textDocument/documentColor",t.messageDirection=Ua.MessageDirection.clientToServer,t.type=new Ua.ProtocolRequestType(t.method)})(Gp||(As.DocumentColorRequest=Gp={}));var Qp;(function(t){t.method="textDocument/colorPresentation",t.messageDirection=Ua.MessageDirection.clientToServer,t.type=new Ua.ProtocolRequestType(t.method)})(Qp||(As.ColorPresentationRequest=Qp={}));var Fs={};Object.defineProperty(Fs,"__esModule",{value:!0});Fs.FoldingRangeRefreshRequest=Fs.FoldingRangeRequest=void 0;const za=ze;var Jp;(function(t){t.method="textDocument/foldingRange",t.messageDirection=za.MessageDirection.clientToServer,t.type=new za.ProtocolRequestType(t.method)})(Jp||(Fs.FoldingRangeRequest=Jp={}));var Yp;(function(t){t.method="workspace/foldingRange/refresh",t.messageDirection=za.MessageDirection.serverToClient,t.type=new za.ProtocolRequestType0(t.method)})(Yp||(Fs.FoldingRangeRefreshRequest=Yp={}));var Fc={};Object.defineProperty(Fc,"__esModule",{value:!0});Fc.DeclarationRequest=void 0;const Xp=ze;var Zp;(function(t){t.method="textDocument/declaration",t.messageDirection=Xp.MessageDirection.clientToServer,t.type=new Xp.ProtocolRequestType(t.method)})(Zp||(Fc.DeclarationRequest=Zp={}));var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});Lc.SelectionRangeRequest=void 0;const eg=ze;var tg;(function(t){t.method="textDocument/selectionRange",t.messageDirection=eg.MessageDirection.clientToServer,t.type=new eg.ProtocolRequestType(t.method)})(tg||(Lc.SelectionRangeRequest=tg={}));var ai={};Object.defineProperty(ai,"__esModule",{value:!0});ai.WorkDoneProgressCancelNotification=ai.WorkDoneProgressCreateRequest=ai.WorkDoneProgress=void 0;const g4=Xi,Ba=ze;var ng;(function(t){t.type=new g4.ProgressType;function e(n){return n===t.type}t.is=e})(ng||(ai.WorkDoneProgress=ng={}));var rg;(function(t){t.method="window/workDoneProgress/create",t.messageDirection=Ba.MessageDirection.serverToClient,t.type=new Ba.ProtocolRequestType(t.method)})(rg||(ai.WorkDoneProgressCreateRequest=rg={}));var ig;(function(t){t.method="window/workDoneProgress/cancel",t.messageDirection=Ba.MessageDirection.clientToServer,t.type=new Ba.ProtocolNotificationType(t.method)})(ig||(ai.WorkDoneProgressCancelNotification=ig={}));var ci={};Object.defineProperty(ci,"__esModule",{value:!0});ci.CallHierarchyOutgoingCallsRequest=ci.CallHierarchyIncomingCallsRequest=ci.CallHierarchyPrepareRequest=void 0;const Ls=ze;var sg;(function(t){t.method="textDocument/prepareCallHierarchy",t.messageDirection=Ls.MessageDirection.clientToServer,t.type=new Ls.ProtocolRequestType(t.method)})(sg||(ci.CallHierarchyPrepareRequest=sg={}));var og;(function(t){t.method="callHierarchy/incomingCalls",t.messageDirection=Ls.MessageDirection.clientToServer,t.type=new Ls.ProtocolRequestType(t.method)})(og||(ci.CallHierarchyIncomingCallsRequest=og={}));var ag;(function(t){t.method="callHierarchy/outgoingCalls",t.messageDirection=Ls.MessageDirection.clientToServer,t.type=new Ls.ProtocolRequestType(t.method)})(ag||(ci.CallHierarchyOutgoingCallsRequest=ag={}));var On={};Object.defineProperty(On,"__esModule",{value:!0});On.SemanticTokensRefreshRequest=On.SemanticTokensRangeRequest=On.SemanticTokensDeltaRequest=On.SemanticTokensRequest=On.SemanticTokensRegistrationType=On.TokenFormat=void 0;const Vr=ze;var cg;(function(t){t.Relative="relative"})(cg||(On.TokenFormat=cg={}));var No;(function(t){t.method="textDocument/semanticTokens",t.type=new Vr.RegistrationType(t.method)})(No||(On.SemanticTokensRegistrationType=No={}));var lg;(function(t){t.method="textDocument/semanticTokens/full",t.messageDirection=Vr.MessageDirection.clientToServer,t.type=new Vr.ProtocolRequestType(t.method),t.registrationMethod=No.method})(lg||(On.SemanticTokensRequest=lg={}));var ug;(function(t){t.method="textDocument/semanticTokens/full/delta",t.messageDirection=Vr.MessageDirection.clientToServer,t.type=new Vr.ProtocolRequestType(t.method),t.registrationMethod=No.method})(ug||(On.SemanticTokensDeltaRequest=ug={}));var dg;(function(t){t.method="textDocument/semanticTokens/range",t.messageDirection=Vr.MessageDirection.clientToServer,t.type=new Vr.ProtocolRequestType(t.method),t.registrationMethod=No.method})(dg||(On.SemanticTokensRangeRequest=dg={}));var fg;(function(t){t.method="workspace/semanticTokens/refresh",t.messageDirection=Vr.MessageDirection.serverToClient,t.type=new Vr.ProtocolRequestType0(t.method)})(fg||(On.SemanticTokensRefreshRequest=fg={}));var Nc={};Object.defineProperty(Nc,"__esModule",{value:!0});Nc.ShowDocumentRequest=void 0;const hg=ze;var pg;(function(t){t.method="window/showDocument",t.messageDirection=hg.MessageDirection.serverToClient,t.type=new hg.ProtocolRequestType(t.method)})(pg||(Nc.ShowDocumentRequest=pg={}));var $c={};Object.defineProperty($c,"__esModule",{value:!0});$c.LinkedEditingRangeRequest=void 0;const gg=ze;var mg;(function(t){t.method="textDocument/linkedEditingRange",t.messageDirection=gg.MessageDirection.clientToServer,t.type=new gg.ProtocolRequestType(t.method)})(mg||($c.LinkedEditingRangeRequest=mg={}));var hn={};Object.defineProperty(hn,"__esModule",{value:!0});hn.WillDeleteFilesRequest=hn.DidDeleteFilesNotification=hn.DidRenameFilesNotification=hn.WillRenameFilesRequest=hn.DidCreateFilesNotification=hn.WillCreateFilesRequest=hn.FileOperationPatternKind=void 0;const Zn=ze;var yg;(function(t){t.file="file",t.folder="folder"})(yg||(hn.FileOperationPatternKind=yg={}));var bg;(function(t){t.method="workspace/willCreateFiles",t.messageDirection=Zn.MessageDirection.clientToServer,t.type=new Zn.ProtocolRequestType(t.method)})(bg||(hn.WillCreateFilesRequest=bg={}));var vg;(function(t){t.method="workspace/didCreateFiles",t.messageDirection=Zn.MessageDirection.clientToServer,t.type=new Zn.ProtocolNotificationType(t.method)})(vg||(hn.DidCreateFilesNotification=vg={}));var wg;(function(t){t.method="workspace/willRenameFiles",t.messageDirection=Zn.MessageDirection.clientToServer,t.type=new Zn.ProtocolRequestType(t.method)})(wg||(hn.WillRenameFilesRequest=wg={}));var Cg;(function(t){t.method="workspace/didRenameFiles",t.messageDirection=Zn.MessageDirection.clientToServer,t.type=new Zn.ProtocolNotificationType(t.method)})(Cg||(hn.DidRenameFilesNotification=Cg={}));var _g;(function(t){t.method="workspace/didDeleteFiles",t.messageDirection=Zn.MessageDirection.clientToServer,t.type=new Zn.ProtocolNotificationType(t.method)})(_g||(hn.DidDeleteFilesNotification=_g={}));var Sg;(function(t){t.method="workspace/willDeleteFiles",t.messageDirection=Zn.MessageDirection.clientToServer,t.type=new Zn.ProtocolRequestType(t.method)})(Sg||(hn.WillDeleteFilesRequest=Sg={}));var li={};Object.defineProperty(li,"__esModule",{value:!0});li.MonikerRequest=li.MonikerKind=li.UniquenessLevel=void 0;const Dg=ze;var Tg;(function(t){t.document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global"})(Tg||(li.UniquenessLevel=Tg={}));var kg;(function(t){t.$import="import",t.$export="export",t.local="local"})(kg||(li.MonikerKind=kg={}));var Rg;(function(t){t.method="textDocument/moniker",t.messageDirection=Dg.MessageDirection.clientToServer,t.type=new Dg.ProtocolRequestType(t.method)})(Rg||(li.MonikerRequest=Rg={}));var ui={};Object.defineProperty(ui,"__esModule",{value:!0});ui.TypeHierarchySubtypesRequest=ui.TypeHierarchySupertypesRequest=ui.TypeHierarchyPrepareRequest=void 0;const Ns=ze;var xg;(function(t){t.method="textDocument/prepareTypeHierarchy",t.messageDirection=Ns.MessageDirection.clientToServer,t.type=new Ns.ProtocolRequestType(t.method)})(xg||(ui.TypeHierarchyPrepareRequest=xg={}));var Eg;(function(t){t.method="typeHierarchy/supertypes",t.messageDirection=Ns.MessageDirection.clientToServer,t.type=new Ns.ProtocolRequestType(t.method)})(Eg||(ui.TypeHierarchySupertypesRequest=Eg={}));var Pg;(function(t){t.method="typeHierarchy/subtypes",t.messageDirection=Ns.MessageDirection.clientToServer,t.type=new Ns.ProtocolRequestType(t.method)})(Pg||(ui.TypeHierarchySubtypesRequest=Pg={}));var $s={};Object.defineProperty($s,"__esModule",{value:!0});$s.InlineValueRefreshRequest=$s.InlineValueRequest=void 0;const Va=ze;var Ig;(function(t){t.method="textDocument/inlineValue",t.messageDirection=Va.MessageDirection.clientToServer,t.type=new Va.ProtocolRequestType(t.method)})(Ig||($s.InlineValueRequest=Ig={}));var Mg;(function(t){t.method="workspace/inlineValue/refresh",t.messageDirection=Va.MessageDirection.serverToClient,t.type=new Va.ProtocolRequestType0(t.method)})(Mg||($s.InlineValueRefreshRequest=Mg={}));var di={};Object.defineProperty(di,"__esModule",{value:!0});di.InlayHintRefreshRequest=di.InlayHintResolveRequest=di.InlayHintRequest=void 0;const qs=ze;var Og;(function(t){t.method="textDocument/inlayHint",t.messageDirection=qs.MessageDirection.clientToServer,t.type=new qs.ProtocolRequestType(t.method)})(Og||(di.InlayHintRequest=Og={}));var Ag;(function(t){t.method="inlayHint/resolve",t.messageDirection=qs.MessageDirection.clientToServer,t.type=new qs.ProtocolRequestType(t.method)})(Ag||(di.InlayHintResolveRequest=Ag={}));var Fg;(function(t){t.method="workspace/inlayHint/refresh",t.messageDirection=qs.MessageDirection.serverToClient,t.type=new qs.ProtocolRequestType0(t.method)})(Fg||(di.InlayHintRefreshRequest=Fg={}));var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.DiagnosticRefreshRequest=Yn.WorkspaceDiagnosticRequest=Yn.DocumentDiagnosticRequest=Yn.DocumentDiagnosticReportKind=Yn.DiagnosticServerCancellationData=void 0;const A2=Xi,m4=Mt,js=ze;var Lg;(function(t){function e(n){const r=n;return r&&m4.boolean(r.retriggerRequest)}t.is=e})(Lg||(Yn.DiagnosticServerCancellationData=Lg={}));var Ng;(function(t){t.Full="full",t.Unchanged="unchanged"})(Ng||(Yn.DocumentDiagnosticReportKind=Ng={}));var $g;(function(t){t.method="textDocument/diagnostic",t.messageDirection=js.MessageDirection.clientToServer,t.type=new js.ProtocolRequestType(t.method),t.partialResult=new A2.ProgressType})($g||(Yn.DocumentDiagnosticRequest=$g={}));var qg;(function(t){t.method="workspace/diagnostic",t.messageDirection=js.MessageDirection.clientToServer,t.type=new js.ProtocolRequestType(t.method),t.partialResult=new A2.ProgressType})(qg||(Yn.WorkspaceDiagnosticRequest=qg={}));var jg;(function(t){t.method="workspace/diagnostic/refresh",t.messageDirection=js.MessageDirection.serverToClient,t.type=new js.ProtocolRequestType0(t.method)})(jg||(Yn.DiagnosticRefreshRequest=jg={}));var It={};Object.defineProperty(It,"__esModule",{value:!0});It.DidCloseNotebookDocumentNotification=It.DidSaveNotebookDocumentNotification=It.DidChangeNotebookDocumentNotification=It.NotebookCellArrayChange=It.DidOpenNotebookDocumentNotification=It.NotebookDocumentSyncRegistrationType=It.NotebookDocument=It.NotebookCell=It.ExecutionSummary=It.NotebookCellKind=void 0;const $o=J1,lr=Mt,_r=ze;var Wd;(function(t){t.Markup=1,t.Code=2;function e(n){return n===1||n===2}t.is=e})(Wd||(It.NotebookCellKind=Wd={}));var Ud;(function(t){function e(i,s){const o={executionOrder:i};return(s===!0||s===!1)&&(o.success=s),o}t.create=e;function n(i){const s=i;return lr.objectLiteral(s)&&$o.uinteger.is(s.executionOrder)&&(s.success===void 0||lr.boolean(s.success))}t.is=n;function r(i,s){return i===s?!0:i==null||s===null||s===void 0?!1:i.executionOrder===s.executionOrder&&i.success===s.success}t.equals=r})(Ud||(It.ExecutionSummary=Ud={}));var Ka;(function(t){function e(s,o){return{kind:s,document:o}}t.create=e;function n(s){const o=s;return lr.objectLiteral(o)&&Wd.is(o.kind)&&$o.DocumentUri.is(o.document)&&(o.metadata===void 0||lr.objectLiteral(o.metadata))}t.is=n;function r(s,o){const a=new Set;return s.document!==o.document&&a.add("document"),s.kind!==o.kind&&a.add("kind"),s.executionSummary!==o.executionSummary&&a.add("executionSummary"),(s.metadata!==void 0||o.metadata!==void 0)&&!i(s.metadata,o.metadata)&&a.add("metadata"),(s.executionSummary!==void 0||o.executionSummary!==void 0)&&!Ud.equals(s.executionSummary,o.executionSummary)&&a.add("executionSummary"),a}t.diff=r;function i(s,o){if(s===o)return!0;if(s==null||o===null||o===void 0||typeof s!=typeof o||typeof s!="object")return!1;const a=Array.isArray(s),c=Array.isArray(o);if(a!==c)return!1;if(a&&c){if(s.length!==o.length)return!1;for(let l=0;l<s.length;l++)if(!i(s[l],o[l]))return!1}if(lr.objectLiteral(s)&&lr.objectLiteral(o)){const l=Object.keys(s),f=Object.keys(o);if(l.length!==f.length||(l.sort(),f.sort(),!i(l,f)))return!1;for(let p=0;p<l.length;p++){const g=l[p];if(!i(s[g],o[g]))return!1}}return!0}})(Ka||(It.NotebookCell=Ka={}));var Hg;(function(t){function e(r,i,s,o){return{uri:r,notebookType:i,version:s,cells:o}}t.create=e;function n(r){const i=r;return lr.objectLiteral(i)&&lr.string(i.uri)&&$o.integer.is(i.version)&&lr.typedArray(i.cells,Ka.is)}t.is=n})(Hg||(It.NotebookDocument=Hg={}));var Hs;(function(t){t.method="notebookDocument/sync",t.messageDirection=_r.MessageDirection.clientToServer,t.type=new _r.RegistrationType(t.method)})(Hs||(It.NotebookDocumentSyncRegistrationType=Hs={}));var Wg;(function(t){t.method="notebookDocument/didOpen",t.messageDirection=_r.MessageDirection.clientToServer,t.type=new _r.ProtocolNotificationType(t.method),t.registrationMethod=Hs.method})(Wg||(It.DidOpenNotebookDocumentNotification=Wg={}));var Ug;(function(t){function e(r){const i=r;return lr.objectLiteral(i)&&$o.uinteger.is(i.start)&&$o.uinteger.is(i.deleteCount)&&(i.cells===void 0||lr.typedArray(i.cells,Ka.is))}t.is=e;function n(r,i,s){const o={start:r,deleteCount:i};return s!==void 0&&(o.cells=s),o}t.create=n})(Ug||(It.NotebookCellArrayChange=Ug={}));var zg;(function(t){t.method="notebookDocument/didChange",t.messageDirection=_r.MessageDirection.clientToServer,t.type=new _r.ProtocolNotificationType(t.method),t.registrationMethod=Hs.method})(zg||(It.DidChangeNotebookDocumentNotification=zg={}));var Bg;(function(t){t.method="notebookDocument/didSave",t.messageDirection=_r.MessageDirection.clientToServer,t.type=new _r.ProtocolNotificationType(t.method),t.registrationMethod=Hs.method})(Bg||(It.DidSaveNotebookDocumentNotification=Bg={}));var Vg;(function(t){t.method="notebookDocument/didClose",t.messageDirection=_r.MessageDirection.clientToServer,t.type=new _r.ProtocolNotificationType(t.method),t.registrationMethod=Hs.method})(Vg||(It.DidCloseNotebookDocumentNotification=Vg={}));var qc={};Object.defineProperty(qc,"__esModule",{value:!0});qc.InlineCompletionRequest=void 0;const Kg=ze;var Gg;(function(t){t.method="textDocument/inlineCompletion",t.messageDirection=Kg.MessageDirection.clientToServer,t.type=new Kg.ProtocolRequestType(t.method)})(Gg||(qc.InlineCompletionRequest=Gg={}));(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSymbolRequest=t.CodeActionResolveRequest=t.CodeActionRequest=t.DocumentSymbolRequest=t.DocumentHighlightRequest=t.ReferencesRequest=t.DefinitionRequest=t.SignatureHelpRequest=t.SignatureHelpTriggerKind=t.HoverRequest=t.CompletionResolveRequest=t.CompletionRequest=t.CompletionTriggerKind=t.PublishDiagnosticsNotification=t.WatchKind=t.RelativePattern=t.FileChangeType=t.DidChangeWatchedFilesNotification=t.WillSaveTextDocumentWaitUntilRequest=t.WillSaveTextDocumentNotification=t.TextDocumentSaveReason=t.DidSaveTextDocumentNotification=t.DidCloseTextDocumentNotification=t.DidChangeTextDocumentNotification=t.TextDocumentContentChangeEvent=t.DidOpenTextDocumentNotification=t.TextDocumentSyncKind=t.TelemetryEventNotification=t.LogMessageNotification=t.ShowMessageRequest=t.ShowMessageNotification=t.MessageType=t.DidChangeConfigurationNotification=t.ExitNotification=t.ShutdownRequest=t.InitializedNotification=t.InitializeErrorCodes=t.InitializeRequest=t.WorkDoneProgressOptions=t.TextDocumentRegistrationOptions=t.StaticRegistrationOptions=t.PositionEncodingKind=t.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.NotebookCellTextDocumentFilter=t.NotebookDocumentFilter=t.TextDocumentFilter=void 0,t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.WillRenameFilesRequest=t.DidRenameFilesNotification=t.WillCreateFilesRequest=t.DidCreateFilesNotification=t.FileOperationPatternKind=t.LinkedEditingRangeRequest=t.ShowDocumentRequest=t.SemanticTokensRegistrationType=t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.TokenFormat=t.CallHierarchyPrepareRequest=t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=t.SelectionRangeRequest=t.DeclarationRequest=t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=t.ColorPresentationRequest=t.DocumentColorRequest=t.ConfigurationRequest=t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=t.TypeDefinitionRequest=t.ImplementationRequest=t.ApplyWorkspaceEditRequest=t.ExecuteCommandRequest=t.PrepareRenameRequest=t.RenameRequest=t.PrepareSupportDefaultBehavior=t.DocumentOnTypeFormattingRequest=t.DocumentRangesFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolResolveRequest=void 0,t.InlineCompletionRequest=t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=t.InlineValueRefreshRequest=t.InlineValueRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchySubtypesRequest=t.TypeHierarchyPrepareRequest=void 0;const e=ze,n=J1,r=Mt,i=Mc;Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return i.ImplementationRequest}});const s=Oc;Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return s.TypeDefinitionRequest}});const o=Os;Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return o.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return o.DidChangeWorkspaceFoldersNotification}});const a=Ac;Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return a.ConfigurationRequest}});const c=As;Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return c.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return c.ColorPresentationRequest}});const l=Fs;Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return l.FoldingRangeRequest}}),Object.defineProperty(t,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return l.FoldingRangeRefreshRequest}});const f=Fc;Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return f.DeclarationRequest}});const p=Lc;Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return p.SelectionRangeRequest}});const g=ai;Object.defineProperty(t,"WorkDoneProgress",{enumerable:!0,get:function(){return g.WorkDoneProgress}}),Object.defineProperty(t,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return g.WorkDoneProgressCreateRequest}}),Object.defineProperty(t,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return g.WorkDoneProgressCancelNotification}});const _=ci;Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return _.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return _.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return _.CallHierarchyPrepareRequest}});const C=On;Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return C.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return C.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return C.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return C.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return C.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return C.SemanticTokensRegistrationType}});const k=Nc;Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return k.ShowDocumentRequest}});const M=$c;Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return M.LinkedEditingRangeRequest}});const H=hn;Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return H.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return H.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return H.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return H.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return H.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return H.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return H.WillDeleteFilesRequest}});const K=li;Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return K.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return K.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return K.MonikerRequest}});const j=ui;Object.defineProperty(t,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return j.TypeHierarchyPrepareRequest}}),Object.defineProperty(t,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return j.TypeHierarchySubtypesRequest}}),Object.defineProperty(t,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return j.TypeHierarchySupertypesRequest}});const B=$s;Object.defineProperty(t,"InlineValueRequest",{enumerable:!0,get:function(){return B.InlineValueRequest}}),Object.defineProperty(t,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return B.InlineValueRefreshRequest}});const z=di;Object.defineProperty(t,"InlayHintRequest",{enumerable:!0,get:function(){return z.InlayHintRequest}}),Object.defineProperty(t,"InlayHintResolveRequest",{enumerable:!0,get:function(){return z.InlayHintResolveRequest}}),Object.defineProperty(t,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return z.InlayHintRefreshRequest}});const ne=Yn;Object.defineProperty(t,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return ne.DiagnosticServerCancellationData}}),Object.defineProperty(t,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return ne.DocumentDiagnosticReportKind}}),Object.defineProperty(t,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return ne.DocumentDiagnosticRequest}}),Object.defineProperty(t,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return ne.WorkspaceDiagnosticRequest}}),Object.defineProperty(t,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return ne.DiagnosticRefreshRequest}});const G=It;Object.defineProperty(t,"NotebookCellKind",{enumerable:!0,get:function(){return G.NotebookCellKind}}),Object.defineProperty(t,"ExecutionSummary",{enumerable:!0,get:function(){return G.ExecutionSummary}}),Object.defineProperty(t,"NotebookCell",{enumerable:!0,get:function(){return G.NotebookCell}}),Object.defineProperty(t,"NotebookDocument",{enumerable:!0,get:function(){return G.NotebookDocument}}),Object.defineProperty(t,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return G.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(t,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return G.DidOpenNotebookDocumentNotification}}),Object.defineProperty(t,"NotebookCellArrayChange",{enumerable:!0,get:function(){return G.NotebookCellArrayChange}}),Object.defineProperty(t,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return G.DidChangeNotebookDocumentNotification}}),Object.defineProperty(t,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return G.DidSaveNotebookDocumentNotification}}),Object.defineProperty(t,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return G.DidCloseNotebookDocumentNotification}});const Y=qc;Object.defineProperty(t,"InlineCompletionRequest",{enumerable:!0,get:function(){return Y.InlineCompletionRequest}});var re;(function(w){function ge(me){const J=me;return r.string(J)||r.string(J.language)||r.string(J.scheme)||r.string(J.pattern)}w.is=ge})(re||(t.TextDocumentFilter=re={}));var Le;(function(w){function ge(me){const J=me;return r.objectLiteral(J)&&(r.string(J.notebookType)||r.string(J.scheme)||r.string(J.pattern))}w.is=ge})(Le||(t.NotebookDocumentFilter=Le={}));var $;(function(w){function ge(me){const J=me;return r.objectLiteral(J)&&(r.string(J.notebook)||Le.is(J.notebook))&&(J.language===void 0||r.string(J.language))}w.is=ge})($||(t.NotebookCellTextDocumentFilter=$={}));var P;(function(w){function ge(me){if(!Array.isArray(me))return!1;for(let J of me)if(!r.string(J)&&!re.is(J)&&!$.is(J))return!1;return!0}w.is=ge})(P||(t.DocumentSelector=P={}));var v;(function(w){w.method="client/registerCapability",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolRequestType(w.method)})(v||(t.RegistrationRequest=v={}));var R;(function(w){w.method="client/unregisterCapability",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolRequestType(w.method)})(R||(t.UnregistrationRequest=R={}));var I;(function(w){w.Create="create",w.Rename="rename",w.Delete="delete"})(I||(t.ResourceOperationKind=I={}));var E;(function(w){w.Abort="abort",w.Transactional="transactional",w.TextOnlyTransactional="textOnlyTransactional",w.Undo="undo"})(E||(t.FailureHandlingKind=E={}));var V;(function(w){w.UTF8="utf-8",w.UTF16="utf-16",w.UTF32="utf-32"})(V||(t.PositionEncodingKind=V={}));var Me;(function(w){function ge(me){const J=me;return J&&r.string(J.id)&&J.id.length>0}w.hasId=ge})(Me||(t.StaticRegistrationOptions=Me={}));var we;(function(w){function ge(me){const J=me;return J&&(J.documentSelector===null||P.is(J.documentSelector))}w.is=ge})(we||(t.TextDocumentRegistrationOptions=we={}));var lt;(function(w){function ge(J){const h=J;return r.objectLiteral(h)&&(h.workDoneProgress===void 0||r.boolean(h.workDoneProgress))}w.is=ge;function me(J){const h=J;return h&&r.boolean(h.workDoneProgress)}w.hasWorkDoneProgress=me})(lt||(t.WorkDoneProgressOptions=lt={}));var He;(function(w){w.method="initialize",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(He||(t.InitializeRequest=He={}));var Pe;(function(w){w.unknownProtocolVersion=1})(Pe||(t.InitializeErrorCodes=Pe={}));var st;(function(w){w.method="initialized",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(st||(t.InitializedNotification=st={}));var Fe;(function(w){w.method="shutdown",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType0(w.method)})(Fe||(t.ShutdownRequest=Fe={}));var ot;(function(w){w.method="exit",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType0(w.method)})(ot||(t.ExitNotification=ot={}));var Qe;(function(w){w.method="workspace/didChangeConfiguration",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(Qe||(t.DidChangeConfigurationNotification=Qe={}));var Ft;(function(w){w.Error=1,w.Warning=2,w.Info=3,w.Log=4,w.Debug=5})(Ft||(t.MessageType=Ft={}));var Je;(function(w){w.method="window/showMessage",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolNotificationType(w.method)})(Je||(t.ShowMessageNotification=Je={}));var Xe;(function(w){w.method="window/showMessageRequest",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolRequestType(w.method)})(Xe||(t.ShowMessageRequest=Xe={}));var vt;(function(w){w.method="window/logMessage",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolNotificationType(w.method)})(vt||(t.LogMessageNotification=vt={}));var at;(function(w){w.method="telemetry/event",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolNotificationType(w.method)})(at||(t.TelemetryEventNotification=at={}));var oe;(function(w){w.None=0,w.Full=1,w.Incremental=2})(oe||(t.TextDocumentSyncKind=oe={}));var gt;(function(w){w.method="textDocument/didOpen",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(gt||(t.DidOpenTextDocumentNotification=gt={}));var Ce;(function(w){function ge(J){let h=J;return h!=null&&typeof h.text=="string"&&h.range!==void 0&&(h.rangeLength===void 0||typeof h.rangeLength=="number")}w.isIncremental=ge;function me(J){let h=J;return h!=null&&typeof h.text=="string"&&h.range===void 0&&h.rangeLength===void 0}w.isFull=me})(Ce||(t.TextDocumentContentChangeEvent=Ce={}));var Ze;(function(w){w.method="textDocument/didChange",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(Ze||(t.DidChangeTextDocumentNotification=Ze={}));var en;(function(w){w.method="textDocument/didClose",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(en||(t.DidCloseTextDocumentNotification=en={}));var tn;(function(w){w.method="textDocument/didSave",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(tn||(t.DidSaveTextDocumentNotification=tn={}));var Wt;(function(w){w.Manual=1,w.AfterDelay=2,w.FocusOut=3})(Wt||(t.TextDocumentSaveReason=Wt={}));var Rt;(function(w){w.method="textDocument/willSave",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(Rt||(t.WillSaveTextDocumentNotification=Rt={}));var xt;(function(w){w.method="textDocument/willSaveWaitUntil",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(xt||(t.WillSaveTextDocumentWaitUntilRequest=xt={}));var qe;(function(w){w.method="workspace/didChangeWatchedFiles",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolNotificationType(w.method)})(qe||(t.DidChangeWatchedFilesNotification=qe={}));var Ut;(function(w){w.Created=1,w.Changed=2,w.Deleted=3})(Ut||(t.FileChangeType=Ut={}));var Ln;(function(w){function ge(me){const J=me;return r.objectLiteral(J)&&(n.URI.is(J.baseUri)||n.WorkspaceFolder.is(J.baseUri))&&r.string(J.pattern)}w.is=ge})(Ln||(t.RelativePattern=Ln={}));var Dn;(function(w){w.Create=1,w.Change=2,w.Delete=4})(Dn||(t.WatchKind=Dn={}));var Tn;(function(w){w.method="textDocument/publishDiagnostics",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolNotificationType(w.method)})(Tn||(t.PublishDiagnosticsNotification=Tn={}));var Nn;(function(w){w.Invoked=1,w.TriggerCharacter=2,w.TriggerForIncompleteCompletions=3})(Nn||(t.CompletionTriggerKind=Nn={}));var kn;(function(w){w.method="textDocument/completion",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(kn||(t.CompletionRequest=kn={}));var ln;(function(w){w.method="completionItem/resolve",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(ln||(t.CompletionResolveRequest=ln={}));var St;(function(w){w.method="textDocument/hover",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(St||(t.HoverRequest=St={}));var mn;(function(w){w.Invoked=1,w.TriggerCharacter=2,w.ContentChange=3})(mn||(t.SignatureHelpTriggerKind=mn={}));var Bn;(function(w){w.method="textDocument/signatureHelp",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Bn||(t.SignatureHelpRequest=Bn={}));var Kt;(function(w){w.method="textDocument/definition",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Kt||(t.DefinitionRequest=Kt={}));var nn;(function(w){w.method="textDocument/references",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(nn||(t.ReferencesRequest=nn={}));var yn;(function(w){w.method="textDocument/documentHighlight",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(yn||(t.DocumentHighlightRequest=yn={}));var Gt;(function(w){w.method="textDocument/documentSymbol",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Gt||(t.DocumentSymbolRequest=Gt={}));var Rn;(function(w){w.method="textDocument/codeAction",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Rn||(t.CodeActionRequest=Rn={}));var bn;(function(w){w.method="codeAction/resolve",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(bn||(t.CodeActionResolveRequest=bn={}));var xn;(function(w){w.method="workspace/symbol",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(xn||(t.WorkspaceSymbolRequest=xn={}));var Vn;(function(w){w.method="workspaceSymbol/resolve",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Vn||(t.WorkspaceSymbolResolveRequest=Vn={}));var vn;(function(w){w.method="textDocument/codeLens",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(vn||(t.CodeLensRequest=vn={}));var mt;(function(w){w.method="codeLens/resolve",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(mt||(t.CodeLensResolveRequest=mt={}));var En;(function(w){w.method="workspace/codeLens/refresh",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolRequestType0(w.method)})(En||(t.CodeLensRefreshRequest=En={}));var $n;(function(w){w.method="textDocument/documentLink",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})($n||(t.DocumentLinkRequest=$n={}));var Lt;(function(w){w.method="documentLink/resolve",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Lt||(t.DocumentLinkResolveRequest=Lt={}));var y;(function(w){w.method="textDocument/formatting",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(y||(t.DocumentFormattingRequest=y={}));var L;(function(w){w.method="textDocument/rangeFormatting",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(L||(t.DocumentRangeFormattingRequest=L={}));var te;(function(w){w.method="textDocument/rangesFormatting",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(te||(t.DocumentRangesFormattingRequest=te={}));var Te;(function(w){w.method="textDocument/onTypeFormatting",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(Te||(t.DocumentOnTypeFormattingRequest=Te={}));var xe;(function(w){w.Identifier=1})(xe||(t.PrepareSupportDefaultBehavior=xe={}));var ut;(function(w){w.method="textDocument/rename",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(ut||(t.RenameRequest=ut={}));var T;(function(w){w.method="textDocument/prepareRename",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(T||(t.PrepareRenameRequest=T={}));var U;(function(w){w.method="workspace/executeCommand",w.messageDirection=e.MessageDirection.clientToServer,w.type=new e.ProtocolRequestType(w.method)})(U||(t.ExecuteCommandRequest=U={}));var X;(function(w){w.method="workspace/applyEdit",w.messageDirection=e.MessageDirection.serverToClient,w.type=new e.ProtocolRequestType("workspace/applyEdit")})(X||(t.ApplyWorkspaceEditRequest=X={}))})(I2);var jc={};Object.defineProperty(jc,"__esModule",{value:!0});jc.createProtocolConnection=void 0;const Qg=Xi;function y4(t,e,n,r){return Qg.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Qg.createMessageConnection)(t,e,n,r)}jc.createProtocolConnection=y4;(function(t){var e=_t&&_t.__createBinding||(Object.create?function(s,o,a,c){c===void 0&&(c=a);var l=Object.getOwnPropertyDescriptor(o,a);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(s,c,l)}:function(s,o,a,c){c===void 0&&(c=a),s[c]=o[a]}),n=_t&&_t.__exportStar||function(s,o){for(var a in s)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&e(o,s,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,n(Xi,t),n(J1,t),n(ze,t),n(I2,t);var r=jc;Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:function(){return r.createProtocolConnection}});var i;(function(s){s.lspReservedErrorRangeStart=-32899,s.RequestFailed=-32803,s.ServerCancelled=-32802,s.ContentModified=-32801,s.RequestCancelled=-32800,s.lspReservedErrorRangeEnd=-32800})(i||(t.LSPErrorCodes=i={}))})(P2);(function(t){var e=_t&&_t.__createBinding||(Object.create?function(s,o,a,c){c===void 0&&(c=a);var l=Object.getOwnPropertyDescriptor(o,a);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(s,c,l)}:function(s,o,a,c){c===void 0&&(c=a),s[c]=o[a]}),n=_t&&_t.__exportStar||function(s,o){for(var a in s)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&e(o,s,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const r=Np;n(Np,t),n(P2,t);function i(s,o,a,c){return(0,r.createMessageConnection)(s,o,a,c)}t.createProtocolConnection=i})(ye);var De={};function ie(t,e,n,r){var i=arguments.length,s=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}function b4(t,e,n=0,r=t.length){let i=n,s=r;for(;i<s;){const o=Math.floor((i+s)/2);e(t[o])?i=o+1:s=o}return i-1}const _c=class _c{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(_c.assertInvariants){if(this._prevFindLastPredicate){for(const r of this._array)if(this._prevFindLastPredicate(r)&&!e(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=e}const n=b4(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};_c.assertInvariants=!1;let Jg=_c;function zd(t,e,n=(r,i)=>r===i){if(t===e)return!0;if(!t||!e||t.length!==e.length)return!1;for(let r=0,i=t.length;r<i;r++)if(!n(t[r],e[r]))return!1;return!0}function v4(t){let e=0;for(let n=0;n<t.length;n++)t[n]&&(t[e]=t[n],e+=1);t.length=e}function Yg(t,e){let n;if(typeof e=="number"){let r=e;n=()=>{const i=Math.sin(r++)*179426549;return i-Math.floor(i)}}else n=Math.random;for(let r=t.length-1;r>0;r-=1){const i=Math.floor(n()*(r+1)),s=t[r];t[r]=t[i],t[i]=s}}function w4(t){return Array.isArray(t)?t:[t]}var Bd;(function(t){function e(s){return s<0}t.isLessThan=e;function n(s){return s<=0}t.isLessThanOrEqual=n;function r(s){return s>0}t.isGreaterThan=r;function i(s){return s===0}t.isNeitherLessOrGreaterThan=i,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(Bd||(Bd={}));function C4(t,e){return(n,r)=>e(t(n),t(r))}const _4=(t,e)=>t-e,hs=class hs{constructor(e){this.iterate=e}forEach(e){this.iterate(n=>(e(n),!0))}toArray(){const e=[];return this.iterate(n=>(e.push(n),!0)),e}filter(e){return new hs(n=>this.iterate(r=>e(r)?n(r):!0))}map(e){return new hs(n=>this.iterate(r=>n(e(r))))}some(e){let n=!1;return this.iterate(r=>(n=e(r),!n)),n}findFirst(e){let n;return this.iterate(r=>e(r)?(n=r,!1):!0),n}findLast(e){let n;return this.iterate(r=>(e(r)&&(n=r),!0)),n}findLastMaxBy(e){let n,r=!0;return this.iterate(i=>((r||Bd.isGreaterThan(e(i,n)))&&(r=!1,n=i),!0)),n}};hs.empty=new hs(e=>{});let Xg=hs;class S4{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?qo.isErrorNoTelemetry(e)?new qo(e.message+`
|
|
30
64
|
|
|
31
65
|
`+e.stack):new Error(e.message+`
|
|
32
66
|
|
|
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 d4=new u4;function M0(t){f4(t)||d4.onUnexpectedError(t)}const vu="Canceled";function f4(t){return t instanceof O0?!0:t instanceof Error&&t.name===vu&&t.message===vu}let O0=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 h4(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 rg,sg;class g4{constructor(e,n){this.uri=e,this.value=n}}function p4(t){return Array.isArray(t)}const kr=class kr{constructor(e,n){if(this[rg]="ResourceMap",e instanceof kr)this.map=new Map(e.map),this.toKey=n??kr.defaultToKey;else if(p4(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 g4(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]}*[(rg=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}};kr.defaultToKey=e=>e.toString();let va=kr,m4=class{constructor(){this[sg]="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}[(sg=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 y4 extends m4{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 A0=class extends y4{constructor(e,n=1){super(e,n)}trim(e){this.trimOld(e)}set(e,n){return super.set(e,n),this.checkTrim(),this}};class b4{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 v4(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 w4(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(
|
|
35
|
-
`),c)}
|
|
36
|
-
`)).size}/${
|
|
37
|
-
`)),
|
|
67
|
+
`+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(n=>{n(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const D4=new S4;function F2(t){T4(t)||D4.onUnexpectedError(t)}const Vd="Canceled";function T4(t){return t instanceof L2?!0:t instanceof Error&&t.name===Vd&&t.message===Vd}let L2=class extends Error{constructor(){super(Vd),this.name=this.message}};function Ae(t){return t?new Error(`Illegal argument: ${t}`):new Error("Illegal argument")}function k4(t){return t?new Error(`Illegal state: ${t}`):new Error("Illegal state")}class qo extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof qo)return e;const n=new qo;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}var Zg,em;class R4{constructor(e,n){this.uri=e,this.value=n}}function x4(t){return Array.isArray(t)}const Li=class Li{constructor(e,n){if(this[Zg]="ResourceMap",e instanceof Li)this.map=new Map(e.map),this.toKey=n??Li.defaultToKey;else if(x4(e)){this.map=new Map,this.toKey=n??Li.defaultToKey;for(const[r,i]of e)this.set(r,i)}else this.map=new Map,this.toKey=e??Li.defaultToKey}set(e,n){return this.map.set(this.toKey(e),new R4(e,n)),this}get(e){var n;return(n=this.map.get(this.toKey(e)))==null?void 0:n.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,n){typeof n<"u"&&(e=e.bind(n));for(const[r,i]of this.map)e(i.value,i.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(Zg=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}};Li.defaultToKey=e=>e.toString();let Ga=Li;class E4{constructor(){this[em]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return(e=this._head)==null?void 0:e.value}get last(){var e;return(e=this._tail)==null?void 0:e.value}has(e){return this._map.has(e)}get(e,n=0){const r=this._map.get(e);if(r)return n!==0&&this.touch(r,n),r.value}set(e,n,r=0){let i=this._map.get(e);if(i)i.value=n,r!==0&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){const r=this._state;let i=this._head;for(;i;){if(n?e.bind(n)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.key,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}values(){const e=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.value,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}entries(){const e=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:[r.key,r.value],done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}[(em=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._tail,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.previous,r--;this._tail=n,this._size=r,n&&(n.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const n=e.next,r=e.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(e===this._head)return;const r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===2){if(e===this._tail)return;const r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((n,r)=>{e.push([r,n])}),e}fromJSON(e){this.clear();for(const[n,r]of e)this.set(n,r)}}class P4 extends E4{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,n=2){return super.get(e,n)}peek(e){return super.get(e,0)}set(e,n){return super.set(e,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class N2 extends P4{constructor(e,n=1){super(e,n)}trim(e){this.trimOld(e)}set(e,n){return super.set(e,n),this.checkTrim(),this}}class I4{constructor(){this.map=new Map}add(e,n){let r=this.map.get(e);r||(r=new Set,this.map.set(e,r)),r.add(n)}delete(e,n){const r=this.map.get(e);r&&(r.delete(n),r.size===0&&this.map.delete(e))}forEach(e,n){const r=this.map.get(e);r&&r.forEach(n)}get(e){const n=this.map.get(e);return n||new Set}}function M4(t,e){const n=this;let r=!1,i;return function(){if(r)return i;if(r=!0,e)try{i=t.apply(n,arguments)}finally{e()}else i=t.apply(n,arguments);return i}}function O4(t,e){const n=Object.create(null);for(const r of t){const i=e(r);let s=n[i];s||(s=n[i]=[]),s.push(r)}return n}var Kd;(function(t){function e(j){return j&&typeof j=="object"&&typeof j[Symbol.iterator]=="function"}t.is=e;const n=Object.freeze([]);function r(){return n}t.empty=r;function*i(j){yield j}t.single=i;function s(j){return e(j)?j:i(j)}t.wrap=s;function o(j){return j||n}t.from=o;function*a(j){for(let B=j.length-1;B>=0;B--)yield j[B]}t.reverse=a;function c(j){return!j||j[Symbol.iterator]().next().done===!0}t.isEmpty=c;function l(j){return j[Symbol.iterator]().next().value}t.first=l;function f(j,B){for(const z of j)if(B(z))return!0;return!1}t.some=f;function p(j,B){for(const z of j)if(B(z))return z}t.find=p;function*g(j,B){for(const z of j)B(z)&&(yield z)}t.filter=g;function*_(j,B){let z=0;for(const ne of j)yield B(ne,z++)}t.map=_;function*C(...j){for(const B of j)yield*B}t.concat=C;function k(j,B,z){let ne=z;for(const G of j)ne=B(ne,G);return ne}t.reduce=k;function*M(j,B,z=j.length){for(B<0&&(B+=j.length),z<0?z+=j.length:z>j.length&&(z=j.length);B<z;B++)yield j[B]}t.slice=M;function H(j,B=Number.POSITIVE_INFINITY){const z=[];if(B===0)return[z,j];const ne=j[Symbol.iterator]();for(let G=0;G<B;G++){const Y=ne.next();if(Y.done)return[z,t.empty()];z.push(Y.value)}return[z,{[Symbol.iterator](){return ne}}]}t.consume=H;async function K(j){const B=[];for await(const z of j)B.push(z);return Promise.resolve(B)}t.asyncToArray=K})(Kd||(Kd={}));const Sc=class Sc{constructor(){this.livingDisposables=new Map}getDisposableData(e){let n=this.livingDisposables.get(e);return n||(n={parent:null,source:null,isSingleton:!1,value:e,idx:Sc.idx++},this.livingDisposables.set(e,n)),n}trackDisposable(e){const n=this.getDisposableData(e);n.source||(n.source=new Error().stack)}setParent(e,n){const r=this.getDisposableData(e);r.parent=n}markAsDisposed(e){this.livingDisposables.delete(e)}markAsSingleton(e){this.getDisposableData(e).isSingleton=!0}getRootParent(e,n){const r=n.get(e);if(r)return r;const i=e.parent?this.getRootParent(this.getDisposableData(e.parent),n):e;return n.set(e,i),i}getTrackedDisposables(){const e=new Map;return[...this.livingDisposables.entries()].filter(([,r])=>r.source!==null&&!this.getRootParent(r,e).isSingleton).flatMap(([r])=>r)}computeLeakingDisposables(e=10,n){let r;if(n)r=n;else{const c=new Map,l=[...this.livingDisposables.values()].filter(p=>p.source!==null&&!this.getRootParent(p,c).isSingleton);if(l.length===0)return;const f=new Set(l.map(p=>p.value));if(r=l.filter(p=>!(p.parent&&f.has(p.parent))),r.length===0)throw new Error("There are cyclic diposable chains!")}if(!r)return;function i(c){function l(p,g){for(;p.length>0&&g.some(_=>typeof _=="string"?_===p[0]:p[0].match(_));)p.shift()}const f=c.source.split(`
|
|
68
|
+
`).map(p=>p.trim().replace("at ","")).filter(p=>p!=="");return l(f,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),f.reverse()}const s=new I4;for(const c of r){const l=i(c);for(let f=0;f<=l.length;f++)s.add(l.slice(0,f).join(`
|
|
69
|
+
`),c)}r.sort(C4(c=>c.idx,_4));let o="",a=0;for(const c of r.slice(0,e)){a++;const l=i(c),f=[];for(let p=0;p<l.length;p++){let g=l[p];g=`(shared with ${s.get(l.slice(0,p+1).join(`
|
|
70
|
+
`)).size}/${r.length} leaks) at ${g}`;const C=s.get(l.slice(0,p).join(`
|
|
71
|
+
`)),k=O4([...C].map(M=>i(M)[p]),M=>M);delete k[l[p]];for(const[M,H]of Object.entries(k))f.unshift(` - stacktraces of ${H.length} other leaks continue with ${M}`);f.unshift(g)}o+=`
|
|
38
72
|
|
|
39
73
|
|
|
40
|
-
==================== Leaking disposable ${a}/${
|
|
41
|
-
${
|
|
74
|
+
==================== Leaking disposable ${a}/${r.length}: ${c.value.constructor.name} ====================
|
|
75
|
+
${f.join(`
|
|
42
76
|
`)}
|
|
43
77
|
============================================================
|
|
44
78
|
|
|
45
|
-
`}return
|
|
79
|
+
`}return r.length>e&&(o+=`
|
|
46
80
|
|
|
47
81
|
|
|
48
|
-
... and ${
|
|
82
|
+
... and ${r.length-e} more leaking disposables
|
|
49
83
|
|
|
50
|
-
`),{leaks:
|
|
84
|
+
`),{leaks:r,details:o}}};Sc.idx=0;let tm=Sc;function $2(t){if(Kd.is(t)){const e=[];for(const n of t)if(n)try{n.dispose()}catch(r){e.push(r)}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 A4(...t){return Y1(()=>$2(t))}function Y1(t){return{dispose:M4(()=>{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{$2(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 Yo;let Gd=(Yo=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)}},Yo.None=Object.freeze({dispose(){}}),Yo);const ps=class ps{constructor(e){this.element=e,this.next=ps.Undefined,this.prev=ps.Undefined}};ps.Undefined=new ps(void 0);let yt=ps;class F4{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 r=new yt(e);if(this._first===yt.Undefined)this._first=r,this._last=r;else if(n){const s=this._last;this._last=r,r.prev=s,s.next=r}else{const s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}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 L4=globalThis.performance&&typeof globalThis.performance.now=="function";class X1{static create(e){return new X1(e)}constructor(e){this._now=L4&&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 Qa;(function(t){t.None=()=>Gd.None;function e($,P){return p($,()=>{},0,void 0,!0,void 0,P)}t.defer=e;function n($){return(P,v=null,R)=>{let I=!1,E;return E=$(V=>{if(!I)return E?E.dispose():I=!0,P.call(v,V)},null,R),I&&E.dispose(),E}}t.once=n;function r($,P,v){return l((R,I=null,E)=>$(V=>R.call(I,P(V)),null,E),v)}t.map=r;function i($,P,v){return l((R,I=null,E)=>$(V=>{P(V),R.call(I,V)},null,E),v)}t.forEach=i;function s($,P,v){return l((R,I=null,E)=>$(V=>P(V)&&R.call(I,V),null,E),v)}t.filter=s;function o($){return $}t.signal=o;function a(...$){return(P,v=null,R)=>{const I=A4(...$.map(E=>E(V=>P.call(v,V))));return f(I,R)}}t.any=a;function c($,P,v,R){let I=v;return r($,E=>(I=P(I,E),I),R)}t.reduce=c;function l($,P){let v;const R={onWillAddFirstListener(){v=$(I.fire,I)},onDidRemoveLastListener(){v==null||v.dispose()}},I=new gr(R);return P==null||P.add(I),I.event}function f($,P){return P instanceof Array?P.push($):P&&P.add($),$}function p($,P,v=100,R=!1,I=!1,E,V){let Me,we,lt,He=0,Pe;const st={leakWarningThreshold:E,onWillAddFirstListener(){Me=$(ot=>{He++,we=P(we,ot),R&&!lt&&(Fe.fire(we),we=void 0),Pe=()=>{const Qe=we;we=void 0,lt=void 0,(!R||He>1)&&Fe.fire(Qe),He=0},typeof v=="number"?(clearTimeout(lt),lt=setTimeout(Pe,v)):lt===void 0&&(lt=0,queueMicrotask(Pe))})},onWillRemoveListener(){I&&He>0&&(Pe==null||Pe())},onDidRemoveLastListener(){Pe=void 0,Me.dispose()}},Fe=new gr(st);return V==null||V.add(Fe),Fe.event}t.debounce=p;function g($,P=0,v){return t.debounce($,(R,I)=>R?(R.push(I),R):[I],P,void 0,!0,void 0,v)}t.accumulate=g;function _($,P=(R,I)=>R===I,v){let R=!0,I;return s($,E=>{const V=R||!P(E,I);return R=!1,I=E,V},v)}t.latch=_;function C($,P,v){return[t.filter($,P,v),t.filter($,R=>!P(R),v)]}t.split=C;function k($,P=!1,v=[],R){let I=v.slice(),E=$(we=>{I?I.push(we):Me.fire(we)});R&&R.add(E);const V=()=>{I==null||I.forEach(we=>Me.fire(we)),I=null},Me=new gr({onWillAddFirstListener(){E||(E=$(we=>Me.fire(we)),R&&R.add(E))},onDidAddFirstListener(){I&&(P?setTimeout(V):V())},onDidRemoveLastListener(){E&&E.dispose(),E=null}});return R&&R.add(Me),Me.event}t.buffer=k;function M($,P){return(R,I,E)=>{const V=P(new K);return $(function(Me){const we=V.evaluate(Me);we!==H&&R.call(I,we)},void 0,E)}}t.chain=M;const H=Symbol("HaltChainable");class K{constructor(){this.steps=[]}map(P){return this.steps.push(P),this}forEach(P){return this.steps.push(v=>(P(v),v)),this}filter(P){return this.steps.push(v=>P(v)?v:H),this}reduce(P,v){let R=v;return this.steps.push(I=>(R=P(R,I),R)),this}latch(P=(v,R)=>v===R){let v=!0,R;return this.steps.push(I=>{const E=v||!P(I,R);return v=!1,R=I,E?I:H}),this}evaluate(P){for(const v of this.steps)if(P=v(P),P===H)break;return P}}function j($,P,v=R=>R){const R=(...Me)=>V.fire(v(...Me)),I=()=>$.on(P,R),E=()=>$.removeListener(P,R),V=new gr({onWillAddFirstListener:I,onDidRemoveLastListener:E});return V.event}t.fromNodeEventEmitter=j;function B($,P,v=R=>R){const R=(...Me)=>V.fire(v(...Me)),I=()=>$.addEventListener(P,R),E=()=>$.removeEventListener(P,R),V=new gr({onWillAddFirstListener:I,onDidRemoveLastListener:E});return V.event}t.fromDOMEventEmitter=B;function z($){return new Promise(P=>n($)(P))}t.toPromise=z;function ne($){const P=new gr;return $.then(v=>{P.fire(v)},()=>{P.fire(void 0)}).finally(()=>{P.dispose()}),P.event}t.fromPromise=ne;function G($,P,v){return P(v),$(R=>P(R))}t.runAndSubscribe=G;class Y{constructor(P,v){this._observable=P,this._counter=0,this._hasChanged=!1;const R={onWillAddFirstListener:()=>{P.addObserver(this)},onDidRemoveLastListener:()=>{P.removeObserver(this)}};this.emitter=new gr(R),v&&v.add(this.emitter)}beginUpdate(P){this._counter++}handlePossibleChange(P){}handleChange(P,v){this._hasChanged=!0}endUpdate(P){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function re($,P){return new Y($,P).emitter.event}t.fromObservable=re;function Le($){return(P,v,R)=>{let I=0,E=!1;const V={beginUpdate(){I++},endUpdate(){I--,I===0&&($.reportChanges(),E&&(E=!1,P.call(v)))},handlePossibleChange(){},handleChange(){E=!0}};$.addObserver(V),$.reportChanges();const Me={dispose(){$.removeObserver(V)}};return R instanceof jo?R.add(Me):Array.isArray(R)&&R.push(Me),Me}}t.fromObservableLight=Le})(Qa||(Qa={}));const gs=class gs{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${gs._idPool++}`,gs.all.add(this)}start(e){this._stopWatch=new X1,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}}};gs.all=new Set,gs._idPool=0;let Qd=gs,N4=-1;class $4{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 r=this.threshold;if(r<=0||n<r)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.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 Z1{static create(){return new Z1(new Error().stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split(`
|
|
51
85
|
`).slice(2).join(`
|
|
52
|
-
`))}}let k4=0;class xl{constructor(e){this.value=e,this.id=k4++}}const T4=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 x4(((i=this._options)==null?void 0:i.leakWarningThreshold)??D4):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 R4),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*T4<=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)||M0;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 R4{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 N0=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:N0})})(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?N0:(this._emitter||(this._emitter=new hi),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},E4=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 P4(t){return t}class I4{constructor(e,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=P4):(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 F4(t){return!t||typeof t!="string"?!0:t.trim().length===0}function M4(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 ag(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);cg(c)&&(c-=32),cg(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 cg(t){return t>=97&&t<=122}function O4(t,e){return t.length===e.length&&qo(t,e)===0}function $0(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 A4(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 L4(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 N4{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=L4(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=A4(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class $4{get offset(){return this._iterator.offset}constructor(e,n=0){this._iterator=new N4(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(ug(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(ug(o,r)){n.setOffset(s);break}r=o}return i-n.offset}eol(){return this._iterator.eol()}}function lg(t,e){return new $4(t,e).nextGraphemeLength()}function ug(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=q4()}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 q4(){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 I4({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 dg=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 fg=rs;q0.bind(void 0,!1);q0.bind(void 0,!0);function q0(t,e,n){if(!n||n.length<e.length)return null;let i;return t?i=$0(n,e):i=n.indexOf(e)===0,i?e.length>0?[{start:0,end:e.length}]:[]:null}const H4=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(t=>H4.add(t.charCodeAt(0)));new A0(1e4);const hg=128;function I1(){const t=[],e=[];for(let n=0;n<=hg;n++)e[n]=0;for(let n=0;n<=hg;n++)t.push(e.slice(0));return t}I1();I1();I1();var gg;(function(t){t.Default=[-100,0];function e(n){return!n||n.length===2&&n[0]===-100&&n[1]===0}t.isDefault=e})(gg||(gg={}));const K1=class K1{constructor(e,n){this.firstMatchCanBeWeak=e,this.boostFullMatch=n}};K1.default={boostFullMatch:!0,firstMatchCanBeWeak:!1};let pg=K1;function Tn(t){return typeof t=="string"}function j4(t){return Array.isArray(t)&&t.every(e=>Tn(e))}function mg(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 yg=Object.create(null);function u(t,e){if(Tn(e)){const n=yg[e];if(n===void 0)throw new Error(`${t} references an unknown codicon: ${e}`);e=n}return yg[t]=e,{id:t}}const W4={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)},U4={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)},z4={...W4,...U4};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(z4.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"),B4=new RegExp(`(\\\\)?${F1.source}`,"g");function V4(t){return t.replace(B4,(e,n)=>n?e:`\\${e}`)}new RegExp(`\\\\${F1.source}`,"g");new RegExp(`(\\s)?(\\\\)?${F1.source}(\\s)?`,"g");new RegExp(`\\$\\(${mo.iconNameCharacter}+\\)`,"g");let K4=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function G4(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}),K4&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}let Q4={};function f(t,e,n,...i){const r=typeof e=="object"?e.key:e,s=(Q4[t]??{})[r]??n;return G4(s,i)}const Zr="en";let xu=!1,ku=!1,Tu=!1,H0=!1,M1=!1,Yo,fa=Zr,bg=Zr,Zn;const Ai=globalThis;let dn;var x0;typeof Ai.vscode<"u"&&typeof Ai.vscode.process<"u"?dn=Ai.vscode.process:typeof process<"u"&&typeof((x0=process==null?void 0:process.versions)==null?void 0:x0.node)=="string"&&(dn=process);var k0;const J4=typeof((k0=dn==null?void 0:dn.versions)==null?void 0:k0.electron)=="string",Y4=J4&&(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,bg=e.osLocale,fa=n||Zr}catch{}H0=!0}else typeof navigator=="object"&&!Y4?(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,bg=navigator.language):console.error("Unable to resolve platform.");const qr=xu,bi=ku,Da=Tu,X4=H0,O1=M1,Z4=M1&&typeof Ai.importScripts=="function",ey=Z4?Ai.origin:void 0,vi=Zn,Bi=fa;var vg;(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})(vg||(vg={}));const ty=typeof Ai.postMessage=="function"&&!Ai.importScripts;(()=>{if(ty){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 j0=!!(vi&&vi.indexOf("Chrome")>=0),ny=!!(vi&&vi.indexOf("Firefox")>=0),iy=!!(!j0&&vi&&vi.indexOf("Safari")>=0),ry=!!(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,sy=Fr.env,oy=Fr.platform;Fr.arch;const ay=65,cy=97,ly=90,uy=122,Zi=46,Ht=47,mn=92,Vi=58,dy=63;class W0 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 fy(t,e){if(t===null||typeof t!="object")throw new W0(e,"Object",t)}function bt(t,e){if(typeof t!="string")throw new W0(e,"string",t)}const Vn=oy==="win32";function _e(t){return t===Ht||t===mn}function Ru(t){return t===Ht}function Ki(t){return t>=ay&&t<=ly||t>=cy&&t<=uy}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 U0(t,e){fy(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=sy[`=${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!==dy&&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:U0.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},hy=(()=>{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]:hy();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:U0.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 gy=Vn?Ot.normalize:Ze.normalize;Vn?Ot.isAbsolute:Ze.isAbsolute;Vn?Ot.join:Ze.join;const py=Vn?Ot.resolve:Ze.resolve,my=Vn?Ot.relative:Ze.relative,yy=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 z0(t){return t.replace(/[\\/]/g,Ze.sep)}function by(t){return t.indexOf("/")===-1&&(t=z0(t)),/^[a-zA-Z]:(\/|$)/.test(t)&&(t="/"+t),t}function wg(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(vy(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 Cg(t,e,n,i=ha){if(t===e)return!0;if(!t||!e||e.length>t.length)return!1;if(n){if(!$0(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 vy(t){return t>=65&&t<=90||t>=97&&t<=122}const wy=/^\w[\w\d+.-]*$/,Cy=/^\//,_y=/^\/\//;function Sy(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&&!wy.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Cy.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(_y.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 Dy(t,e){return!t&&!e?"file":t}function xy(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="/",ky=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;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=Dy(e,o),this.authority=n||et,this.path=xy(this.scheme,i||et),this.query=r||et,this.fragment=s||et,Sy(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=ky.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===B0?e.fsPath??null:null,n}}else return e}};const B0=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=B0),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 V0={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 _g(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=V0[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 Ty(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+=V0[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?Ty:_g;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:_g(c,!1,!1)),i}function K0(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+K0(t.substr(3)):t}}const Sg=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Xo(t){return t.match(Sg)?t.replace(Sg,e=>K0(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 Ry="tkn";class Ey{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=Iy(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 M0(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+=`&${Ry}=${encodeURIComponent(s)}`),st.from({scheme:O1?this._preferredWebSchema:dt.vscodeRemoteResource,authority:`${i}:${r}`,path:this._remoteResourcesPath,query:o})}}const Py=new Ey;function Iy(t,e){return Ze.join(e??"/",`${t.quality??"oss"}-${t.commit??"dev"}`)}const Fy="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:Y1&&Y1.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?Py.rewrite(e):e.scheme===dt.file&&(X4||ey===`${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=Fy;let Pu=ss;new Pu;var Dg;(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})(Dg||(Dg={}));function _i(t){return Ta(t,!0)}class My{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 Cg(_i(e),_i(n),this._ignorePathCasing(e))&&e.query===n.query&&(i||e.fragment===n.fragment);if(xg(e.authority,n.authority))return Cg(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 Oy(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(yy(_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(gy(_i(e))).path:n=Ze.normalize(e.path),e.with({path:n})}relativePath(e,n){if(e.scheme!==n.scheme||!xg(e.authority,n.authority))return;if(e.scheme===dt.file){const s=my(_i(e),_i(n));return qr?z0(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(py(_i(e),n));return e.with({authority:i.authority,path:i.path})}return n=by(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&&O4(e,n)}hasTrailingPathSeparator(e,n=ha){if(e.scheme===dt.file){const i=_i(e);return i.length>wg(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 kg(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===wg(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&&!kg(e,n)?e.with({path:e.path+"/"}):e}}const ze=new My(()=>!1);ze.isEqual.bind(ze);ze.isEqualOrParent.bind(ze);ze.getComparisonKey.bind(ze);ze.basenameOrAuthority.bind(ze);const Oy=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 xg=ze.isEqualAuthority.bind(ze),kg=ze.hasTrailingPathSeparator.bind(ze);ze.removeTrailingPathSeparator.bind(ze);ze.addTrailingPathSeparator.bind(ze);var Tg;(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})(Tg||(Tg={}));let Ay=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+=Ly(this.supportThemeIcons?V4(e):e).replace(/([ \t]+)/g,(i,r)=>" ".repeat(r.length)).replace(/\>/gm,"\\>").replace(/\n/g,n===1?`\\
|
|
86
|
+
`))}}let q4=0;class jl{constructor(e){this.value=e,this.id=q4++}}const j4=2;let gr=class{constructor(e){var n,r,i,s;this._size=0,this._options=e,this._leakageMon=(n=this._options)!=null&&n.leakWarningThreshold?new $4(((r=this._options)==null?void 0:r.leakWarningThreshold)??N4):void 0,this._perfMon=(i=this._options)!=null&&i._profName?new Qd(this._options._profName):void 0,this._deliveryQueue=(s=this._options)==null?void 0:s.deliveryQueue}dispose(){var e,n,r,i;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)==null?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(r=(n=this._options)==null?void 0:n.onDidRemoveLastListener)==null||r.call(n),(i=this._leakageMon)==null||i.dispose())}get event(){return this._event??(this._event=(e,n,r)=>{var a,c,l,f;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),Gd.None;if(this._disposed)return Gd.None;n&&(e=e.bind(n));const i=new jl(e);let s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(i.stack=Z1.create(),s=this._leakageMon.check(i.stack,this._size+1)),this._listeners?this._listeners instanceof jl?(this._deliveryQueue??(this._deliveryQueue=new H4),this._listeners=[this._listeners,i]):this._listeners.push(i):((c=(a=this._options)==null?void 0:a.onWillAddFirstListener)==null||c.call(a,this),this._listeners=i,(f=(l=this._options)==null?void 0:l.onDidAddFirstListener)==null||f.call(l,this)),this._size++;const o=Y1(()=>{s==null||s(),this._removeListener(i)});return r instanceof jo?r.add(o):Array.isArray(r)&&r.push(o),o}),this._event}_removeListener(e){var s,o,a,c;if((o=(s=this._options)==null?void 0:s.onWillRemoveListener)==null||o.call(s,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(c=(a=this._options)==null?void 0:a.onDidRemoveLastListener)==null||c.call(a,this),this._size=0;return}const n=this._listeners,r=n.indexOf(e);if(r===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[r]=void 0;const i=this._deliveryQueue.current===this;if(this._size*j4<=n.length){let l=0;for(let f=0;f<n.length;f++)n[f]?n[l++]=n[f]:i&&(this._deliveryQueue.end--,l<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=l}}_deliver(e,n){var i;if(!e)return;const r=((i=this._options)==null?void 0:i.onListenerError)||F2;if(!r){e.value(n);return}try{e.value(n)}catch(s){r(s)}}_deliverQueue(e){const n=e.current._listeners;for(;e.i<e.end;)this._deliver(n[e.i++],e.value);e.reset()}fire(e){var n,r,i,s;if((n=this._deliveryQueue)!=null&&n.current&&(this._deliverQueue(this._deliveryQueue),(r=this._perfMon)==null||r.stop()),(i=this._perfMon)==null||i.start(this._size),this._listeners)if(this._listeners instanceof jl)this._deliver(this._listeners,e);else{const o=this._deliveryQueue;o.enqueue(this,e,this._listeners.length),this._deliverQueue(o)}(s=this._perfMon)==null||s.stop()}hasListeners(){return this._size>0}};class H4{constructor(){this.i=-1,this.end=0}enqueue(e,n,r){this.i=0,this.end=r,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}const q2=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});var Ja;(function(t){function e(n){return n===t.None||n===t.Cancelled||n instanceof ka?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Qa.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:q2})})(Ja||(Ja={}));class ka{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?q2:(this._emitter||(this._emitter=new gr),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}let W4=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new ka),this._token}cancel(){this._token?this._token instanceof ka&&this._token.cancel():this._token=Ja.Cancelled}dispose(e=!1){var n;e&&this.cancel(),(n=this._parentListener)==null||n.dispose(),this._token?this._token instanceof ka&&this._token.dispose():this._token=Ja.None}};function U4(t){return t}class z4{constructor(e,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=U4):(this._fn=n,this._computeKey=e.getCacheKey)}get(e){const n=this._computeKey(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(e)),this.lastCache}}class Ss{constructor(e){this.executor=e,this._didRun=!1}get hasValue(){return this._didRun}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function B4(t){return!t||typeof t!="string"?!0:t.trim().length===0}function V4(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Jd(t,e){return t<e?-1:t>e?1:0}function ep(t,e,n=0,r=t.length,i=0,s=e.length){for(;n<r&&i<s;n++,i++){const c=t.charCodeAt(n),l=e.charCodeAt(i);if(c<l)return-1;if(c>l)return 1}const o=r-n,a=s-i;return o<a?-1:o>a?1:0}function nm(t,e){return ea(t,e,0,t.length,0,e.length)}function ea(t,e,n=0,r=t.length,i=0,s=e.length){for(;n<r&&i<s;n++,i++){let c=t.charCodeAt(n),l=e.charCodeAt(i);if(c===l)continue;if(c>=128||l>=128)return ep(t.toLowerCase(),e.toLowerCase(),n,r,i,s);rm(c)&&(c-=32),rm(l)&&(l-=32);const f=c-l;if(f!==0)return f}const o=r-n,a=s-i;return o<a?-1:o>a?1:0}function rm(t){return t>=97&&t<=122}function K4(t,e){return t.length===e.length&&ea(t,e)===0}function j2(t,e){const n=e.length;return e.length>t.length?!1:ea(t,e,0,n)===0}function tp(t){return 55296<=t&&t<=56319}function Ya(t){return 56320<=t&&t<=57343}function np(t,e){return(t-55296<<10)+(e-56320)+65536}function G4(t,e,n){const r=t.charCodeAt(n);if(tp(r)&&n+1<e){const i=t.charCodeAt(n+1);if(Ya(i))return np(r,i)}return r}function Q4(t,e){const n=t.charCodeAt(e-1);if(Ya(n)&&e>1){const r=t.charCodeAt(e-2);if(tp(r))return np(r,n)}return n}class J4{get offset(){return this._offset}constructor(e,n=0){this._str=e,this._len=e.length,this._offset=n}setOffset(e){this._offset=e}prevCodePoint(){const e=Q4(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=G4(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class Y4{get offset(){return this._iterator.offset}constructor(e,n=0){this._iterator=new J4(e,n)}nextGraphemeLength(){const e=Xa.getInstance(),n=this._iterator,r=n.offset;let i=e.getGraphemeBreakType(n.nextCodePoint());for(;!n.eol();){const s=n.offset,o=e.getGraphemeBreakType(n.nextCodePoint());if(sm(i,o)){n.setOffset(s);break}i=o}return n.offset-r}prevGraphemeLength(){const e=Xa.getInstance(),n=this._iterator,r=n.offset;let i=e.getGraphemeBreakType(n.prevCodePoint());for(;n.offset>0;){const s=n.offset,o=e.getGraphemeBreakType(n.prevCodePoint());if(sm(o,i)){n.setOffset(s);break}i=o}return r-n.offset}eol(){return this._iterator.eol()}}function im(t,e){return new Y4(t,e).nextGraphemeLength()}function sm(t,e){return t===0?e!==5&&e!==7:t===2&&e===3?!1:t===4||t===2||t===3||e===4||e===2||e===3?!0:!(t===8&&(e===8||e===9||e===11||e===12)||(t===11||t===9)&&(e===9||e===10)||(t===12||t===10)&&e===10||e===5||e===13||e===7||t===1||t===13&&e===14||t===6&&e===6)}const Ni=class Ni{static getInstance(){return Ni._INSTANCE||(Ni._INSTANCE=new Ni),Ni._INSTANCE}constructor(){this._data=X4()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const n=this._data,r=n.length/3;let i=1;for(;i<=r;)if(e<n[3*i])i=2*i;else if(e>n[3*i+1])i=2*i+1;else return n[3*i+2];return 0}};Ni._INSTANCE=null;let Xa=Ni;function X4(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}const hr=class hr{static getInstance(e){return hr.cache.get(Array.from(e))}static getLocales(){return hr._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};hr.ambiguousCharacterData=new Ss(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),hr.cache=new z4({getCacheKey:JSON.stringify},e=>{function n(f){const p=new Map;for(let g=0;g<f.length;g+=2)p.set(f[g],f[g+1]);return p}function r(f,p){const g=new Map(f);for(const[_,C]of p)g.set(_,C);return g}function i(f,p){if(!f)return p;const g=new Map;for(const[_,C]of f)p.has(_)&&g.set(_,C);return g}const s=hr.ambiguousCharacterData.value;let o=e.filter(f=>!f.startsWith("_")&&f in s);o.length===0&&(o=["_default"]);let a;for(const f of o){const p=n(s[f]);a=i(a,p)}const c=n(s._common),l=r(c,a);return new hr(l)}),hr._locales=new Ss(()=>Object.keys(hr.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));let om=hr;const ms=class ms{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(ms.getRawData())),this._data}static isInvisibleCharacter(e){return ms.getData().has(e)}static get codePoints(){return ms.getData()}};ms._data=void 0;let am=ms;H2.bind(void 0,!1);H2.bind(void 0,!0);function H2(t,e,n){if(!n||n.length<e.length)return null;let r;return t?r=j2(n,e):r=n.indexOf(e)===0,r?e.length>0?[{start:0,end:e.length}]:[]:null}const Z4=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(t=>Z4.add(t.charCodeAt(0)));new N2(1e4);const cm=128;function rp(){const t=[],e=[];for(let n=0;n<=cm;n++)e[n]=0;for(let n=0;n<=cm;n++)t.push(e.slice(0));return t}rp();rp();rp();var lm;(function(t){t.Default=[-100,0];function e(n){return!n||n.length===2&&n[0]===-100&&n[1]===0}t.isDefault=e})(lm||(lm={}));const bp=class bp{constructor(e,n){this.firstMatchCanBeWeak=e,this.boostFullMatch=n}};bp.default={boostFullMatch:!0,firstMatchCanBeWeak:!1};let um=bp;function Hn(t){return typeof t=="string"}function ev(t){return Array.isArray(t)&&t.every(e=>Hn(e))}function dm(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}function Co(t){return typeof t=="number"&&!isNaN(t)}const fm=Object.create(null);function u(t,e){if(Hn(e)){const n=fm[e];if(n===void 0)throw new Error(`${t} references an unknown codicon: ${e}`);e=n}return fm[t]=e,{id:t}}const tv={add:u("add",6e4),plus:u("plus",6e4),gistNew:u("gist-new",6e4),repoCreate:u("repo-create",6e4),lightbulb:u("lightbulb",60001),lightBulb:u("light-bulb",60001),repo:u("repo",60002),repoDelete:u("repo-delete",60002),gistFork:u("gist-fork",60003),repoForked:u("repo-forked",60003),gitPullRequest:u("git-pull-request",60004),gitPullRequestAbandoned:u("git-pull-request-abandoned",60004),recordKeys:u("record-keys",60005),keyboard:u("keyboard",60005),tag:u("tag",60006),gitPullRequestLabel:u("git-pull-request-label",60006),tagAdd:u("tag-add",60006),tagRemove:u("tag-remove",60006),person:u("person",60007),personFollow:u("person-follow",60007),personOutline:u("person-outline",60007),personFilled:u("person-filled",60007),gitBranch:u("git-branch",60008),gitBranchCreate:u("git-branch-create",60008),gitBranchDelete:u("git-branch-delete",60008),sourceControl:u("source-control",60008),mirror:u("mirror",60009),mirrorPublic:u("mirror-public",60009),star:u("star",60010),starAdd:u("star-add",60010),starDelete:u("star-delete",60010),starEmpty:u("star-empty",60010),comment:u("comment",60011),commentAdd:u("comment-add",60011),alert:u("alert",60012),warning:u("warning",60012),search:u("search",60013),searchSave:u("search-save",60013),logOut:u("log-out",60014),signOut:u("sign-out",60014),logIn:u("log-in",60015),signIn:u("sign-in",60015),eye:u("eye",60016),eyeUnwatch:u("eye-unwatch",60016),eyeWatch:u("eye-watch",60016),circleFilled:u("circle-filled",60017),primitiveDot:u("primitive-dot",60017),closeDirty:u("close-dirty",60017),debugBreakpoint:u("debug-breakpoint",60017),debugBreakpointDisabled:u("debug-breakpoint-disabled",60017),debugHint:u("debug-hint",60017),terminalDecorationSuccess:u("terminal-decoration-success",60017),primitiveSquare:u("primitive-square",60018),edit:u("edit",60019),pencil:u("pencil",60019),info:u("info",60020),issueOpened:u("issue-opened",60020),gistPrivate:u("gist-private",60021),gitForkPrivate:u("git-fork-private",60021),lock:u("lock",60021),mirrorPrivate:u("mirror-private",60021),close:u("close",60022),removeClose:u("remove-close",60022),x:u("x",60022),repoSync:u("repo-sync",60023),sync:u("sync",60023),clone:u("clone",60024),desktopDownload:u("desktop-download",60024),beaker:u("beaker",60025),microscope:u("microscope",60025),vm:u("vm",60026),deviceDesktop:u("device-desktop",60026),file:u("file",60027),fileText:u("file-text",60027),more:u("more",60028),ellipsis:u("ellipsis",60028),kebabHorizontal:u("kebab-horizontal",60028),mailReply:u("mail-reply",60029),reply:u("reply",60029),organization:u("organization",60030),organizationFilled:u("organization-filled",60030),organizationOutline:u("organization-outline",60030),newFile:u("new-file",60031),fileAdd:u("file-add",60031),newFolder:u("new-folder",60032),fileDirectoryCreate:u("file-directory-create",60032),trash:u("trash",60033),trashcan:u("trashcan",60033),history:u("history",60034),clock:u("clock",60034),folder:u("folder",60035),fileDirectory:u("file-directory",60035),symbolFolder:u("symbol-folder",60035),logoGithub:u("logo-github",60036),markGithub:u("mark-github",60036),github:u("github",60036),terminal:u("terminal",60037),console:u("console",60037),repl:u("repl",60037),zap:u("zap",60038),symbolEvent:u("symbol-event",60038),error:u("error",60039),stop:u("stop",60039),variable:u("variable",60040),symbolVariable:u("symbol-variable",60040),array:u("array",60042),symbolArray:u("symbol-array",60042),symbolModule:u("symbol-module",60043),symbolPackage:u("symbol-package",60043),symbolNamespace:u("symbol-namespace",60043),symbolObject:u("symbol-object",60043),symbolMethod:u("symbol-method",60044),symbolFunction:u("symbol-function",60044),symbolConstructor:u("symbol-constructor",60044),symbolBoolean:u("symbol-boolean",60047),symbolNull:u("symbol-null",60047),symbolNumeric:u("symbol-numeric",60048),symbolNumber:u("symbol-number",60048),symbolStructure:u("symbol-structure",60049),symbolStruct:u("symbol-struct",60049),symbolParameter:u("symbol-parameter",60050),symbolTypeParameter:u("symbol-type-parameter",60050),symbolKey:u("symbol-key",60051),symbolText:u("symbol-text",60051),symbolReference:u("symbol-reference",60052),goToFile:u("go-to-file",60052),symbolEnum:u("symbol-enum",60053),symbolValue:u("symbol-value",60053),symbolRuler:u("symbol-ruler",60054),symbolUnit:u("symbol-unit",60054),activateBreakpoints:u("activate-breakpoints",60055),archive:u("archive",60056),arrowBoth:u("arrow-both",60057),arrowDown:u("arrow-down",60058),arrowLeft:u("arrow-left",60059),arrowRight:u("arrow-right",60060),arrowSmallDown:u("arrow-small-down",60061),arrowSmallLeft:u("arrow-small-left",60062),arrowSmallRight:u("arrow-small-right",60063),arrowSmallUp:u("arrow-small-up",60064),arrowUp:u("arrow-up",60065),bell:u("bell",60066),bold:u("bold",60067),book:u("book",60068),bookmark:u("bookmark",60069),debugBreakpointConditionalUnverified:u("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:u("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:u("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:u("debug-breakpoint-data-unverified",60072),debugBreakpointData:u("debug-breakpoint-data",60073),debugBreakpointDataDisabled:u("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:u("debug-breakpoint-log-unverified",60074),debugBreakpointLog:u("debug-breakpoint-log",60075),debugBreakpointLogDisabled:u("debug-breakpoint-log-disabled",60075),briefcase:u("briefcase",60076),broadcast:u("broadcast",60077),browser:u("browser",60078),bug:u("bug",60079),calendar:u("calendar",60080),caseSensitive:u("case-sensitive",60081),check:u("check",60082),checklist:u("checklist",60083),chevronDown:u("chevron-down",60084),chevronLeft:u("chevron-left",60085),chevronRight:u("chevron-right",60086),chevronUp:u("chevron-up",60087),chromeClose:u("chrome-close",60088),chromeMaximize:u("chrome-maximize",60089),chromeMinimize:u("chrome-minimize",60090),chromeRestore:u("chrome-restore",60091),circleOutline:u("circle-outline",60092),circle:u("circle",60092),debugBreakpointUnverified:u("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:u("terminal-decoration-incomplete",60092),circleSlash:u("circle-slash",60093),circuitBoard:u("circuit-board",60094),clearAll:u("clear-all",60095),clippy:u("clippy",60096),closeAll:u("close-all",60097),cloudDownload:u("cloud-download",60098),cloudUpload:u("cloud-upload",60099),code:u("code",60100),collapseAll:u("collapse-all",60101),colorMode:u("color-mode",60102),commentDiscussion:u("comment-discussion",60103),creditCard:u("credit-card",60105),dash:u("dash",60108),dashboard:u("dashboard",60109),database:u("database",60110),debugContinue:u("debug-continue",60111),debugDisconnect:u("debug-disconnect",60112),debugPause:u("debug-pause",60113),debugRestart:u("debug-restart",60114),debugStart:u("debug-start",60115),debugStepInto:u("debug-step-into",60116),debugStepOut:u("debug-step-out",60117),debugStepOver:u("debug-step-over",60118),debugStop:u("debug-stop",60119),debug:u("debug",60120),deviceCameraVideo:u("device-camera-video",60121),deviceCamera:u("device-camera",60122),deviceMobile:u("device-mobile",60123),diffAdded:u("diff-added",60124),diffIgnored:u("diff-ignored",60125),diffModified:u("diff-modified",60126),diffRemoved:u("diff-removed",60127),diffRenamed:u("diff-renamed",60128),diff:u("diff",60129),diffSidebyside:u("diff-sidebyside",60129),discard:u("discard",60130),editorLayout:u("editor-layout",60131),emptyWindow:u("empty-window",60132),exclude:u("exclude",60133),extensions:u("extensions",60134),eyeClosed:u("eye-closed",60135),fileBinary:u("file-binary",60136),fileCode:u("file-code",60137),fileMedia:u("file-media",60138),filePdf:u("file-pdf",60139),fileSubmodule:u("file-submodule",60140),fileSymlinkDirectory:u("file-symlink-directory",60141),fileSymlinkFile:u("file-symlink-file",60142),fileZip:u("file-zip",60143),files:u("files",60144),filter:u("filter",60145),flame:u("flame",60146),foldDown:u("fold-down",60147),foldUp:u("fold-up",60148),fold:u("fold",60149),folderActive:u("folder-active",60150),folderOpened:u("folder-opened",60151),gear:u("gear",60152),gift:u("gift",60153),gistSecret:u("gist-secret",60154),gist:u("gist",60155),gitCommit:u("git-commit",60156),gitCompare:u("git-compare",60157),compareChanges:u("compare-changes",60157),gitMerge:u("git-merge",60158),githubAction:u("github-action",60159),githubAlt:u("github-alt",60160),globe:u("globe",60161),grabber:u("grabber",60162),graph:u("graph",60163),gripper:u("gripper",60164),heart:u("heart",60165),home:u("home",60166),horizontalRule:u("horizontal-rule",60167),hubot:u("hubot",60168),inbox:u("inbox",60169),issueReopened:u("issue-reopened",60171),issues:u("issues",60172),italic:u("italic",60173),jersey:u("jersey",60174),json:u("json",60175),kebabVertical:u("kebab-vertical",60176),key:u("key",60177),law:u("law",60178),lightbulbAutofix:u("lightbulb-autofix",60179),linkExternal:u("link-external",60180),link:u("link",60181),listOrdered:u("list-ordered",60182),listUnordered:u("list-unordered",60183),liveShare:u("live-share",60184),loading:u("loading",60185),location:u("location",60186),mailRead:u("mail-read",60187),mail:u("mail",60188),markdown:u("markdown",60189),megaphone:u("megaphone",60190),mention:u("mention",60191),milestone:u("milestone",60192),gitPullRequestMilestone:u("git-pull-request-milestone",60192),mortarBoard:u("mortar-board",60193),move:u("move",60194),multipleWindows:u("multiple-windows",60195),mute:u("mute",60196),noNewline:u("no-newline",60197),note:u("note",60198),octoface:u("octoface",60199),openPreview:u("open-preview",60200),package:u("package",60201),paintcan:u("paintcan",60202),pin:u("pin",60203),play:u("play",60204),run:u("run",60204),plug:u("plug",60205),preserveCase:u("preserve-case",60206),preview:u("preview",60207),project:u("project",60208),pulse:u("pulse",60209),question:u("question",60210),quote:u("quote",60211),radioTower:u("radio-tower",60212),reactions:u("reactions",60213),references:u("references",60214),refresh:u("refresh",60215),regex:u("regex",60216),remoteExplorer:u("remote-explorer",60217),remote:u("remote",60218),remove:u("remove",60219),replaceAll:u("replace-all",60220),replace:u("replace",60221),repoClone:u("repo-clone",60222),repoForcePush:u("repo-force-push",60223),repoPull:u("repo-pull",60224),repoPush:u("repo-push",60225),report:u("report",60226),requestChanges:u("request-changes",60227),rocket:u("rocket",60228),rootFolderOpened:u("root-folder-opened",60229),rootFolder:u("root-folder",60230),rss:u("rss",60231),ruby:u("ruby",60232),saveAll:u("save-all",60233),saveAs:u("save-as",60234),save:u("save",60235),screenFull:u("screen-full",60236),screenNormal:u("screen-normal",60237),searchStop:u("search-stop",60238),server:u("server",60240),settingsGear:u("settings-gear",60241),settings:u("settings",60242),shield:u("shield",60243),smiley:u("smiley",60244),sortPrecedence:u("sort-precedence",60245),splitHorizontal:u("split-horizontal",60246),splitVertical:u("split-vertical",60247),squirrel:u("squirrel",60248),starFull:u("star-full",60249),starHalf:u("star-half",60250),symbolClass:u("symbol-class",60251),symbolColor:u("symbol-color",60252),symbolConstant:u("symbol-constant",60253),symbolEnumMember:u("symbol-enum-member",60254),symbolField:u("symbol-field",60255),symbolFile:u("symbol-file",60256),symbolInterface:u("symbol-interface",60257),symbolKeyword:u("symbol-keyword",60258),symbolMisc:u("symbol-misc",60259),symbolOperator:u("symbol-operator",60260),symbolProperty:u("symbol-property",60261),wrench:u("wrench",60261),wrenchSubaction:u("wrench-subaction",60261),symbolSnippet:u("symbol-snippet",60262),tasklist:u("tasklist",60263),telescope:u("telescope",60264),textSize:u("text-size",60265),threeBars:u("three-bars",60266),thumbsdown:u("thumbsdown",60267),thumbsup:u("thumbsup",60268),tools:u("tools",60269),triangleDown:u("triangle-down",60270),triangleLeft:u("triangle-left",60271),triangleRight:u("triangle-right",60272),triangleUp:u("triangle-up",60273),twitter:u("twitter",60274),unfold:u("unfold",60275),unlock:u("unlock",60276),unmute:u("unmute",60277),unverified:u("unverified",60278),verified:u("verified",60279),versions:u("versions",60280),vmActive:u("vm-active",60281),vmOutline:u("vm-outline",60282),vmRunning:u("vm-running",60283),watch:u("watch",60284),whitespace:u("whitespace",60285),wholeWord:u("whole-word",60286),window:u("window",60287),wordWrap:u("word-wrap",60288),zoomIn:u("zoom-in",60289),zoomOut:u("zoom-out",60290),listFilter:u("list-filter",60291),listFlat:u("list-flat",60292),listSelection:u("list-selection",60293),selection:u("selection",60293),listTree:u("list-tree",60294),debugBreakpointFunctionUnverified:u("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:u("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:u("debug-breakpoint-function-disabled",60296),debugStackframeActive:u("debug-stackframe-active",60297),circleSmallFilled:u("circle-small-filled",60298),debugStackframeDot:u("debug-stackframe-dot",60298),terminalDecorationMark:u("terminal-decoration-mark",60298),debugStackframe:u("debug-stackframe",60299),debugStackframeFocused:u("debug-stackframe-focused",60299),debugBreakpointUnsupported:u("debug-breakpoint-unsupported",60300),symbolString:u("symbol-string",60301),debugReverseContinue:u("debug-reverse-continue",60302),debugStepBack:u("debug-step-back",60303),debugRestartFrame:u("debug-restart-frame",60304),debugAlt:u("debug-alt",60305),callIncoming:u("call-incoming",60306),callOutgoing:u("call-outgoing",60307),menu:u("menu",60308),expandAll:u("expand-all",60309),feedback:u("feedback",60310),gitPullRequestReviewer:u("git-pull-request-reviewer",60310),groupByRefType:u("group-by-ref-type",60311),ungroupByRefType:u("ungroup-by-ref-type",60312),account:u("account",60313),gitPullRequestAssignee:u("git-pull-request-assignee",60313),bellDot:u("bell-dot",60314),debugConsole:u("debug-console",60315),library:u("library",60316),output:u("output",60317),runAll:u("run-all",60318),syncIgnored:u("sync-ignored",60319),pinned:u("pinned",60320),githubInverted:u("github-inverted",60321),serverProcess:u("server-process",60322),serverEnvironment:u("server-environment",60323),pass:u("pass",60324),issueClosed:u("issue-closed",60324),stopCircle:u("stop-circle",60325),playCircle:u("play-circle",60326),record:u("record",60327),debugAltSmall:u("debug-alt-small",60328),vmConnect:u("vm-connect",60329),cloud:u("cloud",60330),merge:u("merge",60331),export:u("export",60332),graphLeft:u("graph-left",60333),magnet:u("magnet",60334),notebook:u("notebook",60335),redo:u("redo",60336),checkAll:u("check-all",60337),pinnedDirty:u("pinned-dirty",60338),passFilled:u("pass-filled",60339),circleLargeFilled:u("circle-large-filled",60340),circleLarge:u("circle-large",60341),circleLargeOutline:u("circle-large-outline",60341),combine:u("combine",60342),gather:u("gather",60342),table:u("table",60343),variableGroup:u("variable-group",60344),typeHierarchy:u("type-hierarchy",60345),typeHierarchySub:u("type-hierarchy-sub",60346),typeHierarchySuper:u("type-hierarchy-super",60347),gitPullRequestCreate:u("git-pull-request-create",60348),runAbove:u("run-above",60349),runBelow:u("run-below",60350),notebookTemplate:u("notebook-template",60351),debugRerun:u("debug-rerun",60352),workspaceTrusted:u("workspace-trusted",60353),workspaceUntrusted:u("workspace-untrusted",60354),workspaceUnknown:u("workspace-unknown",60355),terminalCmd:u("terminal-cmd",60356),terminalDebian:u("terminal-debian",60357),terminalLinux:u("terminal-linux",60358),terminalPowershell:u("terminal-powershell",60359),terminalTmux:u("terminal-tmux",60360),terminalUbuntu:u("terminal-ubuntu",60361),terminalBash:u("terminal-bash",60362),arrowSwap:u("arrow-swap",60363),copy:u("copy",60364),personAdd:u("person-add",60365),filterFilled:u("filter-filled",60366),wand:u("wand",60367),debugLineByLine:u("debug-line-by-line",60368),inspect:u("inspect",60369),layers:u("layers",60370),layersDot:u("layers-dot",60371),layersActive:u("layers-active",60372),compass:u("compass",60373),compassDot:u("compass-dot",60374),compassActive:u("compass-active",60375),azure:u("azure",60376),issueDraft:u("issue-draft",60377),gitPullRequestClosed:u("git-pull-request-closed",60378),gitPullRequestDraft:u("git-pull-request-draft",60379),debugAll:u("debug-all",60380),debugCoverage:u("debug-coverage",60381),runErrors:u("run-errors",60382),folderLibrary:u("folder-library",60383),debugContinueSmall:u("debug-continue-small",60384),beakerStop:u("beaker-stop",60385),graphLine:u("graph-line",60386),graphScatter:u("graph-scatter",60387),pieChart:u("pie-chart",60388),bracket:u("bracket",60175),bracketDot:u("bracket-dot",60389),bracketError:u("bracket-error",60390),lockSmall:u("lock-small",60391),azureDevops:u("azure-devops",60392),verifiedFilled:u("verified-filled",60393),newline:u("newline",60394),layout:u("layout",60395),layoutActivitybarLeft:u("layout-activitybar-left",60396),layoutActivitybarRight:u("layout-activitybar-right",60397),layoutPanelLeft:u("layout-panel-left",60398),layoutPanelCenter:u("layout-panel-center",60399),layoutPanelJustify:u("layout-panel-justify",60400),layoutPanelRight:u("layout-panel-right",60401),layoutPanel:u("layout-panel",60402),layoutSidebarLeft:u("layout-sidebar-left",60403),layoutSidebarRight:u("layout-sidebar-right",60404),layoutStatusbar:u("layout-statusbar",60405),layoutMenubar:u("layout-menubar",60406),layoutCentered:u("layout-centered",60407),target:u("target",60408),indent:u("indent",60409),recordSmall:u("record-small",60410),errorSmall:u("error-small",60411),terminalDecorationError:u("terminal-decoration-error",60411),arrowCircleDown:u("arrow-circle-down",60412),arrowCircleLeft:u("arrow-circle-left",60413),arrowCircleRight:u("arrow-circle-right",60414),arrowCircleUp:u("arrow-circle-up",60415),layoutSidebarRightOff:u("layout-sidebar-right-off",60416),layoutPanelOff:u("layout-panel-off",60417),layoutSidebarLeftOff:u("layout-sidebar-left-off",60418),blank:u("blank",60419),heartFilled:u("heart-filled",60420),map:u("map",60421),mapHorizontal:u("map-horizontal",60421),foldHorizontal:u("fold-horizontal",60421),mapFilled:u("map-filled",60422),mapHorizontalFilled:u("map-horizontal-filled",60422),foldHorizontalFilled:u("fold-horizontal-filled",60422),circleSmall:u("circle-small",60423),bellSlash:u("bell-slash",60424),bellSlashDot:u("bell-slash-dot",60425),commentUnresolved:u("comment-unresolved",60426),gitPullRequestGoToChanges:u("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:u("git-pull-request-new-changes",60428),searchFuzzy:u("search-fuzzy",60429),commentDraft:u("comment-draft",60430),send:u("send",60431),sparkle:u("sparkle",60432),insert:u("insert",60433),mic:u("mic",60434),thumbsdownFilled:u("thumbsdown-filled",60435),thumbsupFilled:u("thumbsup-filled",60436),coffee:u("coffee",60437),snake:u("snake",60438),game:u("game",60439),vr:u("vr",60440),chip:u("chip",60441),piano:u("piano",60442),music:u("music",60443),micFilled:u("mic-filled",60444),repoFetch:u("repo-fetch",60445),copilot:u("copilot",60446),lightbulbSparkle:u("lightbulb-sparkle",60447),robot:u("robot",60448),sparkleFilled:u("sparkle-filled",60449),diffSingle:u("diff-single",60450),diffMultiple:u("diff-multiple",60451),surroundWith:u("surround-with",60452),share:u("share",60453),gitStash:u("git-stash",60454),gitStashApply:u("git-stash-apply",60455),gitStashPop:u("git-stash-pop",60456),vscode:u("vscode",60457),vscodeInsiders:u("vscode-insiders",60458),codeOss:u("code-oss",60459),runCoverage:u("run-coverage",60460),runAllCoverage:u("run-all-coverage",60461),coverage:u("coverage",60462),githubProject:u("github-project",60463),mapVertical:u("map-vertical",60464),foldVertical:u("fold-vertical",60464),mapVerticalFilled:u("map-vertical-filled",60465),foldVerticalFilled:u("fold-vertical-filled",60465),goToSearch:u("go-to-search",60466),percentage:u("percentage",60467),sortPercentage:u("sort-percentage",60467)},nv={dialogError:u("dialog-error","error"),dialogWarning:u("dialog-warning","warning"),dialogInfo:u("dialog-info","info"),dialogClose:u("dialog-close","close"),treeItemExpanded:u("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:u("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:u("tree-filter-on-type-off","list-selection"),treeFilterClear:u("tree-filter-clear","close"),treeItemLoading:u("tree-item-loading","loading"),menuSelection:u("menu-selection","check"),menuSubmenu:u("menu-submenu","chevron-right"),menuBarMore:u("menubar-more","more"),scrollbarButtonLeft:u("scrollbar-button-left","triangle-left"),scrollbarButtonRight:u("scrollbar-button-right","triangle-right"),scrollbarButtonUp:u("scrollbar-button-up","triangle-up"),scrollbarButtonDown:u("scrollbar-button-down","triangle-down"),toolBarMore:u("toolbar-more","more"),quickInputBack:u("quick-input-back","arrow-left"),dropDownButton:u("drop-down-button",60084),symbolCustomColor:u("symbol-customcolor",60252),exportIcon:u("export",60332),workspaceUnspecified:u("workspace-unspecified",60355),newLine:u("newline",60394),thumbsDownFilled:u("thumbsdown-filled",60435),thumbsUpFilled:u("thumbsup-filled",60436),gitFetch:u("git-fetch",60445),lightbulbSparkleAutofix:u("lightbulb-sparkle-autofix",60447),debugBreakpointPending:u("debug-breakpoint-pending",60377)},rv={...tv,...nv};var Yd;(function(t){function e(n){return n&&typeof n=="object"&&typeof n.id=="string"}t.isThemeColor=e})(Yd||(Yd={}));var Ho;(function(t){t.iconNameSegment="[A-Za-z0-9]+",t.iconNameExpression="[A-Za-z0-9-]+",t.iconModifierExpression="~[A-Za-z]+",t.iconNameCharacter="[A-Za-z0-9~-]";const e=new RegExp(`^(${t.iconNameExpression})(${t.iconModifierExpression})?$`);function n(g){const _=e.exec(g.id);if(!_)return n(rv.error);const[,C,k]=_,M=["codicon","codicon-"+C];return k&&M.push("codicon-modifier-"+k.substring(1)),M}t.asClassNameArray=n;function r(g){return n(g).join(" ")}t.asClassName=r;function i(g){return"."+n(g).join(".")}t.asCSSSelector=i;function s(g){return g&&typeof g=="object"&&typeof g.id=="string"&&(typeof g.color>"u"||Yd.isThemeColor(g.color))}t.isThemeIcon=s;const o=new RegExp(`^\\$\\((${t.iconNameExpression}(?:${t.iconModifierExpression})?)\\)$`);function a(g){const _=o.exec(g);if(!_)return;const[,C]=_;return{id:C}}t.fromString=a;function c(g){return{id:g}}t.fromId=c;function l(g,_){let C=g.id;const k=C.lastIndexOf("~");return k!==-1&&(C=C.substring(0,k)),_&&(C=`${C}~${_}`),{id:C}}t.modify=l;function f(g){const _=g.id.lastIndexOf("~");if(_!==-1)return g.id.substring(_+1)}t.getModifier=f;function p(g,_){var C,k;return g.id===_.id&&((C=g.color)==null?void 0:C.id)===((k=_.color)==null?void 0:k.id)}t.isEqual=p})(Ho||(Ho={}));const ip=new RegExp(`\\$\\(${Ho.iconNameExpression}(?:${Ho.iconModifierExpression})?\\)`,"g"),iv=new RegExp(`(\\\\)?${ip.source}`,"g");function sv(t){return t.replace(iv,(e,n)=>n?e:`\\${e}`)}new RegExp(`\\\\${ip.source}`,"g");new RegExp(`(\\s)?(\\\\)?${ip.source}(\\s)?`,"g");new RegExp(`\\$\\(${Ho.iconNameCharacter}+\\)`,"g");let ov=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function av(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(r,i)=>{const s=i[0],o=e[s];let a=r;return typeof o=="string"?a=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(a=String(o)),a}),ov&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}let cv={};function m(t,e,n,...r){const i=typeof e=="object"?e.key:e,s=(cv[t]??{})[i]??n;return av(s,r)}const ds="en";let Xd=!1,Zd=!1,ef=!1,W2=!1,sp=!1,ha,Ra=ds,hm=ds,rr;const Hr=globalThis;let _n;var d2;typeof Hr.vscode<"u"&&typeof Hr.vscode.process<"u"?_n=Hr.vscode.process:typeof process<"u"&&typeof((d2=process==null?void 0:process.versions)==null?void 0:d2.node)=="string"&&(_n=process);var f2;const lv=typeof((f2=_n==null?void 0:_n.versions)==null?void 0:f2.electron)=="string",uv=lv&&(_n==null?void 0:_n.type)==="renderer";if(typeof _n=="object"){Xd=_n.platform==="win32",Zd=_n.platform==="darwin",ef=_n.platform==="linux",_n.env.CI||_n.env.BUILD_ARTIFACTSTAGINGDIRECTORY,ha=ds,Ra=ds;const t=_n.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t),n=e.availableLanguages["*"];ha=e.locale,hm=e.osLocale,Ra=n||ds}catch{}W2=!0}else typeof navigator=="object"&&!uv?(rr=navigator.userAgent,Xd=rr.indexOf("Windows")>=0,Zd=rr.indexOf("Macintosh")>=0,(rr.indexOf("Macintosh")>=0||rr.indexOf("iPad")>=0||rr.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,ef=rr.indexOf("Linux")>=0,(rr==null?void 0:rr.indexOf("Mobi"))>=0,sp=!0,ha=ds,Ra=ha,hm=navigator.language):console.error("Unable to resolve platform.");const Ji=Xd,Sr=Zd,Za=ef,dv=W2,op=sp,fv=sp&&typeof Hr.importScripts=="function",hv=fv?Hr.origin:void 0,Dr=rr,Yr=Ra;var pm;(function(t){function e(){return Yr}t.value=e;function n(){return Yr.length===2?Yr==="en":Yr.length>=3?Yr[0]==="e"&&Yr[1]==="n"&&Yr[2]==="-":!1}t.isDefaultVariant=n;function r(){return Yr==="en"}t.isDefault=r})(pm||(pm={}));const pv=typeof Hr.postMessage=="function"&&!Hr.importScripts;(()=>{if(pv){const t=[];Hr.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=t.length;r<i;r++){const s=t[r];if(s.id===n.data.vscodeScheduleAsyncWork){t.splice(r,1),s.callback();return}}});let e=0;return n=>{const r=++e;t.push({id:r,callback:n}),Hr.postMessage({vscodeScheduleAsyncWork:r},"*")}}return t=>setTimeout(t)})();const U2=!!(Dr&&Dr.indexOf("Chrome")>=0),gv=!!(Dr&&Dr.indexOf("Firefox")>=0),mv=!!(!U2&&Dr&&Dr.indexOf("Safari")>=0),yv=!!(Dr&&Dr.indexOf("Edg/")>=0);Dr&&Dr.indexOf("Android")>=0;let Ui;const Hl=globalThis.vscode;if(typeof Hl<"u"&&typeof Hl.process<"u"){const t=Hl.process;Ui={get platform(){return t.platform},get arch(){return t.arch},get env(){return t.env},cwd(){return t.cwd()}}}else typeof process<"u"?Ui={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Ui={get platform(){return Ji?"win32":Sr?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const ec=Ui.cwd,bv=Ui.env,vv=Ui.platform;Ui.arch;const wv=65,Cv=97,_v=90,Sv=122,fi=46,Yt=47,In=92,Xr=58,Dv=63;class z2 extends Error{constructor(e,n,r){let i;typeof n=="string"&&n.indexOf("not ")===0?(i="must not be",n=n.replace(/^not /,"")):i="must be";const s=e.indexOf(".")!==-1?"property":"argument";let o=`The "${e}" ${s} ${i} of type ${n}`;o+=`. Received type ${typeof r}`,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function Tv(t,e){if(t===null||typeof t!="object")throw new z2(e,"Object",t)}function Et(t,e){if(typeof t!="string")throw new z2(e,"string",t)}const er=vv==="win32";function Oe(t){return t===Yt||t===In}function tf(t){return t===Yt}function Zr(t){return t>=wv&&t<=_v||t>=Cv&&t<=Sv}function tc(t,e,n,r){let i="",s=0,o=-1,a=0,c=0;for(let l=0;l<=t.length;++l){if(l<t.length)c=t.charCodeAt(l);else{if(r(c))break;c=Yt}if(r(c)){if(!(o===l-1||a===1))if(a===2){if(i.length<2||s!==2||i.charCodeAt(i.length-1)!==fi||i.charCodeAt(i.length-2)!==fi){if(i.length>2){const f=i.lastIndexOf(n);f===-1?(i="",s=0):(i=i.slice(0,f),s=i.length-1-i.lastIndexOf(n)),o=l,a=0;continue}else if(i.length!==0){i="",s=0,o=l,a=0;continue}}e&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${t.slice(o+1,l)}`:i=t.slice(o+1,l),s=l-o-1;o=l,a=0}else c===fi&&a!==-1?++a:a=-1}return i}function B2(t,e){Tv(e,"pathObject");const n=e.dir||e.root,r=e.base||`${e.name||""}${e.ext||""}`;return n?n===e.root?`${n}${r}`:`${n}${t}${r}`:r}const Bt={resolve(...t){let e="",n="",r=!1;for(let i=t.length-1;i>=-1;i--){let s;if(i>=0){if(s=t[i],Et(s,"path"),s.length===0)continue}else e.length===0?s=ec():(s=bv[`=${e}`]||ec(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===In)&&(s=`${e}\\`));const o=s.length;let a=0,c="",l=!1;const f=s.charCodeAt(0);if(o===1)Oe(f)&&(a=1,l=!0);else if(Oe(f))if(l=!0,Oe(s.charCodeAt(1))){let p=2,g=p;for(;p<o&&!Oe(s.charCodeAt(p));)p++;if(p<o&&p!==g){const _=s.slice(g,p);for(g=p;p<o&&Oe(s.charCodeAt(p));)p++;if(p<o&&p!==g){for(g=p;p<o&&!Oe(s.charCodeAt(p));)p++;(p===o||p!==g)&&(c=`\\\\${_}\\${s.slice(g,p)}`,a=p)}}}else a=1;else Zr(f)&&s.charCodeAt(1)===Xr&&(c=s.slice(0,2),a=2,o>2&&Oe(s.charCodeAt(2))&&(l=!0,a=3));if(c.length>0)if(e.length>0){if(c.toLowerCase()!==e.toLowerCase())continue}else e=c;if(r){if(e.length>0)break}else if(n=`${s.slice(a)}\\${n}`,r=l,l&&e.length>0)break}return n=tc(n,!r,"\\",Oe),r?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){Et(t,"path");const e=t.length;if(e===0)return".";let n=0,r,i=!1;const s=t.charCodeAt(0);if(e===1)return tf(s)?"\\":t;if(Oe(s))if(i=!0,Oe(t.charCodeAt(1))){let a=2,c=a;for(;a<e&&!Oe(t.charCodeAt(a));)a++;if(a<e&&a!==c){const l=t.slice(c,a);for(c=a;a<e&&Oe(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&!Oe(t.charCodeAt(a));)a++;if(a===e)return`\\\\${l}\\${t.slice(c)}\\`;a!==c&&(r=`\\\\${l}\\${t.slice(c,a)}`,n=a)}}}else n=1;else Zr(s)&&t.charCodeAt(1)===Xr&&(r=t.slice(0,2),n=2,e>2&&Oe(t.charCodeAt(2))&&(i=!0,n=3));let o=n<e?tc(t.slice(n),!i,"\\",Oe):"";return o.length===0&&!i&&(o="."),o.length>0&&Oe(t.charCodeAt(e-1))&&(o+="\\"),r===void 0?i?`\\${o}`:o:i?`${r}\\${o}`:`${r}${o}`},isAbsolute(t){Et(t,"path");const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0);return Oe(n)||e>2&&Zr(n)&&t.charCodeAt(1)===Xr&&Oe(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,n;for(let s=0;s<t.length;++s){const o=t[s];Et(o,"path"),o.length>0&&(e===void 0?e=n=o:e+=`\\${o}`)}if(e===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&Oe(n.charCodeAt(0))){++i;const s=n.length;s>1&&Oe(n.charCodeAt(1))&&(++i,s>2&&(Oe(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<e.length&&Oe(e.charCodeAt(i));)i++;i>=2&&(e=`\\${e.slice(i)}`)}return Bt.normalize(e)},relative(t,e){if(Et(t,"from"),Et(e,"to"),t===e)return"";const n=Bt.resolve(t),r=Bt.resolve(e);if(n===r||(t=n.toLowerCase(),e=r.toLowerCase(),t===e))return"";let i=0;for(;i<t.length&&t.charCodeAt(i)===In;)i++;let s=t.length;for(;s-1>i&&t.charCodeAt(s-1)===In;)s--;const o=s-i;let a=0;for(;a<e.length&&e.charCodeAt(a)===In;)a++;let c=e.length;for(;c-1>a&&e.charCodeAt(c-1)===In;)c--;const l=c-a,f=o<l?o:l;let p=-1,g=0;for(;g<f;g++){const C=t.charCodeAt(i+g);if(C!==e.charCodeAt(a+g))break;C===In&&(p=g)}if(g!==f){if(p===-1)return r}else{if(l>f){if(e.charCodeAt(a+g)===In)return r.slice(a+g+1);if(g===2)return r.slice(a+g)}o>f&&(t.charCodeAt(i+g)===In?p=g:g===2&&(p=3)),p===-1&&(p=0)}let _="";for(g=i+p+1;g<=s;++g)(g===s||t.charCodeAt(g)===In)&&(_+=_.length===0?"..":"\\..");return a+=p,_.length>0?`${_}${r.slice(a,c)}`:(r.charCodeAt(a)===In&&++a,r.slice(a,c))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=Bt.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===In){if(e.charCodeAt(1)===In){const n=e.charCodeAt(2);if(n!==Dv&&n!==fi)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(Zr(e.charCodeAt(0))&&e.charCodeAt(1)===Xr&&e.charCodeAt(2)===In)return`\\\\?\\${e}`;return t},dirname(t){Et(t,"path");const e=t.length;if(e===0)return".";let n=-1,r=0;const i=t.charCodeAt(0);if(e===1)return Oe(i)?t:".";if(Oe(i)){if(n=r=1,Oe(t.charCodeAt(1))){let a=2,c=a;for(;a<e&&!Oe(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&Oe(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&!Oe(t.charCodeAt(a));)a++;if(a===e)return t;a!==c&&(n=r=a+1)}}}}else Zr(i)&&t.charCodeAt(1)===Xr&&(n=e>2&&Oe(t.charCodeAt(2))?3:2,r=n);let s=-1,o=!0;for(let a=e-1;a>=r;--a)if(Oe(t.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(s===-1){if(n===-1)return".";s=n}return t.slice(0,s)},basename(t,e){e!==void 0&&Et(e,"ext"),Et(t,"path");let n=0,r=-1,i=!0,s;if(t.length>=2&&Zr(t.charCodeAt(0))&&t.charCodeAt(1)===Xr&&(n=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let o=e.length-1,a=-1;for(s=t.length-1;s>=n;--s){const c=t.charCodeAt(s);if(Oe(c)){if(!i){n=s+1;break}}else a===-1&&(i=!1,a=s+1),o>=0&&(c===e.charCodeAt(o)?--o===-1&&(r=s):(o=-1,r=a))}return n===r?r=a:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=n;--s)if(Oe(t.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){Et(t,"path");let e=0,n=-1,r=0,i=-1,s=!0,o=0;t.length>=2&&t.charCodeAt(1)===Xr&&Zr(t.charCodeAt(0))&&(e=r=2);for(let a=t.length-1;a>=e;--a){const c=t.charCodeAt(a);if(Oe(c)){if(!s){r=a+1;break}continue}i===-1&&(s=!1,i=a+1),c===fi?n===-1?n=a:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:B2.bind(null,"\\"),parse(t){Et(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.length;let r=0,i=t.charCodeAt(0);if(n===1)return Oe(i)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if(Oe(i)){if(r=1,Oe(t.charCodeAt(1))){let p=2,g=p;for(;p<n&&!Oe(t.charCodeAt(p));)p++;if(p<n&&p!==g){for(g=p;p<n&&Oe(t.charCodeAt(p));)p++;if(p<n&&p!==g){for(g=p;p<n&&!Oe(t.charCodeAt(p));)p++;p===n?r=p:p!==g&&(r=p+1)}}}}else if(Zr(i)&&t.charCodeAt(1)===Xr){if(n<=2)return e.root=e.dir=t,e;if(r=2,Oe(t.charCodeAt(2))){if(n===3)return e.root=e.dir=t,e;r=3}}r>0&&(e.root=t.slice(0,r));let s=-1,o=r,a=-1,c=!0,l=t.length-1,f=0;for(;l>=r;--l){if(i=t.charCodeAt(l),Oe(i)){if(!c){o=l+1;break}continue}a===-1&&(c=!1,a=l+1),i===fi?s===-1?s=l:f!==1&&(f=1):s!==-1&&(f=-1)}return a!==-1&&(s===-1||f===0||f===1&&s===a-1&&s===o+1?e.base=e.name=t.slice(o,a):(e.name=t.slice(o,s),e.base=t.slice(o,a),e.ext=t.slice(s,a))),o>0&&o!==r?e.dir=t.slice(0,o-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},kv=(()=>{if(er){const t=/\\/g;return()=>{const e=ec().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>ec()})(),ct={resolve(...t){let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const i=r>=0?t[r]:kv();Et(i,"path"),i.length!==0&&(e=`${i}/${e}`,n=i.charCodeAt(0)===Yt)}return e=tc(e,!n,"/",tf),n?`/${e}`:e.length>0?e:"."},normalize(t){if(Et(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===Yt,n=t.charCodeAt(t.length-1)===Yt;return t=tc(t,!e,"/",tf),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return Et(t,"path"),t.length>0&&t.charCodeAt(0)===Yt},join(...t){if(t.length===0)return".";let e;for(let n=0;n<t.length;++n){const r=t[n];Et(r,"path"),r.length>0&&(e===void 0?e=r:e+=`/${r}`)}return e===void 0?".":ct.normalize(e)},relative(t,e){if(Et(t,"from"),Et(e,"to"),t===e||(t=ct.resolve(t),e=ct.resolve(e),t===e))return"";const n=1,r=t.length,i=r-n,s=1,o=e.length-s,a=i<o?i:o;let c=-1,l=0;for(;l<a;l++){const p=t.charCodeAt(n+l);if(p!==e.charCodeAt(s+l))break;p===Yt&&(c=l)}if(l===a)if(o>a){if(e.charCodeAt(s+l)===Yt)return e.slice(s+l+1);if(l===0)return e.slice(s+l)}else i>a&&(t.charCodeAt(n+l)===Yt?c=l:l===0&&(c=0));let f="";for(l=n+c+1;l<=r;++l)(l===r||t.charCodeAt(l)===Yt)&&(f+=f.length===0?"..":"/..");return`${f}${e.slice(s+c)}`},toNamespacedPath(t){return t},dirname(t){if(Et(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===Yt;let n=-1,r=!0;for(let i=t.length-1;i>=1;--i)if(t.charCodeAt(i)===Yt){if(!r){n=i;break}}else r=!1;return n===-1?e?"/":".":e&&n===1?"//":t.slice(0,n)},basename(t,e){e!==void 0&&Et(e,"ext"),Et(t,"path");let n=0,r=-1,i=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let o=e.length-1,a=-1;for(s=t.length-1;s>=0;--s){const c=t.charCodeAt(s);if(c===Yt){if(!i){n=s+1;break}}else a===-1&&(i=!1,a=s+1),o>=0&&(c===e.charCodeAt(o)?--o===-1&&(r=s):(o=-1,r=a))}return n===r?r=a:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===Yt){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){Et(t,"path");let e=-1,n=0,r=-1,i=!0,s=0;for(let o=t.length-1;o>=0;--o){const a=t.charCodeAt(o);if(a===Yt){if(!i){n=o+1;break}continue}r===-1&&(i=!1,r=o+1),a===fi?e===-1?e=o:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||r===-1||s===0||s===1&&e===r-1&&e===n+1?"":t.slice(e,r)},format:B2.bind(null,"/"),parse(t){Et(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.charCodeAt(0)===Yt;let r;n?(e.root="/",r=1):r=0;let i=-1,s=0,o=-1,a=!0,c=t.length-1,l=0;for(;c>=r;--c){const f=t.charCodeAt(c);if(f===Yt){if(!a){s=c+1;break}continue}o===-1&&(a=!1,o=c+1),f===fi?i===-1?i=c:l!==1&&(l=1):i!==-1&&(l=-1)}if(o!==-1){const f=s===0&&n?1:s;i===-1||l===0||l===1&&i===o-1&&i===s+1?e.base=e.name=t.slice(f,o):(e.name=t.slice(f,i),e.base=t.slice(f,o),e.ext=t.slice(i,o))}return s>0?e.dir=t.slice(0,s-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};ct.win32=Bt.win32=Bt;ct.posix=Bt.posix=ct;const Rv=er?Bt.normalize:ct.normalize;er?Bt.isAbsolute:ct.isAbsolute;er?Bt.join:ct.join;const xv=er?Bt.resolve:ct.resolve,Ev=er?Bt.relative:ct.relative,Pv=er?Bt.dirname:ct.dirname;er?Bt.basename:ct.basename;er?Bt.extname:ct.extname;er?Bt.parse:ct.parse;const xa=er?Bt.sep:ct.sep;er?Bt.delimiter:ct.delimiter;function ei(t){return t===47||t===92}function V2(t){return t.replace(/[\\/]/g,ct.sep)}function Iv(t){return t.indexOf("/")===-1&&(t=V2(t)),/^[a-zA-Z]:(\/|$)/.test(t)&&(t="/"+t),t}function gm(t,e=ct.sep){if(!t)return"";const n=t.length,r=t.charCodeAt(0);if(ei(r)){if(ei(t.charCodeAt(1))&&!ei(t.charCodeAt(2))){let s=3;const o=s;for(;s<n&&!ei(t.charCodeAt(s));s++);if(o!==s&&!ei(t.charCodeAt(s+1))){for(s+=1;s<n;s++)if(ei(t.charCodeAt(s)))return t.slice(0,s+1).replace(/[\\/]/g,e)}}return e}else if(Mv(r)&&t.charCodeAt(1)===58)return ei(t.charCodeAt(2))?t.slice(0,2)+e:t.slice(0,2);let i=t.indexOf("://");if(i!==-1){for(i+=3;i<n;i++)if(ei(t.charCodeAt(i)))return t.slice(0,i+1)}return""}function mm(t,e,n,r=xa){if(t===e)return!0;if(!t||!e||e.length>t.length)return!1;if(n){if(!j2(t,e))return!1;if(e.length===t.length)return!0;let s=e.length;return e.charAt(e.length-1)===r&&s--,t.charAt(s)===r}return e.charAt(e.length-1)!==r&&(e+=r),t.indexOf(e)===0}function Mv(t){return t>=65&&t<=90||t>=97&&t<=122}const Ov=/^\w[\w\d+.-]*$/,Av=/^\//,Fv=/^\/\//;function Lv(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!Ov.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Av.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Fv.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Nv(t,e){return!t&&!e?"file":t}function $v(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==or&&(e=or+e):e=or;break}return e}const dt="",or="/",qv=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class rt{static isUri(e){return e instanceof rt?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}constructor(e,n,r,i,s,o=!1){typeof e=="object"?(this.scheme=e.scheme||dt,this.authority=e.authority||dt,this.path=e.path||dt,this.query=e.query||dt,this.fragment=e.fragment||dt):(this.scheme=Nv(e,o),this.authority=n||dt,this.path=$v(this.scheme,r||dt),this.query=i||dt,this.fragment=s||dt,Lv(this,o))}get fsPath(){return nc(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:r,path:i,query:s,fragment:o}=e;return n===void 0?n=this.scheme:n===null&&(n=dt),r===void 0?r=this.authority:r===null&&(r=dt),i===void 0?i=this.path:i===null&&(i=dt),s===void 0?s=this.query:s===null&&(s=dt),o===void 0?o=this.fragment:o===null&&(o=dt),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&o===this.fragment?this:new is(n,r,i,s,o)}static parse(e,n=!1){const r=qv.exec(e);return r?new is(r[2]||dt,pa(r[4]||dt),pa(r[5]||dt),pa(r[7]||dt),pa(r[9]||dt),n):new is(dt,dt,dt,dt,dt)}static file(e){let n=dt;if(Ji&&(e=e.replace(/\\/g,or)),e[0]===or&&e[1]===or){const r=e.indexOf(or,2);r===-1?(n=e.substring(2),e=or):(n=e.substring(2,r),e=e.substring(r)||or)}return new is("file",n,e,dt,dt)}static from(e,n){return new is(e.scheme,e.authority,e.path,e.query,e.fragment,n)}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return Ji&&e.scheme==="file"?r=rt.file(Bt.join(nc(e,!0),...n)).path:r=ct.join(e.path,...n),e.with({path:r})}toString(e=!1){return nf(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof rt)return e;{const n=new is(e);return n._formatted=e.external??null,n._fsPath=e._sep===K2?e.fsPath??null:null,n}}else return e}}const K2=Ji?1:void 0;let is=class extends rt{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=nc(this,!1)),this._fsPath}toString(e=!1){return e?nf(this,!0):(this._formatted||(this._formatted=nf(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=K2),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}};const G2={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function ym(t,e,n){let r,i=-1;for(let s=0;s<t.length;s++){const o=t.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||e&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r!==void 0&&(r+=t.charAt(s));else{r===void 0&&(r=t.substr(0,s));const a=G2[o];a!==void 0?(i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r+=a):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(t.substring(i))),r!==void 0?r:t}function jv(t){let e;for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);r===35||r===63?(e===void 0&&(e=t.substr(0,n)),e+=G2[r]):e!==void 0&&(e+=t[n])}return e!==void 0?e:t}function nc(t,e){let n;return t.authority&&t.path.length>1&&t.scheme==="file"?n=`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,Ji&&(n=n.replace(/\//g,"\\")),n}function nf(t,e){const n=e?jv:ym;let r="",{scheme:i,authority:s,path:o,query:a,fragment:c}=t;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=or,r+=or),s){let l=s.indexOf("@");if(l!==-1){const f=s.substr(0,l);s=s.substr(l+1),l=f.lastIndexOf(":"),l===-1?r+=n(f,!1,!1):(r+=n(f.substr(0,l),!1,!1),r+=":",r+=n(f.substr(l+1),!1,!0)),r+="@"}s=s.toLowerCase(),l=s.lastIndexOf(":"),l===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,l),!1,!0),r+=s.substr(l))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){const l=o.charCodeAt(1);l>=65&&l<=90&&(o=`/${String.fromCharCode(l+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){const l=o.charCodeAt(0);l>=65&&l<=90&&(o=`${String.fromCharCode(l+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),c&&(r+="#",r+=e?c:ym(c,!1,!1)),r}function Q2(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+Q2(t.substr(3)):t}}const bm=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function pa(t){return t.match(bm)?t.replace(bm,e=>Q2(e)):t}var Ct;(function(t){t.inMemory="inmemory",t.vscode="vscode",t.internal="private",t.walkThrough="walkThrough",t.walkThroughSnippet="walkThroughSnippet",t.http="http",t.https="https",t.file="file",t.mailto="mailto",t.untitled="untitled",t.data="data",t.command="command",t.vscodeRemote="vscode-remote",t.vscodeRemoteResource="vscode-remote-resource",t.vscodeManagedRemoteResource="vscode-managed-remote-resource",t.vscodeUserData="vscode-userdata",t.vscodeCustomEditor="vscode-custom-editor",t.vscodeNotebookCell="vscode-notebook-cell",t.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",t.vscodeNotebookCellOutput="vscode-notebook-cell-output",t.vscodeInteractiveInput="vscode-interactive-input",t.vscodeSettings="vscode-settings",t.vscodeWorkspaceTrust="vscode-workspace-trust",t.vscodeTerminal="vscode-terminal",t.vscodeChatCodeBlock="vscode-chat-code-block",t.vscodeChatCodeCompreBlock="vscode-chat-code-compare-block",t.vscodeChatSesssion="vscode-chat-editor",t.webviewPanel="webview-panel",t.vscodeWebview="vscode-webview",t.extension="extension",t.vscodeFileResource="vscode-file",t.tmp="tmp",t.vsls="vsls",t.vscodeSourceControl="vscode-scm",t.commentsInput="comment",t.codeSetting="code-setting"})(Ct||(Ct={}));const Hv="tkn";class Wv{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}setDelegate(e){this._delegate=e}setServerRootPath(e,n){this._serverRootPath=zv(e,n)}getServerRootPath(){return this._serverRootPath}get _remoteResourcesPath(){return ct.join(this._serverRootPath,Ct.vscodeRemoteResource)}set(e,n,r){this._hosts[e]=n,this._ports[e]=r}setConnectionToken(e,n){this._connectionTokens[e]=n}getPreferredWebSchema(){return this._preferredWebSchema}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(a){return F2(a),e}const n=e.authority;let r=this._hosts[n];r&&r.indexOf(":")!==-1&&r.indexOf("[")===-1&&(r=`[${r}]`);const i=this._ports[n],s=this._connectionTokens[n];let o=`path=${encodeURIComponent(e.path)}`;return typeof s=="string"&&(o+=`&${Hv}=${encodeURIComponent(s)}`),rt.from({scheme:op?this._preferredWebSchema:Ct.vscodeRemoteResource,authority:`${r}:${i}`,path:this._remoteResourcesPath,query:o})}}const Uv=new Wv;function zv(t,e){return ct.join(e??"/",`${t.quality??"oss"}-${t.commit??"dev"}`)}const Bv="vscode-app",ys=class ys{constructor(){this.staticBrowserUris=new Ga,this.appResourcePathUrls=new Map,this.moduleContentProvider=new Map}registerModuleContentProvider(e,n){this.moduleContentProvider.set(e,n)}toModuleContent(e){return this.moduleContentProvider.get(e)()}registerAppResourcePathUrl(e,n){this.appResourcePathUrls.set(e,n)}toUrl(e){var r;let n=this.appResourcePathUrls.get(e);return typeof n=="function"&&(n=n()),new URL(n??e,((r=globalThis.location)==null?void 0:r.href)??(typeof document>"u"?require("url").pathToFileURL(__filename).href:Sp&&Sp.src||new URL("index.cjs.js",document.baseURI).href)).toString()}asBrowserUri(e){const n=this.toUri(e,{toUrl:this.toUrl.bind(this)});return this.uriToBrowserUri(n)}uriToBrowserUri(e){return e.scheme===Ct.vscodeRemote?Uv.rewrite(e):e.scheme===Ct.file&&(dv||hv===`${Ct.vscodeFileResource}://${ys.FALLBACK_AUTHORITY}`)?e.with({scheme:Ct.vscodeFileResource,authority:e.authority||ys.FALLBACK_AUTHORITY,query:null,fragment:null}):this.staticBrowserUris.get(e)??e}asFileUri(e){const n=this.toUri(e,{toUrl:this.toUrl.bind(this)});return this.uriToFileUri(n)}uriToFileUri(e){return e.scheme===Ct.vscodeFileResource?e.with({scheme:Ct.file,authority:e.authority!==ys.FALLBACK_AUTHORITY?e.authority:null,query:null,fragment:null}):e}toUri(e,n){return rt.isUri(e)?e:rt.parse(n.toUrl(e))}registerStaticBrowserUri(e,n){return this.staticBrowserUris.set(e,n),Y1(()=>{this.staticBrowserUris.get(e)===n&&this.staticBrowserUris.delete(e)})}getRegisteredBrowserUris(){return this.staticBrowserUris.keys()}};ys.FALLBACK_AUTHORITY=Bv;let rf=ys;new rf;var vm;(function(t){const e=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);t.CoopAndCoep=Object.freeze(e.get("3"));const n="vscode-coi";function r(s){let o;typeof s=="string"?o=new URL(s).searchParams:s instanceof URL?o=s.searchParams:rt.isUri(s)&&(o=new URL(s.toString(!0)).searchParams);const a=o==null?void 0:o.get(n);if(a)return e.get(a)}t.getHeadersFromQuery=r;function i(s,o,a){if(!globalThis.crossOriginIsolated)return;const c=o&&a?"3":a?"2":"1";s instanceof URLSearchParams?s.set(n,c):s[n]=c}t.addSearchParam=i})(vm||(vm={}));function kr(t){return nc(t,!0)}class Vv{constructor(e){this._ignorePathCasing=e}compare(e,n,r=!1){return e===n?0:Jd(this.getComparisonKey(e,r),this.getComparisonKey(n,r))}isEqual(e,n,r=!1){return e===n?!0:!e||!n?!1:this.getComparisonKey(e,r)===this.getComparisonKey(n,r)}getComparisonKey(e,n=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:n?null:void 0}).toString()}ignorePathCasing(e){return this._ignorePathCasing(e)}isEqualOrParent(e,n,r=!1){if(e.scheme===n.scheme){if(e.scheme===Ct.file)return mm(kr(e),kr(n),this._ignorePathCasing(e))&&e.query===n.query&&(r||e.fragment===n.fragment);if(wm(e.authority,n.authority))return mm(e.path,n.path,this._ignorePathCasing(e),"/")&&e.query===n.query&&(r||e.fragment===n.fragment)}return!1}joinPath(e,...n){return rt.joinPath(e,...n)}basenameOrAuthority(e){return Kv(e)||e.authority}basename(e){return ct.basename(e.path)}extname(e){return ct.extname(e.path)}dirname(e){if(e.path.length===0)return e;let n;return e.scheme===Ct.file?n=rt.file(Pv(kr(e))).path:(n=ct.dirname(e.path),e.authority&&n.length&&n.charCodeAt(0)!==47&&(console.error(`dirname("${e.toString})) resulted in a relative path`),n="/")),e.with({path:n})}normalizePath(e){if(!e.path.length)return e;let n;return e.scheme===Ct.file?n=rt.file(Rv(kr(e))).path:n=ct.normalize(e.path),e.with({path:n})}relativePath(e,n){if(e.scheme!==n.scheme||!wm(e.authority,n.authority))return;if(e.scheme===Ct.file){const s=Ev(kr(e),kr(n));return Ji?V2(s):s}let r=e.path||"/";const i=n.path||"/";if(this._ignorePathCasing(e)){let s=0;for(const o=Math.min(r.length,i.length);s<o&&!(r.charCodeAt(s)!==i.charCodeAt(s)&&r.charAt(s).toLowerCase()!==i.charAt(s).toLowerCase());s++);r=i.substr(0,s)+r.substr(s)}return ct.relative(r,i)}resolvePath(e,n){if(e.scheme===Ct.file){const r=rt.file(xv(kr(e),n));return e.with({authority:r.authority,path:r.path})}return n=Iv(n),e.with({path:ct.resolve(e.path,n)})}isAbsolutePath(e){return!!e.path&&e.path[0]==="/"}isEqualAuthority(e,n){return e===n||e!==void 0&&n!==void 0&&K4(e,n)}hasTrailingPathSeparator(e,n=xa){if(e.scheme===Ct.file){const r=kr(e);return r.length>gm(r).length&&r[r.length-1]===n}else{const r=e.path;return r.length>1&&r.charCodeAt(r.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,n=xa){return Cm(e,n)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,n=xa){let r=!1;if(e.scheme===Ct.file){const i=kr(e);r=i!==void 0&&i.length===gm(i).length&&i[i.length-1]===n}else{n="/";const i=e.path;r=i.length===1&&i.charCodeAt(i.length-1)===47}return!r&&!Cm(e,n)?e.with({path:e.path+"/"}):e}}const Ge=new Vv(()=>!1);Ge.isEqual.bind(Ge);Ge.isEqualOrParent.bind(Ge);Ge.getComparisonKey.bind(Ge);Ge.basenameOrAuthority.bind(Ge);const Kv=Ge.basename.bind(Ge);Ge.extname.bind(Ge);Ge.dirname.bind(Ge);Ge.joinPath.bind(Ge);Ge.normalizePath.bind(Ge);Ge.relativePath.bind(Ge);Ge.resolvePath.bind(Ge);Ge.isAbsolutePath.bind(Ge);const wm=Ge.isEqualAuthority.bind(Ge),Cm=Ge.hasTrailingPathSeparator.bind(Ge);Ge.removeTrailingPathSeparator.bind(Ge);Ge.addTrailingPathSeparator.bind(Ge);var _m;(function(t){t.META_DATA_LABEL="label",t.META_DATA_DESCRIPTION="description",t.META_DATA_SIZE="size",t.META_DATA_MIME="mime";function e(n){const r=new Map;n.path.substring(n.path.indexOf(";")+1,n.path.lastIndexOf(";")).split(";").forEach(o=>{const[a,c]=o.split(":");a&&c&&r.set(a,c)});const s=n.path.substring(0,n.path.indexOf(";"));return s&&r.set(t.META_DATA_MIME,s),r}t.parseMetaData=e})(_m||(_m={}));let Gv=class{constructor(e="",n=!1){if(this.value=e,typeof this.value!="string")throw Ae("value");typeof n=="boolean"?(this.isTrusted=n,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=n.isTrusted??void 0,this.supportThemeIcons=n.supportThemeIcons??!1,this.supportHtml=n.supportHtml??!1)}appendText(e,n=0){return this.value+=Qv(this.supportThemeIcons?sv(e):e).replace(/([ \t]+)/g,(r,i)=>" ".repeat(i.length)).replace(/\>/gm,"\\>").replace(/\n/g,n===1?`\\
|
|
53
87
|
`:`
|
|
54
88
|
|
|
55
89
|
`),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,n){return this.value+=`
|
|
56
|
-
${
|
|
57
|
-
`,this}appendLink(e,n,
|
|
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"}),$y=/^(.+)\/(.+?)(;.+)?$/;function G0(t,e){const n=$y.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 qy{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 Hy{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 Q0{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 jy{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 Q0(!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 ag(e,this._value.scheme);if(this._states[this._stateIdx]===2)return ag(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 jy(e,n))}static forPaths(e=!1){return new Xi(new Q0(void 0,!e))}static forStrings(){return new Xi(new qy)}static forConfigKeys(){return new Xi(new Hy)}constructor(e){this._iter=e}clear(){this._root=void 0}fill(e,n){if(n){const i=n.slice(0);ng(i);for(const r of i)this.set(r,e)}else{const i=e.slice(0);ng(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 Rg;(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"})(Rg||(Rg={}));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 Wy(t,e){return t.name=e?`${e} (FileSystemError)`:"FileSystemError",t}var Eg;(function(t){t[t.UPDATED=0]="UPDATED",t[t.ADDED=1]="ADDED",t[t.DELETED=2]="DELETED"})(Eg||(Eg={}));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 Pg=os;var Ig;(function(t){t[t.FILE=0]="FILE",t[t.FOLDER=1]="FOLDER",t[t.ROOT_FOLDER=2]="ROOT_FOLDER"})(Ig||(Ig={}));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 Fg=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",Uy=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 By(this.buffer,e)}writeUInt32BE(e,n){Vy(this.buffer,e,n)}readUInt32LE(e){return Ky(this.buffer,e)}writeUInt32LE(e,n){Gy(this.buffer,e,n)}readUInt8(e){return Qy(this.buffer,e)}writeUInt8(e,n){Jy(this.buffer,e,n)}indexOf(e,n=0){return zy(this.buffer,e instanceof yn?e.buffer:e,n)}}function zy(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=Uy.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 By(t,e){return t[e]*2**24+t[e+1]*2**16+t[e+2]*2**8+t[e+3]}function Vy(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 Ky(t,e){return t[e+0]<<0>>>0|t[e+1]<<8>>>0|t[e+2]<<16>>>0|t[e+3]<<24>>>0}function Gy(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 Qy(t,e){return t[e]}function Jy(t,e,n){t[n]=e}function Yy(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 Xy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function e5({buffer:t},e=!0,n=!1){const i=n?Zy:Xy;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 Mg;(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})(Mg||(Mg={}));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 Og=un;new A0(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 t5=f(ao,3,"Did you forget to open or close the quote?"),n5=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 h4(`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(t5);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(n5);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",ry);At.set("isFirefox",ny);At.set("isChrome",j0);At.set("isSafari",iy);const i5=Object.prototype.hasOwnProperty,r5={regexParsingWithErrorRecovery:!0},s5=f(Ui,0,"Empty context key expression"),o5=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."),a5=f(Ui,2,"'in' after 'not'."),Ag=f(Ui,3,"closing parenthesis ')'"),c5=f(Ui,4,"Unexpected token"),l5=f(Ui,5,"Did you forget to put && or || before the token?"),u5=f(Ui,6,"Unexpected end of expression"),d5=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=r5){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:s5,offset:0,lexeme:"",additionalInfo:o5});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?l5:void 0;throw this._parsingErrors.push({message:c5,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,Ag),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,Ag),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(!F4(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,a5);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:u5,offset:e.offset,lexeme:"",additionalInfo:d5}),Rr._parseError;default:throw this._errExpectedButGot(`true | false | KEY
|
|
90
|
+
${Jv(n,e)}
|
|
91
|
+
`,this}appendLink(e,n,r){return this.value+="[",this.value+=this._escape(n,"]"),this.value+="](",this.value+=this._escape(String(e),")"),r&&(this.value+=` "${this._escape(this._escape(r,'"'),")")}"`),this.value+=")",this}_escape(e,n){const r=new RegExp(V4(n),"g");return e.replace(r,(i,s)=>e.charAt(s-1)!=="\\"?`\\${i}`:i)}};function Qv(t){return t.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}function Jv(t,e){var i;const n=((i=t.match(/^`+/gm))==null?void 0:i.reduce((s,o)=>s.length>o.length?s:o).length)??0,r=n>=3?n+1:3;return[`${"`".repeat(r)}${e}`,t,`${"`".repeat(r)}`].join(`
|
|
92
|
+
`)}const zi=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"}),Yv=/^(.+)\/(.+?)(;.+)?$/;function J2(t,e){const n=Yv.exec(t);return n?`${n[1].toLowerCase()}/${n[2].toLowerCase()}${n[3]??""}`:e?void 0:t}const Hc=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let t;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?t=crypto.getRandomValues.bind(crypto):t=function(r){for(let i=0;i<r.length;i++)r[i]=Math.floor(Math.random()*256);return r};const e=new Uint8Array(16),n=[];for(let r=0;r<256;r++)n.push(r.toString(16).padStart(2,"0"));return function(){t(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let i=0,s="";return s+=n[e[i++]],s+=n[e[i++]],s+=n[e[i++]],s+=n[e[i++]],s+="-",s+=n[e[i++]],s+=n[e[i++]],s+="-",s+=n[e[i++]],s+=n[e[i++]],s+="-",s+=n[e[i++]],s+=n[e[i++]],s+="-",s+=n[e[i++]],s+=n[e[i++]],s+=n[e[i++]],s+=n[e[i++]],s+=n[e[i++]],s+=n[e[i++]],s}}();class Xv{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){const n=e.charCodeAt(0),r=this._value.charCodeAt(this._pos);return n-r}value(){return this._value[this._pos]}}class Zv{constructor(e=!0){this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++)if(this._value.charCodeAt(this._to)===46)if(e)this._from++;else break;else e=!1;return this}cmp(e){return this._caseSensitive?ep(e,this._value,0,e.length,this._from,this._to):ea(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class Y2{constructor(e=!0,n=!0){this._splitOnBackslash=e,this._caseSensitive=n}reset(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(let n=e.length-1;n>=0;n--,this._valueLen--){const r=this._value.charCodeAt(n);if(!(r===47||this._splitOnBackslash&&r===92))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let e=!0;for(;this._to<this._valueLen;this._to++){const n=this._value.charCodeAt(this._to);if(n===47||this._splitOnBackslash&&n===92)if(e)this._from++;else break;else e=!1}return this}cmp(e){return this._caseSensitive?ep(e,this._value,0,e.length,this._from,this._to):ea(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class e5{constructor(e,n){this._ignorePathCasing=e,this._ignoreQueryAndFragment=n,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new Y2(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(e)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(this._states[this._stateIdx]===1)return nm(e,this._value.scheme);if(this._states[this._stateIdx]===2)return nm(e,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(e);if(this._states[this._stateIdx]===4)return Jd(e,this._value.query);if(this._states[this._stateIdx]===5)return Jd(e,this._value.fragment);throw new Error}value(){if(this._states[this._stateIdx]===1)return this._value.scheme;if(this._states[this._stateIdx]===2)return this._value.authority;if(this._states[this._stateIdx]===3)return this._pathIterator.value();if(this._states[this._stateIdx]===4)return this._value.query;if(this._states[this._stateIdx]===5)return this._value.fragment;throw new Error}}class ga{constructor(){this.height=1}isEmpty(){return!this.left&&!this.mid&&!this.right&&!this.value}rotateLeft(){const e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){const e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){var e;return((e=this.left)==null?void 0:e.height)??0}get heightRight(){var e;return((e=this.right)==null?void 0:e.height)??0}}class ii{static forUris(e=()=>!1,n=()=>!1){return new ii(new e5(e,n))}static forPaths(e=!1){return new ii(new Y2(void 0,!e))}static forStrings(){return new ii(new Xv)}static forConfigKeys(){return new ii(new Zv)}constructor(e){this._iter=e}clear(){this._root=void 0}fill(e,n){if(n){const r=n.slice(0);Yg(r);for(const i of r)this.set(i,e)}else{const r=e.slice(0);Yg(r);for(const i of r)this.set(i[0],i[1])}}set(e,n){const r=this._iter.reset(e);let i;this._root||(this._root=new ga,this._root.segment=r.value());const s=[];for(i=this._root;;){const a=r.cmp(i.segment);if(a>0)i.left||(i.left=new ga,i.left.segment=r.value()),s.push([-1,i]),i=i.left;else if(a<0)i.right||(i.right=new ga,i.right.segment=r.value()),s.push([1,i]),i=i.right;else if(r.hasNext())r.next(),i.mid||(i.mid=new ga,i.mid.segment=r.value()),s.push([0,i]),i=i.mid;else break}const o=i.value;i.value=n,i.key=e;for(let a=s.length-1;a>=0;a--){const c=s[a][1];c.updateHeight();const l=c.balanceFactor();if(l<-1||l>1){const f=s[a][0],p=s[a+1][0];if(f===1&&p===1)s[a][1]=c.rotateLeft();else if(f===-1&&p===-1)s[a][1]=c.rotateRight();else if(f===1&&p===-1)c.right=s[a+1][1]=s[a+1][1].rotateRight(),s[a][1]=c.rotateLeft();else if(f===-1&&p===1)c.left=s[a+1][1]=s[a+1][1].rotateLeft(),s[a][1]=c.rotateRight();else throw new Error;if(a>0)switch(s[a-1][0]){case-1:s[a-1][1].left=s[a][1];break;case 1:s[a-1][1].right=s[a][1];break;case 0:s[a-1][1].mid=s[a][1];break}else this._root=s[0][1]}}return o}get(e){var n;return(n=this._getNode(e))==null?void 0:n.value}_getNode(e){const n=this._iter.reset(e);let r=this._root;for(;r;){const i=n.cmp(r.segment);if(i>0)r=r.left;else if(i<0)r=r.right;else if(n.hasNext())n.next(),r=r.mid;else break}return r}has(e){const n=this._getNode(e);return!((n==null?void 0:n.value)===void 0&&(n==null?void 0:n.mid)===void 0)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,n){const r=this._iter.reset(e),i=[];let s=this._root;for(;s;){const o=r.cmp(s.segment);if(o>0)i.push([-1,s]),s=s.left;else if(o<0)i.push([1,s]),s=s.right;else if(r.hasNext())r.next(),i.push([0,s]),s=s.mid;else break}if(s){if(n?(s.left=void 0,s.mid=void 0,s.right=void 0,s.height=1):(s.key=void 0,s.value=void 0),!s.mid&&!s.value)if(s.left&&s.right){const o=this._min(s.right);if(o.key){const{key:a,value:c,segment:l}=o;this._delete(o.key,!1),s.key=a,s.value=c,s.segment=l}}else{const o=s.left??s.right;if(i.length>0){const[a,c]=i[i.length-1];switch(a){case-1:c.left=o;break;case 0:c.mid=o;break;case 1:c.right=o;break}}else this._root=o}for(let o=i.length-1;o>=0;o--){const a=i[o][1];a.updateHeight();const c=a.balanceFactor();if(c>1?(a.right.balanceFactor()>=0||(a.right=a.right.rotateRight()),i[o][1]=a.rotateLeft()):c<-1&&(a.left.balanceFactor()<=0||(a.left=a.left.rotateLeft()),i[o][1]=a.rotateRight()),o>0)switch(i[o-1][0]){case-1:i[o-1][1].left=i[o][1];break;case 1:i[o-1][1].right=i[o][1];break;case 0:i[o-1][1].mid=i[o][1];break}else this._root=i[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const n=this._iter.reset(e);let r=this._root,i;for(;r;){const s=n.cmp(r.segment);if(s>0)r=r.left;else if(s<0)r=r.right;else if(n.hasNext())n.next(),i=r.value||i,r=r.mid;else break}return r&&r.value||i}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,n){const r=this._iter.reset(e);let i=this._root;for(;i;){const s=r.cmp(i.segment);if(s>0)i=i.left;else if(s<0)i=i.right;else if(r.hasNext())r.next(),i=i.mid;else return i.mid?this._entries(i.mid):n?i.value:void 0}}hasElementOrSubtree(e){return this._findSuperstrOrElement(e,!0)!==void 0}forEach(e){for(const[n,r]of this)e(r,n)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const n=[];return this._dfsEntries(e,n),n[Symbol.iterator]()}_dfsEntries(e,n){e&&(e.left&&this._dfsEntries(e.left,n),e.value&&n.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,n),e.right&&this._dfsEntries(e.right,n))}_isBalanced(){const e=n=>{if(!n)return!0;const r=n.balanceFactor();return r<-1||r>1?!1:e(n.left)&&e(n.right)};return e(this._root)}}const Js="vs/platform/files/common/files";var sf;(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(sf||(sf={}));var of;(function(t){t[t.Readonly=1]="Readonly",t[t.Locked=2]="Locked"})(of||(of={}));var Sm;(function(t){t[t.None=0]="None",t[t.FileReadWrite=2]="FileReadWrite",t[t.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",t[t.FileReadStream=16]="FileReadStream",t[t.FileFolderCopy=8]="FileFolderCopy",t[t.PathCaseSensitive=1024]="PathCaseSensitive",t[t.Readonly=2048]="Readonly",t[t.Trash=4096]="Trash",t[t.FileWriteUnlock=8192]="FileWriteUnlock",t[t.FileAtomicRead=16384]="FileAtomicRead",t[t.FileAtomicWrite=32768]="FileAtomicWrite",t[t.FileAtomicDelete=65536]="FileAtomicDelete",t[t.FileClone=131072]="FileClone"})(Sm||(Sm={}));var Er;(function(t){t.FileExists="EntryExists",t.FileNotFound="EntryNotFound",t.FileNotADirectory="EntryNotADirectory",t.FileIsADirectory="EntryIsADirectory",t.FileExceedsStorageQuota="EntryExceedsStorageQuota",t.FileTooLarge="EntryTooLarge",t.FileWriteLocked="EntryWriteLocked",t.NoPermissions="NoPermissions",t.Unavailable="Unavailable",t.Unknown="Unknown"})(Er||(Er={}));function t5(t,e){return t.name=e?`${e} (FileSystemError)`:"FileSystemError",t}var Dm;(function(t){t[t.UPDATED=0]="UPDATED",t[t.ADDED=1]="ADDED",t[t.DELETED=2]="DELETED"})(Dm||(Dm={}));const bs=class bs{constructor(e,n){this.ignorePathCasing=n,this.correlationId=void 0,this.added=new Ss(()=>{const r=ii.forUris(()=>this.ignorePathCasing);return r.fill(this.rawAdded.map(i=>[i,!0])),r}),this.updated=new Ss(()=>{const r=ii.forUris(()=>this.ignorePathCasing);return r.fill(this.rawUpdated.map(i=>[i,!0])),r}),this.deleted=new Ss(()=>{const r=ii.forUris(()=>this.ignorePathCasing);return r.fill(this.rawDeleted.map(i=>[i,!0])),r}),this.rawAdded=[],this.rawUpdated=[],this.rawDeleted=[];for(const r of e){switch(r.type){case 1:this.rawAdded.push(r.resource);break;case 0:this.rawUpdated.push(r.resource);break;case 2:this.rawDeleted.push(r.resource);break}this.correlationId!==bs.MIXED_CORRELATION&&(typeof r.cId=="number"?this.correlationId===void 0?this.correlationId=r.cId:this.correlationId!==r.cId&&(this.correlationId=bs.MIXED_CORRELATION):this.correlationId!==void 0&&(this.correlationId=bs.MIXED_CORRELATION))}}contains(e,...n){return this.doContains(e,{includeChildren:!1},...n)}affects(e,...n){return this.doContains(e,{includeChildren:!0},...n)}doContains(e,n,...r){if(!e)return!1;const i=r.length>0;return!!((!i||r.includes(1))&&(this.added.value.get(e)||n.includeChildren&&this.added.value.findSuperstr(e))||(!i||r.includes(0))&&(this.updated.value.get(e)||n.includeChildren&&this.updated.value.findSuperstr(e))||(!i||r.includes(2))&&(this.deleted.value.findSubstr(e)||n.includeChildren&&this.deleted.value.findSuperstr(e)))}gotAdded(){return this.rawAdded.length>0}gotDeleted(){return this.rawDeleted.length>0}gotUpdated(){return this.rawUpdated.length>0}correlates(e){return this.correlationId===e}hasCorrelation(){return typeof this.correlationId=="number"}};bs.MIXED_CORRELATION=null;let Tm=bs;var km;(function(t){t[t.FILE=0]="FILE",t[t.FOLDER=1]="FOLDER",t[t.ROOT_FOLDER=2]="ROOT_FOLDER"})(km||(km={}));const qt=class qt{static formatSize(e){return Co(e)||(e=0),e<qt.KB?m(Js,1,"{0}B",e.toFixed(0)):e<qt.MB?m(Js,2,"{0}KB",(e/qt.KB).toFixed(2)):e<qt.GB?m(Js,3,"{0}MB",(e/qt.MB).toFixed(2)):e<qt.TB?m(Js,4,"{0}GB",(e/qt.GB).toFixed(2)):m(Js,5,"{0}TB",(e/qt.TB).toFixed(2))}};qt.KB=1024,qt.MB=qt.KB*qt.KB,qt.GB=qt.MB*qt.KB,qt.TB=qt.GB*qt.KB;let Rm=qt;var _o;(function(t){t.Unknown="Unknown",t.NotAvailable="NotAvailable",t.TemporarilyNotAvailable="TemporarilyNotAvailable",t.NoResolverFound="NoResolverFound",t.InvalidAuthority="InvalidAuthority"})(_o||(_o={}));const ma=typeof Buffer<"u",n5=new Ss(()=>new Uint8Array(256));let Wl,Ul;class Mn{static alloc(e){return ma?new Mn(Buffer.allocUnsafe(e)):new Mn(new Uint8Array(e))}static wrap(e){return ma&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new Mn(e)}static fromString(e,n){return!((n==null?void 0:n.dontUseNodeBuffer)||!1)&&ma?new Mn(Buffer.from(e)):(Wl||(Wl=new TextEncoder),new Mn(Wl.encode(e)))}static fromByteArray(e){const n=Mn.alloc(e.length);for(let r=0,i=e.length;r<i;r++)n.buffer[r]=e[r];return n}static concat(e,n){if(typeof n>"u"){n=0;for(let s=0,o=e.length;s<o;s++)n+=e[s].byteLength}const r=Mn.alloc(n);let i=0;for(let s=0,o=e.length;s<o;s++){const a=e[s];r.set(a,i),i+=a.byteLength}return r}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}clone(){const e=Mn.alloc(this.byteLength);return e.set(this),e}toString(){return ma?this.buffer.toString():(Ul||(Ul=new TextDecoder),Ul.decode(this.buffer))}slice(e,n){return new Mn(this.buffer.subarray(e,n))}set(e,n){if(e instanceof Mn)this.buffer.set(e.buffer,n);else if(e instanceof Uint8Array)this.buffer.set(e,n);else if(e instanceof ArrayBuffer)this.buffer.set(new Uint8Array(e),n);else if(ArrayBuffer.isView(e))this.buffer.set(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),n);else throw new Error("Unknown argument 'array'")}readUInt32BE(e){return i5(this.buffer,e)}writeUInt32BE(e,n){s5(this.buffer,e,n)}readUInt32LE(e){return o5(this.buffer,e)}writeUInt32LE(e,n){a5(this.buffer,e,n)}readUInt8(e){return c5(this.buffer,e)}writeUInt8(e,n){l5(this.buffer,e,n)}indexOf(e,n=0){return r5(this.buffer,e instanceof Mn?e.buffer:e,n)}}function r5(t,e,n=0){const r=e.byteLength,i=t.byteLength;if(r===0)return 0;if(r===1)return t.indexOf(e[0]);if(r>i-n)return-1;const s=n5.value;s.fill(e.length);for(let l=0;l<e.length;l++)s[e[l]]=e.length-l-1;let o=n+e.length-1,a=o,c=-1;for(;o<i;)if(t[o]===e[a]){if(a===0){c=o;break}o--,a--}else o+=Math.max(e.length-a,s[t[o]]),a=e.length-1;return c}function i5(t,e){return t[e]*2**24+t[e+1]*2**16+t[e+2]*2**8+t[e+3]}function s5(t,e,n){t[n+3]=e,e=e>>>8,t[n+2]=e,e=e>>>8,t[n+1]=e,e=e>>>8,t[n]=e}function o5(t,e){return t[e+0]<<0>>>0|t[e+1]<<8>>>0|t[e+2]<<16>>>0|t[e+3]<<24>>>0}function a5(t,e,n){t[n+0]=e&255,e=e>>>8,t[n+1]=e&255,e=e>>>8,t[n+2]=e&255,e=e>>>8,t[n+3]=e&255}function c5(t,e){return t[e]}function l5(t,e,n){t[n]=e}function u5(t){let e=0,n=0,r=0;const i=new Uint8Array(Math.floor(t.length/4*3)),s=a=>{switch(n){case 3:i[r++]=e|a,n=0;break;case 2:i[r++]=e|a>>>2,e=a<<6,n=3;break;case 1:i[r++]=e|a>>>4,e=a<<4,n=2;break;default:e=a<<2,n=1}};for(let a=0;a<t.length;a++){const c=t.charCodeAt(a);if(c>=65&&c<=90)s(c-65);else if(c>=97&&c<=122)s(c-97+26);else if(c>=48&&c<=57)s(c-48+52);else if(c===43||c===45)s(62);else if(c===47||c===95)s(63);else{if(c===61)break;throw new SyntaxError(`Unexpected base64 character ${t[a]}`)}}const o=r;for(;n>0;)s(0);return Mn.wrap(i).slice(0,o)}const d5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function h5({buffer:t},e=!0,n=!1){const r=n?f5:d5;let i="";const s=t.byteLength%3;let o=0;for(;o<t.byteLength-s;o+=3){const a=t[o+0],c=t[o+1],l=t[o+2];i+=r[a>>>2],i+=r[(a<<4|c>>>4)&63],i+=r[(c<<2|l>>>6)&63],i+=r[l&63]}if(s===1){const a=t[o+0];i+=r[a>>>2],i+=r[a<<4&63],e&&(i+="==")}else if(s===2){const a=t[o+0],c=t[o+1];i+=r[a>>>2],i+=r[(a<<4|c>>>4)&63],i+=r[c<<2&63],e&&(i+="=")}return i}var xm;(function(t){async function e(r){let i;const s=await Promise.all(r.map(o=>o.then(a=>a,a=>{i||(i=a)})));if(typeof i<"u")throw i;return s}t.settled=e;function n(r){return new Promise(async(i,s)=>{try{await r(i,s)}catch(o){s(o)}})}t.withAsyncBody=n})(xm||(xm={}));const Cn=class Cn{static fromArray(e){return new Cn(n=>{n.emitMany(e)})}static fromPromise(e){return new Cn(async n=>{n.emitMany(await e)})}static fromPromises(e){return new Cn(async n=>{await Promise.all(e.map(async r=>n.emitOne(await r)))})}static merge(e){return new Cn(async n=>{await Promise.all(e.map(async r=>{for await(const i of r)n.emitOne(i)}))})}constructor(e,n){this._state=0,this._results=[],this._error=null,this._onReturn=n,this._onStateChanged=new gr,queueMicrotask(async()=>{const r={emitOne:i=>this.emitOne(i),emitMany:i=>this.emitMany(i),reject:i=>this.reject(i)};try{await Promise.resolve(e(r)),this.resolve()}catch(i){this.reject(i)}finally{r.emitOne=void 0,r.emitMany=void 0,r.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(this._state===1)return{done:!0,value:void 0};await Qa.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>{var n;return(n=this._onReturn)==null||n.call(this),{done:!0,value:void 0}}}}static map(e,n){return new Cn(async r=>{for await(const i of e)r.emitOne(n(i))})}map(e){return Cn.map(this,e)}static filter(e,n){return new Cn(async r=>{for await(const i of e)n(i)&&r.emitOne(i)})}filter(e){return Cn.filter(this,e)}static coalesce(e){return Cn.filter(e,n=>!!n)}coalesce(){return Cn.coalesce(this)}static async toPromise(e){const n=[];for await(const r of e)n.push(r);return n}toPromise(){return Cn.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}};Cn.EMPTY=Cn.fromArray([]);let Em=Cn;new N2(1e4);const So="vs/platform/contextkey/common/scanner";function zl(...t){switch(t.length){case 1:return m(So,0,"Did you mean {0}?",t[0]);case 2:return m(So,1,"Did you mean {0} or {1}?",t[0],t[1]);case 3:return m(So,2,"Did you mean {0}, {1} or {2}?",t[0],t[1],t[2]);default:return}}const p5=m(So,3,"Did you forget to open or close the quote?"),g5=m(So,4,"Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'."),vs=class vs{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw k4(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}get errors(){return this._errors}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const n=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:n})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const n=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:n})}else this._match(126)?this._addToken(9):this._error(zl("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(zl("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(zl("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const n=this._start,r=this._input.substring(this._start,this._current),i={type:19,offset:this._start,lexeme:r};this._errors.push({offset:n,lexeme:r,additionalInfo:e}),this._tokens.push(i)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const n=this._input.substring(this._start,this._current),r=vs._keywords.get(n);r?this._addToken(r):this._tokens.push({type:17,lexeme:n,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(p5);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,n=!1,r=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(g5);return}const s=this._input.charCodeAt(e);if(n)n=!1;else if(s===47&&!r){e++;break}else s===91?r=!0:s===92?n=!0:s===93&&(r=!1);e++}for(;e<this._input.length&&vs._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const i=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:i,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}};vs._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0))),vs._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);let Ai=vs;const Qr="vs/platform/contextkey/common/contextkey",Vt=new Map;Vt.set("false",!1);Vt.set("true",!0);Vt.set("isMac",Sr);Vt.set("isLinux",Za);Vt.set("isWindows",Ji);Vt.set("isWeb",op);Vt.set("isMacNative",Sr&&!op);Vt.set("isEdge",yv);Vt.set("isFirefox",gv);Vt.set("isChrome",U2);Vt.set("isSafari",mv);const m5=Object.prototype.hasOwnProperty,y5={regexParsingWithErrorRecovery:!0},b5=m(Qr,0,"Empty context key expression"),v5=m(Qr,1,"Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),w5=m(Qr,2,"'in' after 'not'."),Pm=m(Qr,3,"closing parenthesis ')'"),C5=m(Qr,4,"Unexpected token"),_5=m(Qr,5,"Did you forget to put && or || before the token?"),S5=m(Qr,6,"Unexpected end of expression"),D5=m(Qr,7,"Did you forget to put a context key?"),$i=class $i{get lexingErrors(){return this._scanner.errors}get parsingErrors(){return this._parsingErrors}constructor(e=y5){this._config=e,this._scanner=new Ai,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:b5,offset:0,lexeme:"",additionalInfo:v5});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const n=this._expr();if(!this._isAtEnd()){const r=this._peek(),i=r.type===17?_5:void 0;throw this._parsingErrors.push({message:C5,offset:r.offset,lexeme:Ai.getLexeme(r),additionalInfo:i}),$i._parseError}return n}catch(n){if(n!==$i._parseError)throw n;return}}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const n=this._and();e.push(n)}return e.length===1?e[0]:Jt.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const n=this._term();e.push(n)}return e.length===1?e[0]:Jt.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),cn.INSTANCE;case 12:return this._advance(),gn.INSTANCE;case 0:{this._advance();const n=this._expr();return this._consume(1,Pm),n==null?void 0:n.negate()}case 17:return this._advance(),es.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),Jt.true();case 12:return this._advance(),Jt.false();case 0:{this._advance();const n=this._expr();return this._consume(1,Pm),n}case 17:{const n=e.lexeme;if(this._advance(),this._matchOne(9)){const i=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),i.type!==10)throw this._errExpectedButGot("REGEX",i);const s=i.lexeme,o=s.lastIndexOf("/"),a=o===s.length-1?void 0:this._removeFlagsGY(s.substring(o+1));let c;try{c=new RegExp(s.substring(1,o),a)}catch{throw this._errExpectedButGot("REGEX",i)}return Wo.create(n,c)}switch(i.type){case 10:case 19:{const s=[i.lexeme];this._advance();let o=this._peek(),a=0;for(let g=0;g<i.lexeme.length;g++)i.lexeme.charCodeAt(g)===40?a++:i.lexeme.charCodeAt(g)===41&&a--;for(;!this._isAtEnd()&&o.type!==15&&o.type!==16;){switch(o.type){case 0:a++;break;case 1:a--;break;case 10:case 18:for(let g=0;g<o.lexeme.length;g++)o.lexeme.charCodeAt(g)===40?a++:i.lexeme.charCodeAt(g)===41&&a--}if(a<0)break;s.push(Ai.getLexeme(o)),this._advance(),o=this._peek()}const c=s.join(""),l=c.lastIndexOf("/"),f=l===c.length-1?void 0:this._removeFlagsGY(c.substring(l+1));let p;try{p=new RegExp(c.substring(1,l),f)}catch{throw this._errExpectedButGot("REGEX",i)}return Jt.regex(n,p)}case 18:{const s=i.lexeme;this._advance();let o=null;if(!B4(s)){const a=s.indexOf("/"),c=s.lastIndexOf("/");if(a!==c&&a>=0){const l=s.slice(a+1,c),f=s[c+1]==="i"?"i":"";try{o=new RegExp(l,f)}catch{throw this._errExpectedButGot("REGEX",i)}}}if(o===null)throw this._errExpectedButGot("REGEX",i);return Wo.create(n,o)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,w5);const i=this._value();return Jt.notIn(n,i)}switch(this._peek().type){case 3:{this._advance();const i=this._value();if(this._previous().type===18)return Jt.equals(n,i);switch(i){case"true":return Jt.has(n);case"false":return Jt.not(n);default:return Jt.equals(n,i)}}case 4:{this._advance();const i=this._value();if(this._previous().type===18)return Jt.notEquals(n,i);switch(i){case"true":return Jt.not(n);case"false":return Jt.has(n);default:return Jt.notEquals(n,i)}}case 5:return this._advance(),sa.create(n,this._value());case 6:return this._advance(),oa.create(n,this._value());case 7:return this._advance(),ra.create(n,this._value());case 8:return this._advance(),ia.create(n,this._value());case 13:return this._advance(),Jt.in(n,this._value());default:return Jt.has(n)}}case 20:throw this._parsingErrors.push({message:S5,offset:e.offset,lexeme:"",additionalInfo:D5}),$i._parseError;default:throw this._errExpectedButGot(`true | false | KEY
|
|
59
93
|
| 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,
|
|
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:Y0(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?i5.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:Y0(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 J0(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=J0(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=J0(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 Lg(n))for(const o of Lg(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 Y0(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 Lg(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={}));h5("instantiationService");function f5(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 h5(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");f5(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"],g5=new RegExp(`^[${Ou.join("")}]+`),X0=7;function p5(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(g5,""),X0),i=Yy(t.fragment.substring(e+1)).toString();if(!isNaN(n))return{handle:n,notebook:t.with({scheme:i,fragment:null})}}function m5(t,e){const n=e.toString(X0),r=`${n.length<Ou.length?Ou[n.length-1]:"z"}${n}s${e5(yn.fromString(t.scheme),!0,!0)}`;return t.with({scheme:dt.vscodeNotebookCell,fragment:r})}var Ng;(function(t){t[t.Markup=1]="Markup",t[t.Code=2]="Code"})(Ng||(Ng={}));Mr.latex,Mr.markdown,Mr.text;Mr.latex,Mr.markdown,Mr.text;var $g;(function(t){t[t.Unconfirmed=1]="Unconfirmed",t[t.Pending=2]="Pending",t[t.Executing=3]="Executing"})($g||($g={}));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.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"})(Hg||(Hg={}));var jg;(function(t){t[t.Handle=0]="Handle",t[t.Index=1]="Index"})(jg||(jg={}));var Wg;(function(t){t.scheme=dt.vscodeNotebookCell;function e(a,c){return m5(a,c)}t.generate=e;function n(a){return p5(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})(Wg||(Wg={}));new re("notebookEditorCursorAtBoundary","none");new re("notebookEditorCursorAtLineBoundary","none");var Ug;(function(t){t.default="default",t.option="option"})(Ug||(Ug={}));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 zg=ls;function y5(t){return["application/vnd.code.notebook.stdout","application/vnd.code.notebook.stderr"].includes(t)}new TextDecoder;const b5=`${String.fromCharCode(27)}[A`;b5.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,T0;let Uu=Au=(T0=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,T0);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 Z0=t=>{if(typeof t!="string"||t.length===0||!/^[0-9A-Za-z_\-]+$/.test(t))throw xe("connectionToken")};let v5=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"&&Z0(i),this.host=e,this.port=Math.round(n),this.connectionToken=i}},w5=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"&&Z0(n)}},C5=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 e2=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):e2.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}}o4(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 Bg=class extends Ma{constructor(e,n,i,r){super(e,n),this.canIncreaseHover=i,this.canDecreaseHover=r}};Bg=ne([ie],Bg);var Vg;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(Vg||(Vg={}));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 _5=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}},S5=class{constructor(e,n){this.fromRanges=n,this.from=e}},D5=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,R0;let Aa=qu=(R0=class{constructor(e,n=!1){Br(this,Bt,void 0);Jo(this,Bt,new Ay(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,R0);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 Kg;(function(t){t[t.Unknown=0]="Unknown",t[t.Word=1]="Word",t[t.Line=2]="Line",t[t.Suggest=3]="Suggest"})(Kg||(Kg={}));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 Gg;(function(t){t[t.Low=0]="Low",t[t.Medium=1]="Medium",t[t.High=2]="High"})(Gg||(Gg={}));let x5=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")}},k5=class{constructor(e){this.uri=e}};class T5{constructor(e){this.terminalCommand=e}}var Id;(function(t){t[t.Panel=1]="Panel",t[t.Editor=2]="Editor"})(Id||(Id={}));let R5=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 t2(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 t2(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 t2(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 n2=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 n2?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 Qg;(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})(Qg||(Qg={}));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:mg(i.checkboxState)&&so(i.checkboxState.state)?i.checkboxState.state:void 0,a=!so(i.checkboxState)&&mg(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,E0;let Hd=(E0=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()},E0);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 Jg;(function(t){t[t.Automatic=0]="Automatic",t[t.PasteAs=1]="PasteAs"})(Jg||(Jg={}));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 E5=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 P5=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=P5.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 Yg=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}};Yg=ne([ie],Yg);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 Xg=class{constructor(e,n){this.frameId=e,this.stoppedLocation=n}};Xg=ne([ie],Xg);var Zg;(function(t){t[t.AIGenerated=1]="AIGenerated"})(Zg||(Zg={}));var ep;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(ep||(ep={}));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",Wy(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 tp;(function(t){t[t.Current=0]="Current",t[t.Outdated=1]="Outdated"})(tp||(tp={}));let I5=class{constructor(e,n=[]){this.tokenTypes=e,this.tokenModifiers=n}};function F5(t){return typeof t>"u"||j4(t)}let M5=class i2{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"&&F5(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(i2._sortAndDeltaEncode(this._data),e)}},df=class{constructor(e,n){this.resultId=n,this.data=e}},O5=class{constructor(e,n,i){this.start=e,this.deleteCount=n,this.data=i}},A5=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 L5=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 np=class{static validate(e){if(typeof e.badge=="string"){let n=lg(e.badge,0);if(n<e.badge.length&&(n+=lg(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}},ip=class{constructor(e){this.kind=e}};ip=ne([ie],ip);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)}},N5=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)}},$5=class{constructor(e){this.cells=e}};var Rn,hc;let q5=(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=G0(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),H5=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=G0(o.mime);if(!i.has(a)||y5(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 j5=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 W5=class{constructor(e,n=[]){this.uri=e,this.provides=a4(n)}},U5=class{constructor(e){this.label=e}};var rp;(function(t){t[t.Named=1]="Named",t[t.Indexed=2]="Indexed"})(rp||(rp={}));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 z5=class{constructor(e,n){this.ranges=e,this.wordPattern=n}},B5=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,V5(this)}}function V5(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 K5=class r2{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 r2(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}},G5=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}},Q5=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 J5{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 Y5=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 X5{constructor(e){this.uri=e}}class Z5{constructor(e,n){this.original=e,this.modified=n}}class eb{constructor(e,n,i,r){this.base=e,this.input1=n,this.input2=i,this.result=r}}class tb{constructor(e,n){this.uri=e,this.viewType=n}}class nb{constructor(e){this.viewType=e}}class ib{constructor(e,n){this.uri=e,this.notebookType=n}}class rb{constructor(e,n,i){this.original=e,this.modified=n,this.notebookType=i}}class sb{constructor(){}}class ob{constructor(e,n){this.uri=e,this.inputBoxUri=n}}class ab{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 cb=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 sp;(function(t){t[t.Panel=1]="Panel",t[t.Terminal=2]="Terminal",t[t.Notebook=3]="Notebook",t[t.Editor=4]="Editor"})(sp||(sp={}));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 op;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(op||(op={}));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 lb=[];function F(t){const e=new Kf(t);return lb[e.nid]=e,e}var ap;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(ap||(ap={}));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 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 ub="debugUx";new re(ub,"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 lp;(function(t){t.UnverifiedBreakpoints="unverifiedBreakpoints"})(lp||(lp={}));var up;(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})(up||(up={}));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 dp;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(dp||(dp={}));var fp;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(fp||(fp={}));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 hp(t,e=0,n=t.byteLength,i=0){for(let r=0;r<n;r++)t[e+r]=i}function db(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(""):db((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,hp(this._buff,this._buffLen),this._buffLen>56&&(this._step(),hp(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 gp=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 fb(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",fb(ii.Info));var Zf;(function(t){t[t.Complete=100]="Complete",t[t.Partial=50]="Partial",t[t.None=0]="None"})(Zf||(Zf={}));const pp={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},s2="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function hb(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of s2)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}hb();const gb=new _4;gb.unshift({maxLen:1e3,windowSize:15,timeBudget:150});const y="vs/editor/common/config/editorOptions",pb=8;class mb{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 yb(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 yb(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 bb(t){switch(t){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class vb 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 wb 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 Cb(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 _b(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 Sb 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 Db 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 xb 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 kb extends Vo{constructor(){super(50)}compute(e,n,i){return e.fontInfo}}class Tb 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 Rb 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 Eb 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)))+pb);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 mb);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 Pb 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 Ib 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 Fb 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 Mb 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 Ob 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 Ab extends si{constructor(){super(67,"lineHeight",Li.lineHeight,e=>si.clamp(e,0,150),{markdownDescription:f(y,66,`Controls the line height.
|
|
94
|
+
| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return this._check(e)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,n){if(this._check(e))return this._advance();throw this._errExpectedButGot(n,this._peek())}_errExpectedButGot(e,n,r){const i=m(Qr,8,`Expected: {0}
|
|
95
|
+
Received: '{1}'.`,e,Ai.getLexeme(n)),s=n.offset,o=Ai.getLexeme(n);return this._parsingErrors.push({message:i,offset:s,lexeme:o,additionalInfo:r}),$i._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}};$i._parseError=new Error;let af=$i;const vp=class vp{static false(){return cn.INSTANCE}static true(){return gn.INSTANCE}static has(e){return Zi.create(e)}static equals(e,n){return ta.create(e,n)}static notEquals(e,n){return na.create(e,n)}static regex(e,n){return Wo.create(e,n)}static in(e,n){return Wc.create(e,n)}static notIn(e,n){return Uc.create(e,n)}static not(e){return es.create(e)}static and(...e){return ri.create(e,null,!0)}static or(...e){return mr.create(e,null,!0)}static greater(e,n){return ra.create(e,n)}static greaterEquals(e,n){return ia.create(e,n)}static smaller(e,n){return sa.create(e,n)}static smallerEquals(e,n){return oa.create(e,n)}static deserialize(e){return e==null?void 0:this._parser.parse(e)}};vp._parser=new af({regexParsingWithErrorRecovery:!1});let Jt=vp;function Do(t,e){return t.cmp(e)}const Tc=class Tc{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}map(e){return this}negate(){return gn.INSTANCE}};Tc.INSTANCE=new Tc;let cn=Tc;const kc=class kc{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}map(e){return this}negate(){return cn.INSTANCE}};kc.INSTANCE=new kc;let gn=kc;class Zi{static create(e,n=null){const r=Vt.get(e);return typeof r=="boolean"?r?gn.INSTANCE:cn.INSTANCE:new Zi(e,n)}constructor(e,n){this.key=e,this.negated=n,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:Z2(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Vt.get(this.key);return typeof e=="boolean"?e?gn.INSTANCE:cn.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}map(e){return e.mapDefined(this.key)}negate(){return this.negated||(this.negated=es.create(this.key,this)),this.negated}}class ta{static create(e,n,r=null){if(typeof n=="boolean")return n?Zi.create(e,r):es.create(e,r);const i=Vt.get(e);return typeof i=="boolean"?n===(i?"true":"false")?gn.INSTANCE:cn.INSTANCE:new ta(e,n,r)}constructor(e,n,r){this.key=e,this.value=n,this.negated=r,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Vt.get(this.key);if(typeof e=="boolean"){const n=e?"true":"false";return this.value===n?gn.INSTANCE:cn.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}map(e){return e.mapEquals(this.key,this.value)}negate(){return this.negated||(this.negated=na.create(this.key,this.value,this)),this.negated}}class Wc{static create(e,n){return new Wc(e,n)}constructor(e,n){this.key=e,this.valueKey=n,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type?this.key===e.key&&this.valueKey===e.valueKey:!1}substituteConstants(){return this}evaluate(e){const n=e.getValue(this.valueKey),r=e.getValue(this.key);return Array.isArray(n)?n.includes(r):typeof r=="string"&&typeof n=="object"&&n!==null?m5.call(n,r):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}map(e){return e.mapIn(this.key,this.valueKey)}negate(){return this.negated||(this.negated=Uc.create(this.key,this.valueKey)),this.negated}}class Uc{static create(e,n){return new Uc(e,n)}constructor(e,n){this.key=e,this.valueKey=n,this.type=11,this._negated=Wc.create(e,n)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type?this._negated.equals(e._negated):!1}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}map(e){return e.mapNotIn(this.key,this.valueKey)}negate(){return this._negated}}class na{static create(e,n,r=null){if(typeof n=="boolean")return n?es.create(e,r):Zi.create(e,r);const i=Vt.get(e);return typeof i=="boolean"?n===(i?"true":"false")?cn.INSTANCE:gn.INSTANCE:new na(e,n,r)}constructor(e,n,r){this.key=e,this.value=n,this.negated=r,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Vt.get(this.key);if(typeof e=="boolean"){const n=e?"true":"false";return this.value===n?cn.INSTANCE:gn.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}map(e){return e.mapNotEquals(this.key,this.value)}negate(){return this.negated||(this.negated=ta.create(this.key,this.value,this)),this.negated}}class es{static create(e,n=null){const r=Vt.get(e);return typeof r=="boolean"?r?cn.INSTANCE:gn.INSTANCE:new es(e,n)}constructor(e,n){this.key=e,this.negated=n,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:Z2(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Vt.get(this.key);return typeof e=="boolean"?e?cn.INSTANCE:gn.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}map(e){return e.mapNot(this.key)}negate(){return this.negated||(this.negated=Zi.create(this.key,this)),this.negated}}function zc(t,e){if(typeof t=="string"){const n=parseFloat(t);isNaN(n)||(t=n)}return typeof t=="string"||typeof t=="number"?e(t):cn.INSTANCE}class ra{static create(e,n,r=null){return zc(n,i=>new ra(e,i,r))}constructor(e,n,r){this.key=e,this.value=n,this.negated=r,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}map(e){return e.mapGreater(this.key,this.value)}negate(){return this.negated||(this.negated=oa.create(this.key,this.value,this)),this.negated}}class ia{static create(e,n,r=null){return zc(n,i=>new ia(e,i,r))}constructor(e,n,r){this.key=e,this.value=n,this.negated=r,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}map(e){return e.mapGreaterEquals(this.key,this.value)}negate(){return this.negated||(this.negated=sa.create(this.key,this.value,this)),this.negated}}class sa{static create(e,n,r=null){return zc(n,i=>new sa(e,i,r))}constructor(e,n,r){this.key=e,this.value=n,this.negated=r,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}map(e){return e.mapSmaller(this.key,this.value)}negate(){return this.negated||(this.negated=ia.create(this.key,this.value,this)),this.negated}}class oa{static create(e,n,r=null){return zc(n,i=>new oa(e,i,r))}constructor(e,n,r){this.key=e,this.value=n,this.negated=r,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:ts(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}map(e){return e.mapSmallerEquals(this.key,this.value)}negate(){return this.negated||(this.negated=ra.create(this.key,this.value,this)),this.negated}}class Wo{static create(e,n){return new Wo(e,n)}constructor(e,n){this.key=e,this.regexp=n,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const n=this.regexp?this.regexp.source:"",r=e.regexp?e.regexp.source:"";return n<r?-1:n>r?1:0}equals(e){if(e.type===this.type){const n=this.regexp?this.regexp.source:"",r=e.regexp?e.regexp.source:"";return this.key===e.key&&n===r}return!1}substituteConstants(){return this}evaluate(e){const n=e.getValue(this.key);return this.regexp?this.regexp.test(n):!1}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}map(e){return e.mapRegex(this.key,this.regexp)}negate(){return this.negated||(this.negated=rc.create(this)),this.negated}}class rc{static create(e){return new rc(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}map(e){return new rc(this._actual.map(e))}negate(){return this._actual}}function X2(t){let e=null;for(let n=0,r=t.length;n<r;n++){const i=t[n].substituteConstants();if(t[n]!==i&&e===null){e=[];for(let s=0;s<n;s++)e[s]=t[s]}e!==null&&(e[n]=i)}return e===null?t:e}class ri{static create(e,n,r){return ri._normalizeArr(e,n,r)}constructor(e,n){this.expr=e,this.negated=n,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let n=0,r=this.expr.length;n<r;n++){const i=Do(this.expr[n],e.expr[n]);if(i!==0)return i}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let n=0,r=this.expr.length;n<r;n++)if(!this.expr[n].equals(e.expr[n]))return!1;return!0}return!1}substituteConstants(){const e=X2(this.expr);return e===this.expr?this:ri.create(e,this.negated,!1)}evaluate(e){for(let n=0,r=this.expr.length;n<r;n++)if(!this.expr[n].evaluate(e))return!1;return!0}static _normalizeArr(e,n,r){const i=[];let s=!1;for(const o of e)if(o){if(o.type===1){s=!0;continue}if(o.type===0)return cn.INSTANCE;if(o.type===6){i.push(...o.expr);continue}i.push(o)}if(i.length===0&&s)return gn.INSTANCE;if(i.length!==0){if(i.length===1)return i[0];i.sort(Do);for(let o=1;o<i.length;o++)i[o-1].equals(i[o])&&(i.splice(o,1),o--);if(i.length===1)return i[0];for(;i.length>1;){const o=i[i.length-1];if(o.type!==9)break;i.pop();const a=i.pop(),c=i.length===0,l=mr.create(o.expr.map(f=>ri.create([f,a],null,r)),null,c);l&&(i.push(l),i.sort(Do))}if(i.length===1)return i[0];if(r){for(let o=0;o<i.length;o++)for(let a=o+1;a<i.length;a++)if(i[o].negate().equals(i[a]))return cn.INSTANCE;if(i.length===1)return i[0]}return new ri(i,n)}}serialize(){return this.expr.map(e=>e.serialize()).join(" && ")}keys(){const e=[];for(const n of this.expr)e.push(...n.keys());return e}map(e){return new ri(this.expr.map(n=>n.map(e)),null)}negate(){if(!this.negated){const e=[];for(const n of this.expr)e.push(n.negate());this.negated=mr.create(e,this,!0)}return this.negated}}class mr{static create(e,n,r){return mr._normalizeArr(e,n,r)}constructor(e,n){this.expr=e,this.negated=n,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let n=0,r=this.expr.length;n<r;n++){const i=Do(this.expr[n],e.expr[n]);if(i!==0)return i}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let n=0,r=this.expr.length;n<r;n++)if(!this.expr[n].equals(e.expr[n]))return!1;return!0}return!1}substituteConstants(){const e=X2(this.expr);return e===this.expr?this:mr.create(e,this.negated,!1)}evaluate(e){for(let n=0,r=this.expr.length;n<r;n++)if(this.expr[n].evaluate(e))return!0;return!1}static _normalizeArr(e,n,r){let i=[],s=!1;if(e){for(let o=0,a=e.length;o<a;o++){const c=e[o];if(c){if(c.type===0){s=!0;continue}if(c.type===1)return gn.INSTANCE;if(c.type===9){i=i.concat(c.expr);continue}i.push(c)}}if(i.length===0&&s)return cn.INSTANCE;i.sort(Do)}if(i.length!==0){if(i.length===1)return i[0];for(let o=1;o<i.length;o++)i[o-1].equals(i[o])&&(i.splice(o,1),o--);if(i.length===1)return i[0];if(r){for(let o=0;o<i.length;o++)for(let a=o+1;a<i.length;a++)if(i[o].negate().equals(i[a]))return gn.INSTANCE;if(i.length===1)return i[0]}return new mr(i,n)}}serialize(){return this.expr.map(e=>e.serialize()).join(" || ")}keys(){const e=[];for(const n of this.expr)e.push(...n.keys());return e}map(e){return new mr(this.expr.map(n=>n.map(e)),null)}negate(){if(!this.negated){const e=[];for(const n of this.expr)e.push(n.negate());for(;e.length>1;){const n=e.shift(),r=e.shift(),i=[];for(const s of Im(n))for(const o of Im(r))i.push(ri.create([s,o],null,!1));e.unshift(mr.create(i,null,!1))}this.negated=mr.create(e,this,!0)}return this.negated}}const ws=class ws extends Zi{static all(){return ws._info.values()}constructor(e,n,r){super(e,null),this._defaultValue=n,typeof r=="object"?ws._info.push({...r,key:e}):r!==!0&&ws._info.push({key:e,description:r,type:n!=null?typeof n:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return ta.create(this.key,e)}notEqualsTo(e){return na.create(this.key,e)}};ws._info=[];let ae=ws;function Z2(t,e){return t<e?-1:t>e?1:0}function ts(t,e,n,r){return t<n?-1:t>n?1:e<r?-1:e>r?1:0}function Im(t){return t.type===9?t.expr:[t]}var Nr;(function(t){t.serviceIds=new Map,t.DI_TARGET="$di$target",t.DI_DEPENDENCIES="$di$dependencies";function e(n){return n[t.DI_DEPENDENCIES]||[]}t.getServiceDependencies=e})(Nr||(Nr={}));k5("instantiationService");function T5(t,e,n){e[Nr.DI_TARGET]===e?e[Nr.DI_DEPENDENCIES].push({id:t,index:n}):(e[Nr.DI_DEPENDENCIES]=[{id:t,index:n}],e[Nr.DI_TARGET]=e)}function k5(t){if(Nr.serviceIds.has(t))return Nr.serviceIds.get(t);const e=function(n,r,i){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");T5(e,n,i)};return e.toString=()=>t,Nr.serviceIds.set(t,e),e}const cf=["W","X","Y","Z","a","b","c","d","e","f"],R5=new RegExp(`^[${cf.join("")}]+`),ey=7;function x5(t){if(t.scheme!==Ct.vscodeNotebookCell)return;const e=t.fragment.indexOf("s");if(e<0)return;const n=parseInt(t.fragment.substring(0,e).replace(R5,""),ey),r=u5(t.fragment.substring(e+1)).toString();if(!isNaN(n))return{handle:n,notebook:t.with({scheme:r,fragment:null})}}function E5(t,e){const n=e.toString(ey),i=`${n.length<cf.length?cf[n.length-1]:"z"}${n}s${h5(Mn.fromString(t.scheme),!0,!0)}`;return t.with({scheme:Ct.vscodeNotebookCell,fragment:i})}var Mm;(function(t){t[t.Markup=1]="Markup",t[t.Code=2]="Code"})(Mm||(Mm={}));zi.latex,zi.markdown,zi.text;zi.latex,zi.markdown,zi.text;var Om;(function(t){t[t.Unconfirmed=1]="Unconfirmed",t[t.Pending=2]="Pending",t[t.Executing=3]="Executing"})(Om||(Om={}));var Am;(function(t){t[t.Unconfirmed=1]="Unconfirmed",t[t.Pending=2]="Pending",t[t.Executing=3]="Executing"})(Am||(Am={}));var Fm;(function(t){t[t.ModelChange=1]="ModelChange",t[t.Move=2]="Move",t[t.ChangeCellLanguage=5]="ChangeCellLanguage",t[t.Initialize=6]="Initialize",t[t.ChangeCellMetadata=7]="ChangeCellMetadata",t[t.Output=8]="Output",t[t.OutputItem=9]="OutputItem",t[t.ChangeCellContent=10]="ChangeCellContent",t[t.ChangeDocumentMetadata=11]="ChangeDocumentMetadata",t[t.ChangeCellInternalMetadata=12]="ChangeCellInternalMetadata",t[t.ChangeCellMime=13]="ChangeCellMime",t[t.Unknown=100]="Unknown"})(Fm||(Fm={}));var Lm;(function(t){t[t.Handle=0]="Handle",t[t.Index=1]="Index"})(Lm||(Lm={}));var Nm;(function(t){t.scheme=Ct.vscodeNotebookCell;function e(a,c){return E5(a,c)}t.generate=e;function n(a){return x5(a)}t.parse=n;function r(a,c){return a.with({scheme:Ct.vscodeNotebookCellOutput,fragment:`op${c??""},${a.scheme!==Ct.file?a.scheme:""}`})}t.generateCellOutputUri=r;function i(a){if(a.scheme!==Ct.vscodeNotebookCellOutput)return;const c=/^op([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?\,(.*)$/i.exec(a.fragment);if(!c)return;const l=c[1]&&c[1]!==""?c[1]:void 0,f=c[2];return{outputId:l,notebook:a.with({scheme:f||Ct.file,fragment:null})}}t.parseCellOutputUri=i;function s(a,c,l){return t.generate(a,c).with({scheme:l})}t.generateCellPropertyUri=s;function o(a,c){if(a.scheme===c)return t.parse(a.with({scheme:t.scheme}))}t.parseCellPropertyUri=o})(Nm||(Nm={}));new ae("notebookEditorCursorAtBoundary","none");new ae("notebookEditorCursorAtLineBoundary","none");var $m;(function(t){t.default="default",t.option="option"})($m||($m={}));const Cs=class Cs{static create(e){return`${Cs._prefix}${e}`}static parse(e){if(e.startsWith(Cs._prefix))return e.substring(Cs._prefix.length)}};Cs._prefix="notebook/";let qm=Cs;function P5(t){return["application/vnd.code.notebook.stdout","application/vnd.code.notebook.stderr"].includes(t)}new TextDecoder;const I5=`${String.fromCharCode(27)}[A`;I5.split("").map(t=>t.charCodeAt(0));var lf,Ei,xr,uf,Pi,ni,Ii,df,ff,Ea,go,hf,dr,fr,pf,wn,gf;function se(t){return Object.assign(t,{apply:function(...n){if(n.length===0)return Reflect.construct(t,[]);{const r=n.length===1?[]:n[1];return Reflect.construct(t,r,n[0].constructor)}},call:function(...n){if(n.length===0)return Reflect.construct(t,[]);{const[r,...i]=n;return Reflect.construct(t,i,r.constructor)}}})}var mf;(function(t){t[t.Top=0]="Top",t[t.Bottom=1]="Bottom"})(mf||(mf={}));var ji,h2;let yf=lf=(h2=class{constructor(e){ns(this,ji,void 0);da(this,ji,e)}static from(...e){let n=e;return new lf(function(){if(n){for(const r of n)r&&typeof r.dispose=="function"&&r.dispose();n=void 0}})}dispose(){typeof Dt(this,ji)=="function"&&(Dt(this,ji).call(this),da(this,ji,void 0))}},ji=new WeakMap,h2);yf=lf=ie([se],yf);let it=Ei=class{static Min(...e){if(e.length===0)throw new TypeError;let n=e[0];for(let r=1;r<e.length;r++){const i=e[r];i.isBefore(n)&&(n=i)}return n}static Max(...e){if(e.length===0)throw new TypeError;let n=e[0];for(let r=1;r<e.length;r++){const i=e[r];i.isAfter(n)&&(n=i)}return n}static isPosition(e){if(!e)return!1;if(e instanceof Ei)return!0;const{line:n,character:r}=e;return typeof n=="number"&&typeof r=="number"}static of(e){if(e instanceof Ei)return e;if(this.isPosition(e))return new Ei(e.line,e.character);throw new Error("Invalid argument, is NOT a position-like object")}get line(){return this._line}get character(){return this._character}constructor(e,n){if(e<0)throw Ae("line must be non-negative");if(n<0)throw Ae("character must be non-negative");this._line=e,this._character=n}isBefore(e){return this._line<e._line?!0:e._line<this._line?!1:this._character<e._character}isBeforeOrEqual(e){return this._line<e._line?!0:e._line<this._line?!1:this._character<=e._character}isAfter(e){return!this.isBeforeOrEqual(e)}isAfterOrEqual(e){return!this.isBefore(e)}isEqual(e){return this._line===e._line&&this._character===e._character}compareTo(e){return this._line<e._line?-1:this._line>e.line?1:this._character<e._character?-1:this._character>e._character?1:0}translate(e,n=0){if(e===null||n===null)throw Ae();let r;return typeof e>"u"?r=0:typeof e=="number"?r=e:(r=typeof e.lineDelta=="number"?e.lineDelta:0,n=typeof e.characterDelta=="number"?e.characterDelta:0),r===0&&n===0?this:new Ei(this.line+r,this.character+n)}with(e,n=this.character){if(e===null||n===null)throw Ae();let r;return typeof e>"u"?r=this.line:typeof e=="number"?r=e:(r=typeof e.line=="number"?e.line:this.line,n=typeof e.character=="number"?e.character:this.character),r===this.line&&n===this.character?this:new Ei(r,n)}toJSON(){return{line:this.line,character:this.character}}};it=Ei=ie([se],it);let Ot=xr=class{static isRange(e){return e instanceof xr?!0:e?it.isPosition(e.start)&&it.isPosition(e.end):!1}static of(e){if(e instanceof xr)return e;if(this.isRange(e))return new xr(e.start,e.end);throw new Error("Invalid argument, is NOT a range-like object")}get start(){return this._start}get end(){return this._end}constructor(e,n,r,i){let s,o;if(typeof e=="number"&&typeof n=="number"&&typeof r=="number"&&typeof i=="number"?(s=new it(e,n),o=new it(r,i)):it.isPosition(e)&&it.isPosition(n)&&(s=it.of(e),o=it.of(n)),!s||!o)throw new Error("Invalid arguments");s.isBefore(o)?(this._start=s,this._end=o):(this._start=o,this._end=s)}contains(e){return xr.isRange(e)?this.contains(e.start)&&this.contains(e.end):it.isPosition(e)?!(it.of(e).isBefore(this._start)||this._end.isBefore(e)):!1}isEqual(e){return this._start.isEqual(e._start)&&this._end.isEqual(e._end)}intersection(e){const n=it.Max(e.start,this._start),r=it.Min(e.end,this._end);if(!n.isAfter(r))return new xr(n,r)}union(e){if(this.contains(e))return this;if(e.contains(this))return e;const n=it.Min(e.start,this._start),r=it.Max(e.end,this.end);return new xr(n,r)}get isEmpty(){return this._start.isEqual(this._end)}get isSingleLine(){return this._start.line===this._end.line}with(e,n=this.end){if(e===null||n===null)throw Ae();let r;return e?it.isPosition(e)?r=e:(r=e.start||this.start,n=e.end||this.end):r=this.start,r.isEqual(this._start)&&n.isEqual(this.end)?this:new xr(r,n)}toJSON(){return[this.start,this.end]}};Ot=xr=ie([se],Ot);let bf=uf=class extends Ot{static isSelection(e){return e instanceof uf?!0:e?Ot.isRange(e)&&it.isPosition(e.anchor)&&it.isPosition(e.active)&&typeof e.isReversed=="boolean":!1}get anchor(){return this._anchor}get active(){return this._active}constructor(e,n,r,i){let s,o;if(typeof e=="number"&&typeof n=="number"&&typeof r=="number"&&typeof i=="number"?(s=new it(e,n),o=new it(r,i)):it.isPosition(e)&&it.isPosition(n)&&(s=it.of(e),o=it.of(n)),!s||!o)throw new Error("Invalid arguments");super(s,o),this._anchor=s,this._active=o}get isReversed(){return this._anchor===this._end}toJSON(){return{start:this.start,end:this.end,active:this.active,anchor:this.anchor}}};bf=uf=ie([se],bf);const ty=t=>{if(typeof t!="string"||t.length===0||!/^[0-9A-Za-z_\-]+$/.test(t))throw Ae("connectionToken")};let M5=class{static isResolvedAuthority(e){return e&&typeof e=="object"&&typeof e.host=="string"&&typeof e.port=="number"&&(e.connectionToken===void 0||typeof e.connectionToken=="string")}constructor(e,n,r){if(typeof e!="string"||e.length===0)throw Ae("host");if(typeof n!="number"||n===0||Math.round(n)!==n)throw Ae("port");typeof r<"u"&&ty(r),this.host=e,this.port=Math.round(n),this.connectionToken=r}},O5=class{static isManagedResolvedAuthority(e){return e&&typeof e=="object"&&typeof e.makeConnection=="function"&&(e.connectionToken===void 0||typeof e.connectionToken=="string")}constructor(e,n){this.makeConnection=e,this.connectionToken=n,typeof n<"u"&&ty(n)}},A5=class Pa extends Error{static NotAvailable(e,n){return new Pa(e,_o.NotAvailable,n)}static TemporarilyNotAvailable(e){return new Pa(e,_o.TemporarilyNotAvailable)}constructor(e,n=_o.Unknown,r){super(e),this._message=e,this._code=n,this._detail=r,Object.setPrototypeOf(this,Pa.prototype)}};var vf;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(vf||(vf={}));var wf;(function(t){t[t.Replace=1]="Replace",t[t.Append=2]="Append",t[t.Prepend=3]="Prepend"})(wf||(wf={}));let ic=Pi=class{static isTextEdit(e){return e instanceof Pi?!0:e?Ot.isRange(e)&&typeof e.newText=="string":!1}static replace(e,n){return new Pi(e,n)}static insert(e,n){return Pi.replace(new Ot(e,e),n)}static delete(e){return Pi.replace(e,"")}static setEndOfLine(e){const n=new Pi(new Ot(new it(0,0),new it(0,0)),"");return n.newEol=e,n}get range(){return this._range}set range(e){if(e&&!Ot.isRange(e))throw Ae("range");this._range=e}get newText(){return this._newText||""}set newText(e){if(e&&typeof e!="string")throw Ae("newText");this._newText=e}get newEol(){return this._newEol}set newEol(e){if(e&&typeof e!="number")throw Ae("newEol");this._newEol=e}constructor(e,n){this._range=e,this._newText=n}toJSON(){return{range:this.range,newText:this.newText,newEol:this._newEol}}};ic=Pi=ie([se],ic);let sc=ni=class{static isNotebookCellEdit(e){return e instanceof ni?!0:e?yo.isNotebookRange(e)&&Array.isArray(e.newCells):!1}static replaceCells(e,n){return new ni(e,n)}static insertCells(e,n){return new ni(new yo(e,e),n)}static deleteCells(e){return new ni(e,[])}static updateCellMetadata(e,n){const r=new ni(new yo(e,e),[]);return r.newCellMetadata=n,r}static updateNotebookMetadata(e){const n=new ni(new yo(0,0),[]);return n.newNotebookMetadata=e,n}constructor(e,n){this.range=e,this.newCells=n}};sc=ni=ie([se],sc);let ny=class Ia{static isSnippetTextEdit(e){return e instanceof Ia?!0:e?Ot.isRange(e.range)&&oc.isSnippetString(e.snippet):!1}static replace(e,n){return new Ia(e,n)}static insert(e,n){return Ia.replace(new Ot(e,e),n)}constructor(e,n){this.range=e,this.snippet=n}},Cf=class{constructor(){this._edits=[]}_allEntries(){return this._edits}renameFile(e,n,r,i){this._edits.push({_type:1,from:e,to:n,options:r,metadata:i})}createFile(e,n,r){this._edits.push({_type:1,from:void 0,to:e,options:n,metadata:r})}deleteFile(e,n,r){this._edits.push({_type:1,from:e,to:void 0,options:n,metadata:r})}replaceNotebookMetadata(e,n,r){this._edits.push({_type:3,metadata:r,uri:e,edit:{editType:5,metadata:n},notebookMetadata:n})}replaceNotebookCells(e,n,r,i){const s=n.start,o=n.end;(s!==o||r.length>0)&&this._edits.push({_type:5,uri:e,index:s,count:o-s,cells:r,metadata:i})}replaceNotebookCellMetadata(e,n,r,i){this._edits.push({_type:3,metadata:i,uri:e,edit:{editType:3,index:n,metadata:r}})}replace(e,n,r,i){this._edits.push({_type:2,uri:e,edit:new ic(n,r),metadata:i})}insert(e,n,r,i){this.replace(e,new Ot(n,n),r,i)}delete(e,n,r){this.replace(e,n,"",r)}has(e){return this._edits.some(n=>n._type===2&&n.uri.toString()===e.toString())}set(e,n){if(n)for(const r of n){if(!r)continue;let i,s;Array.isArray(r)?(i=r[0],s=r[1]):i=r,sc.isNotebookCellEdit(i)?i.newCellMetadata?this.replaceNotebookCellMetadata(e,i.range.start,i.newCellMetadata,s):i.newNotebookMetadata?this.replaceNotebookMetadata(e,i.newNotebookMetadata,s):this.replaceNotebookCells(e,i.range,i.newCells,s):ny.isSnippetTextEdit(i)?this._edits.push({_type:6,uri:e,range:i.range,edit:i.snippet,metadata:s}):this._edits.push({_type:2,uri:e,edit:i,metadata:s})}else{for(let r=0;r<this._edits.length;r++){const i=this._edits[r];switch(i._type){case 2:case 6:case 3:case 5:i.uri.toString()===e.toString()&&(this._edits[r]=void 0);break}}v4(this._edits)}}get(e){const n=[];for(const r of this._edits)r._type===2&&r.uri.toString()===e.toString()&&n.push(r.edit);return n}entries(){const e=new Ga;for(const n of this._edits)if(n._type===2){let r=e.get(n.uri);r||(r=[n.uri,[]],e.set(n.uri,r)),r[1].push(n.edit)}return[...e.values()]}get size(){return this.entries().length}toJSON(){return this.entries()}};Cf=ie([se],Cf);let oc=Ii=class{static isSnippetString(e){return e instanceof Ii?!0:e?typeof e.value=="string":!1}static _escape(e){return e.replace(/\$|}|\\/g,"\\$&")}constructor(e){this._tabstop=1,this.value=e||""}appendText(e){return this.value+=Ii._escape(e),this}appendTabstop(e=this._tabstop++){return this.value+="$",this.value+=e,this}appendPlaceholder(e,n=this._tabstop++){if(typeof e=="function"){const r=new Ii;r._tabstop=this._tabstop,e(r),this._tabstop=r._tabstop,e=r.value}else e=Ii._escape(e);return this.value+="${",this.value+=n,this.value+=":",this.value+=e,this.value+="}",this}appendChoice(e,n=this._tabstop++){const r=e.map(i=>i.replaceAll(/[|\\,]/g,"\\$&")).join(",");return this.value+="${",this.value+=n,this.value+="|",this.value+=r,this.value+="|}",this}appendVariable(e,n){if(typeof n=="function"){const r=new Ii;r._tabstop=this._tabstop,n(r),this._tabstop=r._tabstop,n=r.value}else typeof n=="string"&&(n=n.replace(/\$|}/g,"\\$&"));return this.value+="${",this.value+=e,n&&(this.value+=":",this.value+=n),this.value+="}",this}};oc=Ii=ie([se],oc);var _f;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(_f||(_f={}));var Uo;(function(t){t[t.Hint=3]="Hint",t[t.Information=2]="Information",t[t.Warning=1]="Warning",t[t.Error=0]="Error"})(Uo||(Uo={}));let zo=df=class{static isLocation(e){return e instanceof df?!0:e?Ot.isRange(e.range)&&rt.isUri(e.uri):!1}constructor(e,n){if(this.uri=e,n)if(Ot.isRange(n))this.range=Ot.of(n);else if(it.isPosition(n))this.range=new Ot(n,n);else throw new Error("Illegal argument")}toJSON(){return{uri:this.uri,range:this.range}}};zo=df=ie([se],zo);let ac=class{static is(e){return e?typeof e.message=="string"&&e.location&&Ot.isRange(e.location.range)&&rt.isUri(e.location.uri):!1}constructor(e,n){this.location=e,this.message=n}static isEqual(e,n){return e===n?!0:!e||!n?!1:e.message===n.message&&e.location.range.isEqual(n.location.range)&&e.location.uri.toString()===n.location.uri.toString()}};ac=ie([se],ac);let Sf=class{constructor(e,n,r=Uo.Error){if(!Ot.isRange(e))throw new TypeError("range must be set");if(!n)throw new TypeError("message must be set");this.range=e,this.message=n,this.severity=r}toJSON(){return{severity:Uo[this.severity],message:this.message,range:this.range,source:this.source,code:this.code}}static isEqual(e,n){return e===n?!0:!e||!n?!1:e.message===n.message&&e.severity===n.severity&&e.code===n.code&&e.severity===n.severity&&e.source===n.source&&e.range.isEqual(n.range)&&zd(e.tags,n.tags)&&zd(e.relatedInformation,n.relatedInformation,ac.isEqual)}};Sf=ie([se],Sf);let cc=class{constructor(e,n){if(!e)throw new Error("Illegal argument, contents must be defined");Array.isArray(e)?this.contents=e:this.contents=[e],this.range=n}};cc=ie([se],cc);let jm=class extends cc{constructor(e,n,r,i){super(e,n),this.canIncreaseHover=r,this.canDecreaseHover=i}};jm=ie([se],jm);var Hm;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(Hm||(Hm={}));var Bo;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(Bo||(Bo={}));let Df=class{constructor(e,n=Bo.Text){this.range=e,this.kind=n}toJSON(){return{range:this.range,kind:Bo[this.kind]}}};Df=ie([se],Df);let Tf=class{constructor(e,n){this.uri=e,this.highlights=n}toJSON(){return{uri:this.uri,highlights:this.highlights.map(e=>e.toJSON())}}};Tf=ie([se],Tf);var lc;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(lc||(lc={}));var kf;(function(t){t[t.Deprecated=1]="Deprecated"})(kf||(kf={}));let Rf=ff=class{static validate(e){if(!e.name)throw new Error("name must not be falsy")}constructor(e,n,r,i,s){this.name=e,this.kind=n,this.containerName=s,typeof r=="string"&&(this.containerName=r),i instanceof zo?this.location=i:r instanceof Ot&&(this.location=new zo(i,r)),ff.validate(this)}toJSON(){return{name:this.name,kind:lc[this.kind],location:this.location,containerName:this.containerName}}};Rf=ff=ie([se],Rf);let xf=Ea=class{static validate(e){var n;if(!e.name)throw new Error("name must not be falsy");if(!e.range.contains(e.selectionRange))throw new Error("selectionRange must be contained in fullRange");(n=e.children)==null||n.forEach(Ea.validate)}constructor(e,n,r,i,s){this.name=e,this.detail=n,this.kind=r,this.range=i,this.selectionRange=s,this.children=[],Ea.validate(this)}};xf=Ea=ie([se],xf);var Ef;(function(t){t[t.Invoke=1]="Invoke",t[t.Automatic=2]="Automatic"})(Ef||(Ef={}));let Pf=class{constructor(e,n){this.title=e,this.kind=n}};Pf=ie([se],Pf);var Bs;let bt=(Bs=class{constructor(e){this.value=e}append(e){return new go(this.value?this.value+go.sep+e:e)}intersects(e){return this.contains(e)||e.contains(this)}contains(e){return this.value===e.value||e.value.startsWith(this.value+go.sep)}},go=Bs,Bs.sep=".",Bs);bt=go=ie([se],bt);bt.Empty=new bt("");bt.QuickFix=bt.Empty.append("quickfix");bt.Refactor=bt.Empty.append("refactor");bt.RefactorExtract=bt.Refactor.append("extract");bt.RefactorInline=bt.Refactor.append("inline");bt.RefactorMove=bt.Refactor.append("move");bt.RefactorRewrite=bt.Refactor.append("rewrite");bt.Source=bt.Empty.append("source");bt.SourceOrganizeImports=bt.Source.append("organizeImports");bt.SourceFixAll=bt.Source.append("fixAll");bt.Notebook=bt.Empty.append("notebook");let If=class{constructor(e,n){if(this.range=e,this.parent=n,n&&!n.range.contains(this.range))throw new Error("Invalid argument: parent must contain this range")}};If=ie([se],If);let F5=class{constructor(e,n,r,i,s,o){this.kind=e,this.name=n,this.detail=r,this.uri=i,this.range=s,this.selectionRange=o}},L5=class{constructor(e,n){this.fromRanges=n,this.from=e}},N5=class{constructor(e,n){this.fromRanges=n,this.to=e}};var Mf;(function(t){t[t.Information=0]="Information",t[t.Warning=1]="Warning",t[t.Error=2]="Error"})(Mf||(Mf={}));let Of=class{constructor(e,n){this.range=e,this.command=n}get isResolved(){return!!this.command}};Of=ie([se],Of);var rn,p2;let uc=hf=(p2=class{constructor(e,n=!1){ns(this,rn,void 0);da(this,rn,new Gv(e,{supportThemeIcons:n}))}static isMarkdownString(e){return e instanceof hf?!0:e&&e.appendCodeblock&&e.appendMarkdown&&e.appendText&&e.value!==void 0}get value(){return Dt(this,rn).value}set value(e){Dt(this,rn).value=e}get isTrusted(){return Dt(this,rn).isTrusted}set isTrusted(e){Dt(this,rn).isTrusted=e}get supportThemeIcons(){return Dt(this,rn).supportThemeIcons}set supportThemeIcons(e){Dt(this,rn).supportThemeIcons=e}get supportHtml(){return Dt(this,rn).supportHtml}set supportHtml(e){Dt(this,rn).supportHtml=e}get baseUri(){return Dt(this,rn).baseUri}set baseUri(e){Dt(this,rn).baseUri=e}appendText(e){return Dt(this,rn).appendText(e),this}appendMarkdown(e){return Dt(this,rn).appendMarkdown(e),this}appendCodeblock(e,n){return Dt(this,rn).appendCodeblock(n??"",e),this}},rn=new WeakMap,p2);uc=hf=ie([se],uc);let Af=class{constructor(e,n){this.label=e,this.documentation=n}};Af=ie([se],Af);let Ff=class{constructor(e,n){this.label=e,this.documentation=n,this.parameters=[]}};Ff=ie([se],Ff);let Lf=class{constructor(){this.activeSignature=0,this.activeParameter=0,this.signatures=[]}};Lf=ie([se],Lf);var Nf;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(Nf||(Nf={}));var $f;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})($f||($f={}));let qf=class{constructor(e){this.value=e}};qf=ie([se],qf);let jf=class{constructor(e,n,r){this.position=e,this.label=n,this.kind=r}};jf=ie([se],jf);var Hf;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Hf||(Hf={}));var dc;(function(t){t[t.Text=0]="Text",t[t.Method=1]="Method",t[t.Function=2]="Function",t[t.Constructor=3]="Constructor",t[t.Field=4]="Field",t[t.Variable=5]="Variable",t[t.Class=6]="Class",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Unit=10]="Unit",t[t.Value=11]="Value",t[t.Enum=12]="Enum",t[t.Keyword=13]="Keyword",t[t.Snippet=14]="Snippet",t[t.Color=15]="Color",t[t.File=16]="File",t[t.Reference=17]="Reference",t[t.Folder=18]="Folder",t[t.EnumMember=19]="EnumMember",t[t.Constant=20]="Constant",t[t.Struct=21]="Struct",t[t.Event=22]="Event",t[t.Operator=23]="Operator",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue"})(dc||(dc={}));var Wf;(function(t){t[t.Deprecated=1]="Deprecated"})(Wf||(Wf={}));let Uf=class{constructor(e,n){this.label=e,this.kind=n}toJSON(){return{label:this.label,kind:this.kind&&dc[this.kind],detail:this.detail,documentation:this.documentation,sortText:this.sortText,filterText:this.filterText,preselect:this.preselect,insertText:this.insertText,textEdit:this.textEdit}}};Uf=ie([se],Uf);let zf=class{constructor(e=[],n=!1){this.items=e,this.isIncomplete=n}};zf=ie([se],zf);let Bf=class{constructor(e,n,r){this.insertText=e,this.range=n,this.command=r}};Bf=ie([se],Bf);let Vf=class{constructor(e){this.commands=void 0,this.suppressSuggestions=void 0,this.items=e}};Vf=ie([se],Vf);var Wm;(function(t){t[t.Unknown=0]="Unknown",t[t.Word=1]="Word",t[t.Line=2]="Line",t[t.Suggest=3]="Suggest"})(Wm||(Wm={}));var Kf;(function(t){t[t.Active=-1]="Active",t[t.Beside=-2]="Beside",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Three=3]="Three",t[t.Four=4]="Four",t[t.Five=5]="Five",t[t.Six=6]="Six",t[t.Seven=7]="Seven",t[t.Eight=8]="Eight",t[t.Nine=9]="Nine"})(Kf||(Kf={}));var Gf;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(Gf||(Gf={}));var Qf;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval"})(Qf||(Qf={}));var Jf;(function(t){t[t.Manual=1]="Manual",t[t.AfterDelay=2]="AfterDelay",t[t.FocusOut=3]="FocusOut"})(Jf||(Jf={}));var Yf;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(Yf||(Yf={}));var Vo;(function(t){t[t.Keyboard=1]="Keyboard",t[t.Mouse=2]="Mouse",t[t.Command=3]="Command"})(Vo||(Vo={}));var Xf;(function(t){t[t.Undo=1]="Undo",t[t.Redo=2]="Redo"})(Xf||(Xf={}));var Zf;(function(t){t[t.OpenOpen=0]="OpenOpen",t[t.ClosedClosed=1]="ClosedClosed",t[t.OpenClosed=2]="OpenClosed",t[t.ClosedOpen=3]="ClosedOpen"})(Zf||(Zf={}));(function(t){function e(n){switch(n){case"keyboard":return t.Keyboard;case"mouse":return t.Mouse;case"api":return t.Command}}t.fromValue=e})(Vo||(Vo={}));var Ko;(function(t){t[t.Other=0]="Other",t[t.Comment=1]="Comment",t[t.String=2]="String",t[t.RegEx=3]="RegEx"})(Ko||(Ko={}));(function(t){function e(n){switch(n){case t.Other:return"other";case t.Comment:return"comment";case t.String:return"string";case t.RegEx:return"regex"}return"other"}t.toString=e})(Ko||(Ko={}));let eh=class{constructor(e,n){if(n&&!rt.isUri(n))throw Ae("target");if(!Ot.isRange(e)||e.isEmpty)throw Ae("range");this.range=e,this.target=n}};eh=ie([se],eh);let fc=class{constructor(e,n,r,i){this.red=e,this.green=n,this.blue=r,this.alpha=i}};fc=ie([se],fc);let th=class{constructor(e,n){if(n&&!(n instanceof fc))throw Ae("color");if(!Ot.isRange(e)||e.isEmpty)throw Ae("range");this.range=e,this.color=n}};th=ie([se],th);let nh=class{constructor(e){if(!e||typeof e!="string")throw Ae("label");this.label=e}};nh=ie([se],nh);var rh;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Information=2]="Information"})(rh||(rh={}));var ih;(function(t){t[t.Unknown=0]="Unknown",t[t.Shutdown=1]="Shutdown",t[t.Process=2]="Process",t[t.User=3]="User",t[t.Extension=4]="Extension"})(ih||(ih={}));var Um;(function(t){t[t.Low=0]="Low",t[t.Medium=1]="Medium",t[t.High=2]="High"})(Um||(Um={}));let $5=class{constructor(e,n,r){if(this.startIndex=e,this.length=n,this.tooltip=r,typeof e!="number"||e<0)throw Ae("startIndex");if(typeof n!="number"||n<1)throw Ae("length");if(r!==void 0&&typeof r!="string")throw Ae("tooltip")}},q5=class{constructor(e){this.uri=e}};class j5{constructor(e){this.terminalCommand=e}}var sh;(function(t){t[t.Panel=1]="Panel",t[t.Editor=2]="Editor"})(sh||(sh={}));let H5=class{constructor(e){if(this.options=e,typeof e!="object")throw Ae("options")}};var oh;(function(t){t[t.Always=1]="Always",t[t.Silent=2]="Silent",t[t.Never=3]="Never"})(oh||(oh={}));var ah;(function(t){t[t.Shared=1]="Shared",t[t.Dedicated=2]="Dedicated",t[t.New=3]="New"})(ah||(ah={}));var Fr;let ch=(Fr=class{static from(e){switch(e){case"clean":return dr.Clean;case"build":return dr.Build;case"rebuild":return dr.Rebuild;case"test":return dr.Test;default:return}}constructor(e,n){if(this.label=n,typeof e!="string"||typeof n!="string")throw Ae("name");this._id=e}get id(){return this._id}},dr=Fr,Fr.Clean=new dr("clean","Clean"),Fr.Build=new dr("build","Build"),Fr.Rebuild=new dr("rebuild","Rebuild"),Fr.Test=new dr("test","Test"),Fr);ch=dr=ie([se],ch);function ry(t){let e="";for(let n=0;n<t.length;n++)e+=t[n].replace(/,/g,",,")+",";return e}let hc=class{constructor(e,n,r){if(typeof e!="string")throw Ae("process");this._args=[],this._process=e,n!==void 0&&(Array.isArray(n)?(this._args=n,this._options=r):this._options=n)}get process(){return this._process}set process(e){if(typeof e!="string")throw Ae("process");this._process=e}get args(){return this._args}set args(e){Array.isArray(e)||(e=[]),this._args=e}get options(){return this._options}set options(e){this._options=e}computeId(){const e=[];if(e.push("process"),this._process!==void 0&&e.push(this._process),this._args&&this._args.length>0)for(const n of this._args)e.push(n);return ry(e)}};hc=ie([se],hc);let pc=class{constructor(e,n,r){if(this._args=[],Array.isArray(n)){if(!e)throw Ae("command can't be undefined or null");if(typeof e!="string"&&typeof e.value!="string")throw Ae("command");this._command=e,this._args=n,this._options=r}else{if(typeof e!="string")throw Ae("commandLine");this._commandLine=e,this._options=n}}get commandLine(){return this._commandLine}set commandLine(e){if(typeof e!="string")throw Ae("commandLine");this._commandLine=e}get command(){return this._command?this._command:""}set command(e){if(typeof e!="string"&&typeof e.value!="string")throw Ae("command");this._command=e}get args(){return this._args}set args(e){this._args=e||[]}get options(){return this._options}set options(e){this._options=e}computeId(){const e=[];if(e.push("shell"),this._commandLine!==void 0&&e.push(this._commandLine),this._command!==void 0&&e.push(typeof this._command=="string"?this._command:this._command.value),this._args&&this._args.length>0)for(const n of this._args)e.push(typeof n=="string"?n:n.value);return ry(e)}};pc=ie([se],pc);var lh;(function(t){t[t.Escape=1]="Escape",t[t.Strong=2]="Strong",t[t.Weak=3]="Weak"})(lh||(lh={}));var Go;(function(t){t[t.Global=1]="Global",t[t.Workspace=2]="Workspace"})(Go||(Go={}));let iy=class{constructor(e){this._callback=e}computeId(){return"customExecution"+Hc()}set callback(e){this._callback=e}get callback(){return this._callback}};var Lr;let uh=(Lr=class{constructor(e,n,r,i,s,o){this.__deprecated=!1,this._definition=this.definition=e;let a;typeof n=="string"?(this._name=this.name=n,this._source=this.source=r,this.execution=i,a=s,this.__deprecated=!0):n===Go.Global||n===Go.Workspace?(this.target=n,this._name=this.name=r,this._source=this.source=i,this.execution=s,a=o):(this.target=n,this._name=this.name=r,this._source=this.source=i,this.execution=s,a=o),typeof a=="string"?(this._problemMatchers=[a],this._hasDefinedMatchers=!0):Array.isArray(a)?(this._problemMatchers=a,this._hasDefinedMatchers=!0):(this._problemMatchers=[],this._hasDefinedMatchers=!1),this._isBackground=!1,this._presentationOptions=Object.create(null),this._runOptions=Object.create(null)}get _id(){return this.__id}set _id(e){this.__id=e}get _deprecated(){return this.__deprecated}clear(){this.__id!==void 0&&(this.__id=void 0,this._scope=void 0,this.computeDefinitionBasedOnExecution())}computeDefinitionBasedOnExecution(){this._execution instanceof hc?this._definition={type:fr.ProcessType,id:this._execution.computeId()}:this._execution instanceof pc?this._definition={type:fr.ShellType,id:this._execution.computeId()}:this._execution instanceof iy?this._definition={type:fr.ExtensionCallbackType,id:this._execution.computeId()}:this._definition={type:fr.EmptyType,id:Hc()}}get definition(){return this._definition}set definition(e){if(e==null)throw Ae("Kind can't be undefined or null");this.clear(),this._definition=e}get scope(){return this._scope}set target(e){this.clear(),this._scope=e}get name(){return this._name}set name(e){if(typeof e!="string")throw Ae("name");this.clear(),this._name=e}get execution(){return this._execution}set execution(e){e===null&&(e=void 0),this.clear(),this._execution=e;const n=this._definition.type;(fr.EmptyType===n||fr.ProcessType===n||fr.ShellType===n||fr.ExtensionCallbackType===n)&&this.computeDefinitionBasedOnExecution()}get problemMatchers(){return this._problemMatchers}set problemMatchers(e){if(Array.isArray(e))this.clear(),this._problemMatchers=e,this._hasDefinedMatchers=!0;else{this.clear(),this._problemMatchers=[],this._hasDefinedMatchers=!1;return}}get hasDefinedMatchers(){return this._hasDefinedMatchers}get isBackground(){return this._isBackground}set isBackground(e){e!==!0&&e!==!1&&(e=!1),this.clear(),this._isBackground=e}get source(){return this._source}set source(e){if(typeof e!="string"||e.length===0)throw Ae("source must be a string of length > 0");this.clear(),this._source=e}get group(){return this._group}set group(e){e===null&&(e=void 0),this.clear(),this._group=e}get detail(){return this._detail}set detail(e){e===null&&(e=void 0),this._detail=e}get presentationOptions(){return this._presentationOptions}set presentationOptions(e){e==null&&(e=Object.create(null)),this.clear(),this._presentationOptions=e}get runOptions(){return this._runOptions}set runOptions(e){e==null&&(e=Object.create(null)),this.clear(),this._runOptions=e}},fr=Lr,Lr.ExtensionCallbackType="customExecution",Lr.ProcessType="process",Lr.ShellType="shell",Lr.EmptyType="$empty",Lr);uh=fr=ie([se],uh);var dh;(function(t){t[t.SourceControl=1]="SourceControl",t[t.Window=10]="Window",t[t.Notification=15]="Notification"})(dh||(dh={}));var zm;(function(t){function e(n){const r=n;return Co(r.value)?r.tooltip&&!Hn(r.tooltip)?(console.log("INVALID view badge, invalid tooltip",r.tooltip),!1):!0:(console.log("INVALID view badge, invalid value",r.value),!1)}t.isViewBadge=e})(zm||(zm={}));let fh=pf=class{static isTreeItem(e,n){var i,s;const r=e;if(r.checkboxState!==void 0){const o=Co(r.checkboxState)?r.checkboxState:dm(r.checkboxState)&&Co(r.checkboxState.state)?r.checkboxState.state:void 0,a=!Co(r.checkboxState)&&dm(r.checkboxState)?r.checkboxState.tooltip:void 0;if(o===void 0||o!==Qo.Checked&&o!==Qo.Unchecked||a!==void 0&&!Hn(a))return console.log("INVALID tree item, invalid checkboxState",r.checkboxState),!1}if(e instanceof pf)return!0;if(r.label!==void 0&&!Hn(r.label)&&!((i=r.label)!=null&&i.label))return console.log("INVALID tree item, invalid label",r.label),!1;if(r.id!==void 0&&!Hn(r.id))return console.log("INVALID tree item, invalid id",r.id),!1;if(r.iconPath!==void 0&&!Hn(r.iconPath)&&!rt.isUri(r.iconPath)&&(!r.iconPath||!Hn(r.iconPath.id))){const o=r.iconPath;if(!o||!Hn(o.light)&&!rt.isUri(o.light)&&!Hn(o.dark)&&!rt.isUri(o.dark))return console.log("INVALID tree item, invalid iconPath",r.iconPath),!1}return r.description!==void 0&&!Hn(r.description)&&typeof r.description!="boolean"?(console.log("INVALID tree item, invalid description",r.description),!1):r.resourceUri!==void 0&&!rt.isUri(r.resourceUri)?(console.log("INVALID tree item, invalid resourceUri",r.resourceUri),!1):r.tooltip!==void 0&&!Hn(r.tooltip)&&!(r.tooltip instanceof uc)?(console.log("INVALID tree item, invalid tooltip",r.tooltip),!1):r.command!==void 0&&!r.command.command?(console.log("INVALID tree item, invalid command",r.command),!1):r.collapsibleState!==void 0&&r.collapsibleState<Ds.None&&r.collapsibleState>Ds.Expanded?(console.log("INVALID tree item, invalid collapsibleState",r.collapsibleState),!1):r.contextValue!==void 0&&!Hn(r.contextValue)?(console.log("INVALID tree item, invalid contextValue",r.contextValue),!1):r.accessibilityInformation!==void 0&&!((s=r.accessibilityInformation)!=null&&s.label)?(console.log("INVALID tree item, invalid accessibilityInformation",r.accessibilityInformation),!1):!0}constructor(e,n=Ds.None){this.collapsibleState=n,rt.isUri(e)?this.resourceUri=e:this.label=e}};fh=pf=ie([se],fh);var Ds;(function(t){t[t.None=0]="None",t[t.Collapsed=1]="Collapsed",t[t.Expanded=2]="Expanded"})(Ds||(Ds={}));var Qo;(function(t){t[t.Unchecked=0]="Unchecked",t[t.Checked=1]="Checked"})(Qo||(Qo={}));let hh=class{async asString(){return typeof this.value=="string"?this.value:JSON.stringify(this.value)}asFile(){}constructor(e){this.value=e}};hh=ie([se],hh);var Ar,Hi,mo,g2;let ph=(g2=class{constructor(e){ns(this,Hi);ns(this,Ar,new Map);for(const[n,r]of e??[]){const i=Dt(this,Ar).get(Qs(this,Hi,mo).call(this,n));i?i.push(r):Dt(this,Ar).set(Qs(this,Hi,mo).call(this,n),[r])}}get(e){var n;return(n=Dt(this,Ar).get(Qs(this,Hi,mo).call(this,e)))==null?void 0:n[0]}set(e,n){Dt(this,Ar).set(Qs(this,Hi,mo).call(this,e),[n])}forEach(e,n){for(const[r,i]of Dt(this,Ar))for(const s of i)e.call(n,s,r,this)}*[Symbol.iterator](){for(const[e,n]of Dt(this,Ar))for(const r of n)yield[e,r]}},Ar=new WeakMap,Hi=new WeakSet,mo=function(e){return e.toLowerCase()},g2);ph=ie([se],ph);let gh=class{constructor(e,n,r){this.insertText=e,this.title=n,this.kind=r}};gh=ie([se],gh);var Bm;(function(t){t[t.Automatic=0]="Automatic",t[t.PasteAs=1]="PasteAs"})(Bm||(Bm={}));const _s=class _s{constructor(e){this.value=e}append(...e){return new _s((this.value?[this.value,...e]:e).join(_s.sep))}intersects(e){return this.contains(e)||e.contains(this)}contains(e){return this.value===e.value||e.value.startsWith(this.value+_s.sep)}};_s.sep=".";let gc=_s;gc.Empty=new gc("");let W5=class{constructor(e,n,r){this.title=n,this.insertText=e,this.kind=r}},Kr=class{constructor(e,n){this.id=e,this.color=n}static isThemeIcon(e){return typeof e.id!="string"?(console.log("INVALID ThemeIcon, invalid id",e.id),!1):!0}};Kr=ie([se],Kr);Kr.File=new Kr("file");Kr.Folder=new Kr("folder");let mh=class{constructor(e){this.id=e}};mh=ie([se],mh);var yh;(function(t){t[t.Global=1]="Global",t[t.Workspace=2]="Workspace",t[t.WorkspaceFolder=3]="WorkspaceFolder"})(yh||(yh={}));let bh=class{get base(){return this._base}set base(e){this._base=e,this._baseUri=rt.file(e)}get baseUri(){return this._baseUri}set baseUri(e){this._baseUri=e,this._base=e.fsPath}constructor(e,n){if(typeof e!="string"&&(!e||!rt.isUri(e)&&!rt.isUri(e.uri)))throw Ae("base");if(typeof n!="string")throw Ae("pattern");typeof e=="string"?this.baseUri=rt.file(e):rt.isUri(e)?this.baseUri=e:this.baseUri=e.uri,this.pattern=n}toJSON(){return{pattern:this.pattern,base:this.base,baseUri:this.baseUri.toJSON()}}};bh=ie([se],bh);const U5=new WeakMap;let Ws=class{constructor(e,n,r,i,s){this.enabled=typeof e=="boolean"?e:!0,typeof n=="string"&&(this.condition=n),typeof r=="string"&&(this.hitCondition=r),typeof i=="string"&&(this.logMessage=i),typeof s=="string"&&(this.mode=s)}get id(){return this._id||(this._id=U5.get(this)??Hc()),this._id}};Ws=ie([se],Ws);let vh=class extends Ws{constructor(e,n,r,i,s,o){if(super(n,r,i,s,o),e===null)throw Ae("location");this.location=e}};vh=ie([se],vh);let wh=class extends Ws{constructor(e,n,r,i,s,o){super(n,r,i,s,o),this.functionName=e}};wh=ie([se],wh);let Vm=class extends Ws{constructor(e,n,r,i,s,o,a,c){if(super(i,s,o,a,c),!n)throw Ae("dataId");this.label=e,this.dataId=n,this.canPersist=r}};Vm=ie([se],Vm);let Ch=class{constructor(e,n,r){this.command=e,this.args=n||[],this.options=r}};Ch=ie([se],Ch);let _h=class{constructor(e,n){this.port=e,this.host=n}};_h=ie([se],_h);let Sh=class{constructor(e){this.path=e}};Sh=ie([se],Sh);let Dh=class{constructor(e){this.implementation=e}};Dh=ie([se],Dh);let Th=class{constructor(e,n){this.range=e,this.expression=n}};Th=ie([se],Th);var kh;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(kh||(kh={}));let Rh=class{constructor(e,n){this.range=e,this.text=n}};Rh=ie([se],Rh);let xh=class{constructor(e,n,r=!0){this.range=e,this.variableName=n,this.caseSensitiveLookup=r}};xh=ie([se],xh);let Eh=class{constructor(e,n){this.range=e,this.expression=n}};Eh=ie([se],Eh);let Km=class{constructor(e,n){this.frameId=e,this.stoppedLocation=n}};Km=ie([se],Km);var Gm;(function(t){t[t.AIGenerated=1]="AIGenerated"})(Gm||(Gm={}));var Qm;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(Qm||(Qm={}));var Ph;(function(t){t[t.Changed=1]="Changed",t[t.Created=2]="Created",t[t.Deleted=3]="Deleted"})(Ph||(Ph={}));let Ih=wn=class extends Error{static FileExists(e){return new wn(e,Er.FileExists,wn.FileExists)}static FileNotFound(e){return new wn(e,Er.FileNotFound,wn.FileNotFound)}static FileNotADirectory(e){return new wn(e,Er.FileNotADirectory,wn.FileNotADirectory)}static FileIsADirectory(e){return new wn(e,Er.FileIsADirectory,wn.FileIsADirectory)}static NoPermissions(e){return new wn(e,Er.NoPermissions,wn.NoPermissions)}static Unavailable(e){return new wn(e,Er.Unavailable,wn.Unavailable)}constructor(e,n=Er.Unknown,r){super(rt.isUri(e)?e.toString(!0):e),this.code=(r==null?void 0:r.name)??"Unknown",t5(this,n),Object.setPrototypeOf(this,wn.prototype),typeof Error.captureStackTrace=="function"&&typeof r=="function"&&Error.captureStackTrace(this,r)}};Ih=wn=ie([se],Ih);let Mh=class{constructor(e,n,r){this.start=e,this.end=n,this.kind=r}};Mh=ie([se],Mh);var Oh;(function(t){t[t.Comment=1]="Comment",t[t.Imports=2]="Imports",t[t.Region=3]="Region"})(Oh||(Oh={}));var Ah;(function(t){t[t.Collapsed=0]="Collapsed",t[t.Expanded=1]="Expanded"})(Ah||(Ah={}));var Fh;(function(t){t[t.Editing=0]="Editing",t[t.Preview=1]="Preview"})(Fh||(Fh={}));var Lh;(function(t){t[t.Published=0]="Published",t[t.Draft=1]="Draft"})(Lh||(Lh={}));var Nh;(function(t){t[t.Unresolved=0]="Unresolved",t[t.Resolved=1]="Resolved"})(Nh||(Nh={}));var Jm;(function(t){t[t.Current=0]="Current",t[t.Outdated=1]="Outdated"})(Jm||(Jm={}));let z5=class{constructor(e,n=[]){this.tokenTypes=e,this.tokenModifiers=n}};function B5(t){return typeof t>"u"||ev(t)}let V5=class sy{constructor(e){if(this._prevLine=0,this._prevChar=0,this._dataIsSortedAndDeltaEncoded=!0,this._data=[],this._dataLen=0,this._tokenTypeStrToInt=new Map,this._tokenModifierStrToInt=new Map,this._hasLegend=!1,e){this._hasLegend=!0;for(let n=0,r=e.tokenTypes.length;n<r;n++)this._tokenTypeStrToInt.set(e.tokenTypes[n],n);for(let n=0,r=e.tokenModifiers.length;n<r;n++)this._tokenModifierStrToInt.set(e.tokenModifiers[n],n)}}push(e,n,r,i,s){if(typeof e=="number"&&typeof n=="number"&&typeof r=="number"&&typeof i=="number"&&(typeof s=="number"||typeof s>"u"))return typeof s>"u"&&(s=0),this._pushEncoded(e,n,r,i,s);if(Ot.isRange(e)&&typeof n=="string"&&B5(r))return this._push(e,n,r);throw Ae()}_push(e,n,r){if(!this._hasLegend)throw new Error("Legend must be provided in constructor");if(e.start.line!==e.end.line)throw new Error("`range` cannot span multiple lines");if(!this._tokenTypeStrToInt.has(n))throw new Error("`tokenType` is not in the provided legend");const i=e.start.line,s=e.start.character,o=e.end.character-e.start.character,a=this._tokenTypeStrToInt.get(n);let c=0;if(r)for(const l of r){if(!this._tokenModifierStrToInt.has(l))throw new Error("`tokenModifier` is not in the provided legend");const f=this._tokenModifierStrToInt.get(l);c|=1<<f>>>0}this._pushEncoded(i,s,o,a,c)}_pushEncoded(e,n,r,i,s){if(this._dataIsSortedAndDeltaEncoded&&(e<this._prevLine||e===this._prevLine&&n<this._prevChar)){this._dataIsSortedAndDeltaEncoded=!1;const c=this._data.length/5|0;let l=0,f=0;for(let p=0;p<c;p++){let g=this._data[5*p],_=this._data[5*p+1];g===0?(g=l,_+=f):g+=l,this._data[5*p]=g,this._data[5*p+1]=_,l=g,f=_}}let o=e,a=n;this._dataIsSortedAndDeltaEncoded&&this._dataLen>0&&(o-=this._prevLine,o===0&&(a-=this._prevChar)),this._data[this._dataLen++]=o,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=s,this._prevLine=e,this._prevChar=n}static _sortAndDeltaEncode(e){const n=[],r=e.length/5|0;for(let a=0;a<r;a++)n[a]=a;n.sort((a,c)=>{const l=e[5*a],f=e[5*c];if(l===f){const p=e[5*a+1],g=e[5*c+1];return p-g}return l-f});const i=new Uint32Array(e.length);let s=0,o=0;for(let a=0;a<r;a++){const c=5*n[a],l=e[c+0],f=e[c+1],p=e[c+2],g=e[c+3],_=e[c+4],C=l-s,k=C===0?f-o:f,M=5*a;i[M+0]=C,i[M+1]=k,i[M+2]=p,i[M+3]=g,i[M+4]=_,s=l,o=f}return i}build(e){return this._dataIsSortedAndDeltaEncoded?new $h(new Uint32Array(this._data),e):new $h(sy._sortAndDeltaEncode(this._data),e)}},$h=class{constructor(e,n){this.resultId=n,this.data=e}},K5=class{constructor(e,n,r){this.start=e,this.deleteCount=n,this.data=r}},G5=class{constructor(e,n){this.resultId=n,this.edits=e}};var qh;(function(t){t[t.Separate=0]="Separate",t[t.MergeWithParent=1]="MergeWithParent"})(qh||(qh={}));let Q5=class{constructor(e){this.name=e}};var Xo;let jh=(Xo=class{constructor(){}},Xo.Back={iconPath:new Kr("arrow-left")},Xo);jh=ie([se],jh);var Hh;(function(t){t[t.Separator=-1]="Separator",t[t.Default=0]="Default"})(Hh||(Hh={}));var Wh;(function(t){t[t.Info=1]="Info",t[t.Warning=2]="Warning",t[t.Error=3]="Error"})(Wh||(Wh={}));var Uh;(function(t){t[t.UI=1]="UI",t[t.Workspace=2]="Workspace"})(Uh||(Uh={}));let Ym=class{static validate(e){if(typeof e.badge=="string"){let n=im(e.badge,0);if(n<e.badge.length&&(n+=im(e.badge,n)),e.badge.length>n)throw new Error("The 'badge'-property must be undefined or a short character")}else if(e.badge&&!Kr.isThemeIcon(e.badge))throw new Error("The 'badge'-property is not a valid ThemeIcon");if(!e.color&&!e.badge&&!e.tooltip)throw new Error("The decoration is empty");return!0}constructor(e,n,r){this.badge=e,this.tooltip=n,this.color=r}},Xm=class{constructor(e){this.kind=e}};Xm=ie([se],Xm);var zh;(function(t){t[t.Light=1]="Light",t[t.Dark=2]="Dark",t[t.HighContrast=3]="HighContrast",t[t.HighContrastLight=4]="HighContrastLight"})(zh||(zh={}));let yo=class Bh{static isNotebookRange(e){return e instanceof Bh?!0:e?typeof e.start=="number"&&typeof e.end=="number":!1}get start(){return this._start}get end(){return this._end}get isEmpty(){return this._start===this._end}constructor(e,n){if(e<0)throw Ae("start must be positive");if(n<0)throw Ae("end must be positive");e<=n?(this._start=e,this._end=n):(this._start=n,this._end=e)}with(e){let n=this._start,r=this._end;return e.start!==void 0&&(n=e.start),e.end!==void 0&&(r=e.end),n===this._start&&r===this._end?this:new Bh(n,r)}},J5=class Vh{static validate(e){if(typeof e.kind!="number")throw new Error("NotebookCellData MUST have 'kind' property");if(typeof e.value!="string")throw new Error("NotebookCellData MUST have 'value' property");if(typeof e.languageId!="string")throw new Error("NotebookCellData MUST have 'languageId' property")}static isNotebookCellDataArray(e){return Array.isArray(e)&&e.every(n=>Vh.isNotebookCellData(n))}static isNotebookCellData(e){return!0}constructor(e,n,r,i,s,o,a){this.kind=e,this.value=n,this.languageId=r,this.mime=i,this.outputs=s??[],this.metadata=o,this.executionSummary=a,Vh.validate(this)}},Y5=class{constructor(e){this.cells=e}};var Wn,Rc;let X5=(Wn=class{static isNotebookCellOutputItem(e){return e instanceof Wn?!0:e?typeof e.mime=="string"&&e.data instanceof Uint8Array:!1}static error(e){const n={name:e.name,message:e.message,stack:e.stack};return Wn.json(n,"application/vnd.code.notebook.error")}static stdout(e){return Wn.text(e,"application/vnd.code.notebook.stdout")}static stderr(e){return Wn.text(e,"application/vnd.code.notebook.stderr")}static bytes(e,n="application/octet-stream"){return new Wn(e,n)}static text(e,n=zi.text){const r=Dt(Wn,Rc).encode(String(e));return new Wn(r,n)}static json(e,n="text/x-json"){const r=JSON.stringify(e,void 0," ");return Wn.text(r,n)}constructor(e,n){this.data=e,this.mime=n;const r=J2(n,!0);if(!r)throw new Error(`INVALID mime type: ${n}. Must be in the format "type/subtype[;optionalparameter]"`);this.mime=r}},Rc=new WeakMap,ns(Wn,Rc,new TextEncoder),Wn),Z5=class Kh{static isNotebookCellOutput(e){return e instanceof Kh?!0:!e||typeof e!="object"?!1:typeof e.id=="string"&&Array.isArray(e.items)}static ensureUniqueMimeTypes(e,n=!1){const r=new Set,i=new Set;for(let s=0;s<e.length;s++){const o=e[s],a=J2(o.mime);if(!r.has(a)||P5(a)){r.add(a);continue}i.add(s),n&&console.warn(`DUPLICATED mime type '${o.mime}' will be dropped`)}return i.size===0?e:e.filter((s,o)=>!i.has(o))}constructor(e,n,r){this.items=Kh.ensureUniqueMimeTypes(e,!0),typeof n=="string"?(this.id=n,this.metadata=r):(this.id=Hc(),this.metadata=n??r)}};var Gh;(function(t){t[t.Markup=1]="Markup",t[t.Code=2]="Code"})(Gh||(Gh={}));var Qh;(function(t){t[t.Idle=1]="Idle",t[t.Pending=2]="Pending",t[t.Executing=3]="Executing"})(Qh||(Qh={}));var Jh;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(Jh||(Jh={}));var Yh;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(Yh||(Yh={}));let ew=class{constructor(e,n){this.text=e,this.alignment=n}};var Xh;(function(t){t[t.Default=1]="Default",t[t.Preferred=2]="Preferred"})(Xh||(Xh={}));var Zh;(function(t){t[t.Default=1]="Default",t[t.Preferred=2]="Preferred",t[t.Hidden=-1]="Hidden"})(Zh||(Zh={}));let tw=class{constructor(e,n=[]){this.uri=e,this.provides=w4(n)}},nw=class{constructor(e){this.label=e}};var Zm;(function(t){t[t.Named=1]="Named",t[t.Indexed=2]="Indexed"})(Zm||(Zm={}));let e1=class{constructor(e,n){this.label=e,this.timestamp=n}};e1=ie([se],e1);var t1;(function(t){t[t.Production=1]="Production",t[t.Development=2]="Development",t[t.Test=3]="Test"})(t1||(t1={}));var n1;(function(t){t[t.Node=1]="Node",t[t.Webworker=2]="Webworker"})(n1||(n1={}));var r1;(function(t){t[t.Other=0]="Other",t[t.Comment=1]="Comment",t[t.String=2]="String",t[t.RegEx=3]="RegEx"})(r1||(r1={}));let rw=class{constructor(e,n){this.ranges=e,this.wordPattern=n}},iw=class{constructor(e){this._autoForwardAction=e}get autoForwardAction(){return this._autoForwardAction}};var i1;(function(t){t[t.Queued=1]="Queued",t[t.Running=2]="Running",t[t.Passed=3]="Passed",t[t.Failed=4]="Failed",t[t.Skipped=5]="Skipped",t[t.Errored=6]="Errored"})(i1||(i1={}));var s1;(function(t){t[t.Run=1]="Run",t[t.Debug=2]="Debug",t[t.Coverage=3]="Coverage"})(s1||(s1={}));let o1=class{constructor(e=void 0,n=void 0,r=void 0,i=!1,s=!0){this.include=e,this.exclude=n,this.profile=r,this.continuous=i,this.preserveFocus=s}};o1=ie([se],o1);let mc=gf=class{static diff(e,n,r){const i=new gf(e);return i.expectedOutput=n,i.actualOutput=r,i}constructor(e){this.message=e}};mc=gf=ie([se],mc);let a1=class{constructor(e){this.id=e}};a1=ie([se],a1);class Bl{constructor(e,n){this.covered=e,this.total=n,sw(this)}}function sw(t){if(t){if(t.covered>t.total)throw new Error(`The total number of covered items (${t.covered}) cannot be greater than the total (${t.total})`);if(t.total<0)throw new Error(`The number of covered items (${t.total}) cannot be negative`)}}let ow=class oy{static fromDetails(e,n){const r=new Bl(0,0),i=new Bl(0,0),s=new Bl(0,0);for(const a of n)if("branches"in a){r.total+=1,r.covered+=a.executed?1:0;for(const c of a.branches)i.total+=1,i.covered+=c.executed?1:0}else s.total+=1,s.covered+=a.executed?1:0;const o=new oy(e,r,i.total>0?i:void 0,s.total>0?s:void 0);return o.detailedCoverage=n,o}constructor(e,n,r,i){this.uri=e,this.statementCoverage=n,this.branchCoverage=r,this.declarationCoverage=i}},aw=class{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,n,r=[]){this.executed=e,this.location=n,this.branches=r}},cw=class{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,n,r){this.executed=e,this.location=n,this.label=r}};class lw{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,n,r){this.name=e,this.executed=n,this.location=r}}var c1;(function(t){t[t.None=0]="None",t[t.Option=1]="Option",t[t.Default=2]="Default",t[t.Preferred=3]="Preferred"})(c1||(c1={}));var l1;(function(t){t[t.Untrusted=0]="Untrusted",t[t.Trusted=1]="Trusted",t[t.Unspecified=2]="Unspecified"})(l1||(l1={}));var u1;(function(t){t[t.Notify=1]="Notify",t[t.OpenBrowser=2]="OpenBrowser",t[t.OpenPreview=3]="OpenPreview",t[t.Silent=4]="Silent",t[t.Ignore=5]="Ignore",t[t.OpenBrowserOnce=6]="OpenBrowserOnce"})(u1||(u1={}));let uw=class{constructor(e,n,r,i,s,o){this.kind=e,this.name=n,this.detail=r,this.uri=i,this.range=s,this.selectionRange=o}};class dw{constructor(e){this.uri=e}}class fw{constructor(e,n){this.original=e,this.modified=n}}class hw{constructor(e,n,r,i){this.base=e,this.input1=n,this.input2=r,this.result=i}}class pw{constructor(e,n){this.uri=e,this.viewType=n}}class gw{constructor(e){this.viewType=e}}class mw{constructor(e,n){this.uri=e,this.notebookType=n}}class yw{constructor(e,n,r){this.original=e,this.modified=n,this.notebookType=r}}class bw{constructor(){}}class vw{constructor(e,n){this.uri=e,this.inputBoxUri=n}}class ww{constructor(){}}var d1;(function(t){t[t.Down=0]="Down",t[t.Up=1]="Up"})(d1||(d1={}));var f1;(function(t){t[t.Action=1]="Action",t[t.Toolbar=2]="Toolbar"})(f1||(f1={}));var h1;(function(t){t[t.Short=1]="Short",t[t.Medium=2]="Medium",t[t.Full=3]="Full"})(h1||(h1={}));let Cw=class{constructor(e,n){this.label=e,this.values=n}};var p1;(function(t){t[t.Unhelpful=0]="Unhelpful",t[t.Helpful=1]="Helpful",t[t.Undone=2]="Undone",t[t.Accepted=3]="Accepted",t[t.Bug=4]="Bug"})(p1||(p1={}));var g1;(function(t){t[t.Unhelpful=0]="Unhelpful",t[t.Helpful=1]="Helpful"})(g1||(g1={}));var e0;(function(t){t[t.Panel=1]="Panel",t[t.Terminal=2]="Terminal",t[t.Notebook=3]="Notebook",t[t.Editor=4]="Editor"})(e0||(e0={}));var m1;(function(t){t[t.SymbolInformation=1]="SymbolInformation",t[t.CommandInformation=2]="CommandInformation",t[t.SearchInformation=3]="SearchInformation",t[t.SettingInformation=4]="SettingInformation"})(m1||(m1={}));var y1;(function(t){t[t.Started=1]="Started",t[t.Recognizing=2]="Recognizing",t[t.Recognized=3]="Recognized",t[t.Stopped=4]="Stopped",t[t.Error=5]="Error"})(y1||(y1={}));var b1;(function(t){t[t.Recognized=1]="Recognized",t[t.Stopped=2]="Stopped"})(b1||(b1={}));var t0;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(t0||(t0={}));var v1;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(v1||(v1={}));const xc=class xc{constructor(e){this._proxyIdentifierBrand=void 0,this.sid=e,this.nid=++xc.count}};xc.count=0;let w1=xc;const _w=[];function q(t){const e=new w1(t);return _w[e.nid]=e,e}var n0;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(n0||(n0={}));var r0;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(r0||(r0={}));var C1;(function(t){t[t.None=0]="None",t[t.Process=1]="Process",t[t.Output=2]="Output"})(C1||(C1={}));q("MainThreadAuthentication"),q("MainThreadBulkEdits"),q("MainThreadLanguageModels"),q("MainThreadChatAgents2"),q("MainThreadChatVariables"),q("MainThreadClipboard"),q("MainThreadCommands"),q("MainThreadComments"),q("MainThreadConfiguration"),q("MainThreadConsole"),q("MainThreadDebugService"),q("MainThreadDecorations"),q("MainThreadDiagnostics"),q("MainThreadDiaglogs"),q("MainThreadDocuments"),q("MainThreadDocumentContentProviders"),q("MainThreadTextEditors"),q("MainThreadEditorInsets"),q("MainThreadEditorTabs"),q("MainThreadErrors"),q("MainThreadTreeViews"),q("MainThreadDownloadService"),q("MainThreadLanguageFeatures"),q("MainThreadLanguages"),q("MainThreadLogger"),q("MainThreadMessageService"),q("MainThreadOutputService"),q("MainThreadProgress"),q("MainThreadQuickDiff"),q("MainThreadQuickOpen"),q("MainThreadStatusBar"),q("MainThreadSecretState"),q("MainThreadStorage"),q("MainThreadSpeechProvider"),q("MainThreadTelemetry"),q("MainThreadTerminalService"),q("MainThreadTerminalShellIntegration"),q("MainThreadWebviews"),q("MainThreadWebviewPanels"),q("MainThreadWebviewViews"),q("MainThreadCustomEditors"),q("MainThreadUrls"),q("MainThreadUriOpeners"),q("MainThreadProfileContentHandlers"),q("MainThreadWorkspace"),q("MainThreadFileSystem"),q("MainThreadFileSystemEventService"),q("MainThreadExtensionService"),q("MainThreadSCM"),q("MainThreadSearch"),q("MainThreadShare"),q("MainThreadTask"),q("MainThreadWindow"),q("MainThreadLabelService"),q("MainThreadNotebook"),q("MainThreadNotebookDocumentsShape"),q("MainThreadNotebookEditorsShape"),q("MainThreadNotebookKernels"),q("MainThreadNotebookRenderers"),q("MainThreadInteractive"),q("MainThreadInlineChatShape"),q("MainThreadTheming"),q("MainThreadTunnelService"),q("MainThreadManagedSockets"),q("MainThreadTimeline"),q("MainThreadTesting"),q("MainThreadLocalizationShape"),q("MainThreadAiRelatedInformation"),q("MainThreadAiEmbeddingVector");q("ExtHostCommands"),q("ExtHostConfiguration"),q("ExtHostDiagnostics"),q("ExtHostDebugService"),q("ExtHostDecorations"),q("ExtHostDocumentsAndEditors"),q("ExtHostDocuments"),q("ExtHostDocumentContentProviders"),q("ExtHostDocumentSaveParticipant"),q("ExtHostEditors"),q("ExtHostTreeViews"),q("ExtHostFileSystem"),q("ExtHostFileSystemInfo"),q("ExtHostFileSystemEventService"),q("ExtHostLanguages"),q("ExtHostLanguageFeatures"),q("ExtHostQuickOpen"),q("ExtHostQuickDiff"),q("ExtHostStatusBar"),q("ExtHostShare"),q("ExtHostExtensionService"),q("ExtHostLogLevelServiceShape"),q("ExtHostTerminalService"),q("ExtHostTerminalShellIntegration"),q("ExtHostSCM"),q("ExtHostSearch"),q("ExtHostTask"),q("ExtHostWorkspace"),q("ExtHostWindow"),q("ExtHostWebviews"),q("ExtHostWebviewPanels"),q("ExtHostCustomEditors"),q("ExtHostWebviewViews"),q("ExtHostEditorInsets"),q("ExtHostEditorTabs"),q("ExtHostProgress"),q("ExtHostComments"),q("ExtHostSecretState"),q("ExtHostStorage"),q("ExtHostUrls"),q("ExtHostUriOpeners"),q("ExtHostProfileContentHandlers"),q("ExtHostOutputService"),q("ExtHostLabelService"),q("ExtHostNotebook"),q("ExtHostNotebookDocuments"),q("ExtHostNotebookEditors"),q("ExtHostNotebookKernels"),q("ExtHostNotebookRenderers"),q("ExtHostNotebookDocumentSaveParticipant"),q("ExtHostInteractive"),q("ExtHostInlineChatShape"),q("ExtHostChatAgents"),q("ExtHostChatVariables"),q("ExtHostChatProvider"),q("ExtHostSpeech"),q("ExtHostAiRelatedInformation"),q("ExtHostAiEmbeddingVector"),q("ExtHostTheming"),q("ExtHostTunnelService"),q("ExtHostManagedSockets"),q("ExtHostAuthentication"),q("ExtHostTimeline"),q("ExtHostTesting"),q("ExtHostTelemetry"),q("ExtHostLocalization");const ue="vs/workbench/contrib/debug/common/debug";new ae("debugType",void 0,{type:"string",description:m(ue,0,"Debug type of the active debug session. For example 'python'.")});new ae("debugConfigurationType",void 0,{type:"string",description:m(ue,1,"Debug type of the selected launch configuration. For example 'python'.")});new ae("debugState","inactive",{type:"string",description:m(ue,2,"State that the focused debug session is in. One of the following: 'inactive', 'initializing', 'stopped' or 'running'.")});const Sw="debugUx";new ae(Sw,"default",{type:"string",description:m(ue,3,"Debug UX state. When there are no debug configurations it is 'simple', otherwise 'default'. Used to decide when to show welcome views in the debug viewlet.")});new ae("hasDebugged",!1,{type:"boolean",description:m(ue,4,"True when a debug session has been started at least once, false otherwise.")});new ae("inDebugMode",!1,{type:"boolean",description:m(ue,5,"True when debugging, false otherwise.")});new ae("inDebugRepl",!1,{type:"boolean",description:m(ue,6,"True when focus is in the debug console, false otherwise.")});new ae("breakpointWidgetVisible",!1,{type:"boolean",description:m(ue,7,"True when breakpoint editor zone widget is visible, false otherwise.")});new ae("inBreakpointWidget",!1,{type:"boolean",description:m(ue,8,"True when focus is in the breakpoint editor zone widget, false otherwise.")});new ae("breakpointsFocused",!0,{type:"boolean",description:m(ue,9,"True when the BREAKPOINTS view is focused, false otherwise.")});new ae("watchExpressionsFocused",!0,{type:"boolean",description:m(ue,10,"True when the WATCH view is focused, false otherwsie.")});new ae("watchExpressionsExist",!1,{type:"boolean",description:m(ue,11,"True when at least one watch expression exists, false otherwise.")});new ae("variablesFocused",!0,{type:"boolean",description:m(ue,12,"True when the VARIABLES views is focused, false otherwsie")});new ae("expressionSelected",!1,{type:"boolean",description:m(ue,13,"True when an expression input box is open in either the WATCH or the VARIABLES view, false otherwise.")});new ae("breakpointInputFocused",!1,{type:"boolean",description:m(ue,14,"True when the input box has focus in the BREAKPOINTS view.")});new ae("callStackItemType",void 0,{type:"string",description:m(ue,15,"Represents the item type of the focused element in the CALL STACK view. For example: 'session', 'thread', 'stackFrame'")});new ae("callStackSessionIsAttach",!1,{type:"boolean",description:m(ue,16,"True when the session in the CALL STACK view is attach, false otherwise. Used internally for inline menus in the CALL STACK view.")});new ae("callStackItemStopped",!1,{type:"boolean",description:m(ue,17,"True when the focused item in the CALL STACK is stopped. Used internaly for inline menus in the CALL STACK view.")});new ae("callStackSessionHasOneThread",!1,{type:"boolean",description:m(ue,18,"True when the focused session in the CALL STACK view has exactly one thread. Used internally for inline menus in the CALL STACK view.")});new ae("watchItemType",void 0,{type:"string",description:m(ue,19,"Represents the item type of the focused element in the WATCH view. For example: 'expression', 'variable'")});new ae("canViewMemory",void 0,{type:"boolean",description:m(ue,20,"Indicates whether the item in the view has an associated memory refrence.")});new ae("breakpointItemType",void 0,{type:"string",description:m(ue,21,"Represents the item type of the focused element in the BREAKPOINTS view. For example: 'breakpoint', 'exceptionBreakppint', 'functionBreakpoint', 'dataBreakpoint'")});new ae("breakpointItemBytes",void 0,{type:"boolean",description:m(ue,22,"Whether the breakpoint item is a data breakpoint on a byte range.")});new ae("breakpointHasModes",!1,{type:"boolean",description:m(ue,23,"Whether the breakpoint has multiple modes it can switch to.")});new ae("breakpointSupportsCondition",!1,{type:"boolean",description:m(ue,24,"True when the focused breakpoint supports conditions.")});new ae("loadedScriptsSupported",!1,{type:"boolean",description:m(ue,25,"True when the focused sessions supports the LOADED SCRIPTS view")});new ae("loadedScriptsItemType",void 0,{type:"string",description:m(ue,26,"Represents the item type of the focused element in the LOADED SCRIPTS view.")});new ae("focusedSessionIsAttach",!1,{type:"boolean",description:m(ue,27,"True when the focused session is 'attach'.")});new ae("focusedSessionIsNoDebug",!1,{type:"boolean",description:m(ue,28,"True when the focused session is run without debugging.")});new ae("stepBackSupported",!1,{type:"boolean",description:m(ue,29,"True when the focused session supports 'stepBack' requests.")});new ae("restartFrameSupported",!1,{type:"boolean",description:m(ue,30,"True when the focused session supports 'restartFrame' requests.")});new ae("stackFrameSupportsRestart",!1,{type:"boolean",description:m(ue,31,"True when the focused stack frame suppots 'restartFrame'.")});new ae("jumpToCursorSupported",!1,{type:"boolean",description:m(ue,32,"True when the focused session supports 'jumpToCursor' request.")});new ae("stepIntoTargetsSupported",!1,{type:"boolean",description:m(ue,33,"True when the focused session supports 'stepIntoTargets' request.")});new ae("breakpointsExist",!1,{type:"boolean",description:m(ue,34,"True when at least one breakpoint exists.")});new ae("debuggersAvailable",!1,{type:"boolean",description:m(ue,35,"True when there is at least one debug extensions active.")});new ae("debugExtensionAvailable",!0,{type:"boolean",description:m(ue,36,"True when there is at least one debug extension installed and enabled.")});new ae("debugProtocolVariableMenuContext",void 0,{type:"string",description:m(ue,37,"Represents the context the debug adapter sets on the focused variable in the VARIABLES view.")});new ae("debugSetVariableSupported",!1,{type:"boolean",description:m(ue,38,"True when the focused session supports 'setVariable' request.")});new ae("debugSetDataBreakpointAddressSupported",!1,{type:"boolean",description:m(ue,39,"True when the focused session supports 'getBreakpointInfo' request on an address.")});new ae("debugSetExpressionSupported",!1,{type:"boolean",description:m(ue,40,"True when the focused session supports 'setExpression' request.")});new ae("breakWhenValueChangesSupported",!1,{type:"boolean",description:m(ue,41,"True when the focused session supports to break when value changes.")});new ae("breakWhenValueIsAccessedSupported",!1,{type:"boolean",description:m(ue,42,"True when the focused breakpoint supports to break when value is accessed.")});new ae("breakWhenValueIsReadSupported",!1,{type:"boolean",description:m(ue,43,"True when the focused breakpoint supports to break when value is read.")});new ae("terminateDebuggeeSupported",!1,{type:"boolean",description:m(ue,44,"True when the focused session supports the terminate debuggee capability.")});new ae("suspendDebuggeeSupported",!1,{type:"boolean",description:m(ue,45,"True when the focused session supports the suspend debuggee capability.")});new ae("variableEvaluateNamePresent",!1,{type:"boolean",description:m(ue,46,"True when the focused variable has an 'evalauteName' field set.")});new ae("variableIsReadonly",!1,{type:"boolean",description:m(ue,47,"True when the focused variable is read-only.")});new ae("variableValue",!1,{type:"string",description:m(ue,48,"Value of the variable, present for debug visualization clauses.")});new ae("variableType",!1,{type:"string",description:m(ue,49,"Type of the variable, present for debug visualization clauses.")});new ae("variableInterfaces",!1,{type:"array",description:m(ue,50,"Any interfaces or contracts that the variable satisfies, present for debug visualization clauses.")});new ae("variableName",!1,{type:"string",description:m(ue,51,"Name of the variable, present for debug visualization clauses.")});new ae("variableLanguage",!1,{type:"string",description:m(ue,52,"Language of the variable source, present for debug visualization clauses.")});new ae("variableExtensionId",!1,{type:"string",description:m(ue,53,"Extension ID of the variable source, present for debug visualization clauses.")});new ae("exceptionWidgetVisible",!1,{type:"boolean",description:m(ue,54,"True when the exception widget is visible.")});new ae("multiSessionRepl",!1,{type:"boolean",description:m(ue,55,"True when there is more than 1 debug console.")});new ae("multiSessionDebug",!1,{type:"boolean",description:m(ue,56,"True when there is more than 1 active debug session.")});new ae("disassembleRequestSupported",!1,{type:"boolean",description:m(ue,57,"True when the focused sessions supports disassemble request.")});new ae("disassemblyViewFocus",!1,{type:"boolean",description:m(ue,58,"True when the Disassembly View is focused.")});new ae("languageSupportsDisassembleRequest",!1,{type:"boolean",description:m(ue,59,"True when the language in the current editor supports disassemble request.")});new ae("focusedStackFrameHasInstructionReference",!1,{type:"boolean",description:m(ue,60,"True when the focused stack frame has instruction pointer reference.")});m(ue,62,"Controls when the internal Debug Console should open.");var _1;(function(t){t[t.Initial=1]="Initial",t[t.Dynamic=2]="Dynamic"})(_1||(_1={}));var i0;(function(t){t.UnverifiedBreakpoints="unverifiedBreakpoints"})(i0||(i0={}));var s0;(function(t){t.deserialize=e=>({id:e.id,name:e.name,iconPath:e.iconPath&&{light:rt.revive(e.iconPath.light),dark:rt.revive(e.iconPath.dark)},iconClass:e.iconClass,visualization:e.visualization}),t.serialize=e=>e})(s0||(s0={}));function To(t,e){if(t===e)return!0;if(t==null||e===null||e===void 0||typeof t!=typeof e||typeof t!="object"||Array.isArray(t)!==Array.isArray(e))return!1;let n,r;if(Array.isArray(t)){if(t.length!==e.length)return!1;for(n=0;n<t.length;n++)if(!To(t[n],e[n]))return!1}else{const i=[];for(r in t)i.push(r);i.sort();const s=[];for(r in e)s.push(r);if(s.sort(),!To(i,s))return!1;for(n=0;n<i.length;n++)if(!To(t[i[n]],e[i[n]]))return!1}return!0}var S1;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(S1||(S1={}));var o0;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(o0||(o0={}));var a0;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(a0||(a0={}));var D1;(function(t){t[t.Desktop=1]="Desktop",t[t.Web=2]="Web"})(D1||(D1={}));var T1;(function(t){t[t.Information=1]="Information",t[t.Warning=2]="Warning"})(T1||(T1={}));function Vl(t,e,n=32){const r=n-e,i=~((1<<r)-1);return(t<<e|(i&t)>>>r)>>>0}function c0(t,e=0,n=t.byteLength,r=0){for(let i=0;i<n;i++)t[e+i]=r}function Dw(t,e,n="0"){for(;t.length<e;)t=n+t;return t}function Ys(t,e=32){return t instanceof ArrayBuffer?Array.from(new Uint8Array(t)).map(n=>n.toString(16).padStart(2,"0")).join(""):Dw((t>>>0).toString(16),e/4)}const Ec=class Ec{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const n=e.length;if(n===0)return;const r=this._buff;let i=this._buffLen,s=this._leftoverHighSurrogate,o,a;for(s!==0?(o=s,a=-1,s=0):(o=e.charCodeAt(0),a=0);;){let c=o;if(tp(o))if(a+1<n){const l=e.charCodeAt(a+1);Ya(l)?(a++,c=np(o,l)):c=65533}else{s=o;break}else Ya(o)&&(c=65533);if(i=this._push(r,i,c),a++,a<n)o=e.charCodeAt(a);else break}this._buffLen=i,this._leftoverHighSurrogate=s}_push(e,n,r){return r<128?e[n++]=r:r<2048?(e[n++]=192|(r&1984)>>>6,e[n++]=128|(r&63)>>>0):r<65536?(e[n++]=224|(r&61440)>>>12,e[n++]=128|(r&4032)>>>6,e[n++]=128|(r&63)>>>0):(e[n++]=240|(r&1835008)>>>18,e[n++]=128|(r&258048)>>>12,e[n++]=128|(r&4032)>>>6,e[n++]=128|(r&63)>>>0),n>=64&&(this._step(),n-=64,this._totalLen+=64,e[0]=e[64+0],e[1]=e[64+1],e[2]=e[64+2]),n}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Ys(this._h0)+Ys(this._h1)+Ys(this._h2)+Ys(this._h3)+Ys(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,c0(this._buff,this._buffLen),this._buffLen>56&&(this._step(),c0(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=Ec._bigBlock32,n=this._buffDV;for(let p=0;p<64;p+=4)e.setUint32(p,n.getUint32(p,!1),!1);for(let p=64;p<320;p+=4)e.setUint32(p,Vl(e.getUint32(p-12,!1)^e.getUint32(p-32,!1)^e.getUint32(p-56,!1)^e.getUint32(p-64,!1),1),!1);let r=this._h0,i=this._h1,s=this._h2,o=this._h3,a=this._h4,c,l,f;for(let p=0;p<80;p++)p<20?(c=i&s|~i&o,l=1518500249):p<40?(c=i^s^o,l=1859775393):p<60?(c=i&s|i&o|s&o,l=2400959708):(c=i^s^o,l=3395469782),f=Vl(r,5)+c+a+l+e.getUint32(p*4,!1)&4294967295,a=o,o=s,s=Vl(i,30),i=r,r=f;this._h0=this._h0+r&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+a&4294967295}};Ec._bigBlock32=new DataView(new ArrayBuffer(320));let l0=Ec;var ar;(function(t){t[t.Off=0]="Off",t[t.Trace=1]="Trace",t[t.Debug=2]="Debug",t[t.Info=3]="Info",t[t.Warning=4]="Warning",t[t.Error=5]="Error"})(ar||(ar={}));ar.Info;function Tw(t){switch(t){case ar.Trace:return"trace";case ar.Debug:return"debug";case ar.Info:return"info";case ar.Warning:return"warn";case ar.Error:return"error";case ar.Off:return"off"}}new ae("logLevel",Tw(ar.Info));var k1;(function(t){t[t.Complete=100]="Complete",t[t.Partial=50]="Partial",t[t.None=0]="None"})(k1||(k1={}));const u0={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},ay="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function kw(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of ay)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}kw();const Rw=new F4;Rw.unshift({maxLen:1e3,windowSize:15,timeBudget:150});const b="vs/editor/common/config/editorOptions",xw=8;class Ew{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Ke{constructor(e,n,r,i){this.id=e,this.name=n,this.defaultValue=r,this.schema=i}applyUpdate(e,n){return Bc(e,n)}compute(e,n,r){return r}}class Ma{constructor(e,n){this.newValue=e,this.didChange=n}}function Bc(t,e){if(typeof t!="object"||typeof e!="object"||!t||!e)return new Ma(e,t!==e);if(Array.isArray(t)||Array.isArray(e)){const r=Array.isArray(t)&&Array.isArray(e)&&zd(t,e);return new Ma(e,!r)}let n=!1;for(const r in e)if(e.hasOwnProperty(r)){const i=Bc(t[r],e[r]);i.didChange&&(t[r]=i.newValue,n=!0)}return new Ma(t,n)}class aa{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,n){return Bc(e,n)}validate(e){return this.defaultValue}}class Vs{constructor(e,n,r,i){this.id=e,this.name=n,this.defaultValue=r,this.schema=i}applyUpdate(e,n){return Bc(e,n)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,n,r){return r}}function Z(t,e){return typeof t>"u"?e:t==="false"?!1:!!t}class Se extends Vs{constructor(e,n,r,i=void 0){typeof i<"u"&&(i.type="boolean",i.default=r),super(e,n,r,i)}validate(e){return Z(e,this.defaultValue)}}function Pw(t,e,n,r){if(typeof t>"u")return e;let i=parseInt(t,10);return isNaN(i)?e:(i=Math.max(n,i),i=Math.min(r,i),i|0)}class je extends Vs{static clampedInt(e,n,r,i){return Pw(e,n,r,i)}constructor(e,n,r,i,s,o=void 0){typeof o<"u"&&(o.type="integer",o.default=r,o.minimum=i,o.maximum=s),super(e,n,r,o),this.minimum=i,this.maximum=s}validate(e){return je.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class ur extends Vs{static clamp(e,n,r){return e<n?n:e>r?r:e}static float(e,n){if(typeof e=="number")return e;if(typeof e>"u")return n;const r=parseFloat(e);return isNaN(r)?n:r}constructor(e,n,r,i,s){typeof s<"u"&&(s.type="number",s.default=r),super(e,n,r,s),this.validationFn=i}validate(e){return this.validationFn(ur.float(e,this.defaultValue))}}class on extends Vs{static string(e,n){return typeof e!="string"?n:e}constructor(e,n,r,i=void 0){typeof i<"u"&&(i.type="string",i.default=r),super(e,n,r,i)}validate(e){return on.string(e,this.defaultValue)}}function pt(t,e,n,r){return typeof t!="string"?e:r&&t in r?r[t]:n.indexOf(t)===-1?e:t}class tt extends Vs{constructor(e,n,r,i,s=void 0){typeof s<"u"&&(s.type="string",s.enum=i,s.default=r),super(e,n,r,s),this._allowedValues=i}validate(e){return pt(e,this.defaultValue,this._allowedValues)}}class ya extends Ke{constructor(e,n,r,i,s,o,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=i),super(e,n,r,a),this._allowedValues=s,this._convert=o}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function Iw(t){switch(t){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class Mw extends Ke{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[m(b,0,"Use platform APIs to detect when a Screen Reader is attached."),m(b,1,"Optimize for usage with a Screen Reader."),m(b,2,"Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:m(b,3,"Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,n,r){return r===0?e.accessibilitySupport:r}}class Ow extends Ke{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:m(b,4,"Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:m(b,5,"Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{insertSpace:Z(n.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Z(n.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function Aw(t){switch(t){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var yr;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(yr||(yr={}));function Fw(t){switch(t){case"line":return yr.Line;case"block":return yr.Block;case"underline":return yr.Underline;case"line-thin":return yr.LineThin;case"block-outline":return yr.BlockOutline;case"underline-thin":return yr.UnderlineThin}}class Lw extends aa{constructor(){super(142)}compute(e,n,r){const i=["monaco-editor"];return n.get(39)&&i.push(n.get(39)),e.extraEditorClassName&&i.push(e.extraEditorClassName),n.get(74)==="default"?i.push("mouse-default"):n.get(74)==="copy"&&i.push("mouse-copy"),n.get(111)&&i.push("showUnused"),n.get(140)&&i.push("showDeprecated"),i.join(" ")}}class Nw extends Se{constructor(){super(37,"emptySelectionClipboard",!0,{description:m(b,6,"Controls whether copying without a selection copies the current line.")})}compute(e,n,r){return r&&e.emptySelectionClipboard}}class $w extends Ke{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:m(b,7,"Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[m(b,8,"Never seed search string from the editor selection."),m(b,9,"Always seed search string from the editor selection, including word at cursor position."),m(b,10,"Only seed search string from the editor selection.")],description:m(b,11,"Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[m(b,12,"Never turn on Find in Selection automatically (default)."),m(b,13,"Always turn on Find in Selection automatically."),m(b,14,"Turn on Find in Selection automatically when multiple lines of content are selected.")],description:m(b,15,"Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:m(b,16,"Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Sr},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:m(b,17,"Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:m(b,18,"Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{cursorMoveOnType:Z(n.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":pt(n.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":pt(n.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Z(n.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Z(n.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Z(n.loop,this.defaultValue.loop)}}}const Ir=class Ir extends Ke{constructor(){super(51,"fontLigatures",Ir.OFF,{anyOf:[{type:"boolean",description:m(b,19,"Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:m(b,20,"Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:m(b,21,"Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?Ir.OFF:e==="true"?Ir.ON:e:e?Ir.ON:Ir.OFF}};Ir.OFF='"liga" off, "calt" off',Ir.ON='"liga" on, "calt" on';let R1=Ir;const Mr=class Mr extends Ke{constructor(){super(54,"fontVariations",Mr.OFF,{anyOf:[{type:"boolean",description:m(b,22,"Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:m(b,23,"Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:m(b,24,"Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?Mr.OFF:e==="true"?Mr.TRANSLATE:e:e?Mr.TRANSLATE:Mr.OFF}compute(e,n,r){return e.fontInfo.fontVariationSettings}};Mr.OFF="normal",Mr.TRANSLATE="translate";let x1=Mr;class qw extends aa{constructor(){super(50)}compute(e,n,r){return e.fontInfo}}class jw extends Vs{constructor(){super(52,"fontSize",Wr.fontSize,{type:"number",minimum:6,maximum:100,default:Wr.fontSize,description:m(b,25,"Controls the font size in pixels.")})}validate(e){const n=ur.float(e,this.defaultValue);return n===0?Wr.fontSize:ur.clamp(n,6,100)}compute(e,n,r){return e.fontInfo.fontSize}}const pr=class pr extends Ke{constructor(){super(53,"fontWeight",Wr.fontWeight,{anyOf:[{type:"number",minimum:pr.MINIMUM_VALUE,maximum:pr.MAXIMUM_VALUE,errorMessage:m(b,26,'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:pr.SUGGESTION_VALUES}],default:Wr.fontWeight,description:m(b,27,'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(je.clampedInt(e,Wr.fontWeight,pr.MINIMUM_VALUE,pr.MAXIMUM_VALUE))}};pr.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],pr.MINIMUM_VALUE=1,pr.MAXIMUM_VALUE=1e3;let E1=pr;class Hw extends Ke{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},n={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[m(b,28,"Show Peek view of the results (default)"),m(b,29,"Go to the primary result and show a Peek view"),m(b,30,"Go to the primary result and enable Peek-less navigation to others")]},r=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:m(b,31,"This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:m(b,32,"Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleTypeDefinitions":{description:m(b,33,"Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleDeclarations":{description:m(b,34,"Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleImplementations":{description:m(b,35,"Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleReferences":{description:m(b,36,"Controls the behavior the 'Go to References'-command when multiple target locations exist."),...n},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:r,description:m(b,37,"Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:r,description:m(b,38,"Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:r,description:m(b,39,"Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:r,description:m(b,40,"Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:r,description:m(b,41,"Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{multiple:pt(n.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:n.multipleDefinitions??pt(n.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:n.multipleTypeDefinitions??pt(n.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:n.multipleDeclarations??pt(n.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:n.multipleImplementations??pt(n.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:n.multipleReferences??pt(n.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:on.string(n.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:on.string(n.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:on.string(n.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:on.string(n.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:on.string(n.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class Ww extends Ke{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:m(b,42,"Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:m(b,43,"Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:m(b,44,"Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:m(b,45,"Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:m(b,46,"Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Z(n.enabled,this.defaultValue.enabled),delay:je.clampedInt(n.delay,this.defaultValue.delay,0,1e4),sticky:Z(n.sticky,this.defaultValue.sticky),hidingDelay:je.clampedInt(n.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:Z(n.above,this.defaultValue.above)}}}class ko extends aa{constructor(){super(145)}compute(e,n,r){return ko.computeLayout(n,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const n=e.height/e.lineHeight,r=Math.floor(e.paddingTop/e.lineHeight);let i=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(i=Math.max(i,n-1));const s=(r+e.viewLineCount+i)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:n,extraLinesBeforeFirstLine:r,extraLinesBeyondLastLine:i,desiredRatio:s,minimapLineCount:o}}static _computeMinimapLayout(e,n){const r=e.outerWidth,i=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*i),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:i};const o=n.stableMinimapLayoutInput,a=o&&e.outerHeight===o.outerHeight&&e.lineHeight===o.lineHeight&&e.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&e.pixelRatio===o.pixelRatio&&e.scrollBeyondLastLine===o.scrollBeyondLastLine&&e.paddingTop===o.paddingTop&&e.paddingBottom===o.paddingBottom&&e.minimap.enabled===o.minimap.enabled&&e.minimap.side===o.minimap.side&&e.minimap.size===o.minimap.size&&e.minimap.showSlider===o.minimap.showSlider&&e.minimap.renderCharacters===o.minimap.renderCharacters&&e.minimap.maxColumn===o.minimap.maxColumn&&e.minimap.scale===o.minimap.scale&&e.verticalScrollbarWidth===o.verticalScrollbarWidth&&e.isViewportWrapping===o.isViewportWrapping,c=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,f=e.scrollBeyondLastLine,p=e.minimap.renderCharacters;let g=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const _=e.minimap.maxColumn,C=e.minimap.size,k=e.minimap.side,M=e.verticalScrollbarWidth,H=e.viewLineCount,K=e.remainingWidth,j=e.isViewportWrapping,B=p?2:3;let z=Math.floor(s*i);const ne=z/s;let G=!1,Y=!1,re=B*g,Le=g/s,$=1;if(C==="fill"||C==="fit"){const{typicalViewportLineCount:Me,extraLinesBeforeFirstLine:we,extraLinesBeyondLastLine:lt,desiredRatio:He,minimapLineCount:Pe}=ko.computeContainedMinimapLineCount({viewLineCount:H,scrollBeyondLastLine:f,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:i,lineHeight:c,pixelRatio:s});if(H/Pe>1)G=!0,Y=!0,g=1,re=1,Le=g/s;else{let Fe=!1,ot=g+1;if(C==="fit"){const Qe=Math.ceil((we+H+lt)*re);j&&a&&K<=n.stableFitRemainingWidth?(Fe=!0,ot=n.stableFitMaxMinimapScale):Fe=Qe>z}if(C==="fill"||Fe){G=!0;const Qe=g;re=Math.min(c*s,Math.max(1,Math.floor(1/He))),j&&a&&K<=n.stableFitRemainingWidth&&(ot=n.stableFitMaxMinimapScale),g=Math.min(ot,Math.max(1,Math.floor(re/B))),g>Qe&&($=Math.min(2,g/Qe)),Le=g/s/$,z=Math.ceil(Math.max(Me,we+H+lt)*re),j?(n.stableMinimapLayoutInput=e,n.stableFitRemainingWidth=K,n.stableFitMaxMinimapScale=g):(n.stableMinimapLayoutInput=null,n.stableFitRemainingWidth=0)}}}const P=Math.floor(_*Le),v=Math.min(P,Math.max(0,Math.floor((K-M-2)*Le/(l+Le)))+xw);let R=Math.floor(s*v);const I=R/s;R=Math.floor(R*$);const E=p?1:2,V=k==="left"?0:r-v-M;return{renderMinimap:E,minimapLeft:V,minimapWidth:v,minimapHeightIsEditorHeight:G,minimapIsSampling:Y,minimapScale:g,minimapLineHeight:re,minimapCanvasInnerWidth:R,minimapCanvasInnerHeight:z,minimapCanvasOuterWidth:I,minimapCanvasOuterHeight:ne}}static computeLayout(e,n){const r=n.outerWidth|0,i=n.outerHeight|0,s=n.lineHeight|0,o=n.lineNumbersDigitCount|0,a=n.typicalHalfwidthCharacterWidth,c=n.maxDigitWidth,l=n.pixelRatio,f=n.viewLineCount,p=e.get(137),g=p==="inherit"?e.get(136):p,_=g==="inherit"?e.get(132):g,C=e.get(135),k=n.isDominatedByLongLines,M=e.get(57),H=e.get(68).renderType!==0,K=e.get(69),j=e.get(105),B=e.get(84),z=e.get(73),ne=e.get(103),G=ne.verticalScrollbarSize,Y=ne.verticalHasArrows,re=ne.arrowSize,Le=ne.horizontalScrollbarSize,$=e.get(43),P=e.get(110)!=="never";let v=e.get(66);$&&P&&(v+=16);let R=0;if(H){const Je=Math.max(o,K);R=Math.round(Je*c)}let I=0;M&&(I=s*n.glyphMarginDecorationLaneCount);let E=0,V=E+I,Me=V+R,we=Me+v;const lt=r-I-R-v;let He=!1,Pe=!1,st=-1;g==="inherit"&&k?(He=!0,Pe=!0):_==="on"||_==="bounded"?Pe=!0:_==="wordWrapColumn"&&(st=C);const Fe=ko._computeMinimapLayout({outerWidth:r,outerHeight:i,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:l,scrollBeyondLastLine:j,paddingTop:B.top,paddingBottom:B.bottom,minimap:z,verticalScrollbarWidth:G,viewLineCount:f,remainingWidth:lt,isViewportWrapping:Pe},n.memory||new Ew);Fe.renderMinimap!==0&&Fe.minimapLeft===0&&(E+=Fe.minimapWidth,V+=Fe.minimapWidth,Me+=Fe.minimapWidth,we+=Fe.minimapWidth);const ot=lt-Fe.minimapWidth,Qe=Math.max(1,Math.floor((ot-G-2)/a)),Ft=Y?re:0;return Pe&&(st=Math.max(1,Qe),_==="bounded"&&(st=Math.min(st,C))),{width:r,height:i,glyphMarginLeft:E,glyphMarginWidth:I,glyphMarginDecorationLaneCount:n.glyphMarginDecorationLaneCount,lineNumbersLeft:V,lineNumbersWidth:R,decorationsLeft:Me,decorationsWidth:v,contentLeft:we,contentWidth:ot,minimap:Fe,viewportColumn:Qe,isWordWrapMinified:He,isViewportWrapping:Pe,wrappingColumn:st,verticalScrollbarWidth:G,horizontalScrollbarHeight:Le,overviewRuler:{top:Ft,width:G,height:i-2*Ft,right:0}}}}class Uw extends Ke{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[m(b,47,"Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),m(b,48,"Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:m(b,49,"Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return pt(e,"simple",["simple","advanced"])}compute(e,n,r){return n.get(2)===2?"advanced":r}}var Pr;(function(t){t.Off="off",t.OnCode="onCode",t.On="on"})(Pr||(Pr={}));class zw extends Ke{constructor(){const e={enabled:Pr.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[Pr.Off,Pr.OnCode,Pr.On],default:e.enabled,enumDescriptions:[m(b,50,"Disable the code action menu."),m(b,51,"Show the code action menu when the cursor is on lines with code."),m(b,52,"Show the code action menu when the cursor is on lines with code or on empty lines.")],description:m(b,53,"Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:pt(e.enabled,this.defaultValue.enabled,[Pr.Off,Pr.OnCode,Pr.On])}}}class Bw extends Ke{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:m(b,54,"Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:m(b,55,"Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:m(b,56,"Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:m(b,57,"Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Z(n.enabled,this.defaultValue.enabled),maxLineCount:je.clampedInt(n.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:pt(n.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:Z(n.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class Vw extends Ke{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:m(b,58,"Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[m(b,59,"Inlay hints are enabled"),m(b,60,"Inlay hints are showing by default and hide when holding {0}",Sr?"Ctrl+Option":"Ctrl+Alt"),m(b,61,"Inlay hints are hidden by default and show when holding {0}",Sr?"Ctrl+Option":"Ctrl+Alt"),m(b,62,"Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:m(b,63,"Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:m(b,64,"Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:m(b,65,"Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return typeof n.enabled=="boolean"&&(n.enabled=n.enabled?"on":"off"),{enabled:pt(n.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:je.clampedInt(n.fontSize,this.defaultValue.fontSize,0,100),fontFamily:on.string(n.fontFamily,this.defaultValue.fontFamily),padding:Z(n.padding,this.defaultValue.padding)}}}class Kw extends Ke{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):je.clampedInt(e,this.defaultValue,0,1e3)}compute(e,n,r){return r<0?je.clampedInt(-r*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):r}}class Gw extends ur{constructor(){super(67,"lineHeight",Wr.lineHeight,e=>ur.clamp(e,0,150),{markdownDescription:m(b,66,`Controls the line height.
|
|
62
96
|
- Use 0 to automatically compute the line height from the font size.
|
|
63
97
|
- 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 Lb 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 Nb(t){return t==="ctrlCmd"?bi?"metaKey":"ctrlKey":"altKey"}class $b 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 qb 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 Hb extends Vo{constructor(){super(143)}compute(e,n,i){return e.pixelRatio}}class jb 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 Wb 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 Ub 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 zb extends Ue{constructor(){super(92,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function mp(t,e){if(typeof t!="string")return e;switch(t){case"hidden":return 2;case"visible":return 3;default:return 1}}class Bb 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:mp(n.vertical,this.defaultValue.vertical),horizontal:mp(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 Vb 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 Kb 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 Gb 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 Qb extends Ue{constructor(){const e={enabled:pp.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:pp.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 Jb 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 Yb 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 Xb 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 Zb 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 e7 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 t7 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 n7 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 i7 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 r7="Consolas, 'Courier New', monospace",s7="Menlo, Monaco, 'Courier New', monospace",o7="'Droid Sans Mono', 'monospace', monospace",Li={fontFamily:bi?s7:Da?o7:r7,fontWeight:"normal",fontSize:bi?12:14,lineHeight:0,letterSpacing:0},a7=[];function R(t){return a7[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 vb),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"],bb,{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 Qb),R(new Jb),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 wb),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"],Cb,{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"],_b,{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 Db),R(new n7),R(new Fb),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 xb),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 kb),R(new eh),R(new Tb),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 Rb),R(new he(59,"hideCursorInOverviewRuler",!1,{description:f(y,283,"Controls whether the cursor should be hidden in the overview ruler.")})),R(new Eb),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 Ib),R(new Ob),R(new Ab),R(new Wb),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 Lb),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"],Nb,{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 $b),R(new i7),R(new qb),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 jb),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 zb),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 Ub),R(new Bb),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 Mb),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 Xb),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 Yb),R(new Kb),R(new Gb),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 Vb),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 Zb),R(new Kt(131,"wordSeparators",s2,{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 Sb),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 Hb),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 t7),R(new e7),R(new Pb);let c7=class{constructor(e){this.value=e,this.isTrustedTelemetryValue=!0}},ih;function l7(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 u7={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:cb,CallHierarchyIncomingCall:S5,CallHierarchyItem:_5,CallHierarchyOutgoingCall:D5,CancellationError:O0,CancellationTokenSource:E4,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:n2,DebugAdapterExecutable:Kd,DebugAdapterInlineImplementation:Jd,DebugAdapterNamedPipeServer:Qd,DebugAdapterServer:Gd,DebugConfigurationProviderTriggerKind:Qf,DebugConsoleMode:ff,DebugVisualization:L5,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:np,FileDecoration2:np,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:M5,SemanticTokensEdit:O5,SemanticTokensEdits:A5,SemanticTokensLegend:I5,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:x5,TerminalQuickFixTerminalCommand:T5,TerminalQuickFixOpener:k5,TerminalLocation:Id,TerminalProfile:R5,TerminalExitReason:Pd,TextDocumentSaveReason:_d,TextEdit:Ea,SnippetTextEdit:e2,TextEditorCursorStyle:pi,TextEditorLineNumbersStyle:Cd,TextEditorRevealType:Sd,TextEditorSelectionChangeKind:Co,SyntaxTokenType:_o,TextDocumentChangeReason:Dd,ThemeColor:Wd,ThemeIcon:ji,TreeItem:$d,TreeItemCheckboxState:Do,TreeItemCollapsibleState:fs,TypeHierarchyItem:Y5,UIKind:Yf,Uri:st,ViewColumn:vd,WorkspaceEdit:Ku,DocumentDropEdit:jd,DocumentPasteEdit:E5,InlayHint:fd,InlayHintLabelPart:dd,InlayHintKind:ud,RemoteAuthorityResolverError:C5,ResolvedAuthority:v5,ManagedResolvedAuthority:w5,SourceControlInputBoxValidationType:Ed,ExtensionRuntime:Ef,TimelineItem:Tf,NotebookRange:to,NotebookCellKind:Cf,NotebookCellExecutionState:_f,NotebookCellData:N5,NotebookData:$5,NotebookRendererScript:W5,NotebookCellStatusBarAlignment:Sf,NotebookEditorRevealType:Df,NotebookCellOutput:H5,NotebookCellOutputItem:q5,NotebookCellStatusBarItem:j5,NotebookControllerAffinity:xf,NotebookControllerAffinity2:kf,NotebookEdit:Pa,NotebookKernelSourceAction:U5,PortAttributes:B5,LinkedEditingRanges:z5,TestResultState:If,TestRunRequest:Mf,TestMessage:ja,TestMessage2:ja,TestTag:Of,TestRunProfileKind:Ff,TextSearchCompleteMessageType:Xf,DataTransfer:Hd,DataTransferItem:qd,FileCoverage:K5,StatementCoverage:G5,BranchCoverage:Q5,FunctionCoverage:J5,WorkspaceTrustState:Lf,LanguageStatusSeverity:rd,QuickPickItemKind:gf,InputBoxValidationSeverity:pf,TabInputText:X5,TabInputTextDiff:Z5,TabInputTextMerge:eb,TabInputCustom:tb,TabInputNotebook:ib,TabInputNotebookDiff:rb,TabInputWebview:nb,TabInputTerminal:sb,TabInputInteractiveWindow:ob,TabInputChat:ab,TelemetryTrustedValue:c7,LogLevel:ii,EditSessionIdentityMatch:Zf,InteractiveSessionVoteDirection:$f,ChatCopyKind:qf,InteractiveEditorResponseFeedbackKind:jf,RelatedInformationType:Uf,SpeechToTextStatus:zf,KeywordRecognitionStatus:Bf},{version:d7,tasks:f7,notebooks:h7,scm:g7,comments:p7,authentication:m7,tests:y7,extensions:b7,debug:v7,env:w7,commands:C7,window:_7,workspace:S7,languages:D7,l10n:x7,interactive:k7,ai:T7,chat:R7,speech:E7,Breakpoint:P7,TerminalOutputAnchor:I7,ChatResultFeedbackKind:F7,ChatVariableLevel:M7,ChatCompletionItem:O7,CallHierarchyIncomingCall:A7,CallHierarchyItem:L7,CallHierarchyOutgoingCall:N7,CancellationError:$7,CancellationTokenSource:q7,CandidatePortSource:H7,CodeAction:j7,CodeActionKind:W7,CodeActionTriggerKind:U7,CodeLens:z7,Color:B7,ColorInformation:V7,ColorPresentation:K7,ColorThemeKind:G7,CommentMode:Q7,CommentState:J7,CommentThreadCollapsibleState:Y7,CommentThreadState:X7,CompletionItem:Z7,CompletionItemKind:ev,CompletionItemTag:tv,CompletionList:nv,CompletionTriggerKind:iv,ConfigurationTarget:rv,CustomExecution:sv,DebugAdapterExecutable:ov,DebugAdapterInlineImplementation:av,DebugAdapterNamedPipeServer:cv,DebugAdapterServer:lv,DebugConfigurationProviderTriggerKind:uv,DebugConsoleMode:dv,DebugVisualization:fv,DecorationRangeBehavior:hv,Diagnostic:gv,DiagnosticRelatedInformation:pv,DiagnosticSeverity:mv,DiagnosticTag:yv,Disposable:bv,DocumentHighlight:vv,DocumentHighlightKind:wv,MultiDocumentHighlight:Cv,DocumentLink:_v,DocumentSymbol:Sv,EndOfLine:Dv,EnvironmentVariableMutatorType:xv,EvaluatableExpression:kv,InlineValueText:Tv,InlineValueVariableLookup:Rv,InlineValueEvaluatableExpression:Ev,InlineCompletionTriggerKind:Pv,EventEmitter:Iv,ExtensionKind:Fv,ExtensionMode:Mv,ExternalUriOpenerPriority:Ov,FileChangeType:Av,FileDecoration:Lv,FileDecoration2:Nv,FileSystemError:$v,FileType:qv,FilePermission:Hv,FoldingRange:jv,FoldingRangeKind:Wv,FunctionBreakpoint:Uv,InlineCompletionItem:zv,InlineCompletionList:Bv,Hover:Vv,IndentAction:Kv,Location:Gv,MarkdownString:Qv,OverviewRulerLane:Jv,ParameterInformation:Yv,PortAutoForwardAction:Xv,Position:Zv,ProcessExecution:e9,ProgressLocation:t9,QuickInputButtons:n9,Range:i9,RelativePattern:r9,Selection:s9,SelectionRange:o9,SemanticTokens:a9,SemanticTokensBuilder:c9,SemanticTokensEdit:l9,SemanticTokensEdits:u9,SemanticTokensLegend:d9,ShellExecution:f9,ShellQuoting:h9,SignatureHelp:g9,SignatureHelpTriggerKind:p9,SignatureInformation:m9,SnippetString:y9,SourceBreakpoint:b9,StandardTokenType:v9,StatusBarAlignment:w9,SymbolInformation:C9,SymbolKind:_9,SymbolTag:S9,Task:D9,TaskGroup:x9,TaskPanelKind:k9,TaskRevealKind:T9,TaskScope:R9,TerminalLink:E9,TerminalQuickFixTerminalCommand:P9,TerminalQuickFixOpener:I9,TerminalLocation:F9,TerminalProfile:M9,TerminalExitReason:O9,TextDocumentSaveReason:A9,TextEdit:L9,SnippetTextEdit:N9,TextEditorCursorStyle:$9,TextEditorLineNumbersStyle:q9,TextEditorRevealType:H9,TextEditorSelectionChangeKind:j9,SyntaxTokenType:W9,TextDocumentChangeReason:U9,ThemeColor:z9,ThemeIcon:B9,TreeItem:V9,TreeItemCheckboxState:K9,TreeItemCollapsibleState:G9,TypeHierarchyItem:Q9,UIKind:J9,Uri:Y9,ViewColumn:X9,WorkspaceEdit:Z9,DocumentDropEdit:ew,DocumentPasteEdit:tw,InlayHint:nw,InlayHintLabelPart:iw,InlayHintKind:rw,RemoteAuthorityResolverError:sw,ResolvedAuthority:ow,ManagedResolvedAuthority:aw,SourceControlInputBoxValidationType:cw,ExtensionRuntime:lw,TimelineItem:uw,NotebookRange:dw,NotebookCellKind:fw,NotebookCellExecutionState:hw,NotebookCellData:gw,NotebookData:pw,NotebookRendererScript:mw,NotebookCellStatusBarAlignment:yw,NotebookEditorRevealType:bw,NotebookCellOutput:vw,NotebookCellOutputItem:ww,NotebookCellStatusBarItem:Cw,NotebookControllerAffinity:_w,NotebookControllerAffinity2:Sw,NotebookEdit:Dw,NotebookKernelSourceAction:xw,PortAttributes:kw,LinkedEditingRanges:Tw,TestResultState:Rw,TestRunRequest:Ew,TestMessage:Pw,TestMessage2:Iw,TestTag:Fw,TestRunProfileKind:Mw,TextSearchCompleteMessageType:Ow,DataTransfer:Aw,DataTransferItem:Lw,FileCoverage:Nw,StatementCoverage:$w,BranchCoverage:qw,FunctionCoverage:Hw,WorkspaceTrustState:jw,LanguageStatusSeverity:Ww,QuickPickItemKind:Uw,InputBoxValidationSeverity:zw,TabInputText:Bw,TabInputTextDiff:Vw,TabInputTextMerge:Kw,TabInputCustom:Gw,TabInputNotebook:Qw,TabInputNotebookDiff:Jw,TabInputWebview:Yw,TabInputTerminal:Xw,TabInputInteractiveWindow:Zw,TabInputChat:e8,TelemetryTrustedValue:t8,LogLevel:n8,EditSessionIdentityMatch:i8,InteractiveSessionVoteDirection:r8,ChatCopyKind:s8,InteractiveEditorResponseFeedbackKind:o8,RelatedInformationType:a8,SpeechToTextStatus:c8,KeywordRecognitionStatus:l8}=u7,u8=Object.freeze(Object.defineProperty({__proto__:null,BranchCoverage:qw,Breakpoint:P7,CallHierarchyIncomingCall:A7,CallHierarchyItem:L7,CallHierarchyOutgoingCall:N7,CancellationError:$7,CancellationTokenSource:q7,CandidatePortSource:H7,ChatCompletionItem:O7,ChatCopyKind:s8,ChatResultFeedbackKind:F7,ChatVariableLevel:M7,CodeAction:j7,CodeActionKind:W7,CodeActionTriggerKind:U7,CodeLens:z7,Color:B7,ColorInformation:V7,ColorPresentation:K7,ColorThemeKind:G7,CommentMode:Q7,CommentState:J7,CommentThreadCollapsibleState:Y7,CommentThreadState:X7,CompletionItem:Z7,CompletionItemKind:ev,CompletionItemTag:tv,CompletionList:nv,CompletionTriggerKind:iv,ConfigurationTarget:rv,CustomExecution:sv,DataTransfer:Aw,DataTransferItem:Lw,DebugAdapterExecutable:ov,DebugAdapterInlineImplementation:av,DebugAdapterNamedPipeServer:cv,DebugAdapterServer:lv,DebugConfigurationProviderTriggerKind:uv,DebugConsoleMode:dv,DebugVisualization:fv,DecorationRangeBehavior:hv,Diagnostic:gv,DiagnosticRelatedInformation:pv,DiagnosticSeverity:mv,DiagnosticTag:yv,Disposable:bv,DocumentDropEdit:ew,DocumentHighlight:vv,DocumentHighlightKind:wv,DocumentLink:_v,DocumentPasteEdit:tw,DocumentSymbol:Sv,EditSessionIdentityMatch:i8,EndOfLine:Dv,EnvironmentVariableMutatorType:xv,EvaluatableExpression:kv,EventEmitter:Iv,ExtensionKind:Fv,ExtensionMode:Mv,ExtensionRuntime:lw,ExternalUriOpenerPriority:Ov,FileChangeType:Av,FileCoverage:Nw,FileDecoration:Lv,FileDecoration2:Nv,FilePermission:Hv,FileSystemError:$v,FileType:qv,FoldingRange:jv,FoldingRangeKind:Wv,FunctionBreakpoint:Uv,FunctionCoverage:Hw,Hover:Vv,IndentAction:Kv,InlayHint:nw,InlayHintKind:rw,InlayHintLabelPart:iw,InlineCompletionItem:zv,InlineCompletionList:Bv,InlineCompletionTriggerKind:Pv,InlineValueEvaluatableExpression:Ev,InlineValueText:Tv,InlineValueVariableLookup:Rv,InputBoxValidationSeverity:zw,InteractiveEditorResponseFeedbackKind:o8,InteractiveSessionVoteDirection:r8,KeywordRecognitionStatus:l8,LanguageStatusSeverity:Ww,LinkedEditingRanges:Tw,Location:Gv,LogLevel:n8,ManagedResolvedAuthority:aw,MarkdownString:Qv,MultiDocumentHighlight:Cv,NotebookCellData:gw,NotebookCellExecutionState:hw,NotebookCellKind:fw,NotebookCellOutput:vw,NotebookCellOutputItem:ww,NotebookCellStatusBarAlignment:yw,NotebookCellStatusBarItem:Cw,NotebookControllerAffinity:_w,NotebookControllerAffinity2:Sw,NotebookData:pw,NotebookEdit:Dw,NotebookEditorRevealType:bw,NotebookKernelSourceAction:xw,NotebookRange:dw,NotebookRendererScript:mw,OverviewRulerLane:Jv,ParameterInformation:Yv,PortAttributes:kw,PortAutoForwardAction:Xv,Position:Zv,ProcessExecution:e9,ProgressLocation:t9,QuickInputButtons:n9,QuickPickItemKind:Uw,Range:i9,RelatedInformationType:a8,RelativePattern:r9,RemoteAuthorityResolverError:sw,ResolvedAuthority:ow,Selection:s9,SelectionRange:o9,SemanticTokens:a9,SemanticTokensBuilder:c9,SemanticTokensEdit:l9,SemanticTokensEdits:u9,SemanticTokensLegend:d9,ShellExecution:f9,ShellQuoting:h9,SignatureHelp:g9,SignatureHelpTriggerKind:p9,SignatureInformation:m9,SnippetString:y9,SnippetTextEdit:N9,SourceBreakpoint:b9,SourceControlInputBoxValidationType:cw,SpeechToTextStatus:c8,StandardTokenType:v9,StatementCoverage:$w,StatusBarAlignment:w9,SymbolInformation:C9,SymbolKind:_9,SymbolTag:S9,SyntaxTokenType:W9,TabInputChat:e8,TabInputCustom:Gw,TabInputInteractiveWindow:Zw,TabInputNotebook:Qw,TabInputNotebookDiff:Jw,TabInputTerminal:Xw,TabInputText:Bw,TabInputTextDiff:Vw,TabInputTextMerge:Kw,TabInputWebview:Yw,Task:D9,TaskGroup:x9,TaskPanelKind:k9,TaskRevealKind:T9,TaskScope:R9,TelemetryTrustedValue:t8,TerminalExitReason:O9,TerminalLink:E9,TerminalLocation:F9,TerminalOutputAnchor:I7,TerminalProfile:M9,TerminalQuickFixOpener:I9,TerminalQuickFixTerminalCommand:P9,TestMessage:Pw,TestMessage2:Iw,TestResultState:Rw,TestRunProfileKind:Mw,TestRunRequest:Ew,TestTag:Fw,TextDocumentChangeReason:U9,TextDocumentSaveReason:A9,TextEdit:L9,TextEditorCursorStyle:$9,TextEditorLineNumbersStyle:q9,TextEditorRevealType:H9,TextEditorSelectionChangeKind:j9,TextSearchCompleteMessageType:Ow,ThemeColor:z9,ThemeIcon:B9,TimelineItem:uw,TreeItem:V9,TreeItemCheckboxState:K9,TreeItemCollapsibleState:G9,TypeHierarchyItem:Q9,UIKind:J9,Uri:Y9,ViewColumn:X9,WorkspaceEdit:Z9,WorkspaceTrustState:jw,ai:T7,authentication:m7,chat:R7,commands:C7,comments:p7,debug:v7,env:w7,extensions:b7,interactive:k7,l10n:x7,languages:D7,notebooks:h7,scm:g7,setDefaultApi:l7,speech:E7,tasks:f7,tests:y7,version:d7,window:_7,workspace:S7},Symbol.toStringTag,{value:"Module"})),ye=I0(u8);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 d8(t){return t===!0||t===!1}Ve.boolean=d8;function o2(t){return typeof t=="string"||t instanceof String}Ve.string=o2;function f8(t){return typeof t=="number"||t instanceof Number}Ve.number=f8;function h8(t){return t instanceof Error}Ve.error=h8;function a2(t){return typeof t=="function"}Ve.func=a2;function c2(t){return Array.isArray(t)}Ve.array=c2;function g8(t){return c2(t)&&t.every(e=>o2(e))}Ve.stringArray=g8;function p8(t,e){return Array.isArray(t)&&t.every(e)}Ve.typedArray=p8;function l2(t){return t&&a2(t.then)}Ve.thenable=l2;function m8(t){return t instanceof Promise?t:l2(t)?new Promise((e,n)=>{t.then(i=>e(i),i=>n(i))}):Promise.resolve(t)}Ve.asPromise=m8;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 u2(){return new Ee}$e.v4=u2;const y8=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function d2(t){return y8.test(t)}$e.isUUID=d2;function b8(t){if(!d2(t))throw new Error("invalid uuid");return new A1(t)}$e.parse=b8;function v8(){return u2().asHex()}$e.generateUuid=v8;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,yp=$e;class w8 extends Or.CancellationError{constructor(e){super(),this.data=e}}ge.LSPCancellationError=w8;function C8(t,e){return t[e]===void 0&&(t[e]={}),t[e]}ge.ensure=C8;var bp;(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})(bp||(ge.StaticFeature=bp={}));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))&&fn.func(i.register)&&fn.func(i.unregister)&&i.registrationType!==void 0}t.is=e})(vp||(ge.DynamicFeature=vp={}));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 _8 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=_8;class S8 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:yp.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[yp.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=S8;class D8{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=D8;var Ni={};const x8=typeof process=="object"&&process&&process.platform==="win32";var k8=x8?{sep:"\\"}:{sep:"/"},T8=f2;function f2(t,e,n){t instanceof RegExp&&(t=wp(t,n)),e instanceof RegExp&&(e=wp(e,n));var i=h2(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 wp(t,e){var n=e.match(t);return n?n[0]:null}f2.range=h2;function h2(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 g2=T8,R8=I8,p2="\0SLASH"+Math.random()+"\0",m2="\0OPEN"+Math.random()+"\0",N1="\0CLOSE"+Math.random()+"\0",y2="\0COMMA"+Math.random()+"\0",b2="\0PERIOD"+Math.random()+"\0";function Ml(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function E8(t){return t.split("\\\\").join(p2).split("\\{").join(m2).split("\\}").join(N1).split("\\,").join(y2).split("\\.").join(b2)}function P8(t){return t.split(p2).join("\\").split(m2).join("{").split(N1).join("}").split(y2).join(",").split(b2).join(".")}function v2(t){if(!t)return[""];var e=[],n=g2("{","}",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=v2(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function I8(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),no(E8(t),!0).map(P8)):[]}function F8(t){return"{"+t+"}"}function M8(t){return/^-?0\d/.test(t)}function O8(t,e){return t<=e}function A8(t,e){return t>=e}function no(t,e){var n=[],i=g2("{","}",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=v2(i.body),p.length===1&&(p=no(p[0],!1).map(F8),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=O8,A=x<v;A&&(q*=-1,z=A8);var W=p.some(M8);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=k8;Pn.sep=rh.sep;const ei=Symbol("globstar **");Pn.GLOBSTAR=ei;const L8=R8,Cp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},sh="[^/]",Ol=sh+"*?",N8="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",$8="(?:(?!(?:\\/|^)\\.).)*?",w2=t=>t.split("").reduce((e,n)=>(e[n]=!0,e),{}),_p=w2("().*{}+?[]^$\\!"),q8=w2("[.("),Sp=/\/+/;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)=>C2(t,e);const C2=(t,e={})=>(Wa(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:L8(t)),H8=1024*64,Wa=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>H8)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 j8=t=>t.replace(/\\(.)/g,"$1"),W8=t=>t.replace(/\\([^-\]])/g,"$1"),U8=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),z8=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(Sp)),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,
|
|
66
|
-
>>> no match, partial?`,e,
|
|
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=q8[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 j8(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?N8:$8,r=n.nocase?"i":"";let s=e.map(o=>(o=o.map(a=>typeof a=="string"?U8(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(Sp),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 B8=Cc,Le=ye,vt=de,V8=$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 K8{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 G8{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 K8,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,V8.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 Q8{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 J8{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 B8.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 G8(e,n,i),this.backgroundScheduler=new Q8(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 Y8 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 J8(this._client,this.tabs,e);return[n.disposable,n]}}Ni.DiagnosticFeature=Y8;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 X8{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=X8;let Z8=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=Z8;let $1=!1;function e6(){$1=!0}Wt.setTestMode=e6;function t6(){$1=!1}Wt.clearTestMode=t6;const Dp=15;class q1{constructor(e=Dp){this.yieldAfter=$1===!0?Math.max(e,2):Math.max(e,Dp),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 n6(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=n6;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);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=i6;async function r6(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=r6;var Dc={};Object.defineProperty(Dc,"__esModule",{value:!0});const s6=ye;class o6 extends s6.CompletionItem{constructor(e){super(e)}}Dc.default=o6;var xc={};Object.defineProperty(xc,"__esModule",{value:!0});const a6=ye;class c6 extends a6.CodeLens{constructor(e){super(e)}}xc.default=c6;var kc={};Object.defineProperty(kc,"__esModule",{value:!0});const l6=ye;class u6 extends l6.DocumentLink{constructor(e,n){super(e,n)}}kc.default=u6;var Tc={};Object.defineProperty(Tc,"__esModule",{value:!0});const d6=ye;class f6 extends d6.CodeAction{constructor(e,n){super(e),this.data=n}}Tc.default=f6;var Hr={};Object.defineProperty(Hr,"__esModule",{value:!0});Hr.ProtocolDiagnostic=Hr.DiagnosticCode=void 0;const h6=ye,Ll=Ve;var xp;(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})(xp||(Hr.DiagnosticCode=xp={}));class g6 extends h6.Diagnostic{constructor(e,n,i,r){super(e,n,i),this.data=r,this.hasDiagnosticCode=!1}}Hr.ProtocolDiagnostic=g6;var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0});const p6=ye;class m6 extends p6.CallHierarchyItem{constructor(e,n,i,r,s,o,a){super(e,n,i,r,s,o),a!==void 0&&(this.data=a)}}Rc.default=m6;var Ec={};Object.defineProperty(Ec,"__esModule",{value:!0});const y6=ye;class b6 extends y6.TypeHierarchyItem{constructor(e,n,i,r,s,o,a){super(e,n,i,r,s,o),a!==void 0&&(this.data=a)}}Ec.default=b6;var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0});const ia=ye;let v6=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=v6;var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0});const w6=ye;class C6 extends w6.InlayHint{constructor(e,n,i){super(e,n,i)}}Ic.default=C6;Object.defineProperty(Sc,"__esModule",{value:!0});Sc.createConverter=void 0;const kt=ye,be=de,gr=Ve,kp=Wt,_6=Dc,S6=xc,D6=kc,Tp=Tc,Rp=Hr,x6=Rc,k6=Ec,T6=Pc,R6=Ic;var ah;(function(t){function e(n){const i=n;return i&&!!i.inserting&&!!i.replacing}t.is=e})(ah||(ah={}));function E6(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 kp.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 Rp.ProtocolDiagnostic?m:void 0;te!==void 0&&te.data!==void 0&&(E.data=te.data);const we=Ut(m.code);return Rp.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:kp.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 _6.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 Tp.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 Tp.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 S6.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 D6.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 x6.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 k6.default&&m.data!==void 0&&(E.data=m.data),E}function zt(m){const E=m instanceof T6.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 R6.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=E6;var Fc={};Object.defineProperty(Fc,"__esModule",{value:!0});Fc.createConverter=void 0;const X=ye,me=de,Hn=Ve,We=Wt,P6=Dc,I6=xc,F6=kc,M6=Tc,Ep=Hr,O6=Rc,A6=Ec,L6=Pc,N6=Ic,Pp=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 $6(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(Pp.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 Pp.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 Ep.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(Ep.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 P6.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[K2,J1]=B(d.kind);Ge.kind=K2,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 L6.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 M6.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 I6.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 F6.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 N6.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 O6.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 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 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=$6;var Go={};Object.defineProperty(Go,"__esModule",{value:!0});Go.ProgressPart=void 0;const Ip=ye,Fp=de,Mp=Ve;class q6{constructor(e,n,i){this._client=e,this._token=n,this._reported=0,this._infinite=!1,this._lspProgressDisposable=this._client.onProgress(Fp.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&&Ip.window.withProgress({location:Ip.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(Fp.WorkDoneProgressCancelNotification.type,{token:this._token})}),this.report(e),new Promise((r,s)=>{this._resolve=r,this._reject=s})})}report(e){if(this._infinite&&Mp.string(e.message))this._progress!==void 0&&this._progress.report({message:e.message});else if(Mp.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=q6;var Mc={};Object.defineProperty(Mc,"__esModule",{value:!0});Mc.NotebookDocumentSyncFeature=void 0;const rn=ye,H6=Cc,Oi=de,j6=$e,Op=Ve;function Ap(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&&Op.number(g.executionSummary.executionOrder)&&Op.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 H6.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=Ap(Ap(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??j6.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,W6=Ve,U6=$e,Lp=ge;class z6{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=z6;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 B6{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,Lp.ensure)((0,Lp.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:U6.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(W6.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=B6;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 V6 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=V6;class K6 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=K6;class G6 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=G6;class Q6 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=Q6;class J6 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=J6;class Y6 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=Y6;var Oc={};Object.defineProperty(Oc,"__esModule",{value:!0});Oc.CompletionItemFeature=void 0;const X6=ye,Ae=de,Nl=ge,Z6=$e,eC=[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 tC 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:eC},n.completionList={itemDefaults:["commitCharacters","editRange","insertTextFormat","insertTextMode","data"]}}initialize(e,n){const i=this.getRegistrationOptions(n,e.completionProvider);i&&this.register({id:Z6.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[X6.languages.registerCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(s),o,...i),o]}}Oc.CompletionItemFeature=tC;var Ac={};Object.defineProperty(Ac,"__esModule",{value:!0});Ac.HoverFeature=void 0;const nC=ye,Hs=de,$l=ge,iC=$e;class rC 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:iC.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 nC.languages.registerHoverProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Ac.HoverFeature=rC;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});Lc.DefinitionFeature=void 0;const sC=ye,ql=de,Hl=ge,oC=$e;class aC 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:oC.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 sC.languages.registerDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Lc.DefinitionFeature=aC;var Nc={};Object.defineProperty(Nc,"__esModule",{value:!0});Nc.SignatureHelpFeature=void 0;const Np=ye,js=de,jl=ge,cC=$e;class lC 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:cC.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 Np.languages.registerSignatureHelpProvider(i,n,...r)}else{const r={triggerCharacters:e.triggerCharacters||[],retriggerCharacters:e.retriggerCharacters||[]};return Np.languages.registerSignatureHelpProvider(i,n,r)}}}Nc.SignatureHelpFeature=lC;var $c={};Object.defineProperty($c,"__esModule",{value:!0});$c.DocumentHighlightFeature=void 0;const uC=ye,Wl=de,Ul=ge,dC=$e;class fC 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:dC.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[uC.languages.registerDocumentHighlightProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}$c.DocumentHighlightFeature=fC;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 hC=ye,Ws=de,zl=ge,$p=H1,gC=$e;class pC 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:$p.SupportedSymbolKinds},n.tagSupport={valueSet:$p.SupportedSymbolTags},n.resolveSupport={properties:["location.range"]}}initialize(e){e.workspaceSymbolProvider&&this.register({id:gC.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[hC.languages.registerWorkspaceSymbolProvider(n),n]}}qc.WorkspaceSymbolFeature=pC;var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});Hc.ReferencesFeature=void 0;const mC=ye,Bl=de,Vl=ge,yC=$e;class bC 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:yC.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 mC.languages.registerReferenceProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Hc.ReferencesFeature=bC;var jc={};Object.defineProperty(jc,"__esModule",{value:!0});jc.CodeActionFeature=void 0;const vC=ye,xn=de,wC=$e,Kl=ge;class CC 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:wC.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[vC.languages.registerCodeActionsProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i,e.codeActionKinds?{providedCodeActionKinds:this._client.protocol2CodeConverter.asCodeActionKinds(e.codeActionKinds)}:void 0),i]}}jc.CodeActionFeature=CC;var Wc={};Object.defineProperty(Wc,"__esModule",{value:!0});Wc.CodeLensFeature=void 0;const qp=ye,Gr=de,_C=$e,Us=ge;class SC 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:_C.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i=new qp.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[qp.languages.registerCodeLensProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),{provider:r,onDidChangeCodeLensEmitter:i}]}}Wc.CodeLensFeature=SC;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 DC 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=DC;class xC 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=xC;class kC 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=kC;var zc={};Object.defineProperty(zc,"__esModule",{value:!0});zc.RenameFeature=void 0;const TC=ye,pr=de,RC=$e,Hp=Ve,Gl=ge;class EC 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&&(Hp.boolean(e.renameProvider)&&(i.prepareProvider=!1),this.register({id:RC.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 TC.languages.registerRenameProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}isDefaultBehavior(e){const n=e;return n&&Hp.boolean(n.defaultBehavior)}}zc.RenameFeature=EC;var Bc={};Object.defineProperty(Bc,"__esModule",{value:!0});Bc.DocumentLinkFeature=void 0;const PC=ye,zs=de,Ql=ge,IC=$e;class FC 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:IC.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[PC.languages.registerDocumentLinkProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}Bc.DocumentLinkFeature=FC;var Vc={};Object.defineProperty(Vc,"__esModule",{value:!0});Vc.ExecuteCommandFeature=void 0;const MC=ye,Jl=de,OC=$e,jp=ge;class AC{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,jp.ensure)((0,jp.ensure)(e,"workspace"),"executeCommand").dynamicRegistration=!0}initialize(e){e.executeCommandProvider&&this.register({id:OC.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(MC.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=AC;var Kc={};Object.defineProperty(Kc,"__esModule",{value:!0});Kc.FileSystemWatcherFeature=void 0;const LC=ye,mr=de,sa=ge;class NC{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=LC.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=NC;var Gc={};Object.defineProperty(Gc,"__esModule",{value:!0});Gc.ColorProviderFeature=void 0;const $C=ye,Bs=de,Yl=ge;class qC 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[$C.languages.registerColorProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}Gc.ColorProviderFeature=qC;var Qc={};Object.defineProperty(Qc,"__esModule",{value:!0});Qc.ImplementationFeature=void 0;const HC=ye,Xl=de,Zl=ge;class jC 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 HC.languages.registerImplementationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Qc.ImplementationFeature=jC;var Jc={};Object.defineProperty(Jc,"__esModule",{value:!0});Jc.TypeDefinitionFeature=void 0;const WC=ye,eu=de,Vs=ge;class UC 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 WC.languages.registerTypeDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Jc.TypeDefinitionFeature=UC;var ys={};Object.defineProperty(ys,"__esModule",{value:!0});ys.WorkspaceFoldersFeature=ys.arrayDiff=void 0;const zC=$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 BC{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=zC.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=BC;var Yc={};Object.defineProperty(Yc,"__esModule",{value:!0});Yc.FoldingRangeFeature=void 0;const Wp=ye,yr=de,Gs=ge;class VC 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 Wp.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[Wp.languages.registerFoldingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),{provider:r,onDidChangeFoldingRange:i}]}}Yc.FoldingRangeFeature=VC;var Xc={};Object.defineProperty(Xc,"__esModule",{value:!0});Xc.DeclarationFeature=void 0;const KC=ye,nu=de,iu=ge;class GC 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 KC.languages.registerDeclarationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Xc.DeclarationFeature=GC;var Zc={};Object.defineProperty(Zc,"__esModule",{value:!0});Zc.SelectionRangeFeature=void 0;const QC=ye,ru=de,su=ge;class JC 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 QC.languages.registerSelectionRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Zc.SelectionRangeFeature=JC;var el={};Object.defineProperty(el,"__esModule",{value:!0});el.ProgressFeature=void 0;const Up=de,YC=Go;function XC(t,e){return t[e]===void 0&&(t[e]=Object.create(null)),t[e]}class ZC{constructor(e){this._client=e,this.activeParts=new Set}getState(){return{kind:"window",id:Up.WorkDoneProgressCreateRequest.method,registrations:this.activeParts.size>0}}fillClientCapabilities(e){XC(e,"window").workDoneProgress=!0}initialize(){const e=this._client,n=r=>{this.activeParts.delete(r)},i=r=>{this.activeParts.add(new YC.ProgressPart(this._client,r.token,n))};e.onRequest(Up.WorkDoneProgressCreateRequest.type,i)}clear(){for(const e of this.activeParts)e.done();this.activeParts.clear()}}el.ProgressFeature=ZC;var tl={};Object.defineProperty(tl,"__esModule",{value:!0});tl.CallHierarchyFeature=void 0;const e3=ye,Cr=de,ou=ge;class t3{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 n3 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 t3(n);return[e3.languages.registerCallHierarchyProvider(this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector),i),i]}}tl.CallHierarchyFeature=n3;var nl={};Object.defineProperty(nl,"__esModule",{value:!0});nl.SemanticTokensFeature=void 0;const aa=ye,ve=de,Qs=ge,i3=Ve;class r3 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=i3.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=r3;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,s3=Cc,qi=de,o3=$e;function zp(t,e){return t[e]===void 0&&(t[e]={}),t[e]}function a3(t,e){return t[e]}function Bp(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=zp(zp(e,"workspace"),"fileOperations");Bp(n,"dynamicRegistration",!0),Bp(n,this._clientCapability,!0)}initialize(e){var r;const n=(r=e.workspace)==null?void 0:r.fileOperations,i=n!==void 0?a3(n,this._serverCapability):void 0;if((i==null?void 0:i.filters)!==void 0)try{this.register({id:o3.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 s3.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 _2 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 S2 extends _2{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 c3 extends _2{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=c3;class l3 extends S2{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=l3;class u3 extends S2{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=u3;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 d3 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=d3;class f3 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=f3;class h3 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=h3;var il={};Object.defineProperty(il,"__esModule",{value:!0});il.LinkedEditingFeature=void 0;const g3=ye,au=de,cu=ge;class p3 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 g3.languages.registerLinkedEditingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}il.LinkedEditingFeature=p3;var rl={};Object.defineProperty(rl,"__esModule",{value:!0});rl.TypeHierarchyFeature=void 0;const m3=ye,_r=de,lu=ge;class y3{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 b3 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 y3(n);return[m3.languages.registerTypeHierarchyProvider(n.protocol2CodeConverter.asDocumentSelector(e.documentSelector),i),i]}}rl.TypeHierarchyFeature=b3;var sl={};Object.defineProperty(sl,"__esModule",{value:!0});sl.InlineValueFeature=void 0;const Vp=ye,ca=de,Js=ge;class v3 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 Vp.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 Vp.languages.registerInlineValuesProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}sl.InlineValueFeature=v3;var ol={};Object.defineProperty(ol,"__esModule",{value:!0});ol.InlayHintsFeature=void 0;const Kp=ye,Qr=de,Ys=ge;class w3 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 Kp.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 Kp.languages.registerInlayHintsProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}ol.InlayHintsFeature=w3;var al={};Object.defineProperty(al,"__esModule",{value:!0});al.InlineCompletionItemFeature=void 0;const C3=ye,uu=de,du=ge,_3=$e;class S3 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:_3.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[C3.languages.registerInlineCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}al.InlineCompletionItemFeature=S3;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,D3=Sc,x3=Fc,ti=Ve,la=Wt,Gp=$e,k3=Go,Xn=ge,T3=Ni,Qp=Mc,Jp=er,Jr=bn,R3=Oc,E3=Ac,P3=Lc,I3=Nc,F3=$c,M3=H1,O3=qc,A3=Hc,L3=jc,N3=Wc,fu=tr,$3=zc,q3=Bc,H3=Vc,j3=Kc,W3=Gc,U3=Qc,z3=Jc,B3=ys,V3=Yc,K3=Xc,G3=Zc,Q3=el,J3=tl,Y3=nl,Yr=vn,X3=il,Z3=rl,e_=sl,t_=ol,n_=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 Yp;(function(t){t.off="off",t.on="on"})(Yp||(jt.SuspendMode=Yp={}));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 i_{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 Xp;(function(t){function e(n){return n&&K.MessageReader.is(n.reader)&&K.MessageWriter.is(n.writer)}t.is=e})(Xp||(jt.MessageTransports=Xp={}));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=D3.createConverter(i.uriConverters?i.uriConverters.code2Protocol:void 0),this._p2c=x3.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 i_(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}
|
|
98
|
+
- Values greater than or equal to 8 will be used as effective values.`)})}compute(e,n,r){return e.fontInfo.lineHeight}}class Qw extends Ke{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:m(b,67,"Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:m(b,68,"Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[m(b,69,"The minimap has the same size as the editor contents (and might scroll)."),m(b,70,"The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),m(b,71,"The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:m(b,72,"Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:m(b,73,"Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:m(b,74,"Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:m(b,75,"Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:m(b,76,"Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:m(b,77,"Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:m(b,78,"Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:m(b,79,"Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:m(b,80,"Controls the font size of section headers in the minimap.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Z(n.enabled,this.defaultValue.enabled),autohide:Z(n.autohide,this.defaultValue.autohide),size:pt(n.size,this.defaultValue.size,["proportional","fill","fit"]),side:pt(n.side,this.defaultValue.side,["right","left"]),showSlider:pt(n.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:Z(n.renderCharacters,this.defaultValue.renderCharacters),scale:je.clampedInt(n.scale,1,1,3),maxColumn:je.clampedInt(n.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:Z(n.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:Z(n.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:ur.clamp(n.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32)}}}function Jw(t){return t==="ctrlCmd"?Sr?"metaKey":"ctrlKey":"altKey"}class Yw extends Ke{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:m(b,81,"Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:m(b,82,"Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{top:je.clampedInt(n.top,0,0,1e3),bottom:je.clampedInt(n.bottom,0,0,1e3)}}}class Xw extends Ke{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:m(b,83,"Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:m(b,84,"Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Z(n.enabled,this.defaultValue.enabled),cycle:Z(n.cycle,this.defaultValue.cycle)}}}class Zw extends aa{constructor(){super(143)}compute(e,n,r){return e.pixelRatio}}class e7 extends Ke{constructor(){const e={other:"on",comments:"off",strings:"off"},n=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[m(b,85,"Quick suggestions show inside the suggest widget"),m(b,86,"Quick suggestions show as ghost text"),m(b,87,"Quick suggestions are disabled")]}];super(89,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:n,default:e.strings,description:m(b,88,"Enable quick suggestions inside strings.")},comments:{anyOf:n,default:e.comments,description:m(b,89,"Enable quick suggestions inside comments.")},other:{anyOf:n,default:e.other,description:m(b,90,"Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:m(b,91,"Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const l=e?"on":"off";return{comments:l,strings:l,other:l}}if(!e||typeof e!="object")return this.defaultValue;const{other:n,comments:r,strings:i}=e,s=["on","inline","off"];let o,a,c;return typeof n=="boolean"?o=n?"on":"off":o=pt(n,this.defaultValue.other,s),typeof r=="boolean"?a=r?"on":"off":a=pt(r,this.defaultValue.comments,s),typeof i=="boolean"?c=i?"on":"off":c=pt(i,this.defaultValue.strings,s),{other:o,comments:a,strings:c}}}class t7 extends Ke{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[m(b,92,"Line numbers are not rendered."),m(b,93,"Line numbers are rendered as absolute number."),m(b,94,"Line numbers are rendered as distance in lines to cursor position."),m(b,95,"Line numbers are rendered every 10 lines.")],default:"on",description:m(b,96,"Controls the display of line numbers.")})}validate(e){let n=this.defaultValue.renderType,r=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(n=4,r=e):e==="interval"?n=3:e==="relative"?n=2:e==="on"?n=1:n=0),{renderType:n,renderFn:r}}}class n7 extends Ke{constructor(){const e=[],n={type:"number",description:m(b,97,"Number of monospace characters at which this editor ruler will render.")};super(102,"rulers",e,{type:"array",items:{anyOf:[n,{type:["object"],properties:{column:n,color:{type:"string",description:m(b,98,"Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:m(b,99,"Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const n=[];for(const r of e)if(typeof r=="number")n.push({column:je.clampedInt(r,0,0,1e4),color:null});else if(r&&typeof r=="object"){const i=r;n.push({column:je.clampedInt(i.column,0,0,1e4),color:i.color})}return n.sort((r,i)=>r.column-i.column),n}return this.defaultValue}}class r7 extends Ke{constructor(){super(92,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function d0(t,e){if(typeof t!="string")return e;switch(t){case"hidden":return 2;case"visible":return 3;default:return 1}}class i7 extends Ke{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(103,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[m(b,100,"The vertical scrollbar will be visible only when necessary."),m(b,101,"The vertical scrollbar will always be visible."),m(b,102,"The vertical scrollbar will always be hidden.")],default:"auto",description:m(b,103,"Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[m(b,104,"The horizontal scrollbar will be visible only when necessary."),m(b,105,"The horizontal scrollbar will always be visible."),m(b,106,"The horizontal scrollbar will always be hidden.")],default:"auto",description:m(b,107,"Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:m(b,108,"The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:m(b,109,"The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:m(b,110,"Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:m(b,111,"When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e,r=je.clampedInt(n.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),i=je.clampedInt(n.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:je.clampedInt(n.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:d0(n.vertical,this.defaultValue.vertical),horizontal:d0(n.horizontal,this.defaultValue.horizontal),useShadows:Z(n.useShadows,this.defaultValue.useShadows),verticalHasArrows:Z(n.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:Z(n.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:Z(n.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:Z(n.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:r,horizontalSliderSize:je.clampedInt(n.horizontalSliderSize,r,0,1e3),verticalScrollbarSize:i,verticalSliderSize:je.clampedInt(n.verticalSliderSize,i,0,1e3),scrollByPage:Z(n.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:Z(n.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}const tr="inUntrustedWorkspace",Ci={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class s7 extends Ke{constructor(){const e={nonBasicASCII:tr,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:tr,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",e,{[Ci.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,tr],default:e.nonBasicASCII,description:m(b,112,"Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[Ci.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:m(b,113,"Controls whether characters that just reserve space or have no width at all are highlighted.")},[Ci.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:m(b,114,"Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[Ci.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,tr],default:e.includeComments,description:m(b,115,"Controls whether characters in comments should also be subject to Unicode highlighting.")},[Ci.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,tr],default:e.includeStrings,description:m(b,116,"Controls whether characters in strings should also be subject to Unicode highlighting.")},[Ci.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:m(b,117,"Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[Ci.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:m(b,118,"Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,n){let r=!1;n.allowedCharacters&&e&&(To(e.allowedCharacters,n.allowedCharacters)||(e={...e,allowedCharacters:n.allowedCharacters},r=!0)),n.allowedLocales&&e&&(To(e.allowedLocales,n.allowedLocales)||(e={...e,allowedLocales:n.allowedLocales},r=!0));const i=super.applyUpdate(e,n);return r?new Ma(i.newValue,!0):i}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{nonBasicASCII:Ts(n.nonBasicASCII,tr,[!0,!1,tr]),invisibleCharacters:Z(n.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:Z(n.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:Ts(n.includeComments,tr,[!0,!1,tr]),includeStrings:Ts(n.includeStrings,tr,[!0,!1,tr]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,n){if(typeof e!="object"||!e)return n;const r={};for(const[i,s]of Object.entries(e))s===!0&&(r[i]=!0);return r}}class o7 extends Ke{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:m(b,119,"Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[m(b,120,"Show the inline suggestion toolbar whenever an inline suggestion is shown."),m(b,121,"Show the inline suggestion toolbar when hovering over an inline suggestion."),m(b,122,"Never show the inline suggestion toolbar.")],description:m(b,123,"Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:m(b,124,"Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:m(b,125,"Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Z(n.enabled,this.defaultValue.enabled),mode:pt(n.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:pt(n.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:Z(n.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:Z(n.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:on.string(n.fontFamily,this.defaultValue.fontFamily)}}}class a7 extends Ke{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:m(b,126,"Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[m(b,127,"Show the inline edit toolbar whenever an inline suggestion is shown."),m(b,128,"Show the inline edit toolbar when hovering over an inline suggestion."),m(b,129,"Never show the inline edit toolbar.")],description:m(b,130,"Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:m(b,131,"Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:m(b,132,"Controls whether to color the background of inline edits.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Z(n.enabled,this.defaultValue.enabled),showToolbar:pt(n.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:on.string(n.fontFamily,this.defaultValue.fontFamily),keepOnBlur:Z(n.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:Z(n.backgroundColoring,this.defaultValue.backgroundColoring)}}}class c7 extends Ke{constructor(){const e={enabled:u0.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:u0.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:m(b,133,"Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:m(b,134,"Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Z(n.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:Z(n.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class l7 extends Ke{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[m(b,135,"Enables bracket pair guides."),m(b,136,"Enables bracket pair guides only for the active bracket pair."),m(b,137,"Disables bracket pair guides.")],default:e.bracketPairs,description:m(b,138,"Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[m(b,139,"Enables horizontal guides as addition to vertical bracket pair guides."),m(b,140,"Enables horizontal guides only for the active bracket pair."),m(b,141,"Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:m(b,142,"Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:m(b,143,"Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:m(b,144,"Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[m(b,145,"Highlights the active indent guide."),m(b,146,"Highlights the active indent guide even if bracket guides are highlighted."),m(b,147,"Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:m(b,148,"Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{bracketPairs:Ts(n.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:Ts(n.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:Z(n.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:Z(n.indentation,this.defaultValue.indentation),highlightActiveIndentation:Ts(n.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function Ts(t,e,n){const r=n.indexOf(t);return r===-1?e:n[r]}class u7 extends Ke{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(118,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[m(b,149,"Insert suggestion without overwriting text right of the cursor."),m(b,150,"Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:m(b,151,"Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:m(b,152,"Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:m(b,153,"Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:m(b,154,"Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[m(b,155,"Always select a suggestion when automatically triggering IntelliSense."),m(b,156,"Never select a suggestion when automatically triggering IntelliSense."),m(b,157,"Select a suggestion only when triggering IntelliSense from a trigger character."),m(b,158,"Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:m(b,159,"Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:m(b,160,"Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:m(b,161,"Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:m(b,162,"Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:m(b,163,"Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:m(b,164,"Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:m(b,165,"This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:m(b,166,"This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:m(b,167,"When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:m(b,168,"When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:m(b,169,"When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:m(b,170,"When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:m(b,171,"When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:m(b,172,"When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:m(b,173,"When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:m(b,174,"When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:m(b,175,"When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:m(b,176,"When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:m(b,177,"When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:m(b,178,"When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:m(b,179,"When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:m(b,180,"When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:m(b,181,"When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:m(b,182,"When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:m(b,183,"When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:m(b,184,"When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:m(b,185,"When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:m(b,186,"When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:m(b,187,"When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:m(b,188,"When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:m(b,189,"When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:m(b,190,"When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:m(b,191,"When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:m(b,192,"When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:m(b,193,"When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:m(b,194,"When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:m(b,195,"When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:m(b,196,"When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{insertMode:pt(n.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:Z(n.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:Z(n.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:Z(n.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:Z(n.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:pt(n.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:Z(n.showIcons,this.defaultValue.showIcons),showStatusBar:Z(n.showStatusBar,this.defaultValue.showStatusBar),preview:Z(n.preview,this.defaultValue.preview),previewMode:pt(n.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:Z(n.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:Z(n.showMethods,this.defaultValue.showMethods),showFunctions:Z(n.showFunctions,this.defaultValue.showFunctions),showConstructors:Z(n.showConstructors,this.defaultValue.showConstructors),showDeprecated:Z(n.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:Z(n.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:Z(n.showFields,this.defaultValue.showFields),showVariables:Z(n.showVariables,this.defaultValue.showVariables),showClasses:Z(n.showClasses,this.defaultValue.showClasses),showStructs:Z(n.showStructs,this.defaultValue.showStructs),showInterfaces:Z(n.showInterfaces,this.defaultValue.showInterfaces),showModules:Z(n.showModules,this.defaultValue.showModules),showProperties:Z(n.showProperties,this.defaultValue.showProperties),showEvents:Z(n.showEvents,this.defaultValue.showEvents),showOperators:Z(n.showOperators,this.defaultValue.showOperators),showUnits:Z(n.showUnits,this.defaultValue.showUnits),showValues:Z(n.showValues,this.defaultValue.showValues),showConstants:Z(n.showConstants,this.defaultValue.showConstants),showEnums:Z(n.showEnums,this.defaultValue.showEnums),showEnumMembers:Z(n.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:Z(n.showKeywords,this.defaultValue.showKeywords),showWords:Z(n.showWords,this.defaultValue.showWords),showColors:Z(n.showColors,this.defaultValue.showColors),showFiles:Z(n.showFiles,this.defaultValue.showFiles),showReferences:Z(n.showReferences,this.defaultValue.showReferences),showFolders:Z(n.showFolders,this.defaultValue.showFolders),showTypeParameters:Z(n.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:Z(n.showSnippets,this.defaultValue.showSnippets),showUsers:Z(n.showUsers,this.defaultValue.showUsers),showIssues:Z(n.showIssues,this.defaultValue.showIssues)}}}class d7 extends Ke{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:m(b,197,"Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:m(b,198,"Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:Z(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:Z(e.selectSubwords,this.defaultValue.selectSubwords)}}}class f7 extends Ke{constructor(){const e=[];super(130,"wordSegmenterLocales",e,{anyOf:[{description:m(b,199,"Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:m(b,199,"Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if(typeof e=="string"&&(e=[e]),Array.isArray(e)){const n=[];for(const r of e)if(typeof r=="string")try{Intl.Segmenter.supportedLocalesOf(r).length>0&&n.push(r)}catch{}return n}return this.defaultValue}}class h7 extends Ke{constructor(){super(138,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[m(b,200,"No indentation. Wrapped lines begin at column 1."),m(b,201,"Wrapped lines get the same indentation as the parent."),m(b,202,"Wrapped lines get +1 indentation toward the parent."),m(b,203,"Wrapped lines get +2 indentation toward the parent.")],description:m(b,204,"Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,n,r){return n.get(2)===2?0:r}}class p7 extends aa{constructor(){super(146)}compute(e,n,r){const i=n.get(145);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:i.isWordWrapMinified,isViewportWrapping:i.isViewportWrapping,wrappingColumn:i.wrappingColumn}}}class g7 extends Ke{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:m(b,205,"Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:m(b,206,"Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[m(b,207,"Show the drop selector widget after a file is dropped into the editor."),m(b,208,"Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Z(n.enabled,this.defaultValue.enabled),showDropSelector:pt(n.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class m7 extends Ke{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:m(b,209,"Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:m(b,210,"Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[m(b,211,"Show the paste selector widget after content is pasted into the editor."),m(b,212,"Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Z(n.enabled,this.defaultValue.enabled),showPasteSelector:pt(n.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const y7="Consolas, 'Courier New', monospace",b7="Menlo, Monaco, 'Courier New', monospace",v7="'Droid Sans Mono', 'monospace', monospace",Wr={fontFamily:Sr?b7:Za?v7:y7,fontWeight:"normal",fontSize:Sr?12:14,lineHeight:0,letterSpacing:0},w7=[];function F(t){return w7[t.id]=t,t}F(new Se(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:m(b,213,"Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),F(new tt(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",m(b,214,"Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:m(b,215,"Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),F(new Mw),F(new je(3,"accessibilityPageSize",10,1,1073741824,{description:m(b,216,"Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),F(new on(4,"ariaLabel",m(b,217,"Editor content"))),F(new Se(5,"ariaRequired",!1,void 0)),F(new Se(8,"screenReaderAnnounceInlineSuggestion",!0,{description:m(b,218,"Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),F(new tt(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m(b,219,"Use language configurations to determine when to autoclose brackets."),m(b,220,"Autoclose brackets only when the cursor is to the left of whitespace."),""],description:m(b,221,"Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),F(new tt(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m(b,222,"Use language configurations to determine when to autoclose comments."),m(b,223,"Autoclose comments only when the cursor is to the left of whitespace."),""],description:m(b,224,"Controls whether the editor should automatically close comments after the user adds an opening comment.")})),F(new tt(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",m(b,225,"Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:m(b,226,"Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),F(new tt(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",m(b,227,"Type over closing quotes or brackets only if they were automatically inserted."),""],description:m(b,228,"Controls whether the editor should type over closing quotes or brackets.")})),F(new tt(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m(b,229,"Use language configurations to determine when to autoclose quotes."),m(b,230,"Autoclose quotes only when the cursor is to the left of whitespace."),""],description:m(b,231,"Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),F(new ya(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],Iw,{enumDescriptions:[m(b,232,"The editor will not insert indentation automatically."),m(b,233,"The editor will keep the current line's indentation."),m(b,234,"The editor will keep the current line's indentation and honor language defined brackets."),m(b,235,"The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),m(b,236,"The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:m(b,237,"Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),F(new Se(13,"automaticLayout",!1)),F(new tt(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[m(b,238,"Use language configurations to determine when to automatically surround selections."),m(b,239,"Surround with quotes but not brackets."),m(b,240,"Surround with brackets but not quotes."),""],description:m(b,241,"Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),F(new c7),F(new l7),F(new Se(116,"stickyTabStops",!1,{description:m(b,242,"Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),F(new Se(17,"codeLens",!0,{description:m(b,243,"Controls whether the editor shows CodeLens.")})),F(new on(18,"codeLensFontFamily","",{description:m(b,244,"Controls the font family for CodeLens.")})),F(new je(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:m(b,245,"Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),F(new Se(20,"colorDecorators",!0,{description:m(b,246,"Controls whether the editor should render the inline color decorators and color picker.")})),F(new tt(148,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[m(b,247,"Make the color picker appear both on click and hover of the color decorator"),m(b,248,"Make the color picker appear on hover of the color decorator"),m(b,249,"Make the color picker appear on click of the color decorator")],description:m(b,250,"Controls the condition to make a color picker appear from a color decorator")})),F(new je(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:m(b,251,"Controls the max number of color decorators that can be rendered in an editor at once.")})),F(new Se(22,"columnSelection",!1,{description:m(b,252,"Enable that the selection with the mouse and keys is doing column selection.")})),F(new Ow),F(new Se(24,"contextmenu",!0)),F(new Se(25,"copyWithSyntaxHighlighting",!0,{description:m(b,253,"Controls whether syntax highlighting should be copied into the clipboard.")})),F(new ya(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],Aw,{description:m(b,254,"Control the cursor animation style.")})),F(new tt(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[m(b,255,"Smooth caret animation is disabled."),m(b,256,"Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),m(b,257,"Smooth caret animation is always enabled.")],description:m(b,258,"Controls whether the smooth caret animation should be enabled.")})),F(new ya(28,"cursorStyle",yr.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],Fw,{description:m(b,259,"Controls the cursor style.")})),F(new je(29,"cursorSurroundingLines",0,0,1073741824,{description:m(b,260,"Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),F(new tt(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[m(b,261,"`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),m(b,262,"`cursorSurroundingLines` is enforced always.")],markdownDescription:m(b,263,"Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),F(new je(31,"cursorWidth",0,0,1073741824,{markdownDescription:m(b,264,"Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),F(new Se(32,"disableLayerHinting",!1)),F(new Se(33,"disableMonospaceOptimizations",!1)),F(new Se(34,"domReadOnly",!1)),F(new Se(35,"dragAndDrop",!0,{description:m(b,265,"Controls whether the editor should allow moving selections via drag and drop.")})),F(new Nw),F(new g7),F(new Bw),F(new tt(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[m(b,266,"Use a new rendering method with svgs."),m(b,267,"Use a new rendering method with font characters."),m(b,268,"Use the stable rendering method.")],description:m(b,269,"Controls whether whitespace is rendered with a new, experimental method.")})),F(new on(39,"extraEditorClassName","")),F(new ur(40,"fastScrollSensitivity",5,t=>t<=0?5:t,{markdownDescription:m(b,270,"Scrolling speed multiplier when pressing `Alt`.")})),F(new $w),F(new Se(42,"fixedOverflowWidgets",!1)),F(new Se(43,"folding",!0,{description:m(b,271,"Controls whether the editor has code folding enabled.")})),F(new tt(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[m(b,272,"Use a language-specific folding strategy if available, else the indentation-based one."),m(b,273,"Use the indentation-based folding strategy.")],description:m(b,274,"Controls the strategy for computing folding ranges.")})),F(new Se(45,"foldingHighlight",!0,{description:m(b,275,"Controls whether the editor should highlight folded ranges.")})),F(new Se(46,"foldingImportsByDefault",!1,{description:m(b,276,"Controls whether the editor automatically collapses import ranges.")})),F(new je(47,"foldingMaximumRegions",5e3,10,65e3,{description:m(b,277,"The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),F(new Se(48,"unfoldOnClickAfterEndOfLine",!1,{description:m(b,278,"Controls whether clicking on the empty content after a folded line will unfold the line.")})),F(new on(49,"fontFamily",Wr.fontFamily,{description:m(b,279,"Controls the font family.")})),F(new qw),F(new R1),F(new jw),F(new E1),F(new x1),F(new Se(55,"formatOnPaste",!1,{description:m(b,280,"Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),F(new Se(56,"formatOnType",!1,{description:m(b,281,"Controls whether the editor should automatically format the line after typing.")})),F(new Se(57,"glyphMargin",!0,{description:m(b,282,"Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),F(new Hw),F(new Se(59,"hideCursorInOverviewRuler",!1,{description:m(b,283,"Controls whether the cursor should be hidden in the overview ruler.")})),F(new Ww),F(new Se(61,"inDiffEditor",!1)),F(new ur(64,"letterSpacing",Wr.letterSpacing,t=>ur.clamp(t,-5,20),{description:m(b,284,"Controls the letter spacing in pixels.")})),F(new zw),F(new Kw),F(new Gw),F(new t7),F(new je(69,"lineNumbersMinChars",5,1,300)),F(new Se(70,"linkedEditing",!1,{description:m(b,285,"Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),F(new Se(71,"links",!0,{description:m(b,286,"Controls whether the editor should detect links and make them clickable.")})),F(new tt(72,"matchBrackets","always",["always","near","never"],{description:m(b,287,"Highlight matching brackets.")})),F(new Qw),F(new tt(74,"mouseStyle","text",["text","default","copy"])),F(new ur(75,"mouseWheelScrollSensitivity",1,t=>t===0?1:t,{markdownDescription:m(b,288,"A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),F(new Se(76,"mouseWheelZoom",!1,{markdownDescription:Sr?m(b,289,"Zoom the font of the editor when using mouse wheel and holding `Cmd`."):m(b,290,"Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),F(new Se(77,"multiCursorMergeOverlapping",!0,{description:m(b,291,"Merge multiple cursors when they are overlapping.")})),F(new ya(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],Jw,{markdownEnumDescriptions:[m(b,292,"Maps to `Control` on Windows and Linux and to `Command` on macOS."),m(b,293,"Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:m(b,294,"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),F(new tt(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[m(b,295,"Each cursor pastes a single line of the text."),m(b,296,"Each cursor pastes the full text.")],markdownDescription:m(b,297,"Controls pasting when the line count of the pasted text matches the cursor count.")})),F(new je(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:m(b,298,"Controls the max number of cursors that can be in an active editor at once.")})),F(new tt(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[m(b,299,"Does not highlight occurrences."),m(b,300,"Highlights occurrences only in the current file."),m(b,301,"Experimental: Highlights occurrences across all valid open files.")],markdownDescription:m(b,302,"Controls whether occurrences should be highlighted across open files.")})),F(new Se(82,"overviewRulerBorder",!0,{description:m(b,303,"Controls whether a border should be drawn around the overview ruler.")})),F(new je(83,"overviewRulerLanes",3,0,3)),F(new Yw),F(new m7),F(new Xw),F(new tt(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[m(b,304,"Focus the tree when opening peek"),m(b,305,"Focus the editor when opening peek")],description:m(b,306,"Controls whether to focus the inline editor or the tree in the peek widget.")})),F(new Se(88,"definitionLinkOpensInPeek",!1,{description:m(b,307,"Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),F(new e7),F(new je(90,"quickSuggestionsDelay",10,0,1073741824,{description:m(b,308,"Controls the delay in milliseconds after which quick suggestions will show up.")})),F(new Se(91,"readOnly",!1)),F(new r7),F(new Se(93,"renameOnType",!1,{description:m(b,309,"Controls whether the editor auto renames on type."),markdownDeprecationMessage:m(b,310,"Deprecated, use `editor.linkedEditing` instead.")})),F(new Se(94,"renderControlCharacters",!0,{description:m(b,311,"Controls whether the editor should render control characters."),restricted:!0})),F(new tt(95,"renderFinalNewline",Za?"dimmed":"on",["off","on","dimmed"],{description:m(b,312,"Render last line number when the file ends with a newline.")})),F(new tt(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",m(b,313,"Highlights both the gutter and the current line.")],description:m(b,314,"Controls how the editor should render the current line highlight.")})),F(new Se(97,"renderLineHighlightOnlyWhenFocus",!1,{description:m(b,315,"Controls if the editor should render the current line highlight only when the editor is focused.")})),F(new tt(98,"renderValidationDecorations","editable",["editable","on","off"])),F(new tt(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",m(b,316,"Render whitespace characters except for single spaces between words."),m(b,317,"Render whitespace characters only on selected text."),m(b,318,"Render only trailing whitespace characters."),""],description:m(b,319,"Controls how the editor should render whitespace characters.")})),F(new je(100,"revealHorizontalRightPadding",15,0,1e3)),F(new Se(101,"roundedSelection",!0,{description:m(b,320,"Controls whether selections should have rounded corners.")})),F(new n7),F(new i7),F(new je(104,"scrollBeyondLastColumn",4,0,1073741824,{description:m(b,321,"Controls the number of extra characters beyond which the editor will scroll horizontally.")})),F(new Se(105,"scrollBeyondLastLine",!0,{description:m(b,322,"Controls whether the editor will scroll beyond the last line.")})),F(new Se(106,"scrollPredominantAxis",!0,{description:m(b,323,"Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),F(new Se(107,"selectionClipboard",!0,{description:m(b,324,"Controls whether the Linux primary clipboard should be supported."),included:Za})),F(new Se(108,"selectionHighlight",!0,{description:m(b,325,"Controls whether the editor should highlight matches similar to the selection.")})),F(new Se(109,"selectOnLineNumbers",!0)),F(new tt(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[m(b,326,"Always show the folding controls."),m(b,327,"Never show the folding controls and reduce the gutter size."),m(b,328,"Only show the folding controls when the mouse is over the gutter.")],description:m(b,329,"Controls when the folding controls on the gutter are shown.")})),F(new Se(111,"showUnused",!0,{description:m(b,330,"Controls fading out of unused code.")})),F(new Se(140,"showDeprecated",!0,{description:m(b,331,"Controls strikethrough deprecated variables.")})),F(new Vw),F(new tt(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[m(b,332,"Show snippet suggestions on top of other suggestions."),m(b,333,"Show snippet suggestions below other suggestions."),m(b,334,"Show snippets suggestions with other suggestions."),m(b,335,"Do not show snippet suggestions.")],description:m(b,336,"Controls whether snippets are shown with other suggestions and how they are sorted.")})),F(new d7),F(new Se(114,"smoothScrolling",!1,{description:m(b,337,"Controls whether the editor will scroll using an animation.")})),F(new je(117,"stopRenderingLineAfter",1e4,-1,1073741824)),F(new u7),F(new o7),F(new a7),F(new Se(149,"inlineCompletionsAccessibilityVerbose",!1,{description:m(b,338,"Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),F(new je(119,"suggestFontSize",0,0,1e3,{markdownDescription:m(b,339,"Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),F(new je(120,"suggestLineHeight",0,0,1e3,{markdownDescription:m(b,340,"Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),F(new Se(121,"suggestOnTriggerCharacters",!0,{description:m(b,341,"Controls whether suggestions should automatically show up when typing trigger characters.")})),F(new tt(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[m(b,342,"Always select the first suggestion."),m(b,343,"Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),m(b,344,"Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:m(b,345,"Controls how suggestions are pre-selected when showing the suggest list.")})),F(new tt(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[m(b,346,"Tab complete will insert the best matching suggestion when pressing tab."),m(b,347,"Disable tab completions."),m(b,348,"Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:m(b,349,"Enables tab completions.")})),F(new je(124,"tabIndex",0,-1,1073741824)),F(new s7),F(new tt(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[m(b,350,"Unusual line terminators are automatically removed."),m(b,351,"Unusual line terminators are ignored."),m(b,352,"Unusual line terminators prompt to be removed.")],description:m(b,353,"Remove unusual line terminators that might cause problems.")})),F(new Se(127,"useShadowDOM",!0)),F(new Se(128,"useTabStops",!0,{description:m(b,354,"Spaces and tabs are inserted and deleted in alignment with tab stops.")})),F(new tt(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[m(b,355,"Use the default line break rule."),m(b,356,"Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:m(b,357,"Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),F(new f7),F(new on(131,"wordSeparators",ay,{description:m(b,358,"Characters that will be used as word separators when doing word related navigations or operations.")})),F(new tt(132,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[m(b,359,"Lines will never wrap."),m(b,360,"Lines will wrap at the viewport width."),m(b,361,"Lines will wrap at `#editor.wordWrapColumn#`."),m(b,362,"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:m(b,363,"Controls how lines should wrap.")})),F(new on(133,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),F(new on(134,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),F(new je(135,"wordWrapColumn",80,1,1073741824,{markdownDescription:m(b,364,"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),F(new tt(136,"wordWrapOverride1","inherit",["off","on","inherit"])),F(new tt(137,"wordWrapOverride2","inherit",["off","on","inherit"])),F(new Lw),F(new Se(147,"defaultColorDecorators",!1,{markdownDescription:m(b,365,"Controls whether inline color decorations should be shown using the default document color provider")})),F(new Zw),F(new Se(144,"tabFocusMode",!1,{markdownDescription:m(b,366,"Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),F(new ko),F(new p7),F(new h7),F(new Uw);let C7=class{constructor(e){this.value=e,this.isTrustedTelemetryValue=!0}},P1;function _7(t){P1=t}function Qt(t){return new Proxy({},{get(e,n){if(P1==null)throw new Error("Default api is not ready yet, do not forget to import 'vscode/localExtensionHost' and wait for services initialization");return P1[t][n]}})}const S7={version:"1.89.1",tasks:Qt("tasks"),notebooks:Qt("notebooks"),scm:Qt("scm"),comments:Qt("comments"),authentication:Qt("authentication"),tests:Qt("tests"),extensions:Qt("extensions"),debug:Qt("debug"),env:Qt("env"),commands:Qt("commands"),window:Qt("window"),workspace:Qt("workspace"),languages:Qt("languages"),l10n:Qt("l10n"),interactive:Qt("interactive"),ai:Qt("ai"),chat:Qt("chat"),speech:Qt("speech"),Breakpoint:Ws,TerminalOutputAnchor:mf,ChatResultFeedbackKind:g1,ChatVariableLevel:h1,ChatCompletionItem:Cw,CallHierarchyIncomingCall:L5,CallHierarchyItem:F5,CallHierarchyOutgoingCall:N5,CancellationError:L2,CancellationTokenSource:W4,CandidatePortSource:C1,CodeAction:Pf,CodeActionKind:bt,CodeActionTriggerKind:Ef,CodeLens:Of,Color:fc,ColorInformation:th,ColorPresentation:nh,ColorThemeKind:zh,CommentMode:Fh,CommentState:Lh,CommentThreadCollapsibleState:Ah,CommentThreadState:Nh,CompletionItem:Uf,CompletionItemKind:dc,CompletionItemTag:Wf,CompletionList:zf,CompletionTriggerKind:Hf,ConfigurationTarget:yh,CustomExecution:iy,DebugAdapterExecutable:Ch,DebugAdapterInlineImplementation:Dh,DebugAdapterNamedPipeServer:Sh,DebugAdapterServer:_h,DebugConfigurationProviderTriggerKind:_1,DebugConsoleMode:qh,DebugVisualization:Q5,DecorationRangeBehavior:Zf,Diagnostic:Sf,DiagnosticRelatedInformation:ac,DiagnosticSeverity:Uo,DiagnosticTag:_f,Disposable:yf,DocumentHighlight:Df,DocumentHighlightKind:Bo,MultiDocumentHighlight:Tf,DocumentLink:eh,DocumentSymbol:xf,EndOfLine:vf,EnvironmentVariableMutatorType:wf,EvaluatableExpression:Th,InlineValueText:Rh,InlineValueVariableLookup:xh,InlineValueEvaluatableExpression:Eh,InlineCompletionTriggerKind:kh,EventEmitter:gr,ExtensionKind:Uh,ExtensionMode:t1,ExternalUriOpenerPriority:c1,FileChangeType:Ph,FileDecoration:Ym,FileDecoration2:Ym,FileSystemError:Ih,FileType:sf,FilePermission:of,FoldingRange:Mh,FoldingRangeKind:Oh,FunctionBreakpoint:wh,InlineCompletionItem:Bf,InlineCompletionList:Vf,Hover:cc,IndentAction:v1,Location:zo,MarkdownString:uc,OverviewRulerLane:S1,ParameterInformation:Af,PortAutoForwardAction:u1,Position:it,ProcessExecution:hc,ProgressLocation:dh,QuickInputButtons:jh,Range:Ot,RelativePattern:bh,Selection:bf,SelectionRange:If,SemanticTokens:$h,SemanticTokensBuilder:V5,SemanticTokensEdit:K5,SemanticTokensEdits:G5,SemanticTokensLegend:z5,ShellExecution:pc,ShellQuoting:lh,SignatureHelp:Lf,SignatureHelpTriggerKind:Nf,SignatureInformation:Ff,SnippetString:oc,SourceBreakpoint:vh,StandardTokenType:r1,StatusBarAlignment:Gf,SymbolInformation:Rf,SymbolKind:lc,SymbolTag:kf,Task:uh,TaskGroup:ch,TaskPanelKind:ah,TaskRevealKind:oh,TaskScope:Go,TerminalLink:$5,TerminalQuickFixTerminalCommand:j5,TerminalQuickFixOpener:q5,TerminalLocation:sh,TerminalProfile:H5,TerminalExitReason:ih,TextDocumentSaveReason:Jf,TextEdit:ic,SnippetTextEdit:ny,TextEditorCursorStyle:yr,TextEditorLineNumbersStyle:Qf,TextEditorRevealType:Yf,TextEditorSelectionChangeKind:Vo,SyntaxTokenType:Ko,TextDocumentChangeReason:Xf,ThemeColor:mh,ThemeIcon:Kr,TreeItem:fh,TreeItemCheckboxState:Qo,TreeItemCollapsibleState:Ds,TypeHierarchyItem:uw,UIKind:D1,Uri:rt,ViewColumn:Kf,WorkspaceEdit:Cf,DocumentDropEdit:gh,DocumentPasteEdit:W5,InlayHint:jf,InlayHintLabelPart:qf,InlayHintKind:$f,RemoteAuthorityResolverError:A5,ResolvedAuthority:M5,ManagedResolvedAuthority:O5,SourceControlInputBoxValidationType:rh,ExtensionRuntime:n1,TimelineItem:e1,NotebookRange:yo,NotebookCellKind:Gh,NotebookCellExecutionState:Qh,NotebookCellData:J5,NotebookData:Y5,NotebookRendererScript:tw,NotebookCellStatusBarAlignment:Jh,NotebookEditorRevealType:Yh,NotebookCellOutput:Z5,NotebookCellOutputItem:X5,NotebookCellStatusBarItem:ew,NotebookControllerAffinity:Xh,NotebookControllerAffinity2:Zh,NotebookEdit:sc,NotebookKernelSourceAction:nw,PortAttributes:iw,LinkedEditingRanges:rw,TestResultState:i1,TestRunRequest:o1,TestMessage:mc,TestMessage2:mc,TestTag:a1,TestRunProfileKind:s1,TextSearchCompleteMessageType:T1,DataTransfer:ph,DataTransferItem:hh,FileCoverage:ow,StatementCoverage:aw,BranchCoverage:cw,FunctionCoverage:lw,WorkspaceTrustState:l1,LanguageStatusSeverity:Mf,QuickPickItemKind:Hh,InputBoxValidationSeverity:Wh,TabInputText:dw,TabInputTextDiff:fw,TabInputTextMerge:hw,TabInputCustom:pw,TabInputNotebook:mw,TabInputNotebookDiff:yw,TabInputWebview:gw,TabInputTerminal:bw,TabInputInteractiveWindow:vw,TabInputChat:ww,TelemetryTrustedValue:C7,LogLevel:ar,EditSessionIdentityMatch:k1,InteractiveSessionVoteDirection:d1,ChatCopyKind:f1,InteractiveEditorResponseFeedbackKind:p1,RelatedInformationType:m1,SpeechToTextStatus:y1,KeywordRecognitionStatus:b1},{version:D7,tasks:T7,notebooks:k7,scm:R7,comments:x7,authentication:E7,tests:P7,extensions:I7,debug:M7,env:O7,commands:A7,window:F7,workspace:L7,languages:N7,l10n:$7,interactive:q7,ai:j7,chat:H7,speech:W7,Breakpoint:U7,TerminalOutputAnchor:z7,ChatResultFeedbackKind:B7,ChatVariableLevel:V7,ChatCompletionItem:K7,CallHierarchyIncomingCall:G7,CallHierarchyItem:Q7,CallHierarchyOutgoingCall:J7,CancellationError:Y7,CancellationTokenSource:X7,CandidatePortSource:Z7,CodeAction:e9,CodeActionKind:t9,CodeActionTriggerKind:n9,CodeLens:r9,Color:i9,ColorInformation:s9,ColorPresentation:o9,ColorThemeKind:a9,CommentMode:c9,CommentState:l9,CommentThreadCollapsibleState:u9,CommentThreadState:d9,CompletionItem:f9,CompletionItemKind:h9,CompletionItemTag:p9,CompletionList:g9,CompletionTriggerKind:m9,ConfigurationTarget:y9,CustomExecution:b9,DebugAdapterExecutable:v9,DebugAdapterInlineImplementation:w9,DebugAdapterNamedPipeServer:C9,DebugAdapterServer:_9,DebugConfigurationProviderTriggerKind:S9,DebugConsoleMode:D9,DebugVisualization:T9,DecorationRangeBehavior:k9,Diagnostic:R9,DiagnosticRelatedInformation:x9,DiagnosticSeverity:E9,DiagnosticTag:P9,Disposable:I9,DocumentHighlight:M9,DocumentHighlightKind:O9,MultiDocumentHighlight:A9,DocumentLink:F9,DocumentSymbol:L9,EndOfLine:N9,EnvironmentVariableMutatorType:$9,EvaluatableExpression:q9,InlineValueText:j9,InlineValueVariableLookup:H9,InlineValueEvaluatableExpression:W9,InlineCompletionTriggerKind:U9,EventEmitter:z9,ExtensionKind:B9,ExtensionMode:V9,ExternalUriOpenerPriority:K9,FileChangeType:G9,FileDecoration:Q9,FileDecoration2:J9,FileSystemError:Y9,FileType:X9,FilePermission:Z9,FoldingRange:e8,FoldingRangeKind:t8,FunctionBreakpoint:n8,InlineCompletionItem:r8,InlineCompletionList:i8,Hover:s8,IndentAction:o8,Location:a8,MarkdownString:c8,OverviewRulerLane:l8,ParameterInformation:u8,PortAutoForwardAction:d8,Position:f8,ProcessExecution:h8,ProgressLocation:p8,QuickInputButtons:g8,Range:m8,RelativePattern:y8,Selection:b8,SelectionRange:v8,SemanticTokens:w8,SemanticTokensBuilder:C8,SemanticTokensEdit:_8,SemanticTokensEdits:S8,SemanticTokensLegend:D8,ShellExecution:T8,ShellQuoting:k8,SignatureHelp:R8,SignatureHelpTriggerKind:x8,SignatureInformation:E8,SnippetString:P8,SourceBreakpoint:I8,StandardTokenType:M8,StatusBarAlignment:O8,SymbolInformation:A8,SymbolKind:F8,SymbolTag:L8,Task:N8,TaskGroup:$8,TaskPanelKind:q8,TaskRevealKind:j8,TaskScope:H8,TerminalLink:W8,TerminalQuickFixTerminalCommand:U8,TerminalQuickFixOpener:z8,TerminalLocation:B8,TerminalProfile:V8,TerminalExitReason:K8,TextDocumentSaveReason:G8,TextEdit:Q8,SnippetTextEdit:J8,TextEditorCursorStyle:Y8,TextEditorLineNumbersStyle:X8,TextEditorRevealType:Z8,TextEditorSelectionChangeKind:eC,SyntaxTokenType:tC,TextDocumentChangeReason:nC,ThemeColor:rC,ThemeIcon:iC,TreeItem:sC,TreeItemCheckboxState:oC,TreeItemCollapsibleState:aC,TypeHierarchyItem:cC,UIKind:lC,Uri:uC,ViewColumn:dC,WorkspaceEdit:fC,DocumentDropEdit:hC,DocumentPasteEdit:pC,InlayHint:gC,InlayHintLabelPart:mC,InlayHintKind:yC,RemoteAuthorityResolverError:bC,ResolvedAuthority:vC,ManagedResolvedAuthority:wC,SourceControlInputBoxValidationType:CC,ExtensionRuntime:_C,TimelineItem:SC,NotebookRange:DC,NotebookCellKind:TC,NotebookCellExecutionState:kC,NotebookCellData:RC,NotebookData:xC,NotebookRendererScript:EC,NotebookCellStatusBarAlignment:PC,NotebookEditorRevealType:IC,NotebookCellOutput:MC,NotebookCellOutputItem:OC,NotebookCellStatusBarItem:AC,NotebookControllerAffinity:FC,NotebookControllerAffinity2:LC,NotebookEdit:NC,NotebookKernelSourceAction:$C,PortAttributes:qC,LinkedEditingRanges:jC,TestResultState:HC,TestRunRequest:WC,TestMessage:UC,TestMessage2:zC,TestTag:BC,TestRunProfileKind:VC,TextSearchCompleteMessageType:KC,DataTransfer:GC,DataTransferItem:QC,FileCoverage:JC,StatementCoverage:YC,BranchCoverage:XC,FunctionCoverage:ZC,WorkspaceTrustState:e_,LanguageStatusSeverity:t_,QuickPickItemKind:n_,InputBoxValidationSeverity:r_,TabInputText:i_,TabInputTextDiff:s_,TabInputTextMerge:o_,TabInputCustom:a_,TabInputNotebook:c_,TabInputNotebookDiff:l_,TabInputWebview:u_,TabInputTerminal:d_,TabInputInteractiveWindow:f_,TabInputChat:h_,TelemetryTrustedValue:p_,LogLevel:g_,EditSessionIdentityMatch:m_,InteractiveSessionVoteDirection:y_,ChatCopyKind:b_,InteractiveEditorResponseFeedbackKind:v_,RelatedInformationType:w_,SpeechToTextStatus:C_,KeywordRecognitionStatus:__}=S7,S_=Object.freeze(Object.defineProperty({__proto__:null,BranchCoverage:XC,Breakpoint:U7,CallHierarchyIncomingCall:G7,CallHierarchyItem:Q7,CallHierarchyOutgoingCall:J7,CancellationError:Y7,CancellationTokenSource:X7,CandidatePortSource:Z7,ChatCompletionItem:K7,ChatCopyKind:b_,ChatResultFeedbackKind:B7,ChatVariableLevel:V7,CodeAction:e9,CodeActionKind:t9,CodeActionTriggerKind:n9,CodeLens:r9,Color:i9,ColorInformation:s9,ColorPresentation:o9,ColorThemeKind:a9,CommentMode:c9,CommentState:l9,CommentThreadCollapsibleState:u9,CommentThreadState:d9,CompletionItem:f9,CompletionItemKind:h9,CompletionItemTag:p9,CompletionList:g9,CompletionTriggerKind:m9,ConfigurationTarget:y9,CustomExecution:b9,DataTransfer:GC,DataTransferItem:QC,DebugAdapterExecutable:v9,DebugAdapterInlineImplementation:w9,DebugAdapterNamedPipeServer:C9,DebugAdapterServer:_9,DebugConfigurationProviderTriggerKind:S9,DebugConsoleMode:D9,DebugVisualization:T9,DecorationRangeBehavior:k9,Diagnostic:R9,DiagnosticRelatedInformation:x9,DiagnosticSeverity:E9,DiagnosticTag:P9,Disposable:I9,DocumentDropEdit:hC,DocumentHighlight:M9,DocumentHighlightKind:O9,DocumentLink:F9,DocumentPasteEdit:pC,DocumentSymbol:L9,EditSessionIdentityMatch:m_,EndOfLine:N9,EnvironmentVariableMutatorType:$9,EvaluatableExpression:q9,EventEmitter:z9,ExtensionKind:B9,ExtensionMode:V9,ExtensionRuntime:_C,ExternalUriOpenerPriority:K9,FileChangeType:G9,FileCoverage:JC,FileDecoration:Q9,FileDecoration2:J9,FilePermission:Z9,FileSystemError:Y9,FileType:X9,FoldingRange:e8,FoldingRangeKind:t8,FunctionBreakpoint:n8,FunctionCoverage:ZC,Hover:s8,IndentAction:o8,InlayHint:gC,InlayHintKind:yC,InlayHintLabelPart:mC,InlineCompletionItem:r8,InlineCompletionList:i8,InlineCompletionTriggerKind:U9,InlineValueEvaluatableExpression:W9,InlineValueText:j9,InlineValueVariableLookup:H9,InputBoxValidationSeverity:r_,InteractiveEditorResponseFeedbackKind:v_,InteractiveSessionVoteDirection:y_,KeywordRecognitionStatus:__,LanguageStatusSeverity:t_,LinkedEditingRanges:jC,Location:a8,LogLevel:g_,ManagedResolvedAuthority:wC,MarkdownString:c8,MultiDocumentHighlight:A9,NotebookCellData:RC,NotebookCellExecutionState:kC,NotebookCellKind:TC,NotebookCellOutput:MC,NotebookCellOutputItem:OC,NotebookCellStatusBarAlignment:PC,NotebookCellStatusBarItem:AC,NotebookControllerAffinity:FC,NotebookControllerAffinity2:LC,NotebookData:xC,NotebookEdit:NC,NotebookEditorRevealType:IC,NotebookKernelSourceAction:$C,NotebookRange:DC,NotebookRendererScript:EC,OverviewRulerLane:l8,ParameterInformation:u8,PortAttributes:qC,PortAutoForwardAction:d8,Position:f8,ProcessExecution:h8,ProgressLocation:p8,QuickInputButtons:g8,QuickPickItemKind:n_,Range:m8,RelatedInformationType:w_,RelativePattern:y8,RemoteAuthorityResolverError:bC,ResolvedAuthority:vC,Selection:b8,SelectionRange:v8,SemanticTokens:w8,SemanticTokensBuilder:C8,SemanticTokensEdit:_8,SemanticTokensEdits:S8,SemanticTokensLegend:D8,ShellExecution:T8,ShellQuoting:k8,SignatureHelp:R8,SignatureHelpTriggerKind:x8,SignatureInformation:E8,SnippetString:P8,SnippetTextEdit:J8,SourceBreakpoint:I8,SourceControlInputBoxValidationType:CC,SpeechToTextStatus:C_,StandardTokenType:M8,StatementCoverage:YC,StatusBarAlignment:O8,SymbolInformation:A8,SymbolKind:F8,SymbolTag:L8,SyntaxTokenType:tC,TabInputChat:h_,TabInputCustom:a_,TabInputInteractiveWindow:f_,TabInputNotebook:c_,TabInputNotebookDiff:l_,TabInputTerminal:d_,TabInputText:i_,TabInputTextDiff:s_,TabInputTextMerge:o_,TabInputWebview:u_,Task:N8,TaskGroup:$8,TaskPanelKind:q8,TaskRevealKind:j8,TaskScope:H8,TelemetryTrustedValue:p_,TerminalExitReason:K8,TerminalLink:W8,TerminalLocation:B8,TerminalOutputAnchor:z7,TerminalProfile:V8,TerminalQuickFixOpener:z8,TerminalQuickFixTerminalCommand:U8,TestMessage:UC,TestMessage2:zC,TestResultState:HC,TestRunProfileKind:VC,TestRunRequest:WC,TestTag:BC,TextDocumentChangeReason:nC,TextDocumentSaveReason:G8,TextEdit:Q8,TextEditorCursorStyle:Y8,TextEditorLineNumbersStyle:X8,TextEditorRevealType:Z8,TextEditorSelectionChangeKind:eC,TextSearchCompleteMessageType:KC,ThemeColor:rC,ThemeIcon:iC,TimelineItem:SC,TreeItem:sC,TreeItemCheckboxState:oC,TreeItemCollapsibleState:aC,TypeHierarchyItem:cC,UIKind:lC,Uri:uC,ViewColumn:dC,WorkspaceEdit:fC,WorkspaceTrustState:e_,ai:j7,authentication:E7,chat:H7,commands:A7,comments:x7,debug:M7,env:O7,extensions:I7,interactive:q7,l10n:$7,languages:N7,notebooks:k7,scm:R7,setDefaultApi:_7,speech:W7,tasks:T7,tests:P7,version:D7,window:F7,workspace:L7},Symbol.toStringTag,{value:"Module"})),Re=y2(S_);var Ye={};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.asPromise=Ye.thenable=Ye.typedArray=Ye.stringArray=Ye.array=Ye.func=Ye.error=Ye.number=Ye.string=Ye.boolean=void 0;function D_(t){return t===!0||t===!1}Ye.boolean=D_;function cy(t){return typeof t=="string"||t instanceof String}Ye.string=cy;function T_(t){return typeof t=="number"||t instanceof Number}Ye.number=T_;function k_(t){return t instanceof Error}Ye.error=k_;function ly(t){return typeof t=="function"}Ye.func=ly;function uy(t){return Array.isArray(t)}Ye.array=uy;function R_(t){return uy(t)&&t.every(e=>cy(e))}Ye.stringArray=R_;function x_(t,e){return Array.isArray(t)&&t.every(e)}Ye.typedArray=x_;function dy(t){return t&&ly(t.then)}Ye.thenable=dy;function E_(t){return t instanceof Promise?t:dy(t)?new Promise((e,n)=>{t.then(r=>e(r),r=>n(r))}):Promise.resolve(t)}Ye.asPromise=E_;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});Be.generateUuid=Be.parse=Be.isUUID=Be.v4=Be.empty=void 0;class ap{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}}class $e extends ap{static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return $e._oneOf($e._chars)}constructor(){super([$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),"-",$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),"-","4",$e._randomHex(),$e._randomHex(),$e._randomHex(),"-",$e._oneOf($e._timeHighBits),$e._randomHex(),$e._randomHex(),$e._randomHex(),"-",$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex(),$e._randomHex()].join(""))}}$e._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];$e._timeHighBits=["8","9","a","b"];Be.empty=new ap("00000000-0000-0000-0000-000000000000");function fy(){return new $e}Be.v4=fy;const P_=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function hy(t){return P_.test(t)}Be.isUUID=hy;function I_(t){if(!hy(t))throw new Error("invalid uuid");return new ap(t)}Be.parse=I_;function M_(){return fy().asHex()}Be.generateUuid=M_;Object.defineProperty(De,"__esModule",{value:!0});De.WorkspaceFeature=De.TextDocumentLanguageFeature=De.TextDocumentEventFeature=De.DynamicDocumentFeature=De.DynamicFeature=De.StaticFeature=De.ensure=De.LSPCancellationError=void 0;const Bi=Re,Kl=ye,Sn=Ye,f0=Be;class O_ extends Bi.CancellationError{constructor(e){super(),this.data=e}}De.LSPCancellationError=O_;function A_(t,e){return t[e]===void 0&&(t[e]={}),t[e]}De.ensure=A_;var h0;(function(t){function e(n){const r=n;return r!=null&&Sn.func(r.fillClientCapabilities)&&Sn.func(r.initialize)&&Sn.func(r.getState)&&Sn.func(r.clear)&&(r.fillInitializeParams===void 0||Sn.func(r.fillInitializeParams))}t.is=e})(h0||(De.StaticFeature=h0={}));var p0;(function(t){function e(n){const r=n;return r!=null&&Sn.func(r.fillClientCapabilities)&&Sn.func(r.initialize)&&Sn.func(r.getState)&&Sn.func(r.clear)&&(r.fillInitializeParams===void 0||Sn.func(r.fillInitializeParams))&&Sn.func(r.register)&&Sn.func(r.unregister)&&r.registrationType!==void 0}t.is=e})(p0||(De.DynamicFeature=p0={}));class cp{constructor(e){this._client=e}getState(){const e=this.getDocumentSelectors();let n=0;for(const i of e){n++;for(const s of Bi.workspace.textDocuments)if(Bi.languages.match(i,s)>0)return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!0}}const r=n>0;return{kind:"document",id:this.registrationType.method,registrations:r,matches:!1}}}De.DynamicDocumentFeature=cp;class F_ extends cp{static textDocumentFilter(e,n){for(const r of e)if(Bi.languages.match(r,n)>0)return!0;return!1}constructor(e,n,r,i,s,o,a){super(e),this._event=n,this._type=r,this._middleware=i,this._createParams=s,this._textDocument=o,this._selectorFilter=a,this._selectors=new Map,this._onNotificationSent=new Bi.EventEmitter}getStateInfo(){return[this._selectors.values(),!1]}getDocumentSelectors(){return this._selectors.values()}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=this._event(n=>{this.callback(n).catch(r=>{this._client.error(`Sending document notification ${this._type.method} failed.`,r)})})),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)))}async callback(e){const n=async r=>{const i=this._createParams(r);await this._client.sendNotification(this._type,i),this.notificationSent(this.getTextDocument(r),this._type,i)};if(this.matches(e)){const r=this._middleware();return r?r(e,i=>n(i)):n(e)}}matches(e){return this._client.hasDedicatedTextSynchronizationFeature(this._textDocument(e))?!1:!this._selectorFilter||this._selectorFilter(this._selectors.values(),e)}get onNotificationSent(){return this._onNotificationSent.event}notificationSent(e,n,r){this._onNotificationSent.fire({textDocument:e,type:n,params:r})}unregister(e){this._selectors.delete(e),this._selectors.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._selectors.clear(),this._onNotificationSent.dispose(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getProvider(e){for(const n of this._selectors.values())if(Bi.languages.match(n,e)>0)return{send:r=>this.callback(r)}}}De.TextDocumentEventFeature=F_;class L_ extends cp{constructor(e,n){super(e),this._registrationType=n,this._registrations=new Map}*getDocumentSelectors(){for(const e of this._registrations.values()){const n=e.data.registerOptions.documentSelector;n!==null&&(yield this._client.protocol2CodeConverter.asDocumentSelector(n))}}get registrationType(){return this._registrationType}register(e){if(!e.registerOptions.documentSelector)return;let n=this.registerLanguageProvider(e.registerOptions,e.id);this._registrations.set(e.id,{disposable:n[0],data:e,provider:n[1]})}unregister(e){let n=this._registrations.get(e);n!==void 0&&n.disposable.dispose()}clear(){this._registrations.forEach(e=>{e.disposable.dispose()}),this._registrations.clear()}getRegistration(e,n){if(n){if(Kl.TextDocumentRegistrationOptions.is(n)){const r=Kl.StaticRegistrationOptions.hasId(n)?n.id:f0.generateUuid(),i=n.documentSelector??e;if(i)return[r,Object.assign({},n,{documentSelector:i})]}else if(Sn.boolean(n)&&n===!0||Kl.WorkDoneProgressOptions.is(n)){if(!e)return[void 0,void 0];const r=Sn.boolean(n)&&n===!0?{documentSelector:e}:Object.assign({},n,{documentSelector:e});return[f0.generateUuid(),r]}}else return[void 0,void 0];return[void 0,void 0]}getRegistrationOptions(e,n){if(!(!e||!n))return Sn.boolean(n)&&n===!0?{documentSelector:e}:Object.assign({},n,{documentSelector:e})}getProvider(e){for(const n of this._registrations.values()){let r=n.data.registerOptions.documentSelector;if(r!==null&&Bi.languages.match(this._client.protocol2CodeConverter.asDocumentSelector(r),e)>0)return n.provider}}getAllProviders(){const e=[];for(const n of this._registrations.values())e.push(n.provider);return e}}De.TextDocumentLanguageFeature=L_;class N_{constructor(e,n){this._client=e,this._registrationType=n,this._registrations=new Map}getState(){const e=this._registrations.size>0;return{kind:"workspace",id:this._registrationType.method,registrations:e}}get registrationType(){return this._registrationType}register(e){const n=this.registerLanguageProvider(e.registerOptions);this._registrations.set(e.id,{disposable:n[0],provider:n[1]})}unregister(e){let n=this._registrations.get(e);n!==void 0&&n.disposable.dispose()}clear(){this._registrations.forEach(e=>{e.disposable.dispose()}),this._registrations.clear()}getProviders(){const e=[];for(const n of this._registrations.values())e.push(n.provider);return e}}De.WorkspaceFeature=N_;var Ur={};const $_=typeof process=="object"&&process&&process.platform==="win32";var q_=$_?{sep:"\\"}:{sep:"/"},j_=py;function py(t,e,n){t instanceof RegExp&&(t=g0(t,n)),e instanceof RegExp&&(e=g0(e,n));var r=gy(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function g0(t,e){var n=e.match(t);return n?n[0]:null}py.range=gy;function gy(t,e,n){var r,i,s,o,a,c=n.indexOf(t),l=n.indexOf(e,c+1),f=c;if(c>=0&&l>0){if(t===e)return[c,l];for(r=[],s=n.length;f>=0&&!a;)f==c?(r.push(f),c=n.indexOf(t,f+1)):r.length==1?a=[r.pop(),l]:(i=r.pop(),i<s&&(s=i,o=l),l=n.indexOf(e,f+1)),f=c<l&&c>=0?c:l;r.length&&(a=[s,o])}return a}var my=j_,H_=z_,yy="\0SLASH"+Math.random()+"\0",by="\0OPEN"+Math.random()+"\0",lp="\0CLOSE"+Math.random()+"\0",vy="\0COMMA"+Math.random()+"\0",wy="\0PERIOD"+Math.random()+"\0";function Gl(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function W_(t){return t.split("\\\\").join(yy).split("\\{").join(by).split("\\}").join(lp).split("\\,").join(vy).split("\\.").join(wy)}function U_(t){return t.split(yy).join("\\").split(by).join("{").split(lp).join("}").split(vy).join(",").split(wy).join(".")}function Cy(t){if(!t)return[""];var e=[],n=my("{","}",t);if(!n)return t.split(",");var r=n.pre,i=n.body,s=n.post,o=r.split(",");o[o.length-1]+="{"+i+"}";var a=Cy(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function z_(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),bo(W_(t),!0).map(U_)):[]}function B_(t){return"{"+t+"}"}function V_(t){return/^-?0\d/.test(t)}function K_(t,e){return t<=e}function G_(t,e){return t>=e}function bo(t,e){var n=[],r=my("{","}",t);if(!r)return[t];var i=r.pre,s=r.post.length?bo(r.post,!1):[""];if(/\$$/.test(r.pre))for(var o=0;o<s.length;o++){var a=i+"{"+r.body+"}"+s[o];n.push(a)}else{var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),f=c||l,p=r.body.indexOf(",")>=0;if(!f&&!p)return r.post.match(/,.*\}/)?(t=r.pre+"{"+r.body+lp+r.post,bo(t)):[t];var g;if(f)g=r.body.split(/\.\./);else if(g=Cy(r.body),g.length===1&&(g=bo(g[0],!1).map(B_),g.length===1))return s.map(function(Le){return r.pre+g[0]+Le});var _;if(f){var C=Gl(g[0]),k=Gl(g[1]),M=Math.max(g[0].length,g[1].length),H=g.length==3?Math.abs(Gl(g[2])):1,K=K_,j=k<C;j&&(H*=-1,K=G_);var B=g.some(V_);_=[];for(var z=C;K(z,k);z+=H){var ne;if(l)ne=String.fromCharCode(z),ne==="\\"&&(ne="");else if(ne=String(z),B){var G=M-ne.length;if(G>0){var Y=new Array(G+1).join("0");z<0?ne="-"+Y+ne.slice(1):ne=Y+ne}}_.push(ne)}}else{_=[];for(var re=0;re<g.length;re++)_.push.apply(_,bo(g[re],!1))}for(var re=0;re<_.length;re++)for(var o=0;o<s.length;o++){var a=i+_[re]+s[o];(!e||f||a)&&n.push(a)}}return n}const zn=Vc=(t,e,n={})=>(yc(e),!n.nocomment&&e.charAt(0)==="#"?!1:new Kc(e,n).match(t));var Vc=zn;const I1=q_;zn.sep=I1.sep;const ir=Symbol("globstar **");zn.GLOBSTAR=ir;const Q_=H_,m0={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},M1="[^/]",Ql=M1+"*?",J_="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Y_="(?:(?!(?:\\/|^)\\.).)*?",_y=t=>t.split("").reduce((e,n)=>(e[n]=!0,e),{}),y0=_y("().*{}+?[]^$\\!"),X_=_y("[.("),b0=/\/+/;zn.filter=(t,e={})=>(n,r,i)=>zn(n,t,e);const ti=(t,e={})=>{const n={};return Object.keys(t).forEach(r=>n[r]=t[r]),Object.keys(e).forEach(r=>n[r]=e[r]),n};zn.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return zn;const e=zn,n=(r,i,s)=>e(r,i,ti(t,s));return n.Minimatch=class extends e.Minimatch{constructor(i,s){super(i,ti(t,s))}},n.Minimatch.defaults=r=>e.defaults(ti(t,r)).Minimatch,n.filter=(r,i)=>e.filter(r,ti(t,i)),n.defaults=r=>e.defaults(ti(t,r)),n.makeRe=(r,i)=>e.makeRe(r,ti(t,i)),n.braceExpand=(r,i)=>e.braceExpand(r,ti(t,i)),n.match=(r,i,s)=>e.match(r,i,ti(t,s)),n};zn.braceExpand=(t,e)=>Sy(t,e);const Sy=(t,e={})=>(yc(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:Q_(t)),Z_=1024*64,yc=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Z_)throw new TypeError("pattern is too long")},Jl=Symbol("subparse");zn.makeRe=(t,e)=>new Kc(t,e||{}).makeRe();zn.match=(t,e,n={})=>{const r=new Kc(e,n);return t=t.filter(i=>r.match(i)),r.options.nonull&&!t.length&&t.push(e),t};const e6=t=>t.replace(/\\(.)/g,"$1"),t6=t=>t.replace(/\\([^-\]])/g,"$1"),n6=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),r6=t=>t.replace(/[[\]\\]/g,"\\$&");class Kc{constructor(e,n){yc(e),n||(n={}),this.options=n,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.make()}debug(){}make(){const e=this.pattern,n=this.options;if(!n.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let r=this.globSet=this.braceExpand();n.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,r),r=this.globParts=r.map(i=>i.split(b0)),this.debug(this.pattern,r),r=r.map((i,s,o)=>i.map(this.parse,this)),this.debug(this.pattern,r),r=r.filter(i=>i.indexOf(!1)===-1),this.debug(this.pattern,r),this.set=r}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let n=!1,r=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)n=!n,r++;r&&(this.pattern=e.slice(r)),this.negate=n}matchOne(e,n,r){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:n}),this.debug("matchOne",e.length,n.length);for(var s=0,o=0,a=e.length,c=n.length;s<a&&o<c;s++,o++){this.debug("matchOne loop");var l=n[o],f=e[s];if(this.debug(n,l,f),l===!1)return!1;if(l===ir){this.debug("GLOBSTAR",[n,l,f]);var p=s,g=o+1;if(g===c){for(this.debug("** at the end");s<a;s++)if(e[s]==="."||e[s]===".."||!i.dot&&e[s].charAt(0)===".")return!1;return!0}for(;p<a;){var _=e[p];if(this.debug(`
|
|
99
|
+
globstar while`,e,p,n,g,_),this.matchOne(e.slice(p),n.slice(g),r))return this.debug("globstar found match!",p,a,_),!0;if(_==="."||_===".."||!i.dot&&_.charAt(0)==="."){this.debug("dot detected!",e,p,n,g);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(r&&(this.debug(`
|
|
100
|
+
>>> no match, partial?`,e,p,n,g),p===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 r;if(o===c)return s===a-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return Sy(this.pattern,this.options)}parse(e,n){yc(e);const r=this.options;if(e==="**")if(r.noglobstar)e="*";else return ir;if(e==="")return"";let i="",s=!1,o=!1;const a=[],c=[];let l,f=!1,p=-1,g=-1,_,C,k,M=e.charAt(0)===".",H=r.dot||M;const K=()=>M?"":H?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",j=G=>G.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",B=()=>{if(l){switch(l){case"*":i+=Ql,s=!0;break;case"?":i+=M1,s=!0;break;default:i+="\\"+l;break}this.debug("clearStateChar %j %j",l,i),l=!1}};for(let G=0,Y;G<e.length&&(Y=e.charAt(G));G++){if(this.debug("%s %s %s %j",e,G,i,Y),o){if(Y==="/")return!1;y0[Y]&&(i+="\\"),i+=Y,o=!1;continue}switch(Y){case"/":return!1;case"\\":if(f&&e.charAt(G+1)==="-"){i+=Y;continue}B(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,G,i,Y),f){this.debug(" in class"),Y==="!"&&G===g+1&&(Y="^"),i+=Y;continue}this.debug("call clearStateChar %j",l),B(),l=Y,r.noext&&B();continue;case"(":{if(f){i+="(";continue}if(!l){i+="\\(";continue}const re={type:l,start:G-1,reStart:i.length,open:m0[l].open,close:m0[l].close};this.debug(this.pattern," ",re),a.push(re),i+=re.open,re.start===0&&re.type!=="!"&&(M=!0,i+=j(e.slice(G+1))),this.debug("plType %j %j",l,i),l=!1;continue}case")":{const re=a[a.length-1];if(f||!re){i+="\\)";continue}a.pop(),B(),s=!0,C=re,i+=C.close,C.type==="!"&&c.push(Object.assign(C,{reEnd:i.length}));continue}case"|":{const re=a[a.length-1];if(f||!re){i+="\\|";continue}B(),i+="|",re.start===0&&re.type!=="!"&&(M=!0,i+=j(e.slice(G+1)));continue}case"[":if(B(),f){i+="\\"+Y;continue}f=!0,g=G,p=i.length,i+=Y;continue;case"]":if(G===g+1||!f){i+="\\"+Y;continue}_=e.substring(g+1,G);try{RegExp("["+r6(t6(_))+"]"),i+=Y}catch{i=i.substring(0,p)+"(?:$.)"}s=!0,f=!1;continue;default:B(),y0[Y]&&!(Y==="^"&&f)&&(i+="\\"),i+=Y;break}}for(f&&(_=e.slice(g+1),k=this.parse(_,Jl),i=i.substring(0,p)+"\\["+k[0],s=s||k[1]),C=a.pop();C;C=a.pop()){let G;G=i.slice(C.reStart+C.open.length),this.debug("setting tail",i,C),G=G.replace(/((?:\\{2}){0,64})(\\?)\|/g,(re,Le,$)=>($||($="\\"),Le+Le+$+"|")),this.debug(`tail=%j
|
|
101
|
+
%s`,G,G,C,i);const Y=C.type==="*"?Ql:C.type==="?"?M1:"\\"+C.type;s=!0,i=i.slice(0,C.reStart)+Y+"\\("+G}B(),o&&(i+="\\\\");const z=X_[i.charAt(0)];for(let G=c.length-1;G>-1;G--){const Y=c[G],re=i.slice(0,Y.reStart),Le=i.slice(Y.reStart,Y.reEnd-8);let $=i.slice(Y.reEnd);const P=i.slice(Y.reEnd-8,Y.reEnd)+$,v=re.split(")").length,R=re.split("(").length-v;let I=$;for(let V=0;V<R;V++)I=I.replace(/\)[+*?]?/,"");$=I;const E=$===""&&n!==Jl?"(?:$|\\/)":"";i=re+Le+$+E+P}if(i!==""&&s&&(i="(?=.)"+i),z&&(i=K()+i),n===Jl)return[i,s];if(r.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return e6(e);const ne=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",ne),{_glob:e,_src:i})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const n=this.options,r=n.noglobstar?Ql:n.dot?J_:Y_,i=n.nocase?"i":"";let s=e.map(o=>(o=o.map(a=>typeof a=="string"?n6(a):a===ir?ir:a._src).reduce((a,c)=>(a[a.length-1]===ir&&c===ir||a.push(c),a),[]),o.forEach((a,c)=>{a!==ir||o[c-1]===ir||(c===0?o.length>1?o[c+1]="(?:\\/|"+r+"\\/)?"+o[c+1]:o[c]=r:c===o.length-1?o[c-1]+="(?:\\/|"+r+")?":(o[c-1]+="(?:\\/|\\/"+r+"\\/)"+o[c+1],o[c+1]=ir))}),o.filter(a=>a!==ir).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch{this.regexp=!1}return this.regexp}match(e,n=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&n)return!0;const r=this.options;I1.sep!=="/"&&(e=e.split(I1.sep).join("/")),e=e.split(b0),this.debug(this.pattern,"split",e);const i=this.set;this.debug(this.pattern,"set",i);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<i.length;o++){const a=i[o];let c=e;if(r.matchBase&&a.length===1&&(c=[s]),this.matchOne(c,a,n))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(e){return zn.defaults(e).Minimatch}}zn.Minimatch=Kc;Object.defineProperty(Ur,"__esModule",{value:!0});Ur.DiagnosticFeature=Ur.DiagnosticPullMode=Ur.vsdiag=void 0;const i6=Vc,Ue=Re,Pt=ye,s6=Be,O1=De;function ba(t,e){return t[e]===void 0&&(t[e]={}),t[e]}var Kn;(function(t){(function(e){e.full="full",e.unChanged="unChanged"})(t.DocumentDiagnosticReportKind||(t.DocumentDiagnosticReportKind={}))})(Kn||(Ur.vsdiag=Kn={}));var bc;(function(t){t.onType="onType",t.onSave="onSave"})(bc||(Ur.DiagnosticPullMode=bc={}));var un;(function(t){t.active="open",t.reschedule="reschedule",t.outDated="drop"})(un||(un={}));class Ro{constructor(){this.open=new Set,this._onOpen=new Ue.EventEmitter,this._onClose=new Ue.EventEmitter,Ro.fillTabResources(this.open);const e=n=>{if(n.closed.length===0&&n.opened.length===0)return;const r=this.open,i=new Set;Ro.fillTabResources(i);const s=new Set,o=new Set(i);for(const a of r.values())i.has(a)?o.delete(a):s.add(a);if(this.open=i,s.size>0){const a=new Set;for(const c of s)a.add(Ue.Uri.parse(c));this._onClose.fire(a)}if(o.size>0){const a=new Set;for(const c of o)a.add(Ue.Uri.parse(c));this._onOpen.fire(a)}};Ue.window.tabGroups.onDidChangeTabs!==void 0?this.disposable=Ue.window.tabGroups.onDidChangeTabs(e):this.disposable={dispose:()=>{}}}get onClose(){return this._onClose.event}get onOpen(){return this._onOpen.event}dispose(){this.disposable.dispose()}isActive(e){var n,r;return e instanceof Ue.Uri?((n=Ue.window.activeTextEditor)==null?void 0:n.document.uri)===e:((r=Ue.window.activeTextEditor)==null?void 0:r.document)===e}isVisible(e){const n=e instanceof Ue.Uri?e:e.uri;return this.open.has(n.toString())}getTabResources(){const e=new Set;return Ro.fillTabResources(new Set,e),e}static fillTabResources(e,n){const r=e??new Set;for(const i of Ue.window.tabGroups.all)for(const s of i.tabs){const o=s.input;let a;o instanceof Ue.TabInputText?a=o.uri:o instanceof Ue.TabInputTextDiff?a=o.modified:o instanceof Ue.TabInputCustom&&(a=o.uri),a!==void 0&&!r.has(a.toString())&&(r.add(a.toString()),n!==void 0&&n.add(a))}}}var zt;(function(t){t[t.document=1]="document",t[t.workspace=2]="workspace"})(zt||(zt={}));var $r;(function(t){function e(n){return n instanceof Ue.Uri?n.toString():n.uri.toString()}t.asKey=e})($r||($r={}));class o6{constructor(){this.documentPullStates=new Map,this.workspacePullStates=new Map}track(e,n,r){const i=e===zt.document?this.documentPullStates:this.workspacePullStates,[s,o,a]=n instanceof Ue.Uri?[n.toString(),n,r]:[n.uri.toString(),n.uri,n.version];let c=i.get(s);return c===void 0&&(c={document:o,pulledVersion:a,resultId:void 0},i.set(s,c)),c}update(e,n,r,i){const s=e===zt.document?this.documentPullStates:this.workspacePullStates,[o,a,c,l]=n instanceof Ue.Uri?[n.toString(),n,r,i]:[n.uri.toString(),n.uri,n.version,r];let f=s.get(o);f===void 0?(f={document:a,pulledVersion:c,resultId:l},s.set(o,f)):(f.pulledVersion=c,f.resultId=l)}unTrack(e,n){const r=$r.asKey(n);(e===zt.document?this.documentPullStates:this.workspacePullStates).delete(r)}tracks(e,n){const r=$r.asKey(n);return(e===zt.document?this.documentPullStates:this.workspacePullStates).has(r)}getResultId(e,n){var s;const r=$r.asKey(n);return(s=(e===zt.document?this.documentPullStates:this.workspacePullStates).get(r))==null?void 0:s.resultId}getAllResultIds(){const e=[];for(let[n,r]of this.workspacePullStates)this.documentPullStates.has(n)&&(r=this.documentPullStates.get(n)),r.resultId!==void 0&&e.push({uri:n,value:r.resultId});return e}}class a6{constructor(e,n,r){this.client=e,this.tabs=n,this.options=r,this.isDisposed=!1,this.onDidChangeDiagnosticsEmitter=new Ue.EventEmitter,this.provider=this.createProvider(),this.diagnostics=Ue.languages.createDiagnosticCollection(r.identifier),this.openRequests=new Map,this.documentStates=new o6,this.workspaceErrorCounter=0}knows(e,n){const r=n instanceof Ue.Uri?n:n.uri;return this.documentStates.tracks(e,n)||this.openRequests.has(r.toString())}forget(e,n){this.documentStates.unTrack(e,n)}pull(e,n){if(this.isDisposed)return;const r=e instanceof Ue.Uri?e:e.uri;this.pullAsync(e).then(()=>{n&&n()},i=>{this.client.error(`Document pull failed for text document ${r.toString()}`,i,!1)})}async pullAsync(e,n){if(this.isDisposed)return;const r=e instanceof Ue.Uri,i=r?e:e.uri,s=i.toString();n=r?n:e.version;const o=this.openRequests.get(s),a=r?this.documentStates.track(zt.document,e,n):this.documentStates.track(zt.document,e);if(o===void 0){const c=new Ue.CancellationTokenSource;this.openRequests.set(s,{state:un.active,document:e,version:n,tokenSource:c});let l,f;try{l=await this.provider.provideDiagnostics(e,a.resultId,c.token)??{kind:Kn.DocumentDiagnosticReportKind.full,items:[]}}catch(p){if(p instanceof O1.LSPCancellationError&&Pt.DiagnosticServerCancellationData.is(p.data)&&p.data.retriggerRequest===!1&&(f={state:un.outDated,document:e}),f===void 0&&p instanceof Ue.CancellationError)f={state:un.reschedule,document:e};else throw p}if(f=f??this.openRequests.get(s),f===void 0){this.client.error(`Lost request state in diagnostic pull model. Clearing diagnostics for ${s}`),this.diagnostics.delete(i);return}if(this.openRequests.delete(s),!this.tabs.isVisible(e)){this.documentStates.unTrack(zt.document,e);return}if(f.state===un.outDated)return;l!==void 0&&(l.kind===Kn.DocumentDiagnosticReportKind.full&&this.diagnostics.set(i,l.items),a.pulledVersion=n,a.resultId=l.resultId),f.state===un.reschedule&&this.pull(e)}else o.state===un.active?(o.tokenSource.cancel(),this.openRequests.set(s,{state:un.reschedule,document:o.document})):o.state===un.outDated&&this.openRequests.set(s,{state:un.reschedule,document:o.document})}forgetDocument(e){const n=e instanceof Ue.Uri?e:e.uri,r=n.toString(),i=this.openRequests.get(r);this.options.workspaceDiagnostics?i!==void 0?this.openRequests.set(r,{state:un.reschedule,document:e}):this.pull(e,()=>{this.forget(zt.document,e)}):(i!==void 0&&(i.state===un.active&&i.tokenSource.cancel(),this.openRequests.set(r,{state:un.outDated,document:e})),this.diagnostics.delete(n),this.forget(zt.document,e))}pullWorkspace(){this.isDisposed||this.pullWorkspaceAsync().then(()=>{this.workspaceTimeout=(0,Pt.RAL)().timer.setTimeout(()=>{this.pullWorkspace()},2e3)},e=>{!(e instanceof O1.LSPCancellationError)&&!Pt.DiagnosticServerCancellationData.is(e.data)&&(this.client.error("Workspace diagnostic pull failed.",e,!1),this.workspaceErrorCounter++),this.workspaceErrorCounter<=5&&(this.workspaceTimeout=(0,Pt.RAL)().timer.setTimeout(()=>{this.pullWorkspace()},2e3))})}async pullWorkspaceAsync(){if(!this.provider.provideWorkspaceDiagnostics||this.isDisposed)return;this.workspaceCancellation!==void 0&&(this.workspaceCancellation.cancel(),this.workspaceCancellation=void 0),this.workspaceCancellation=new Ue.CancellationTokenSource;const e=this.documentStates.getAllResultIds().map(n=>({uri:this.client.protocol2CodeConverter.asUri(n.uri),value:n.value}));await this.provider.provideWorkspaceDiagnostics(e,this.workspaceCancellation.token,n=>{if(!(!n||this.isDisposed))for(const r of n.items)r.kind===Kn.DocumentDiagnosticReportKind.full&&(this.documentStates.tracks(zt.document,r.uri)||this.diagnostics.set(r.uri,r.items)),this.documentStates.update(zt.workspace,r.uri,r.version??void 0,r.resultId)})}createProvider(){const e={onDidChangeDiagnostics:this.onDidChangeDiagnosticsEmitter.event,provideDiagnostics:(n,r,i)=>{const s=(a,c,l)=>{const f={identifier:this.options.identifier,textDocument:{uri:this.client.code2ProtocolConverter.asUri(a instanceof Ue.Uri?a:a.uri)},previousResultId:c};return this.isDisposed===!0||!this.client.isRunning()?{kind:Kn.DocumentDiagnosticReportKind.full,items:[]}:this.client.sendRequest(Pt.DocumentDiagnosticRequest.type,f,l).then(async p=>p==null||this.isDisposed||l.isCancellationRequested?{kind:Kn.DocumentDiagnosticReportKind.full,items:[]}:p.kind===Pt.DocumentDiagnosticReportKind.Full?{kind:Kn.DocumentDiagnosticReportKind.full,resultId:p.resultId,items:await this.client.protocol2CodeConverter.asDiagnostics(p.items,l)}:{kind:Kn.DocumentDiagnosticReportKind.unChanged,resultId:p.resultId},p=>this.client.handleFailedRequest(Pt.DocumentDiagnosticRequest.type,l,p,{kind:Kn.DocumentDiagnosticReportKind.full,items:[]}))},o=this.client.middleware;return o.provideDiagnostics?o.provideDiagnostics(n,r,i,s):s(n,r,i)}};return this.options.workspaceDiagnostics&&(e.provideWorkspaceDiagnostics=(n,r,i)=>{const s=async l=>l.kind===Pt.DocumentDiagnosticReportKind.Full?{kind:Kn.DocumentDiagnosticReportKind.full,uri:this.client.protocol2CodeConverter.asUri(l.uri),resultId:l.resultId,version:l.version,items:await this.client.protocol2CodeConverter.asDiagnostics(l.items,r)}:{kind:Kn.DocumentDiagnosticReportKind.unChanged,uri:this.client.protocol2CodeConverter.asUri(l.uri),resultId:l.resultId,version:l.version},o=l=>{const f=[];for(const p of l)f.push({uri:this.client.code2ProtocolConverter.asUri(p.uri),value:p.value});return f},a=(l,f)=>{const p=(0,s6.generateUuid)(),g=this.client.onProgress(Pt.WorkspaceDiagnosticRequest.partialResult,p,async C=>{if(C==null){i(null);return}const k={items:[]};for(const M of C.items)try{k.items.push(await s(M))}catch(H){this.client.error("Converting workspace diagnostics failed.",H)}i(k)}),_={identifier:this.options.identifier,previousResultIds:o(l),partialResultToken:p};return this.isDisposed===!0||!this.client.isRunning()?{items:[]}:this.client.sendRequest(Pt.WorkspaceDiagnosticRequest.type,_,f).then(async C=>{if(f.isCancellationRequested)return{items:[]};const k={items:[]};for(const M of C.items)k.items.push(await s(M));return g.dispose(),i(k),{items:[]}},C=>(g.dispose(),this.client.handleFailedRequest(Pt.DocumentDiagnosticRequest.type,f,C,{items:[]})))},c=this.client.middleware;return c.provideWorkspaceDiagnostics?c.provideWorkspaceDiagnostics(n,r,i,a):a(n,r)}),e}dispose(){var e,n;this.isDisposed=!0,(e=this.workspaceCancellation)==null||e.cancel(),(n=this.workspaceTimeout)==null||n.dispose();for(const[r,i]of this.openRequests)i.state===un.active&&i.tokenSource.cancel(),this.openRequests.set(r,{state:un.outDated,document:i.document});this.diagnostics.dispose()}}class c6{constructor(e){this.diagnosticRequestor=e,this.documents=new Pt.LinkedMap,this.isDisposed=!1}add(e){if(this.isDisposed===!0)return;const n=$r.asKey(e);this.documents.has(n)||(this.documents.set(n,e,Pt.Touch.Last),this.trigger())}remove(e){const n=$r.asKey(e);this.documents.delete(n),this.documents.size===0?this.stop():n===this.endDocumentKey()&&(this.endDocument=this.documents.last)}trigger(){if(this.isDisposed!==!0){if(this.intervalHandle!==void 0){this.endDocument=this.documents.last;return}this.endDocument=this.documents.last,this.intervalHandle=(0,Pt.RAL)().timer.setInterval(()=>{const e=this.documents.first;if(e!==void 0){const n=$r.asKey(e);this.diagnosticRequestor.pull(e),this.documents.set(n,e,Pt.Touch.Last),n===this.endDocumentKey()&&this.stop()}},200)}}dispose(){this.isDisposed=!0,this.stop(),this.documents.clear()}stop(){var e;(e=this.intervalHandle)==null||e.dispose(),this.intervalHandle=void 0,this.endDocument=void 0}endDocumentKey(){return this.endDocument!==void 0?$r.asKey(this.endDocument):void 0}}class l6{constructor(e,n,r){var C;const i=e.clientOptions.diagnosticPullOptions??{onChange:!0,onSave:!1},s=e.protocol2CodeConverter.asDocumentSelector(r.documentSelector),o=[],a=k=>{const M=r.documentSelector;if(i.match!==void 0)return i.match(M,k);for(const H of M)if(Pt.TextDocumentFilter.is(H)){if(typeof H=="string"||H.language!==void 0&&H.language!=="*"||H.scheme!==void 0&&H.scheme!=="*"&&H.scheme!==k.scheme)return!1;if(H.pattern!==void 0){const K=new i6.Minimatch(H.pattern,{noext:!0});if(!K.makeRe()||!K.match(k.fsPath))return!1}}return!0},c=k=>k instanceof Ue.Uri?a(k):Ue.languages.match(s,k)>0&&n.isVisible(k),l=k=>{var M;return k instanceof Ue.Uri?((M=this.activeTextDocument)==null?void 0:M.uri.toString())===k.toString():this.activeTextDocument===k};this.diagnosticRequestor=new a6(e,n,r),this.backgroundScheduler=new c6(this.diagnosticRequestor);const f=k=>{!c(k)||!r.interFileDependencies||l(k)||this.backgroundScheduler.add(k)};this.activeTextDocument=(C=Ue.window.activeTextEditor)==null?void 0:C.document,Ue.window.onDidChangeActiveTextEditor(k=>{const M=this.activeTextDocument;this.activeTextDocument=k==null?void 0:k.document,M!==void 0&&f(M),this.activeTextDocument!==void 0&&this.backgroundScheduler.remove(this.activeTextDocument)});const p=e.getFeature(Pt.DidOpenTextDocumentNotification.method);o.push(p.onNotificationSent(k=>{const M=k.textDocument;this.diagnosticRequestor.knows(zt.document,M)||c(M)&&this.diagnosticRequestor.pull(M,()=>{f(M)})})),o.push(n.onOpen(k=>{for(const M of k){if(this.diagnosticRequestor.knows(zt.document,M))continue;const H=M.toString();let K;for(const j of Ue.workspace.textDocuments)if(H===j.uri.toString()){K=j;break}K!==void 0&&c(K)&&this.diagnosticRequestor.pull(K,()=>{f(K)})}}));const g=new Set;for(const k of Ue.workspace.textDocuments)c(k)&&(this.diagnosticRequestor.pull(k,()=>{f(k)}),g.add(k.uri.toString()));if(i.onTabs===!0)for(const k of n.getTabResources())!g.has(k.toString())&&c(k)&&this.diagnosticRequestor.pull(k,()=>{f(k)});if(i.onChange===!0){const k=e.getFeature(Pt.DidChangeTextDocumentNotification.method);o.push(k.onNotificationSent(async M=>{const H=M.textDocument;(i.filter===void 0||!i.filter(H,bc.onType))&&this.diagnosticRequestor.knows(zt.document,H)&&this.diagnosticRequestor.pull(H,()=>{this.backgroundScheduler.trigger()})}))}if(i.onSave===!0){const k=e.getFeature(Pt.DidSaveTextDocumentNotification.method);o.push(k.onNotificationSent(M=>{const H=M.textDocument;(i.filter===void 0||!i.filter(H,bc.onSave))&&this.diagnosticRequestor.knows(zt.document,H)&&this.diagnosticRequestor.pull(M.textDocument,()=>{this.backgroundScheduler.trigger()})}))}const _=e.getFeature(Pt.DidCloseTextDocumentNotification.method);o.push(_.onNotificationSent(k=>{this.cleanUpDocument(k.textDocument)})),n.onClose(k=>{for(const M of k)this.cleanUpDocument(M)}),this.diagnosticRequestor.onDidChangeDiagnosticsEmitter.event(()=>{for(const k of Ue.workspace.textDocuments)c(k)&&this.diagnosticRequestor.pull(k)}),r.workspaceDiagnostics===!0&&r.identifier!=="da348dc5-c30a-4515-9d98-31ff3be38d14"&&this.diagnosticRequestor.pullWorkspace(),this.disposable=Ue.Disposable.from(...o,this.backgroundScheduler,this.diagnosticRequestor)}get onDidChangeDiagnosticsEmitter(){return this.diagnosticRequestor.onDidChangeDiagnosticsEmitter}get diagnostics(){return this.diagnosticRequestor.provider}cleanUpDocument(e){this.diagnosticRequestor.knows(zt.document,e)&&(this.diagnosticRequestor.forgetDocument(e),this.backgroundScheduler.remove(e))}}class u6 extends O1.TextDocumentLanguageFeature{constructor(e){super(e,Pt.DocumentDiagnosticRequest.type)}fillClientCapabilities(e){let n=ba(ba(e,"textDocument"),"diagnostic");n.dynamicRegistration=!0,n.relatedDocumentSupport=!1,ba(ba(e,"workspace"),"diagnostics").refreshSupport=!0}initialize(e,n){this._client.onRequest(Pt.DiagnosticRefreshRequest.type,async()=>{for(const o of this.getAllProviders())o.onDidChangeDiagnosticsEmitter.fire()});let[i,s]=this.getRegistration(n,e.diagnosticProvider);!i||!s||this.register({id:i,registerOptions:s})}clear(){this.tabs!==void 0&&(this.tabs.dispose(),this.tabs=void 0),super.clear()}registerLanguageProvider(e){this.tabs===void 0&&(this.tabs=new Ro);const n=new l6(this._client,this.tabs,e);return[n.disposable,n]}}Ur.DiagnosticFeature=u6;var Xt={},Gc={},Zt={};Object.defineProperty(Zt,"__esModule",{value:!0});Zt.forEach=Zt.mapAsync=Zt.map=Zt.clearTestMode=Zt.setTestMode=Zt.Semaphore=Zt.Delayer=void 0;const ca=ye;class d6{constructor(e){this.defaultDelay=e,this.timeout=void 0,this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0}trigger(e,n=this.defaultDelay){return this.task=e,n>=0&&this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(r=>{this.onSuccess=r}).then(()=>{this.completionPromise=void 0,this.onSuccess=void 0;var r=this.task();return this.task=void 0,r})),(n>=0||this.timeout===void 0)&&(this.timeout=(0,ca.RAL)().timer.setTimeout(()=>{this.timeout=void 0,this.onSuccess(void 0)},n>=0?n:this.defaultDelay)),this.completionPromise}forceDelivery(){if(!this.completionPromise)return;this.cancelTimeout();let e=this.task();return this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0,e}isTriggered(){return this.timeout!==void 0}cancel(){this.cancelTimeout(),this.completionPromise=void 0}cancelTimeout(){this.timeout!==void 0&&(this.timeout.dispose(),this.timeout=void 0)}}Zt.Delayer=d6;let f6=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((n,r)=>{this._waiting.push({thunk:e,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,ca.RAL)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const n=e.thunk();n instanceof Promise?n.then(r=>{this._active--,e.resolve(r),this.runNext()},r=>{this._active--,e.reject(r),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};Zt.Semaphore=f6;let up=!1;function h6(){up=!0}Zt.setTestMode=h6;function p6(){up=!1}Zt.clearTestMode=p6;const v0=15;class dp{constructor(e=v0){this.yieldAfter=up===!0?Math.max(e,2):Math.max(e,v0),this.startTime=Date.now(),this.counter=0,this.total=0,this.counterInterval=1}start(){this.counter=0,this.total=0,this.counterInterval=1,this.startTime=Date.now()}shouldYield(){if(++this.counter>=this.counterInterval){const e=Date.now()-this.startTime,n=Math.max(0,this.yieldAfter-e);if(this.total+=this.counter,this.counter=0,e>=this.yieldAfter||n<=1)return this.counterInterval=1,this.total=0,!0;switch(e){case 0:case 1:this.counterInterval=this.total*2;break}}return!1}}async function g6(t,e,n,r){if(t.length===0)return[];const i=new Array(t.length),s=new dp(r==null?void 0:r.yieldAfter);function o(c){s.start();for(let l=c;l<t.length;l++)if(i[l]=e(t[l]),s.shouldYield())return r!=null&&r.yieldCallback&&r.yieldCallback(),l+1;return-1}let a=o(0);for(;a!==-1&&!(n!==void 0&&n.isCancellationRequested);)a=await new Promise(c=>{(0,ca.RAL)().timer.setImmediate(()=>{c(o(a))})});return i}Zt.map=g6;async function m6(t,e,n,r){if(t.length===0)return[];const i=new Array(t.length),s=new dp(r==null?void 0:r.yieldAfter);async function o(c){s.start();for(let l=c;l<t.length;l++)if(i[l]=await e(t[l],n),s.shouldYield())return r!=null&&r.yieldCallback&&r.yieldCallback(),l+1;return-1}let a=await o(0);for(;a!==-1&&!(n!==void 0&&n.isCancellationRequested);)a=await new Promise(c=>{(0,ca.RAL)().timer.setImmediate(()=>{c(o(a))})});return i}Zt.mapAsync=m6;async function y6(t,e,n,r){if(t.length===0)return;const i=new dp(r==null?void 0:r.yieldAfter);function s(a){i.start();for(let c=a;c<t.length;c++)if(e(t[c]),i.shouldYield())return r!=null&&r.yieldCallback&&r.yieldCallback(),c+1;return-1}let o=s(0);for(;o!==-1&&!(n!==void 0&&n.isCancellationRequested);)o=await new Promise(a=>{(0,ca.RAL)().timer.setImmediate(()=>{a(s(o))})})}Zt.forEach=y6;var Qc={};Object.defineProperty(Qc,"__esModule",{value:!0});const b6=Re;class v6 extends b6.CompletionItem{constructor(e){super(e)}}Qc.default=v6;var Jc={};Object.defineProperty(Jc,"__esModule",{value:!0});const w6=Re;class C6 extends w6.CodeLens{constructor(e){super(e)}}Jc.default=C6;var Yc={};Object.defineProperty(Yc,"__esModule",{value:!0});const _6=Re;class S6 extends _6.DocumentLink{constructor(e,n){super(e,n)}}Yc.default=S6;var Xc={};Object.defineProperty(Xc,"__esModule",{value:!0});const D6=Re;class T6 extends D6.CodeAction{constructor(e,n){super(e),this.data=n}}Xc.default=T6;var Yi={};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.ProtocolDiagnostic=Yi.DiagnosticCode=void 0;const k6=Re,Yl=Ye;var w0;(function(t){function e(n){const r=n;return r!=null&&(Yl.number(r.value)||Yl.string(r.value))&&Yl.string(r.target)}t.is=e})(w0||(Yi.DiagnosticCode=w0={}));class R6 extends k6.Diagnostic{constructor(e,n,r,i){super(e,n,r),this.data=i,this.hasDiagnosticCode=!1}}Yi.ProtocolDiagnostic=R6;var Zc={};Object.defineProperty(Zc,"__esModule",{value:!0});const x6=Re;class E6 extends x6.CallHierarchyItem{constructor(e,n,r,i,s,o,a){super(e,n,r,i,s,o),a!==void 0&&(this.data=a)}}Zc.default=E6;var el={};Object.defineProperty(el,"__esModule",{value:!0});const P6=Re;class I6 extends P6.TypeHierarchyItem{constructor(e,n,r,i,s,o,a){super(e,n,r,i,s,o),a!==void 0&&(this.data=a)}}el.default=I6;var tl={};Object.defineProperty(tl,"__esModule",{value:!0});const va=Re;class M6 extends va.SymbolInformation{constructor(e,n,r,i,s){const o=!(i instanceof va.Uri);super(e,n,r,o?i:new va.Location(i,new va.Range(0,0,0,0))),this.hasRange=o,s!==void 0&&(this.data=s)}}tl.default=M6;var nl={};Object.defineProperty(nl,"__esModule",{value:!0});const O6=Re;class A6 extends O6.InlayHint{constructor(e,n,r){super(e,n,r)}}nl.default=A6;Object.defineProperty(Gc,"__esModule",{value:!0});Gc.createConverter=void 0;const $t=Re,Ee=ye,_i=Ye,C0=Zt,F6=Qc,L6=Jc,N6=Yc,_0=Xc,S0=Yi,$6=Zc,q6=el,j6=tl,H6=nl;var A1;(function(t){function e(n){const r=n;return r&&!!r.inserting&&!!r.replacing}t.is=e})(A1||(A1={}));function W6(t){const n=t||(y=>y.toString());function r(y){return n(y)}function i(y){return{uri:n(y.uri)}}function s(y){return{uri:n(y.uri),languageId:y.languageId,version:y.version,text:y.getText()}}function o(y){return{uri:n(y.uri),version:y.version}}function a(y){return{textDocument:s(y)}}function c(y){const L=y;return!!L.document&&!!L.contentChanges}function l(y){const L=y;return!!L.uri&&!!L.version}function f(y,L,te){if(l(y))return{textDocument:{uri:n(y.uri),version:y.version},contentChanges:[{text:y.getText()}]};if(c(y)){const Te=L,xe=te;return{textDocument:{uri:n(Te),version:xe},contentChanges:y.contentChanges.map(T=>{const U=T.range;return{range:{start:{line:U.start.line,character:U.start.character},end:{line:U.end.line,character:U.end.character}},rangeLength:T.rangeLength,text:T.text}})}}else throw Error("Unsupported text document change parameter")}function p(y){return{textDocument:i(y)}}function g(y,L=!1){let te={textDocument:i(y)};return L&&(te.text=y.getText()),te}function _(y){switch(y){case $t.TextDocumentSaveReason.Manual:return Ee.TextDocumentSaveReason.Manual;case $t.TextDocumentSaveReason.AfterDelay:return Ee.TextDocumentSaveReason.AfterDelay;case $t.TextDocumentSaveReason.FocusOut:return Ee.TextDocumentSaveReason.FocusOut}return Ee.TextDocumentSaveReason.Manual}function C(y){return{textDocument:i(y.document),reason:_(y.reason)}}function k(y){return{files:y.files.map(L=>({uri:n(L)}))}}function M(y){return{files:y.files.map(L=>({oldUri:n(L.oldUri),newUri:n(L.newUri)}))}}function H(y){return{files:y.files.map(L=>({uri:n(L)}))}}function K(y){return{files:y.files.map(L=>({uri:n(L)}))}}function j(y){return{files:y.files.map(L=>({oldUri:n(L.oldUri),newUri:n(L.newUri)}))}}function B(y){return{files:y.files.map(L=>({uri:n(L)}))}}function z(y,L){return{textDocument:i(y),position:I(L)}}function ne(y){switch(y){case $t.CompletionTriggerKind.TriggerCharacter:return Ee.CompletionTriggerKind.TriggerCharacter;case $t.CompletionTriggerKind.TriggerForIncompleteCompletions:return Ee.CompletionTriggerKind.TriggerForIncompleteCompletions;default:return Ee.CompletionTriggerKind.Invoked}}function G(y,L,te){return{textDocument:i(y),position:I(L),context:{triggerKind:ne(te.triggerKind),triggerCharacter:te.triggerCharacter}}}function Y(y){switch(y){case $t.SignatureHelpTriggerKind.Invoke:return Ee.SignatureHelpTriggerKind.Invoked;case $t.SignatureHelpTriggerKind.TriggerCharacter:return Ee.SignatureHelpTriggerKind.TriggerCharacter;case $t.SignatureHelpTriggerKind.ContentChange:return Ee.SignatureHelpTriggerKind.ContentChange}}function re(y){return{label:y.label}}function Le(y){return y.map(re)}function $(y){return{label:y.label,parameters:Le(y.parameters)}}function P(y){return y.map($)}function v(y){return y===void 0?y:{signatures:P(y.signatures),activeSignature:y.activeSignature,activeParameter:y.activeParameter}}function R(y,L,te){return{textDocument:i(y),position:I(L),context:{isRetrigger:te.isRetrigger,triggerCharacter:te.triggerCharacter,triggerKind:Y(te.triggerKind),activeSignatureHelp:v(te.activeSignatureHelp)}}}function I(y){return{line:y.line,character:y.character}}function E(y){return y==null?y:{line:y.line>Ee.uinteger.MAX_VALUE?Ee.uinteger.MAX_VALUE:y.line,character:y.character>Ee.uinteger.MAX_VALUE?Ee.uinteger.MAX_VALUE:y.character}}function V(y,L){return C0.map(y,E,L)}function Me(y){return y.map(E)}function we(y){return y==null?y:{start:E(y.start),end:E(y.end)}}function lt(y){return y.map(we)}function He(y){return y==null?y:Ee.Location.create(r(y.uri),we(y.range))}function Pe(y){switch(y){case $t.DiagnosticSeverity.Error:return Ee.DiagnosticSeverity.Error;case $t.DiagnosticSeverity.Warning:return Ee.DiagnosticSeverity.Warning;case $t.DiagnosticSeverity.Information:return Ee.DiagnosticSeverity.Information;case $t.DiagnosticSeverity.Hint:return Ee.DiagnosticSeverity.Hint}}function st(y){if(!y)return;let L=[];for(let te of y){let Te=Fe(te);Te!==void 0&&L.push(Te)}return L.length>0?L:void 0}function Fe(y){switch(y){case $t.DiagnosticTag.Unnecessary:return Ee.DiagnosticTag.Unnecessary;case $t.DiagnosticTag.Deprecated:return Ee.DiagnosticTag.Deprecated;default:return}}function ot(y){return{message:y.message,location:He(y.location)}}function Qe(y){return y.map(ot)}function Ft(y){if(y!=null)return _i.number(y)||_i.string(y)?y:{value:y.value,target:r(y.target)}}function Je(y){const L=Ee.Diagnostic.create(we(y.range),y.message),te=y instanceof S0.ProtocolDiagnostic?y:void 0;te!==void 0&&te.data!==void 0&&(L.data=te.data);const Te=Ft(y.code);return S0.DiagnosticCode.is(Te)?te!==void 0&&te.hasDiagnosticCode?L.code=Te:(L.code=Te.value,L.codeDescription={href:Te.target}):L.code=Te,_i.number(y.severity)&&(L.severity=Pe(y.severity)),Array.isArray(y.tags)&&(L.tags=st(y.tags)),y.relatedInformation&&(L.relatedInformation=Qe(y.relatedInformation)),y.source&&(L.source=y.source),L}function Xe(y,L){return y==null?y:C0.map(y,Je,L)}function vt(y){return y==null?y:y.map(Je)}function at(y,L){switch(y){case"$string":return L;case Ee.MarkupKind.PlainText:return{kind:y,value:L};case Ee.MarkupKind.Markdown:return{kind:y,value:L.value};default:return`Unsupported Markup content received. Kind is: ${y}`}}function oe(y){switch(y){case $t.CompletionItemTag.Deprecated:return Ee.CompletionItemTag.Deprecated}}function gt(y){if(y===void 0)return y;const L=[];for(let te of y){const Te=oe(te);Te!==void 0&&L.push(Te)}return L}function Ce(y,L){return L!==void 0?L:y+1}function Ze(y,L=!1){let te,Te;_i.string(y.label)?te=y.label:(te=y.label.label,L&&(y.label.detail!==void 0||y.label.description!==void 0)&&(Te={detail:y.label.detail,description:y.label.description}));let xe={label:te};Te!==void 0&&(xe.labelDetails=Te);let ut=y instanceof F6.default?y:void 0;y.detail&&(xe.detail=y.detail),y.documentation&&(!ut||ut.documentationFormat==="$string"?xe.documentation=y.documentation:xe.documentation=at(ut.documentationFormat,y.documentation)),y.filterText&&(xe.filterText=y.filterText),en(xe,y),_i.number(y.kind)&&(xe.kind=Ce(y.kind,ut&&ut.originalItemKind)),y.sortText&&(xe.sortText=y.sortText),y.additionalTextEdits&&(xe.additionalTextEdits=Rt(y.additionalTextEdits)),y.commitCharacters&&(xe.commitCharacters=y.commitCharacters.slice()),y.command&&(xe.command=Kt(y.command)),(y.preselect===!0||y.preselect===!1)&&(xe.preselect=y.preselect);const T=gt(y.tags);if(ut){if(ut.data!==void 0&&(xe.data=ut.data),ut.deprecated===!0||ut.deprecated===!1){if(ut.deprecated===!0&&T!==void 0&&T.length>0){const U=T.indexOf($t.CompletionItemTag.Deprecated);U!==-1&&T.splice(U,1)}xe.deprecated=ut.deprecated}ut.insertTextMode!==void 0&&(xe.insertTextMode=ut.insertTextMode)}return T!==void 0&&T.length>0&&(xe.tags=T),xe.insertTextMode===void 0&&y.keepWhitespace===!0&&(xe.insertTextMode=Ee.InsertTextMode.adjustIndentation),xe}function en(y,L){let te=Ee.InsertTextFormat.PlainText,Te,xe;L.textEdit?(Te=L.textEdit.newText,xe=L.textEdit.range):L.insertText instanceof $t.SnippetString?(te=Ee.InsertTextFormat.Snippet,Te=L.insertText.value):Te=L.insertText,L.range&&(xe=L.range),y.insertTextFormat=te,L.fromEdit&&Te!==void 0&&xe!==void 0?y.textEdit=tn(Te,xe):y.insertText=Te}function tn(y,L){return A1.is(L)?Ee.InsertReplaceEdit.create(y,we(L.inserting),we(L.replacing)):{newText:y,range:we(L)}}function Wt(y){return{range:we(y.range),newText:y.newText}}function Rt(y){return y==null?y:y.map(Wt)}function xt(y){return y<=$t.SymbolKind.TypeParameter?y+1:Ee.SymbolKind.Property}function qe(y){return y}function Ut(y){return y.map(qe)}function Ln(y,L,te){return{textDocument:i(y),position:I(L),context:{includeDeclaration:te.includeDeclaration}}}async function Dn(y,L){let te=Ee.CodeAction.create(y.title);if(y instanceof _0.default&&y.data!==void 0&&(te.data=y.data),y.kind!==void 0&&(te.kind=St(y.kind)),y.diagnostics!==void 0&&(te.diagnostics=await Xe(y.diagnostics,L)),y.edit!==void 0)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return y.command!==void 0&&(te.command=Kt(y.command)),y.isPreferred!==void 0&&(te.isPreferred=y.isPreferred),y.disabled!==void 0&&(te.disabled={reason:y.disabled.reason}),te}function Tn(y){let L=Ee.CodeAction.create(y.title);if(y instanceof _0.default&&y.data!==void 0&&(L.data=y.data),y.kind!==void 0&&(L.kind=St(y.kind)),y.diagnostics!==void 0&&(L.diagnostics=vt(y.diagnostics)),y.edit!==void 0)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return y.command!==void 0&&(L.command=Kt(y.command)),y.isPreferred!==void 0&&(L.isPreferred=y.isPreferred),y.disabled!==void 0&&(L.disabled={reason:y.disabled.reason}),L}async function Nn(y,L){if(y==null)return y;let te;return y.only&&_i.string(y.only.value)&&(te=[y.only.value]),Ee.CodeActionContext.create(await Xe(y.diagnostics,L),te,ln(y.triggerKind))}function kn(y){if(y==null)return y;let L;return y.only&&_i.string(y.only.value)&&(L=[y.only.value]),Ee.CodeActionContext.create(vt(y.diagnostics),L,ln(y.triggerKind))}function ln(y){switch(y){case $t.CodeActionTriggerKind.Invoke:return Ee.CodeActionTriggerKind.Invoked;case $t.CodeActionTriggerKind.Automatic:return Ee.CodeActionTriggerKind.Automatic;default:return}}function St(y){if(y!=null)return y.value}function mn(y){return y==null?y:Ee.InlineValueContext.create(y.frameId,we(y.stoppedLocation))}function Bn(y,L,te){return{context:Ee.InlineCompletionContext.create(te.triggerKind,te.selectedCompletionInfo),textDocument:i(y),position:E(L)}}function Kt(y){let L=Ee.Command.create(y.title,y.command);return y.arguments&&(L.arguments=y.arguments),L}function nn(y){let L=Ee.CodeLens.create(we(y.range));return y.command&&(L.command=Kt(y.command)),y instanceof L6.default&&y.data&&(L.data=y.data),L}function yn(y,L){const te={tabSize:y.tabSize,insertSpaces:y.insertSpaces};return L.trimTrailingWhitespace&&(te.trimTrailingWhitespace=!0),L.trimFinalNewlines&&(te.trimFinalNewlines=!0),L.insertFinalNewline&&(te.insertFinalNewline=!0),te}function Gt(y){return{textDocument:i(y)}}function Rn(y){return{textDocument:i(y)}}function bn(y){let L=Ee.DocumentLink.create(we(y.range));y.target&&(L.target=r(y.target)),y.tooltip!==void 0&&(L.tooltip=y.tooltip);let te=y instanceof N6.default?y:void 0;return te&&te.data&&(L.data=te.data),L}function xn(y){return{textDocument:i(y)}}function Vn(y){const L={name:y.name,kind:xt(y.kind),uri:r(y.uri),range:we(y.range),selectionRange:we(y.selectionRange)};return y.detail!==void 0&&y.detail.length>0&&(L.detail=y.detail),y.tags!==void 0&&(L.tags=Ut(y.tags)),y instanceof $6.default&&y.data!==void 0&&(L.data=y.data),L}function vn(y){const L={name:y.name,kind:xt(y.kind),uri:r(y.uri),range:we(y.range),selectionRange:we(y.selectionRange)};return y.detail!==void 0&&y.detail.length>0&&(L.detail=y.detail),y.tags!==void 0&&(L.tags=Ut(y.tags)),y instanceof q6.default&&y.data!==void 0&&(L.data=y.data),L}function mt(y){const L=y instanceof j6.default?{name:y.name,kind:xt(y.kind),location:y.hasRange?He(y.location):{uri:n(y.location.uri)},data:y.data}:{name:y.name,kind:xt(y.kind),location:He(y.location)};return y.tags!==void 0&&(L.tags=Ut(y.tags)),y.containerName!==""&&(L.containerName=y.containerName),L}function En(y){const L=typeof y.label=="string"?y.label:y.label.map($n),te=Ee.InlayHint.create(E(y.position),L);return y.kind!==void 0&&(te.kind=y.kind),y.textEdits!==void 0&&(te.textEdits=Rt(y.textEdits)),y.tooltip!==void 0&&(te.tooltip=Lt(y.tooltip)),y.paddingLeft!==void 0&&(te.paddingLeft=y.paddingLeft),y.paddingRight!==void 0&&(te.paddingRight=y.paddingRight),y instanceof H6.default&&y.data!==void 0&&(te.data=y.data),te}function $n(y){const L=Ee.InlayHintLabelPart.create(y.value);return y.location!==void 0&&(L.location=He(y.location)),y.command!==void 0&&(L.command=Kt(y.command)),y.tooltip!==void 0&&(L.tooltip=Lt(y.tooltip)),L}function Lt(y){return typeof y=="string"?y:{kind:Ee.MarkupKind.Markdown,value:y.value}}return{asUri:r,asTextDocumentIdentifier:i,asTextDocumentItem:s,asVersionedTextDocumentIdentifier:o,asOpenTextDocumentParams:a,asChangeTextDocumentParams:f,asCloseTextDocumentParams:p,asSaveTextDocumentParams:g,asWillSaveTextDocumentParams:C,asDidCreateFilesParams:k,asDidRenameFilesParams:M,asDidDeleteFilesParams:H,asWillCreateFilesParams:K,asWillRenameFilesParams:j,asWillDeleteFilesParams:B,asTextDocumentPositionParams:z,asCompletionParams:G,asSignatureHelpParams:R,asWorkerPosition:I,asRange:we,asRanges:lt,asPosition:E,asPositions:V,asPositionsSync:Me,asLocation:He,asDiagnosticSeverity:Pe,asDiagnosticTag:Fe,asDiagnostic:Je,asDiagnostics:Xe,asDiagnosticsSync:vt,asCompletionItem:Ze,asTextEdit:Wt,asSymbolKind:xt,asSymbolTag:qe,asSymbolTags:Ut,asReferenceParams:Ln,asCodeAction:Dn,asCodeActionSync:Tn,asCodeActionContext:Nn,asCodeActionContextSync:kn,asInlineValueContext:mn,asCommand:Kt,asCodeLens:nn,asFormattingOptions:yn,asDocumentSymbolParams:Gt,asCodeLensParams:Rn,asDocumentLink:bn,asDocumentLinkParams:xn,asCallHierarchyItem:Vn,asTypeHierarchyItem:vn,asInlayHint:En,asWorkspaceSymbol:mt,asInlineCompletionParams:Bn}}Gc.createConverter=W6;var rl={};Object.defineProperty(rl,"__esModule",{value:!0});rl.createConverter=void 0;const ee=Re,ke=ye,Gn=Ye,Ve=Zt,U6=Qc,z6=Jc,B6=Yc,V6=Xc,D0=Yi,K6=Zc,G6=el,Q6=tl,J6=nl,T0=ye;var vc;(function(t){function e(n){let r=n;return r&&Gn.string(r.language)&&Gn.string(r.value)}t.is=e})(vc||(vc={}));function Y6(t,e,n){const i=t||(d=>ee.Uri.parse(d));function s(d){return i(d)}function o(d){const S=[];for(const O of d)if(typeof O=="string")S.push(O);else if(T0.NotebookCellTextDocumentFilter.is(O))if(typeof O.notebook=="string")S.push({notebookType:O.notebook,language:O.language});else{const W=O.notebook.notebookType??"*";S.push({notebookType:W,scheme:O.notebook.scheme,pattern:O.notebook.pattern,language:O.language})}else T0.TextDocumentFilter.is(O)&&S.push({language:O.language,scheme:O.scheme,pattern:O.pattern});return S}async function a(d,S){return Ve.map(d,l,S)}function c(d){const S=new Array(d.length);for(let O=0;O<d.length;O++)S[O]=l(d[O]);return S}function l(d){let S=new D0.ProtocolDiagnostic(C(d.range),d.message,M(d.severity),d.data);if(d.code!==void 0){if(typeof d.code=="string"||typeof d.code=="number")ke.CodeDescription.is(d.codeDescription)?S.code={value:d.code,target:s(d.codeDescription.href)}:S.code=d.code;else if(D0.DiagnosticCode.is(d.code)){S.hasDiagnosticCode=!0;const O=d.code;S.code={value:O.value,target:s(O.target)}}}return d.source&&(S.source=d.source),d.relatedInformation&&(S.relatedInformation=f(d.relatedInformation)),Array.isArray(d.tags)&&(S.tags=p(d.tags)),S}function f(d){const S=new Array(d.length);for(let O=0;O<d.length;O++){const W=d[O];S[O]=new ee.DiagnosticRelatedInformation(Pe(W.location),W.message)}return S}function p(d){if(!d)return;let S=[];for(let O of d){let W=g(O);W!==void 0&&S.push(W)}return S.length>0?S:void 0}function g(d){switch(d){case ke.DiagnosticTag.Unnecessary:return ee.DiagnosticTag.Unnecessary;case ke.DiagnosticTag.Deprecated:return ee.DiagnosticTag.Deprecated;default:return}}function _(d){return d?new ee.Position(d.line,d.character):void 0}function C(d){return d?new ee.Range(d.start.line,d.start.character,d.end.line,d.end.character):void 0}async function k(d,S){return Ve.map(d,O=>new ee.Range(O.start.line,O.start.character,O.end.line,O.end.character),S)}function M(d){if(d==null)return ee.DiagnosticSeverity.Error;switch(d){case ke.DiagnosticSeverity.Error:return ee.DiagnosticSeverity.Error;case ke.DiagnosticSeverity.Warning:return ee.DiagnosticSeverity.Warning;case ke.DiagnosticSeverity.Information:return ee.DiagnosticSeverity.Information;case ke.DiagnosticSeverity.Hint:return ee.DiagnosticSeverity.Hint}return ee.DiagnosticSeverity.Error}function H(d){if(Gn.string(d))return j(d);if(vc.is(d))return j().appendCodeblock(d.value,d.language);if(Array.isArray(d)){let S=[];for(let O of d){let W=j();vc.is(O)?W.appendCodeblock(O.value,O.language):W.appendMarkdown(O),S.push(W)}return S}else return j(d)}function K(d){if(Gn.string(d))return d;switch(d.kind){case ke.MarkupKind.Markdown:return j(d.value);case ke.MarkupKind.PlainText:return d.value;default:return`Unsupported Markup content received. Kind is: ${d.kind}`}}function j(d){let S;if(d===void 0||typeof d=="string")S=new ee.MarkdownString(d);else switch(d.kind){case ke.MarkupKind.Markdown:S=new ee.MarkdownString(d.value);break;case ke.MarkupKind.PlainText:S=new ee.MarkdownString,S.appendText(d.value);break;default:S=new ee.MarkdownString,S.appendText(`Unsupported Markup content received. Kind is: ${d.kind}`);break}return S.isTrusted=e,S.supportHtml=n,S}function B(d){if(d)return new ee.Hover(H(d.contents),C(d.range))}async function z(d,S,O){if(!d)return;if(Array.isArray(d))return Ve.map(d,Pn=>Le(Pn,S),O);const W=d,{defaultRange:de,commitCharacters:be}=ne(W,S),_e=await Ve.map(W.items,Pn=>{var et,wi,Gs;return Le(Pn,be,de,(et=W.itemDefaults)==null?void 0:et.insertTextMode,(wi=W.itemDefaults)==null?void 0:wi.insertTextFormat,(Gs=W.itemDefaults)==null?void 0:Gs.data)},O);return new ee.CompletionList(_e,W.isIncomplete)}function ne(d,S){var de,be;const O=(de=d.itemDefaults)==null?void 0:de.editRange,W=((be=d.itemDefaults)==null?void 0:be.commitCharacters)??S;return ke.Range.is(O)?{defaultRange:C(O),commitCharacters:W}:O!==void 0?{defaultRange:{inserting:C(O.insert),replacing:C(O.replace)},commitCharacters:W}:{defaultRange:void 0,commitCharacters:W}}function G(d){return ke.CompletionItemKind.Text<=d&&d<=ke.CompletionItemKind.TypeParameter?[d-1,void 0]:[ee.CompletionItemKind.Text,d]}function Y(d){switch(d){case ke.CompletionItemTag.Deprecated:return ee.CompletionItemTag.Deprecated}}function re(d){if(d==null)return[];const S=[];for(const O of d){const W=Y(O);W!==void 0&&S.push(W)}return S}function Le(d,S,O,W,de,be){const _e=re(d.tags),Pn=$(d),et=new U6.default(Pn);d.detail&&(et.detail=d.detail),d.documentation&&(et.documentation=K(d.documentation),et.documentationFormat=Gn.string(d.documentation)?"$string":d.documentation.kind),d.filterText&&(et.filterText=d.filterText);const wi=P(d,O,de);if(wi&&(et.insertText=wi.text,et.range=wi.range,et.fromEdit=wi.fromEdit),Gn.number(d.kind)){let[zy,Cp]=G(d.kind);et.kind=zy,Cp&&(et.originalItemKind=Cp)}d.sortText&&(et.sortText=d.sortText),d.additionalTextEdits&&(et.additionalTextEdits=E(d.additionalTextEdits));const Gs=d.commitCharacters!==void 0?Gn.stringArray(d.commitCharacters)?d.commitCharacters:void 0:S;Gs&&(et.commitCharacters=Gs.slice()),d.command&&(et.command=Rt(d.command)),(d.deprecated===!0||d.deprecated===!1)&&(et.deprecated=d.deprecated,d.deprecated===!0&&_e.push(ee.CompletionItemTag.Deprecated)),(d.preselect===!0||d.preselect===!1)&&(et.preselect=d.preselect);const wp=d.data??be;wp!==void 0&&(et.data=wp),_e.length>0&&(et.tags=_e);const Fl=d.insertTextMode??W;return Fl!==void 0&&(et.insertTextMode=Fl,Fl===ke.InsertTextMode.asIs&&(et.keepWhitespace=!0)),et}function $(d){return ke.CompletionItemLabelDetails.is(d.labelDetails)?{label:d.label,detail:d.labelDetails.detail,description:d.labelDetails.description}:d.label}function P(d,S,O){const W=d.insertTextFormat??O;if(d.textEdit!==void 0||S!==void 0){const[de,be]=d.textEdit!==void 0?v(d.textEdit):[S,d.textEditText??d.label];return W===ke.InsertTextFormat.Snippet?{text:new ee.SnippetString(be),range:de,fromEdit:!0}:{text:be,range:de,fromEdit:!0}}else return d.insertText?W===ke.InsertTextFormat.Snippet?{text:new ee.SnippetString(d.insertText),fromEdit:!1}:{text:d.insertText,fromEdit:!1}:void 0}function v(d){return ke.InsertReplaceEdit.is(d)?[{inserting:C(d.insert),replacing:C(d.replace)},d.newText]:[C(d.range),d.newText]}function R(d){if(d)return new ee.TextEdit(C(d.range),d.newText)}async function I(d,S){if(d)return Ve.map(d,R,S)}function E(d){if(!d)return;const S=new Array(d.length);for(let O=0;O<d.length;O++)S[O]=R(d[O]);return S}async function V(d,S){if(!d)return;let O=new ee.SignatureHelp;return Gn.number(d.activeSignature)?O.activeSignature=d.activeSignature:O.activeSignature=0,Gn.number(d.activeParameter)?O.activeParameter=d.activeParameter:O.activeParameter=0,d.signatures&&(O.signatures=await Me(d.signatures,S)),O}async function Me(d,S){return Ve.mapAsync(d,we,S)}async function we(d,S){let O=new ee.SignatureInformation(d.label);return d.documentation!==void 0&&(O.documentation=K(d.documentation)),d.parameters!==void 0&&(O.parameters=await lt(d.parameters,S)),d.activeParameter!==void 0&&(O.activeParameter=d.activeParameter),O}function lt(d,S){return Ve.map(d,He,S)}function He(d){let S=new ee.ParameterInformation(d.label);return d.documentation&&(S.documentation=K(d.documentation)),S}function Pe(d){return d?new ee.Location(i(d.uri),C(d.range)):void 0}async function st(d,S){if(d)return Qe(d,S)}async function Fe(d,S){if(d)return Qe(d,S)}function ot(d){if(!d)return;let S={targetUri:i(d.targetUri),targetRange:C(d.targetRange),originSelectionRange:C(d.originSelectionRange),targetSelectionRange:C(d.targetSelectionRange)};if(!S.targetSelectionRange)throw new Error("targetSelectionRange must not be undefined or null");return S}async function Qe(d,S){if(d)if(Gn.array(d)){if(d.length===0)return[];if(ke.LocationLink.is(d[0])){const O=d;return Ve.map(O,ot,S)}else{const O=d;return Ve.map(O,Pe,S)}}else return ke.LocationLink.is(d)?[ot(d)]:Pe(d)}async function Ft(d,S){if(d)return Ve.map(d,Pe,S)}async function Je(d,S){if(d)return Ve.map(d,Xe,S)}function Xe(d){let S=new ee.DocumentHighlight(C(d.range));return Gn.number(d.kind)&&(S.kind=vt(d.kind)),S}function vt(d){switch(d){case ke.DocumentHighlightKind.Text:return ee.DocumentHighlightKind.Text;case ke.DocumentHighlightKind.Read:return ee.DocumentHighlightKind.Read;case ke.DocumentHighlightKind.Write:return ee.DocumentHighlightKind.Write}return ee.DocumentHighlightKind.Text}async function at(d,S){if(d)return Ve.map(d,Ze,S)}function oe(d){return d<=ke.SymbolKind.TypeParameter?d-1:ee.SymbolKind.Property}function gt(d){switch(d){case ke.SymbolTag.Deprecated:return ee.SymbolTag.Deprecated;default:return}}function Ce(d){if(d==null)return;const S=[];for(const O of d){const W=gt(O);W!==void 0&&S.push(W)}return S.length===0?void 0:S}function Ze(d){const S=d.data,O=d.location,W=O.range===void 0||S!==void 0?new Q6.default(d.name,oe(d.kind),d.containerName??"",O.range===void 0?i(O.uri):new ee.Location(i(d.location.uri),C(O.range)),S):new ee.SymbolInformation(d.name,oe(d.kind),d.containerName??"",new ee.Location(i(d.location.uri),C(O.range)));return Wt(W,d),W}async function en(d,S){if(d!=null)return Ve.map(d,tn,S)}function tn(d){let S=new ee.DocumentSymbol(d.name,d.detail||"",oe(d.kind),C(d.range),C(d.selectionRange));if(Wt(S,d),d.children!==void 0&&d.children.length>0){let O=[];for(let W of d.children)O.push(tn(W));S.children=O}return S}function Wt(d,S){d.tags=Ce(S.tags),S.deprecated&&(d.tags?d.tags.includes(ee.SymbolTag.Deprecated)||(d.tags=d.tags.concat(ee.SymbolTag.Deprecated)):d.tags=[ee.SymbolTag.Deprecated])}function Rt(d){let S={title:d.title,command:d.command};return d.arguments&&(S.arguments=d.arguments),S}async function xt(d,S){if(d)return Ve.map(d,Rt,S)}const qe=new Map;qe.set(ke.CodeActionKind.Empty,ee.CodeActionKind.Empty),qe.set(ke.CodeActionKind.QuickFix,ee.CodeActionKind.QuickFix),qe.set(ke.CodeActionKind.Refactor,ee.CodeActionKind.Refactor),qe.set(ke.CodeActionKind.RefactorExtract,ee.CodeActionKind.RefactorExtract),qe.set(ke.CodeActionKind.RefactorInline,ee.CodeActionKind.RefactorInline),qe.set(ke.CodeActionKind.RefactorRewrite,ee.CodeActionKind.RefactorRewrite),qe.set(ke.CodeActionKind.Source,ee.CodeActionKind.Source),qe.set(ke.CodeActionKind.SourceOrganizeImports,ee.CodeActionKind.SourceOrganizeImports);function Ut(d){if(d==null)return;let S=qe.get(d);if(S)return S;let O=d.split(".");S=ee.CodeActionKind.Empty;for(let W of O)S=S.append(W);return S}function Ln(d){if(d!=null)return d.map(S=>Ut(S))}async function Dn(d,S){if(d==null)return;let O=new V6.default(d.title,d.data);return d.kind!==void 0&&(O.kind=Ut(d.kind)),d.diagnostics!==void 0&&(O.diagnostics=c(d.diagnostics)),d.edit!==void 0&&(O.edit=await ln(d.edit,S)),d.command!==void 0&&(O.command=Rt(d.command)),d.isPreferred!==void 0&&(O.isPreferred=d.isPreferred),d.disabled!==void 0&&(O.disabled={reason:d.disabled.reason}),O}function Tn(d,S){return Ve.mapAsync(d,async O=>ke.Command.is(O)?Rt(O):Dn(O,S),S)}function Nn(d){if(!d)return;let S=new z6.default(C(d.range));return d.command&&(S.command=Rt(d.command)),d.data!==void 0&&d.data!==null&&(S.data=d.data),S}async function kn(d,S){if(d)return Ve.map(d,Nn,S)}async function ln(d,S){if(!d)return;const O=new Map;if(d.changeAnnotations!==void 0){const be=d.changeAnnotations;await Ve.forEach(Object.keys(be),_e=>{const Pn=St(be[_e]);O.set(_e,Pn)},S)}const W=be=>{if(be!==void 0)return O.get(be)},de=new ee.WorkspaceEdit;if(d.documentChanges){const be=d.documentChanges;await Ve.forEach(be,_e=>{if(ke.CreateFile.is(_e))de.createFile(i(_e.uri),_e.options,W(_e.annotationId));else if(ke.RenameFile.is(_e))de.renameFile(i(_e.oldUri),i(_e.newUri),_e.options,W(_e.annotationId));else if(ke.DeleteFile.is(_e))de.deleteFile(i(_e.uri),_e.options,W(_e.annotationId));else if(ke.TextDocumentEdit.is(_e)){const Pn=i(_e.textDocument.uri);for(const et of _e.edits)ke.AnnotatedTextEdit.is(et)?de.replace(Pn,C(et.range),et.newText,W(et.annotationId)):de.replace(Pn,C(et.range),et.newText)}else throw new Error(`Unknown workspace edit change received:
|
|
102
|
+
${JSON.stringify(_e,void 0,4)}`)},S)}else if(d.changes){const be=d.changes;await Ve.forEach(Object.keys(be),_e=>{de.set(i(_e),E(be[_e]))},S)}return de}function St(d){if(d!==void 0)return{label:d.label,needsConfirmation:!!d.needsConfirmation,description:d.description}}function mn(d){let S=C(d.range),O=d.target?s(d.target):void 0,W=new B6.default(S,O);return d.tooltip!==void 0&&(W.tooltip=d.tooltip),d.data!==void 0&&d.data!==null&&(W.data=d.data),W}async function Bn(d,S){if(d)return Ve.map(d,mn,S)}function Kt(d){return new ee.Color(d.red,d.green,d.blue,d.alpha)}function nn(d){return new ee.ColorInformation(C(d.range),Kt(d.color))}async function yn(d,S){if(d)return Ve.map(d,nn,S)}function Gt(d){let S=new ee.ColorPresentation(d.label);return S.additionalTextEdits=E(d.additionalTextEdits),d.textEdit&&(S.textEdit=R(d.textEdit)),S}async function Rn(d,S){if(d)return Ve.map(d,Gt,S)}function bn(d){if(d)switch(d){case ke.FoldingRangeKind.Comment:return ee.FoldingRangeKind.Comment;case ke.FoldingRangeKind.Imports:return ee.FoldingRangeKind.Imports;case ke.FoldingRangeKind.Region:return ee.FoldingRangeKind.Region}}function xn(d){return new ee.FoldingRange(d.startLine,d.endLine,bn(d.kind))}async function Vn(d,S){if(d)return Ve.map(d,xn,S)}function vn(d){return new ee.SelectionRange(C(d.range),d.parent?vn(d.parent):void 0)}async function mt(d,S){return Array.isArray(d)?Ve.map(d,vn,S):[]}function En(d){return ke.InlineValueText.is(d)?new ee.InlineValueText(C(d.range),d.text):ke.InlineValueVariableLookup.is(d)?new ee.InlineValueVariableLookup(C(d.range),d.variableName,d.caseSensitiveLookup):new ee.InlineValueEvaluatableExpression(C(d.range),d.expression)}async function $n(d,S){return Array.isArray(d)?Ve.map(d,En,S):[]}async function Lt(d,S){const O=typeof d.label=="string"?d.label:await Ve.map(d.label,y,S),W=new J6.default(_(d.position),O);return d.kind!==void 0&&(W.kind=d.kind),d.textEdits!==void 0&&(W.textEdits=await I(d.textEdits,S)),d.tooltip!==void 0&&(W.tooltip=L(d.tooltip)),d.paddingLeft!==void 0&&(W.paddingLeft=d.paddingLeft),d.paddingRight!==void 0&&(W.paddingRight=d.paddingRight),d.data!==void 0&&(W.data=d.data),W}function y(d){const S=new ee.InlayHintLabelPart(d.value);return d.location!==void 0&&(S.location=Pe(d.location)),d.tooltip!==void 0&&(S.tooltip=L(d.tooltip)),d.command!==void 0&&(S.command=Rt(d.command)),S}function L(d){return typeof d=="string"?d:j(d)}async function te(d,S){if(Array.isArray(d))return Ve.mapAsync(d,Lt,S)}function Te(d){if(d===null)return;const S=new K6.default(oe(d.kind),d.name,d.detail||"",s(d.uri),C(d.range),C(d.selectionRange),d.data);return d.tags!==void 0&&(S.tags=Ce(d.tags)),S}async function xe(d,S){if(d!==null)return Ve.map(d,Te,S)}async function ut(d,S){return new ee.CallHierarchyIncomingCall(Te(d.from),await k(d.fromRanges,S))}async function T(d,S){if(d!==null)return Ve.mapAsync(d,ut,S)}async function U(d,S){return new ee.CallHierarchyOutgoingCall(Te(d.to),await k(d.fromRanges,S))}async function X(d,S){if(d!==null)return Ve.mapAsync(d,U,S)}async function w(d,S){if(d!=null)return new ee.SemanticTokens(new Uint32Array(d.data),d.resultId)}function ge(d){return new ee.SemanticTokensEdit(d.start,d.deleteCount,d.data!==void 0?new Uint32Array(d.data):void 0)}async function me(d,S){if(d!=null)return new ee.SemanticTokensEdits(d.edits.map(ge),d.resultId)}function J(d){return d}async function h(d,S){if(d!=null)return new ee.LinkedEditingRanges(await k(d.ranges,S),D(d.wordPattern))}function D(d){if(d!=null)return new RegExp(d)}function x(d){if(d===null)return;let S=new G6.default(oe(d.kind),d.name,d.detail||"",s(d.uri),C(d.range),C(d.selectionRange),d.data);return d.tags!==void 0&&(S.tags=Ce(d.tags)),S}async function N(d,S){if(d!==null)return Ve.map(d,x,S)}function le(d){if(Gn.string(d))return d;if(ke.RelativePattern.is(d)){if(ke.URI.is(d.baseUri))return new ee.RelativePattern(s(d.baseUri),d.pattern);if(ke.WorkspaceFolder.is(d.baseUri)){const S=ee.workspace.getWorkspaceFolder(s(d.baseUri.uri));return S!==void 0?new ee.RelativePattern(S,d.pattern):void 0}}}async function ce(d,S){if(!d)return;if(Array.isArray(d))return Ve.map(d,de=>fe(de),S);const O=d,W=await Ve.map(O.items,de=>fe(de),S);return new ee.InlineCompletionList(W)}function fe(d){let S;typeof d.insertText=="string"?S=d.insertText:S=new ee.SnippetString(d.insertText.value);let O;d.command&&(O=Rt(d.command));const W=new ee.InlineCompletionItem(S,C(d.range),O);return d.filterText&&(W.filterText=d.filterText),W}return{asUri:s,asDocumentSelector:o,asDiagnostics:a,asDiagnostic:l,asRange:C,asRanges:k,asPosition:_,asDiagnosticSeverity:M,asDiagnosticTag:g,asHover:B,asCompletionResult:z,asCompletionItem:Le,asTextEdit:R,asTextEdits:I,asSignatureHelp:V,asSignatureInformations:Me,asSignatureInformation:we,asParameterInformations:lt,asParameterInformation:He,asDeclarationResult:st,asDefinitionResult:Fe,asLocation:Pe,asReferences:Ft,asDocumentHighlights:Je,asDocumentHighlight:Xe,asDocumentHighlightKind:vt,asSymbolKind:oe,asSymbolTag:gt,asSymbolTags:Ce,asSymbolInformations:at,asSymbolInformation:Ze,asDocumentSymbols:en,asDocumentSymbol:tn,asCommand:Rt,asCommands:xt,asCodeAction:Dn,asCodeActionKind:Ut,asCodeActionKinds:Ln,asCodeActionResult:Tn,asCodeLens:Nn,asCodeLenses:kn,asWorkspaceEdit:ln,asDocumentLink:mn,asDocumentLinks:Bn,asFoldingRangeKind:bn,asFoldingRange:xn,asFoldingRanges:Vn,asColor:Kt,asColorInformation:nn,asColorInformations:yn,asColorPresentation:Gt,asColorPresentations:Rn,asSelectionRange:vn,asSelectionRanges:mt,asInlineValue:En,asInlineValues:$n,asInlayHint:Lt,asInlayHints:te,asSemanticTokensLegend:J,asSemanticTokens:w,asSemanticTokensEdit:ge,asSemanticTokensEdits:me,asCallHierarchyItem:Te,asCallHierarchyItems:xe,asCallHierarchyIncomingCall:ut,asCallHierarchyIncomingCalls:T,asCallHierarchyOutgoingCall:U,asCallHierarchyOutgoingCalls:X,asLinkedEditingRanges:h,asTypeHierarchyItem:x,asTypeHierarchyItems:N,asGlobPattern:le,asInlineCompletionResult:ce,asInlineCompletionItem:fe}}rl.createConverter=Y6;var la={};Object.defineProperty(la,"__esModule",{value:!0});la.ProgressPart=void 0;const k0=Re,R0=ye,x0=Ye;class X6{constructor(e,n,r){this._client=e,this._token=n,this._reported=0,this._infinite=!1,this._lspProgressDisposable=this._client.onProgress(R0.WorkDoneProgress.type,this._token,i=>{switch(i.kind){case"begin":this.begin(i);break;case"report":this.report(i);break;case"end":this.done(),r&&r(this);break}})}begin(e){this._infinite=e.percentage===void 0,this._lspProgressDisposable!==void 0&&k0.window.withProgress({location:k0.ProgressLocation.Window,cancellable:e.cancellable,title:e.title},async(n,r)=>{if(this._lspProgressDisposable!==void 0)return this._progress=n,this._cancellationToken=r,this._tokenDisposable=this._cancellationToken.onCancellationRequested(()=>{this._client.sendNotification(R0.WorkDoneProgressCancelNotification.type,{token:this._token})}),this.report(e),new Promise((i,s)=>{this._resolve=i,this._reject=s})})}report(e){if(this._infinite&&x0.string(e.message))this._progress!==void 0&&this._progress.report({message:e.message});else if(x0.number(e.percentage)){const n=Math.max(0,Math.min(e.percentage,100)),r=Math.max(0,n-this._reported);this._reported+=r,this._progress!==void 0&&this._progress.report({message:e.message,increment:r})}}cancel(){this.cleanup(),this._reject!==void 0&&(this._reject(),this._resolve=void 0,this._reject=void 0)}done(){this.cleanup(),this._resolve!==void 0&&(this._resolve(),this._resolve=void 0,this._reject=void 0)}cleanup(){this._lspProgressDisposable!==void 0&&(this._lspProgressDisposable.dispose(),this._lspProgressDisposable=void 0),this._tokenDisposable!==void 0&&(this._tokenDisposable.dispose(),this._tokenDisposable=void 0),this._progress=void 0,this._cancellationToken=void 0}}la.ProgressPart=X6;var il={};Object.defineProperty(il,"__esModule",{value:!0});il.NotebookDocumentSyncFeature=void 0;const fn=Re,Z6=Vc,qr=ye,e3=Be,E0=Ye;function P0(t,e){return t[e]===void 0&&(t[e]={}),t[e]}var fs;(function(t){(function(e){function n(p,g){return{version:p.version,uri:g.asUri(p.uri)}}e.asVersionedNotebookDocumentIdentifier=n;function r(p,g,_){const C=qr.NotebookDocument.create(_.asUri(p.uri),p.notebookType,p.version,i(g,_));return Object.keys(p.metadata).length>0&&(C.metadata=s(p.metadata)),C}e.asNotebookDocument=r;function i(p,g){return p.map(_=>o(_,g))}e.asNotebookCells=i;function s(p){return c(new Set,p)}e.asMetadata=s;function o(p,g){const _=qr.NotebookCell.create(a(p.kind),g.asUri(p.document.uri));return Object.keys(p.metadata).length>0&&(_.metadata=s(p.metadata)),p.executionSummary!==void 0&&E0.number(p.executionSummary.executionOrder)&&E0.boolean(p.executionSummary.success)&&(_.executionSummary={executionOrder:p.executionSummary.executionOrder,success:p.executionSummary.success}),_}e.asNotebookCell=o;function a(p){switch(p){case fn.NotebookCellKind.Markup:return qr.NotebookCellKind.Markup;case fn.NotebookCellKind.Code:return qr.NotebookCellKind.Code}}function c(p,g){if(p.has(g))throw new Error("Can't deep copy cyclic structures.");if(Array.isArray(g)){const _=[];for(const C of g)if(C!==null&&typeof C=="object"||Array.isArray(C))_.push(c(p,C));else{if(C instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");_.push(C)}return _}else{const _=Object.keys(g),C=Object.create(null);for(const k of _){const M=g[k];if(M!==null&&typeof M=="object"||Array.isArray(M))C[k]=c(p,M);else{if(M instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");C[k]=M}}return C}}function l(p,g){const _=g.asChangeTextDocumentParams(p,p.document.uri,p.document.version);return{document:_.textDocument,changes:_.contentChanges}}e.asTextContentChange=l;function f(p,g){const _=Object.create(null);if(p.metadata&&(_.metadata=t.c2p.asMetadata(p.metadata)),p.cells!==void 0){const C=Object.create(null),k=p.cells;k.structure&&(C.structure={array:{start:k.structure.array.start,deleteCount:k.structure.array.deleteCount,cells:k.structure.array.cells!==void 0?k.structure.array.cells.map(M=>t.c2p.asNotebookCell(M,g)):void 0},didOpen:k.structure.didOpen!==void 0?k.structure.didOpen.map(M=>g.asOpenTextDocumentParams(M.document).textDocument):void 0,didClose:k.structure.didClose!==void 0?k.structure.didClose.map(M=>g.asCloseTextDocumentParams(M.document).textDocument):void 0}),k.data!==void 0&&(C.data=k.data.map(M=>t.c2p.asNotebookCell(M,g))),k.textContent!==void 0&&(C.textContent=k.textContent.map(M=>t.c2p.asTextContentChange(M,g))),Object.keys(C).length>0&&(_.cells=C)}return _}e.asNotebookDocumentChangeEvent=f})(t.c2p||(t.c2p={}))})(fs||(fs={}));var F1;(function(t){function e(a,c,l){const f=a.length,p=c.length;let g=0;for(;g<p&&g<f&&n(a[g],c[g],l);)g++;if(g<p&&g<f){let _=f-1,C=p-1;for(;_>=0&&C>=0&&n(a[_],c[C],l);)_--,C--;const k=_+1-g,M=g===C+1?void 0:c.slice(g,C+1);return M!==void 0?{start:g,deleteCount:k,cells:M}:{start:g,deleteCount:k}}else return g<p?{start:g,deleteCount:0,cells:c.slice(g)}:g<f?{start:g,deleteCount:f-g}:void 0}t.computeDiff=e;function n(a,c,l=!0){return a.kind!==c.kind||a.document.uri.toString()!==c.document.uri.toString()||a.document.languageId!==c.document.languageId||!r(a.executionSummary,c.executionSummary)?!1:!l||l&&s(a.metadata,c.metadata)}function r(a,c){return a===c?!0:a===void 0||c===void 0?!1:a.executionOrder===c.executionOrder&&a.success===c.success&&i(a.timing,c.timing)}function i(a,c){return a===c?!0:a===void 0||c===void 0?!1:a.startTime===c.startTime&&a.endTime===c.endTime}function s(a,c){if(a===c)return!0;if(a==null||c===null||c===void 0||typeof a!=typeof c||typeof a!="object")return!1;const l=Array.isArray(a),f=Array.isArray(c);if(l!==f)return!1;if(l&&f){if(a.length!==c.length)return!1;for(let p=0;p<a.length;p++)if(!s(a[p],c[p]))return!1}if(o(a)&&o(c)){const p=Object.keys(a),g=Object.keys(c);if(p.length!==g.length||(p.sort(),g.sort(),!s(p,g)))return!1;for(let _=0;_<p.length;_++){const C=p[_];if(!s(a[C],c[C]))return!1}return!0}return!1}function o(a){return a!==null&&typeof a=="object"}t.isObjectLiteral=o})(F1||(F1={}));var L1;(function(t){function e(n,r){if(typeof n=="string")return n==="*"||r.notebookType===n;if(n.notebookType!==void 0&&n.notebookType!=="*"&&r.notebookType!==n.notebookType)return!1;const i=r.uri;if(n.scheme!==void 0&&n.scheme!=="*"&&i.scheme!==n.scheme)return!1;if(n.pattern!==void 0){const s=new Z6.Minimatch(n.pattern,{noext:!0});if(!s.makeRe()||!s.match(i.fsPath))return!1}return!0}t.matchNotebook=e})(L1||(L1={}));var wc;(function(t){function e(r){var o,a,c;const i=r.notebookSelector,s=[];for(const l of i){const f=(typeof l.notebook=="string"?l.notebook:(o=l.notebook)==null?void 0:o.notebookType)??"*",p=typeof l.notebook=="string"||(a=l.notebook)==null?void 0:a.scheme,g=typeof l.notebook=="string"||(c=l.notebook)==null?void 0:c.pattern;if(l.cells!==void 0)for(const _ of l.cells)s.push(n(f,p,g,_.language));else s.push(n(f,p,g,void 0))}return s}t.asDocumentSelector=e;function n(r,i,s,o){return i===void 0&&s===void 0?{notebook:r,language:o}:{notebook:{notebookType:r,scheme:i,pattern:s},language:o}}})(wc||(wc={}));var Cc;(function(t){function e(n){return{cells:n,uris:new Set(n.map(r=>r.document.uri.toString()))}}t.create=e})(Cc||(Cc={}));class wa{constructor(e,n){this.client=e,this.options=n,this.notebookSyncInfo=new Map,this.notebookDidOpen=new Set,this.disposables=[],this.selector=e.protocol2CodeConverter.asDocumentSelector(wc.asDocumentSelector(n)),fn.workspace.onDidOpenNotebookDocument(r=>{this.notebookDidOpen.add(r.uri.toString()),this.didOpen(r)},void 0,this.disposables);for(const r of fn.workspace.notebookDocuments)this.notebookDidOpen.add(r.uri.toString()),this.didOpen(r);fn.workspace.onDidChangeNotebookDocument(r=>this.didChangeNotebookDocument(r),void 0,this.disposables),this.options.save===!0&&fn.workspace.onDidSaveNotebookDocument(r=>this.didSave(r),void 0,this.disposables),fn.workspace.onDidCloseNotebookDocument(r=>{this.didClose(r),this.notebookDidOpen.delete(r.uri.toString())},void 0,this.disposables)}getState(){for(const e of fn.workspace.notebookDocuments)if(this.getMatchingCells(e)!==void 0)return{kind:"document",id:"$internal",registrations:!0,matches:!0};return{kind:"document",id:"$internal",registrations:!0,matches:!1}}get mode(){return"notebook"}handles(e){return fn.languages.match(this.selector,e)>0}didOpenNotebookCellTextDocument(e,n){if(fn.languages.match(this.selector,n.document)===0||!this.notebookDidOpen.has(e.uri.toString()))return;const r=this.notebookSyncInfo.get(e.uri.toString()),i=this.cellMatches(e,n);if(r!==void 0){const s=r.uris.has(n.document.uri.toString());if(i&&s||!i&&!s)return;if(i){const o=this.getMatchingCells(e);if(o!==void 0){const a=this.asNotebookDocumentChangeEvent(e,void 0,r,o);a!==void 0&&this.doSendChange(a,o).catch(()=>{})}}}else i&&this.doSendOpen(e,[n]).catch(()=>{})}didChangeNotebookCellTextDocument(e,n){fn.languages.match(this.selector,n.document)!==0&&this.doSendChange({notebook:e,cells:{textContent:[n]}},void 0).catch(()=>{})}didCloseNotebookCellTextDocument(e,n){const r=this.notebookSyncInfo.get(e.uri.toString());if(r===void 0)return;const i=n.document.uri,s=r.cells.findIndex(o=>o.document.uri.toString()===i.toString());if(s!==-1)if(s===0&&r.cells.length===1)this.doSendClose(e,r.cells).catch(()=>{});else{const o=r.cells.slice(),a=o.splice(s,1);this.doSendChange({notebook:e,cells:{structure:{array:{start:s,deleteCount:1},didClose:a}}},o).catch(()=>{})}}dispose(){for(const e of this.disposables)e.dispose()}didOpen(e,n=this.getMatchingCells(e),r=this.notebookSyncInfo.get(e.uri.toString())){if(r!==void 0)if(n!==void 0){const i=this.asNotebookDocumentChangeEvent(e,void 0,r,n);i!==void 0&&this.doSendChange(i,n).catch(()=>{})}else this.doSendClose(e,[]).catch(()=>{});else{if(n===void 0)return;this.doSendOpen(e,n).catch(()=>{})}}didChangeNotebookDocument(e){const n=e.notebook,r=this.notebookSyncInfo.get(n.uri.toString());if(r===void 0){if(e.contentChanges.length===0)return;const i=this.getMatchingCells(n);if(i===void 0)return;this.didOpen(n,i,r)}else{const i=this.getMatchingCells(n);if(i===void 0){this.didClose(n,r);return}const s=this.asNotebookDocumentChangeEvent(e.notebook,e,r,i);s!==void 0&&this.doSendChange(s,i).catch(()=>{})}}didSave(e){this.notebookSyncInfo.get(e.uri.toString())!==void 0&&this.doSendSave(e).catch(()=>{})}didClose(e,n=this.notebookSyncInfo.get(e.uri.toString())){if(n===void 0)return;const r=e.getCells().filter(i=>n.uris.has(i.document.uri.toString()));this.doSendClose(e,r).catch(()=>{})}async sendDidOpenNotebookDocument(e){const n=this.getMatchingCells(e);if(n!==void 0)return this.doSendOpen(e,n)}async doSendOpen(e,n){var s;const r=async(o,a)=>{const c=fs.c2p.asNotebookDocument(o,a,this.client.code2ProtocolConverter),l=a.map(f=>this.client.code2ProtocolConverter.asTextDocumentItem(f.document));try{await this.client.sendNotification(qr.DidOpenNotebookDocumentNotification.type,{notebookDocument:c,cellTextDocuments:l})}catch(f){throw this.client.error("Sending DidOpenNotebookDocumentNotification failed",f),f}},i=(s=this.client.middleware)==null?void 0:s.notebooks;return this.notebookSyncInfo.set(e.uri.toString(),Cc.create(n)),(i==null?void 0:i.didOpen)!==void 0?i.didOpen(e,n,r):r(e,n)}async sendDidChangeNotebookDocument(e){return this.doSendChange(e,void 0)}async doSendChange(e,n=this.getMatchingCells(e.notebook)){var s,o;const r=async a=>{try{await this.client.sendNotification(qr.DidChangeNotebookDocumentNotification.type,{notebookDocument:fs.c2p.asVersionedNotebookDocumentIdentifier(a.notebook,this.client.code2ProtocolConverter),change:fs.c2p.asNotebookDocumentChangeEvent(a,this.client.code2ProtocolConverter)})}catch(c){throw this.client.error("Sending DidChangeNotebookDocumentNotification failed",c),c}},i=(s=this.client.middleware)==null?void 0:s.notebooks;return((o=e.cells)==null?void 0:o.structure)!==void 0&&this.notebookSyncInfo.set(e.notebook.uri.toString(),Cc.create(n??[])),(i==null?void 0:i.didChange)!==void 0?i==null?void 0:i.didChange(e,r):r(e)}async sendDidSaveNotebookDocument(e){return this.doSendSave(e)}async doSendSave(e){var i;const n=async s=>{try{await this.client.sendNotification(qr.DidSaveNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(s.uri)}})}catch(o){throw this.client.error("Sending DidSaveNotebookDocumentNotification failed",o),o}},r=(i=this.client.middleware)==null?void 0:i.notebooks;return(r==null?void 0:r.didSave)!==void 0?r.didSave(e,n):n(e)}async sendDidCloseNotebookDocument(e){return this.doSendClose(e,this.getMatchingCells(e)??[])}async doSendClose(e,n){var s;const r=async(o,a)=>{try{await this.client.sendNotification(qr.DidCloseNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(o.uri)},cellTextDocuments:a.map(c=>this.client.code2ProtocolConverter.asTextDocumentIdentifier(c.document))})}catch(c){throw this.client.error("Sending DidCloseNotebookDocumentNotification failed",c),c}},i=(s=this.client.middleware)==null?void 0:s.notebooks;return this.notebookSyncInfo.delete(e.uri.toString()),(i==null?void 0:i.didClose)!==void 0?i.didClose(e,n,r):r(e,n)}asNotebookDocumentChangeEvent(e,n,r,i){if(n!==void 0&&n.notebook!==e)throw new Error("Notebook must be identical");const s={notebook:e};(n==null?void 0:n.metadata)!==void 0&&(s.metadata=fs.c2p.asMetadata(n.metadata));let o;if((n==null?void 0:n.cellChanges)!==void 0&&n.cellChanges.length>0){const a=[];o=new Set(i.map(c=>c.document.uri.toString()));for(const c of n.cellChanges)o.has(c.cell.document.uri.toString())&&(c.executionSummary!==void 0||c.metadata!==void 0)&&a.push(c.cell);a.length>0&&(s.cells=s.cells??{},s.cells.data=a)}if(((n==null?void 0:n.contentChanges)!==void 0&&n.contentChanges.length>0||n===void 0)&&r!==void 0&&i!==void 0){const a=r.cells,c=i,l=F1.computeDiff(a,c,!1);let f,p;if(l!==void 0){f=l.cells===void 0?new Map:new Map(l.cells.map(C=>[C.document.uri.toString(),C])),p=l.deleteCount===0?new Map:new Map(a.slice(l.start,l.start+l.deleteCount).map(C=>[C.document.uri.toString(),C]));for(const C of Array.from(p.keys()))f.has(C)&&(p.delete(C),f.delete(C));s.cells=s.cells??{};const g=[],_=[];if(f.size>0||p.size>0){for(const C of f.values())g.push(C);for(const C of p.values())_.push(C)}s.cells.structure={array:l,didOpen:g,didClose:_}}}return Object.keys(s).length>1?s:void 0}getMatchingCells(e,n=e.getCells()){if(this.options.notebookSelector!==void 0){for(const r of this.options.notebookSelector)if(r.notebook===void 0||L1.matchNotebook(r.notebook,e)){const i=this.filterCells(e,n,r.cells);return i.length===0?void 0:i}}}cellMatches(e,n){const r=this.getMatchingCells(e,[n]);return r!==void 0&&r[0]===n}filterCells(e,n,r){var s;const i=r!==void 0?n.filter(o=>{const a=o.document.languageId;return r.some(c=>c.language==="*"||a===c.language)}):n;return typeof((s=this.client.clientOptions.notebookDocumentOptions)==null?void 0:s.filterCells)=="function"?this.client.clientOptions.notebookDocumentOptions.filterCells(e,i):i}}class qi{constructor(e){this.client=e,this.registrations=new Map,this.registrationType=qr.NotebookDocumentSyncRegistrationType.type,fn.workspace.onDidOpenTextDocument(n=>{if(n.uri.scheme!==qi.CellScheme)return;const[r,i]=this.findNotebookDocumentAndCell(n);if(!(r===void 0||i===void 0))for(const s of this.registrations.values())s instanceof wa&&s.didOpenNotebookCellTextDocument(r,i)}),fn.workspace.onDidChangeTextDocument(n=>{if(n.contentChanges.length===0)return;const r=n.document;if(r.uri.scheme!==qi.CellScheme)return;const[i]=this.findNotebookDocumentAndCell(r);if(i!==void 0)for(const s of this.registrations.values())s instanceof wa&&s.didChangeNotebookCellTextDocument(i,n)}),fn.workspace.onDidCloseTextDocument(n=>{if(n.uri.scheme!==qi.CellScheme)return;const[r,i]=this.findNotebookDocumentAndCell(n);if(!(r===void 0||i===void 0))for(const s of this.registrations.values())s instanceof wa&&s.didCloseNotebookCellTextDocument(r,i)})}getState(){if(this.registrations.size===0)return{kind:"document",id:this.registrationType.method,registrations:!1,matches:!1};for(const e of this.registrations.values()){const n=e.getState();if(n.kind==="document"&&n.registrations===!0&&n.matches===!0)return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!0}}return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!1}}fillClientCapabilities(e){const n=P0(P0(e,"notebookDocument"),"synchronization");n.dynamicRegistration=!0,n.executionSummarySupport=!0}preInitialize(e){const n=e.notebookDocumentSync;n!==void 0&&(this.dedicatedChannel=this.client.protocol2CodeConverter.asDocumentSelector(wc.asDocumentSelector(n)))}initialize(e){const n=e.notebookDocumentSync;if(n===void 0)return;const r=n.id??e3.generateUuid();this.register({id:r,registerOptions:n})}register(e){const n=new wa(this.client,e.registerOptions);this.registrations.set(e.id,n)}unregister(e){const n=this.registrations.get(e);n&&n.dispose()}clear(){for(const e of this.registrations.values())e.dispose();this.registrations.clear()}handles(e){if(e.uri.scheme!==qi.CellScheme)return!1;if(this.dedicatedChannel!==void 0&&fn.languages.match(this.dedicatedChannel,e)>0)return!0;for(const n of this.registrations.values())if(n.handles(e))return!0;return!1}getProvider(e){for(const n of this.registrations.values())if(n.handles(e.document))return n}findNotebookDocumentAndCell(e){const n=e.uri.toString();for(const r of fn.workspace.notebookDocuments)for(const i of r.getCells())if(i.document.uri.toString()===n)return[r,i];return[void 0,void 0]}}il.NotebookDocumentSyncFeature=qi;qi.CellScheme="vscode-notebook-cell";var hi={};Object.defineProperty(hi,"__esModule",{value:!0});hi.SyncConfigurationFeature=hi.toJSONObject=hi.ConfigurationFeature=void 0;const ks=Re,vo=ye,t3=Ye,n3=Be,I0=De;class r3{constructor(e){this._client=e}getState(){return{kind:"static"}}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.configuration=!0}initialize(){let e=this._client;e.onRequest(vo.ConfigurationRequest.type,(n,r)=>{let i=o=>{let a=[];for(let c of o.items){let l=c.scopeUri!==void 0&&c.scopeUri!==null?this._client.protocol2CodeConverter.asUri(c.scopeUri):void 0;a.push(this.getConfiguration(l,c.section!==null?c.section:void 0))}return a},s=e.middleware.workspace;return s&&s.configuration?s.configuration(n,r,i):i(n)})}getConfiguration(e,n){let r=null;if(n){let i=n.lastIndexOf(".");if(i===-1)r=Vi(ks.workspace.getConfiguration(void 0,e).get(n));else{let s=ks.workspace.getConfiguration(n.substr(0,i),e);s&&(r=Vi(s.get(n.substr(i+1))))}}else{let i=ks.workspace.getConfiguration(void 0,e);r={};for(let s of Object.keys(i))i.has(s)&&(r[s]=Vi(i.get(s)))}return r===void 0&&(r=null),r}clear(){}}hi.ConfigurationFeature=r3;function Vi(t){if(t){if(Array.isArray(t))return t.map(Vi);if(typeof t=="object"){const e=Object.create(null);for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=Vi(t[n]));return e}}return t}hi.toJSONObject=Vi;class i3{constructor(e){this._client=e,this.isCleared=!1,this._listeners=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._listeners.size>0}}get registrationType(){return vo.DidChangeConfigurationNotification.type}fillClientCapabilities(e){(0,I0.ensure)((0,I0.ensure)(e,"workspace"),"didChangeConfiguration").dynamicRegistration=!0}initialize(){var n;this.isCleared=!1;let e=(n=this._client.clientOptions.synchronize)==null?void 0:n.configurationSection;e!==void 0&&this.register({id:n3.generateUuid(),registerOptions:{section:e}})}register(e){let n=ks.workspace.onDidChangeConfiguration(r=>{this.onDidChangeConfiguration(e.registerOptions.section,r)});this._listeners.set(e.id,n),e.registerOptions.section!==void 0&&this.onDidChangeConfiguration(e.registerOptions.section,void 0)}unregister(e){let n=this._listeners.get(e);n&&(this._listeners.delete(e),n.dispose())}clear(){for(const e of this._listeners.values())e.dispose();this._listeners.clear(),this.isCleared=!0}onDidChangeConfiguration(e,n){var o;if(this.isCleared)return;let r;if(t3.string(e)?r=[e]:r=e,r!==void 0&&n!==void 0&&!r.some(c=>n.affectsConfiguration(c)))return;const i=async a=>a===void 0?this._client.sendNotification(vo.DidChangeConfigurationNotification.type,{settings:null}):this._client.sendNotification(vo.DidChangeConfigurationNotification.type,{settings:this.extractSettingsInformation(a)});let s=(o=this._client.middleware.workspace)==null?void 0:o.didChangeConfiguration;(s?s(r,i):i(r)).catch(a=>{this._client.error(`Sending notification ${vo.DidChangeConfigurationNotification.type.method} failed`,a)})}extractSettingsInformation(e){function n(s,o){let a=s;for(let c=0;c<o.length-1;c++){let l=a[o[c]];l||(l=Object.create(null),a[o[c]]=l),a=l}return a}let r=this._client.clientOptions.workspaceFolder?this._client.clientOptions.workspaceFolder.uri:void 0,i=Object.create(null);for(let s=0;s<e.length;s++){let o=e[s],a=o.indexOf("."),c=null;if(a>=0?c=ks.workspace.getConfiguration(o.substr(0,a),r).get(o.substr(a+1)):c=ks.workspace.getConfiguration(void 0,r).get(o),c){let l=e[s].split(".");n(i,l)[l[l.length-1]]=Vi(c)}}return i}}hi.SyncConfigurationFeature=i3;var An={};Object.defineProperty(An,"__esModule",{value:!0});An.DidSaveTextDocumentFeature=An.WillSaveWaitUntilFeature=An.WillSaveFeature=An.DidChangeTextDocumentFeature=An.DidCloseTextDocumentFeature=An.DidOpenTextDocumentFeature=void 0;const Un=Re,ft=ye,Tt=De,Ks=Be;class s3 extends Tt.TextDocumentEventFeature{constructor(e,n){super(e,Un.workspace.onDidOpenTextDocument,ft.DidOpenTextDocumentNotification.type,()=>e.middleware.didOpen,r=>e.code2ProtocolConverter.asOpenTextDocumentParams(r),r=>r,Tt.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=n}get openDocuments(){return this._syncedDocuments.values()}fillClientCapabilities(e){(0,Tt.ensure)((0,Tt.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,n){const r=e.resolvedTextDocumentSync;n&&r&&r.openClose&&this.register({id:Ks.generateUuid(),registerOptions:{documentSelector:n}})}get registrationType(){return ft.DidOpenTextDocumentNotification.type}register(e){if(super.register(e),!e.registerOptions.documentSelector)return;const n=this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector);Un.workspace.textDocuments.forEach(r=>{const i=r.uri.toString();if(!this._syncedDocuments.has(i)&&Un.languages.match(n,r)>0&&!this._client.hasDedicatedTextSynchronizationFeature(r)){const s=this._client.middleware,o=a=>this._client.sendNotification(this._type,this._createParams(a));(s.didOpen?s.didOpen(r,o):o(r)).catch(a=>{this._client.error(`Sending document notification ${this._type.method} failed`,a)}),this._syncedDocuments.set(i,r)}})}getTextDocument(e){return e}notificationSent(e,n,r){this._syncedDocuments.set(e.uri.toString(),e),super.notificationSent(e,n,r)}}An.DidOpenTextDocumentFeature=s3;class o3 extends Tt.TextDocumentEventFeature{constructor(e,n,r){super(e,Un.workspace.onDidCloseTextDocument,ft.DidCloseTextDocumentNotification.type,()=>e.middleware.didClose,i=>e.code2ProtocolConverter.asCloseTextDocumentParams(i),i=>i,Tt.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=n,this._pendingTextDocumentChanges=r}get registrationType(){return ft.DidCloseTextDocumentNotification.type}fillClientCapabilities(e){(0,Tt.ensure)((0,Tt.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,n){let r=e.resolvedTextDocumentSync;n&&r&&r.openClose&&this.register({id:Ks.generateUuid(),registerOptions:{documentSelector:n}})}async callback(e){await super.callback(e),this._pendingTextDocumentChanges.delete(e.uri.toString())}getTextDocument(e){return e}notificationSent(e,n,r){this._syncedDocuments.delete(e.uri.toString()),super.notificationSent(e,n,r)}unregister(e){const n=this._selectors.get(e);super.unregister(e);const r=this._selectors.values();this._syncedDocuments.forEach(i=>{if(Un.languages.match(n,i)>0&&!this._selectorFilter(r,i)&&!this._client.hasDedicatedTextSynchronizationFeature(i)){let s=this._client.middleware,o=a=>this._client.sendNotification(this._type,this._createParams(a));this._syncedDocuments.delete(i.uri.toString()),(s.didClose?s.didClose(i,o):o(i)).catch(a=>{this._client.error(`Sending document notification ${this._type.method} failed`,a)})}})}}An.DidCloseTextDocumentFeature=o3;class a3 extends Tt.DynamicDocumentFeature{constructor(e,n){super(e),this._changeData=new Map,this._onNotificationSent=new Un.EventEmitter,this._onPendingChangeAdded=new Un.EventEmitter,this._pendingTextDocumentChanges=n,this._syncKind=ft.TextDocumentSyncKind.None}get onNotificationSent(){return this._onNotificationSent.event}get onPendingChangeAdded(){return this._onPendingChangeAdded.event}get syncKind(){return this._syncKind}get registrationType(){return ft.DidChangeTextDocumentNotification.type}fillClientCapabilities(e){(0,Tt.ensure)((0,Tt.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,n){let r=e.resolvedTextDocumentSync;n&&r&&r.change!==void 0&&r.change!==ft.TextDocumentSyncKind.None&&this.register({id:Ks.generateUuid(),registerOptions:Object.assign({},{documentSelector:n},{syncKind:r.change})})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=Un.workspace.onDidChangeTextDocument(this.callback,this)),this._changeData.set(e.id,{syncKind:e.registerOptions.syncKind,documentSelector:this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)}),this.updateSyncKind(e.registerOptions.syncKind))}*getDocumentSelectors(){for(const e of this._changeData.values())yield e.documentSelector}async callback(e){if(e.contentChanges.length===0)return;const n=e.document.uri,r=e.document.version,i=[];for(const s of this._changeData.values())if(Un.languages.match(s.documentSelector,e.document)>0&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){const o=this._client.middleware;if(s.syncKind===ft.TextDocumentSyncKind.Incremental){const a=async c=>{const l=this._client.code2ProtocolConverter.asChangeTextDocumentParams(c,n,r);await this._client.sendNotification(ft.DidChangeTextDocumentNotification.type,l),this.notificationSent(c.document,ft.DidChangeTextDocumentNotification.type,l)};i.push(o.didChange?o.didChange(e,c=>a(c)):a(e))}else if(s.syncKind===ft.TextDocumentSyncKind.Full){const a=async c=>{const l=c.document.uri.toString();this._pendingTextDocumentChanges.set(l,c.document),this._onPendingChangeAdded.fire()};i.push(o.didChange?o.didChange(e,c=>a(c)):a(e))}}return Promise.all(i).then(void 0,s=>{throw this._client.error(`Sending document notification ${ft.DidChangeTextDocumentNotification.type.method} failed`,s),s})}notificationSent(e,n,r){this._onNotificationSent.fire({textDocument:e,type:n,params:r})}unregister(e){if(this._changeData.delete(e),this._changeData.size===0)this._listener&&(this._listener.dispose(),this._listener=void 0),this._syncKind=ft.TextDocumentSyncKind.None;else{this._syncKind=ft.TextDocumentSyncKind.None;for(const n of this._changeData.values())if(this.updateSyncKind(n.syncKind),this._syncKind===ft.TextDocumentSyncKind.Full)break}}clear(){this._pendingTextDocumentChanges.clear(),this._changeData.clear(),this._syncKind=ft.TextDocumentSyncKind.None,this._listener&&(this._listener.dispose(),this._listener=void 0)}getPendingDocumentChanges(e){if(this._pendingTextDocumentChanges.size===0)return[];let n;if(e.size===0)n=Array.from(this._pendingTextDocumentChanges.values()),this._pendingTextDocumentChanges.clear();else{n=[];for(const r of this._pendingTextDocumentChanges)e.has(r[0])||(n.push(r[1]),this._pendingTextDocumentChanges.delete(r[0]))}return n}getProvider(e){for(const n of this._changeData.values())if(Un.languages.match(n.documentSelector,e)>0)return{send:r=>this.callback(r)}}updateSyncKind(e){if(this._syncKind!==ft.TextDocumentSyncKind.Full)switch(e){case ft.TextDocumentSyncKind.Full:this._syncKind=e;break;case ft.TextDocumentSyncKind.Incremental:this._syncKind===ft.TextDocumentSyncKind.None&&(this._syncKind=ft.TextDocumentSyncKind.Incremental);break}}}An.DidChangeTextDocumentFeature=a3;class c3 extends Tt.TextDocumentEventFeature{constructor(e){super(e,Un.workspace.onWillSaveTextDocument,ft.WillSaveTextDocumentNotification.type,()=>e.middleware.willSave,n=>e.code2ProtocolConverter.asWillSaveTextDocumentParams(n),n=>n.document,(n,r)=>Tt.TextDocumentEventFeature.textDocumentFilter(n,r.document))}get registrationType(){return ft.WillSaveTextDocumentNotification.type}fillClientCapabilities(e){let n=(0,Tt.ensure)((0,Tt.ensure)(e,"textDocument"),"synchronization");n.willSave=!0}initialize(e,n){let r=e.resolvedTextDocumentSync;n&&r&&r.willSave&&this.register({id:Ks.generateUuid(),registerOptions:{documentSelector:n}})}getTextDocument(e){return e.document}}An.WillSaveFeature=c3;class l3 extends Tt.DynamicDocumentFeature{constructor(e){super(e),this._selectors=new Map}getDocumentSelectors(){return this._selectors.values()}get registrationType(){return ft.WillSaveTextDocumentWaitUntilRequest.type}fillClientCapabilities(e){let n=(0,Tt.ensure)((0,Tt.ensure)(e,"textDocument"),"synchronization");n.willSaveWaitUntil=!0}initialize(e,n){let r=e.resolvedTextDocumentSync;n&&r&&r.willSaveWaitUntil&&this.register({id:Ks.generateUuid(),registerOptions:{documentSelector:n}})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=Un.workspace.onWillSaveTextDocument(this.callback,this)),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)))}callback(e){if(Tt.TextDocumentEventFeature.textDocumentFilter(this._selectors.values(),e.document)&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){let n=this._client.middleware,r=i=>this._client.sendRequest(ft.WillSaveTextDocumentWaitUntilRequest.type,this._client.code2ProtocolConverter.asWillSaveTextDocumentParams(i)).then(async s=>{let o=await this._client.protocol2CodeConverter.asTextEdits(s);return o===void 0?[]:o});e.waitUntil(n.willSaveWaitUntil?n.willSaveWaitUntil(e,r):r(e))}}unregister(e){this._selectors.delete(e),this._selectors.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._selectors.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}}An.WillSaveWaitUntilFeature=l3;class u3 extends Tt.TextDocumentEventFeature{constructor(e){super(e,Un.workspace.onDidSaveTextDocument,ft.DidSaveTextDocumentNotification.type,()=>e.middleware.didSave,n=>e.code2ProtocolConverter.asSaveTextDocumentParams(n,this._includeText),n=>n,Tt.TextDocumentEventFeature.textDocumentFilter),this._includeText=!1}get registrationType(){return ft.DidSaveTextDocumentNotification.type}fillClientCapabilities(e){(0,Tt.ensure)((0,Tt.ensure)(e,"textDocument"),"synchronization").didSave=!0}initialize(e,n){const r=e.resolvedTextDocumentSync;if(n&&r&&r.save){const i=typeof r.save=="boolean"?{includeText:!1}:{includeText:!!r.save.includeText};this.register({id:Ks.generateUuid(),registerOptions:Object.assign({},{documentSelector:n},i)})}}register(e){this._includeText=!!e.registerOptions.includeText,super.register(e)}getTextDocument(e){return e}}An.DidSaveTextDocumentFeature=u3;var sl={};Object.defineProperty(sl,"__esModule",{value:!0});sl.CompletionItemFeature=void 0;const d3=Re,We=ye,Xl=De,f3=Be,h3=[We.CompletionItemKind.Text,We.CompletionItemKind.Method,We.CompletionItemKind.Function,We.CompletionItemKind.Constructor,We.CompletionItemKind.Field,We.CompletionItemKind.Variable,We.CompletionItemKind.Class,We.CompletionItemKind.Interface,We.CompletionItemKind.Module,We.CompletionItemKind.Property,We.CompletionItemKind.Unit,We.CompletionItemKind.Value,We.CompletionItemKind.Enum,We.CompletionItemKind.Keyword,We.CompletionItemKind.Snippet,We.CompletionItemKind.Color,We.CompletionItemKind.File,We.CompletionItemKind.Reference,We.CompletionItemKind.Folder,We.CompletionItemKind.EnumMember,We.CompletionItemKind.Constant,We.CompletionItemKind.Struct,We.CompletionItemKind.Event,We.CompletionItemKind.Operator,We.CompletionItemKind.TypeParameter];class p3 extends Xl.TextDocumentLanguageFeature{constructor(e){super(e,We.CompletionRequest.type),this.labelDetailsSupport=new Map}fillClientCapabilities(e){let n=(0,Xl.ensure)((0,Xl.ensure)(e,"textDocument"),"completion");n.dynamicRegistration=!0,n.contextSupport=!0,n.completionItem={snippetSupport:!0,commitCharactersSupport:!0,documentationFormat:[We.MarkupKind.Markdown,We.MarkupKind.PlainText],deprecatedSupport:!0,preselectSupport:!0,tagSupport:{valueSet:[We.CompletionItemTag.Deprecated]},insertReplaceSupport:!0,resolveSupport:{properties:["documentation","detail","additionalTextEdits"]},insertTextModeSupport:{valueSet:[We.InsertTextMode.asIs,We.InsertTextMode.adjustIndentation]},labelDetailsSupport:!0},n.insertTextMode=We.InsertTextMode.adjustIndentation,n.completionItemKind={valueSet:h3},n.completionList={itemDefaults:["commitCharacters","editRange","insertTextFormat","insertTextMode","data"]}}initialize(e,n){const r=this.getRegistrationOptions(n,e.completionProvider);r&&this.register({id:f3.generateUuid(),registerOptions:r})}registerLanguageProvider(e,n){var a;this.labelDetailsSupport.set(n,!!((a=e.completionItem)!=null&&a.labelDetailsSupport));const r=e.triggerCharacters??[],i=e.allCommitCharacters,s=e.documentSelector,o={provideCompletionItems:(c,l,f,p)=>{const g=this._client,_=this._client.middleware,C=(k,M,H,K)=>g.sendRequest(We.CompletionRequest.type,g.code2ProtocolConverter.asCompletionParams(k,M,H),K).then(j=>K.isCancellationRequested?null:g.protocol2CodeConverter.asCompletionResult(j,i,K),j=>g.handleFailedRequest(We.CompletionRequest.type,K,j,null));return _.provideCompletionItem?_.provideCompletionItem(c,l,p,f,C):C(c,l,p,f)},resolveCompletionItem:e.resolveProvider?(c,l)=>{const f=this._client,p=this._client.middleware,g=(_,C)=>f.sendRequest(We.CompletionResolveRequest.type,f.code2ProtocolConverter.asCompletionItem(_,!!this.labelDetailsSupport.get(n)),C).then(k=>C.isCancellationRequested?null:f.protocol2CodeConverter.asCompletionItem(k),k=>f.handleFailedRequest(We.CompletionResolveRequest.type,C,k,_));return p.resolveCompletionItem?p.resolveCompletionItem(c,l,g):g(c,l)}:void 0};return[d3.languages.registerCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(s),o,...r),o]}}sl.CompletionItemFeature=p3;var ol={};Object.defineProperty(ol,"__esModule",{value:!0});ol.HoverFeature=void 0;const g3=Re,Xs=ye,Zl=De,m3=Be;class y3 extends Zl.TextDocumentLanguageFeature{constructor(e){super(e,Xs.HoverRequest.type)}fillClientCapabilities(e){const n=(0,Zl.ensure)((0,Zl.ensure)(e,"textDocument"),"hover");n.dynamicRegistration=!0,n.contentFormat=[Xs.MarkupKind.Markdown,Xs.MarkupKind.PlainText]}initialize(e,n){const r=this.getRegistrationOptions(n,e.hoverProvider);r&&this.register({id:m3.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideHover:(i,s,o)=>{const a=this._client,c=(f,p,g)=>a.sendRequest(Xs.HoverRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,p),g).then(_=>g.isCancellationRequested?null:a.protocol2CodeConverter.asHover(_),_=>a.handleFailedRequest(Xs.HoverRequest.type,g,_,null)),l=a.middleware;return l.provideHover?l.provideHover(i,s,o,c):c(i,s,o)}};return[this.registerProvider(n,r),r]}registerProvider(e,n){return g3.languages.registerHoverProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}ol.HoverFeature=y3;var al={};Object.defineProperty(al,"__esModule",{value:!0});al.DefinitionFeature=void 0;const b3=Re,eu=ye,tu=De,v3=Be;class w3 extends tu.TextDocumentLanguageFeature{constructor(e){super(e,eu.DefinitionRequest.type)}fillClientCapabilities(e){let n=(0,tu.ensure)((0,tu.ensure)(e,"textDocument"),"definition");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.definitionProvider);r&&this.register({id:v3.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideDefinition:(i,s,o)=>{const a=this._client,c=(f,p,g)=>a.sendRequest(eu.DefinitionRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,p),g).then(_=>g.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(_,g),_=>a.handleFailedRequest(eu.DefinitionRequest.type,g,_,null)),l=a.middleware;return l.provideDefinition?l.provideDefinition(i,s,o,c):c(i,s,o)}};return[this.registerProvider(n,r),r]}registerProvider(e,n){return b3.languages.registerDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}al.DefinitionFeature=w3;var cl={};Object.defineProperty(cl,"__esModule",{value:!0});cl.SignatureHelpFeature=void 0;const M0=Re,Zs=ye,nu=De,C3=Be;class _3 extends nu.TextDocumentLanguageFeature{constructor(e){super(e,Zs.SignatureHelpRequest.type)}fillClientCapabilities(e){let n=(0,nu.ensure)((0,nu.ensure)(e,"textDocument"),"signatureHelp");n.dynamicRegistration=!0,n.signatureInformation={documentationFormat:[Zs.MarkupKind.Markdown,Zs.MarkupKind.PlainText]},n.signatureInformation.parameterInformation={labelOffsetSupport:!0},n.signatureInformation.activeParameterSupport=!0,n.contextSupport=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.signatureHelpProvider);r&&this.register({id:C3.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n={provideSignatureHelp:(r,i,s,o)=>{const a=this._client,c=(f,p,g,_)=>a.sendRequest(Zs.SignatureHelpRequest.type,a.code2ProtocolConverter.asSignatureHelpParams(f,p,g),_).then(C=>_.isCancellationRequested?null:a.protocol2CodeConverter.asSignatureHelp(C,_),C=>a.handleFailedRequest(Zs.SignatureHelpRequest.type,_,C,null)),l=a.middleware;return l.provideSignatureHelp?l.provideSignatureHelp(r,i,o,s,c):c(r,i,o,s)}};return[this.registerProvider(e,n),n]}registerProvider(e,n){const r=this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector);if(e.retriggerCharacters===void 0){const i=e.triggerCharacters||[];return M0.languages.registerSignatureHelpProvider(r,n,...i)}else{const i={triggerCharacters:e.triggerCharacters||[],retriggerCharacters:e.retriggerCharacters||[]};return M0.languages.registerSignatureHelpProvider(r,n,i)}}}cl.SignatureHelpFeature=_3;var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.DocumentHighlightFeature=void 0;const S3=Re,ru=ye,iu=De,D3=Be;class T3 extends iu.TextDocumentLanguageFeature{constructor(e){super(e,ru.DocumentHighlightRequest.type)}fillClientCapabilities(e){(0,iu.ensure)((0,iu.ensure)(e,"textDocument"),"documentHighlight").dynamicRegistration=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.documentHighlightProvider);r&&this.register({id:D3.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideDocumentHighlights:(i,s,o)=>{const a=this._client,c=(f,p,g)=>a.sendRequest(ru.DocumentHighlightRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,p),g).then(_=>g.isCancellationRequested?null:a.protocol2CodeConverter.asDocumentHighlights(_,g),_=>a.handleFailedRequest(ru.DocumentHighlightRequest.type,g,_,null)),l=a.middleware;return l.provideDocumentHighlights?l.provideDocumentHighlights(i,s,o,c):c(i,s,o)}};return[S3.languages.registerDocumentHighlightProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),r]}}ll.DocumentHighlightFeature=T3;var fp={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentSymbolFeature=t.SupportedSymbolTags=t.SupportedSymbolKinds=void 0;const e=Re,n=ye,r=De,i=Be;t.SupportedSymbolKinds=[n.SymbolKind.File,n.SymbolKind.Module,n.SymbolKind.Namespace,n.SymbolKind.Package,n.SymbolKind.Class,n.SymbolKind.Method,n.SymbolKind.Property,n.SymbolKind.Field,n.SymbolKind.Constructor,n.SymbolKind.Enum,n.SymbolKind.Interface,n.SymbolKind.Function,n.SymbolKind.Variable,n.SymbolKind.Constant,n.SymbolKind.String,n.SymbolKind.Number,n.SymbolKind.Boolean,n.SymbolKind.Array,n.SymbolKind.Object,n.SymbolKind.Key,n.SymbolKind.Null,n.SymbolKind.EnumMember,n.SymbolKind.Struct,n.SymbolKind.Event,n.SymbolKind.Operator,n.SymbolKind.TypeParameter],t.SupportedSymbolTags=[n.SymbolTag.Deprecated];class s extends r.TextDocumentLanguageFeature{constructor(a){super(a,n.DocumentSymbolRequest.type)}fillClientCapabilities(a){let c=(0,r.ensure)((0,r.ensure)(a,"textDocument"),"documentSymbol");c.dynamicRegistration=!0,c.symbolKind={valueSet:t.SupportedSymbolKinds},c.hierarchicalDocumentSymbolSupport=!0,c.tagSupport={valueSet:t.SupportedSymbolTags},c.labelSupport=!0}initialize(a,c){const l=this.getRegistrationOptions(c,a.documentSymbolProvider);l&&this.register({id:i.generateUuid(),registerOptions:l})}registerLanguageProvider(a){const c=a.documentSelector,l={provideDocumentSymbols:(p,g)=>{const _=this._client,C=async(M,H)=>{try{const K=await _.sendRequest(n.DocumentSymbolRequest.type,_.code2ProtocolConverter.asDocumentSymbolParams(M),H);if(H.isCancellationRequested||K===void 0||K===null)return null;if(K.length===0)return[];{const j=K[0];return n.DocumentSymbol.is(j)?await _.protocol2CodeConverter.asDocumentSymbols(K,H):await _.protocol2CodeConverter.asSymbolInformations(K,H)}}catch(K){return _.handleFailedRequest(n.DocumentSymbolRequest.type,H,K,null)}},k=_.middleware;return k.provideDocumentSymbols?k.provideDocumentSymbols(p,g,C):C(p,g)}},f=a.label!==void 0?{label:a.label}:void 0;return[e.languages.registerDocumentSymbolProvider(this._client.protocol2CodeConverter.asDocumentSelector(c),l,f),l]}}t.DocumentSymbolFeature=s})(fp);var ul={};Object.defineProperty(ul,"__esModule",{value:!0});ul.WorkspaceSymbolFeature=void 0;const k3=Re,eo=ye,su=De,O0=fp,R3=Be;class x3 extends su.WorkspaceFeature{constructor(e){super(e,eo.WorkspaceSymbolRequest.type)}fillClientCapabilities(e){let n=(0,su.ensure)((0,su.ensure)(e,"workspace"),"symbol");n.dynamicRegistration=!0,n.symbolKind={valueSet:O0.SupportedSymbolKinds},n.tagSupport={valueSet:O0.SupportedSymbolTags},n.resolveSupport={properties:["location.range"]}}initialize(e){e.workspaceSymbolProvider&&this.register({id:R3.generateUuid(),registerOptions:e.workspaceSymbolProvider===!0?{workDoneProgress:!1}:e.workspaceSymbolProvider})}registerLanguageProvider(e){const n={provideWorkspaceSymbols:(r,i)=>{const s=this._client,o=(c,l)=>s.sendRequest(eo.WorkspaceSymbolRequest.type,{query:c},l).then(f=>l.isCancellationRequested?null:s.protocol2CodeConverter.asSymbolInformations(f,l),f=>s.handleFailedRequest(eo.WorkspaceSymbolRequest.type,l,f,null)),a=s.middleware;return a.provideWorkspaceSymbols?a.provideWorkspaceSymbols(r,i,o):o(r,i)},resolveWorkspaceSymbol:e.resolveProvider===!0?(r,i)=>{const s=this._client,o=(c,l)=>s.sendRequest(eo.WorkspaceSymbolResolveRequest.type,s.code2ProtocolConverter.asWorkspaceSymbol(c),l).then(f=>l.isCancellationRequested?null:s.protocol2CodeConverter.asSymbolInformation(f),f=>s.handleFailedRequest(eo.WorkspaceSymbolResolveRequest.type,l,f,null)),a=s.middleware;return a.resolveWorkspaceSymbol?a.resolveWorkspaceSymbol(r,i,o):o(r,i)}:void 0};return[k3.languages.registerWorkspaceSymbolProvider(n),n]}}ul.WorkspaceSymbolFeature=x3;var dl={};Object.defineProperty(dl,"__esModule",{value:!0});dl.ReferencesFeature=void 0;const E3=Re,ou=ye,au=De,P3=Be;class I3 extends au.TextDocumentLanguageFeature{constructor(e){super(e,ou.ReferencesRequest.type)}fillClientCapabilities(e){(0,au.ensure)((0,au.ensure)(e,"textDocument"),"references").dynamicRegistration=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.referencesProvider);r&&this.register({id:P3.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideReferences:(i,s,o,a)=>{const c=this._client,l=(p,g,_,C)=>c.sendRequest(ou.ReferencesRequest.type,c.code2ProtocolConverter.asReferenceParams(p,g,_),C).then(k=>C.isCancellationRequested?null:c.protocol2CodeConverter.asReferences(k,C),k=>c.handleFailedRequest(ou.ReferencesRequest.type,C,k,null)),f=c.middleware;return f.provideReferences?f.provideReferences(i,s,o,a,l):l(i,s,o,a)}};return[this.registerProvider(n,r),r]}registerProvider(e,n){return E3.languages.registerReferenceProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}dl.ReferencesFeature=I3;var fl={};Object.defineProperty(fl,"__esModule",{value:!0});fl.CodeActionFeature=void 0;const M3=Re,qn=ye,O3=Be,cu=De;class A3 extends cu.TextDocumentLanguageFeature{constructor(e){super(e,qn.CodeActionRequest.type)}fillClientCapabilities(e){const n=(0,cu.ensure)((0,cu.ensure)(e,"textDocument"),"codeAction");n.dynamicRegistration=!0,n.isPreferredSupport=!0,n.disabledSupport=!0,n.dataSupport=!0,n.resolveSupport={properties:["edit"]},n.codeActionLiteralSupport={codeActionKind:{valueSet:[qn.CodeActionKind.Empty,qn.CodeActionKind.QuickFix,qn.CodeActionKind.Refactor,qn.CodeActionKind.RefactorExtract,qn.CodeActionKind.RefactorInline,qn.CodeActionKind.RefactorRewrite,qn.CodeActionKind.Source,qn.CodeActionKind.SourceOrganizeImports]}},n.honorsChangeAnnotations=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.codeActionProvider);r&&this.register({id:O3.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideCodeActions:(i,s,o,a)=>{const c=this._client,l=async(p,g,_,C)=>{const k={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(p),range:c.code2ProtocolConverter.asRange(g),context:c.code2ProtocolConverter.asCodeActionContextSync(_)};return c.sendRequest(qn.CodeActionRequest.type,k,C).then(M=>C.isCancellationRequested||M===null||M===void 0?null:c.protocol2CodeConverter.asCodeActionResult(M,C),M=>c.handleFailedRequest(qn.CodeActionRequest.type,C,M,null))},f=c.middleware;return f.provideCodeActions?f.provideCodeActions(i,s,o,a,l):l(i,s,o,a)},resolveCodeAction:e.resolveProvider?(i,s)=>{const o=this._client,a=this._client.middleware,c=async(l,f)=>o.sendRequest(qn.CodeActionResolveRequest.type,o.code2ProtocolConverter.asCodeActionSync(l),f).then(p=>f.isCancellationRequested?l:o.protocol2CodeConverter.asCodeAction(p,f),p=>o.handleFailedRequest(qn.CodeActionResolveRequest.type,f,p,l));return a.resolveCodeAction?a.resolveCodeAction(i,s,c):c(i,s)}:void 0};return[M3.languages.registerCodeActionsProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r,e.codeActionKinds?{providedCodeActionKinds:this._client.protocol2CodeConverter.asCodeActionKinds(e.codeActionKinds)}:void 0),r]}}fl.CodeActionFeature=A3;var hl={};Object.defineProperty(hl,"__esModule",{value:!0});hl.CodeLensFeature=void 0;const A0=Re,ss=ye,F3=Be,to=De;class L3 extends to.TextDocumentLanguageFeature{constructor(e){super(e,ss.CodeLensRequest.type)}fillClientCapabilities(e){(0,to.ensure)((0,to.ensure)(e,"textDocument"),"codeLens").dynamicRegistration=!0,(0,to.ensure)((0,to.ensure)(e,"workspace"),"codeLens").refreshSupport=!0}initialize(e,n){this._client.onRequest(ss.CodeLensRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeCodeLensEmitter.fire()});const i=this.getRegistrationOptions(n,e.codeLensProvider);i&&this.register({id:F3.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r=new A0.EventEmitter,i={onDidChangeCodeLenses:r.event,provideCodeLenses:(s,o)=>{const a=this._client,c=(f,p)=>a.sendRequest(ss.CodeLensRequest.type,a.code2ProtocolConverter.asCodeLensParams(f),p).then(g=>p.isCancellationRequested?null:a.protocol2CodeConverter.asCodeLenses(g,p),g=>a.handleFailedRequest(ss.CodeLensRequest.type,p,g,null)),l=a.middleware;return l.provideCodeLenses?l.provideCodeLenses(s,o,c):c(s,o)},resolveCodeLens:e.resolveProvider?(s,o)=>{const a=this._client,c=(f,p)=>a.sendRequest(ss.CodeLensResolveRequest.type,a.code2ProtocolConverter.asCodeLens(f),p).then(g=>p.isCancellationRequested?f:a.protocol2CodeConverter.asCodeLens(g),g=>a.handleFailedRequest(ss.CodeLensResolveRequest.type,p,g,f)),l=a.middleware;return l.resolveCodeLens?l.resolveCodeLens(s,o,c):c(s,o)}:void 0};return[A0.languages.registerCodeLensProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),{provider:i,onDidChangeCodeLensEmitter:r}]}}hl.CodeLensFeature=L3;var pi={};Object.defineProperty(pi,"__esModule",{value:!0});pi.DocumentOnTypeFormattingFeature=pi.DocumentRangeFormattingFeature=pi.DocumentFormattingFeature=void 0;const pl=Re,cr=ye,hp=Be,zr=De;var Us;(function(t){function e(n){const r=pl.workspace.getConfiguration("files",n);return{trimTrailingWhitespace:r.get("trimTrailingWhitespace"),trimFinalNewlines:r.get("trimFinalNewlines"),insertFinalNewline:r.get("insertFinalNewline")}}t.fromConfiguration=e})(Us||(Us={}));class N3 extends zr.TextDocumentLanguageFeature{constructor(e){super(e,cr.DocumentFormattingRequest.type)}fillClientCapabilities(e){(0,zr.ensure)((0,zr.ensure)(e,"textDocument"),"formatting").dynamicRegistration=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.documentFormattingProvider);r&&this.register({id:hp.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideDocumentFormattingEdits:(i,s,o)=>{const a=this._client,c=(f,p,g)=>{const _={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(f),options:a.code2ProtocolConverter.asFormattingOptions(p,Us.fromConfiguration(f))};return a.sendRequest(cr.DocumentFormattingRequest.type,_,g).then(C=>g.isCancellationRequested?null:a.protocol2CodeConverter.asTextEdits(C,g),C=>a.handleFailedRequest(cr.DocumentFormattingRequest.type,g,C,null))},l=a.middleware;return l.provideDocumentFormattingEdits?l.provideDocumentFormattingEdits(i,s,o,c):c(i,s,o)}};return[pl.languages.registerDocumentFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),r]}}pi.DocumentFormattingFeature=N3;class $3 extends zr.TextDocumentLanguageFeature{constructor(e){super(e,cr.DocumentRangeFormattingRequest.type)}fillClientCapabilities(e){const n=(0,zr.ensure)((0,zr.ensure)(e,"textDocument"),"rangeFormatting");n.dynamicRegistration=!0,n.rangesSupport=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.documentRangeFormattingProvider);r&&this.register({id:hp.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideDocumentRangeFormattingEdits:(i,s,o,a)=>{const c=this._client,l=(p,g,_,C)=>{const k={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(p),range:c.code2ProtocolConverter.asRange(g),options:c.code2ProtocolConverter.asFormattingOptions(_,Us.fromConfiguration(p))};return c.sendRequest(cr.DocumentRangeFormattingRequest.type,k,C).then(M=>C.isCancellationRequested?null:c.protocol2CodeConverter.asTextEdits(M,C),M=>c.handleFailedRequest(cr.DocumentRangeFormattingRequest.type,C,M,null))},f=c.middleware;return f.provideDocumentRangeFormattingEdits?f.provideDocumentRangeFormattingEdits(i,s,o,a,l):l(i,s,o,a)}};return e.rangesSupport&&(r.provideDocumentRangesFormattingEdits=(i,s,o,a)=>{const c=this._client,l=(p,g,_,C)=>{const k={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(p),ranges:c.code2ProtocolConverter.asRanges(g),options:c.code2ProtocolConverter.asFormattingOptions(_,Us.fromConfiguration(p))};return c.sendRequest(cr.DocumentRangesFormattingRequest.type,k,C).then(M=>C.isCancellationRequested?null:c.protocol2CodeConverter.asTextEdits(M,C),M=>c.handleFailedRequest(cr.DocumentRangesFormattingRequest.type,C,M,null))},f=c.middleware;return f.provideDocumentRangesFormattingEdits?f.provideDocumentRangesFormattingEdits(i,s,o,a,l):l(i,s,o,a)}),[pl.languages.registerDocumentRangeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),r]}}pi.DocumentRangeFormattingFeature=$3;class q3 extends zr.TextDocumentLanguageFeature{constructor(e){super(e,cr.DocumentOnTypeFormattingRequest.type)}fillClientCapabilities(e){(0,zr.ensure)((0,zr.ensure)(e,"textDocument"),"onTypeFormatting").dynamicRegistration=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.documentOnTypeFormattingProvider);r&&this.register({id:hp.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideOnTypeFormattingEdits:(s,o,a,c,l)=>{const f=this._client,p=(_,C,k,M,H)=>{let K={textDocument:f.code2ProtocolConverter.asTextDocumentIdentifier(_),position:f.code2ProtocolConverter.asPosition(C),ch:k,options:f.code2ProtocolConverter.asFormattingOptions(M,Us.fromConfiguration(_))};return f.sendRequest(cr.DocumentOnTypeFormattingRequest.type,K,H).then(j=>H.isCancellationRequested?null:f.protocol2CodeConverter.asTextEdits(j,H),j=>f.handleFailedRequest(cr.DocumentOnTypeFormattingRequest.type,H,j,null))},g=f.middleware;return g.provideOnTypeFormattingEdits?g.provideOnTypeFormattingEdits(s,o,a,c,l,p):p(s,o,a,c,l)}},i=e.moreTriggerCharacter||[];return[pl.languages.registerOnTypeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r,e.firstTriggerCharacter,...i),r]}}pi.DocumentOnTypeFormattingFeature=q3;var gl={};Object.defineProperty(gl,"__esModule",{value:!0});gl.RenameFeature=void 0;const j3=Re,Si=ye,H3=Be,F0=Ye,lu=De;class W3 extends lu.TextDocumentLanguageFeature{constructor(e){super(e,Si.RenameRequest.type)}fillClientCapabilities(e){let n=(0,lu.ensure)((0,lu.ensure)(e,"textDocument"),"rename");n.dynamicRegistration=!0,n.prepareSupport=!0,n.prepareSupportDefaultBehavior=Si.PrepareSupportDefaultBehavior.Identifier,n.honorsChangeAnnotations=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.renameProvider);r&&(F0.boolean(e.renameProvider)&&(r.prepareProvider=!1),this.register({id:H3.generateUuid(),registerOptions:r}))}registerLanguageProvider(e){const n=e.documentSelector,r={provideRenameEdits:(i,s,o,a)=>{const c=this._client,l=(p,g,_,C)=>{let k={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(p),position:c.code2ProtocolConverter.asPosition(g),newName:_};return c.sendRequest(Si.RenameRequest.type,k,C).then(M=>C.isCancellationRequested?null:c.protocol2CodeConverter.asWorkspaceEdit(M,C),M=>c.handleFailedRequest(Si.RenameRequest.type,C,M,null,!1))},f=c.middleware;return f.provideRenameEdits?f.provideRenameEdits(i,s,o,a,l):l(i,s,o,a)},prepareRename:e.prepareProvider?(i,s,o)=>{const a=this._client,c=(f,p,g)=>{let _={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(f),position:a.code2ProtocolConverter.asPosition(p)};return a.sendRequest(Si.PrepareRenameRequest.type,_,g).then(C=>g.isCancellationRequested?null:Si.Range.is(C)?a.protocol2CodeConverter.asRange(C):this.isDefaultBehavior(C)?C.defaultBehavior===!0?null:Promise.reject(new Error("The element can't be renamed.")):C&&Si.Range.is(C.range)?{range:a.protocol2CodeConverter.asRange(C.range),placeholder:C.placeholder}:Promise.reject(new Error("The element can't be renamed.")),C=>{throw typeof C.message=="string"?new Error(C.message):new Error("The element can't be renamed.")})},l=a.middleware;return l.prepareRename?l.prepareRename(i,s,o,c):c(i,s,o)}:void 0};return[this.registerProvider(n,r),r]}registerProvider(e,n){return j3.languages.registerRenameProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}isDefaultBehavior(e){const n=e;return n&&F0.boolean(n.defaultBehavior)}}gl.RenameFeature=W3;var ml={};Object.defineProperty(ml,"__esModule",{value:!0});ml.DocumentLinkFeature=void 0;const U3=Re,no=ye,uu=De,z3=Be;class B3 extends uu.TextDocumentLanguageFeature{constructor(e){super(e,no.DocumentLinkRequest.type)}fillClientCapabilities(e){const n=(0,uu.ensure)((0,uu.ensure)(e,"textDocument"),"documentLink");n.dynamicRegistration=!0,n.tooltipSupport=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.documentLinkProvider);r&&this.register({id:z3.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideDocumentLinks:(i,s)=>{const o=this._client,a=(l,f)=>o.sendRequest(no.DocumentLinkRequest.type,o.code2ProtocolConverter.asDocumentLinkParams(l),f).then(p=>f.isCancellationRequested?null:o.protocol2CodeConverter.asDocumentLinks(p,f),p=>o.handleFailedRequest(no.DocumentLinkRequest.type,f,p,null)),c=o.middleware;return c.provideDocumentLinks?c.provideDocumentLinks(i,s,a):a(i,s)},resolveDocumentLink:e.resolveProvider?(i,s)=>{const o=this._client;let a=(l,f)=>o.sendRequest(no.DocumentLinkResolveRequest.type,o.code2ProtocolConverter.asDocumentLink(l),f).then(p=>f.isCancellationRequested?l:o.protocol2CodeConverter.asDocumentLink(p),p=>o.handleFailedRequest(no.DocumentLinkResolveRequest.type,f,p,l));const c=o.middleware;return c.resolveDocumentLink?c.resolveDocumentLink(i,s,a):a(i,s)}:void 0};return[U3.languages.registerDocumentLinkProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),r]}}ml.DocumentLinkFeature=B3;var yl={};Object.defineProperty(yl,"__esModule",{value:!0});yl.ExecuteCommandFeature=void 0;const V3=Re,du=ye,K3=Be,L0=De;class G3{constructor(e){this._client=e,this._commands=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._commands.size>0}}get registrationType(){return du.ExecuteCommandRequest.type}fillClientCapabilities(e){(0,L0.ensure)((0,L0.ensure)(e,"workspace"),"executeCommand").dynamicRegistration=!0}initialize(e){e.executeCommandProvider&&this.register({id:K3.generateUuid(),registerOptions:Object.assign({},e.executeCommandProvider)})}register(e){const n=this._client,r=n.middleware,i=(s,o)=>{let a={command:s,arguments:o};return n.sendRequest(du.ExecuteCommandRequest.type,a).then(void 0,c=>n.handleFailedRequest(du.ExecuteCommandRequest.type,void 0,c,void 0))};if(e.registerOptions.commands){const s=[];for(const o of e.registerOptions.commands)s.push(V3.commands.registerCommand(o,(...a)=>r.executeCommand?r.executeCommand(o,a,i):i(o,a)));this._commands.set(e.id,s)}}unregister(e){let n=this._commands.get(e);n&&n.forEach(r=>r.dispose())}clear(){this._commands.forEach(e=>{e.forEach(n=>n.dispose())}),this._commands.clear()}}yl.ExecuteCommandFeature=G3;var bl={};Object.defineProperty(bl,"__esModule",{value:!0});bl.FileSystemWatcherFeature=void 0;const Q3=Re,Di=ye,Ca=De;class J3{constructor(e,n){this._client=e,this._notifyFileEvent=n,this._watchers=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._watchers.size>0}}get registrationType(){return Di.DidChangeWatchedFilesNotification.type}fillClientCapabilities(e){(0,Ca.ensure)((0,Ca.ensure)(e,"workspace"),"didChangeWatchedFiles").dynamicRegistration=!0,(0,Ca.ensure)((0,Ca.ensure)(e,"workspace"),"didChangeWatchedFiles").relativePatternSupport=!0}initialize(e,n){}register(e){if(!Array.isArray(e.registerOptions.watchers))return;const n=[];for(const r of e.registerOptions.watchers){const i=this._client.protocol2CodeConverter.asGlobPattern(r.globPattern);if(i===void 0)continue;let s=!0,o=!0,a=!0;r.kind!==void 0&&r.kind!==null&&(s=(r.kind&Di.WatchKind.Create)!==0,o=(r.kind&Di.WatchKind.Change)!==0,a=(r.kind&Di.WatchKind.Delete)!==0);const c=Q3.workspace.createFileSystemWatcher(i,!s,!o,!a);this.hookListeners(c,s,o,a,n),n.push(c)}this._watchers.set(e.id,n)}registerRaw(e,n){let r=[];for(let i of n)this.hookListeners(i,!0,!0,!0,r);this._watchers.set(e,r)}hookListeners(e,n,r,i,s){n&&e.onDidCreate(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:Di.FileChangeType.Created}),null,s),r&&e.onDidChange(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:Di.FileChangeType.Changed}),null,s),i&&e.onDidDelete(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:Di.FileChangeType.Deleted}),null,s)}unregister(e){let n=this._watchers.get(e);if(n)for(let r of n)r.dispose()}clear(){this._watchers.forEach(e=>{for(let n of e)n.dispose()}),this._watchers.clear()}}bl.FileSystemWatcherFeature=J3;var vl={};Object.defineProperty(vl,"__esModule",{value:!0});vl.ColorProviderFeature=void 0;const Y3=Re,ro=ye,fu=De;class X3 extends fu.TextDocumentLanguageFeature{constructor(e){super(e,ro.DocumentColorRequest.type)}fillClientCapabilities(e){(0,fu.ensure)((0,fu.ensure)(e,"textDocument"),"colorProvider").dynamicRegistration=!0}initialize(e,n){let[r,i]=this.getRegistration(n,e.colorProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r={provideColorPresentations:(i,s,o)=>{const a=this._client,c=(f,p,g)=>{const _={color:f,textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(p.document),range:a.code2ProtocolConverter.asRange(p.range)};return a.sendRequest(ro.ColorPresentationRequest.type,_,g).then(C=>g.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorPresentations(C,g),C=>a.handleFailedRequest(ro.ColorPresentationRequest.type,g,C,null))},l=a.middleware;return l.provideColorPresentations?l.provideColorPresentations(i,s,o,c):c(i,s,o)},provideDocumentColors:(i,s)=>{const o=this._client,a=(l,f)=>{const p={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(l)};return o.sendRequest(ro.DocumentColorRequest.type,p,f).then(g=>f.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorInformations(g,f),g=>o.handleFailedRequest(ro.DocumentColorRequest.type,f,g,null))},c=o.middleware;return c.provideDocumentColors?c.provideDocumentColors(i,s,a):a(i,s)}};return[Y3.languages.registerColorProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),r]}}vl.ColorProviderFeature=X3;var wl={};Object.defineProperty(wl,"__esModule",{value:!0});wl.ImplementationFeature=void 0;const Z3=Re,hu=ye,pu=De;class eS extends pu.TextDocumentLanguageFeature{constructor(e){super(e,hu.ImplementationRequest.type)}fillClientCapabilities(e){let n=(0,pu.ensure)((0,pu.ensure)(e,"textDocument"),"implementation");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){let[r,i]=this.getRegistration(n,e.implementationProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r={provideImplementation:(i,s,o)=>{const a=this._client,c=(f,p,g)=>a.sendRequest(hu.ImplementationRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,p),g).then(_=>g.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(_,g),_=>a.handleFailedRequest(hu.ImplementationRequest.type,g,_,null)),l=a.middleware;return l.provideImplementation?l.provideImplementation(i,s,o,c):c(i,s,o)}};return[this.registerProvider(n,r),r]}registerProvider(e,n){return Z3.languages.registerImplementationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}wl.ImplementationFeature=eS;var Cl={};Object.defineProperty(Cl,"__esModule",{value:!0});Cl.TypeDefinitionFeature=void 0;const tS=Re,gu=ye,io=De;class nS extends io.TextDocumentLanguageFeature{constructor(e){super(e,gu.TypeDefinitionRequest.type)}fillClientCapabilities(e){(0,io.ensure)((0,io.ensure)(e,"textDocument"),"typeDefinition").dynamicRegistration=!0;let n=(0,io.ensure)((0,io.ensure)(e,"textDocument"),"typeDefinition");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){let[r,i]=this.getRegistration(n,e.typeDefinitionProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r={provideTypeDefinition:(i,s,o)=>{const a=this._client,c=(f,p,g)=>a.sendRequest(gu.TypeDefinitionRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,p),g).then(_=>g.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(_,g),_=>a.handleFailedRequest(gu.TypeDefinitionRequest.type,g,_,null)),l=a.middleware;return l.provideTypeDefinition?l.provideTypeDefinition(i,s,o,c):c(i,s,o)}};return[this.registerProvider(n,r),r]}registerProvider(e,n){return tS.languages.registerTypeDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Cl.TypeDefinitionFeature=nS;var zs={};Object.defineProperty(zs,"__esModule",{value:!0});zs.WorkspaceFoldersFeature=zs.arrayDiff=void 0;const rS=Be,_a=Re,so=ye;function mu(t,e){if(t!=null)return t[e]}function N1(t,e){return t.filter(n=>e.indexOf(n)<0)}zs.arrayDiff=N1;class iS{constructor(e){this._client=e,this._listeners=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._listeners.size>0}}get registrationType(){return so.DidChangeWorkspaceFoldersNotification.type}fillInitializeParams(e){const n=_a.workspace.workspaceFolders;this.initializeWithFolders(n),n===void 0?e.workspaceFolders=null:e.workspaceFolders=n.map(r=>this.asProtocol(r))}initializeWithFolders(e){this._initialFolders=e}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.workspaceFolders=!0}initialize(e){const n=this._client;n.onRequest(so.WorkspaceFoldersRequest.type,s=>{const o=()=>{const c=_a.workspace.workspaceFolders;return c===void 0?null:c.map(f=>this.asProtocol(f))},a=n.middleware.workspace;return a&&a.workspaceFolders?a.workspaceFolders(s,o):o()});const r=mu(mu(mu(e,"workspace"),"workspaceFolders"),"changeNotifications");let i;typeof r=="string"?i=r:r===!0&&(i=rS.generateUuid()),i&&this.register({id:i,registerOptions:void 0})}sendInitialEvent(e){let n;if(this._initialFolders&&e){const r=N1(this._initialFolders,e),i=N1(e,this._initialFolders);(i.length>0||r.length>0)&&(n=this.doSendEvent(i,r))}else this._initialFolders?n=this.doSendEvent([],this._initialFolders):e&&(n=this.doSendEvent(e,[]));n!==void 0&&n.catch(r=>{this._client.error(`Sending notification ${so.DidChangeWorkspaceFoldersNotification.type.method} failed`,r)})}doSendEvent(e,n){let r={event:{added:e.map(i=>this.asProtocol(i)),removed:n.map(i=>this.asProtocol(i))}};return this._client.sendNotification(so.DidChangeWorkspaceFoldersNotification.type,r)}register(e){let n=e.id,r=this._client,i=_a.workspace.onDidChangeWorkspaceFolders(s=>{let o=l=>this.doSendEvent(l.added,l.removed),a=r.middleware.workspace;(a&&a.didChangeWorkspaceFolders?a.didChangeWorkspaceFolders(s,o):o(s)).catch(l=>{this._client.error(`Sending notification ${so.DidChangeWorkspaceFoldersNotification.type.method} failed`,l)})});this._listeners.set(n,i),this.sendInitialEvent(_a.workspace.workspaceFolders)}unregister(e){let n=this._listeners.get(e);n!==void 0&&(this._listeners.delete(e),n.dispose())}clear(){for(let e of this._listeners.values())e.dispose();this._listeners.clear()}asProtocol(e){return e===void 0?null:{uri:this._client.code2ProtocolConverter.asUri(e.uri),name:e.name}}}zs.WorkspaceFoldersFeature=iS;var _l={};Object.defineProperty(_l,"__esModule",{value:!0});_l.FoldingRangeFeature=void 0;const N0=Re,Ti=ye,oo=De;class sS extends oo.TextDocumentLanguageFeature{constructor(e){super(e,Ti.FoldingRangeRequest.type)}fillClientCapabilities(e){let n=(0,oo.ensure)((0,oo.ensure)(e,"textDocument"),"foldingRange");n.dynamicRegistration=!0,n.rangeLimit=5e3,n.lineFoldingOnly=!0,n.foldingRangeKind={valueSet:[Ti.FoldingRangeKind.Comment,Ti.FoldingRangeKind.Imports,Ti.FoldingRangeKind.Region]},n.foldingRange={collapsedText:!1},(0,oo.ensure)((0,oo.ensure)(e,"workspace"),"foldingRange").refreshSupport=!0}initialize(e,n){this._client.onRequest(Ti.FoldingRangeRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeFoldingRange.fire()});let[r,i]=this.getRegistration(n,e.foldingRangeProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r=new N0.EventEmitter,i={onDidChangeFoldingRanges:r.event,provideFoldingRanges:(s,o,a)=>{const c=this._client,l=(p,g,_)=>{const C={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(p)};return c.sendRequest(Ti.FoldingRangeRequest.type,C,_).then(k=>_.isCancellationRequested?null:c.protocol2CodeConverter.asFoldingRanges(k,_),k=>c.handleFailedRequest(Ti.FoldingRangeRequest.type,_,k,null))},f=c.middleware;return f.provideFoldingRanges?f.provideFoldingRanges(s,o,a,l):l(s,o,a)}};return[N0.languages.registerFoldingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),{provider:i,onDidChangeFoldingRange:r}]}}_l.FoldingRangeFeature=sS;var Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});Sl.DeclarationFeature=void 0;const oS=Re,yu=ye,bu=De;class aS extends bu.TextDocumentLanguageFeature{constructor(e){super(e,yu.DeclarationRequest.type)}fillClientCapabilities(e){const n=(0,bu.ensure)((0,bu.ensure)(e,"textDocument"),"declaration");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){const[r,i]=this.getRegistration(n,e.declarationProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r={provideDeclaration:(i,s,o)=>{const a=this._client,c=(f,p,g)=>a.sendRequest(yu.DeclarationRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,p),g).then(_=>g.isCancellationRequested?null:a.protocol2CodeConverter.asDeclarationResult(_,g),_=>a.handleFailedRequest(yu.DeclarationRequest.type,g,_,null)),l=a.middleware;return l.provideDeclaration?l.provideDeclaration(i,s,o,c):c(i,s,o)}};return[this.registerProvider(n,r),r]}registerProvider(e,n){return oS.languages.registerDeclarationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Sl.DeclarationFeature=aS;var Dl={};Object.defineProperty(Dl,"__esModule",{value:!0});Dl.SelectionRangeFeature=void 0;const cS=Re,vu=ye,wu=De;class lS extends wu.TextDocumentLanguageFeature{constructor(e){super(e,vu.SelectionRangeRequest.type)}fillClientCapabilities(e){const n=(0,wu.ensure)((0,wu.ensure)(e,"textDocument"),"selectionRange");n.dynamicRegistration=!0}initialize(e,n){const[r,i]=this.getRegistration(n,e.selectionRangeProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r={provideSelectionRanges:(i,s,o)=>{const a=this._client,c=async(f,p,g)=>{const _={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(f),positions:a.code2ProtocolConverter.asPositionsSync(p,g)};return a.sendRequest(vu.SelectionRangeRequest.type,_,g).then(C=>g.isCancellationRequested?null:a.protocol2CodeConverter.asSelectionRanges(C,g),C=>a.handleFailedRequest(vu.SelectionRangeRequest.type,g,C,null))},l=a.middleware;return l.provideSelectionRanges?l.provideSelectionRanges(i,s,o,c):c(i,s,o)}};return[this.registerProvider(n,r),r]}registerProvider(e,n){return cS.languages.registerSelectionRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Dl.SelectionRangeFeature=lS;var Tl={};Object.defineProperty(Tl,"__esModule",{value:!0});Tl.ProgressFeature=void 0;const $0=ye,uS=la;function dS(t,e){return t[e]===void 0&&(t[e]=Object.create(null)),t[e]}class fS{constructor(e){this._client=e,this.activeParts=new Set}getState(){return{kind:"window",id:$0.WorkDoneProgressCreateRequest.method,registrations:this.activeParts.size>0}}fillClientCapabilities(e){dS(e,"window").workDoneProgress=!0}initialize(){const e=this._client,n=i=>{this.activeParts.delete(i)},r=i=>{this.activeParts.add(new uS.ProgressPart(this._client,i.token,n))};e.onRequest($0.WorkDoneProgressCreateRequest.type,r)}clear(){for(const e of this.activeParts)e.done();this.activeParts.clear()}}Tl.ProgressFeature=fS;var kl={};Object.defineProperty(kl,"__esModule",{value:!0});kl.CallHierarchyFeature=void 0;const hS=Re,Mi=ye,Cu=De;class pS{constructor(e){this.client=e,this.middleware=e.middleware}prepareCallHierarchy(e,n,r){const i=this.client,s=this.middleware,o=(a,c,l)=>{const f=i.code2ProtocolConverter.asTextDocumentPositionParams(a,c);return i.sendRequest(Mi.CallHierarchyPrepareRequest.type,f,l).then(p=>l.isCancellationRequested?null:i.protocol2CodeConverter.asCallHierarchyItems(p,l),p=>i.handleFailedRequest(Mi.CallHierarchyPrepareRequest.type,l,p,null))};return s.prepareCallHierarchy?s.prepareCallHierarchy(e,n,r,o):o(e,n,r)}provideCallHierarchyIncomingCalls(e,n){const r=this.client,i=this.middleware,s=(o,a)=>{const c={item:r.code2ProtocolConverter.asCallHierarchyItem(o)};return r.sendRequest(Mi.CallHierarchyIncomingCallsRequest.type,c,a).then(l=>a.isCancellationRequested?null:r.protocol2CodeConverter.asCallHierarchyIncomingCalls(l,a),l=>r.handleFailedRequest(Mi.CallHierarchyIncomingCallsRequest.type,a,l,null))};return i.provideCallHierarchyIncomingCalls?i.provideCallHierarchyIncomingCalls(e,n,s):s(e,n)}provideCallHierarchyOutgoingCalls(e,n){const r=this.client,i=this.middleware,s=(o,a)=>{const c={item:r.code2ProtocolConverter.asCallHierarchyItem(o)};return r.sendRequest(Mi.CallHierarchyOutgoingCallsRequest.type,c,a).then(l=>a.isCancellationRequested?null:r.protocol2CodeConverter.asCallHierarchyOutgoingCalls(l,a),l=>r.handleFailedRequest(Mi.CallHierarchyOutgoingCallsRequest.type,a,l,null))};return i.provideCallHierarchyOutgoingCalls?i.provideCallHierarchyOutgoingCalls(e,n,s):s(e,n)}}class gS extends Cu.TextDocumentLanguageFeature{constructor(e){super(e,Mi.CallHierarchyPrepareRequest.type)}fillClientCapabilities(e){const n=e,r=(0,Cu.ensure)((0,Cu.ensure)(n,"textDocument"),"callHierarchy");r.dynamicRegistration=!0}initialize(e,n){const[r,i]=this.getRegistration(n,e.callHierarchyProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=this._client,r=new pS(n);return[hS.languages.registerCallHierarchyProvider(this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector),r),r]}}kl.CallHierarchyFeature=gS;var Rl={};Object.defineProperty(Rl,"__esModule",{value:!0});Rl.SemanticTokensFeature=void 0;const Sa=Re,Ie=ye,ao=De,mS=Ye;class yS extends ao.TextDocumentLanguageFeature{constructor(e){super(e,Ie.SemanticTokensRegistrationType.type)}fillClientCapabilities(e){const n=(0,ao.ensure)((0,ao.ensure)(e,"textDocument"),"semanticTokens");n.dynamicRegistration=!0,n.tokenTypes=[Ie.SemanticTokenTypes.namespace,Ie.SemanticTokenTypes.type,Ie.SemanticTokenTypes.class,Ie.SemanticTokenTypes.enum,Ie.SemanticTokenTypes.interface,Ie.SemanticTokenTypes.struct,Ie.SemanticTokenTypes.typeParameter,Ie.SemanticTokenTypes.parameter,Ie.SemanticTokenTypes.variable,Ie.SemanticTokenTypes.property,Ie.SemanticTokenTypes.enumMember,Ie.SemanticTokenTypes.event,Ie.SemanticTokenTypes.function,Ie.SemanticTokenTypes.method,Ie.SemanticTokenTypes.macro,Ie.SemanticTokenTypes.keyword,Ie.SemanticTokenTypes.modifier,Ie.SemanticTokenTypes.comment,Ie.SemanticTokenTypes.string,Ie.SemanticTokenTypes.number,Ie.SemanticTokenTypes.regexp,Ie.SemanticTokenTypes.operator,Ie.SemanticTokenTypes.decorator],n.tokenModifiers=[Ie.SemanticTokenModifiers.declaration,Ie.SemanticTokenModifiers.definition,Ie.SemanticTokenModifiers.readonly,Ie.SemanticTokenModifiers.static,Ie.SemanticTokenModifiers.deprecated,Ie.SemanticTokenModifiers.abstract,Ie.SemanticTokenModifiers.async,Ie.SemanticTokenModifiers.modification,Ie.SemanticTokenModifiers.documentation,Ie.SemanticTokenModifiers.defaultLibrary],n.formats=[Ie.TokenFormat.Relative],n.requests={range:!0,full:{delta:!0}},n.multilineTokenSupport=!1,n.overlappingTokenSupport=!1,n.serverCancelSupport=!0,n.augmentsSyntaxTokens=!0,(0,ao.ensure)((0,ao.ensure)(e,"workspace"),"semanticTokens").refreshSupport=!0}initialize(e,n){this._client.onRequest(Ie.SemanticTokensRefreshRequest.type,async()=>{for(const o of this.getAllProviders())o.onDidChangeSemanticTokensEmitter.fire()});const[i,s]=this.getRegistration(n,e.semanticTokensProvider);!i||!s||this.register({id:i,registerOptions:s})}registerLanguageProvider(e){const n=e.documentSelector,r=mS.boolean(e.full)?e.full:e.full!==void 0,i=e.full!==void 0&&typeof e.full!="boolean"&&e.full.delta===!0,s=new Sa.EventEmitter,o=r?{onDidChangeSemanticTokens:s.event,provideDocumentSemanticTokens:(_,C)=>{const k=this._client,M=k.middleware,H=(K,j)=>{const B={textDocument:k.code2ProtocolConverter.asTextDocumentIdentifier(K)};return k.sendRequest(Ie.SemanticTokensRequest.type,B,j).then(z=>j.isCancellationRequested?null:k.protocol2CodeConverter.asSemanticTokens(z,j),z=>k.handleFailedRequest(Ie.SemanticTokensRequest.type,j,z,null))};return M.provideDocumentSemanticTokens?M.provideDocumentSemanticTokens(_,C,H):H(_,C)},provideDocumentSemanticTokensEdits:i?(_,C,k)=>{const M=this._client,H=M.middleware,K=(j,B,z)=>{const ne={textDocument:M.code2ProtocolConverter.asTextDocumentIdentifier(j),previousResultId:B};return M.sendRequest(Ie.SemanticTokensDeltaRequest.type,ne,z).then(async G=>z.isCancellationRequested?null:Ie.SemanticTokens.is(G)?await M.protocol2CodeConverter.asSemanticTokens(G,z):await M.protocol2CodeConverter.asSemanticTokensEdits(G,z),G=>M.handleFailedRequest(Ie.SemanticTokensDeltaRequest.type,z,G,null))};return H.provideDocumentSemanticTokensEdits?H.provideDocumentSemanticTokensEdits(_,C,k,K):K(_,C,k)}:void 0}:void 0,c=e.range===!0?{provideDocumentRangeSemanticTokens:(_,C,k)=>{const M=this._client,H=M.middleware,K=(j,B,z)=>{const ne={textDocument:M.code2ProtocolConverter.asTextDocumentIdentifier(j),range:M.code2ProtocolConverter.asRange(B)};return M.sendRequest(Ie.SemanticTokensRangeRequest.type,ne,z).then(G=>z.isCancellationRequested?null:M.protocol2CodeConverter.asSemanticTokens(G,z),G=>M.handleFailedRequest(Ie.SemanticTokensRangeRequest.type,z,G,null))};return H.provideDocumentRangeSemanticTokens?H.provideDocumentRangeSemanticTokens(_,C,k,K):K(_,C,k)}}:void 0,l=[],f=this._client,p=f.protocol2CodeConverter.asSemanticTokensLegend(e.legend),g=f.protocol2CodeConverter.asDocumentSelector(n);return o!==void 0&&l.push(Sa.languages.registerDocumentSemanticTokensProvider(g,o,p)),c!==void 0&&l.push(Sa.languages.registerDocumentRangeSemanticTokensProvider(g,c,p)),[new Sa.Disposable(()=>l.forEach(_=>_.dispose())),{range:c,full:o,onDidChangeSemanticTokensEmitter:s}]}}Rl.SemanticTokensFeature=yS;var Fn={};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.WillDeleteFilesFeature=Fn.WillRenameFilesFeature=Fn.WillCreateFilesFeature=Fn.DidDeleteFilesFeature=Fn.DidRenameFilesFeature=Fn.DidCreateFilesFeature=void 0;const Xn=Re,bS=Vc,Br=ye,vS=Be;function q0(t,e){return t[e]===void 0&&(t[e]={}),t[e]}function wS(t,e){return t[e]}function j0(t,e,n){t[e]=n}class Ki{constructor(e,n,r,i,s){this._client=e,this._event=n,this._registrationType=r,this._clientCapability=i,this._serverCapability=s,this._filters=new Map}getState(){return{kind:"workspace",id:this._registrationType.method,registrations:this._filters.size>0}}filterSize(){return this._filters.size}get registrationType(){return this._registrationType}fillClientCapabilities(e){const n=q0(q0(e,"workspace"),"fileOperations");j0(n,"dynamicRegistration",!0),j0(n,this._clientCapability,!0)}initialize(e){var i;const n=(i=e.workspace)==null?void 0:i.fileOperations,r=n!==void 0?wS(n,this._serverCapability):void 0;if((r==null?void 0:r.filters)!==void 0)try{this.register({id:vS.generateUuid(),registerOptions:{filters:r.filters}})}catch(s){this._client.warn(`Ignoring invalid glob pattern for ${this._serverCapability} registration: ${s}`)}}register(e){this._listener||(this._listener=this._event(this.send,this));const n=e.registerOptions.filters.map(r=>{const i=new bS.Minimatch(r.pattern.glob,Ki.asMinimatchOptions(r.pattern.options));if(!i.makeRe())throw new Error(`Invalid pattern ${r.pattern.glob}!`);return{scheme:r.scheme,matcher:i,kind:r.pattern.matches}});this._filters.set(e.id,n)}unregister(e){this._filters.delete(e),this._filters.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._filters.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getFileType(e){return Ki.getFileType(e)}async filter(e,n){const r=await Promise.all(e.files.map(async s=>{const o=n(s),a=o.fsPath.replace(/\\/g,"/");for(const c of this._filters.values())for(const l of c)if(!(l.scheme!==void 0&&l.scheme!==o.scheme)){if(l.matcher.match(a)){if(l.kind===void 0)return!0;const f=await this.getFileType(o);if(f===void 0)return this._client.error(`Failed to determine file type for ${o.toString()}.`),!0;if(f===Xn.FileType.File&&l.kind===Br.FileOperationPatternKind.file||f===Xn.FileType.Directory&&l.kind===Br.FileOperationPatternKind.folder)return!0}else if(l.kind===Br.FileOperationPatternKind.folder&&await Ki.getFileType(o)===Xn.FileType.Directory&&l.matcher.match(`${a}/`))return!0}return!1})),i=e.files.filter((s,o)=>r[o]);return{...e,files:i}}static async getFileType(e){try{return(await Xn.workspace.fs.stat(e)).type}catch{return}}static asMinimatchOptions(e){const n={dot:!0};return(e==null?void 0:e.ignoreCase)===!0&&(n.nocase=!0),n}}class Dy extends Ki{constructor(e,n,r,i,s,o,a){super(e,n,r,i,s),this._notificationType=r,this._accessUri=o,this._createParams=a}async send(e){const n=await this.filter(e,this._accessUri);if(n.files.length){const r=async i=>this._client.sendNotification(this._notificationType,this._createParams(i));return this.doSend(n,r)}}}class Ty extends Dy{constructor(){super(...arguments),this._fsPathFileTypes=new Map}async getFileType(e){const n=e.fsPath;if(this._fsPathFileTypes.has(n))return this._fsPathFileTypes.get(n);const r=await Ki.getFileType(e);return r&&this._fsPathFileTypes.set(n,r),r}async cacheFileTypes(e,n){await this.filter(e,n)}clearFileTypeCache(){this._fsPathFileTypes.clear()}unregister(e){super.unregister(e),this.filterSize()===0&&this._willListener&&(this._willListener.dispose(),this._willListener=void 0)}clear(){super.clear(),this._willListener&&(this._willListener.dispose(),this._willListener=void 0)}}class CS extends Dy{constructor(e){super(e,Xn.workspace.onDidCreateFiles,Br.DidCreateFilesNotification.type,"didCreate","didCreate",n=>n,e.code2ProtocolConverter.asDidCreateFilesParams)}doSend(e,n){const r=this._client.middleware.workspace;return r!=null&&r.didCreateFiles?r.didCreateFiles(e,n):n(e)}}Fn.DidCreateFilesFeature=CS;class _S extends Ty{constructor(e){super(e,Xn.workspace.onDidRenameFiles,Br.DidRenameFilesNotification.type,"didRename","didRename",n=>n.oldUri,e.code2ProtocolConverter.asDidRenameFilesParams)}register(e){this._willListener||(this._willListener=Xn.workspace.onWillRenameFiles(this.willRename,this)),super.register(e)}willRename(e){e.waitUntil(this.cacheFileTypes(e,n=>n.oldUri))}doSend(e,n){this.clearFileTypeCache();const r=this._client.middleware.workspace;return r!=null&&r.didRenameFiles?r.didRenameFiles(e,n):n(e)}}Fn.DidRenameFilesFeature=_S;class SS extends Ty{constructor(e){super(e,Xn.workspace.onDidDeleteFiles,Br.DidDeleteFilesNotification.type,"didDelete","didDelete",n=>n,e.code2ProtocolConverter.asDidDeleteFilesParams)}register(e){this._willListener||(this._willListener=Xn.workspace.onWillDeleteFiles(this.willDelete,this)),super.register(e)}willDelete(e){e.waitUntil(this.cacheFileTypes(e,n=>n))}doSend(e,n){this.clearFileTypeCache();const r=this._client.middleware.workspace;return r!=null&&r.didDeleteFiles?r.didDeleteFiles(e,n):n(e)}}Fn.DidDeleteFilesFeature=SS;class pp extends Ki{constructor(e,n,r,i,s,o,a){super(e,n,r,i,s),this._requestType=r,this._accessUri=o,this._createParams=a}async send(e){const n=this.waitUntil(e);e.waitUntil(n)}async waitUntil(e){const n=await this.filter(e,this._accessUri);if(n.files.length){const r=i=>this._client.sendRequest(this._requestType,this._createParams(i),i.token).then(this._client.protocol2CodeConverter.asWorkspaceEdit);return this.doSend(n,r)}else return}}class DS extends pp{constructor(e){super(e,Xn.workspace.onWillCreateFiles,Br.WillCreateFilesRequest.type,"willCreate","willCreate",n=>n,e.code2ProtocolConverter.asWillCreateFilesParams)}doSend(e,n){const r=this._client.middleware.workspace;return r!=null&&r.willCreateFiles?r.willCreateFiles(e,n):n(e)}}Fn.WillCreateFilesFeature=DS;class TS extends pp{constructor(e){super(e,Xn.workspace.onWillRenameFiles,Br.WillRenameFilesRequest.type,"willRename","willRename",n=>n.oldUri,e.code2ProtocolConverter.asWillRenameFilesParams)}doSend(e,n){const r=this._client.middleware.workspace;return r!=null&&r.willRenameFiles?r.willRenameFiles(e,n):n(e)}}Fn.WillRenameFilesFeature=TS;class kS extends pp{constructor(e){super(e,Xn.workspace.onWillDeleteFiles,Br.WillDeleteFilesRequest.type,"willDelete","willDelete",n=>n,e.code2ProtocolConverter.asWillDeleteFilesParams)}doSend(e,n){const r=this._client.middleware.workspace;return r!=null&&r.willDeleteFiles?r.willDeleteFiles(e,n):n(e)}}Fn.WillDeleteFilesFeature=kS;var xl={};Object.defineProperty(xl,"__esModule",{value:!0});xl.LinkedEditingFeature=void 0;const RS=Re,_u=ye,Su=De;class xS extends Su.TextDocumentLanguageFeature{constructor(e){super(e,_u.LinkedEditingRangeRequest.type)}fillClientCapabilities(e){const n=(0,Su.ensure)((0,Su.ensure)(e,"textDocument"),"linkedEditingRange");n.dynamicRegistration=!0}initialize(e,n){let[r,i]=this.getRegistration(n,e.linkedEditingRangeProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r={provideLinkedEditingRanges:(i,s,o)=>{const a=this._client,c=(f,p,g)=>a.sendRequest(_u.LinkedEditingRangeRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(f,p),g).then(_=>g.isCancellationRequested?null:a.protocol2CodeConverter.asLinkedEditingRanges(_,g),_=>a.handleFailedRequest(_u.LinkedEditingRangeRequest.type,g,_,null)),l=a.middleware;return l.provideLinkedEditingRange?l.provideLinkedEditingRange(i,s,o,c):c(i,s,o)}};return[this.registerProvider(n,r),r]}registerProvider(e,n){return RS.languages.registerLinkedEditingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}xl.LinkedEditingFeature=xS;var El={};Object.defineProperty(El,"__esModule",{value:!0});El.TypeHierarchyFeature=void 0;const ES=Re,Oi=ye,Du=De;class PS{constructor(e){this.client=e,this.middleware=e.middleware}prepareTypeHierarchy(e,n,r){const i=this.client,s=this.middleware,o=(a,c,l)=>{const f=i.code2ProtocolConverter.asTextDocumentPositionParams(a,c);return i.sendRequest(Oi.TypeHierarchyPrepareRequest.type,f,l).then(p=>l.isCancellationRequested?null:i.protocol2CodeConverter.asTypeHierarchyItems(p,l),p=>i.handleFailedRequest(Oi.TypeHierarchyPrepareRequest.type,l,p,null))};return s.prepareTypeHierarchy?s.prepareTypeHierarchy(e,n,r,o):o(e,n,r)}provideTypeHierarchySupertypes(e,n){const r=this.client,i=this.middleware,s=(o,a)=>{const c={item:r.code2ProtocolConverter.asTypeHierarchyItem(o)};return r.sendRequest(Oi.TypeHierarchySupertypesRequest.type,c,a).then(l=>a.isCancellationRequested?null:r.protocol2CodeConverter.asTypeHierarchyItems(l,a),l=>r.handleFailedRequest(Oi.TypeHierarchySupertypesRequest.type,a,l,null))};return i.provideTypeHierarchySupertypes?i.provideTypeHierarchySupertypes(e,n,s):s(e,n)}provideTypeHierarchySubtypes(e,n){const r=this.client,i=this.middleware,s=(o,a)=>{const c={item:r.code2ProtocolConverter.asTypeHierarchyItem(o)};return r.sendRequest(Oi.TypeHierarchySubtypesRequest.type,c,a).then(l=>a.isCancellationRequested?null:r.protocol2CodeConverter.asTypeHierarchyItems(l,a),l=>r.handleFailedRequest(Oi.TypeHierarchySubtypesRequest.type,a,l,null))};return i.provideTypeHierarchySubtypes?i.provideTypeHierarchySubtypes(e,n,s):s(e,n)}}class IS extends Du.TextDocumentLanguageFeature{constructor(e){super(e,Oi.TypeHierarchyPrepareRequest.type)}fillClientCapabilities(e){const n=(0,Du.ensure)((0,Du.ensure)(e,"textDocument"),"typeHierarchy");n.dynamicRegistration=!0}initialize(e,n){const[r,i]=this.getRegistration(n,e.typeHierarchyProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=this._client,r=new PS(n);return[ES.languages.registerTypeHierarchyProvider(n.protocol2CodeConverter.asDocumentSelector(e.documentSelector),r),r]}}El.TypeHierarchyFeature=IS;var Pl={};Object.defineProperty(Pl,"__esModule",{value:!0});Pl.InlineValueFeature=void 0;const H0=Re,Da=ye,co=De;class MS extends co.TextDocumentLanguageFeature{constructor(e){super(e,Da.InlineValueRequest.type)}fillClientCapabilities(e){(0,co.ensure)((0,co.ensure)(e,"textDocument"),"inlineValue").dynamicRegistration=!0,(0,co.ensure)((0,co.ensure)(e,"workspace"),"inlineValue").refreshSupport=!0}initialize(e,n){this._client.onRequest(Da.InlineValueRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeInlineValues.fire()});const[r,i]=this.getRegistration(n,e.inlineValueProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r=new H0.EventEmitter,i={onDidChangeInlineValues:r.event,provideInlineValues:(s,o,a,c)=>{const l=this._client,f=(g,_,C,k)=>{const M={textDocument:l.code2ProtocolConverter.asTextDocumentIdentifier(g),range:l.code2ProtocolConverter.asRange(_),context:l.code2ProtocolConverter.asInlineValueContext(C)};return l.sendRequest(Da.InlineValueRequest.type,M,k).then(H=>k.isCancellationRequested?null:l.protocol2CodeConverter.asInlineValues(H,k),H=>l.handleFailedRequest(Da.InlineValueRequest.type,k,H,null))},p=l.middleware;return p.provideInlineValues?p.provideInlineValues(s,o,a,c,f):f(s,o,a,c)}};return[this.registerProvider(n,i),{provider:i,onDidChangeInlineValues:r}]}registerProvider(e,n){return H0.languages.registerInlineValuesProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Pl.InlineValueFeature=MS;var Il={};Object.defineProperty(Il,"__esModule",{value:!0});Il.InlayHintsFeature=void 0;const W0=Re,os=ye,lo=De;class OS extends lo.TextDocumentLanguageFeature{constructor(e){super(e,os.InlayHintRequest.type)}fillClientCapabilities(e){const n=(0,lo.ensure)((0,lo.ensure)(e,"textDocument"),"inlayHint");n.dynamicRegistration=!0,n.resolveSupport={properties:["tooltip","textEdits","label.tooltip","label.location","label.command"]},(0,lo.ensure)((0,lo.ensure)(e,"workspace"),"inlayHint").refreshSupport=!0}initialize(e,n){this._client.onRequest(os.InlayHintRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeInlayHints.fire()});const[r,i]=this.getRegistration(n,e.inlayHintProvider);!r||!i||this.register({id:r,registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,r=new W0.EventEmitter,i={onDidChangeInlayHints:r.event,provideInlayHints:(s,o,a)=>{const c=this._client,l=async(p,g,_)=>{const C={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(p),range:c.code2ProtocolConverter.asRange(g)};try{const k=await c.sendRequest(os.InlayHintRequest.type,C,_);return _.isCancellationRequested?null:c.protocol2CodeConverter.asInlayHints(k,_)}catch(k){return c.handleFailedRequest(os.InlayHintRequest.type,_,k,null)}},f=c.middleware;return f.provideInlayHints?f.provideInlayHints(s,o,a,l):l(s,o,a)}};return i.resolveInlayHint=e.resolveProvider===!0?(s,o)=>{const a=this._client,c=async(f,p)=>{try{const g=await a.sendRequest(os.InlayHintResolveRequest.type,a.code2ProtocolConverter.asInlayHint(f),p);if(p.isCancellationRequested)return null;const _=a.protocol2CodeConverter.asInlayHint(g,p);return p.isCancellationRequested?null:_}catch(g){return a.handleFailedRequest(os.InlayHintResolveRequest.type,p,g,null)}},l=a.middleware;return l.resolveInlayHint?l.resolveInlayHint(s,o,c):c(s,o)}:void 0,[this.registerProvider(n,i),{provider:i,onDidChangeInlayHints:r}]}registerProvider(e,n){return W0.languages.registerInlayHintsProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Il.InlayHintsFeature=OS;var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});Ml.InlineCompletionItemFeature=void 0;const AS=Re,Tu=ye,ku=De,FS=Be;class LS extends ku.TextDocumentLanguageFeature{constructor(e){super(e,Tu.InlineCompletionRequest.type)}fillClientCapabilities(e){let n=(0,ku.ensure)((0,ku.ensure)(e,"textDocument"),"inlineCompletion");n.dynamicRegistration=!0}initialize(e,n){const r=this.getRegistrationOptions(n,e.inlineCompletionProvider);r&&this.register({id:FS.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,r={provideInlineCompletionItems:(i,s,o,a)=>{const c=this._client,l=this._client.middleware,f=(p,g,_,C)=>c.sendRequest(Tu.InlineCompletionRequest.type,c.code2ProtocolConverter.asInlineCompletionParams(p,g,_),C).then(k=>C.isCancellationRequested?null:c.protocol2CodeConverter.asInlineCompletionResult(k,C),k=>c.handleFailedRequest(Tu.InlineCompletionRequest.type,C,k,null));return l.provideInlineCompletionItems?l.provideInlineCompletionItems(i,s,o,a,f):f(i,s,o,a)}};return[AS.languages.registerInlineCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),r]}}Ml.InlineCompletionItemFeature=LS;Object.defineProperty(Xt,"__esModule",{value:!0});Xt.ProposedFeatures=Xt.BaseLanguageClient=Xt.MessageTransports=Xt.SuspendMode=Xt.State=Xt.CloseAction=Xt.ErrorAction=Xt.RevealOutputChannelOn=void 0;const nt=Re,Q=ye,NS=Gc,$S=rl,sr=Ye,Ta=Zt,U0=Be,qS=la,nr=De,jS=Ur,z0=il,B0=hi,as=An,HS=sl,WS=ol,US=al,zS=cl,BS=ll,VS=fp,KS=ul,GS=dl,QS=fl,JS=hl,Ru=pi,YS=gl,XS=ml,ZS=yl,eD=bl,tD=vl,nD=wl,rD=Cl,iD=zs,sD=_l,oD=Sl,aD=Dl,cD=Tl,lD=kl,uD=Rl,cs=Fn,dD=xl,fD=El,hD=Pl,pD=Il,gD=Ml;var Fi;(function(t){t[t.Debug=0]="Debug",t[t.Info=1]="Info",t[t.Warn=2]="Warn",t[t.Error=3]="Error",t[t.Never=4]="Never"})(Fi||(Xt.RevealOutputChannelOn=Fi={}));var Jo;(function(t){t[t.Continue=1]="Continue",t[t.Shutdown=2]="Shutdown"})(Jo||(Xt.ErrorAction=Jo={}));var gi;(function(t){t[t.DoNotRestart=1]="DoNotRestart",t[t.Restart=2]="Restart"})(gi||(Xt.CloseAction=gi={}));var xo;(function(t){t[t.Stopped=1]="Stopped",t[t.Starting=3]="Starting",t[t.Running=2]="Running"})(xo||(Xt.State=xo={}));var V0;(function(t){t.off="off",t.on="on"})(V0||(Xt.SuspendMode=V0={}));var $1;(function(t){function e(n){return n==null?!1:typeof n=="boolean"||typeof n=="object"&&n!==null&&sr.stringArray(n.enabledCommands)?n:!1}t.sanitizeIsTrusted=e})($1||($1={}));class mD{constructor(e,n){this.client=e,this.maxRestartCount=n,this.restarts=[]}error(e,n,r){return r&&r<=3?{action:Jo.Continue}:{action:Jo.Shutdown}}closed(){return this.restarts.push(Date.now()),this.restarts.length<=this.maxRestartCount?{action:gi.Restart}:this.restarts[this.restarts.length-1]-this.restarts[0]<=3*60*1e3?{action:gi.DoNotRestart,message:`The ${this.client.name} server crashed ${this.maxRestartCount+1} times in the last 3 minutes. The server will not be restarted. See the output for more information.`}:(this.restarts.shift(),{action:gi.Restart})}}var Ne;(function(t){t.Initial="initial",t.Starting="starting",t.StartFailed="startFailed",t.Running="running",t.Stopping="stopping",t.Stopped="stopped"})(Ne||(Ne={}));var K0;(function(t){function e(n){return n&&Q.MessageReader.is(n.reader)&&Q.MessageWriter.is(n.writer)}t.is=e})(K0||(Xt.MessageTransports=K0={}));class Gi{constructor(e,n,r){var s;this._traceFormat=Q.TraceFormat.Text,this._diagnosticQueue=new Map,this._diagnosticQueueState={state:"idle"},this._features=[],this._dynamicFeatures=new Map,this.workspaceEditLock=new Ta.Semaphore(1),this._id=e,this._name=n,r=r||{};const i={isTrusted:!1,supportHtml:!1};r.markdown!==void 0&&(i.isTrusted=$1.sanitizeIsTrusted(r.markdown.isTrusted),i.supportHtml=r.markdown.supportHtml===!0),this._clientOptions={documentSelector:r.documentSelector??[],synchronize:r.synchronize??{},diagnosticCollectionName:r.diagnosticCollectionName,outputChannelName:r.outputChannelName??this._name,revealOutputChannelOn:r.revealOutputChannelOn??Fi.Error,stdioEncoding:r.stdioEncoding??"utf8",initializationOptions:r.initializationOptions,initializationFailedHandler:r.initializationFailedHandler,progressOnInitialization:!!r.progressOnInitialization,errorHandler:r.errorHandler??this.createDefaultErrorHandler((s=r.connectionOptions)==null?void 0:s.maxRestartCount),middleware:r.middleware??{},uriConverters:r.uriConverters,workspaceFolder:r.workspaceFolder,connectionOptions:r.connectionOptions,markdown:i,diagnosticPullOptions:r.diagnosticPullOptions??{onChange:!0,onSave:!1},notebookDocumentOptions:r.notebookDocumentOptions??{}},this._clientOptions.synchronize=this._clientOptions.synchronize||{},this._state=Ne.Initial,this._ignoredRegistrations=new Set,this._listeners=[],this._notificationHandlers=new Map,this._pendingNotificationHandlers=new Map,this._notificationDisposables=new Map,this._requestHandlers=new Map,this._pendingRequestHandlers=new Map,this._requestDisposables=new Map,this._progressHandlers=new Map,this._pendingProgressHandlers=new Map,this._progressDisposables=new Map,this._connection=void 0,this._initializeResult=void 0,r.outputChannel?(this._outputChannel=r.outputChannel,this._disposeOutputChannel=!1):(this._outputChannel=void 0,this._disposeOutputChannel=!0),this._traceOutputChannel=r.traceOutputChannel,this._diagnostics=void 0,this._pendingOpenNotifications=new Set,this._pendingChangeSemaphore=new Ta.Semaphore(1),this._pendingChangeDelayer=new Ta.Delayer(250),this._fileEvents=[],this._fileEventDelayer=new Ta.Delayer(250),this._onStop=void 0,this._telemetryEmitter=new Q.Emitter,this._stateChangeEmitter=new Q.Emitter,this._trace=Q.Trace.Off,this._tracer={log:(o,a)=>{sr.string(o)?this.logTrace(o,a):this.logObjectTrace(o)}},this._c2p=NS.createConverter(r.uriConverters?r.uriConverters.code2Protocol:void 0),this._p2c=$S.createConverter(r.uriConverters?r.uriConverters.protocol2Code:void 0,this._clientOptions.markdown.isTrusted,this._clientOptions.markdown.supportHtml),this._syncedDocuments=new Map,this.registerBuiltinFeatures()}get name(){return this._name}get middleware(){return this._clientOptions.middleware??Object.create(null)}get clientOptions(){return this._clientOptions}get protocol2CodeConverter(){return this._p2c}get code2ProtocolConverter(){return this._c2p}get onTelemetry(){return this._telemetryEmitter.event}get onDidChangeState(){return this._stateChangeEmitter.event}get outputChannel(){return this._outputChannel||(this._outputChannel=nt.window.createOutputChannel(this._clientOptions.outputChannelName?this._clientOptions.outputChannelName:this._name)),this._outputChannel}get traceOutputChannel(){return this._traceOutputChannel?this._traceOutputChannel:this.outputChannel}get diagnostics(){return this._diagnostics}get state(){return this.getPublicState()}get $state(){return this._state}set $state(e){let n=this.getPublicState();this._state=e;let r=this.getPublicState();r!==n&&this._stateChangeEmitter.fire({oldState:n,newState:r})}getPublicState(){switch(this.$state){case Ne.Starting:return xo.Starting;case Ne.Running:return xo.Running;default:return xo.Stopped}}get initializeResult(){return this._initializeResult}async sendRequest(e,...n){var s;if(this.$state===Ne.StartFailed||this.$state===Ne.Stopping||this.$state===Ne.Stopped)return Promise.reject(new Q.ResponseError(Q.ErrorCodes.ConnectionInactive,"Client is not running"));const r=await this.$start();this._didChangeTextDocumentFeature.syncKind===Q.TextDocumentSyncKind.Full&&await this.sendPendingFullTextDocumentChanges(r);const i=(s=this._clientOptions.middleware)==null?void 0:s.sendRequest;if(i!==void 0){let o,a;return n.length===1?Q.CancellationToken.is(n[0])?a=n[0]:o=n[0]:n.length===2&&(o=n[0],a=n[1]),i(e,o,a,(c,l,f)=>{const p=[];return l!==void 0&&p.push(l),f!==void 0&&p.push(f),r.sendRequest(c,...p)})}else return r.sendRequest(e,...n)}onRequest(e,n){const r=typeof e=="string"?e:e.method;this._requestHandlers.set(r,n);const i=this.activeConnection();let s;return i!==void 0?(this._requestDisposables.set(r,i.onRequest(e,n)),s={dispose:()=>{const o=this._requestDisposables.get(r);o!==void 0&&(o.dispose(),this._requestDisposables.delete(r))}}):(this._pendingRequestHandlers.set(r,n),s={dispose:()=>{this._pendingRequestHandlers.delete(r);const o=this._requestDisposables.get(r);o!==void 0&&(o.dispose(),this._requestDisposables.delete(r))}}),{dispose:()=>{this._requestHandlers.delete(r),s.dispose()}}}async sendNotification(e,n){var a;if(this.$state===Ne.StartFailed||this.$state===Ne.Stopping||this.$state===Ne.Stopped)return Promise.reject(new Q.ResponseError(Q.ErrorCodes.ConnectionInactive,"Client is not running"));const r=this._didChangeTextDocumentFeature.syncKind===Q.TextDocumentSyncKind.Full;let i;r&&typeof e!="string"&&e.method===Q.DidOpenTextDocumentNotification.method&&(i=n==null?void 0:n.textDocument.uri,this._pendingOpenNotifications.add(i));const s=await this.$start();r&&await this.sendPendingFullTextDocumentChanges(s),i!==void 0&&this._pendingOpenNotifications.delete(i);const o=(a=this._clientOptions.middleware)==null?void 0:a.sendNotification;return o?o(e,s.sendNotification.bind(s),n):s.sendNotification(e,n)}onNotification(e,n){const r=typeof e=="string"?e:e.method;this._notificationHandlers.set(r,n);const i=this.activeConnection();let s;return i!==void 0?(this._notificationDisposables.set(r,i.onNotification(e,n)),s={dispose:()=>{const o=this._notificationDisposables.get(r);o!==void 0&&(o.dispose(),this._notificationDisposables.delete(r))}}):(this._pendingNotificationHandlers.set(r,n),s={dispose:()=>{this._pendingNotificationHandlers.delete(r);const o=this._notificationDisposables.get(r);o!==void 0&&(o.dispose(),this._notificationDisposables.delete(r))}}),{dispose:()=>{this._notificationHandlers.delete(r),s.dispose()}}}async sendProgress(e,n,r){if(this.$state===Ne.StartFailed||this.$state===Ne.Stopping||this.$state===Ne.Stopped)return Promise.reject(new Q.ResponseError(Q.ErrorCodes.ConnectionInactive,"Client is not running"));try{return(await this.$start()).sendProgress(e,n,r)}catch(i){throw this.error(`Sending progress for token ${n} failed.`,i),i}}onProgress(e,n,r){var c;this._progressHandlers.set(n,{type:e,handler:r});const i=this.activeConnection();let s;const o=(c=this._clientOptions.middleware)==null?void 0:c.handleWorkDoneProgress,a=Q.WorkDoneProgress.is(e)&&o!==void 0?l=>{o(n,l,()=>r(l))}:r;return i!==void 0?(this._progressDisposables.set(n,i.onProgress(e,n,a)),s={dispose:()=>{const l=this._progressDisposables.get(n);l!==void 0&&(l.dispose(),this._progressDisposables.delete(n))}}):(this._pendingProgressHandlers.set(n,{type:e,handler:r}),s={dispose:()=>{this._pendingProgressHandlers.delete(n);const l=this._progressDisposables.get(n);l!==void 0&&(l.dispose(),this._progressDisposables.delete(n))}}),{dispose:()=>{this._progressHandlers.delete(n),s.dispose()}}}createDefaultErrorHandler(e){if(e!==void 0&&e<0)throw new Error(`Invalid maxRestartCount: ${e}`);return new mD(this,e??4)}async setTrace(e){this._trace=e;const n=this.activeConnection();n!==void 0&&await n.trace(this._trace,this._tracer,{sendNotification:!1,traceFormat:this._traceFormat})}data2String(e){if(e instanceof Q.ResponseError){const n=e;return` Message: ${n.message}
|
|
69
103
|
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=Gp.generateUuid(),a=new k3.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=s_(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.
|
|
104
|
+
`+n.data.toString():""}`}return e instanceof Error?sr.string(e.stack)?e.stack:e.message:sr.string(e)?e:e.toString()}debug(e,n,r=!0){this.logOutputMessage(Q.MessageType.Debug,Fi.Debug,"Debug",e,n,r)}info(e,n,r=!0){this.logOutputMessage(Q.MessageType.Info,Fi.Info,"Info",e,n,r)}warn(e,n,r=!0){this.logOutputMessage(Q.MessageType.Warning,Fi.Warn,"Warn",e,n,r)}error(e,n,r=!0){this.logOutputMessage(Q.MessageType.Error,Fi.Error,"Error",e,n,r)}logOutputMessage(e,n,r,i,s,o){this.outputChannel.appendLine(`[${r.padEnd(5)} - ${new Date().toLocaleTimeString()}] ${i}`),s!=null&&this.outputChannel.appendLine(this.data2String(s)),(o==="force"||o&&this._clientOptions.revealOutputChannelOn<=n)&&this.showNotificationMessage(e,i)}showNotificationMessage(e,n){n=n??"A request has failed. See the output for more information.",(e===Q.MessageType.Error?nt.window.showErrorMessage:e===Q.MessageType.Warning?nt.window.showWarningMessage:nt.window.showInformationMessage)(n,"Go to output").then(i=>{i!==void 0&&this.outputChannel.show(!0)})}logTrace(e,n){this.traceOutputChannel.appendLine(`[Trace - ${new Date().toLocaleTimeString()}] ${e}`),n&&this.traceOutputChannel.appendLine(this.data2String(n))}logObjectTrace(e){e.isLSPMessage&&e.type?this.traceOutputChannel.append(`[LSP - ${new Date().toLocaleTimeString()}] `):this.traceOutputChannel.append(`[Trace - ${new Date().toLocaleTimeString()}] `),e&&this.traceOutputChannel.appendLine(`${JSON.stringify(e)}`)}needsStart(){return this.$state===Ne.Initial||this.$state===Ne.Stopping||this.$state===Ne.Stopped}needsStop(){return this.$state===Ne.Starting||this.$state===Ne.Running}activeConnection(){return this.$state===Ne.Running&&this._connection!==void 0?this._connection:void 0}isRunning(){return this.$state===Ne.Running}async start(){if(this._disposed==="disposing"||this._disposed==="disposed")throw new Error("Client got disposed and can't be restarted.");if(this.$state===Ne.Stopping)throw new Error("Client is currently stopping. Can only restart a full stopped client");if(this._onStart!==void 0)return this._onStart;const[e,n,r]=this.createOnStartPromise();this._onStart=e,this._diagnostics===void 0&&(this._diagnostics=this._clientOptions.diagnosticCollectionName?nt.languages.createDiagnosticCollection(this._clientOptions.diagnosticCollectionName):nt.languages.createDiagnosticCollection());for(const[i,s]of this._notificationHandlers)this._pendingNotificationHandlers.has(i)||this._pendingNotificationHandlers.set(i,s);for(const[i,s]of this._requestHandlers)this._pendingRequestHandlers.has(i)||this._pendingRequestHandlers.set(i,s);for(const[i,s]of this._progressHandlers)this._pendingProgressHandlers.has(i)||this._pendingProgressHandlers.set(i,s);this.$state=Ne.Starting;try{const i=await this.createConnection();i.onNotification(Q.LogMessageNotification.type,s=>{switch(s.type){case Q.MessageType.Error:this.error(s.message,void 0,!1);break;case Q.MessageType.Warning:this.warn(s.message,void 0,!1);break;case Q.MessageType.Info:this.info(s.message,void 0,!1);break;case Q.MessageType.Debug:this.debug(s.message,void 0,!1);break;default:this.outputChannel.appendLine(s.message)}}),i.onNotification(Q.ShowMessageNotification.type,s=>{switch(s.type){case Q.MessageType.Error:nt.window.showErrorMessage(s.message);break;case Q.MessageType.Warning:nt.window.showWarningMessage(s.message);break;case Q.MessageType.Info:nt.window.showInformationMessage(s.message);break;default:nt.window.showInformationMessage(s.message)}}),i.onRequest(Q.ShowMessageRequest.type,s=>{let o;switch(s.type){case Q.MessageType.Error:o=nt.window.showErrorMessage;break;case Q.MessageType.Warning:o=nt.window.showWarningMessage;break;case Q.MessageType.Info:o=nt.window.showInformationMessage;break;default:o=nt.window.showInformationMessage}let a=s.actions||[];return o(s.message,...a)}),i.onNotification(Q.TelemetryEventNotification.type,s=>{this._telemetryEmitter.fire(s)}),i.onRequest(Q.ShowDocumentRequest.type,async s=>{var c;const o=async l=>{const f=this.protocol2CodeConverter.asUri(l.uri);try{if(l.external===!0)return{success:await nt.env.openExternal(f)};{const p={};return l.selection!==void 0&&(p.selection=this.protocol2CodeConverter.asRange(l.selection)),l.takeFocus===void 0||l.takeFocus===!1?p.preserveFocus=!0:l.takeFocus===!0&&(p.preserveFocus=!1),await nt.window.showTextDocument(f,p),{success:!0}}}catch{return{success:!1}}},a=(c=this._clientOptions.middleware.window)==null?void 0:c.showDocument;return a!==void 0?a(s,o):o(s)}),i.listen(),await this.initialize(i),n()}catch(i){this.$state=Ne.StartFailed,this.error(`${this._name} client: couldn't create connection to server.`,i,"force"),r(i)}return this._onStart}createOnStartPromise(){let e,n;return[new Promise((i,s)=>{e=i,n=s}),e,n]}async initialize(e){this.refreshTrace(e,!1);const n=this._clientOptions.initializationOptions,[r,i]=this._clientOptions.workspaceFolder!==void 0?[this._clientOptions.workspaceFolder.uri.fsPath,[{uri:this._c2p.asUri(this._clientOptions.workspaceFolder.uri),name:this._clientOptions.workspaceFolder.name}]]:[this._clientGetRootPath(),null],s={processId:null,clientInfo:{name:nt.env.appName,version:nt.version},locale:this.getLocale(),rootPath:r||null,rootUri:r?this._c2p.asUri(nt.Uri.file(r)):null,capabilities:this.computeClientCapabilities(),initializationOptions:sr.func(n)?n():n,trace:Q.Trace.toString(this._trace),workspaceFolders:i};if(this.fillInitializeParams(s),this._clientOptions.progressOnInitialization){const o=U0.generateUuid(),a=new qS.ProgressPart(e,o);s.workDoneToken=o;try{const c=await this.doInitialize(e,s);return a.done(),c}catch(c){throw a.cancel(),c}}else return this.doInitialize(e,s)}async doInitialize(e,n){try{const r=await e.initialize(n);if(r.capabilities.positionEncoding!==void 0&&r.capabilities.positionEncoding!==Q.PositionEncodingKind.UTF16)throw new Error(`Unsupported position encoding (${r.capabilities.positionEncoding}) received from server ${this.name}`);this._initializeResult=r,this.$state=Ne.Running;let i;sr.number(r.capabilities.textDocumentSync)?r.capabilities.textDocumentSync===Q.TextDocumentSyncKind.None?i={openClose:!1,change:Q.TextDocumentSyncKind.None,save:void 0}:i={openClose:!0,change:r.capabilities.textDocumentSync,save:{includeText:!1}}:r.capabilities.textDocumentSync!==void 0&&r.capabilities.textDocumentSync!==null&&(i=r.capabilities.textDocumentSync),this._capabilities=Object.assign({},r.capabilities,{resolvedTextDocumentSync:i}),e.onNotification(Q.PublishDiagnosticsNotification.type,s=>this.handleDiagnostics(s)),e.onRequest(Q.RegistrationRequest.type,s=>this.handleRegistrationRequest(s)),e.onRequest("client/registerFeature",s=>this.handleRegistrationRequest(s)),e.onRequest(Q.UnregistrationRequest.type,s=>this.handleUnregistrationRequest(s)),e.onRequest("client/unregisterFeature",s=>this.handleUnregistrationRequest(s)),e.onRequest(Q.ApplyWorkspaceEditRequest.type,s=>this.handleApplyWorkspaceEdit(s));for(const[s,o]of this._pendingNotificationHandlers)this._notificationDisposables.set(s,e.onNotification(s,o));this._pendingNotificationHandlers.clear();for(const[s,o]of this._pendingRequestHandlers)this._requestDisposables.set(s,e.onRequest(s,o));this._pendingRequestHandlers.clear();for(const[s,o]of this._pendingProgressHandlers)this._progressDisposables.set(s,e.onProgress(o.type,s,o.handler));return this._pendingProgressHandlers.clear(),await e.sendNotification(Q.InitializedNotification.type,{}),this.hookFileEvents(e),this.hookConfigurationChanged(e),this.initializeFeatures(e),r}catch(r){throw this._clientOptions.initializationFailedHandler?this._clientOptions.initializationFailedHandler(r)?this.initialize(e):this.stop():r instanceof Q.ResponseError&&r.data&&r.data.retry?nt.window.showErrorMessage(r.message,{title:"Retry",id:"retry"}).then(i=>{i&&i.id==="retry"?this.initialize(e):this.stop()}):(r&&r.message&&nt.window.showErrorMessage(r.message),this.error("Server initialization failed.",r),this.stop()),r}}_clientGetRootPath(){let e=nt.workspace.workspaceFolders;if(!e||e.length===0)return;let n=e[0];if(n.uri.scheme==="file")return n.uri.fsPath}stop(e=2e3){return this.shutdown("stop",e)}dispose(e=2e3){try{return this._disposed="disposing",this.stop(e)}finally{this._disposed="disposed"}}async shutdown(e,n){if(this.$state===Ne.Stopped||this.$state===Ne.Initial)return;if(this.$state===Ne.Stopping){if(this._onStop!==void 0)return this._onStop;throw new Error("Client is stopping but no stop promise available.")}const r=this.activeConnection();if(r===void 0||this.$state!==Ne.Running)throw new Error(`Client is not running and can't be stopped. It's current state is: ${this.$state}`);this._initializeResult=void 0,this.$state=Ne.Stopping,this.cleanUp(e);const i=new Promise(o=>{(0,Q.RAL)().timer.setTimeout(o,n)}),s=(async o=>(await o.shutdown(),await o.exit(),o))(r);return this._onStop=Promise.race([i,s]).then(o=>{if(o!==void 0)o.end(),o.dispose();else throw this.error("Stopping server timed out",void 0,!1),new Error("Stopping the server timed out")},o=>{throw this.error("Stopping server failed",o,!1),o}).finally(()=>{this.$state=Ne.Stopped,e==="stop"&&this.cleanUpChannel(),this._onStart=void 0,this._onStop=void 0,this._connection=void 0,this._ignoredRegistrations.clear()})}cleanUp(e){this._fileEvents=[],this._fileEventDelayer.cancel();const n=this._listeners.splice(0,this._listeners.length);for(const r of n)r.dispose();this._syncedDocuments&&this._syncedDocuments.clear();for(const r of Array.from(this._features.entries()).map(i=>i[1]).reverse())r.clear();e==="stop"&&this._diagnostics!==void 0&&(this._diagnostics.dispose(),this._diagnostics=void 0),this._idleInterval!==void 0&&(this._idleInterval.dispose(),this._idleInterval=void 0)}cleanUpChannel(){this._outputChannel!==void 0&&this._disposeOutputChannel&&(this._outputChannel.dispose(),this._outputChannel=void 0)}notifyFileEvent(e){var s;const n=this;async function r(o){return n._fileEvents.push(o),n._fileEventDelayer.trigger(async()=>{await n.sendNotification(Q.DidChangeWatchedFilesNotification.type,{changes:n._fileEvents}),n._fileEvents=[]})}const i=(s=this.clientOptions.middleware)==null?void 0:s.workspace;(i!=null&&i.didChangeWatchedFile?i.didChangeWatchedFile(e,r):r(e)).catch(o=>{n.error("Notify file events failed.",o)})}async sendPendingFullTextDocumentChanges(e){return this._pendingChangeSemaphore.lock(async()=>{try{const n=this._didChangeTextDocumentFeature.getPendingDocumentChanges(this._pendingOpenNotifications);if(n.length===0)return;for(const r of n){const i=this.code2ProtocolConverter.asChangeTextDocumentParams(r);await e.sendNotification(Q.DidChangeTextDocumentNotification.type,i),this._didChangeTextDocumentFeature.notificationSent(r,Q.DidChangeTextDocumentNotification.type,i)}}catch(n){throw this.error("Sending pending changes failed",n,!1),n}})}triggerPendingChangeDelivery(){this._pendingChangeDelayer.trigger(async()=>{const e=this.activeConnection();if(e===void 0){this.triggerPendingChangeDelivery();return}await this.sendPendingFullTextDocumentChanges(e)}).catch(e=>this.error("Delivering pending changes failed",e,!1))}handleDiagnostics(e){if(!this._diagnostics)return;const n=e.uri;this._diagnosticQueueState.state==="busy"&&this._diagnosticQueueState.document===n&&this._diagnosticQueueState.tokenSource.cancel(),this._diagnosticQueue.set(e.uri,e.diagnostics),this.triggerDiagnosticQueue()}triggerDiagnosticQueue(){(0,Q.RAL)().timer.setImmediate(()=>{this.workDiagnosticQueue()})}workDiagnosticQueue(){if(this._diagnosticQueueState.state==="busy")return;const e=this._diagnosticQueue.entries().next();if(e.done===!0)return;const[n,r]=e.value;this._diagnosticQueue.delete(n);const i=new nt.CancellationTokenSource;this._diagnosticQueueState={state:"busy",document:n,tokenSource:i},this._p2c.asDiagnostics(r,i.token).then(s=>{if(!i.token.isCancellationRequested){const o=this._p2c.asUri(n),a=this.clientOptions.middleware;a.handleDiagnostics?a.handleDiagnostics(o,s,(c,l)=>this.setDiagnostics(c,l)):this.setDiagnostics(o,s)}}).finally(()=>{this._diagnosticQueueState={state:"idle"},this.triggerDiagnosticQueue()})}setDiagnostics(e,n){this._diagnostics&&this._diagnostics.set(e,n)}getLocale(){return nt.env.language}async $start(){if(this.$state===Ne.StartFailed)throw new Error("Previous start failed. Can't restart server.");await this.start();const e=this.activeConnection();if(e===void 0)throw new Error("Starting server failed");return e}async createConnection(){let e=(i,s,o)=>{this.handleConnectionError(i,s,o).catch(a=>this.error("Handling connection error failed",a))},n=()=>{this.handleConnectionClosed().catch(i=>this.error("Handling connection close failed",i))};const r=await this.createMessageTransports(this._clientOptions.stdioEncoding||"utf8");return this._connection=bD(r.reader,r.writer,e,n,this._clientOptions.connectionOptions),this._connection}async handleConnectionClosed(){if(this.$state===Ne.Stopped)return;try{this._connection!==void 0&&this._connection.dispose()}catch{}let e={action:gi.DoNotRestart};if(this.$state!==Ne.Stopping)try{e=await this._clientOptions.errorHandler.closed()}catch{}this._connection=void 0,e.action===gi.DoNotRestart?(this.error(e.message??"Connection to server got closed. Server will not be restarted.",void 0,e.handled===!0?!1:"force"),this.cleanUp("stop"),this.$state===Ne.Starting?this.$state=Ne.StartFailed:this.$state=Ne.Stopped,this._onStop=Promise.resolve(),this._onStart=void 0):e.action===gi.Restart&&(this.info(e.message??"Connection to server got closed. Server will restart.",!e.handled),this.cleanUp("restart"),this.$state=Ne.Initial,this._onStop=Promise.resolve(),this._onStart=void 0,this.start().catch(n=>this.error("Restarting server failed",n,"force")))}async handleConnectionError(e,n,r){const i=await this._clientOptions.errorHandler.error(e,n,r);i.action===Jo.Shutdown?(this.error(i.message??`Client ${this._name}: connection to server is erroring.
|
|
71
105
|
${e.message}
|
|
72
|
-
Shutting down server.`,void 0,
|
|
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(Gp.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 Qp.NotebookDocumentSyncFeature)?!1:n.handles(e)}registerBuiltinFeatures(){const e=new Map;this.registerFeature(new Jp.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 j3.FileSystemWatcherFeature(this,n=>this.notifyFileEvent(n))),this.registerFeature(new R3.CompletionItemFeature(this)),this.registerFeature(new E3.HoverFeature(this)),this.registerFeature(new I3.SignatureHelpFeature(this)),this.registerFeature(new P3.DefinitionFeature(this)),this.registerFeature(new A3.ReferencesFeature(this)),this.registerFeature(new F3.DocumentHighlightFeature(this)),this.registerFeature(new M3.DocumentSymbolFeature(this)),this.registerFeature(new O3.WorkspaceSymbolFeature(this)),this.registerFeature(new L3.CodeActionFeature(this)),this.registerFeature(new N3.CodeLensFeature(this)),this.registerFeature(new fu.DocumentFormattingFeature(this)),this.registerFeature(new fu.DocumentRangeFormattingFeature(this)),this.registerFeature(new fu.DocumentOnTypeFormattingFeature(this)),this.registerFeature(new $3.RenameFeature(this)),this.registerFeature(new q3.DocumentLinkFeature(this)),this.registerFeature(new H3.ExecuteCommandFeature(this)),this.registerFeature(new Jp.SyncConfigurationFeature(this)),this.registerFeature(new z3.TypeDefinitionFeature(this)),this.registerFeature(new U3.ImplementationFeature(this)),this.registerFeature(new W3.ColorProviderFeature(this)),this.clientOptions.workspaceFolder===void 0&&this.registerFeature(new B3.WorkspaceFoldersFeature(this)),this.registerFeature(new V3.FoldingRangeFeature(this)),this.registerFeature(new K3.DeclarationFeature(this)),this.registerFeature(new G3.SelectionRangeFeature(this)),this.registerFeature(new Q3.ProgressFeature(this)),this.registerFeature(new J3.CallHierarchyFeature(this)),this.registerFeature(new Y3.SemanticTokensFeature(this)),this.registerFeature(new X3.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 Z3.TypeHierarchyFeature(this)),this.registerFeature(new e_.InlineValueFeature(this)),this.registerFeature(new t_.InlayHintsFeature(this)),this.registerFeature(new T3.DiagnosticFeature(this)),this.registerFeature(new Qp.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 r_{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 s_(t,e,n,i,r){const s=new r_,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 n_.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 D2={},x2={},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 o_(t){return t===!0||t===!1}Rt.boolean=o_;function k2(t){return typeof t=="string"||t instanceof String}Rt.string=k2;function a_(t){return typeof t=="number"||t instanceof Number}Rt.number=a_;function c_(t){return t instanceof Error}Rt.error=c_;function l_(t){return typeof t=="function"}Rt.func=l_;function T2(t){return Array.isArray(t)}Rt.array=T2;function u_(t){return T2(t)&&t.every(e=>k2(e))}Rt.stringArray=u_;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 d_ extends yt{constructor(e){super(e,0)}}ce.RequestType0=d_;class f_ extends yt{constructor(e,n=on.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ce.RequestType=f_;class h_ extends yt{constructor(e,n=on.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ce.RequestType1=h_;class g_ extends yt{constructor(e){super(e,2)}}ce.RequestType2=g_;class p_ extends yt{constructor(e){super(e,3)}}ce.RequestType3=p_;class m_ extends yt{constructor(e){super(e,4)}}ce.RequestType4=m_;class y_ extends yt{constructor(e){super(e,5)}}ce.RequestType5=y_;class b_ extends yt{constructor(e){super(e,6)}}ce.RequestType6=b_;class v_ extends yt{constructor(e){super(e,7)}}ce.RequestType7=v_;class w_ extends yt{constructor(e){super(e,8)}}ce.RequestType8=w_;class C_ extends yt{constructor(e){super(e,9)}}ce.RequestType9=C_;class __ extends yt{constructor(e,n=on.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ce.NotificationType=__;class S_ extends yt{constructor(e){super(e,0)}}ce.NotificationType0=S_;class D_ extends yt{constructor(e,n=on.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ce.NotificationType1=D_;class x_ extends yt{constructor(e){super(e,2)}}ce.NotificationType2=x_;class k_ extends yt{constructor(e){super(e,3)}}ce.NotificationType3=k_;class T_ extends yt{constructor(e){super(e,4)}}ce.NotificationType4=T_;class R_ extends yt{constructor(e){super(e,5)}}ce.NotificationType5=R_;class E_ extends yt{constructor(e){super(e,6)}}ce.NotificationType6=E_;class P_ extends yt{constructor(e){super(e,7)}}ce.NotificationType7=P_;class I_ extends yt{constructor(e){super(e,8)}}ce.NotificationType8=I_;class F_ extends yt{constructor(e){super(e,9)}}ce.NotificationType9=F_;var Zp;(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})(Zp||(ce.Message=Zp={}));var Hi={},em;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 R2{constructor(){this[em]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return(e=this._head)==null?void 0:e.value}get last(){var e;return(e=this._tail)==null?void 0:e.value}has(e){return this._map.has(e)}get(e,n=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}[(em=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,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=R2;class M_ extends R2{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=M_;var cl={};Object.defineProperty(cl,"__esModule",{value:!0});cl.Disposable=void 0;var tm;(function(t){function e(n){return{dispose:n}}t.create=e})(tm||(cl.Disposable=tm={}));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 O_=zi;var nm;(function(t){const e={dispose(){}};t.None=function(){return e}})(nm||(wi.Event=nm={}));class A_{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,O_.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 A_),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 L_=zi,N_=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||N_.boolean(i.isCancellationRequested)&&!!i.onCancellationRequested)}t.is=e})(Ga||(dr.CancellationToken=Ga={}));const $_=Object.freeze(function(t,e){const n=(0,L_.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}});class im{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?$_:(this._emitter||(this._emitter=new mh.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}class q_{get token(){return this._token||(this._token=new im),this._token}cancel(){this._token?this._token.cancel():this._token=Ga.Cancelled}dispose(){this._token?this._token instanceof im&&this._token.dispose():this._token=Ga.None}}dr.CancellationTokenSource=q_;var bs={};Object.defineProperty(bs,"__esModule",{value:!0});bs.SharedArrayReceiverStrategy=bs.SharedArraySenderStrategy=void 0;const H_=dr;var ko;(function(t){t.Continue=0,t.Cancelled=1})(ko||(ko={}));class j_{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=j_;class W_{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 U_{constructor(e){this.token=new W_(e)}cancel(){}dispose(){}}class z_{constructor(){this.kind="request"}createCancellationTokenSource(e){const n=e.$cancellationData;return n===void 0?new H_.CancellationTokenSource:new U_(n)}}bs.SharedArrayReceiverStrategy=z_;var ir={},Qo={};Object.defineProperty(Qo,"__esModule",{value:!0});Qo.Semaphore=void 0;const B_=zi;class V_{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,B_.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=V_;Object.defineProperty(ir,"__esModule",{value:!0});ir.ReadableStreamMessageReader=ir.AbstractMessageReader=ir.MessageReader=void 0;const yh=zi,Xr=Rt,hu=wi,K_=Qo;var rm;(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})(rm||(ir.MessageReader=rm={}));class E2{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=E2;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 G_ extends E2{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 K_.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(
|
|
75
|
-
`;var cm;(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})(cm||(rr.MessageWriter=cm={}));class P2{constructor(){this.errorEmitter=new om.Emitter,this.closeEmitter=new om.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=P2;var vh;(function(t){function e(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,sm.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,sm.default)().applicationJson.encoder}}t.fromOptions=e})(vh||(vh={}));class Y_ extends P2{constructor(e,n){super(),this.writable=e,this.options=vh.fromOptions(n),this.errorCount=0,this.writeSemaphore=new Q_.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(J_,i.byteLength.toString(),am),r.push(am),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=Y_;var ul={};Object.defineProperty(ul,"__esModule",{value:!0});ul.AbstractMessageBuffer=void 0;const X_=13,Z_=10,eS=`\r
|
|
76
|
-
`;class
|
|
77
|
-
${
|
|
78
|
-
${JSON.stringify(
|
|
79
|
-
${JSON.stringify(
|
|
106
|
+
Shutting down server.`,void 0,i.handled===!0?!1:"force"),this.stop().catch(s=>{this.error("Stopping server failed",s,!1)})):this.error(i.message??`Client ${this._name}: connection to server is erroring.
|
|
107
|
+
${e.message}`,void 0,i.handled===!0?!1:"force")}hookConfigurationChanged(e){this._listeners.push(nt.workspace.onDidChangeConfiguration(()=>{this.refreshTrace(e,!0)}))}refreshTrace(e,n=!1){const r=nt.workspace.getConfiguration(this._id);let i=Q.Trace.Off,s=Q.TraceFormat.Text;if(r){const o=r.get("trace.server","off");typeof o=="string"?i=Q.Trace.fromString(o):(i=Q.Trace.fromString(r.get("trace.server.verbosity","off")),s=Q.TraceFormat.fromString(r.get("trace.server.format","text")))}this._trace=i,this._traceFormat=s,e.trace(this._trace,this._tracer,{sendNotification:n,traceFormat:this._traceFormat}).catch(o=>{this.error("Updating trace failed with error",o,!1)})}hookFileEvents(e){let n=this._clientOptions.synchronize.fileEvents;if(!n)return;let r;sr.array(n)?r=n:r=[n],r&&this._dynamicFeatures.get(Q.DidChangeWatchedFilesNotification.type.method).registerRaw(U0.generateUuid(),r)}registerFeatures(e){for(let n of e)this.registerFeature(n)}registerFeature(e){if(this._features.push(e),nr.DynamicFeature.is(e)){const n=e.registrationType;this._dynamicFeatures.set(n.method,e)}}getFeature(e){return this._dynamicFeatures.get(e)}hasDedicatedTextSynchronizationFeature(e){const n=this.getFeature(Q.NotebookDocumentSyncRegistrationType.method);return n===void 0||!(n instanceof z0.NotebookDocumentSyncFeature)?!1:n.handles(e)}registerBuiltinFeatures(){const e=new Map;this.registerFeature(new B0.ConfigurationFeature(this)),this.registerFeature(new as.DidOpenTextDocumentFeature(this,this._syncedDocuments)),this._didChangeTextDocumentFeature=new as.DidChangeTextDocumentFeature(this,e),this._didChangeTextDocumentFeature.onPendingChangeAdded(()=>{this.triggerPendingChangeDelivery()}),this.registerFeature(this._didChangeTextDocumentFeature),this.registerFeature(new as.WillSaveFeature(this)),this.registerFeature(new as.WillSaveWaitUntilFeature(this)),this.registerFeature(new as.DidSaveTextDocumentFeature(this)),this.registerFeature(new as.DidCloseTextDocumentFeature(this,this._syncedDocuments,e)),this.registerFeature(new eD.FileSystemWatcherFeature(this,n=>this.notifyFileEvent(n))),this.registerFeature(new HS.CompletionItemFeature(this)),this.registerFeature(new WS.HoverFeature(this)),this.registerFeature(new zS.SignatureHelpFeature(this)),this.registerFeature(new US.DefinitionFeature(this)),this.registerFeature(new GS.ReferencesFeature(this)),this.registerFeature(new BS.DocumentHighlightFeature(this)),this.registerFeature(new VS.DocumentSymbolFeature(this)),this.registerFeature(new KS.WorkspaceSymbolFeature(this)),this.registerFeature(new QS.CodeActionFeature(this)),this.registerFeature(new JS.CodeLensFeature(this)),this.registerFeature(new Ru.DocumentFormattingFeature(this)),this.registerFeature(new Ru.DocumentRangeFormattingFeature(this)),this.registerFeature(new Ru.DocumentOnTypeFormattingFeature(this)),this.registerFeature(new YS.RenameFeature(this)),this.registerFeature(new XS.DocumentLinkFeature(this)),this.registerFeature(new ZS.ExecuteCommandFeature(this)),this.registerFeature(new B0.SyncConfigurationFeature(this)),this.registerFeature(new rD.TypeDefinitionFeature(this)),this.registerFeature(new nD.ImplementationFeature(this)),this.registerFeature(new tD.ColorProviderFeature(this)),this.clientOptions.workspaceFolder===void 0&&this.registerFeature(new iD.WorkspaceFoldersFeature(this)),this.registerFeature(new sD.FoldingRangeFeature(this)),this.registerFeature(new oD.DeclarationFeature(this)),this.registerFeature(new aD.SelectionRangeFeature(this)),this.registerFeature(new cD.ProgressFeature(this)),this.registerFeature(new lD.CallHierarchyFeature(this)),this.registerFeature(new uD.SemanticTokensFeature(this)),this.registerFeature(new dD.LinkedEditingFeature(this)),this.registerFeature(new cs.DidCreateFilesFeature(this)),this.registerFeature(new cs.DidRenameFilesFeature(this)),this.registerFeature(new cs.DidDeleteFilesFeature(this)),this.registerFeature(new cs.WillCreateFilesFeature(this)),this.registerFeature(new cs.WillRenameFilesFeature(this)),this.registerFeature(new cs.WillDeleteFilesFeature(this)),this.registerFeature(new fD.TypeHierarchyFeature(this)),this.registerFeature(new hD.InlineValueFeature(this)),this.registerFeature(new pD.InlayHintsFeature(this)),this.registerFeature(new jS.DiagnosticFeature(this)),this.registerFeature(new z0.NotebookDocumentSyncFeature(this))}registerProposedFeatures(){this.registerFeatures(q1.createAll(this))}fillInitializeParams(e){for(let n of this._features)sr.func(n.fillInitializeParams)&&n.fillInitializeParams(e)}computeClientCapabilities(){const e={};(0,nr.ensure)(e,"workspace").applyEdit=!0;const n=(0,nr.ensure)((0,nr.ensure)(e,"workspace"),"workspaceEdit");n.documentChanges=!0,n.resourceOperations=[Q.ResourceOperationKind.Create,Q.ResourceOperationKind.Rename,Q.ResourceOperationKind.Delete],n.failureHandling=Q.FailureHandlingKind.TextOnlyTransactional,n.normalizesLineEndings=!0,n.changeAnnotationSupport={groupsOnLabel:!0};const r=(0,nr.ensure)((0,nr.ensure)(e,"textDocument"),"publishDiagnostics");r.relatedInformation=!0,r.versionSupport=!1,r.tagSupport={valueSet:[Q.DiagnosticTag.Unnecessary,Q.DiagnosticTag.Deprecated]},r.codeDescriptionSupport=!0,r.dataSupport=!0;const i=(0,nr.ensure)(e,"window"),s=(0,nr.ensure)(i,"showMessage");s.messageActionItem={additionalPropertiesSupport:!0};const o=(0,nr.ensure)(i,"showDocument");o.support=!0;const a=(0,nr.ensure)(e,"general");a.staleRequestSupport={cancel:!0,retryOnContentModified:Array.from(Gi.RequestsToCancelOnContentModified)},a.regularExpressions={engine:"ECMAScript",version:"ES2020"},a.markdown={parser:"marked",version:"1.1.0"},a.positionEncodings=["utf-16"],this._clientOptions.markdown.supportHtml&&(a.markdown.allowedTags=["ul","li","p","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"]);for(let c of this._features)c.fillClientCapabilities(e);return e}initializeFeatures(e){const n=this._clientOptions.documentSelector;for(const r of this._features)sr.func(r.preInitialize)&&r.preInitialize(this._capabilities,n);for(const r of this._features)r.initialize(this._capabilities,n)}async handleRegistrationRequest(e){var r;const n=(r=this.clientOptions.middleware)==null?void 0:r.handleRegisterCapability;return n?n(e,i=>this.doRegisterCapability(i)):this.doRegisterCapability(e)}async doRegisterCapability(e){if(!this.isRunning()){for(const n of e.registrations)this._ignoredRegistrations.add(n.id);return}for(const n of e.registrations){const r=this._dynamicFeatures.get(n.method);if(r===void 0)return Promise.reject(new Error(`No feature implementation for ${n.method} found. Registration failed.`));const i=n.registerOptions??{};i.documentSelector=i.documentSelector??this._clientOptions.documentSelector;const s={id:n.id,registerOptions:i};try{r.register(s)}catch(o){return Promise.reject(o)}}}async handleUnregistrationRequest(e){var r;const n=(r=this.clientOptions.middleware)==null?void 0:r.handleUnregisterCapability;return n?n(e,i=>this.doUnregisterCapability(i)):this.doUnregisterCapability(e)}async doUnregisterCapability(e){for(const n of e.unregisterations){if(this._ignoredRegistrations.has(n.id))continue;const r=this._dynamicFeatures.get(n.method);if(!r)return Promise.reject(new Error(`No feature implementation for ${n.method} found. Unregistration failed.`));r.unregister(n.id)}}async handleApplyWorkspaceEdit(e){const n=e.edit,r=await this.workspaceEditLock.lock(()=>this._p2c.asWorkspaceEdit(n)),i=new Map;nt.workspace.textDocuments.forEach(o=>i.set(o.uri.toString(),o));let s=!1;if(n.documentChanges){for(const o of n.documentChanges)if(Q.TextDocumentEdit.is(o)&&o.textDocument.version&&o.textDocument.version>=0){const a=this._p2c.asUri(o.textDocument.uri).toString(),c=i.get(a);if(c&&c.version!==o.textDocument.version){s=!0;break}}}return s?Promise.resolve({applied:!1}):sr.asPromise(nt.workspace.applyEdit(r).then(o=>({applied:o})))}handleFailedRequest(e,n,r,i,s=!0){if(r instanceof Q.ResponseError){if(r.code===Q.ErrorCodes.PendingResponseRejected||r.code===Q.ErrorCodes.ConnectionInactive)return i;if(r.code===Q.LSPErrorCodes.RequestCancelled||r.code===Q.LSPErrorCodes.ServerCancelled){if(n!==void 0&&n.isCancellationRequested)return i;throw r.data!==void 0?new nr.LSPCancellationError(r.data):new nt.CancellationError}else if(r.code===Q.LSPErrorCodes.ContentModified){if(Gi.RequestsToCancelOnContentModified.has(e.method)||Gi.CancellableResolveCalls.has(e.method))throw new nt.CancellationError;return i}}throw this.error(`Request ${e.method} failed.`,r,s),r}}Xt.BaseLanguageClient=Gi;Gi.RequestsToCancelOnContentModified=new Set([Q.SemanticTokensRequest.method,Q.SemanticTokensRangeRequest.method,Q.SemanticTokensDeltaRequest.method]);Gi.CancellableResolveCalls=new Set([Q.CompletionResolveRequest.method,Q.CodeLensResolveRequest.method,Q.CodeActionResolveRequest.method,Q.InlayHintResolveRequest.method,Q.DocumentLinkResolveRequest.method,Q.WorkspaceSymbolResolveRequest.method]);class yD{error(e){(0,Q.RAL)().console.error(e)}warn(e){(0,Q.RAL)().console.warn(e)}info(e){(0,Q.RAL)().console.info(e)}log(e){(0,Q.RAL)().console.log(e)}}function bD(t,e,n,r,i){const s=new yD,o=(0,Q.createProtocolConnection)(t,e,s,i);return o.onError(c=>{n(c[0],c[1],c[2])}),o.onClose(r),{listen:()=>o.listen(),sendRequest:o.sendRequest,onRequest:o.onRequest,hasPendingResponse:o.hasPendingResponse,sendNotification:o.sendNotification,onNotification:o.onNotification,onProgress:o.onProgress,sendProgress:o.sendProgress,trace:(c,l,f)=>{const p={sendNotification:!1,traceFormat:Q.TraceFormat.Text};return f===void 0?o.trace(c,l,p):(sr.boolean(f),o.trace(c,l,f))},initialize:c=>o.sendRequest(Q.InitializeRequest.type,c),shutdown:()=>o.sendRequest(Q.ShutdownRequest.type,void 0),exit:()=>o.sendNotification(Q.ExitNotification.type),end:()=>o.end(),dispose:()=>o.dispose()}}var q1;(function(t){function e(n){return[new gD.InlineCompletionItemFeature(n)]}t.createAll=e})(q1||(Xt.ProposedFeatures=q1={}));(function(t){var e=_t&&_t.__createBinding||(Object.create?function(i,s,o,a){a===void 0&&(a=o);var c=Object.getOwnPropertyDescriptor(s,o);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[o]}}),Object.defineProperty(i,a,c)}:function(i,s,o,a){a===void 0&&(a=o),i[a]=s[o]}),n=_t&&_t.__exportStar||function(i,s){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,i,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticPullMode=t.vsdiag=void 0,n(ye,t),n(De,t);var r=Ur;Object.defineProperty(t,"vsdiag",{enumerable:!0,get:function(){return r.vsdiag}}),Object.defineProperty(t,"DiagnosticPullMode",{enumerable:!0,get:function(){return r.DiagnosticPullMode}}),n(Xt,t)})(Ou);var G0=ye;(function(t){var e=_t&&_t.__createBinding||(Object.create?function(o,a,c,l){l===void 0&&(l=c);var f=Object.getOwnPropertyDescriptor(a,c);(!f||("get"in f?!a.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(o,l,f)}:function(o,a,c,l){l===void 0&&(l=c),o[l]=a[c]}),n=_t&&_t.__exportStar||function(o,a){for(var c in o)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&e(a,o,c)};Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageClient=void 0;const r=Ou,i=G0;n(G0,t),n(Ou,t);class s extends r.BaseLanguageClient{constructor(a,c,l,f){super(a,c,l),this.worker=f}createMessageTransports(a){const c=new i.BrowserMessageReader(this.worker),l=new i.BrowserMessageWriter(this.worker);return Promise.resolve({reader:c,writer:l})}}t.LanguageClient=s})(Mu);var mi={},Jr={};Object.defineProperty(Jr,"__esModule",{value:!0});let j1;function H1(){if(j1===void 0)throw new Error("No runtime abstraction layer installed");return j1}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");j1=n}t.install=e})(H1||(H1={}));Jr.default=H1;var Ht={};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.stringArray=Ht.array=Ht.func=Ht.error=Ht.number=Ht.string=Ht.boolean=void 0;function vD(t){return t===!0||t===!1}Ht.boolean=vD;function ky(t){return typeof t=="string"||t instanceof String}Ht.string=ky;function wD(t){return typeof t=="number"||t instanceof Number}Ht.number=wD;function CD(t){return t instanceof Error}Ht.error=CD;function _D(t){return typeof t=="function"}Ht.func=_D;function Ry(t){return Array.isArray(t)}Ht.array=Ry;function SD(t){return Ry(t)&&t.every(e=>ky(e))}Ht.stringArray=SD;var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.Emitter=Tr.Event=void 0;const DD=Jr;var Q0;(function(t){const e={dispose(){}};t.None=function(){return e}})(Q0||(Tr.Event=Q0={}));class TD{add(e,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,s=this._callbacks.length;i<s;i++)if(this._callbacks[i]===e)if(this._contexts[i]===n){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];const n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let s=0,o=r.length;s<o;s++)try{n.push(r[s].apply(i[s],e))}catch(a){(0,DD.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}}class Ol{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,r)=>{this._callbacks||(this._callbacks=new TD),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);const i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,n),i.dispose=Ol._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}Tr.Emitter=Ol;Ol._noop=function(){};var ua={};Object.defineProperty(ua,"__esModule",{value:!0});ua.Semaphore=void 0;const kD=Jr;class RD{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((n,r)=>{this._waiting.push({thunk:e,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,kD.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const n=e.thunk();n instanceof Promise?n.then(r=>{this._active--,e.resolve(r),this.runNext()},r=>{this._active--,e.reject(r),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}}ua.Semaphore=RD;Object.defineProperty(mi,"__esModule",{value:!0});mi.ReadableStreamMessageReader=Ey=mi.AbstractMessageReader=mi.MessageReader=void 0;const W1=Jr,us=Ht,xu=Tr,xD=ua;var J0;(function(t){function e(n){let r=n;return r&&us.func(r.listen)&&us.func(r.dispose)&&us.func(r.onError)&&us.func(r.onClose)&&us.func(r.onPartialMessage)}t.is=e})(J0||(mi.MessageReader=J0={}));class xy{constructor(){this.errorEmitter=new xu.Emitter,this.closeEmitter=new xu.Emitter,this.partialMessageEmitter=new xu.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${us.string(e.message)?e.message:"unknown"}`)}}var Ey=mi.AbstractMessageReader=xy,U1;(function(t){function e(n){let r,i;const s=new Map;let o;const a=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(i=n.contentDecoder,s.set(i.name,i)),n.contentDecoders!==void 0)for(const c of n.contentDecoders)s.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(o=n.contentTypeDecoder,a.set(o.name,o)),n.contentTypeDecoders!==void 0)for(const c of n.contentTypeDecoders)a.set(c.name,c)}return o===void 0&&(o=(0,W1.default)().applicationJson.decoder,a.set(o.name,o)),{charset:r,contentDecoder:i,contentDecoders:s,contentTypeDecoder:o,contentTypeDecoders:a}}t.fromOptions=e})(U1||(U1={}));class ED extends xy{constructor(e,n){super(),this.readable=e,this.options=U1.fromOptions(n),this.buffer=(0,W1.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new xD.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;const n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){const r=this.buffer.tryReadHeaders(!0);if(!r)return;const i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
108
|
+
${JSON.stringify(Object.fromEntries(r))}`));return}const s=parseInt(i);if(isNaN(s)){this.fireError(new Error(`Content-Length value must be a number. Got ${i}`));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 r=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch(r=>{this.fireError(r)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,W1.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))}}mi.ReadableStreamMessageReader=ED;let PD=class extends Ey{constructor(n){super();Nt(this,"socket");Nt(this,"state","initial");Nt(this,"callback");Nt(this,"events",[]);this.socket=n,this.socket.onMessage(r=>this.readMessage(r)),this.socket.onError(r=>this.fireError(r)),this.socket.onClose((r,i)=>{if(r!==1e3){const s={name:""+r,message:`Error during socket reconnect: code = ${r}, reason = ${i}`};this.fireError(s)}this.fireClose()})}listen(n){if(this.state==="initial")for(this.state="listening",this.callback=n;this.events.length!==0;){const r=this.events.pop();r.message!==void 0?this.readMessage(r.message):r.error!==void 0?this.fireError(r.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 r=JSON.parse(n);this.callback(r)}catch(r){const i={name:"400",message:`Error during message parsing, reason = ${typeof r=="object"?r.message:"unknown"}`};this.fireError(i)}}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 yi={};Object.defineProperty(yi,"__esModule",{value:!0});yi.WriteableStreamMessageWriter=Iy=yi.AbstractMessageWriter=yi.MessageWriter=void 0;const Y0=Jr,wo=Ht,ID=ua,X0=Tr,MD="Content-Length: ",Z0=`\r
|
|
109
|
+
`;var e2;(function(t){function e(n){let r=n;return r&&wo.func(r.dispose)&&wo.func(r.onClose)&&wo.func(r.onError)&&wo.func(r.write)}t.is=e})(e2||(yi.MessageWriter=e2={}));class Py{constructor(){this.errorEmitter=new X0.Emitter,this.closeEmitter=new X0.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,n,r){this.errorEmitter.fire([this.asError(e),n,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${wo.string(e.message)?e.message:"unknown"}`)}}var Iy=yi.AbstractMessageWriter=Py,z1;(function(t){function e(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,Y0.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,Y0.default)().applicationJson.encoder}}t.fromOptions=e})(z1||(z1={}));class OD extends Py{constructor(e,n){super(),this.writable=e,this.options=z1.fromOptions(n),this.errorCount=0,this.writeSemaphore=new ID.Semaphore(1),this.writable.onError(r=>this.fireError(r)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(r=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(r):r).then(r=>{const i=[];return i.push(MD,r.byteLength.toString(),Z0),i.push(Z0),this.doWrite(e,i,r)},r=>{throw this.fireError(r),r}))}async doWrite(e,n,r){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,e),Promise.reject(i)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){this.writable.end()}}yi.WriteableStreamMessageWriter=OD;let AD=class extends Iy{constructor(n){super();Nt(this,"errorCount",0);Nt(this,"socket");this.socket=n}end(){}async write(n){try{const r=JSON.stringify(n);this.socket.send(r)}catch(r){this.errorCount++,this.fireError(r,n,this.errorCount)}}};var FD={},gp={},Eu={},he={},t2;function My(){if(t2)return he;t2=1,Object.defineProperty(he,"__esModule",{value:!0}),he.Message=he.NotificationType9=he.NotificationType8=he.NotificationType7=he.NotificationType6=he.NotificationType5=he.NotificationType4=he.NotificationType3=he.NotificationType2=he.NotificationType1=he.NotificationType0=he.NotificationType=he.RequestType9=he.RequestType8=he.RequestType7=he.RequestType6=he.RequestType5=he.RequestType4=he.RequestType3=he.RequestType2=he.RequestType1=he.RequestType=he.RequestType0=he.AbstractMessageSignature=he.ParameterStructures=he.ResponseError=he.ErrorCodes=void 0;const t=Ht;var e;(function(P){P.ParseError=-32700,P.InvalidRequest=-32600,P.MethodNotFound=-32601,P.InvalidParams=-32602,P.InternalError=-32603,P.jsonrpcReservedErrorRangeStart=-32099,P.serverErrorStart=-32099,P.MessageWriteError=-32099,P.MessageReadError=-32098,P.PendingResponseRejected=-32097,P.ConnectionInactive=-32096,P.ServerNotInitialized=-32002,P.UnknownErrorCode=-32001,P.jsonrpcReservedErrorRangeEnd=-32e3,P.serverErrorEnd=-32e3})(e||(he.ErrorCodes=e={}));class n extends Error{constructor(v,R,I){super(R),this.code=t.number(v)?v:e.UnknownErrorCode,this.data=I,Object.setPrototypeOf(this,n.prototype)}toJson(){const v={code:this.code,message:this.message};return this.data!==void 0&&(v.data=this.data),v}}he.ResponseError=n;class r{constructor(v){this.kind=v}static is(v){return v===r.auto||v===r.byName||v===r.byPosition}toString(){return this.kind}}he.ParameterStructures=r,r.auto=new r("auto"),r.byPosition=new r("byPosition"),r.byName=new r("byName");class i{constructor(v,R){this.method=v,this.numberOfParams=R}get parameterStructures(){return r.auto}}he.AbstractMessageSignature=i;class s extends i{constructor(v){super(v,0)}}he.RequestType0=s;class o extends i{constructor(v,R=r.auto){super(v,1),this._parameterStructures=R}get parameterStructures(){return this._parameterStructures}}he.RequestType=o;class a extends i{constructor(v,R=r.auto){super(v,1),this._parameterStructures=R}get parameterStructures(){return this._parameterStructures}}he.RequestType1=a;class c extends i{constructor(v){super(v,2)}}he.RequestType2=c;class l extends i{constructor(v){super(v,3)}}he.RequestType3=l;class f extends i{constructor(v){super(v,4)}}he.RequestType4=f;class p extends i{constructor(v){super(v,5)}}he.RequestType5=p;class g extends i{constructor(v){super(v,6)}}he.RequestType6=g;class _ extends i{constructor(v){super(v,7)}}he.RequestType7=_;class C extends i{constructor(v){super(v,8)}}he.RequestType8=C;class k extends i{constructor(v){super(v,9)}}he.RequestType9=k;class M extends i{constructor(v,R=r.auto){super(v,1),this._parameterStructures=R}get parameterStructures(){return this._parameterStructures}}he.NotificationType=M;class H extends i{constructor(v){super(v,0)}}he.NotificationType0=H;class K extends i{constructor(v,R=r.auto){super(v,1),this._parameterStructures=R}get parameterStructures(){return this._parameterStructures}}he.NotificationType1=K;class j extends i{constructor(v){super(v,2)}}he.NotificationType2=j;class B extends i{constructor(v){super(v,3)}}he.NotificationType3=B;class z extends i{constructor(v){super(v,4)}}he.NotificationType4=z;class ne extends i{constructor(v){super(v,5)}}he.NotificationType5=ne;class G extends i{constructor(v){super(v,6)}}he.NotificationType6=G;class Y extends i{constructor(v){super(v,7)}}he.NotificationType7=Y;class re extends i{constructor(v){super(v,8)}}he.NotificationType8=re;class Le extends i{constructor(v){super(v,9)}}he.NotificationType9=Le;var $;return function(P){function v(E){const V=E;return V&&t.string(V.method)&&(t.string(V.id)||t.number(V.id))}P.isRequest=v;function R(E){const V=E;return V&&t.string(V.method)&&E.id===void 0}P.isNotification=R;function I(E){const V=E;return V&&(V.result!==void 0||!!V.error)&&(t.string(V.id)||t.number(V.id)||V.id===null)}P.isResponse=I}($||(he.Message=$={})),he}var Rr={},n2;function Oy(){if(n2)return Rr;n2=1;var t;Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.LRUCache=Rr.LinkedMap=Rr.Touch=void 0;var e;(function(i){i.None=0,i.First=1,i.AsOld=i.First,i.Last=2,i.AsNew=i.Last})(e||(Rr.Touch=e={}));class n{constructor(){this[t]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var s;return(s=this._head)==null?void 0:s.value}get last(){var s;return(s=this._tail)==null?void 0:s.value}has(s){return this._map.has(s)}get(s,o=e.None){const a=this._map.get(s);if(a)return o!==e.None&&this.touch(a,o),a.value}set(s,o,a=e.None){let c=this._map.get(s);if(c)c.value=o,a!==e.None&&this.touch(c,a);else{switch(c={key:s,value:o,next:void 0,previous:void 0},a){case e.None:this.addItemLast(c);break;case e.First:this.addItemFirst(c);break;case e.Last:this.addItemLast(c);break;default:this.addItemLast(c);break}this._map.set(s,c),this._size++}return this}delete(s){return!!this.remove(s)}remove(s){const o=this._map.get(s);if(o)return this._map.delete(s),this.removeItem(o),this._size--,o.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const s=this._head;return this._map.delete(s.key),this.removeItem(s),this._size--,s.value}forEach(s,o){const a=this._state;let c=this._head;for(;c;){if(o?s.bind(o)(c.value,c.key,this):s(c.value,c.key,this),this._state!==a)throw new Error("LinkedMap got modified during iteration.");c=c.next}}keys(){const s=this._state;let o=this._head;const a={[Symbol.iterator]:()=>a,next:()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){const c={value:o.key,done:!1};return o=o.next,c}else return{value:void 0,done:!0}}};return a}values(){const s=this._state;let o=this._head;const a={[Symbol.iterator]:()=>a,next:()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){const c={value:o.value,done:!1};return o=o.next,c}else return{value:void 0,done:!0}}};return a}entries(){const s=this._state;let o=this._head;const a={[Symbol.iterator]:()=>a,next:()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){const c={value:[o.key,o.value],done:!1};return o=o.next,c}else return{value:void 0,done:!0}}};return a}[(t=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(s){if(s>=this.size)return;if(s===0){this.clear();return}let o=this._head,a=this.size;for(;o&&a>s;)this._map.delete(o.key),o=o.next,a--;this._head=o,this._size=a,o&&(o.previous=void 0),this._state++}addItemFirst(s){if(!this._head&&!this._tail)this._tail=s;else if(this._head)s.next=this._head,this._head.previous=s;else throw new Error("Invalid list");this._head=s,this._state++}addItemLast(s){if(!this._head&&!this._tail)this._head=s;else if(this._tail)s.previous=this._tail,this._tail.next=s;else throw new Error("Invalid list");this._tail=s,this._state++}removeItem(s){if(s===this._head&&s===this._tail)this._head=void 0,this._tail=void 0;else if(s===this._head){if(!s.next)throw new Error("Invalid list");s.next.previous=void 0,this._head=s.next}else if(s===this._tail){if(!s.previous)throw new Error("Invalid list");s.previous.next=void 0,this._tail=s.previous}else{const o=s.next,a=s.previous;if(!o||!a)throw new Error("Invalid list");o.previous=a,a.next=o}s.next=void 0,s.previous=void 0,this._state++}touch(s,o){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(o!==e.First&&o!==e.Last)){if(o===e.First){if(s===this._head)return;const a=s.next,c=s.previous;s===this._tail?(c.next=void 0,this._tail=c):(a.previous=c,c.next=a),s.previous=void 0,s.next=this._head,this._head.previous=s,this._head=s,this._state++}else if(o===e.Last){if(s===this._tail)return;const a=s.next,c=s.previous;s===this._head?(a.previous=void 0,this._head=a):(a.previous=c,c.next=a),s.next=void 0,s.previous=this._tail,this._tail.next=s,this._tail=s,this._state++}}}toJSON(){const s=[];return this.forEach((o,a)=>{s.push([a,o])}),s}fromJSON(s){this.clear();for(const[o,a]of s)this.set(o,a)}}Rr.LinkedMap=n;class r extends n{constructor(s,o=1){super(),this._limit=s,this._ratio=Math.min(Math.max(0,o),1)}get limit(){return this._limit}set limit(s){this._limit=s,this.checkTrim()}get ratio(){return this._ratio}set ratio(s){this._ratio=Math.min(Math.max(0,s),1),this.checkTrim()}get(s,o=e.AsNew){return super.get(s,o)}peek(s){return super.get(s,e.None)}set(s,o){return super.set(s,o,e.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}return Rr.LRUCache=r,Rr}var uo={},r2;function LD(){if(r2)return uo;r2=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.Disposable=void 0;var t;return function(e){function n(r){return{dispose:r}}e.create=n}(t||(uo.Disposable=t={})),uo}var ki={},i2;function mp(){if(i2)return ki;i2=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.CancellationTokenSource=ki.CancellationToken=void 0;const t=Jr,e=Ht,n=Tr;var r;(function(a){a.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),a.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n.Event.None});function c(l){const f=l;return f&&(f===a.None||f===a.Cancelled||e.boolean(f.isCancellationRequested)&&!!f.onCancellationRequested)}a.is=c})(r||(ki.CancellationToken=r={}));const i=Object.freeze(function(a,c){const l=(0,t.default)().timer.setTimeout(a.bind(c),0);return{dispose(){l.dispose()}}});class s{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?i:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}class o{get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token.cancel():this._token=r.Cancelled}dispose(){this._token?this._token instanceof s&&this._token.dispose():this._token=r.None}}return ki.CancellationTokenSource=o,ki}var Ri={},s2;function ND(){if(s2)return Ri;s2=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.SharedArrayReceiverStrategy=Ri.SharedArraySenderStrategy=void 0;const t=mp();var e;(function(o){o.Continue=0,o.Cancelled=1})(e||(e={}));class n{constructor(){this.buffers=new Map}enableCancellation(a){if(a.id===null)return;const c=new SharedArrayBuffer(4),l=new Int32Array(c,0,1);l[0]=e.Continue,this.buffers.set(a.id,c),a.$cancellationData=c}async sendCancellation(a,c){const l=this.buffers.get(c);if(l===void 0)return;const f=new Int32Array(l,0,1);Atomics.store(f,0,e.Cancelled)}cleanup(a){this.buffers.delete(a)}dispose(){this.buffers.clear()}}Ri.SharedArraySenderStrategy=n;class r{constructor(a){this.data=new Int32Array(a,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===e.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class i{constructor(a){this.token=new r(a)}cancel(){}dispose(){}}class s{constructor(){this.kind="request"}createCancellationTokenSource(a){const c=a.$cancellationData;return c===void 0?new t.CancellationTokenSource:new i(c)}}return Ri.SharedArrayReceiverStrategy=s,Ri}var fo={},o2;function $D(){if(o2)return fo;o2=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.AbstractMessageBuffer=void 0;const t=13,e=10,n=`\r
|
|
110
|
+
`;class r{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),p=new Map,g=this.toString(f,"ascii").split(n);if(g.length<2)return p;for(let _=0;_<g.length-2;_++){const C=g[_],k=C.indexOf(":");if(k===-1)throw new Error(`Message header must separate key and value using ':'
|
|
111
|
+
${C}`);const M=C.substr(0,k),H=C.substr(k+1).trim();p.set(s?M.toLowerCase():M,H)}return p}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=r,fo}var Pu={},a2;function qD(){return a2||(a2=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=Jr,n=Ht,r=My(),i=Oy(),s=Tr,o=mp();var a;(function(v){v.type=new r.NotificationType("$/cancelRequest")})(a||(a={}));var c;(function(v){function R(I){return typeof I=="string"||typeof I=="number"}v.is=R})(c||(t.ProgressToken=c={}));var l;(function(v){v.type=new r.NotificationType("$/progress")})(l||(l={}));class f{constructor(){}}t.ProgressType=f;var p;(function(v){function R(I){return n.func(I)}v.is=R})(p||(p={})),t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var g;(function(v){v[v.Off=0]="Off",v[v.Messages=1]="Messages",v[v.Compact=2]="Compact",v[v.Verbose=3]="Verbose"})(g||(t.Trace=g={}));var _;(function(v){v.Off="off",v.Messages="messages",v.Compact="compact",v.Verbose="verbose"})(_||(t.TraceValues=_={})),function(v){function R(E){if(!n.string(E))return v.Off;switch(E=E.toLowerCase(),E){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 I(E){switch(E){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=I}(g||(t.Trace=g={}));var C;(function(v){v.Text="text",v.JSON="json"})(C||(t.TraceFormat=C={})),function(v){function R(I){return n.string(I)?(I=I.toLowerCase(),I==="json"?v.JSON:v.Text):v.Text}v.fromString=R}(C||(t.TraceFormat=C={}));var k;(function(v){v.type=new r.NotificationType("$/setTrace")})(k||(t.SetTraceNotification=k={}));var M;(function(v){v.type=new r.NotificationType("$/logTrace")})(M||(t.LogTraceNotification=M={}));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,I){super(I),this.code=R,Object.setPrototypeOf(this,K.prototype)}}t.ConnectionError=K;var j;(function(v){function R(I){const E=I;return E&&n.func(E.cancelUndispatched)}v.is=R})(j||(t.ConnectionStrategy=j={}));var B;(function(v){function R(I){const E=I;return E&&(E.kind===void 0||E.kind==="id")&&n.func(E.createCancellationTokenSource)&&(E.dispose===void 0||n.func(E.dispose))}v.is=R})(B||(t.IdCancellationReceiverStrategy=B={}));var z;(function(v){function R(I){const E=I;return E&&E.kind==="request"&&n.func(E.createCancellationTokenSource)&&(E.dispose===void 0||n.func(E.dispose))}v.is=R})(z||(t.RequestCancellationReceiverStrategy=z={}));var ne;(function(v){v.Message=Object.freeze({createCancellationTokenSource(I){return new o.CancellationTokenSource}});function R(I){return B.is(I)||z.is(I)}v.is=R})(ne||(t.CancellationReceiverStrategy=ne={}));var G;(function(v){v.Message=Object.freeze({sendCancellation(I,E){return I.sendNotification(a.type,{id:E})},cleanup(I){}});function R(I){const E=I;return E&&n.func(E.sendCancellation)&&n.func(E.cleanup)}v.is=R})(G||(t.CancellationSenderStrategy=G={}));var Y;(function(v){v.Message=Object.freeze({receiver:ne.Message,sender:G.Message});function R(I){const E=I;return E&&ne.is(E.receiver)&&G.is(E.sender)}v.is=R})(Y||(t.CancellationStrategy=Y={}));var re;(function(v){function R(I){const E=I;return E&&n.func(E.handleMessage)}v.is=R})(re||(t.MessageStrategy=re={}));var Le;(function(v){function R(I){const E=I;return E&&(Y.is(E.cancellationStrategy)||j.is(E.connectionStrategy)||re.is(E.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 P(v,R,I,E){const V=I!==void 0?I:t.NullLogger;let Me=0,we=0,lt=0;const He="2.0";let Pe;const st=new Map;let Fe;const ot=new Map,Qe=new Map;let Ft,Je=new i.LinkedMap,Xe=new Map,vt=new Set,at=new Map,oe=g.Off,gt=C.Text,Ce,Ze=$.New;const en=new s.Emitter,tn=new s.Emitter,Wt=new s.Emitter,Rt=new s.Emitter,xt=new s.Emitter,qe=E&&E.cancellationStrategy?E.cancellationStrategy:Y.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-"+(++we).toString()}function Tn(h,D){r.Message.isRequest(D)?h.set(Ut(D.id),D):r.Message.isResponse(D)?h.set(Ln(D.id),D):h.set(Dn(),D)}function Nn(h){}function kn(){return Ze===$.Listening}function ln(){return Ze===$.Closed}function St(){return Ze===$.Disposed}function mn(){(Ze===$.New||Ze===$.Listening)&&(Ze=$.Closed,tn.fire(void 0))}function Bn(h){en.fire([h,void 0,void 0])}function Kt(h){en.fire(h)}v.onClose(mn),v.onError(Bn),R.onClose(mn),R.onError(Kt);function nn(){Ft||Je.size===0||(Ft=(0,e.default)().timer.setImmediate(()=>{Ft=void 0,Gt()}))}function yn(h){r.Message.isRequest(h)?bn(h):r.Message.isNotification(h)?Vn(h):r.Message.isResponse(h)?xn(h):vn(h)}function Gt(){if(Je.size===0)return;const h=Je.shift();try{const D=E==null?void 0:E.messageStrategy;re.is(D)?D.handleMessage(h,yn):yn(h)}finally{nn()}}const Rn=h=>{try{if(r.Message.isNotification(h)&&h.method===a.type.method){const D=h.params.id,x=Ut(D),N=Je.get(x);if(r.Message.isRequest(N)){const ce=E==null?void 0:E.connectionStrategy,fe=ce&&ce.cancelUndispatched?ce.cancelUndispatched(N,Nn):void 0;if(fe&&(fe.error!==void 0||fe.result!==void 0)){Je.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(Je,h)}finally{nn()}};function bn(h){if(St())return;function D(S,O,W){const de={jsonrpc:He,id:h.id};S instanceof r.ResponseError?de.error=S.toJson():de.result=S===void 0?null:S,Lt(de,O,W),R.write(de).catch(()=>V.error("Sending response failed."))}function x(S,O,W){const de={jsonrpc:He,id:h.id,error:S.toJson()};Lt(de,O,W),R.write(de).catch(()=>V.error("Sending response failed."))}function N(S,O,W){S===void 0&&(S=null);const de={jsonrpc:He,id:h.id,result:S};Lt(de,O,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||Pe){const S=h.id??String(Date.now()),O=B.is(qe.receiver)?qe.receiver.createCancellationTokenSource(S):qe.receiver.createCancellationTokenSource(h);h.id!==null&&vt.has(h.id)&&O.cancel(),h.id!==null&&at.set(S,O);try{let W;if(fe)if(h.params===void 0){if(ce!==void 0&&ce.numberOfParams!==0){x(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${h.method} defines ${ce.numberOfParams} params but received none.`),h.method,d);return}W=fe(O.token)}else if(Array.isArray(h.params)){if(ce!==void 0&&ce.parameterStructures===r.ParameterStructures.byName){x(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${h.method} defines parameters by name but received parameters by position`),h.method,d);return}W=fe(...h.params,O.token)}else{if(ce!==void 0&&ce.parameterStructures===r.ParameterStructures.byPosition){x(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${h.method} defines parameters by position but received parameters by name`),h.method,d);return}W=fe(h.params,O.token)}else Pe&&(W=Pe(h.method,h.params,O.token));const de=W;W?de.then?de.then(be=>{at.delete(S),D(be,h.method,d)},be=>{at.delete(S),be instanceof r.ResponseError?x(be,h.method,d):be&&n.string(be.message)?x(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${h.method} failed with message: ${be.message}`),h.method,d):x(new r.ResponseError(r.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 r.ResponseError?D(W,h.method,d):W&&n.string(W.message)?x(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${h.method} failed with message: ${W.message}`),h.method,d):x(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${h.method} failed unexpectedly without providing any details.`),h.method,d)}}else x(new r.ResponseError(r.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:
|
|
112
|
+
${JSON.stringify(h.error,void 0,4)}`):V.error("Received response message without id. No further error information provided.");else{const D=h.id,x=Xe.get(D);if(te(h,x),x!==void 0){Xe.delete(D);try{if(h.error){const N=h.error;x.reject(new r.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 Vn(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!==r.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===r.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===r.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:
|
|
113
|
+
${JSON.stringify(h,null,4)}`);const D=h;if(n.string(D.id)||n.number(D.id)){const x=D.id,N=Xe.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 g.Verbose:return JSON.stringify(h,null,4);case g.Compact:return JSON.stringify(h);default:return}}function En(h){if(!(oe===g.Off||!Ce))if(gt===C.Text){let D;(oe===g.Verbose||oe===g.Compact)&&h.params&&(D=`Params: ${mt(h.params)}
|
|
80
114
|
|
|
81
|
-
`),
|
|
115
|
+
`),Ce.log(`Sending request '${h.method} - (${h.id})'.`,D)}else Te("send-request",h)}function $n(h){if(!(oe===g.Off||!Ce))if(gt===C.Text){let D;(oe===g.Verbose||oe===g.Compact)&&(h.params?D=`Params: ${mt(h.params)}
|
|
82
116
|
|
|
83
|
-
`:
|
|
117
|
+
`:D=`No parameters provided.
|
|
84
118
|
|
|
85
|
-
`),
|
|
119
|
+
`),Ce.log(`Sending notification '${h.method}'.`,D)}else Te("send-notification",h)}function Lt(h,D,x){if(!(oe===g.Off||!Ce))if(gt===C.Text){let N;(oe===g.Verbose||oe===g.Compact)&&(h.error&&h.error.data?N=`Error data: ${mt(h.error.data)}
|
|
86
120
|
|
|
87
|
-
`:
|
|
121
|
+
`:h.result?N=`Result: ${mt(h.result)}
|
|
88
122
|
|
|
89
|
-
`:
|
|
123
|
+
`:h.error===void 0&&(N=`No result returned.
|
|
90
124
|
|
|
91
|
-
`)),
|
|
125
|
+
`)),Ce.log(`Sending response '${D} - (${h.id})'. Processing request took ${Date.now()-x}ms`,N)}else Te("send-response",h)}function y(h){if(!(oe===g.Off||!Ce))if(gt===C.Text){let D;(oe===g.Verbose||oe===g.Compact)&&h.params&&(D=`Params: ${mt(h.params)}
|
|
92
126
|
|
|
93
|
-
`),
|
|
127
|
+
`),Ce.log(`Received request '${h.method} - (${h.id})'.`,D)}else Te("receive-request",h)}function L(h){if(!(oe===g.Off||!Ce||h.method===M.type.method))if(gt===C.Text){let D;(oe===g.Verbose||oe===g.Compact)&&(h.params?D=`Params: ${mt(h.params)}
|
|
94
128
|
|
|
95
|
-
`:
|
|
129
|
+
`:D=`No parameters provided.
|
|
96
130
|
|
|
97
|
-
`),
|
|
131
|
+
`),Ce.log(`Received notification '${h.method}'.`,D)}else Te("receive-notification",h)}function te(h,D){if(!(oe===g.Off||!Ce))if(gt===C.Text){let x;if((oe===g.Verbose||oe===g.Compact)&&(h.error&&h.error.data?x=`Error data: ${mt(h.error.data)}
|
|
98
132
|
|
|
99
|
-
`:
|
|
133
|
+
`:h.result?x=`Result: ${mt(h.result)}
|
|
100
134
|
|
|
101
|
-
`:
|
|
135
|
+
`:h.error===void 0&&(x=`No result returned.
|
|
102
136
|
|
|
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})(I2);(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=I2;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 nS{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 iS{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 rS=new TextEncoder,F2=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(rS.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 nS(t),asWritableStream:t=>new iS(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 F2}(function(t){function e(){mi.RAL.install(F2)}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})(x2);var lm=x2,M2={},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 um{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 sS{constructor(e){this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new um(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 um,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 oS=[`
|
|
104
|
-
`,`\r
|
|
105
|
-
`,"\r"];var w1;(function(t){function e(s,o,a,c){return new aS(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 aS{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 cS=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:oS,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:sS,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=I0(cS);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 dm;(function(t){t.clientToServer="clientToServer",t.serverToClient="serverToClient",t.both="both"})(dm||(Ne.MessageDirection=dm={}));class lS{constructor(e){this.method=e}}Ne.RegistrationType=lS;class uS extends Ss.RequestType0{constructor(e){super(e)}}Ne.ProtocolRequestType0=uS;class dS extends Ss.RequestType{constructor(e){super(e,Ss.ParameterStructures.byName)}}Ne.ProtocolRequestType=dS;class fS extends Ss.NotificationType0{constructor(e){super(e)}}Ne.ProtocolNotificationType0=fS;class hS extends Ss.NotificationType{constructor(e){super(e,Ss.ParameterStructures.byName)}}Ne.ProtocolNotificationType=hS;var O2={},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 gS(t){return t===!0||t===!1}Ct.boolean=gS;function A2(t){return typeof t=="string"||t instanceof String}Ct.string=A2;function pS(t){return typeof t=="number"||t instanceof Number}Ct.number=pS;function mS(t){return t instanceof Error}Ct.error=mS;function yS(t){return typeof t=="function"}Ct.func=yS;function L2(t){return Array.isArray(t)}Ct.array=L2;function bS(t){return L2(t)&&t.every(e=>A2(e))}Ct.stringArray=bS;function vS(t,e){return Array.isArray(t)&&t.every(e)}Ct.typedArray=vS;function wS(t){return t!==null&&typeof t=="object"}Ct.objectLiteral=wS;var fl={};Object.defineProperty(fl,"__esModule",{value:!0});fl.ImplementationRequest=void 0;const fm=Ne;var hm;(function(t){t.method="textDocument/implementation",t.messageDirection=fm.MessageDirection.clientToServer,t.type=new fm.ProtocolRequestType(t.method)})(hm||(fl.ImplementationRequest=hm={}));var hl={};Object.defineProperty(hl,"__esModule",{value:!0});hl.TypeDefinitionRequest=void 0;const gm=Ne;var pm;(function(t){t.method="textDocument/typeDefinition",t.messageDirection=gm.MessageDirection.clientToServer,t.type=new gm.ProtocolRequestType(t.method)})(pm||(hl.TypeDefinitionRequest=pm={}));var Ds={};Object.defineProperty(Ds,"__esModule",{value:!0});Ds.DidChangeWorkspaceFoldersNotification=Ds.WorkspaceFoldersRequest=void 0;const nc=Ne;var mm;(function(t){t.method="workspace/workspaceFolders",t.messageDirection=nc.MessageDirection.serverToClient,t.type=new nc.ProtocolRequestType0(t.method)})(mm||(Ds.WorkspaceFoldersRequest=mm={}));var ym;(function(t){t.method="workspace/didChangeWorkspaceFolders",t.messageDirection=nc.MessageDirection.clientToServer,t.type=new nc.ProtocolNotificationType(t.method)})(ym||(Ds.DidChangeWorkspaceFoldersNotification=ym={}));var gl={};Object.defineProperty(gl,"__esModule",{value:!0});gl.ConfigurationRequest=void 0;const bm=Ne;var vm;(function(t){t.method="workspace/configuration",t.messageDirection=bm.MessageDirection.serverToClient,t.type=new bm.ProtocolRequestType(t.method)})(vm||(gl.ConfigurationRequest=vm={}));var xs={};Object.defineProperty(xs,"__esModule",{value:!0});xs.ColorPresentationRequest=xs.DocumentColorRequest=void 0;const ic=Ne;var wm;(function(t){t.method="textDocument/documentColor",t.messageDirection=ic.MessageDirection.clientToServer,t.type=new ic.ProtocolRequestType(t.method)})(wm||(xs.DocumentColorRequest=wm={}));var Cm;(function(t){t.method="textDocument/colorPresentation",t.messageDirection=ic.MessageDirection.clientToServer,t.type=new ic.ProtocolRequestType(t.method)})(Cm||(xs.ColorPresentationRequest=Cm={}));var ks={};Object.defineProperty(ks,"__esModule",{value:!0});ks.FoldingRangeRefreshRequest=ks.FoldingRangeRequest=void 0;const rc=Ne;var _m;(function(t){t.method="textDocument/foldingRange",t.messageDirection=rc.MessageDirection.clientToServer,t.type=new rc.ProtocolRequestType(t.method)})(_m||(ks.FoldingRangeRequest=_m={}));var Sm;(function(t){t.method="workspace/foldingRange/refresh",t.messageDirection=rc.MessageDirection.serverToClient,t.type=new rc.ProtocolRequestType0(t.method)})(Sm||(ks.FoldingRangeRefreshRequest=Sm={}));var pl={};Object.defineProperty(pl,"__esModule",{value:!0});pl.DeclarationRequest=void 0;const Dm=Ne;var xm;(function(t){t.method="textDocument/declaration",t.messageDirection=Dm.MessageDirection.clientToServer,t.type=new Dm.ProtocolRequestType(t.method)})(xm||(pl.DeclarationRequest=xm={}));var ml={};Object.defineProperty(ml,"__esModule",{value:!0});ml.SelectionRangeRequest=void 0;const km=Ne;var Tm;(function(t){t.method="textDocument/selectionRange",t.messageDirection=km.MessageDirection.clientToServer,t.type=new km.ProtocolRequestType(t.method)})(Tm||(ml.SelectionRangeRequest=Tm={}));var sr={};Object.defineProperty(sr,"__esModule",{value:!0});sr.WorkDoneProgressCancelNotification=sr.WorkDoneProgressCreateRequest=sr.WorkDoneProgress=void 0;const CS=$o,sc=Ne;var Rm;(function(t){t.type=new CS.ProgressType;function e(n){return n===t.type}t.is=e})(Rm||(sr.WorkDoneProgress=Rm={}));var Em;(function(t){t.method="window/workDoneProgress/create",t.messageDirection=sc.MessageDirection.serverToClient,t.type=new sc.ProtocolRequestType(t.method)})(Em||(sr.WorkDoneProgressCreateRequest=Em={}));var Pm;(function(t){t.method="window/workDoneProgress/cancel",t.messageDirection=sc.MessageDirection.clientToServer,t.type=new sc.ProtocolNotificationType(t.method)})(Pm||(sr.WorkDoneProgressCancelNotification=Pm={}));var or={};Object.defineProperty(or,"__esModule",{value:!0});or.CallHierarchyOutgoingCallsRequest=or.CallHierarchyIncomingCallsRequest=or.CallHierarchyPrepareRequest=void 0;const Ts=Ne;var Im;(function(t){t.method="textDocument/prepareCallHierarchy",t.messageDirection=Ts.MessageDirection.clientToServer,t.type=new Ts.ProtocolRequestType(t.method)})(Im||(or.CallHierarchyPrepareRequest=Im={}));var Fm;(function(t){t.method="callHierarchy/incomingCalls",t.messageDirection=Ts.MessageDirection.clientToServer,t.type=new Ts.ProtocolRequestType(t.method)})(Fm||(or.CallHierarchyIncomingCallsRequest=Fm={}));var Mm;(function(t){t.method="callHierarchy/outgoingCalls",t.messageDirection=Ts.MessageDirection.clientToServer,t.type=new Ts.ProtocolRequestType(t.method)})(Mm||(or.CallHierarchyOutgoingCallsRequest=Mm={}));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 Om;(function(t){t.Relative="relative"})(Om||(wn.TokenFormat=Om={}));var Oo;(function(t){t.method="textDocument/semanticTokens",t.type=new Wi.RegistrationType(t.method)})(Oo||(wn.SemanticTokensRegistrationType=Oo={}));var Am;(function(t){t.method="textDocument/semanticTokens/full",t.messageDirection=Wi.MessageDirection.clientToServer,t.type=new Wi.ProtocolRequestType(t.method),t.registrationMethod=Oo.method})(Am||(wn.SemanticTokensRequest=Am={}));var Lm;(function(t){t.method="textDocument/semanticTokens/full/delta",t.messageDirection=Wi.MessageDirection.clientToServer,t.type=new Wi.ProtocolRequestType(t.method),t.registrationMethod=Oo.method})(Lm||(wn.SemanticTokensDeltaRequest=Lm={}));var Nm;(function(t){t.method="textDocument/semanticTokens/range",t.messageDirection=Wi.MessageDirection.clientToServer,t.type=new Wi.ProtocolRequestType(t.method),t.registrationMethod=Oo.method})(Nm||(wn.SemanticTokensRangeRequest=Nm={}));var $m;(function(t){t.method="workspace/semanticTokens/refresh",t.messageDirection=Wi.MessageDirection.serverToClient,t.type=new Wi.ProtocolRequestType0(t.method)})($m||(wn.SemanticTokensRefreshRequest=$m={}));var yl={};Object.defineProperty(yl,"__esModule",{value:!0});yl.ShowDocumentRequest=void 0;const qm=Ne;var Hm;(function(t){t.method="window/showDocument",t.messageDirection=qm.MessageDirection.serverToClient,t.type=new qm.ProtocolRequestType(t.method)})(Hm||(yl.ShowDocumentRequest=Hm={}));var bl={};Object.defineProperty(bl,"__esModule",{value:!0});bl.LinkedEditingRangeRequest=void 0;const jm=Ne;var Wm;(function(t){t.method="textDocument/linkedEditingRange",t.messageDirection=jm.MessageDirection.clientToServer,t.type=new jm.ProtocolRequestType(t.method)})(Wm||(bl.LinkedEditingRangeRequest=Wm={}));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 Um;(function(t){t.file="file",t.folder="folder"})(Um||(sn.FileOperationPatternKind=Um={}));var zm;(function(t){t.method="workspace/willCreateFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolRequestType(t.method)})(zm||(sn.WillCreateFilesRequest=zm={}));var Bm;(function(t){t.method="workspace/didCreateFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolNotificationType(t.method)})(Bm||(sn.DidCreateFilesNotification=Bm={}));var Vm;(function(t){t.method="workspace/willRenameFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolRequestType(t.method)})(Vm||(sn.WillRenameFilesRequest=Vm={}));var Km;(function(t){t.method="workspace/didRenameFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolNotificationType(t.method)})(Km||(sn.DidRenameFilesNotification=Km={}));var Gm;(function(t){t.method="workspace/didDeleteFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolNotificationType(t.method)})(Gm||(sn.DidDeleteFilesNotification=Gm={}));var Qm;(function(t){t.method="workspace/willDeleteFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolRequestType(t.method)})(Qm||(sn.WillDeleteFilesRequest=Qm={}));var ar={};Object.defineProperty(ar,"__esModule",{value:!0});ar.MonikerRequest=ar.MonikerKind=ar.UniquenessLevel=void 0;const Jm=Ne;var Ym;(function(t){t.document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global"})(Ym||(ar.UniquenessLevel=Ym={}));var Xm;(function(t){t.$import="import",t.$export="export",t.local="local"})(Xm||(ar.MonikerKind=Xm={}));var Zm;(function(t){t.method="textDocument/moniker",t.messageDirection=Jm.MessageDirection.clientToServer,t.type=new Jm.ProtocolRequestType(t.method)})(Zm||(ar.MonikerRequest=Zm={}));var cr={};Object.defineProperty(cr,"__esModule",{value:!0});cr.TypeHierarchySubtypesRequest=cr.TypeHierarchySupertypesRequest=cr.TypeHierarchyPrepareRequest=void 0;const Rs=Ne;var e0;(function(t){t.method="textDocument/prepareTypeHierarchy",t.messageDirection=Rs.MessageDirection.clientToServer,t.type=new Rs.ProtocolRequestType(t.method)})(e0||(cr.TypeHierarchyPrepareRequest=e0={}));var t0;(function(t){t.method="typeHierarchy/supertypes",t.messageDirection=Rs.MessageDirection.clientToServer,t.type=new Rs.ProtocolRequestType(t.method)})(t0||(cr.TypeHierarchySupertypesRequest=t0={}));var n0;(function(t){t.method="typeHierarchy/subtypes",t.messageDirection=Rs.MessageDirection.clientToServer,t.type=new Rs.ProtocolRequestType(t.method)})(n0||(cr.TypeHierarchySubtypesRequest=n0={}));var Es={};Object.defineProperty(Es,"__esModule",{value:!0});Es.InlineValueRefreshRequest=Es.InlineValueRequest=void 0;const oc=Ne;var i0;(function(t){t.method="textDocument/inlineValue",t.messageDirection=oc.MessageDirection.clientToServer,t.type=new oc.ProtocolRequestType(t.method)})(i0||(Es.InlineValueRequest=i0={}));var r0;(function(t){t.method="workspace/inlineValue/refresh",t.messageDirection=oc.MessageDirection.serverToClient,t.type=new oc.ProtocolRequestType0(t.method)})(r0||(Es.InlineValueRefreshRequest=r0={}));var lr={};Object.defineProperty(lr,"__esModule",{value:!0});lr.InlayHintRefreshRequest=lr.InlayHintResolveRequest=lr.InlayHintRequest=void 0;const Ps=Ne;var s0;(function(t){t.method="textDocument/inlayHint",t.messageDirection=Ps.MessageDirection.clientToServer,t.type=new Ps.ProtocolRequestType(t.method)})(s0||(lr.InlayHintRequest=s0={}));var o0;(function(t){t.method="inlayHint/resolve",t.messageDirection=Ps.MessageDirection.clientToServer,t.type=new Ps.ProtocolRequestType(t.method)})(o0||(lr.InlayHintResolveRequest=o0={}));var a0;(function(t){t.method="workspace/inlayHint/refresh",t.messageDirection=Ps.MessageDirection.serverToClient,t.type=new Ps.ProtocolRequestType0(t.method)})(a0||(lr.InlayHintRefreshRequest=a0={}));var Un={};Object.defineProperty(Un,"__esModule",{value:!0});Un.DiagnosticRefreshRequest=Un.WorkspaceDiagnosticRequest=Un.DocumentDiagnosticRequest=Un.DocumentDiagnosticReportKind=Un.DiagnosticServerCancellationData=void 0;const N2=$o,_S=Ct,Is=Ne;var c0;(function(t){function e(n){const i=n;return i&&_S.boolean(i.retriggerRequest)}t.is=e})(c0||(Un.DiagnosticServerCancellationData=c0={}));var l0;(function(t){t.Full="full",t.Unchanged="unchanged"})(l0||(Un.DocumentDiagnosticReportKind=l0={}));var u0;(function(t){t.method="textDocument/diagnostic",t.messageDirection=Is.MessageDirection.clientToServer,t.type=new Is.ProtocolRequestType(t.method),t.partialResult=new N2.ProgressType})(u0||(Un.DocumentDiagnosticRequest=u0={}));var d0;(function(t){t.method="workspace/diagnostic",t.messageDirection=Is.MessageDirection.clientToServer,t.type=new Is.ProtocolRequestType(t.method),t.partialResult=new N2.ProgressType})(d0||(Un.WorkspaceDiagnosticRequest=d0={}));var f0;(function(t){t.method="workspace/diagnostic/refresh",t.messageDirection=Is.MessageDirection.serverToClient,t.type=new Is.ProtocolRequestType0(t.method)})(f0||(Un.DiagnosticRefreshRequest=f0={}));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 h0;(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})(h0||(wt.NotebookDocument=h0={}));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 g0;(function(t){t.method="notebookDocument/didOpen",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolNotificationType(t.method),t.registrationMethod=Fs.method})(g0||(wt.DidOpenNotebookDocumentNotification=g0={}));var p0;(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})(p0||(wt.NotebookCellArrayChange=p0={}));var m0;(function(t){t.method="notebookDocument/didChange",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolNotificationType(t.method),t.registrationMethod=Fs.method})(m0||(wt.DidChangeNotebookDocumentNotification=m0={}));var y0;(function(t){t.method="notebookDocument/didSave",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolNotificationType(t.method),t.registrationMethod=Fs.method})(y0||(wt.DidSaveNotebookDocumentNotification=y0={}));var b0;(function(t){t.method="notebookDocument/didClose",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolNotificationType(t.method),t.registrationMethod=Fs.method})(b0||(wt.DidCloseNotebookDocumentNotification=b0={}));var vl={};Object.defineProperty(vl,"__esModule",{value:!0});vl.InlineCompletionRequest=void 0;const v0=Ne;var w0;(function(t){t.method="textDocument/inlineCompletion",t.messageDirection=v0.MessageDirection.clientToServer,t.type=new v0.ProtocolRequestType(t.method)})(w0||(vl.InlineCompletionRequest=w0={}));(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={}))})(O2);var wl={};Object.defineProperty(wl,"__esModule",{value:!0});wl.createProtocolConnection=void 0;const C0=$o;function SS(t,e,n,i){return C0.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,C0.createMessageConnection)(t,e,n,i)}wl.createProtocolConnection=SS;(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(O2,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={}))})(M2);(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=lm;n(lm,t),n(M2,t);function r(s,o,a,c){return(0,i.createMessageConnection)(s,o,a,c)}t.createProtocolConnection=r})(D2);var _0=D2;(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=_0;n(_0,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 DS 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
|
|
137
|
+
`)),D){const N=h.error?` Request failed: ${h.error.message} (${h.error.code}).`:"";Ce.log(`Received response '${D.method} - (${h.id})' in ${Date.now()-D.timerStart}ms.${N}`,x)}else Ce.log(`Received response ${h.id} without active response promise.`,x)}else Te("receive-response",h)}function Te(h,D){if(!Ce||oe===g.Off)return;const x={isLSPMessage:!0,type:h,message:D,timestamp:Date.now()};Ce.log(x)}function xe(){if(ln())throw new K(H.Closed,"Connection is closed.");if(St())throw new K(H.Disposed,"Connection is disposed.")}function ut(){if(kn())throw new K(H.AlreadyListening,"Connection is already listening")}function T(){if(!kn())throw new Error("Call listen() first.")}function U(h){return h===void 0?null:h}function X(h){if(h!==null)return h}function w(h){return h!=null&&!Array.isArray(h)&&typeof h=="object"}function ge(h,D){switch(h){case r.ParameterStructures.auto:return w(D)?X(D):[U(D)];case r.ParameterStructures.byName:if(!w(D))throw new Error("Received parameters by name but param is not an object literal.");return X(D);case r.ParameterStructures.byPosition:return[U(D)];default:throw new Error(`Unknown parameter structure ${h.toString()}`)}}function me(h,D){let x;const N=h.numberOfParams;switch(N){case 0:x=void 0;break;case 1:x=ge(h.parameterStructures,D[0]);break;default:x=[];for(let le=0;le<D.length&&le<N;le++)x.push(U(D[le]));if(D.length<N)for(let le=D.length;le<N;le++)x.push(null);break}return x}const J={sendNotification:(h,...D)=>{xe();let x,N;if(n.string(h)){x=h;const ce=D[0];let fe=0,d=r.ParameterStructures.auto;r.ParameterStructures.is(ce)&&(fe=1,d=ce);let S=D.length;const O=S-fe;switch(O){case 0:N=void 0;break;case 1:N=ge(d,D[fe]);break;default:if(d===r.ParameterStructures.byName)throw new Error(`Received ${O} parameters for 'by Name' notification parameter structure.`);N=D.slice(fe,S).map(W=>U(W));break}}else{const ce=D;x=h.method,N=me(h,ce)}const le={jsonrpc:He,method:x,params:N};return $n(le),R.write(le).catch(ce=>{throw V.error("Sending notification failed."),ce})},onNotification:(h,D)=>{xe();let x;return n.func(h)?Fe=h:D&&(n.string(h)?(x=h,ot.set(h,{type:void 0,handler:D})):(x=h.method,ot.set(h.method,{type:h,handler:D}))),{dispose:()=>{x!==void 0?ot.delete(x):Fe=void 0}}},onProgress:(h,D,x)=>{if(Qe.has(D))throw new Error(`Progress handler for token ${D} already registered`);return Qe.set(D,x),{dispose:()=>{Qe.delete(D)}}},sendProgress:(h,D,x)=>J.sendNotification(l.type,{token:D,value:x}),onUnhandledProgress:Rt.event,sendRequest:(h,...D)=>{xe(),T();let x,N,le;if(n.string(h)){x=h;const S=D[0],O=D[D.length-1];let W=0,de=r.ParameterStructures.auto;r.ParameterStructures.is(S)&&(W=1,de=S);let be=D.length;o.CancellationToken.is(O)&&(be=be-1,le=O);const _e=be-W;switch(_e){case 0:N=void 0;break;case 1:N=ge(de,D[W]);break;default:if(de===r.ParameterStructures.byName)throw new Error(`Received ${_e} parameters for 'by Name' request parameter structure.`);N=D.slice(W,be).map(Pn=>U(Pn));break}}else{const S=D;x=h.method,N=me(h,S);const O=h.numberOfParams;le=o.CancellationToken.is(S[O])?S[O]:void 0}const ce=Me++;let fe;le&&(fe=le.onCancellationRequested(()=>{const S=qe.sender.sendCancellation(J,ce);return S===void 0?(V.log(`Received no promise from cancellation strategy when cancelling id ${ce}`),Promise.resolve()):S.catch(()=>{V.log(`Sending cancellation messages for id ${ce} failed`)})}));const d={jsonrpc:He,id:ce,method:x,params:N};return En(d),typeof qe.sender.enableCancellation=="function"&&qe.sender.enableCancellation(d),new Promise(async(S,O)=>{const W=_e=>{S(_e),qe.sender.cleanup(ce),fe==null||fe.dispose()},de=_e=>{O(_e),qe.sender.cleanup(ce),fe==null||fe.dispose()},be={method:x,timerStart:Date.now(),resolve:W,reject:de};try{Xe.set(ce,be),await R.write(d)}catch(_e){throw Xe.delete(ce),be.reject(new r.ResponseError(r.ErrorCodes.MessageWriteError,_e.message?_e.message:"Unknown reason")),V.error("Sending request failed."),_e}})},onRequest:(h,D)=>{xe();let x=null;return p.is(h)?(x=void 0,Pe=h):n.string(h)?(x=null,D!==void 0&&(x=h,st.set(h,{handler:D,type:void 0}))):D!==void 0&&(x=h.method,st.set(h.method,{type:h,handler:D})),{dispose:()=>{x!==null&&(x!==void 0?st.delete(x):Pe=void 0)}}},hasPendingResponse:()=>Xe.size>0,trace:async(h,D,x)=>{let N=!1,le=C.Text;x!==void 0&&(n.boolean(x)?N=x:(N=x.sendNotification||!1,le=x.traceFormat||C.Text)),oe=h,gt=le,oe===g.Off?Ce=void 0:Ce=D,N&&!ln()&&!St()&&await J.sendNotification(k.type,{value:g.toString(h)})},onError:en.event,onClose:tn.event,onUnhandledNotification:Wt.event,onDispose:xt.event,end:()=>{R.end()},dispose:()=>{if(St())return;Ze=$.Disposed,xt.fire(void 0);const h=new r.ResponseError(r.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const D of Xe.values())D.reject(h);Xe=new Map,at=new Map,vt=new Set,Je=new i.LinkedMap,n.func(R.dispose)&&R.dispose(),n.func(v.dispose)&&v.dispose()},listen:()=>{xe(),ut(),Ze=$.Listening,v.listen(Rn)},inspect:()=>{(0,e.default)().console.log("inspect")}};return J.onNotification(M.type,h=>{if(oe===g.Off||!Ce)return;const D=oe===g.Verbose||oe===g.Compact;Ce.log(h.message,D?h.verbose:void 0)}),J.onNotification(l.type,h=>{const D=Qe.get(h.token);D?D(h.value):Rt.fire(h)}),J}t.createMessageConnection=P}(Pu)),Pu}var c2;function B1(){return c2||(c2=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressType=t.ProgressToken=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.AbstractMessageBuffer=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.LRUCache=t.Touch=t.LinkedMap=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.Message=t.RAL=void 0,t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=void 0;const e=My();Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return e.Message}}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return e.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return e.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return e.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return e.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return e.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return e.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return e.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return e.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return e.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return e.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return e.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return e.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return e.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return e.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return e.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return e.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return e.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return e.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return e.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return e.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return e.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return e.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return e.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return e.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return e.ParameterStructures}});const n=Oy();Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:function(){return n.LinkedMap}}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:function(){return n.LRUCache}}),Object.defineProperty(t,"Touch",{enumerable:!0,get:function(){return n.Touch}});const r=LD();Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return r.Disposable}});const i=Tr;Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return i.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return i.Emitter}});const s=mp();Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return s.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return s.CancellationToken}});const o=ND();Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return o.SharedArraySenderStrategy}}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return o.SharedArrayReceiverStrategy}});const a=mi;Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return a.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return a.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return a.ReadableStreamMessageReader}});const c=yi;Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return c.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return c.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return c.WriteableStreamMessageWriter}});const l=$D();Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:function(){return l.AbstractMessageBuffer}});const f=qD();Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return f.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return f.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return f.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return f.createMessageConnection}}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:function(){return f.ProgressToken}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return f.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return f.Trace}}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:function(){return f.TraceValues}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return f.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return f.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return f.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return f.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return f.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return f.CancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return f.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return f.CancellationStrategy}}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:function(){return f.MessageStrategy}});const p=Jr;t.RAL=p.default}(Eu)),Eu}Object.defineProperty(gp,"__esModule",{value:!0});const vr=B1();class Al extends vr.AbstractMessageBuffer{constructor(e="utf-8"){super(e),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return Al.emptyBuffer}fromString(e,n){return new TextEncoder().encode(e)}toString(e,n){return n==="ascii"?this.asciiDecoder.decode(e):new TextDecoder(n).decode(e)}asNative(e,n){return n===void 0?e:e.slice(0,n)}allocNative(e){return new Uint8Array(e)}}Al.emptyBuffer=new Uint8Array(0);class jD{constructor(e){this.socket=e,this._onData=new vr.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,vr.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(e){return this.socket.addEventListener("close",e),vr.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),vr.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),vr.Disposable.create(()=>this.socket.removeEventListener("end",e))}onData(e){return this._onData.event(e)}}class HD{constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener("close",e),vr.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),vr.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),vr.Disposable.create(()=>this.socket.removeEventListener("end",e))}write(e,n){if(typeof e=="string"){if(n!==void 0&&n!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${n}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}}const WD=new TextEncoder,Ay=Object.freeze({messageBuffer:Object.freeze({create:t=>new Al(t)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(t,e)=>{if(e.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${e.charset}`);return Promise.resolve(WD.encode(JSON.stringify(t,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(t,e)=>{if(!(t instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(e.charset).decode(t)))}})}),stream:Object.freeze({asReadableStream:t=>new jD(t),asWritableStream:t=>new HD(t)}),console,timer:Object.freeze({setTimeout(t,e,...n){const r=setTimeout(t,e,...n);return{dispose:()=>clearTimeout(r)}},setImmediate(t,...e){const n=setTimeout(t,0,...e);return{dispose:()=>clearTimeout(n)}},setInterval(t,e,...n){const r=setInterval(t,e,...n);return{dispose:()=>clearInterval(r)}}})});function V1(){return Ay}(function(t){function e(){vr.RAL.install(Ay)}t.install=e})(V1||(V1={}));gp.default=V1;(function(t){var e=_t&&_t.__createBinding||(Object.create?function(c,l,f,p){p===void 0&&(p=f);var g=Object.getOwnPropertyDescriptor(l,f);(!g||("get"in g?!l.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return l[f]}}),Object.defineProperty(c,p,g)}:function(c,l,f,p){p===void 0&&(p=f),c[p]=l[f]}),n=_t&&_t.__exportStar||function(c,l){for(var f in c)f!=="default"&&!Object.prototype.hasOwnProperty.call(l,f)&&e(l,c,f)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.BrowserMessageWriter=t.BrowserMessageReader=void 0,gp.default.install();const i=B1();n(B1(),t);class s extends i.AbstractMessageReader{constructor(l){super(),this._onData=new i.Emitter,this._messageListener=f=>{this._onData.fire(f.data)},l.addEventListener("error",f=>this.fireError(f)),l.onmessage=this._messageListener}listen(l){return this._onData.event(l)}}t.BrowserMessageReader=s;class o extends i.AbstractMessageWriter{constructor(l){super(),this.port=l,this.errorCount=0,l.addEventListener("error",f=>this.fireError(f))}write(l){try{return this.port.postMessage(l),Promise.resolve()}catch(f){return this.handleError(f,l),Promise.reject(f)}}handleError(l,f){this.errorCount++,this.fireError(l,f,this.errorCount)}end(){}}t.BrowserMessageWriter=o;function a(c,l,f,p){return f===void 0&&(f=i.NullLogger),i.ConnectionStrategy.is(p)&&(p={connectionStrategy:p}),(0,i.createMessageConnection)(c,l,f,p)}t.createMessageConnection=a})(FD);function UD(t){return{send:e=>t.send(e),onMessage:e=>{t.onmessage=n=>e(n.data)},onError:e=>{t.onerror=n=>{Object.hasOwn(n,"message")&&e(n.message)}},onClose:e=>{t.onclose=n=>e(n.code,n.reason)},dispose:()=>t.close()}}class zD extends PD{constructor(n,r){super(n);Nt(this,"onMessage");this.onMessage=r}readMessage(n){this.onMessage&&this.onMessage();const[,r]=n.split(`\r
|
|
108
138
|
\r
|
|
109
|
-
`);if(this.state==="initial")this.events.splice(0,0,{message:
|
|
110
|
-
`),insertTextRules:
|
|
111
|
-
`),insertTextRules:
|
|
112
|
-
`),insertTextRules:
|
|
113
|
-
`),insertTextRules:
|
|
114
|
-
`),insertTextRules:
|
|
115
|
-
`),insertTextRules:
|
|
116
|
-
`),insertTextRules:
|
|
117
|
-
`),insertTextRules:
|
|
118
|
-
`),insertTextRules:
|
|
119
|
-
`),insertTextRules:
|
|
120
|
-
`),insertTextRules:
|
|
121
|
-
`),insertTextRules:
|
|
122
|
-
`),insertTextRules:
|
|
123
|
-
`),insertTextRules:
|
|
124
|
-
`),insertTextRules:
|
|
139
|
+
`);if(this.state==="initial")this.events.splice(0,0,{message:r});else if(this.state==="listening"){const i=JSON.parse(r);this.callback(i)}}}class BD extends AD{constructor(n,r){super(n);Nt(this,"onSend");this.onSend=r}async write(n){try{const r=JSON.stringify(n);this.socket.send(r),this.onSend&&this.onSend()}catch(r){this.errorCount++,this.fireError(r,n,this.errorCount)}}}const VD={base:"vs-dark",inherit:!0,colors:{"editor.background":"#313131"},rules:[{token:"",background:"#313131"}]};function Qn(t){return`file:///PACKAGE/Project/Sources/${t}`}function yp(t,e=0){setTimeout(t,e)}function Fy(t,e){const n=new sn.Selection(e.startLineNumber,e.startColumn,e.endLineNumber||e.startLineNumber,e.endColumn||e.startColumn);yp(()=>{t.setSelection(n),t.revealRangeInCenter(n),t.focus()})}function Ly(t,e,n=0){n>0&&(e=n+e),yp(()=>{t.setPosition({lineNumber:e,column:1}),t.revealLineInCenter(e),t.focus()})}function KD(t,e,n){const i=t.getModel();if(i&&e){const s=i.getLineCount();for(let o=1;o<=s;o++){const a=i.getLineContent(o);if(new RegExp(`(?:Function|function) ${n}`).test(a))return o}}return 0}const GD={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}}]},QD={provideCompletionItems:async(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"var",kind:ve.languages.CompletionItemKind.Snippet,range:new ve.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["var ${1:var_name} : ${2:var_type}"].join(`
|
|
140
|
+
`),insertTextRules:ve.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"While",kind:ve.languages.CompletionItemKind.Snippet,range:new ve.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["While(${1:expression})"," ${2:body}","End while"].join(`
|
|
141
|
+
`),insertTextRules:ve.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Case of",kind:ve.languages.CompletionItemKind.Snippet,range:new ve.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["Case of"," :(${1:boolean_expression})"," ${2:body}","End case"].join(`
|
|
142
|
+
`),insertTextRules:ve.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Else",kind:ve.languages.CompletionItemKind.Snippet,range:new ve.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["Else"," "].join(`
|
|
143
|
+
`),insertTextRules:ve.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"If",kind:ve.languages.CompletionItemKind.Snippet,range:new ve.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["If (${1:expression})"," ${5:body}","End if"].join(`
|
|
144
|
+
`),insertTextRules:ve.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"For",kind:ve.languages.CompletionItemKind.Snippet,range:new ve.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["For(${1:counter};${2:start};${3:end}${4:;increment})"," ${5:body}","End for"].join(`
|
|
145
|
+
`),insertTextRules:ve.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Function",kind:ve.languages.CompletionItemKind.Snippet,range:new ve.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(`
|
|
146
|
+
`),insertTextRules:ve.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},JD={provideCompletionItems:async(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"var",kind:ve.languages.CompletionItemKind.Snippet,range:new ve.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["var ${1:var_name} : ${2:var_type}"].join(`
|
|
147
|
+
`),insertTextRules:ve.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"while",kind:ve.languages.CompletionItemKind.Snippet,range:new ve.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["while(${1:expression})"," ${2:body}","end"].join(`
|
|
148
|
+
`),insertTextRules:ve.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"switch",kind:ve.languages.CompletionItemKind.Snippet,range:new ve.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["switch"," :(${1:boolean_expression})"," ${2:body}","end"].join(`
|
|
149
|
+
`),insertTextRules:ve.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"else",kind:ve.languages.CompletionItemKind.Snippet,range:new ve.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["else"," "].join(`
|
|
150
|
+
`),insertTextRules:ve.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"if",kind:ve.languages.CompletionItemKind.Snippet,range:new ve.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["if (${1:expression})"," ${5:body}","end"].join(`
|
|
151
|
+
`),insertTextRules:ve.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"for",kind:ve.languages.CompletionItemKind.Snippet,range:new ve.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["for(${1:counter},${2:start},${3:end}${4:,increment})"," ${5:body}","end"].join(`
|
|
152
|
+
`),insertTextRules:ve.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"function",kind:ve.languages.CompletionItemKind.Snippet,range:new ve.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(`
|
|
153
|
+
`),insertTextRules:ve.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},YD=[{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"}],XD=({defaultZoom:t})=>(ht.useEffect(()=>{t!==void 0&&sn.editor.EditorZoom.setZoomLevel(t)},[]),null);({}).VITE_DISABLE_MONACO_LOADER||K1.loader.config({monaco:ve});const Ny=ht.createContext(void 0),ZD=({children:t,url:e,qodly:n,defaultZoom:r,openHandler:i,language:s="4d",defaultInited:o=!1})=>{const a=K1.useMonaco(),[c,l]=ht.useState(o),[f,p]=ht.useState(null),g=ht.useRef(),_=ht.useRef(0);ht.useEffect(()=>{e&&a&&C()},[e,a]);const C=async()=>{if(!a)return;const $=new Gy.Logger({enabled:process.env.NODE_ENV==="development",debugEnabled:process.env.NODE_ENV==="development"}),P=await Zy({serviceConfig:{userServices:{}},logger:$});await m2.initServices({caller:"Qodly Code Editor",logger:$,serviceConfig:P}),i&&_p.StandaloneServices.get(_p.ICodeEditorService).registerCodeEditorOpenHandler(i);const v=await jn.getMonacoTheme();a.editor.defineTheme("fd-dark",v||VD),a.languages.register({id:s,extensions:[".4dm",".4qm",".4qs"],aliases:["4d","4D"]}),a.languages.setLanguageConfiguration(s,GD),a.languages.registerCompletionItemProvider(s,n?JD:QD),sn.editor.addKeybindingRules(YD),k()},k=()=>{p(null);let $;try{$=new WebSocket(localStorage.LSP_SERVER||e)}catch{p(new Event("INVALID_URL"));return}$.onopen=M,$.onclose=H,$.onerror=K,_.current=0},M=async function(){const $=UD(this),P=new zD($),v=new BD($),R=new Xy({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:P,writer:v})}});g.current=R;const I=R.sendRequest.bind(R);g.current.sendRequest=function(E,V,Me){return typeof E=="object"&&E.method==="textDocument/diagnostic"&&/file:\/\/\/PACKAGE\/Project\/Sources\/Methods\/__Debugger_.*/.test(V.textDocument.uri)?Promise.resolve():I(E,V,Me)},P.onClose(()=>{R.stop(),_.current<3?setTimeout(()=>{_.current++,k()},1e3):p(new Event("WEBSOCKET_CLOSED"))}),R.needsStart()&&await R.start(),l(!0)},H=()=>{},K=$=>{p($)};ht.useEffect(()=>{const $=jn.lspSubject.subscribe(({action:P,payload:v})=>{switch(P){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:Y(v.filePath);break;case jn.LspActions.WILL_RENAME:ne(v.oldPath,v.newPath);break;case jn.LspActions.DID_RENAME:re(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=($,P=ye.TextDocumentSaveReason.Manual)=>{var v;(v=g.current)==null||v.sendNotification(ye.WillSaveTextDocumentNotification.type,{textDocument:{uri:Qn($)},reason:P})},B=($,P)=>{var v;(v=g.current)==null||v.sendNotification(ye.DidSaveTextDocumentNotification.type,{textDocument:{uri:Qn($)},text:P})},z=$=>{var P;(P=g.current)==null||P.sendRequest(ye.WillCreateFilesRequest.type,{files:[{uri:Qn($)}]})},ne=($,P)=>{var v;(v=g.current)==null||v.sendRequest(ye.WillRenameFilesRequest.type,{files:[{oldUri:Qn($),newUri:Qn(P)}]})},G=$=>{var P;(P=g.current)==null||P.sendRequest(ye.WillDeleteFilesRequest.type,{files:[{uri:Qn($)}]})},Y=$=>{var P;(P=g.current)==null||P.sendNotification(ye.DidCreateFilesNotification.type,{files:[{uri:Qn($)}]})},re=($,P)=>{var v;(v=g.current)==null||v.sendNotification(ye.DidRenameFilesNotification.type,{files:[{oldUri:Qn($),newUri:Qn(P)}]})},Le=$=>{var P;(P=g.current)==null||P.sendNotification(ye.DidDeleteFilesNotification.type,{files:[{uri:Qn($)}]})};return wt.jsxs(Ny.Provider,{value:{inited:c||!!f,clientRef:g,lastError:f,reload:k},children:[t,wt.jsx(XD,{defaultZoom:r})]})};function eT(){const t=ht.useContext(Ny);if(t===void 0)throw new Error("useLSP must be used within an LSPContext");return t}const $y=ht.createContext(void 0),tT=ht.memo(({children:t})=>{const[e,n]=ht.useState(null);return wt.jsx($y.Provider,{value:{editor:e,setEditor:n},children:t})});function qy(){const t=ht.useContext($y),e=ht.useState(null);if(t===void 0){const[n,r]=e;return{editor:n,setEditor:r}}return t}var jy={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},l2=ht.createContext&&ht.createContext(jy),bi=globalThis&&globalThis.__assign||function(){return bi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},bi.apply(this,arguments)},nT=globalThis&&globalThis.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function Hy(t){return t&&t.map(function(e,n){return ht.createElement(e.tag,bi({key:n},e.attr),Hy(e.child))})}function Wy(t){return function(e){return ht.createElement(rT,bi({attr:bi({},t.attr)},e),Hy(t.child))}}function rT(t){var e=function(n){var r=t.attr,i=t.size,s=t.title,o=nT(t,["attr","size","title"]),a=i||n.size||"1em",c;return n.className&&(c=n.className),t.className&&(c=(c?c+" ":"")+t.className),ht.createElement("svg",bi({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:c,style:bi(bi({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 l2!==void 0?ht.createElement(l2.Consumer,null,function(n){return e(n)}):e(jy)}function iT(t){return Wy({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 sT(t){return Wy({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 Uy=({lspProps:{lastError:t,reload:e}})=>{const[n,r]=ht.useState(!1),i=()=>{e()},s=()=>{r(!1)};return ht.useEffect(()=>{r(!!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(sT,{className:"h-4 w-4 text-yellow-600"}),wt.jsxs("span",{children:["LSP not loaded."," ",wt.jsx("button",{className:"text-primary-dark underline",onClick:i,children:"Reload?"})]})]}),wt.jsx("button",{className:"focus:outline-none",children:wt.jsx(iT,{className:"h-4 w-4 text-white",onClick:s})})]}):null},oT={provideCompletionItems:(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"device:xs",kind:ve.languages.CompletionItemKind.Snippet,documentation:"Media query for phone device",range:new ve.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["@media screen and (max-width: ${1:365px}) {"," self {"," ${2:background-color}:${3:red};"," }","}"].join(`
|
|
154
|
+
`),insertTextRules:ve.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},aT="#/definitions/Condition",cT={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"]}},lT={$ref:aT,definitions:cT};function uT(t,e){const n=document.createElement("style");n.dataset.id=e,n.textContent=t,document.head.append(n)}function dT(t){return Array.from(document.styleSheets).find(e=>e.ownerNode.getAttribute("data-id")===t)}function fT(t,e){const n=[];let r=[];const i=[],s=(B,z,ne,G)=>{n.push({startLineNumber:B,endLineNumber:ne,startColumn:z,endColumn:G}),l(),c()},o=B=>{i.indexOf(B)<0&&i.push(B)},a=B=>{const z=i.indexOf(B);z<0||i.splice(z,1)},c=()=>{for(const B of i)try{B(r)}catch(z){console.error(z)}},l=()=>{const B=t.getModel();B&&(r=pT(n.map(z=>[B.getOffsetAt({lineNumber:z.startLineNumber,column:z.startColumn}),B.getOffsetAt({lineNumber:z.endLineNumber,column:z.endColumn})]),!0),r.length>0&&(r[0][0]<=0&&(r[0][0]=Number.NEGATIVE_INFINITY),r[r.length-1][1]>=B.getValueLength()&&(r[r.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},p=t.onDidChangeModel(B=>{l(),K()}),g=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(re=>z.range.startLineNumber>=re.startLineNumber&&z.range.endLineNumber<=re.endLineNumber&&z.range.startColumn>=re.startColumn&&z.range.endColumn<=re.endColumn),Y=!G&&e&&z.range.startLineNumber===1&&z.range.startColumn===1&&!jn.hasAttributesString(z.text);if(G||Y){const re=t.getModel();if(re){re.undo();return}}}}}),_=()=>{p.dispose(),g.dispose()};let C=[],k=`
|
|
125
155
|
.idoc-readonly-mark {
|
|
126
156
|
cursor: not-allowed;
|
|
127
157
|
z-index: 1;
|
|
128
158
|
}
|
|
129
|
-
`;if(
|
|
159
|
+
`;if(k){const B="monaco-read-only";dT(B)||uT(k,B),k=null}const M=()=>{o(K),K()},H=()=>{a(K),C=t.deltaDecorations(C,[])},K=()=>{const B=t.getModel();B&&(C=t.deltaDecorations(C,r.map(j(B))))},j=B=>z=>{const ne=B.getPositionAt(z[0]),G=B.getPositionAt(z[1]);return{range:new ve.Range(ne.lineNumber,ne.column,G.lineNumber,G.column),options:{className:"idoc-readonly-mark"}}};return{get buffer(){return r},exclude:s,attach:o,detach:a,dispose:_,show:M,hide:H}}function hT(t,e,n){let r=!1;const i=H=>H[1]<H[0]?(r=!0,[[H[1],H[0]]]):[[...H]],s=H=>r?H.map(K=>K[1]>K[0]?a(K):K).reverse():H;let o;const a=H=>(o=H[1],H[1]=H[0],H[0]=o,H),c=i(t);let l,f,p,g,_,C,k,M;p=c[0];for(f of e)for(k=f[0],M=f[1],g=0;g<c.length;g++){if(p=c[g],_=p[0],C=p[1],_<k)C<k?l=[p]:C<=M?l=[[_,k-1]]:l=[[_,k-1],[M+1,C]];else if(_<=M)if(k===Number.NEGATIVE_INFINITY){const H=M+1;l=n===0?[]:[[H,C>H?C:H]]}else M===Number.POSITIVE_INFINITY?l=n===0?[]:[[k-1,k-1]]:C<=M?l=n<0?[[k-1,k-1]]:n>0?[[M+1,M+1]]:[]:l=[[M+1,C]];else l=[p];if(c.splice(g,1,...l),c.length===1&&c[0][1]<k)return s(c)}return s(c)}function pT(t,e){if(t.length<2)return t;const n=[];let r=null,i,s;t=t.map(o=>(o[1]<o[0]&&(i=o[1],o[1]=o[0],o[1]=i),o)).sort((o,a)=>o[0]-a[0]),n.push(t[0]);for(let o=1;o<t.length;o++)r=n[n.length-1],s=t[o],r[1]===s[0]&&!e?n.push(s):r[1]===s[0]-1&&e?(r[1]=s[1],n.splice(n.length-1,1,r)):r[1]<s[0]?n.push(s):r[1]<s[1]&&(r[1]=s[1],n.splice(n.length-1,1,r));return n}function ho(t,e){return e.bind(t)}class gT{constructor(e,n){Nt(this,"editor");Nt(this,"intervals");Nt(this,"disposables",[]);Nt(this,"prefer",1);Nt(this,"lastPrefer",1);Nt(this,"onCursor",ho(this,function(e){if(e.source==="api")return;const n=this.getApprovedSelections();n.length!==0&&this.editor.setSelections(n)}));Nt(this,"onRectangleSelectionStart",ho(this,function({event:e}){e.middleButton&&(this.lastPrefer=this.prefer,this.prefer=0,window.addEventListener("pointerup",this.onRectangleSelectionStop))}));Nt(this,"onRectangleSelectionStop",ho(this,function(){this.prefer=this.lastPrefer,window.removeEventListener("pointerup",this.onRectangleSelectionStop)}));Nt(this,"onKey",ho(this,function(e){const n=e.keyCode,r=ve.KeyCode;if(e.altKey||r.F1<=n&&n<=r.F19||e.ctrlKey&&n!==r.Backspace)return;if(n===r.UpArrow||n===r.LeftArrow||n===r.Home||n===r.PageUp){this.prefer=-1;return}if(n===r.DownArrow||n===r.RightArrow||n===r.End||n===r.PageDown){this.prefer=1;return}const i=this.getSelections(),s=this.intervals.buffer;let o;if(n===r.Delete)o=a=>a[0]===a[1]&&s.find(c=>a[1]+1===c[0])!=null;else if(n===r.Backspace)o=a=>a[0]===a[1]&&s.find(c=>c[1]+1===a[0])!=null;else return;i.findIndex(o)!==-1&&(e.stopPropagation(),e.preventDefault())}));Nt(this,"getOffsetAt",ho(this,function(e){let n;for(let r=0;r<this.intervals.buffer.length;r++)if(n=this.intervals.buffer[r],e<=n[1])return n[0]-e<e-n[1]?n[0]:n[1]}));var r;this.editor=e,this.intervals=fT(e,n),(r=this.editor.getModel())==null||r.setEOL(ve.editor.EndOfLineSequence.LF)}enable(){this.disposables.push(this.editor.onDidChangeCursorPosition(this.onCursor),this.editor.onKeyDown(this.onKey),this.editor.onMouseDown(this.onRectangleSelectionStart)),this.intervals.show()}dispose(){for(const e of this.disposables)e.dispose();this.disposables.splice(0)}exclude(e,n,r,i){arguments.length===1?this.intervals.exclude(e,0,e,Number.MAX_SAFE_INTEGER):this.intervals.exclude(e,n,r,i)}getApprovedSelections(){const e=this.editor.getModel();return this.getSelections().map(r=>hT(r,this.intervals.buffer,this.prefer)).flat().map(r=>{const i=e.getPositionAt(r[0]),s=e.getPositionAt(r[1]);return new ve.Selection(i.lineNumber,i.column,s.lineNumber,s.column)})}getSelections(){const e=this.editor.getModel();return(this.editor.getSelections()||[]).map(n=>[e.getOffsetAt({lineNumber:n.selectionStartLineNumber,column:n.selectionStartColumn}),e.getOffsetAt({lineNumber:n.positionLineNumber,column:n.positionColumn})])}}const mT=new RegExp("^[ s]+(exposed|Function)","i"),u2=()=>wt.jsx("div",{className:"absolute inset-0 animate-pulse",children:wt.jsx("div",{className:"w-full space-y-4 px-4 py-1",children:wt.jsxs("div",{className:"space-y-2",children:[wt.jsx("div",{className:"h-3 w-3/4 rounded bg-grey-200"}),wt.jsx("div",{className:"h-3 rounded bg-grey-200"}),wt.jsx("div",{className:"h-3 w-5/6 rounded bg-grey-200"}),wt.jsx("div",{className:"h-3 rounded bg-grey-200"}),wt.jsx("div",{className:"h-3 rounded bg-grey-200"})]})})}),yT=({path:t,initialValue:e,theme:n="fd-dark",type:r,language:i,onChange:s,options:o={},extra:a={},showAlerts:c=!1,lspProps:l,...f})=>{const{initialLineInfo:p,initialSelectionInfo:g}=a,{editor:_,setEditor:C}=qy(),{inited:k}=l;function M(K){i==="css"&&K.languages.registerCompletionItemProvider("css",oT),i==="json"&&K.languages.json&&K.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,schemas:[{uri:"condition-schema.json",fileMatch:["*.condition.json"],schema:lT}]})}function H(K,j){C(K);const B=K.getModel();if(B&&(B.updateOptions({insertSpaces:!1}),K.onKeyUp(()=>{var ne;const z=(ne=K.getPosition())==null?void 0:ne.lineNumber;if(z){const G=B.getLineFirstNonWhitespaceColumn(z),Y=B.getLineLength(z),re=B.getLineContent(z);mT.test(re)&&K.executeEdits("edit-handler",[{range:new j.Range(z,0,z,Y),text:re.substr(G-1,Y-G)}])}})),r===jn.FileFolderType.METHOD&&jn.hasAttributesString(e)){const z=new gT(K,!0);z.exclude(1,1,1,Number.POSITIVE_INFINITY),z.enable()}}return ht.useEffect(()=>{if(!_)return;const{line:K,offset:j}=p||{};K&&Ly(_,K,j)},[p,_]),ht.useEffect(()=>{if(!_)return;const{selection:K}=g||{};K&&Fy(_,K)},[g,_]),k?wt.jsxs(wt.Fragment,{children:[c?wt.jsx(Uy,{lspProps:l}):null,wt.jsx(K1.Editor,{options:{readOnly:!0,fontSize:12,"semanticHighlighting.enabled":!0,padding:{top:10},...o},path:Qn(t),value:e,theme:"fd-dark",onChange:K=>s&&s(K||""),language:i,beforeMount:M,onMount:H,loading:wt.jsx(u2,{}),...f})]}):wt.jsx(u2,{})},bT={html:["html"],css:["css","less","scss"],json:["json"],javascript:["typescript"],typescript:["typescript"]};for(const[t,e]of Object.entries(bT))ve.languages.register({id:t,aliases:e});exports.Alerts=Uy;exports.CodeEditor=yT;exports.CodeEditorProvider=tT;exports.LSPProvider=ZD;exports._await=yp;exports.getFileSystemPath=Qn;exports.getFunctionOffset=KD;exports.jumpToLine=Ly;exports.jumpToSelection=Fy;exports.useCodeEditor=qy;exports.useLSP=eT;
|
|
130
160
|
//# sourceMappingURL=index.cjs.js.map
|