@redocly/openapi-language-server 0.6.1 → 0.6.2

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/lib/index.js CHANGED
@@ -32,7 +32,7 @@ var Ty=Object.create;var Jr=Object.defineProperty;var ky=Object.getOwnPropertyDe
32
32
  `+e.slice(i+1):r+=e.slice(o),r}function nx(e){return Av!==e&&on!==e&&Ov!==e&&Lv!==e&&Hv!==e&&zv!==e&&Vv!==e&&Kv!==e&&Nv!==e&&jv!==e&&Mv!==e&&qv!==e&&Yv!==e&&Uv!==e&&Ks!==e&&Ys!==e&&Ev!==e&&Iv!==e&&!De[e]&&!Yp(e)}function Yp(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function rx(e,t,n){var r="",i=e.tag,o,s;for(o=0,s=n.length;o<s;o+=1)sn(e,t,n[o],!1,!1)&&(o!==0&&(r+=", "),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function ix(e,t,n,r){var i="",o=e.tag,s,a;for(s=0,a=n.length;s<a;s+=1)sn(e,t+1,n[s],!0,!0)&&((!r||s!==0)&&(i+=Gs(e,t)),i+="- "+e.dump);e.tag=o,e.dump=i||"[]"}function ox(e,t,n){var r="",i=e.tag,o=Object.keys(n),s,a,c,l,d;for(s=0,a=o.length;s<a;s+=1)d="",s!==0&&(d+=", "),c=o[s],l=n[c],sn(e,t,c,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+": ",sn(e,t,l,!1,!1)&&(d+=e.dump,r+=d));e.tag=i,e.dump="{"+r+"}"}function sx(e,t,n,r){var i="",o=e.tag,s=Object.keys(n),a,c,l,d,h,v;for(a=0,c=s.length;a<c;a+=1)v="",(!r||a!==0)&&(v+=Gs(e,t)),l=s[a],d=n[l],sn(e,t+1,l,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&on===e.dump.charCodeAt(0)?v+="?":v+="? "),v+=e.dump,h&&(v+=Gs(e,t)),sn(e,t+1,d,!0,h)&&(e.dump&&on===e.dump.charCodeAt(0)?v+=":":v+=": ",v+=e.dump,i+=v));e.tag=o,e.dump=i||"{}"}function $p(e,t,n){var r,i,o,s,a,c;for(i=n?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(e.tag=n?a.tag:"?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,Xs.call(a.represent)==="[object Function]")r=a.represent(t,c);else if(Vp.call(a.represent,c))r=a.represent[c](t,c);else throw new Js("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function sn(e,t,n,r,i){e.tag=null,e.dump=n,$p(e,n,!1)||$p(e,n,!0);var o=Xs.call(e.dump);r&&(r=0>e.flowLevel||e.flowLevel>t),(e.tag!==null&&e.tag!=="?"||e.indent!==2&&t>0)&&(i=!1);var s=o==="[object Object]"||o==="[object Array]",a,c;if(s&&(a=e.duplicates.indexOf(n),c=a!==-1),c&&e.usedDuplicates[a])e.dump="*ref_"+a;else{if(s&&c&&!e.usedDuplicates[a]&&(e.usedDuplicates[a]=!0),o==="[object Object]")r&&Object.keys(e.dump).length!==0?(sx(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
33
33
  `:"")+e.dump)):(ox(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object Array]")r&&e.dump.length!==0?(ix(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
34
34
  `:"")+e.dump)):(rx(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&ex(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new Js("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function ax(e,t){var n=[],r=[],i,o;for(Qs(e,n,r),i=0,o=r.length;i<o;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(o)}function Qs(e,t,n){var r=Xs.call(e),i,o,s;if(e!==null&&typeof e=="object")if(o=t.indexOf(e),o!==-1)n.indexOf(o)===-1&&n.push(o);else if(t.push(e),Array.isArray(e))for(o=0,s=e.length;o<s;o+=1)Qs(e[o],t,n);else for(i=Object.keys(e),o=0,s=i.length;o<s;o+=1)Qs(e[i[o]],t,n)}function Kp(e,t){t=t||{};var n=new Xv(t);return ax(e,n),sn(n,0,e,!0,!0)?n.dump+`
35
- `:""}Dn.dump=Kp;function cx(e,t){return Kp(e,yr.extend({schema:kv},t))}Dn.safeDump=cx});var Qp=S(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.determineScalarType=Ve.ScalarType=Ve.parseYamlFloat=Ve.parseYamlInteger=Ve.parseYamlBoolean=void 0;function ux(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`}Ve.parseYamlBoolean=ux;function lx(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function px(e){let t=lx(e);if(isNaN(t))throw`Invalid integer "${e}"`;return t}Ve.parseYamlInteger=px;function dx(e){if([".nan",".NaN",".NAN"].lastIndexOf(e)>=0)return NaN;let n=/^([-+])?(?:\.inf|\.Inf|\.INF)$/.exec(e);if(n)return n[1]==="-"?-1/0:1/0;let r=parseFloat(e);if(!isNaN(r))return r;throw`Invalid float "${e}"`}Ve.parseYamlFloat=dx;var _t;(function(e){e[e.null=0]="null",e[e.bool=1]="bool",e[e.int=2]="int",e[e.float=3]="float",e[e.string=4]="string"})(_t=Ve.ScalarType||(Ve.ScalarType={}));function fx(e){if(e===void 0)return _t.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return _t.string;let t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return _t.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return _t.bool;let n=/^[-+]?[0-9]+$/,r=/^0o[0-7]+$/,i=/^0x[0-9a-fA-F]+$/;if(n.test(t)||r.test(t)||i.test(t))return _t.int;let o=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,s=/^[-+]?(\.inf|\.Inf|\.INF)$/;return o.test(t)||s.test(t)||[".nan",".NaN",".NAN"].indexOf(t)>=0?_t.float:_t.string}Ve.determineScalarType=fx});var br=S(he=>{"use strict";var gx=he&&he.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Jp=he&&he.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&gx(t,e,n)};Object.defineProperty(he,"__esModule",{value:!0});he.safeDump=he.dump=he.safeLoadAll=he.safeLoad=he.loadAll=he.load=void 0;var ui=Bp();Object.defineProperty(he,"load",{enumerable:!0,get:function(){return ui.load}});Object.defineProperty(he,"loadAll",{enumerable:!0,get:function(){return ui.loadAll}});Object.defineProperty(he,"safeLoad",{enumerable:!0,get:function(){return ui.safeLoad}});Object.defineProperty(he,"safeLoadAll",{enumerable:!0,get:function(){return ui.safeLoadAll}});var Xp=Gp();Object.defineProperty(he,"dump",{enumerable:!0,get:function(){return Xp.dump}});Object.defineProperty(he,"safeDump",{enumerable:!0,get:function(){return Xp.safeDump}});he.YAMLException=Pn();Jp(Pt(),he);Jp(Qp(),he)});var jn=S(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.stringArray=qe.array=qe.func=qe.error=qe.number=qe.string=qe.boolean=void 0;function i_(e){return e===!0||e===!1}qe.boolean=i_;function Td(e){return typeof e=="string"||e instanceof String}qe.string=Td;function o_(e){return typeof e=="number"||e instanceof Number}qe.number=o_;function s_(e){return e instanceof Error}qe.error=s_;function a_(e){return typeof e=="function"}qe.func=a_;function kd(e){return Array.isArray(e)}qe.array=kd;function c_(e){return kd(e)&&e.every(t=>Td(t))}qe.stringArray=c_});var Ha=S(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.Message=I.NotificationType9=I.NotificationType8=I.NotificationType7=I.NotificationType6=I.NotificationType5=I.NotificationType4=I.NotificationType3=I.NotificationType2=I.NotificationType1=I.NotificationType0=I.NotificationType=I.RequestType9=I.RequestType8=I.RequestType7=I.RequestType6=I.RequestType5=I.RequestType4=I.RequestType3=I.RequestType2=I.RequestType1=I.RequestType=I.RequestType0=I.AbstractMessageSignature=I.ParameterStructures=I.ResponseError=I.ErrorCodes=void 0;var un=jn(),va;(function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3})(va||(I.ErrorCodes=va={}));var xa=class e extends Error{constructor(t,n,r){super(n),this.code=un.number(t)?t:va.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,e.prototype)}toJson(){let t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),t}};I.ResponseError=xa;var Be=class e{constructor(t){this.kind=t}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};I.ParameterStructures=Be;Be.auto=new Be("auto");Be.byPosition=new Be("byPosition");Be.byName=new Be("byName");var oe=class{constructor(t,n){this.method=t,this.numberOfParams=n}get parameterStructures(){return Be.auto}};I.AbstractMessageSignature=oe;var Pa=class extends oe{constructor(t){super(t,0)}};I.RequestType0=Pa;var _a=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.RequestType=_a;var Ca=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.RequestType1=Ca;var Sa=class extends oe{constructor(t){super(t,2)}};I.RequestType2=Sa;var Da=class extends oe{constructor(t){super(t,3)}};I.RequestType3=Da;var Ra=class extends oe{constructor(t){super(t,4)}};I.RequestType4=Ra;var wa=class extends oe{constructor(t){super(t,5)}};I.RequestType5=wa;var Ta=class extends oe{constructor(t){super(t,6)}};I.RequestType6=Ta;var ka=class extends oe{constructor(t){super(t,7)}};I.RequestType7=ka;var Aa=class extends oe{constructor(t){super(t,8)}};I.RequestType8=Aa;var Oa=class extends oe{constructor(t){super(t,9)}};I.RequestType9=Oa;var qa=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.NotificationType=qa;var Na=class extends oe{constructor(t){super(t,0)}};I.NotificationType0=Na;var Ea=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.NotificationType1=Ea;var ja=class extends oe{constructor(t){super(t,2)}};I.NotificationType2=ja;var Ma=class extends oe{constructor(t){super(t,3)}};I.NotificationType3=Ma;var La=class extends oe{constructor(t){super(t,4)}};I.NotificationType4=La;var Fa=class extends oe{constructor(t){super(t,5)}};I.NotificationType5=Fa;var Ia=class extends oe{constructor(t){super(t,6)}};I.NotificationType6=Ia;var Ua=class extends oe{constructor(t){super(t,7)}};I.NotificationType7=Ua;var Wa=class extends oe{constructor(t){super(t,8)}};I.NotificationType8=Wa;var Ba=class extends oe{constructor(t){super(t,9)}};I.NotificationType9=Ba;var Ad;(function(e){function t(i){let o=i;return o&&un.string(o.method)&&(un.string(o.id)||un.number(o.id))}e.isRequest=t;function n(i){let o=i;return o&&un.string(o.method)&&i.id===void 0}e.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(un.string(o.id)||un.number(o.id)||o.id===null)}e.isResponse=r})(Ad||(I.Message=Ad={}))});var $a=S(Lt=>{"use strict";var Od;Object.defineProperty(Lt,"__esModule",{value:!0});Lt.LRUCache=Lt.LinkedMap=Lt.Touch=void 0;var Ne;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(Ne||(Lt.Touch=Ne={}));var Ui=class{constructor(){this[Od]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(t){return this._map.has(t)}get(t,n=Ne.None){let r=this._map.get(t);if(r)return n!==Ne.None&&this.touch(r,n),r.value}set(t,n,r=Ne.None){let i=this._map.get(t);if(i)i.value=n,r!==Ne.None&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case Ne.None:this.addItemLast(i);break;case Ne.First:this.addItemFirst(i);break;case Ne.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){let r=this._state,i=this._head;for(;i;){if(n?t.bind(n)(i.value,i.key,this):t(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(Od=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==Ne.First&&n!==Ne.Last)){if(n===Ne.First){if(t===this._head)return;let r=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===Ne.Last){if(t===this._tail)return;let r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(let[n,r]of t)this.set(n,r)}};Lt.LinkedMap=Ui;var za=class extends Ui{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get ratio(){return this._ratio}set ratio(t){this._ratio=Math.min(Math.max(0,t),1),this.checkTrim()}get(t,n=Ne.AsNew){return super.get(t,n)}peek(t){return super.get(t,Ne.None)}set(t,n){return super.set(t,n,Ne.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Lt.LRUCache=za});var Nd=S(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.Disposable=void 0;var qd;(function(e){function t(n){return{dispose:n}}e.create=t})(qd||(Wi.Disposable=qd={}))});var Ft=S(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var Va;function Ya(){if(Va===void 0)throw new Error("No runtime abstraction layer installed");return Va}(function(e){function t(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");Va=n}e.install=t})(Ya||(Ya={}));Ka.default=Ya});var Ln=S(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.Emitter=Mn.Event=void 0;var u_=Ft(),Ed;(function(e){let t={dispose(){}};e.None=function(){return t}})(Ed||(Mn.Event=Ed={}));var Ga=class{add(t,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(t),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(t,n)})}remove(t,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,o=this._callbacks.length;i<o;i++)if(this._callbacks[i]===t)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(...t){if(!this._callbacks)return[];let n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let o=0,s=r.length;o<s;o++)try{n.push(r[o].apply(i[o],t))}catch(a){(0,u_.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Bi=class e{constructor(t){this._options=t}get event(){return this._event||(this._event=(t,n,r)=>{this._callbacks||(this._callbacks=new Ga),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(t,n),i.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(t){this._callbacks&&this._callbacks.invoke.call(this._callbacks,t)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Mn.Emitter=Bi;Bi._noop=function(){}});var $i=S(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.CancellationTokenSource=Fn.CancellationToken=void 0;var l_=Ft(),p_=jn(),Qa=Ln(),Hi;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Qa.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Qa.Event.None});function t(n){let r=n;return r&&(r===e.None||r===e.Cancelled||p_.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(Hi||(Fn.CancellationToken=Hi={}));var d_=Object.freeze(function(e,t){let n=(0,l_.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),zi=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?d_:(this._emitter||(this._emitter=new Qa.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},Ja=class{get token(){return this._token||(this._token=new zi),this._token}cancel(){this._token?this._token.cancel():this._token=Hi.Cancelled}dispose(){this._token?this._token instanceof zi&&this._token.dispose():this._token=Hi.None}};Fn.CancellationTokenSource=Ja});var jd=S(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.SharedArrayReceiverStrategy=In.SharedArraySenderStrategy=void 0;var f_=$i(),Sr;(function(e){e.Continue=0,e.Cancelled=1})(Sr||(Sr={}));var Xa=class{constructor(){this.buffers=new Map}enableCancellation(t){if(t.id===null)return;let n=new SharedArrayBuffer(4),r=new Int32Array(n,0,1);r[0]=Sr.Continue,this.buffers.set(t.id,n),t.$cancellationData=n}async sendCancellation(t,n){let r=this.buffers.get(n);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,Sr.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};In.SharedArraySenderStrategy=Xa;var Za=class{constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Sr.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},ec=class{constructor(t){this.token=new Za(t)}cancel(){}dispose(){}},tc=class{constructor(){this.kind="request"}createCancellationTokenSource(t){let n=t.$cancellationData;return n===void 0?new f_.CancellationTokenSource:new ec(n)}};In.SharedArrayReceiverStrategy=tc});var rc=S(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.Semaphore=void 0;var g_=Ft(),nc=class{constructor(t=1){if(t<=0)throw new Error("Capacity must be greater than 0");this._capacity=t,this._active=0,this._waiting=[]}lock(t){return new Promise((n,r)=>{this._waiting.push({thunk:t,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,g_.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let t=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let n=t.thunk();n instanceof Promise?n.then(r=>{this._active--,t.resolve(r),this.runNext()},r=>{this._active--,t.reject(r),this.runNext()}):(this._active--,t.resolve(n),this.runNext())}catch(n){this._active--,t.reject(n),this.runNext()}}};Vi.Semaphore=nc});var Ld=S(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.ReadableStreamMessageReader=It.AbstractMessageReader=It.MessageReader=void 0;var oc=Ft(),Un=jn(),ic=Ln(),m_=rc(),Md;(function(e){function t(n){let r=n;return r&&Un.func(r.listen)&&Un.func(r.dispose)&&Un.func(r.onError)&&Un.func(r.onClose)&&Un.func(r.onPartialMessage)}e.is=t})(Md||(It.MessageReader=Md={}));var Yi=class{constructor(){this.errorEmitter=new ic.Emitter,this.closeEmitter=new ic.Emitter,this.partialMessageEmitter=new ic.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(t){this.errorEmitter.fire(this.asError(t))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(t){this.partialMessageEmitter.fire(t)}asError(t){return t instanceof Error?t:new Error(`Reader received error. Reason: ${Un.string(t.message)?t.message:"unknown"}`)}};It.AbstractMessageReader=Yi;var sc;(function(e){function t(n){let r,i,o,s=new Map,a,c=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(o=n.contentDecoder,s.set(o.name,o)),n.contentDecoders!==void 0)for(let l of n.contentDecoders)s.set(l.name,l);if(n.contentTypeDecoder!==void 0&&(a=n.contentTypeDecoder,c.set(a.name,a)),n.contentTypeDecoders!==void 0)for(let l of n.contentTypeDecoders)c.set(l.name,l)}return a===void 0&&(a=(0,oc.default)().applicationJson.decoder,c.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:c}}e.fromOptions=t})(sc||(sc={}));var ac=class extends Yi{constructor(t,n){super(),this.readable=t,this.options=sc.fromOptions(n),this.buffer=(0,oc.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new m_.Semaphore(1)}set partialMessageTimeout(t){this._partialMessageTimeout=t}get partialMessageTimeout(){return this._partialMessageTimeout}listen(t){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=t;let n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(t){try{for(this.buffer.append(t);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
35
+ `:""}Dn.dump=Kp;function cx(e,t){return Kp(e,yr.extend({schema:kv},t))}Dn.safeDump=cx});var Qp=S(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.determineScalarType=Ve.ScalarType=Ve.parseYamlFloat=Ve.parseYamlInteger=Ve.parseYamlBoolean=void 0;function ux(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`}Ve.parseYamlBoolean=ux;function lx(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function px(e){let t=lx(e);if(isNaN(t))throw`Invalid integer "${e}"`;return t}Ve.parseYamlInteger=px;function dx(e){if([".nan",".NaN",".NAN"].lastIndexOf(e)>=0)return NaN;let n=/^([-+])?(?:\.inf|\.Inf|\.INF)$/.exec(e);if(n)return n[1]==="-"?-1/0:1/0;let r=parseFloat(e);if(!isNaN(r))return r;throw`Invalid float "${e}"`}Ve.parseYamlFloat=dx;var _t;(function(e){e[e.null=0]="null",e[e.bool=1]="bool",e[e.int=2]="int",e[e.float=3]="float",e[e.string=4]="string"})(_t=Ve.ScalarType||(Ve.ScalarType={}));function fx(e){if(e===void 0)return _t.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return _t.string;let t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return _t.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return _t.bool;let n=/^[-+]?[0-9]+$/,r=/^0o[0-7]+$/,i=/^0x[0-9a-fA-F]+$/;if(n.test(t)||r.test(t)||i.test(t))return _t.int;let o=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,s=/^[-+]?(\.inf|\.Inf|\.INF)$/;return o.test(t)||s.test(t)||[".nan",".NaN",".NAN"].indexOf(t)>=0?_t.float:_t.string}Ve.determineScalarType=fx});var br=S(he=>{"use strict";var gx=he&&he.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Jp=he&&he.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&gx(t,e,n)};Object.defineProperty(he,"__esModule",{value:!0});he.safeDump=he.dump=he.safeLoadAll=he.safeLoad=he.loadAll=he.load=void 0;var ui=Bp();Object.defineProperty(he,"load",{enumerable:!0,get:function(){return ui.load}});Object.defineProperty(he,"loadAll",{enumerable:!0,get:function(){return ui.loadAll}});Object.defineProperty(he,"safeLoad",{enumerable:!0,get:function(){return ui.safeLoad}});Object.defineProperty(he,"safeLoadAll",{enumerable:!0,get:function(){return ui.safeLoadAll}});var Xp=Gp();Object.defineProperty(he,"dump",{enumerable:!0,get:function(){return Xp.dump}});Object.defineProperty(he,"safeDump",{enumerable:!0,get:function(){return Xp.safeDump}});he.YAMLException=Pn();Jp(Pt(),he);Jp(Qp(),he)});var jn=S(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.stringArray=qe.array=qe.func=qe.error=qe.number=qe.string=qe.boolean=void 0;function i_(e){return e===!0||e===!1}qe.boolean=i_;function Td(e){return typeof e=="string"||e instanceof String}qe.string=Td;function o_(e){return typeof e=="number"||e instanceof Number}qe.number=o_;function s_(e){return e instanceof Error}qe.error=s_;function a_(e){return typeof e=="function"}qe.func=a_;function kd(e){return Array.isArray(e)}qe.array=kd;function c_(e){return kd(e)&&e.every(t=>Td(t))}qe.stringArray=c_});var Ha=S(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.Message=I.NotificationType9=I.NotificationType8=I.NotificationType7=I.NotificationType6=I.NotificationType5=I.NotificationType4=I.NotificationType3=I.NotificationType2=I.NotificationType1=I.NotificationType0=I.NotificationType=I.RequestType9=I.RequestType8=I.RequestType7=I.RequestType6=I.RequestType5=I.RequestType4=I.RequestType3=I.RequestType2=I.RequestType1=I.RequestType=I.RequestType0=I.AbstractMessageSignature=I.ParameterStructures=I.ResponseError=I.ErrorCodes=void 0;var un=jn(),va;(function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3})(va||(I.ErrorCodes=va={}));var xa=class e extends Error{constructor(t,n,r){super(n),this.code=un.number(t)?t:va.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,e.prototype)}toJson(){let t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),t}};I.ResponseError=xa;var Be=class e{constructor(t){this.kind=t}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};I.ParameterStructures=Be;Be.auto=new Be("auto");Be.byPosition=new Be("byPosition");Be.byName=new Be("byName");var oe=class{constructor(t,n){this.method=t,this.numberOfParams=n}get parameterStructures(){return Be.auto}};I.AbstractMessageSignature=oe;var Pa=class extends oe{constructor(t){super(t,0)}};I.RequestType0=Pa;var _a=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.RequestType=_a;var Ca=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.RequestType1=Ca;var Sa=class extends oe{constructor(t){super(t,2)}};I.RequestType2=Sa;var Da=class extends oe{constructor(t){super(t,3)}};I.RequestType3=Da;var Ra=class extends oe{constructor(t){super(t,4)}};I.RequestType4=Ra;var wa=class extends oe{constructor(t){super(t,5)}};I.RequestType5=wa;var Ta=class extends oe{constructor(t){super(t,6)}};I.RequestType6=Ta;var ka=class extends oe{constructor(t){super(t,7)}};I.RequestType7=ka;var Aa=class extends oe{constructor(t){super(t,8)}};I.RequestType8=Aa;var Oa=class extends oe{constructor(t){super(t,9)}};I.RequestType9=Oa;var qa=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.NotificationType=qa;var Na=class extends oe{constructor(t){super(t,0)}};I.NotificationType0=Na;var Ea=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.NotificationType1=Ea;var ja=class extends oe{constructor(t){super(t,2)}};I.NotificationType2=ja;var Ma=class extends oe{constructor(t){super(t,3)}};I.NotificationType3=Ma;var La=class extends oe{constructor(t){super(t,4)}};I.NotificationType4=La;var Fa=class extends oe{constructor(t){super(t,5)}};I.NotificationType5=Fa;var Ia=class extends oe{constructor(t){super(t,6)}};I.NotificationType6=Ia;var Ua=class extends oe{constructor(t){super(t,7)}};I.NotificationType7=Ua;var Wa=class extends oe{constructor(t){super(t,8)}};I.NotificationType8=Wa;var Ba=class extends oe{constructor(t){super(t,9)}};I.NotificationType9=Ba;var Ad;(function(e){function t(i){let o=i;return o&&un.string(o.method)&&(un.string(o.id)||un.number(o.id))}e.isRequest=t;function n(i){let o=i;return o&&un.string(o.method)&&i.id===void 0}e.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(un.string(o.id)||un.number(o.id)||o.id===null)}e.isResponse=r})(Ad||(I.Message=Ad={}))});var $a=S(Lt=>{"use strict";var Od;Object.defineProperty(Lt,"__esModule",{value:!0});Lt.LRUCache=Lt.LinkedMap=Lt.Touch=void 0;var Ne;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(Ne||(Lt.Touch=Ne={}));var Ui=class{constructor(){this[Od]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(t){return this._map.has(t)}get(t,n=Ne.None){let r=this._map.get(t);if(r)return n!==Ne.None&&this.touch(r,n),r.value}set(t,n,r=Ne.None){let i=this._map.get(t);if(i)i.value=n,r!==Ne.None&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case Ne.None:this.addItemLast(i);break;case Ne.First:this.addItemFirst(i);break;case Ne.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){let r=this._state,i=this._head;for(;i;){if(n?t.bind(n)(i.value,i.key,this):t(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(Od=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==Ne.First&&n!==Ne.Last)){if(n===Ne.First){if(t===this._head)return;let r=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===Ne.Last){if(t===this._tail)return;let r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(let[n,r]of t)this.set(n,r)}};Lt.LinkedMap=Ui;var za=class extends Ui{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get ratio(){return this._ratio}set ratio(t){this._ratio=Math.min(Math.max(0,t),1),this.checkTrim()}get(t,n=Ne.AsNew){return super.get(t,n)}peek(t){return super.get(t,Ne.None)}set(t,n){return super.set(t,n,Ne.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Lt.LRUCache=za});var Nd=S(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.Disposable=void 0;var qd;(function(e){function t(n){return{dispose:n}}e.create=t})(qd||(Wi.Disposable=qd={}))});var Ft=S(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var Va;function Ya(){if(Va===void 0)throw new Error("No runtime abstraction layer installed");return Va}(function(e){function t(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");Va=n}e.install=t})(Ya||(Ya={}));Ka.default=Ya});var Ln=S(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.Emitter=Mn.Event=void 0;var u_=Ft(),Ed;(function(e){let t={dispose(){}};e.None=function(){return t}})(Ed||(Mn.Event=Ed={}));var Ga=class{add(t,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(t),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(t,n)})}remove(t,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,o=this._callbacks.length;i<o;i++)if(this._callbacks[i]===t)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(...t){if(!this._callbacks)return[];let n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let o=0,s=r.length;o<s;o++)try{n.push(r[o].apply(i[o],t))}catch(a){(0,u_.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Bi=class e{constructor(t){this._options=t}get event(){return this._event||(this._event=(t,n,r)=>{this._callbacks||(this._callbacks=new Ga),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(t,n),i.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(t){this._callbacks&&this._callbacks.invoke.call(this._callbacks,t)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Mn.Emitter=Bi;Bi._noop=function(){}});var $i=S(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.CancellationTokenSource=Fn.CancellationToken=void 0;var l_=Ft(),p_=jn(),Qa=Ln(),Hi;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Qa.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Qa.Event.None});function t(n){let r=n;return r&&(r===e.None||r===e.Cancelled||p_.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(Hi||(Fn.CancellationToken=Hi={}));var d_=Object.freeze(function(e,t){let n=(0,l_.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),zi=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?d_:(this._emitter||(this._emitter=new Qa.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},Ja=class{get token(){return this._token||(this._token=new zi),this._token}cancel(){this._token?this._token.cancel():this._token=Hi.Cancelled}dispose(){this._token?this._token instanceof zi&&this._token.dispose():this._token=Hi.None}};Fn.CancellationTokenSource=Ja});var jd=S(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.SharedArrayReceiverStrategy=In.SharedArraySenderStrategy=void 0;var f_=$i(),Sr;(function(e){e.Continue=0,e.Cancelled=1})(Sr||(Sr={}));var Xa=class{constructor(){this.buffers=new Map}enableCancellation(t){if(t.id===null)return;let n=new SharedArrayBuffer(4),r=new Int32Array(n,0,1);r[0]=Sr.Continue,this.buffers.set(t.id,n),t.$cancellationData=n}async sendCancellation(t,n){let r=this.buffers.get(n);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,Sr.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};In.SharedArraySenderStrategy=Xa;var Za=class{constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Sr.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},ec=class{constructor(t){this.token=new Za(t)}cancel(){}dispose(){}},tc=class{constructor(){this.kind="request"}createCancellationTokenSource(t){let n=t.$cancellationData;return n===void 0?new f_.CancellationTokenSource:new ec(n)}};In.SharedArrayReceiverStrategy=tc});var rc=S(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.Semaphore=void 0;var g_=Ft(),nc=class{constructor(t=1){if(t<=0)throw new Error("Capacity must be greater than 0");this._capacity=t,this._active=0,this._waiting=[]}lock(t){return new Promise((n,r)=>{this._waiting.push({thunk:t,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,g_.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let t=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let n=t.thunk();n instanceof Promise?n.then(r=>{this._active--,t.resolve(r),this.runNext()},r=>{this._active--,t.reject(r),this.runNext()}):(this._active--,t.resolve(n),this.runNext())}catch(n){this._active--,t.reject(n),this.runNext()}}};Vi.Semaphore=nc});var Ld=S(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.ReadableStreamMessageReader=It.AbstractMessageReader=It.MessageReader=void 0;var oc=Ft(),Un=jn(),ic=Ln(),m_=rc(),Md;(function(e){function t(n){let r=n;return r&&Un.func(r.listen)&&Un.func(r.dispose)&&Un.func(r.onError)&&Un.func(r.onClose)&&Un.func(r.onPartialMessage)}e.is=t})(Md||(It.MessageReader=Md={}));var Yi=class{constructor(){this.errorEmitter=new ic.Emitter,this.closeEmitter=new ic.Emitter,this.partialMessageEmitter=new ic.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(t){this.errorEmitter.fire(this.asError(t))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(t){this.partialMessageEmitter.fire(t)}asError(t){return t instanceof Error?t:new Error(`Reader received error. Reason: ${Un.string(t.message)?t.message:"unknown"}`)}};It.AbstractMessageReader=Yi;var sc;(function(e){function t(n){let r,i,o,s=new Map,a,c=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(o=n.contentDecoder,s.set(o.name,o)),n.contentDecoders!==void 0)for(let l of n.contentDecoders)s.set(l.name,l);if(n.contentTypeDecoder!==void 0&&(a=n.contentTypeDecoder,c.set(a.name,a)),n.contentTypeDecoders!==void 0)for(let l of n.contentTypeDecoders)c.set(l.name,l)}return a===void 0&&(a=(0,oc.default)().applicationJson.decoder,c.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:c}}e.fromOptions=t})(sc||(sc={}));var ac=class extends Yi{constructor(t,n){super(),this.readable=t,this.options=sc.fromOptions(n),this.buffer=(0,oc.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new m_.Semaphore(1)}set partialMessageTimeout(t){this._partialMessageTimeout=t}get partialMessageTimeout(){return this._partialMessageTimeout}listen(t){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=t;let n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(t){try{for(this.buffer.append(t);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
36
36
  ${JSON.stringify(Object.fromEntries(r))}`));return}let o=parseInt(i);if(isNaN(o)){this.fireError(new Error(`Content-Length value must be a number. Got ${i}`));return}this.nextMessageLength=o}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let 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,oc.default)().timer.setTimeout((t,n)=>{this.partialMessageTimer=void 0,t===this.messageToken&&(this.firePartialMessage({messageToken:t,waitingTime:n}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};It.ReadableStreamMessageReader=ac});var Bd=S(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.WriteableStreamMessageWriter=Ut.AbstractMessageWriter=Ut.MessageWriter=void 0;var Fd=Ft(),Dr=jn(),h_=rc(),Id=Ln(),y_="Content-Length: ",Ud=`\r
37
37
  `,Wd;(function(e){function t(n){let r=n;return r&&Dr.func(r.dispose)&&Dr.func(r.onClose)&&Dr.func(r.onError)&&Dr.func(r.write)}e.is=t})(Wd||(Ut.MessageWriter=Wd={}));var Ki=class{constructor(){this.errorEmitter=new Id.Emitter,this.closeEmitter=new Id.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(t,n,r){this.errorEmitter.fire([this.asError(t),n,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(t){return t instanceof Error?t:new Error(`Writer received error. Reason: ${Dr.string(t.message)?t.message:"unknown"}`)}};Ut.AbstractMessageWriter=Ki;var cc;(function(e){function t(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,Fd.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,Fd.default)().applicationJson.encoder}}e.fromOptions=t})(cc||(cc={}));var uc=class extends Ki{constructor(t,n){super(),this.writable=t,this.options=cc.fromOptions(n),this.errorCount=0,this.writeSemaphore=new h_.Semaphore(1),this.writable.onError(r=>this.fireError(r)),this.writable.onClose(()=>this.fireClose())}async write(t){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(t,this.options).then(r=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(r):r).then(r=>{let i=[];return i.push(y_,r.byteLength.toString(),Ud),i.push(Ud),this.doWrite(t,i,r)},r=>{throw this.fireError(r),r}))}async doWrite(t,n,r){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,t),Promise.reject(i)}}handleError(t,n){this.errorCount++,this.fireError(t,n,this.errorCount)}end(){this.writable.end()}};Ut.WriteableStreamMessageWriter=uc});var Hd=S(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.AbstractMessageBuffer=void 0;var b_=13,v_=10,x_=`\r
38
38
  `,lc=class{constructor(t="utf-8"){this._encoding=t,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(t){let n=typeof t=="string"?this.fromString(t,this._encoding):t;this._chunks.push(n),this._totalLength+=n.byteLength}tryReadHeaders(t=!1){if(this._chunks.length===0)return;let n=0,r=0,i=0,o=0;e:for(;r<this._chunks.length;){let l=this._chunks[r];for(i=0;i<l.length;){switch(l[i]){case b_:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case v_:switch(n){case 1:n=2;break;case 3:n=4,i++;break e;default:n=0}break;default:n=0}i++}o+=l.byteLength,r++}if(n!==4)return;let s=this._read(o+i),a=new Map,c=this.toString(s,"ascii").split(x_);if(c.length<2)return a;for(let l=0;l<c.length-2;l++){let d=c[l],h=d.indexOf(":");if(h===-1)throw new Error(`Message header must separate key and value using ':'
@@ -62,11 +62,11 @@ ${JSON.stringify(p,null,4)}`);let _=p;if(ue.string(_.id)||ue.number(_.id)){let A
62
62
 
63
63
  `:p.error===void 0&&(A=`No result returned.
64
64
 
65
- `)),_){let L=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";V.log(`Received response '${_.method} - (${p.id})' in ${Date.now()-_.timerStart}ms.${L}`,A)}else V.log(`Received response ${p.id} without active response promise.`,A)}else bn("receive-response",p)}function bn(p,_){if(!V||g===J.Off)return;let A={isLSPMessage:!0,type:p,message:_,timestamp:Date.now()};V.log(A)}function lr(){if(M())throw new Wn(Tr.Closed,"Connection is closed.");if(q())throw new Wn(Tr.Disposed,"Connection is disposed.")}function Dy(){if(N())throw new Wn(Tr.AlreadyListening,"Connection is already listening")}function Ry(){if(!N())throw new Error("Call listen() first.")}function pr(p){return p===void 0?null:p}function _l(p){if(p!==null)return p}function Cl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function vs(p,_){switch(p){case U.ParameterStructures.auto:return Cl(_)?_l(_):[pr(_)];case U.ParameterStructures.byName:if(!Cl(_))throw new Error("Received parameters by name but param is not an object literal.");return _l(_);case U.ParameterStructures.byPosition:return[pr(_)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function Sl(p,_){let A,L=p.numberOfParams;switch(L){case 0:A=void 0;break;case 1:A=vs(p.parameterStructures,_[0]);break;default:A=[];for(let ie=0;ie<_.length&&ie<L;ie++)A.push(pr(_[ie]));if(_.length<L)for(let ie=_.length;ie<L;ie++)A.push(null);break}return A}let vn={sendNotification:(p,..._)=>{lr();let A,L;if(ue.string(p)){A=p;let te=_[0],le=0,ge=U.ParameterStructures.auto;U.ParameterStructures.is(te)&&(le=1,ge=te);let G=_.length,ae=G-le;switch(ae){case 0:L=void 0;break;case 1:L=vs(ge,_[le]);break;default:if(ge===U.ParameterStructures.byName)throw new Error(`Received ${ae} parameters for 'by Name' notification parameter structure.`);L=_.slice(le,G).map(Z=>pr(Z));break}}else{let te=_;A=p.method,L=Sl(p,te)}let ie={jsonrpc:c,method:A,params:L};return _y(ie),t.write(ie).catch(te=>{throw i.error("Sending notification failed."),te})},onNotification:(p,_)=>{lr();let A;return ue.func(p)?h=p:_&&(ue.string(p)?(A=p,v.set(p,{type:void 0,handler:_})):(A=p.method,v.set(p.method,{type:p,handler:_}))),{dispose:()=>{A!==void 0?v.delete(A):h=void 0}}},onProgress:(p,_,A)=>{if(y.has(_))throw new Error(`Progress handler for token ${_} already registered`);return y.set(_,A),{dispose:()=>{y.delete(_)}}},sendProgress:(p,_,A)=>vn.sendNotification(wr.type,{token:_,value:A}),onUnhandledProgress:yn.event,sendRequest:(p,..._)=>{lr(),Ry();let A,L,ie;if(ue.string(p)){A=p;let G=_[0],ae=_[_.length-1],Z=0,xe=U.ParameterStructures.auto;U.ParameterStructures.is(G)&&(Z=1,xe=G);let Me=_.length;pc.CancellationToken.is(ae)&&(Me=Me-1,ie=ae);let lt=Me-Z;switch(lt){case 0:L=void 0;break;case 1:L=vs(xe,_[Z]);break;default:if(xe===U.ParameterStructures.byName)throw new Error(`Received ${lt} parameters for 'by Name' request parameter structure.`);L=_.slice(Z,Me).map(wy=>pr(wy));break}}else{let G=_;A=p.method,L=Sl(p,G);let ae=p.numberOfParams;ie=pc.CancellationToken.is(G[ae])?G[ae]:void 0}let te=o++,le;ie&&(le=ie.onCancellationRequested(()=>{let G=b.sender.sendCancellation(vn,te);return G===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${te}`),Promise.resolve()):G.catch(()=>{i.log(`Sending cancellation messages for id ${te} failed`)})}));let ge={jsonrpc:c,id:te,method:A,params:L};return Py(ge),typeof b.sender.enableCancellation=="function"&&b.sender.enableCancellation(ge),new Promise(async(G,ae)=>{let Z=lt=>{G(lt),b.sender.cleanup(te),le?.dispose()},xe=lt=>{ae(lt),b.sender.cleanup(te),le?.dispose()},Me={method:A,timerStart:Date.now(),resolve:Z,reject:xe};try{await t.write(ge),$.set(te,Me)}catch(lt){throw i.error("Sending request failed."),Me.reject(new U.ResponseError(U.ErrorCodes.MessageWriteError,lt.message?lt.message:"Unknown reason")),lt}})},onRequest:(p,_)=>{lr();let A=null;return gc.is(p)?(A=void 0,l=p):ue.string(p)?(A=null,_!==void 0&&(A=p,d.set(p,{handler:_,type:void 0}))):_!==void 0&&(A=p.method,d.set(p.method,{type:p,handler:_})),{dispose:()=>{A!==null&&(A!==void 0?d.delete(A):l=void 0)}}},hasPendingResponse:()=>$.size>0,trace:async(p,_,A)=>{let L=!1,ie=Ye.Text;A!==void 0&&(ue.boolean(A)?L=A:(L=A.sendNotification||!1,ie=A.traceFormat||Ye.Text)),g=p,T=ie,g===J.Off?V=void 0:V=_,L&&!M()&&!q()&&await vn.sendNotification(mc.type,{value:J.toString(p)})},onError:it.event,onClose:Tt.event,onUnhandledNotification:Zt.event,onDispose:k.event,end:()=>{t.end()},dispose:()=>{if(q())return;X=at.Disposed,k.fire(void 0);let p=new U.ResponseError(U.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let _ of $.values())_.reject(p);$=new Map,m=new Map,Y=new Set,F=new $d.LinkedMap,ue.func(t.dispose)&&t.dispose(),ue.func(e.dispose)&&e.dispose()},listen:()=>{lr(),Dy(),X=at.Listening,e.listen(hy)},inspect:()=>{(0,zd.default)().console.log("inspect")}};return vn.onNotification(Qi.type,p=>{if(g===J.Off||!V)return;let _=g===J.Verbose||g===J.Compact;V.log(p.message,_?p.verbose:void 0)}),vn.onNotification(wr.type,p=>{let _=y.get(p.token);_?_(p.value):yn.fire(p)}),vn}H.createMessageConnection=P_});var no=S(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.ProgressType=x.ProgressToken=x.createMessageConnection=x.NullLogger=x.ConnectionOptions=x.ConnectionStrategy=x.AbstractMessageBuffer=x.WriteableStreamMessageWriter=x.AbstractMessageWriter=x.MessageWriter=x.ReadableStreamMessageReader=x.AbstractMessageReader=x.MessageReader=x.SharedArrayReceiverStrategy=x.SharedArraySenderStrategy=x.CancellationToken=x.CancellationTokenSource=x.Emitter=x.Event=x.Disposable=x.LRUCache=x.Touch=x.LinkedMap=x.ParameterStructures=x.NotificationType9=x.NotificationType8=x.NotificationType7=x.NotificationType6=x.NotificationType5=x.NotificationType4=x.NotificationType3=x.NotificationType2=x.NotificationType1=x.NotificationType0=x.NotificationType=x.ErrorCodes=x.ResponseError=x.RequestType9=x.RequestType8=x.RequestType7=x.RequestType6=x.RequestType5=x.RequestType4=x.RequestType3=x.RequestType2=x.RequestType1=x.RequestType0=x.RequestType=x.Message=x.RAL=void 0;x.MessageStrategy=x.CancellationStrategy=x.CancellationSenderStrategy=x.CancellationReceiverStrategy=x.ConnectionError=x.ConnectionErrors=x.LogTraceNotification=x.SetTraceNotification=x.TraceFormat=x.TraceValues=x.Trace=void 0;var re=Ha();Object.defineProperty(x,"Message",{enumerable:!0,get:function(){return re.Message}});Object.defineProperty(x,"RequestType",{enumerable:!0,get:function(){return re.RequestType}});Object.defineProperty(x,"RequestType0",{enumerable:!0,get:function(){return re.RequestType0}});Object.defineProperty(x,"RequestType1",{enumerable:!0,get:function(){return re.RequestType1}});Object.defineProperty(x,"RequestType2",{enumerable:!0,get:function(){return re.RequestType2}});Object.defineProperty(x,"RequestType3",{enumerable:!0,get:function(){return re.RequestType3}});Object.defineProperty(x,"RequestType4",{enumerable:!0,get:function(){return re.RequestType4}});Object.defineProperty(x,"RequestType5",{enumerable:!0,get:function(){return re.RequestType5}});Object.defineProperty(x,"RequestType6",{enumerable:!0,get:function(){return re.RequestType6}});Object.defineProperty(x,"RequestType7",{enumerable:!0,get:function(){return re.RequestType7}});Object.defineProperty(x,"RequestType8",{enumerable:!0,get:function(){return re.RequestType8}});Object.defineProperty(x,"RequestType9",{enumerable:!0,get:function(){return re.RequestType9}});Object.defineProperty(x,"ResponseError",{enumerable:!0,get:function(){return re.ResponseError}});Object.defineProperty(x,"ErrorCodes",{enumerable:!0,get:function(){return re.ErrorCodes}});Object.defineProperty(x,"NotificationType",{enumerable:!0,get:function(){return re.NotificationType}});Object.defineProperty(x,"NotificationType0",{enumerable:!0,get:function(){return re.NotificationType0}});Object.defineProperty(x,"NotificationType1",{enumerable:!0,get:function(){return re.NotificationType1}});Object.defineProperty(x,"NotificationType2",{enumerable:!0,get:function(){return re.NotificationType2}});Object.defineProperty(x,"NotificationType3",{enumerable:!0,get:function(){return re.NotificationType3}});Object.defineProperty(x,"NotificationType4",{enumerable:!0,get:function(){return re.NotificationType4}});Object.defineProperty(x,"NotificationType5",{enumerable:!0,get:function(){return re.NotificationType5}});Object.defineProperty(x,"NotificationType6",{enumerable:!0,get:function(){return re.NotificationType6}});Object.defineProperty(x,"NotificationType7",{enumerable:!0,get:function(){return re.NotificationType7}});Object.defineProperty(x,"NotificationType8",{enumerable:!0,get:function(){return re.NotificationType8}});Object.defineProperty(x,"NotificationType9",{enumerable:!0,get:function(){return re.NotificationType9}});Object.defineProperty(x,"ParameterStructures",{enumerable:!0,get:function(){return re.ParameterStructures}});var bc=$a();Object.defineProperty(x,"LinkedMap",{enumerable:!0,get:function(){return bc.LinkedMap}});Object.defineProperty(x,"LRUCache",{enumerable:!0,get:function(){return bc.LRUCache}});Object.defineProperty(x,"Touch",{enumerable:!0,get:function(){return bc.Touch}});var __=Nd();Object.defineProperty(x,"Disposable",{enumerable:!0,get:function(){return __.Disposable}});var Gd=Ln();Object.defineProperty(x,"Event",{enumerable:!0,get:function(){return Gd.Event}});Object.defineProperty(x,"Emitter",{enumerable:!0,get:function(){return Gd.Emitter}});var Qd=$i();Object.defineProperty(x,"CancellationTokenSource",{enumerable:!0,get:function(){return Qd.CancellationTokenSource}});Object.defineProperty(x,"CancellationToken",{enumerable:!0,get:function(){return Qd.CancellationToken}});var Jd=jd();Object.defineProperty(x,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return Jd.SharedArraySenderStrategy}});Object.defineProperty(x,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return Jd.SharedArrayReceiverStrategy}});var vc=Ld();Object.defineProperty(x,"MessageReader",{enumerable:!0,get:function(){return vc.MessageReader}});Object.defineProperty(x,"AbstractMessageReader",{enumerable:!0,get:function(){return vc.AbstractMessageReader}});Object.defineProperty(x,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return vc.ReadableStreamMessageReader}});var xc=Bd();Object.defineProperty(x,"MessageWriter",{enumerable:!0,get:function(){return xc.MessageWriter}});Object.defineProperty(x,"AbstractMessageWriter",{enumerable:!0,get:function(){return xc.AbstractMessageWriter}});Object.defineProperty(x,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return xc.WriteableStreamMessageWriter}});var C_=Hd();Object.defineProperty(x,"AbstractMessageBuffer",{enumerable:!0,get:function(){return C_.AbstractMessageBuffer}});var Ae=Kd();Object.defineProperty(x,"ConnectionStrategy",{enumerable:!0,get:function(){return Ae.ConnectionStrategy}});Object.defineProperty(x,"ConnectionOptions",{enumerable:!0,get:function(){return Ae.ConnectionOptions}});Object.defineProperty(x,"NullLogger",{enumerable:!0,get:function(){return Ae.NullLogger}});Object.defineProperty(x,"createMessageConnection",{enumerable:!0,get:function(){return Ae.createMessageConnection}});Object.defineProperty(x,"ProgressToken",{enumerable:!0,get:function(){return Ae.ProgressToken}});Object.defineProperty(x,"ProgressType",{enumerable:!0,get:function(){return Ae.ProgressType}});Object.defineProperty(x,"Trace",{enumerable:!0,get:function(){return Ae.Trace}});Object.defineProperty(x,"TraceValues",{enumerable:!0,get:function(){return Ae.TraceValues}});Object.defineProperty(x,"TraceFormat",{enumerable:!0,get:function(){return Ae.TraceFormat}});Object.defineProperty(x,"SetTraceNotification",{enumerable:!0,get:function(){return Ae.SetTraceNotification}});Object.defineProperty(x,"LogTraceNotification",{enumerable:!0,get:function(){return Ae.LogTraceNotification}});Object.defineProperty(x,"ConnectionErrors",{enumerable:!0,get:function(){return Ae.ConnectionErrors}});Object.defineProperty(x,"ConnectionError",{enumerable:!0,get:function(){return Ae.ConnectionError}});Object.defineProperty(x,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Ae.CancellationReceiverStrategy}});Object.defineProperty(x,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Ae.CancellationSenderStrategy}});Object.defineProperty(x,"CancellationStrategy",{enumerable:!0,get:function(){return Ae.CancellationStrategy}});Object.defineProperty(x,"MessageStrategy",{enumerable:!0,get:function(){return Ae.MessageStrategy}});var S_=Ft();x.RAL=S_.default});var Zd=S(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var gt=no(),ro=class e extends gt.AbstractMessageBuffer{constructor(t="utf-8"){super(t),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return e.emptyBuffer}fromString(t,n){return new TextEncoder().encode(t)}toString(t,n){return n==="ascii"?this.asciiDecoder.decode(t):new TextDecoder(n).decode(t)}asNative(t,n){return n===void 0?t:t.slice(0,n)}allocNative(t){return new Uint8Array(t)}};ro.emptyBuffer=new Uint8Array(0);var Pc=class{constructor(t){this.socket=t,this._onData=new gt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,gt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),gt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),gt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),gt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},_c=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),gt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),gt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),gt.Disposable.create(()=>this.socket.removeEventListener("end",t))}write(t,n){if(typeof t=="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(t)}else this.socket.send(t);return Promise.resolve()}end(){this.socket.close()}},D_=new TextEncoder,Xd=Object.freeze({messageBuffer:Object.freeze({create:e=>new ro(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{if(t.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(D_.encode(JSON.stringify(e,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{if(!(e instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))}})}),stream:Object.freeze({asReadableStream:e=>new Pc(e),asWritableStream:e=>new _c(e)}),console,timer:Object.freeze({setTimeout(e,t,...n){let r=setTimeout(e,t,...n);return{dispose:()=>clearTimeout(r)}},setImmediate(e,...t){let n=setTimeout(e,0,...t);return{dispose:()=>clearTimeout(n)}},setInterval(e,t,...n){let r=setInterval(e,t,...n);return{dispose:()=>clearInterval(r)}}})});function Cc(){return Xd}(function(e){function t(){gt.RAL.install(Xd)}e.install=t})(Cc||(Cc={}));Sc.default=Cc});var ln=S(Ke=>{"use strict";var R_=Ke&&Ke.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),w_=Ke&&Ke.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&R_(t,e,n)};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.createMessageConnection=Ke.BrowserMessageWriter=Ke.BrowserMessageReader=void 0;var T_=Zd();T_.default.install();var Bn=no();w_(no(),Ke);var Dc=class extends Bn.AbstractMessageReader{constructor(t){super(),this._onData=new Bn.Emitter,this._messageListener=n=>{this._onData.fire(n.data)},t.addEventListener("error",n=>this.fireError(n)),t.onmessage=this._messageListener}listen(t){return this._onData.event(t)}};Ke.BrowserMessageReader=Dc;var Rc=class extends Bn.AbstractMessageWriter{constructor(t){super(),this.port=t,this.errorCount=0,t.addEventListener("error",n=>this.fireError(n))}write(t){try{return this.port.postMessage(t),Promise.resolve()}catch(n){return this.handleError(n,t),Promise.reject(n)}}handleError(t,n){this.errorCount++,this.fireError(t,n,this.errorCount)}end(){}};Ke.BrowserMessageWriter=Rc;function k_(e,t,n,r){return n===void 0&&(n=Bn.NullLogger),Bn.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Bn.createMessageConnection)(e,t,n,r)}Ke.createMessageConnection=k_});var wc=S((AR,ef)=>{"use strict";ef.exports=ln()});var fo={};xs(fo,{AnnotatedTextEdit:()=>Dt,ChangeAnnotation:()=>pn,ChangeAnnotationIdentifier:()=>Oe,CodeAction:()=>cu,CodeActionContext:()=>au,CodeActionKind:()=>su,CodeActionTriggerKind:()=>Mr,CodeDescription:()=>Lc,CodeLens:()=>uu,Color:()=>oo,ColorInformation:()=>Oc,ColorPresentation:()=>qc,Command:()=>dn,CompletionItem:()=>Kc,CompletionItemKind:()=>Bc,CompletionItemLabelDetails:()=>Yc,CompletionItemTag:()=>zc,CompletionList:()=>Gc,CreateFile:()=>zn,DeleteFile:()=>Vn,Diagnostic:()=>qr,DiagnosticRelatedInformation:()=>so,DiagnosticSeverity:()=>jc,DiagnosticTag:()=>Mc,DocumentHighlight:()=>eu,DocumentHighlightKind:()=>Zc,DocumentLink:()=>pu,DocumentSymbol:()=>ou,DocumentUri:()=>Tc,EOL:()=>A_,FoldingRange:()=>Ec,FoldingRangeKind:()=>Nc,FormattingOptions:()=>lu,Hover:()=>Qc,InlayHint:()=>xu,InlayHintKind:()=>lo,InlayHintLabelPart:()=>po,InlineCompletionContext:()=>Ru,InlineCompletionItem:()=>_u,InlineCompletionList:()=>Cu,InlineCompletionTriggerKind:()=>Su,InlineValueContext:()=>vu,InlineValueEvaluatableExpression:()=>bu,InlineValueText:()=>hu,InlineValueVariableLookup:()=>yu,InsertReplaceEdit:()=>$c,InsertTextFormat:()=>Hc,InsertTextMode:()=>Vc,Location:()=>Or,LocationLink:()=>Ac,MarkedString:()=>jr,MarkupContent:()=>Yn,MarkupKind:()=>uo,OptionalVersionedTextDocumentIdentifier:()=>Er,ParameterInformation:()=>Jc,Position:()=>Xe,Range:()=>pe,RenameFile:()=>$n,SelectedCompletionInfo:()=>Du,SelectionRange:()=>du,SemanticTokenModifiers:()=>gu,SemanticTokenTypes:()=>fu,SemanticTokens:()=>mu,SignatureInformation:()=>Xc,StringValue:()=>Pu,SymbolInformation:()=>ru,SymbolKind:()=>tu,SymbolTag:()=>nu,TextDocument:()=>Tu,TextDocumentEdit:()=>Nr,TextDocumentIdentifier:()=>Ic,TextDocumentItem:()=>Wc,TextEdit:()=>mt,URI:()=>io,VersionedTextDocumentIdentifier:()=>Uc,WorkspaceChange:()=>Fc,WorkspaceEdit:()=>ao,WorkspaceFolder:()=>wu,WorkspaceSymbol:()=>iu,integer:()=>kc,uinteger:()=>Ar});var Tc,io,kc,Ar,Xe,pe,Or,Ac,oo,Oc,qc,Nc,Ec,so,jc,Mc,Lc,qr,dn,mt,pn,Oe,Dt,Nr,zn,$n,Vn,ao,Hn,co,Fc,Ic,Uc,Er,Wc,uo,Yn,Bc,Hc,zc,$c,Vc,Yc,Kc,Gc,jr,Qc,Jc,Xc,Zc,eu,tu,nu,ru,iu,ou,su,Mr,au,cu,uu,lu,pu,du,fu,gu,mu,hu,yu,bu,vu,lo,po,xu,Pu,_u,Cu,Su,Du,Ru,wu,A_,Tu,ku,f,go=Dl(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})(Tc||(Tc={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(io||(io={}));(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(kc||(kc={}));(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Ar||(Ar={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Ar.MAX_VALUE),i===Number.MAX_VALUE&&(i=Ar.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.line)&&f.uinteger(i.character)}e.is=n})(Xe||(Xe={}));(function(e){function t(r,i,o,s){if(f.uinteger(r)&&f.uinteger(i)&&f.uinteger(o)&&f.uinteger(s))return{start:Xe.create(r,i),end:Xe.create(o,s)};if(Xe.is(r)&&Xe.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${o}, ${s}]`)}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&Xe.is(i.start)&&Xe.is(i.end)}e.is=n})(pe||(pe={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&(f.string(i.uri)||f.undefined(i.uri))}e.is=n})(Or||(Or={}));(function(e){function t(r,i,o,s){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.targetRange)&&f.string(i.targetUri)&&pe.is(i.targetSelectionRange)&&(pe.is(i.originSelectionRange)||f.undefined(i.originSelectionRange))}e.is=n})(Ac||(Ac={}));(function(e){function t(r,i,o,s){return{red:r,green:i,blue:o,alpha:s}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.numberRange(i.red,0,1)&&f.numberRange(i.green,0,1)&&f.numberRange(i.blue,0,1)&&f.numberRange(i.alpha,0,1)}e.is=n})(oo||(oo={}));(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&oo.is(i.color)}e.is=n})(Oc||(Oc={}));(function(e){function t(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.undefined(i.textEdit)||mt.is(i))&&(f.undefined(i.additionalTextEdits)||f.typedArray(i.additionalTextEdits,mt.is))}e.is=n})(qc||(qc={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Nc||(Nc={}));(function(e){function t(r,i,o,s,a,c){let l={startLine:r,endLine:i};return f.defined(o)&&(l.startCharacter=o),f.defined(s)&&(l.endCharacter=s),f.defined(a)&&(l.kind=a),f.defined(c)&&(l.collapsedText=c),l}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.startLine)&&f.uinteger(i.startLine)&&(f.undefined(i.startCharacter)||f.uinteger(i.startCharacter))&&(f.undefined(i.endCharacter)||f.uinteger(i.endCharacter))&&(f.undefined(i.kind)||f.string(i.kind))}e.is=n})(Ec||(Ec={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Or.is(i.location)&&f.string(i.message)}e.is=n})(so||(so={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(jc||(jc={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(Mc||(Mc={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(Lc||(Lc={}));(function(e){function t(r,i,o,s,a,c){let l={range:r,message:i};return f.defined(o)&&(l.severity=o),f.defined(s)&&(l.code=s),f.defined(a)&&(l.source=a),f.defined(c)&&(l.relatedInformation=c),l}e.create=t;function n(r){var i;let o=r;return f.defined(o)&&pe.is(o.range)&&f.string(o.message)&&(f.number(o.severity)||f.undefined(o.severity))&&(f.integer(o.code)||f.string(o.code)||f.undefined(o.code))&&(f.undefined(o.codeDescription)||f.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(f.string(o.source)||f.undefined(o.source))&&(f.undefined(o.relatedInformation)||f.typedArray(o.relatedInformation,so.is))}e.is=n})(qr||(qr={}));(function(e){function t(r,i,...o){let s={title:r,command:i};return f.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.title)&&f.string(i.command)}e.is=n})(dn||(dn={}));(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function n(o,s){return{range:{start:o,end:o},newText:s}}e.insert=n;function r(o){return{range:o,newText:""}}e.del=r;function i(o){let s=o;return f.objectLiteral(s)&&f.string(s.newText)&&pe.is(s.range)}e.is=i})(mt||(mt={}));(function(e){function t(r,i,o){let s={label:r};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(f.string(i.description)||i.description===void 0)}e.is=n})(pn||(pn={}));(function(e){function t(n){let r=n;return f.string(r)}e.is=t})(Oe||(Oe={}));(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function n(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=n;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function i(o){let s=o;return mt.is(s)&&(pn.is(s.annotationId)||Oe.is(s.annotationId))}e.is=i})(Dt||(Dt={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Er.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Nr||(Nr={}));(function(e){function t(r,i,o){let s={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&f.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||f.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||f.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})(zn||(zn={}));(function(e){function t(r,i,o,s){let a={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&f.string(i.oldUri)&&f.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||f.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||f.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})($n||($n={}));(function(e){function t(r,i,o){let s={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&f.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||f.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||f.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})(Vn||(Vn={}));(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>f.string(i.kind)?zn.is(i)||$n.is(i)||Vn.is(i):Nr.is(i)))}e.is=t})(ao||(ao={}));Hn=class{constructor(t,n){this.edits=t,this.changeAnnotations=n}insert(t,n,r){let i,o;if(r===void 0?i=mt.insert(t,n):Oe.is(r)?(o=r,i=Dt.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Dt.insert(t,n,o)),this.edits.push(i),o!==void 0)return o}replace(t,n,r){let i,o;if(r===void 0?i=mt.replace(t,n):Oe.is(r)?(o=r,i=Dt.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Dt.replace(t,n,o)),this.edits.push(i),o!==void 0)return o}delete(t,n){let r,i;if(n===void 0?r=mt.del(t):Oe.is(n)?(i=n,r=Dt.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Dt.del(t,i)),this.edits.push(r),i!==void 0)return i}add(t){this.edits.push(t)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},co=class{constructor(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(t,n){let r;if(Oe.is(t)?r=t:(r=this.nextId(),n=t),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()}},Fc=class{constructor(t){this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new co(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(n=>{if(Nr.is(n)){let r=new Hn(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new Hn(t.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(t){if(Er.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n={uri:t.uri,version:t.version},r=this._textEditChanges[n.uri];if(!r){let i=[],o={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(o),r=new Hn(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[t];if(!n){let r=[];this._workspaceEdit.changes[t]=r,n=new Hn(r),this._textEditChanges[t]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new co,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(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;pn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=zn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=zn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}renameFile(t,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let o;pn.is(r)||Oe.is(r)?o=r:i=r;let s,a;if(o===void 0?s=$n.create(t,n,i):(a=Oe.is(o)?o:this._changeAnnotations.manage(o),s=$n.create(t,n,i,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a}deleteFile(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;pn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Vn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=Vn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}};(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)}e.is=n})(Ic||(Ic={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&f.integer(i.version)}e.is=n})(Uc||(Uc={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&(i.version===null||f.integer(i.version))}e.is=n})(Er||(Er={}));(function(e){function t(r,i,o,s){return{uri:r,languageId:i,version:o,text:s}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&f.string(i.languageId)&&f.integer(i.version)&&f.string(i.text)}e.is=n})(Wc||(Wc={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(uo||(uo={}));(function(e){function t(n){let r=n;return f.objectLiteral(n)&&uo.is(r.kind)&&f.string(r.value)}e.is=t})(Yn||(Yn={}));(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Bc||(Bc={}));(function(e){e.PlainText=1,e.Snippet=2})(Hc||(Hc={}));(function(e){e.Deprecated=1})(zc||(zc={}));(function(e){function t(r,i,o){return{newText:r,insert:i,replace:o}}e.create=t;function n(r){let i=r;return i&&f.string(i.newText)&&pe.is(i.insert)&&pe.is(i.replace)}e.is=n})($c||($c={}));(function(e){e.asIs=1,e.adjustIndentation=2})(Vc||(Vc={}));(function(e){function t(n){let r=n;return r&&(f.string(r.detail)||r.detail===void 0)&&(f.string(r.description)||r.description===void 0)}e.is=t})(Yc||(Yc={}));(function(e){function t(n){return{label:n}}e.create=t})(Kc||(Kc={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(Gc||(Gc={}));(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){let i=r;return f.string(i)||f.objectLiteral(i)&&f.string(i.language)&&f.string(i.value)}e.is=n})(jr||(jr={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(Yn.is(r.contents)||jr.is(r.contents)||f.typedArray(r.contents,jr.is))&&(n.range===void 0||pe.is(n.range))}e.is=t})(Qc||(Qc={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Jc||(Jc={}));(function(e){function t(n,r,...i){let o={label:n};return f.defined(r)&&(o.documentation=r),f.defined(i)?o.parameters=i:o.parameters=[],o}e.create=t})(Xc||(Xc={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(Zc||(Zc={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(eu||(eu={}));(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(tu||(tu={}));(function(e){e.Deprecated=1})(nu||(nu={}));(function(e){function t(n,r,i,o,s){let a={name:n,kind:r,location:{uri:o,range:i}};return s&&(a.containerName=s),a}e.create=t})(ru||(ru={}));(function(e){function t(n,r,i,o){return o!==void 0?{name:n,kind:r,location:{uri:i,range:o}}:{name:n,kind:r,location:{uri:i}}}e.create=t})(iu||(iu={}));(function(e){function t(r,i,o,s,a,c){let l={name:r,detail:i,kind:o,range:s,selectionRange:a};return c!==void 0&&(l.children=c),l}e.create=t;function n(r){let i=r;return i&&f.string(i.name)&&f.number(i.kind)&&pe.is(i.range)&&pe.is(i.selectionRange)&&(i.detail===void 0||f.string(i.detail))&&(i.deprecated===void 0||f.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(ou||(ou={}));(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(su||(su={}));(function(e){e.Invoked=1,e.Automatic=2})(Mr||(Mr={}));(function(e){function t(r,i,o){let s={diagnostics:r};return i!=null&&(s.only=i),o!=null&&(s.triggerKind=o),s}e.create=t;function n(r){let i=r;return f.defined(i)&&f.typedArray(i.diagnostics,qr.is)&&(i.only===void 0||f.typedArray(i.only,f.string))&&(i.triggerKind===void 0||i.triggerKind===Mr.Invoked||i.triggerKind===Mr.Automatic)}e.is=n})(au||(au={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):dn.is(i)?s.command=i:s.edit=i,a&&o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return i&&f.string(i.title)&&(i.diagnostics===void 0||f.typedArray(i.diagnostics,qr.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||dn.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||ao.is(i.edit))}e.is=n})(cu||(cu={}));(function(e){function t(r,i){let o={range:r};return f.defined(i)&&(o.data=i),o}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(i.range)&&(f.undefined(i.command)||dn.is(i.command))}e.is=n})(uu||(uu={}));(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.uinteger(i.tabSize)&&f.boolean(i.insertSpaces)}e.is=n})(lu||(lu={}));(function(e){function t(r,i,o){return{range:r,target:i,data:o}}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(i.range)&&(f.undefined(i.target)||f.string(i.target))}e.is=n})(pu||(pu={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(du||(du={}));(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(fu||(fu={}));(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(gu||(gu={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(mu||(mu={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&f.string(i.text)}e.is=n})(hu||(hu={}));(function(e){function t(r,i,o){return{range:r,variableName:i,caseSensitiveLookup:o}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&f.boolean(i.caseSensitiveLookup)&&(f.string(i.variableName)||i.variableName===void 0)}e.is=n})(yu||(yu={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&(f.string(i.expression)||i.expression===void 0)}e.is=n})(bu||(bu={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(r.stoppedLocation)}e.is=n})(vu||(vu={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(lo||(lo={}));(function(e){function t(r){return{value:r}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&(i.tooltip===void 0||f.string(i.tooltip)||Yn.is(i.tooltip))&&(i.location===void 0||Or.is(i.location))&&(i.command===void 0||dn.is(i.command))}e.is=n})(po||(po={}));(function(e){function t(r,i,o){let s={position:r,label:i};return o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&Xe.is(i.position)&&(f.string(i.label)||f.typedArray(i.label,po.is))&&(i.kind===void 0||lo.is(i.kind))&&i.textEdits===void 0||f.typedArray(i.textEdits,mt.is)&&(i.tooltip===void 0||f.string(i.tooltip)||Yn.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(xu||(xu={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(Pu||(Pu={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(_u||(_u={}));(function(e){function t(n){return{items:n}}e.create=t})(Cu||(Cu={}));(function(e){e.Invoked=0,e.Automatic=1})(Su||(Su={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(Du||(Du={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(Ru||(Ru={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&io.is(r.uri)&&f.string(r.name)}e.is=t})(wu||(wu={}));A_=[`
65
+ `)),_){let L=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";V.log(`Received response '${_.method} - (${p.id})' in ${Date.now()-_.timerStart}ms.${L}`,A)}else V.log(`Received response ${p.id} without active response promise.`,A)}else bn("receive-response",p)}function bn(p,_){if(!V||g===J.Off)return;let A={isLSPMessage:!0,type:p,message:_,timestamp:Date.now()};V.log(A)}function lr(){if(M())throw new Wn(Tr.Closed,"Connection is closed.");if(q())throw new Wn(Tr.Disposed,"Connection is disposed.")}function Dy(){if(N())throw new Wn(Tr.AlreadyListening,"Connection is already listening")}function Ry(){if(!N())throw new Error("Call listen() first.")}function pr(p){return p===void 0?null:p}function _l(p){if(p!==null)return p}function Cl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function vs(p,_){switch(p){case U.ParameterStructures.auto:return Cl(_)?_l(_):[pr(_)];case U.ParameterStructures.byName:if(!Cl(_))throw new Error("Received parameters by name but param is not an object literal.");return _l(_);case U.ParameterStructures.byPosition:return[pr(_)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function Sl(p,_){let A,L=p.numberOfParams;switch(L){case 0:A=void 0;break;case 1:A=vs(p.parameterStructures,_[0]);break;default:A=[];for(let ie=0;ie<_.length&&ie<L;ie++)A.push(pr(_[ie]));if(_.length<L)for(let ie=_.length;ie<L;ie++)A.push(null);break}return A}let vn={sendNotification:(p,..._)=>{lr();let A,L;if(ue.string(p)){A=p;let te=_[0],le=0,ge=U.ParameterStructures.auto;U.ParameterStructures.is(te)&&(le=1,ge=te);let G=_.length,ae=G-le;switch(ae){case 0:L=void 0;break;case 1:L=vs(ge,_[le]);break;default:if(ge===U.ParameterStructures.byName)throw new Error(`Received ${ae} parameters for 'by Name' notification parameter structure.`);L=_.slice(le,G).map(Z=>pr(Z));break}}else{let te=_;A=p.method,L=Sl(p,te)}let ie={jsonrpc:c,method:A,params:L};return _y(ie),t.write(ie).catch(te=>{throw i.error("Sending notification failed."),te})},onNotification:(p,_)=>{lr();let A;return ue.func(p)?h=p:_&&(ue.string(p)?(A=p,v.set(p,{type:void 0,handler:_})):(A=p.method,v.set(p.method,{type:p,handler:_}))),{dispose:()=>{A!==void 0?v.delete(A):h=void 0}}},onProgress:(p,_,A)=>{if(y.has(_))throw new Error(`Progress handler for token ${_} already registered`);return y.set(_,A),{dispose:()=>{y.delete(_)}}},sendProgress:(p,_,A)=>vn.sendNotification(wr.type,{token:_,value:A}),onUnhandledProgress:yn.event,sendRequest:(p,..._)=>{lr(),Ry();let A,L,ie;if(ue.string(p)){A=p;let G=_[0],ae=_[_.length-1],Z=0,xe=U.ParameterStructures.auto;U.ParameterStructures.is(G)&&(Z=1,xe=G);let Me=_.length;pc.CancellationToken.is(ae)&&(Me=Me-1,ie=ae);let lt=Me-Z;switch(lt){case 0:L=void 0;break;case 1:L=vs(xe,_[Z]);break;default:if(xe===U.ParameterStructures.byName)throw new Error(`Received ${lt} parameters for 'by Name' request parameter structure.`);L=_.slice(Z,Me).map(wy=>pr(wy));break}}else{let G=_;A=p.method,L=Sl(p,G);let ae=p.numberOfParams;ie=pc.CancellationToken.is(G[ae])?G[ae]:void 0}let te=o++,le;ie&&(le=ie.onCancellationRequested(()=>{let G=b.sender.sendCancellation(vn,te);return G===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${te}`),Promise.resolve()):G.catch(()=>{i.log(`Sending cancellation messages for id ${te} failed`)})}));let ge={jsonrpc:c,id:te,method:A,params:L};return Py(ge),typeof b.sender.enableCancellation=="function"&&b.sender.enableCancellation(ge),new Promise(async(G,ae)=>{let Z=lt=>{G(lt),b.sender.cleanup(te),le?.dispose()},xe=lt=>{ae(lt),b.sender.cleanup(te),le?.dispose()},Me={method:A,timerStart:Date.now(),resolve:Z,reject:xe};try{await t.write(ge),$.set(te,Me)}catch(lt){throw i.error("Sending request failed."),Me.reject(new U.ResponseError(U.ErrorCodes.MessageWriteError,lt.message?lt.message:"Unknown reason")),lt}})},onRequest:(p,_)=>{lr();let A=null;return gc.is(p)?(A=void 0,l=p):ue.string(p)?(A=null,_!==void 0&&(A=p,d.set(p,{handler:_,type:void 0}))):_!==void 0&&(A=p.method,d.set(p.method,{type:p,handler:_})),{dispose:()=>{A!==null&&(A!==void 0?d.delete(A):l=void 0)}}},hasPendingResponse:()=>$.size>0,trace:async(p,_,A)=>{let L=!1,ie=Ye.Text;A!==void 0&&(ue.boolean(A)?L=A:(L=A.sendNotification||!1,ie=A.traceFormat||Ye.Text)),g=p,T=ie,g===J.Off?V=void 0:V=_,L&&!M()&&!q()&&await vn.sendNotification(mc.type,{value:J.toString(p)})},onError:it.event,onClose:Tt.event,onUnhandledNotification:Zt.event,onDispose:k.event,end:()=>{t.end()},dispose:()=>{if(q())return;X=at.Disposed,k.fire(void 0);let p=new U.ResponseError(U.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let _ of $.values())_.reject(p);$=new Map,m=new Map,Y=new Set,F=new $d.LinkedMap,ue.func(t.dispose)&&t.dispose(),ue.func(e.dispose)&&e.dispose()},listen:()=>{lr(),Dy(),X=at.Listening,e.listen(hy)},inspect:()=>{(0,zd.default)().console.log("inspect")}};return vn.onNotification(Qi.type,p=>{if(g===J.Off||!V)return;let _=g===J.Verbose||g===J.Compact;V.log(p.message,_?p.verbose:void 0)}),vn.onNotification(wr.type,p=>{let _=y.get(p.token);_?_(p.value):yn.fire(p)}),vn}H.createMessageConnection=P_});var no=S(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.ProgressType=x.ProgressToken=x.createMessageConnection=x.NullLogger=x.ConnectionOptions=x.ConnectionStrategy=x.AbstractMessageBuffer=x.WriteableStreamMessageWriter=x.AbstractMessageWriter=x.MessageWriter=x.ReadableStreamMessageReader=x.AbstractMessageReader=x.MessageReader=x.SharedArrayReceiverStrategy=x.SharedArraySenderStrategy=x.CancellationToken=x.CancellationTokenSource=x.Emitter=x.Event=x.Disposable=x.LRUCache=x.Touch=x.LinkedMap=x.ParameterStructures=x.NotificationType9=x.NotificationType8=x.NotificationType7=x.NotificationType6=x.NotificationType5=x.NotificationType4=x.NotificationType3=x.NotificationType2=x.NotificationType1=x.NotificationType0=x.NotificationType=x.ErrorCodes=x.ResponseError=x.RequestType9=x.RequestType8=x.RequestType7=x.RequestType6=x.RequestType5=x.RequestType4=x.RequestType3=x.RequestType2=x.RequestType1=x.RequestType0=x.RequestType=x.Message=x.RAL=void 0;x.MessageStrategy=x.CancellationStrategy=x.CancellationSenderStrategy=x.CancellationReceiverStrategy=x.ConnectionError=x.ConnectionErrors=x.LogTraceNotification=x.SetTraceNotification=x.TraceFormat=x.TraceValues=x.Trace=void 0;var re=Ha();Object.defineProperty(x,"Message",{enumerable:!0,get:function(){return re.Message}});Object.defineProperty(x,"RequestType",{enumerable:!0,get:function(){return re.RequestType}});Object.defineProperty(x,"RequestType0",{enumerable:!0,get:function(){return re.RequestType0}});Object.defineProperty(x,"RequestType1",{enumerable:!0,get:function(){return re.RequestType1}});Object.defineProperty(x,"RequestType2",{enumerable:!0,get:function(){return re.RequestType2}});Object.defineProperty(x,"RequestType3",{enumerable:!0,get:function(){return re.RequestType3}});Object.defineProperty(x,"RequestType4",{enumerable:!0,get:function(){return re.RequestType4}});Object.defineProperty(x,"RequestType5",{enumerable:!0,get:function(){return re.RequestType5}});Object.defineProperty(x,"RequestType6",{enumerable:!0,get:function(){return re.RequestType6}});Object.defineProperty(x,"RequestType7",{enumerable:!0,get:function(){return re.RequestType7}});Object.defineProperty(x,"RequestType8",{enumerable:!0,get:function(){return re.RequestType8}});Object.defineProperty(x,"RequestType9",{enumerable:!0,get:function(){return re.RequestType9}});Object.defineProperty(x,"ResponseError",{enumerable:!0,get:function(){return re.ResponseError}});Object.defineProperty(x,"ErrorCodes",{enumerable:!0,get:function(){return re.ErrorCodes}});Object.defineProperty(x,"NotificationType",{enumerable:!0,get:function(){return re.NotificationType}});Object.defineProperty(x,"NotificationType0",{enumerable:!0,get:function(){return re.NotificationType0}});Object.defineProperty(x,"NotificationType1",{enumerable:!0,get:function(){return re.NotificationType1}});Object.defineProperty(x,"NotificationType2",{enumerable:!0,get:function(){return re.NotificationType2}});Object.defineProperty(x,"NotificationType3",{enumerable:!0,get:function(){return re.NotificationType3}});Object.defineProperty(x,"NotificationType4",{enumerable:!0,get:function(){return re.NotificationType4}});Object.defineProperty(x,"NotificationType5",{enumerable:!0,get:function(){return re.NotificationType5}});Object.defineProperty(x,"NotificationType6",{enumerable:!0,get:function(){return re.NotificationType6}});Object.defineProperty(x,"NotificationType7",{enumerable:!0,get:function(){return re.NotificationType7}});Object.defineProperty(x,"NotificationType8",{enumerable:!0,get:function(){return re.NotificationType8}});Object.defineProperty(x,"NotificationType9",{enumerable:!0,get:function(){return re.NotificationType9}});Object.defineProperty(x,"ParameterStructures",{enumerable:!0,get:function(){return re.ParameterStructures}});var bc=$a();Object.defineProperty(x,"LinkedMap",{enumerable:!0,get:function(){return bc.LinkedMap}});Object.defineProperty(x,"LRUCache",{enumerable:!0,get:function(){return bc.LRUCache}});Object.defineProperty(x,"Touch",{enumerable:!0,get:function(){return bc.Touch}});var __=Nd();Object.defineProperty(x,"Disposable",{enumerable:!0,get:function(){return __.Disposable}});var Gd=Ln();Object.defineProperty(x,"Event",{enumerable:!0,get:function(){return Gd.Event}});Object.defineProperty(x,"Emitter",{enumerable:!0,get:function(){return Gd.Emitter}});var Qd=$i();Object.defineProperty(x,"CancellationTokenSource",{enumerable:!0,get:function(){return Qd.CancellationTokenSource}});Object.defineProperty(x,"CancellationToken",{enumerable:!0,get:function(){return Qd.CancellationToken}});var Jd=jd();Object.defineProperty(x,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return Jd.SharedArraySenderStrategy}});Object.defineProperty(x,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return Jd.SharedArrayReceiverStrategy}});var vc=Ld();Object.defineProperty(x,"MessageReader",{enumerable:!0,get:function(){return vc.MessageReader}});Object.defineProperty(x,"AbstractMessageReader",{enumerable:!0,get:function(){return vc.AbstractMessageReader}});Object.defineProperty(x,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return vc.ReadableStreamMessageReader}});var xc=Bd();Object.defineProperty(x,"MessageWriter",{enumerable:!0,get:function(){return xc.MessageWriter}});Object.defineProperty(x,"AbstractMessageWriter",{enumerable:!0,get:function(){return xc.AbstractMessageWriter}});Object.defineProperty(x,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return xc.WriteableStreamMessageWriter}});var C_=Hd();Object.defineProperty(x,"AbstractMessageBuffer",{enumerable:!0,get:function(){return C_.AbstractMessageBuffer}});var Ae=Kd();Object.defineProperty(x,"ConnectionStrategy",{enumerable:!0,get:function(){return Ae.ConnectionStrategy}});Object.defineProperty(x,"ConnectionOptions",{enumerable:!0,get:function(){return Ae.ConnectionOptions}});Object.defineProperty(x,"NullLogger",{enumerable:!0,get:function(){return Ae.NullLogger}});Object.defineProperty(x,"createMessageConnection",{enumerable:!0,get:function(){return Ae.createMessageConnection}});Object.defineProperty(x,"ProgressToken",{enumerable:!0,get:function(){return Ae.ProgressToken}});Object.defineProperty(x,"ProgressType",{enumerable:!0,get:function(){return Ae.ProgressType}});Object.defineProperty(x,"Trace",{enumerable:!0,get:function(){return Ae.Trace}});Object.defineProperty(x,"TraceValues",{enumerable:!0,get:function(){return Ae.TraceValues}});Object.defineProperty(x,"TraceFormat",{enumerable:!0,get:function(){return Ae.TraceFormat}});Object.defineProperty(x,"SetTraceNotification",{enumerable:!0,get:function(){return Ae.SetTraceNotification}});Object.defineProperty(x,"LogTraceNotification",{enumerable:!0,get:function(){return Ae.LogTraceNotification}});Object.defineProperty(x,"ConnectionErrors",{enumerable:!0,get:function(){return Ae.ConnectionErrors}});Object.defineProperty(x,"ConnectionError",{enumerable:!0,get:function(){return Ae.ConnectionError}});Object.defineProperty(x,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Ae.CancellationReceiverStrategy}});Object.defineProperty(x,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Ae.CancellationSenderStrategy}});Object.defineProperty(x,"CancellationStrategy",{enumerable:!0,get:function(){return Ae.CancellationStrategy}});Object.defineProperty(x,"MessageStrategy",{enumerable:!0,get:function(){return Ae.MessageStrategy}});var S_=Ft();x.RAL=S_.default});var Zd=S(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var gt=no(),ro=class e extends gt.AbstractMessageBuffer{constructor(t="utf-8"){super(t),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return e.emptyBuffer}fromString(t,n){return new TextEncoder().encode(t)}toString(t,n){return n==="ascii"?this.asciiDecoder.decode(t):new TextDecoder(n).decode(t)}asNative(t,n){return n===void 0?t:t.slice(0,n)}allocNative(t){return new Uint8Array(t)}};ro.emptyBuffer=new Uint8Array(0);var Pc=class{constructor(t){this.socket=t,this._onData=new gt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,gt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),gt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),gt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),gt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},_c=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),gt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),gt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),gt.Disposable.create(()=>this.socket.removeEventListener("end",t))}write(t,n){if(typeof t=="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(t)}else this.socket.send(t);return Promise.resolve()}end(){this.socket.close()}},D_=new TextEncoder,Xd=Object.freeze({messageBuffer:Object.freeze({create:e=>new ro(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{if(t.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(D_.encode(JSON.stringify(e,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{if(!(e instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))}})}),stream:Object.freeze({asReadableStream:e=>new Pc(e),asWritableStream:e=>new _c(e)}),console,timer:Object.freeze({setTimeout(e,t,...n){let r=setTimeout(e,t,...n);return{dispose:()=>clearTimeout(r)}},setImmediate(e,...t){let n=setTimeout(e,0,...t);return{dispose:()=>clearTimeout(n)}},setInterval(e,t,...n){let r=setInterval(e,t,...n);return{dispose:()=>clearInterval(r)}}})});function Cc(){return Xd}(function(e){function t(){gt.RAL.install(Xd)}e.install=t})(Cc||(Cc={}));Sc.default=Cc});var ln=S(Ke=>{"use strict";var R_=Ke&&Ke.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),w_=Ke&&Ke.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&R_(t,e,n)};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.createMessageConnection=Ke.BrowserMessageWriter=Ke.BrowserMessageReader=void 0;var T_=Zd();T_.default.install();var Bn=no();w_(no(),Ke);var Dc=class extends Bn.AbstractMessageReader{constructor(t){super(),this._onData=new Bn.Emitter,this._messageListener=n=>{this._onData.fire(n.data)},t.addEventListener("error",n=>this.fireError(n)),t.onmessage=this._messageListener}listen(t){return this._onData.event(t)}};Ke.BrowserMessageReader=Dc;var Rc=class extends Bn.AbstractMessageWriter{constructor(t){super(),this.port=t,this.errorCount=0,t.addEventListener("error",n=>this.fireError(n))}write(t){try{return this.port.postMessage(t),Promise.resolve()}catch(n){return this.handleError(n,t),Promise.reject(n)}}handleError(t,n){this.errorCount++,this.fireError(t,n,this.errorCount)}end(){}};Ke.BrowserMessageWriter=Rc;function k_(e,t,n,r){return n===void 0&&(n=Bn.NullLogger),Bn.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Bn.createMessageConnection)(e,t,n,r)}Ke.createMessageConnection=k_});var wc=S((AR,ef)=>{"use strict";ef.exports=ln()});var fo={};xs(fo,{AnnotatedTextEdit:()=>Dt,ChangeAnnotation:()=>pn,ChangeAnnotationIdentifier:()=>Oe,CodeAction:()=>cu,CodeActionContext:()=>au,CodeActionKind:()=>su,CodeActionTriggerKind:()=>Mr,CodeDescription:()=>Lc,CodeLens:()=>uu,Color:()=>oo,ColorInformation:()=>Oc,ColorPresentation:()=>qc,Command:()=>dn,CompletionItem:()=>Kc,CompletionItemKind:()=>Bc,CompletionItemLabelDetails:()=>Yc,CompletionItemTag:()=>zc,CompletionList:()=>Gc,CreateFile:()=>zn,DeleteFile:()=>Vn,Diagnostic:()=>qr,DiagnosticRelatedInformation:()=>so,DiagnosticSeverity:()=>jc,DiagnosticTag:()=>Mc,DocumentHighlight:()=>eu,DocumentHighlightKind:()=>Zc,DocumentLink:()=>pu,DocumentSymbol:()=>ou,DocumentUri:()=>Tc,EOL:()=>A_,FoldingRange:()=>Ec,FoldingRangeKind:()=>Nc,FormattingOptions:()=>lu,Hover:()=>Qc,InlayHint:()=>xu,InlayHintKind:()=>lo,InlayHintLabelPart:()=>po,InlineCompletionContext:()=>Ru,InlineCompletionItem:()=>_u,InlineCompletionList:()=>Cu,InlineCompletionTriggerKind:()=>Su,InlineValueContext:()=>vu,InlineValueEvaluatableExpression:()=>bu,InlineValueText:()=>hu,InlineValueVariableLookup:()=>yu,InsertReplaceEdit:()=>$c,InsertTextFormat:()=>Hc,InsertTextMode:()=>Vc,Location:()=>Or,LocationLink:()=>Ac,MarkedString:()=>jr,MarkupContent:()=>Yn,MarkupKind:()=>uo,OptionalVersionedTextDocumentIdentifier:()=>Er,ParameterInformation:()=>Jc,Position:()=>Xe,Range:()=>pe,RenameFile:()=>$n,SelectedCompletionInfo:()=>Du,SelectionRange:()=>du,SemanticTokenModifiers:()=>gu,SemanticTokenTypes:()=>fu,SemanticTokens:()=>mu,SignatureInformation:()=>Xc,StringValue:()=>Pu,SymbolInformation:()=>ru,SymbolKind:()=>tu,SymbolTag:()=>nu,TextDocument:()=>Tu,TextDocumentEdit:()=>Nr,TextDocumentIdentifier:()=>Ic,TextDocumentItem:()=>Wc,TextEdit:()=>mt,URI:()=>io,VersionedTextDocumentIdentifier:()=>Uc,WorkspaceChange:()=>Fc,WorkspaceEdit:()=>ao,WorkspaceFolder:()=>wu,WorkspaceSymbol:()=>iu,integer:()=>kc,uinteger:()=>Ar});var Tc,io,kc,Ar,Xe,pe,Or,Ac,oo,Oc,qc,Nc,Ec,so,jc,Mc,Lc,qr,dn,mt,pn,Oe,Dt,Nr,zn,$n,Vn,ao,Hn,co,Fc,Ic,Uc,Er,Wc,uo,Yn,Bc,Hc,zc,$c,Vc,Yc,Kc,Gc,jr,Qc,Jc,Xc,Zc,eu,tu,nu,ru,iu,ou,su,Mr,au,cu,uu,lu,pu,du,fu,gu,mu,hu,yu,bu,vu,lo,po,xu,Pu,_u,Cu,Su,Du,Ru,wu,A_,Tu,ku,f,go=Dl(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})(Tc||(Tc={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(io||(io={}));(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(kc||(kc={}));(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Ar||(Ar={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Ar.MAX_VALUE),i===Number.MAX_VALUE&&(i=Ar.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.line)&&f.uinteger(i.character)}e.is=n})(Xe||(Xe={}));(function(e){function t(r,i,o,s){if(f.uinteger(r)&&f.uinteger(i)&&f.uinteger(o)&&f.uinteger(s))return{start:Xe.create(r,i),end:Xe.create(o,s)};if(Xe.is(r)&&Xe.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${o}, ${s}]`)}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&Xe.is(i.start)&&Xe.is(i.end)}e.is=n})(pe||(pe={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&(f.string(i.uri)||f.undefined(i.uri))}e.is=n})(Or||(Or={}));(function(e){function t(r,i,o,s){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.targetRange)&&f.string(i.targetUri)&&pe.is(i.targetSelectionRange)&&(pe.is(i.originSelectionRange)||f.undefined(i.originSelectionRange))}e.is=n})(Ac||(Ac={}));(function(e){function t(r,i,o,s){return{red:r,green:i,blue:o,alpha:s}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.numberRange(i.red,0,1)&&f.numberRange(i.green,0,1)&&f.numberRange(i.blue,0,1)&&f.numberRange(i.alpha,0,1)}e.is=n})(oo||(oo={}));(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&oo.is(i.color)}e.is=n})(Oc||(Oc={}));(function(e){function t(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.undefined(i.textEdit)||mt.is(i))&&(f.undefined(i.additionalTextEdits)||f.typedArray(i.additionalTextEdits,mt.is))}e.is=n})(qc||(qc={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Nc||(Nc={}));(function(e){function t(r,i,o,s,a,c){let l={startLine:r,endLine:i};return f.defined(o)&&(l.startCharacter=o),f.defined(s)&&(l.endCharacter=s),f.defined(a)&&(l.kind=a),f.defined(c)&&(l.collapsedText=c),l}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.startLine)&&f.uinteger(i.startLine)&&(f.undefined(i.startCharacter)||f.uinteger(i.startCharacter))&&(f.undefined(i.endCharacter)||f.uinteger(i.endCharacter))&&(f.undefined(i.kind)||f.string(i.kind))}e.is=n})(Ec||(Ec={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Or.is(i.location)&&f.string(i.message)}e.is=n})(so||(so={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(jc||(jc={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(Mc||(Mc={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(Lc||(Lc={}));(function(e){function t(r,i,o,s,a,c){let l={range:r,message:i};return f.defined(o)&&(l.severity=o),f.defined(s)&&(l.code=s),f.defined(a)&&(l.source=a),f.defined(c)&&(l.relatedInformation=c),l}e.create=t;function n(r){var i;let o=r;return f.defined(o)&&pe.is(o.range)&&f.string(o.message)&&(f.number(o.severity)||f.undefined(o.severity))&&(f.integer(o.code)||f.string(o.code)||f.undefined(o.code))&&(f.undefined(o.codeDescription)||f.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(f.string(o.source)||f.undefined(o.source))&&(f.undefined(o.relatedInformation)||f.typedArray(o.relatedInformation,so.is))}e.is=n})(qr||(qr={}));(function(e){function t(r,i,...o){let s={title:r,command:i};return f.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.title)&&f.string(i.command)}e.is=n})(dn||(dn={}));(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function n(o,s){return{range:{start:o,end:o},newText:s}}e.insert=n;function r(o){return{range:o,newText:""}}e.del=r;function i(o){let s=o;return f.objectLiteral(s)&&f.string(s.newText)&&pe.is(s.range)}e.is=i})(mt||(mt={}));(function(e){function t(r,i,o){let s={label:r};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(f.string(i.description)||i.description===void 0)}e.is=n})(pn||(pn={}));(function(e){function t(n){let r=n;return f.string(r)}e.is=t})(Oe||(Oe={}));(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function n(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=n;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function i(o){let s=o;return mt.is(s)&&(pn.is(s.annotationId)||Oe.is(s.annotationId))}e.is=i})(Dt||(Dt={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Er.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Nr||(Nr={}));(function(e){function t(r,i,o){let s={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&f.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||f.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||f.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})(zn||(zn={}));(function(e){function t(r,i,o,s){let a={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&f.string(i.oldUri)&&f.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||f.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||f.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})($n||($n={}));(function(e){function t(r,i,o){let s={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&f.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||f.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||f.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})(Vn||(Vn={}));(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>f.string(i.kind)?zn.is(i)||$n.is(i)||Vn.is(i):Nr.is(i)))}e.is=t})(ao||(ao={}));Hn=class{constructor(t,n){this.edits=t,this.changeAnnotations=n}insert(t,n,r){let i,o;if(r===void 0?i=mt.insert(t,n):Oe.is(r)?(o=r,i=Dt.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Dt.insert(t,n,o)),this.edits.push(i),o!==void 0)return o}replace(t,n,r){let i,o;if(r===void 0?i=mt.replace(t,n):Oe.is(r)?(o=r,i=Dt.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Dt.replace(t,n,o)),this.edits.push(i),o!==void 0)return o}delete(t,n){let r,i;if(n===void 0?r=mt.del(t):Oe.is(n)?(i=n,r=Dt.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Dt.del(t,i)),this.edits.push(r),i!==void 0)return i}add(t){this.edits.push(t)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},co=class{constructor(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(t,n){let r;if(Oe.is(t)?r=t:(r=this.nextId(),n=t),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()}},Fc=class{constructor(t){this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new co(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(n=>{if(Nr.is(n)){let r=new Hn(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new Hn(t.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(t){if(Er.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n={uri:t.uri,version:t.version},r=this._textEditChanges[n.uri];if(!r){let i=[],o={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(o),r=new Hn(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[t];if(!n){let r=[];this._workspaceEdit.changes[t]=r,n=new Hn(r),this._textEditChanges[t]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new co,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(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;pn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=zn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=zn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}renameFile(t,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let o;pn.is(r)||Oe.is(r)?o=r:i=r;let s,a;if(o===void 0?s=$n.create(t,n,i):(a=Oe.is(o)?o:this._changeAnnotations.manage(o),s=$n.create(t,n,i,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a}deleteFile(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;pn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Vn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=Vn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}};(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)}e.is=n})(Ic||(Ic={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&f.integer(i.version)}e.is=n})(Uc||(Uc={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&(i.version===null||f.integer(i.version))}e.is=n})(Er||(Er={}));(function(e){function t(r,i,o,s){return{uri:r,languageId:i,version:o,text:s}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&f.string(i.languageId)&&f.integer(i.version)&&f.string(i.text)}e.is=n})(Wc||(Wc={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(uo||(uo={}));(function(e){function t(n){let r=n;return f.objectLiteral(n)&&uo.is(r.kind)&&f.string(r.value)}e.is=t})(Yn||(Yn={}));(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Bc||(Bc={}));(function(e){e.PlainText=1,e.Snippet=2})(Hc||(Hc={}));(function(e){e.Deprecated=1})(zc||(zc={}));(function(e){function t(r,i,o){return{newText:r,insert:i,replace:o}}e.create=t;function n(r){let i=r;return i&&f.string(i.newText)&&pe.is(i.insert)&&pe.is(i.replace)}e.is=n})($c||($c={}));(function(e){e.asIs=1,e.adjustIndentation=2})(Vc||(Vc={}));(function(e){function t(n){let r=n;return r&&(f.string(r.detail)||r.detail===void 0)&&(f.string(r.description)||r.description===void 0)}e.is=t})(Yc||(Yc={}));(function(e){function t(n){return{label:n}}e.create=t})(Kc||(Kc={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(Gc||(Gc={}));(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){let i=r;return f.string(i)||f.objectLiteral(i)&&f.string(i.language)&&f.string(i.value)}e.is=n})(jr||(jr={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(Yn.is(r.contents)||jr.is(r.contents)||f.typedArray(r.contents,jr.is))&&(n.range===void 0||pe.is(n.range))}e.is=t})(Qc||(Qc={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Jc||(Jc={}));(function(e){function t(n,r,...i){let o={label:n};return f.defined(r)&&(o.documentation=r),f.defined(i)?o.parameters=i:o.parameters=[],o}e.create=t})(Xc||(Xc={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(Zc||(Zc={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(eu||(eu={}));(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(tu||(tu={}));(function(e){e.Deprecated=1})(nu||(nu={}));(function(e){function t(n,r,i,o,s){let a={name:n,kind:r,location:{uri:o,range:i}};return s&&(a.containerName=s),a}e.create=t})(ru||(ru={}));(function(e){function t(n,r,i,o){return o!==void 0?{name:n,kind:r,location:{uri:i,range:o}}:{name:n,kind:r,location:{uri:i}}}e.create=t})(iu||(iu={}));(function(e){function t(r,i,o,s,a,c){let l={name:r,detail:i,kind:o,range:s,selectionRange:a};return c!==void 0&&(l.children=c),l}e.create=t;function n(r){let i=r;return i&&f.string(i.name)&&f.number(i.kind)&&pe.is(i.range)&&pe.is(i.selectionRange)&&(i.detail===void 0||f.string(i.detail))&&(i.deprecated===void 0||f.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(ou||(ou={}));(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(su||(su={}));(function(e){e.Invoked=1,e.Automatic=2})(Mr||(Mr={}));(function(e){function t(r,i,o){let s={diagnostics:r};return i!=null&&(s.only=i),o!=null&&(s.triggerKind=o),s}e.create=t;function n(r){let i=r;return f.defined(i)&&f.typedArray(i.diagnostics,qr.is)&&(i.only===void 0||f.typedArray(i.only,f.string))&&(i.triggerKind===void 0||i.triggerKind===Mr.Invoked||i.triggerKind===Mr.Automatic)}e.is=n})(au||(au={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):dn.is(i)?s.command=i:s.edit=i,a&&o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return i&&f.string(i.title)&&(i.diagnostics===void 0||f.typedArray(i.diagnostics,qr.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||dn.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||ao.is(i.edit))}e.is=n})(cu||(cu={}));(function(e){function t(r,i){let o={range:r};return f.defined(i)&&(o.data=i),o}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(i.range)&&(f.undefined(i.command)||dn.is(i.command))}e.is=n})(uu||(uu={}));(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.uinteger(i.tabSize)&&f.boolean(i.insertSpaces)}e.is=n})(lu||(lu={}));(function(e){function t(r,i,o){return{range:r,target:i,data:o}}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(i.range)&&(f.undefined(i.target)||f.string(i.target))}e.is=n})(pu||(pu={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(du||(du={}));(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(fu||(fu={}));(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(gu||(gu={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(mu||(mu={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&f.string(i.text)}e.is=n})(hu||(hu={}));(function(e){function t(r,i,o){return{range:r,variableName:i,caseSensitiveLookup:o}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&f.boolean(i.caseSensitiveLookup)&&(f.string(i.variableName)||i.variableName===void 0)}e.is=n})(yu||(yu={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&(f.string(i.expression)||i.expression===void 0)}e.is=n})(bu||(bu={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(r.stoppedLocation)}e.is=n})(vu||(vu={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(lo||(lo={}));(function(e){function t(r){return{value:r}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&(i.tooltip===void 0||f.string(i.tooltip)||Yn.is(i.tooltip))&&(i.location===void 0||Or.is(i.location))&&(i.command===void 0||dn.is(i.command))}e.is=n})(po||(po={}));(function(e){function t(r,i,o){let s={position:r,label:i};return o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&Xe.is(i.position)&&(f.string(i.label)||f.typedArray(i.label,po.is))&&(i.kind===void 0||lo.is(i.kind))&&i.textEdits===void 0||f.typedArray(i.textEdits,mt.is)&&(i.tooltip===void 0||f.string(i.tooltip)||Yn.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(xu||(xu={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(Pu||(Pu={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(_u||(_u={}));(function(e){function t(n){return{items:n}}e.create=t})(Cu||(Cu={}));(function(e){e.Invoked=0,e.Automatic=1})(Su||(Su={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(Du||(Du={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(Ru||(Ru={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&io.is(r.uri)&&f.string(r.name)}e.is=t})(wu||(wu={}));A_=[`
66
66
  `,`\r
67
67
  `,"\r"];(function(e){function t(o,s,a,c){return new ku(o,s,a,c)}e.create=t;function n(o){let s=o;return!!(f.defined(s)&&f.string(s.uri)&&(f.undefined(s.languageId)||f.string(s.languageId))&&f.uinteger(s.lineCount)&&f.func(s.getText)&&f.func(s.positionAt)&&f.func(s.offsetAt))}e.is=n;function r(o,s){let a=o.getText(),c=i(s,(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),l=a.length;for(let d=c.length-1;d>=0;d--){let h=c[d],v=o.offsetAt(h.range.start),y=o.offsetAt(h.range.end);if(y<=l)a=a.substring(0,v)+h.newText+a.substring(y,a.length);else throw new Error("Overlapping edit");l=v}return a}e.applyEdits=r;function i(o,s){if(o.length<=1)return o;let a=o.length/2|0,c=o.slice(0,a),l=o.slice(a);i(c,s),i(l,s);let d=0,h=0,v=0;for(;d<c.length&&h<l.length;)s(c[d],l[h])<=0?o[v++]=c[d++]:o[v++]=l[h++];for(;d<c.length;)o[v++]=c[d++];for(;h<l.length;)o[v++]=l[h++];return o}})(Tu||(Tu={}));ku=class{constructor(t,n,r,i){this._uri=t,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(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,r=!0;for(let i=0;i<n.length;i++){r&&(t.push(i),r=!1);let o=n.charAt(i);r=o==="\r"||o===`
68
68
  `,o==="\r"&&i+1<n.length&&n.charAt(i+1)===`
69
- `&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Xe.create(0,t);for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return Xe.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function a(y,R,F){return t.call(y)==="[object Number]"&&R<=y&&y<=F}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function l(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=l;function d(y){return t.call(y)==="[object Function]"}e.func=d;function h(y){return y!==null&&typeof y=="object"}e.objectLiteral=h;function v(y,R){return Array.isArray(y)&&y.every(R)}e.typedArray=v})(f||(f={}))});var se=S(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.ProtocolNotificationType=He.ProtocolNotificationType0=He.ProtocolRequestType=He.ProtocolRequestType0=He.RegistrationType=He.MessageDirection=void 0;var Kn=ln(),tf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(tf||(He.MessageDirection=tf={}));var Au=class{constructor(t){this.method=t}};He.RegistrationType=Au;var Ou=class extends Kn.RequestType0{constructor(t){super(t)}};He.ProtocolRequestType0=Ou;var qu=class extends Kn.RequestType{constructor(t){super(t,Kn.ParameterStructures.byName)}};He.ProtocolRequestType=qu;var Nu=class extends Kn.NotificationType0{constructor(t){super(t)}};He.ProtocolNotificationType0=Nu;var Eu=class extends Kn.NotificationType{constructor(t){super(t,Kn.ParameterStructures.byName)}};He.ProtocolNotificationType=Eu});var mo=S(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.objectLiteral=be.typedArray=be.stringArray=be.array=be.func=be.error=be.number=be.string=be.boolean=void 0;function O_(e){return e===!0||e===!1}be.boolean=O_;function nf(e){return typeof e=="string"||e instanceof String}be.string=nf;function q_(e){return typeof e=="number"||e instanceof Number}be.number=q_;function N_(e){return e instanceof Error}be.error=N_;function E_(e){return typeof e=="function"}be.func=E_;function rf(e){return Array.isArray(e)}be.array=rf;function j_(e){return rf(e)&&e.every(t=>nf(t))}be.stringArray=j_;function M_(e,t){return Array.isArray(e)&&e.every(t)}be.typedArray=M_;function L_(e){return e!==null&&typeof e=="object"}be.objectLiteral=L_});var af=S(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.ImplementationRequest=void 0;var of=se(),sf;(function(e){e.method="textDocument/implementation",e.messageDirection=of.MessageDirection.clientToServer,e.type=new of.ProtocolRequestType(e.method)})(sf||(ho.ImplementationRequest=sf={}))});var lf=S(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.TypeDefinitionRequest=void 0;var cf=se(),uf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=cf.MessageDirection.clientToServer,e.type=new cf.ProtocolRequestType(e.method)})(uf||(yo.TypeDefinitionRequest=uf={}))});var ff=S(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.DidChangeWorkspaceFoldersNotification=Gn.WorkspaceFoldersRequest=void 0;var bo=se(),pf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=bo.MessageDirection.serverToClient,e.type=new bo.ProtocolRequestType0(e.method)})(pf||(Gn.WorkspaceFoldersRequest=pf={}));var df;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=bo.MessageDirection.clientToServer,e.type=new bo.ProtocolNotificationType(e.method)})(df||(Gn.DidChangeWorkspaceFoldersNotification=df={}))});var hf=S(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.ConfigurationRequest=void 0;var gf=se(),mf;(function(e){e.method="workspace/configuration",e.messageDirection=gf.MessageDirection.serverToClient,e.type=new gf.ProtocolRequestType(e.method)})(mf||(vo.ConfigurationRequest=mf={}))});var vf=S(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.ColorPresentationRequest=Qn.DocumentColorRequest=void 0;var xo=se(),yf;(function(e){e.method="textDocument/documentColor",e.messageDirection=xo.MessageDirection.clientToServer,e.type=new xo.ProtocolRequestType(e.method)})(yf||(Qn.DocumentColorRequest=yf={}));var bf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=xo.MessageDirection.clientToServer,e.type=new xo.ProtocolRequestType(e.method)})(bf||(Qn.ColorPresentationRequest=bf={}))});var _f=S(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.FoldingRangeRefreshRequest=Jn.FoldingRangeRequest=void 0;var Po=se(),xf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=Po.MessageDirection.clientToServer,e.type=new Po.ProtocolRequestType(e.method)})(xf||(Jn.FoldingRangeRequest=xf={}));var Pf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=Po.MessageDirection.serverToClient,e.type=new Po.ProtocolRequestType0(e.method)})(Pf||(Jn.FoldingRangeRefreshRequest=Pf={}))});var Df=S(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.DeclarationRequest=void 0;var Cf=se(),Sf;(function(e){e.method="textDocument/declaration",e.messageDirection=Cf.MessageDirection.clientToServer,e.type=new Cf.ProtocolRequestType(e.method)})(Sf||(_o.DeclarationRequest=Sf={}))});var Tf=S(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.SelectionRangeRequest=void 0;var Rf=se(),wf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Rf.MessageDirection.clientToServer,e.type=new Rf.ProtocolRequestType(e.method)})(wf||(Co.SelectionRangeRequest=wf={}))});var qf=S(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.WorkDoneProgressCancelNotification=Wt.WorkDoneProgressCreateRequest=Wt.WorkDoneProgress=void 0;var F_=ln(),So=se(),kf;(function(e){e.type=new F_.ProgressType;function t(n){return n===e.type}e.is=t})(kf||(Wt.WorkDoneProgress=kf={}));var Af;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=So.MessageDirection.serverToClient,e.type=new So.ProtocolRequestType(e.method)})(Af||(Wt.WorkDoneProgressCreateRequest=Af={}));var Of;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=So.MessageDirection.clientToServer,e.type=new So.ProtocolNotificationType(e.method)})(Of||(Wt.WorkDoneProgressCancelNotification=Of={}))});var Mf=S(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.CallHierarchyOutgoingCallsRequest=Bt.CallHierarchyIncomingCallsRequest=Bt.CallHierarchyPrepareRequest=void 0;var Xn=se(),Nf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(Nf||(Bt.CallHierarchyPrepareRequest=Nf={}));var Ef;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(Ef||(Bt.CallHierarchyIncomingCallsRequest=Ef={}));var jf;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(jf||(Bt.CallHierarchyOutgoingCallsRequest=jf={}))});var Bf=S(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.SemanticTokensRefreshRequest=ze.SemanticTokensRangeRequest=ze.SemanticTokensDeltaRequest=ze.SemanticTokensRequest=ze.SemanticTokensRegistrationType=ze.TokenFormat=void 0;var Rt=se(),Lf;(function(e){e.Relative="relative"})(Lf||(ze.TokenFormat=Lf={}));var Lr;(function(e){e.method="textDocument/semanticTokens",e.type=new Rt.RegistrationType(e.method)})(Lr||(ze.SemanticTokensRegistrationType=Lr={}));var Ff;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=Rt.MessageDirection.clientToServer,e.type=new Rt.ProtocolRequestType(e.method),e.registrationMethod=Lr.method})(Ff||(ze.SemanticTokensRequest=Ff={}));var If;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=Rt.MessageDirection.clientToServer,e.type=new Rt.ProtocolRequestType(e.method),e.registrationMethod=Lr.method})(If||(ze.SemanticTokensDeltaRequest=If={}));var Uf;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=Rt.MessageDirection.clientToServer,e.type=new Rt.ProtocolRequestType(e.method),e.registrationMethod=Lr.method})(Uf||(ze.SemanticTokensRangeRequest=Uf={}));var Wf;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=Rt.MessageDirection.serverToClient,e.type=new Rt.ProtocolRequestType0(e.method)})(Wf||(ze.SemanticTokensRefreshRequest=Wf={}))});var $f=S(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.ShowDocumentRequest=void 0;var Hf=se(),zf;(function(e){e.method="window/showDocument",e.messageDirection=Hf.MessageDirection.serverToClient,e.type=new Hf.ProtocolRequestType(e.method)})(zf||(Do.ShowDocumentRequest=zf={}))});var Kf=S(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.LinkedEditingRangeRequest=void 0;var Vf=se(),Yf;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=Vf.MessageDirection.clientToServer,e.type=new Vf.ProtocolRequestType(e.method)})(Yf||(Ro.LinkedEditingRangeRequest=Yf={}))});var ng=S(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.WillDeleteFilesRequest=Ee.DidDeleteFilesNotification=Ee.DidRenameFilesNotification=Ee.WillRenameFilesRequest=Ee.DidCreateFilesNotification=Ee.WillCreateFilesRequest=Ee.FileOperationPatternKind=void 0;var Ze=se(),Gf;(function(e){e.file="file",e.folder="folder"})(Gf||(Ee.FileOperationPatternKind=Gf={}));var Qf;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(Qf||(Ee.WillCreateFilesRequest=Qf={}));var Jf;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Jf||(Ee.DidCreateFilesNotification=Jf={}));var Xf;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(Xf||(Ee.WillRenameFilesRequest=Xf={}));var Zf;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Zf||(Ee.DidRenameFilesNotification=Zf={}));var eg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(eg||(Ee.DidDeleteFilesNotification=eg={}));var tg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(tg||(Ee.WillDeleteFilesRequest=tg={}))});var ag=S(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.MonikerRequest=Ht.MonikerKind=Ht.UniquenessLevel=void 0;var rg=se(),ig;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(ig||(Ht.UniquenessLevel=ig={}));var og;(function(e){e.$import="import",e.$export="export",e.local="local"})(og||(Ht.MonikerKind=og={}));var sg;(function(e){e.method="textDocument/moniker",e.messageDirection=rg.MessageDirection.clientToServer,e.type=new rg.ProtocolRequestType(e.method)})(sg||(Ht.MonikerRequest=sg={}))});var pg=S(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.TypeHierarchySubtypesRequest=zt.TypeHierarchySupertypesRequest=zt.TypeHierarchyPrepareRequest=void 0;var Zn=se(),cg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(cg||(zt.TypeHierarchyPrepareRequest=cg={}));var ug;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(ug||(zt.TypeHierarchySupertypesRequest=ug={}));var lg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(lg||(zt.TypeHierarchySubtypesRequest=lg={}))});var gg=S(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.InlineValueRefreshRequest=er.InlineValueRequest=void 0;var wo=se(),dg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=wo.MessageDirection.clientToServer,e.type=new wo.ProtocolRequestType(e.method)})(dg||(er.InlineValueRequest=dg={}));var fg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=wo.MessageDirection.serverToClient,e.type=new wo.ProtocolRequestType0(e.method)})(fg||(er.InlineValueRefreshRequest=fg={}))});var bg=S($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.InlayHintRefreshRequest=$t.InlayHintResolveRequest=$t.InlayHintRequest=void 0;var tr=se(),mg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(mg||($t.InlayHintRequest=mg={}));var hg;(function(e){e.method="inlayHint/resolve",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(hg||($t.InlayHintResolveRequest=hg={}));var yg;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=tr.MessageDirection.serverToClient,e.type=new tr.ProtocolRequestType0(e.method)})(yg||($t.InlayHintRefreshRequest=yg={}))});var Dg=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DiagnosticRefreshRequest=et.WorkspaceDiagnosticRequest=et.DocumentDiagnosticRequest=et.DocumentDiagnosticReportKind=et.DiagnosticServerCancellationData=void 0;var Sg=ln(),I_=mo(),nr=se(),vg;(function(e){function t(n){let r=n;return r&&I_.boolean(r.retriggerRequest)}e.is=t})(vg||(et.DiagnosticServerCancellationData=vg={}));var xg;(function(e){e.Full="full",e.Unchanged="unchanged"})(xg||(et.DocumentDiagnosticReportKind=xg={}));var Pg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method),e.partialResult=new Sg.ProgressType})(Pg||(et.DocumentDiagnosticRequest=Pg={}));var _g;(function(e){e.method="workspace/diagnostic",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method),e.partialResult=new Sg.ProgressType})(_g||(et.WorkspaceDiagnosticRequest=_g={}));var Cg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=nr.MessageDirection.serverToClient,e.type=new nr.ProtocolRequestType0(e.method)})(Cg||(et.DiagnosticRefreshRequest=Cg={}))});var qg=S(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.DidCloseNotebookDocumentNotification=de.DidSaveNotebookDocumentNotification=de.DidChangeNotebookDocumentNotification=de.NotebookCellArrayChange=de.DidOpenNotebookDocumentNotification=de.NotebookDocumentSyncRegistrationType=de.NotebookDocument=de.NotebookCell=de.ExecutionSummary=de.NotebookCellKind=void 0;var Fr=(go(),Xr(fo)),ct=mo(),ht=se(),ju;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(ju||(de.NotebookCellKind=ju={}));var Mu;(function(e){function t(i,o){let s={executionOrder:i};return(o===!0||o===!1)&&(s.success=o),s}e.create=t;function n(i){let o=i;return ct.objectLiteral(o)&&Fr.uinteger.is(o.executionOrder)&&(o.success===void 0||ct.boolean(o.success))}e.is=n;function r(i,o){return i===o?!0:i==null||o===null||o===void 0?!1:i.executionOrder===o.executionOrder&&i.success===o.success}e.equals=r})(Mu||(de.ExecutionSummary=Mu={}));var To;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ct.objectLiteral(s)&&ju.is(s.kind)&&Fr.DocumentUri.is(s.document)&&(s.metadata===void 0||ct.objectLiteral(s.metadata))}e.is=n;function r(o,s){let a=new Set;return o.document!==s.document&&a.add("document"),o.kind!==s.kind&&a.add("kind"),o.executionSummary!==s.executionSummary&&a.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!i(o.metadata,s.metadata)&&a.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!Mu.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}e.diff=r;function i(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let a=Array.isArray(o),c=Array.isArray(s);if(a!==c)return!1;if(a&&c){if(o.length!==s.length)return!1;for(let l=0;l<o.length;l++)if(!i(o[l],s[l]))return!1}if(ct.objectLiteral(o)&&ct.objectLiteral(s)){let l=Object.keys(o),d=Object.keys(s);if(l.length!==d.length||(l.sort(),d.sort(),!i(l,d)))return!1;for(let h=0;h<l.length;h++){let v=l[h];if(!i(o[v],s[v]))return!1}}return!0}})(To||(de.NotebookCell=To={}));var Rg;(function(e){function t(r,i,o,s){return{uri:r,notebookType:i,version:o,cells:s}}e.create=t;function n(r){let i=r;return ct.objectLiteral(i)&&ct.string(i.uri)&&Fr.integer.is(i.version)&&ct.typedArray(i.cells,To.is)}e.is=n})(Rg||(de.NotebookDocument=Rg={}));var rr;(function(e){e.method="notebookDocument/sync",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.RegistrationType(e.method)})(rr||(de.NotebookDocumentSyncRegistrationType=rr={}));var wg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(wg||(de.DidOpenNotebookDocumentNotification=wg={}));var Tg;(function(e){function t(r){let i=r;return ct.objectLiteral(i)&&Fr.uinteger.is(i.start)&&Fr.uinteger.is(i.deleteCount)&&(i.cells===void 0||ct.typedArray(i.cells,To.is))}e.is=t;function n(r,i,o){let s={start:r,deleteCount:i};return o!==void 0&&(s.cells=o),s}e.create=n})(Tg||(de.NotebookCellArrayChange=Tg={}));var kg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(kg||(de.DidChangeNotebookDocumentNotification=kg={}));var Ag;(function(e){e.method="notebookDocument/didSave",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Ag||(de.DidSaveNotebookDocumentNotification=Ag={}));var Og;(function(e){e.method="notebookDocument/didClose",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Og||(de.DidCloseNotebookDocumentNotification=Og={}))});var jg=S(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.InlineCompletionRequest=void 0;var Ng=se(),Eg;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=Ng.MessageDirection.clientToServer,e.type=new Ng.ProtocolRequestType(e.method)})(Eg||(ko.InlineCompletionRequest=Eg={}))});var Km=S(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.WorkspaceSymbolRequest=u.CodeActionResolveRequest=u.CodeActionRequest=u.DocumentSymbolRequest=u.DocumentHighlightRequest=u.ReferencesRequest=u.DefinitionRequest=u.SignatureHelpRequest=u.SignatureHelpTriggerKind=u.HoverRequest=u.CompletionResolveRequest=u.CompletionRequest=u.CompletionTriggerKind=u.PublishDiagnosticsNotification=u.WatchKind=u.RelativePattern=u.FileChangeType=u.DidChangeWatchedFilesNotification=u.WillSaveTextDocumentWaitUntilRequest=u.WillSaveTextDocumentNotification=u.TextDocumentSaveReason=u.DidSaveTextDocumentNotification=u.DidCloseTextDocumentNotification=u.DidChangeTextDocumentNotification=u.TextDocumentContentChangeEvent=u.DidOpenTextDocumentNotification=u.TextDocumentSyncKind=u.TelemetryEventNotification=u.LogMessageNotification=u.ShowMessageRequest=u.ShowMessageNotification=u.MessageType=u.DidChangeConfigurationNotification=u.ExitNotification=u.ShutdownRequest=u.InitializedNotification=u.InitializeErrorCodes=u.InitializeRequest=u.WorkDoneProgressOptions=u.TextDocumentRegistrationOptions=u.StaticRegistrationOptions=u.PositionEncodingKind=u.FailureHandlingKind=u.ResourceOperationKind=u.UnregistrationRequest=u.RegistrationRequest=u.DocumentSelector=u.NotebookCellTextDocumentFilter=u.NotebookDocumentFilter=u.TextDocumentFilter=void 0;u.MonikerRequest=u.MonikerKind=u.UniquenessLevel=u.WillDeleteFilesRequest=u.DidDeleteFilesNotification=u.WillRenameFilesRequest=u.DidRenameFilesNotification=u.WillCreateFilesRequest=u.DidCreateFilesNotification=u.FileOperationPatternKind=u.LinkedEditingRangeRequest=u.ShowDocumentRequest=u.SemanticTokensRegistrationType=u.SemanticTokensRefreshRequest=u.SemanticTokensRangeRequest=u.SemanticTokensDeltaRequest=u.SemanticTokensRequest=u.TokenFormat=u.CallHierarchyPrepareRequest=u.CallHierarchyOutgoingCallsRequest=u.CallHierarchyIncomingCallsRequest=u.WorkDoneProgressCancelNotification=u.WorkDoneProgressCreateRequest=u.WorkDoneProgress=u.SelectionRangeRequest=u.DeclarationRequest=u.FoldingRangeRefreshRequest=u.FoldingRangeRequest=u.ColorPresentationRequest=u.DocumentColorRequest=u.ConfigurationRequest=u.DidChangeWorkspaceFoldersNotification=u.WorkspaceFoldersRequest=u.TypeDefinitionRequest=u.ImplementationRequest=u.ApplyWorkspaceEditRequest=u.ExecuteCommandRequest=u.PrepareRenameRequest=u.RenameRequest=u.PrepareSupportDefaultBehavior=u.DocumentOnTypeFormattingRequest=u.DocumentRangesFormattingRequest=u.DocumentRangeFormattingRequest=u.DocumentFormattingRequest=u.DocumentLinkResolveRequest=u.DocumentLinkRequest=u.CodeLensRefreshRequest=u.CodeLensResolveRequest=u.CodeLensRequest=u.WorkspaceSymbolResolveRequest=void 0;u.InlineCompletionRequest=u.DidCloseNotebookDocumentNotification=u.DidSaveNotebookDocumentNotification=u.DidChangeNotebookDocumentNotification=u.NotebookCellArrayChange=u.DidOpenNotebookDocumentNotification=u.NotebookDocumentSyncRegistrationType=u.NotebookDocument=u.NotebookCell=u.ExecutionSummary=u.NotebookCellKind=u.DiagnosticRefreshRequest=u.WorkspaceDiagnosticRequest=u.DocumentDiagnosticRequest=u.DocumentDiagnosticReportKind=u.DiagnosticServerCancellationData=u.InlayHintRefreshRequest=u.InlayHintResolveRequest=u.InlayHintRequest=u.InlineValueRefreshRequest=u.InlineValueRequest=u.TypeHierarchySupertypesRequest=u.TypeHierarchySubtypesRequest=u.TypeHierarchyPrepareRequest=void 0;var w=se(),Mg=(go(),Xr(fo)),we=mo(),U_=af();Object.defineProperty(u,"ImplementationRequest",{enumerable:!0,get:function(){return U_.ImplementationRequest}});var W_=lf();Object.defineProperty(u,"TypeDefinitionRequest",{enumerable:!0,get:function(){return W_.TypeDefinitionRequest}});var zm=ff();Object.defineProperty(u,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return zm.WorkspaceFoldersRequest}});Object.defineProperty(u,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return zm.DidChangeWorkspaceFoldersNotification}});var B_=hf();Object.defineProperty(u,"ConfigurationRequest",{enumerable:!0,get:function(){return B_.ConfigurationRequest}});var $m=vf();Object.defineProperty(u,"DocumentColorRequest",{enumerable:!0,get:function(){return $m.DocumentColorRequest}});Object.defineProperty(u,"ColorPresentationRequest",{enumerable:!0,get:function(){return $m.ColorPresentationRequest}});var Vm=_f();Object.defineProperty(u,"FoldingRangeRequest",{enumerable:!0,get:function(){return Vm.FoldingRangeRequest}});Object.defineProperty(u,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return Vm.FoldingRangeRefreshRequest}});var H_=Df();Object.defineProperty(u,"DeclarationRequest",{enumerable:!0,get:function(){return H_.DeclarationRequest}});var z_=Tf();Object.defineProperty(u,"SelectionRangeRequest",{enumerable:!0,get:function(){return z_.SelectionRangeRequest}});var Wu=qf();Object.defineProperty(u,"WorkDoneProgress",{enumerable:!0,get:function(){return Wu.WorkDoneProgress}});Object.defineProperty(u,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Wu.WorkDoneProgressCreateRequest}});Object.defineProperty(u,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Wu.WorkDoneProgressCancelNotification}});var Bu=Mf();Object.defineProperty(u,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Bu.CallHierarchyIncomingCallsRequest}});Object.defineProperty(u,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Bu.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(u,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Bu.CallHierarchyPrepareRequest}});var ir=Bf();Object.defineProperty(u,"TokenFormat",{enumerable:!0,get:function(){return ir.TokenFormat}});Object.defineProperty(u,"SemanticTokensRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRequest}});Object.defineProperty(u,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ir.SemanticTokensDeltaRequest}});Object.defineProperty(u,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRangeRequest}});Object.defineProperty(u,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRefreshRequest}});Object.defineProperty(u,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ir.SemanticTokensRegistrationType}});var $_=$f();Object.defineProperty(u,"ShowDocumentRequest",{enumerable:!0,get:function(){return $_.ShowDocumentRequest}});var V_=Kf();Object.defineProperty(u,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return V_.LinkedEditingRangeRequest}});var fn=ng();Object.defineProperty(u,"FileOperationPatternKind",{enumerable:!0,get:function(){return fn.FileOperationPatternKind}});Object.defineProperty(u,"DidCreateFilesNotification",{enumerable:!0,get:function(){return fn.DidCreateFilesNotification}});Object.defineProperty(u,"WillCreateFilesRequest",{enumerable:!0,get:function(){return fn.WillCreateFilesRequest}});Object.defineProperty(u,"DidRenameFilesNotification",{enumerable:!0,get:function(){return fn.DidRenameFilesNotification}});Object.defineProperty(u,"WillRenameFilesRequest",{enumerable:!0,get:function(){return fn.WillRenameFilesRequest}});Object.defineProperty(u,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return fn.DidDeleteFilesNotification}});Object.defineProperty(u,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return fn.WillDeleteFilesRequest}});var Hu=ag();Object.defineProperty(u,"UniquenessLevel",{enumerable:!0,get:function(){return Hu.UniquenessLevel}});Object.defineProperty(u,"MonikerKind",{enumerable:!0,get:function(){return Hu.MonikerKind}});Object.defineProperty(u,"MonikerRequest",{enumerable:!0,get:function(){return Hu.MonikerRequest}});var zu=pg();Object.defineProperty(u,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return zu.TypeHierarchyPrepareRequest}});Object.defineProperty(u,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return zu.TypeHierarchySubtypesRequest}});Object.defineProperty(u,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return zu.TypeHierarchySupertypesRequest}});var Ym=gg();Object.defineProperty(u,"InlineValueRequest",{enumerable:!0,get:function(){return Ym.InlineValueRequest}});Object.defineProperty(u,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return Ym.InlineValueRefreshRequest}});var $u=bg();Object.defineProperty(u,"InlayHintRequest",{enumerable:!0,get:function(){return $u.InlayHintRequest}});Object.defineProperty(u,"InlayHintResolveRequest",{enumerable:!0,get:function(){return $u.InlayHintResolveRequest}});Object.defineProperty(u,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return $u.InlayHintRefreshRequest}});var Ir=Dg();Object.defineProperty(u,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Ir.DiagnosticServerCancellationData}});Object.defineProperty(u,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Ir.DocumentDiagnosticReportKind}});Object.defineProperty(u,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Ir.DocumentDiagnosticRequest}});Object.defineProperty(u,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Ir.WorkspaceDiagnosticRequest}});Object.defineProperty(u,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Ir.DiagnosticRefreshRequest}});var yt=qg();Object.defineProperty(u,"NotebookCellKind",{enumerable:!0,get:function(){return yt.NotebookCellKind}});Object.defineProperty(u,"ExecutionSummary",{enumerable:!0,get:function(){return yt.ExecutionSummary}});Object.defineProperty(u,"NotebookCell",{enumerable:!0,get:function(){return yt.NotebookCell}});Object.defineProperty(u,"NotebookDocument",{enumerable:!0,get:function(){return yt.NotebookDocument}});Object.defineProperty(u,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return yt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(u,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidOpenNotebookDocumentNotification}});Object.defineProperty(u,"NotebookCellArrayChange",{enumerable:!0,get:function(){return yt.NotebookCellArrayChange}});Object.defineProperty(u,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidChangeNotebookDocumentNotification}});Object.defineProperty(u,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidSaveNotebookDocumentNotification}});Object.defineProperty(u,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidCloseNotebookDocumentNotification}});var Y_=jg();Object.defineProperty(u,"InlineCompletionRequest",{enumerable:!0,get:function(){return Y_.InlineCompletionRequest}});var Lu;(function(e){function t(n){let r=n;return we.string(r)||we.string(r.language)||we.string(r.scheme)||we.string(r.pattern)}e.is=t})(Lu||(u.TextDocumentFilter=Lu={}));var Fu;(function(e){function t(n){let r=n;return we.objectLiteral(r)&&(we.string(r.notebookType)||we.string(r.scheme)||we.string(r.pattern))}e.is=t})(Fu||(u.NotebookDocumentFilter=Fu={}));var Iu;(function(e){function t(n){let r=n;return we.objectLiteral(r)&&(we.string(r.notebook)||Fu.is(r.notebook))&&(r.language===void 0||we.string(r.language))}e.is=t})(Iu||(u.NotebookCellTextDocumentFilter=Iu={}));var Uu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!we.string(r)&&!Lu.is(r)&&!Iu.is(r))return!1;return!0}e.is=t})(Uu||(u.DocumentSelector=Uu={}));var Lg;(function(e){e.method="client/registerCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(Lg||(u.RegistrationRequest=Lg={}));var Fg;(function(e){e.method="client/unregisterCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(Fg||(u.UnregistrationRequest=Fg={}));var Ig;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(Ig||(u.ResourceOperationKind=Ig={}));var Ug;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(Ug||(u.FailureHandlingKind=Ug={}));var Wg;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(Wg||(u.PositionEncodingKind=Wg={}));var Bg;(function(e){function t(n){let r=n;return r&&we.string(r.id)&&r.id.length>0}e.hasId=t})(Bg||(u.StaticRegistrationOptions=Bg={}));var Hg;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||Uu.is(r.documentSelector))}e.is=t})(Hg||(u.TextDocumentRegistrationOptions=Hg={}));var zg;(function(e){function t(r){let i=r;return we.objectLiteral(i)&&(i.workDoneProgress===void 0||we.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&we.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(zg||(u.WorkDoneProgressOptions=zg={}));var $g;(function(e){e.method="initialize",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})($g||(u.InitializeRequest=$g={}));var Vg;(function(e){e.unknownProtocolVersion=1})(Vg||(u.InitializeErrorCodes=Vg={}));var Yg;(function(e){e.method="initialized",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Yg||(u.InitializedNotification=Yg={}));var Kg;(function(e){e.method="shutdown",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType0(e.method)})(Kg||(u.ShutdownRequest=Kg={}));var Gg;(function(e){e.method="exit",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType0(e.method)})(Gg||(u.ExitNotification=Gg={}));var Qg;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Qg||(u.DidChangeConfigurationNotification=Qg={}));var Jg;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(Jg||(u.MessageType=Jg={}));var Xg;(function(e){e.method="window/showMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Xg||(u.ShowMessageNotification=Xg={}));var Zg;(function(e){e.method="window/showMessageRequest",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(Zg||(u.ShowMessageRequest=Zg={}));var em;(function(e){e.method="window/logMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(em||(u.LogMessageNotification=em={}));var tm;(function(e){e.method="telemetry/event",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(tm||(u.TelemetryEventNotification=tm={}));var nm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(nm||(u.TextDocumentSyncKind=nm={}));var rm;(function(e){e.method="textDocument/didOpen",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(rm||(u.DidOpenTextDocumentNotification=rm={}));var im;(function(e){function t(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}e.isIncremental=t;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}e.isFull=n})(im||(u.TextDocumentContentChangeEvent=im={}));var om;(function(e){e.method="textDocument/didChange",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(om||(u.DidChangeTextDocumentNotification=om={}));var sm;(function(e){e.method="textDocument/didClose",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(sm||(u.DidCloseTextDocumentNotification=sm={}));var am;(function(e){e.method="textDocument/didSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(am||(u.DidSaveTextDocumentNotification=am={}));var cm;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(cm||(u.TextDocumentSaveReason=cm={}));var um;(function(e){e.method="textDocument/willSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(um||(u.WillSaveTextDocumentNotification=um={}));var lm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(lm||(u.WillSaveTextDocumentWaitUntilRequest=lm={}));var pm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(pm||(u.DidChangeWatchedFilesNotification=pm={}));var dm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(dm||(u.FileChangeType=dm={}));var fm;(function(e){function t(n){let r=n;return we.objectLiteral(r)&&(Mg.URI.is(r.baseUri)||Mg.WorkspaceFolder.is(r.baseUri))&&we.string(r.pattern)}e.is=t})(fm||(u.RelativePattern=fm={}));var gm;(function(e){e.Create=1,e.Change=2,e.Delete=4})(gm||(u.WatchKind=gm={}));var mm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(mm||(u.PublishDiagnosticsNotification=mm={}));var hm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(hm||(u.CompletionTriggerKind=hm={}));var ym;(function(e){e.method="textDocument/completion",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ym||(u.CompletionRequest=ym={}));var bm;(function(e){e.method="completionItem/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(bm||(u.CompletionResolveRequest=bm={}));var vm;(function(e){e.method="textDocument/hover",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(vm||(u.HoverRequest=vm={}));var xm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(xm||(u.SignatureHelpTriggerKind=xm={}));var Pm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Pm||(u.SignatureHelpRequest=Pm={}));var _m;(function(e){e.method="textDocument/definition",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(_m||(u.DefinitionRequest=_m={}));var Cm;(function(e){e.method="textDocument/references",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Cm||(u.ReferencesRequest=Cm={}));var Sm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Sm||(u.DocumentHighlightRequest=Sm={}));var Dm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Dm||(u.DocumentSymbolRequest=Dm={}));var Rm;(function(e){e.method="textDocument/codeAction",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Rm||(u.CodeActionRequest=Rm={}));var wm;(function(e){e.method="codeAction/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(wm||(u.CodeActionResolveRequest=wm={}));var Tm;(function(e){e.method="workspace/symbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Tm||(u.WorkspaceSymbolRequest=Tm={}));var km;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(km||(u.WorkspaceSymbolResolveRequest=km={}));var Am;(function(e){e.method="textDocument/codeLens",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Am||(u.CodeLensRequest=Am={}));var Om;(function(e){e.method="codeLens/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Om||(u.CodeLensResolveRequest=Om={}));var qm;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType0(e.method)})(qm||(u.CodeLensRefreshRequest=qm={}));var Nm;(function(e){e.method="textDocument/documentLink",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Nm||(u.DocumentLinkRequest=Nm={}));var Em;(function(e){e.method="documentLink/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Em||(u.DocumentLinkResolveRequest=Em={}));var jm;(function(e){e.method="textDocument/formatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(jm||(u.DocumentFormattingRequest=jm={}));var Mm;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Mm||(u.DocumentRangeFormattingRequest=Mm={}));var Lm;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Lm||(u.DocumentRangesFormattingRequest=Lm={}));var Fm;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Fm||(u.DocumentOnTypeFormattingRequest=Fm={}));var Im;(function(e){e.Identifier=1})(Im||(u.PrepareSupportDefaultBehavior=Im={}));var Um;(function(e){e.method="textDocument/rename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Um||(u.RenameRequest=Um={}));var Wm;(function(e){e.method="textDocument/prepareRename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Wm||(u.PrepareRenameRequest=Wm={}));var Bm;(function(e){e.method="workspace/executeCommand",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Bm||(u.ExecuteCommandRequest=Bm={}));var Hm;(function(e){e.method="workspace/applyEdit",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType("workspace/applyEdit")})(Hm||(u.ApplyWorkspaceEditRequest=Hm={}))});var Qm=S(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.createProtocolConnection=void 0;var Gm=ln();function K_(e,t,n,r){return Gm.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Gm.createMessageConnection)(e,t,n,r)}Ao.createProtocolConnection=K_});var Xm=S($e=>{"use strict";var G_=$e&&$e.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Oo=$e&&$e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&G_(t,e,n)};Object.defineProperty($e,"__esModule",{value:!0});$e.LSPErrorCodes=$e.createProtocolConnection=void 0;Oo(ln(),$e);Oo((go(),Xr(fo)),$e);Oo(se(),$e);Oo(Km(),$e);var Q_=Qm();Object.defineProperty($e,"createProtocolConnection",{enumerable:!0,get:function(){return Q_.createProtocolConnection}});var Jm;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(Jm||($e.LSPErrorCodes=Jm={}))});var ye=S(bt=>{"use strict";var J_=bt&&bt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Zm=bt&&bt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&J_(t,e,n)};Object.defineProperty(bt,"__esModule",{value:!0});bt.createProtocolConnection=void 0;var X_=wc();Zm(wc(),bt);Zm(Xm(),bt);function Z_(e,t,n,r){return(0,X_.createMessageConnection)(e,t,n,r)}bt.createProtocolConnection=Z_});var Yu=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.SemanticTokensBuilder=Vt.SemanticTokensDiff=Vt.SemanticTokensFeature=void 0;var qo=ye(),eC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(qo.SemanticTokensRefreshRequest.type),on:t=>{let n=qo.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=qo.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=qo.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Vt.SemanticTokensFeature=eC;var No=class{constructor(t,n){this.originalSequence=t,this.modifiedSequence=n}computeDiff(){let t=this.originalSequence.length,n=this.modifiedSequence.length,r=0;for(;r<n&&r<t&&this.originalSequence[r]===this.modifiedSequence[r];)r++;if(r<n&&r<t){let i=t-1,o=n-1;for(;i>=r&&o>=r&&this.originalSequence[i]===this.modifiedSequence[o];)i--,o--;(i<r||o<r)&&(i++,o++);let s=i-r+1,a=this.modifiedSequence.slice(r,o+1);return a.length===1&&a[0]===this.originalSequence[i]?[{start:r,deleteCount:s-1}]:[{start:r,deleteCount:s,data:a}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<t?[{start:r,deleteCount:t-r}]:[]}};Vt.SemanticTokensDiff=No;var Vu=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(t,n,r,i,o){let s=t,a=n;this._dataLen>0&&(s-=this._prevLine,s===0&&(a-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=o,this._prevLine=t,this._prevChar=n}get id(){return this._id.toString()}previousResult(t){this.id===t&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new No(this._prevData,this._data).computeDiff()}:this.build()}};Vt.SemanticTokensBuilder=Vu});var eh=S(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.InlineCompletionFeature=void 0;var tC=ye(),nC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(tC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Eo.InlineCompletionFeature=nC});var Gu=S(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.TextDocuments=void 0;var gn=ye(),Ku=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new gn.Emitter,this._onDidOpen=new gn.Emitter,this._onDidClose=new gn.Emitter,this._onDidSave=new gn.Emitter,this._onWillSave=new gn.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(t){this._willSaveWaitUntil=t}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(t){return this._syncedDocuments.get(t)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(t){t.__textDocumentSync=gn.TextDocumentSyncKind.Incremental;let n=[];return n.push(t.onDidOpenTextDocument(r=>{let i=r.textDocument,o=this._configuration.create(i.uri,i.languageId,i.version,i.text);this._syncedDocuments.set(i.uri,o);let s=Object.freeze({document:o});this._onDidOpen.fire(s),this._onDidChangeContent.fire(s)})),n.push(t.onDidChangeTextDocument(r=>{let i=r.textDocument,o=r.contentChanges;if(o.length===0)return;let{version:s}=i;if(s==null)throw new Error(`Received document change event for ${i.uri} without valid version identifier`);let a=this._syncedDocuments.get(i.uri);a!==void 0&&(a=this._configuration.update(a,o,s),this._syncedDocuments.set(i.uri,a),this._onDidChangeContent.fire(Object.freeze({document:a})))})),n.push(t.onDidCloseTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&(this._syncedDocuments.delete(r.textDocument.uri),this._onDidClose.fire(Object.freeze({document:i})))})),n.push(t.onWillSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onWillSave.fire(Object.freeze({document:i,reason:r.reason}))})),n.push(t.onWillSaveTextDocumentWaitUntil((r,i)=>{let o=this._syncedDocuments.get(r.textDocument.uri);return o!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:o,reason:r.reason}),i):[]})),n.push(t.onDidSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onDidSave.fire(Object.freeze({document:i}))})),gn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};jo.TextDocuments=Ku});var Ju=S(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.NotebookDocuments=or.NotebookSyncFeature=void 0;var tt=ye(),th=Gu(),rC=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(tt.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(tt.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(tt.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(tt.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};or.NotebookSyncFeature=rC;var Mo=class e{onDidOpenTextDocument(t){return this.openHandler=t,tt.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,tt.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,tt.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(t){this.closeHandler&&this.closeHandler(t)}onWillSaveTextDocument(){return e.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return e.NULL_DISPOSE}onDidSaveTextDocument(){return e.NULL_DISPOSE}};Mo.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var Qu=class{constructor(t){t instanceof th.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new th.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new tt.Emitter,this._onDidChange=new tt.Emitter,this._onDidSave=new tt.Emitter,this._onDidClose=new tt.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(t){return this._cellTextDocuments.get(t.document)}getNotebookDocument(t){return this.notebookDocuments.get(t)}getNotebookCell(t){let n=this.notebookCellMap.get(t);return n&&n[0]}findNotebookDocumentForCell(t){let n=typeof t=="string"?t:t.document,r=this.notebookCellMap.get(n);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(t){let n=new Mo,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let l=[],d=[],h=[],v=[];if(c.cells!==void 0){let Y=c.cells;if(Y.structure!==void 0){let m=Y.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),Y.structure.didOpen!==void 0)for(let g of Y.structure.didOpen)n.openTextDocument({textDocument:g}),l.push(g.uri);if(Y.structure.didClose)for(let g of Y.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(Y.data!==void 0){let m=new Map(Y.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let T=m.get(o.cells[g].document);if(T!==void 0){let V=o.cells.splice(g,1,T);if(h.push({old:V[0],new:T}),m.delete(T.document),m.size===0)break}}}if(Y.textContent!==void 0)for(let m of Y.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),v.push(m.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let R=[];for(let Y of l)R.push(this.getNotebookCell(Y));let F=[];for(let Y of d)F.push(this.getNotebookCell(Y));let $=[];for(let Y of v)$.push(this.getNotebookCell(Y));(R.length>0||F.length>0||h.length>0||$.length>0)&&(y.cells={added:R,removed:F,changed:{data:h,textContent:$}}),(y.metadata!==void 0||y.cells!==void 0)&&this._onDidChange.fire(y)})),r.push(t.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(t.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),tt.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};or.NotebookDocuments=Qu});var Xu=S(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.thenable=ve.typedArray=ve.stringArray=ve.array=ve.func=ve.error=ve.number=ve.string=ve.boolean=void 0;function iC(e){return e===!0||e===!1}ve.boolean=iC;function nh(e){return typeof e=="string"||e instanceof String}ve.string=nh;function oC(e){return typeof e=="number"||e instanceof Number}ve.number=oC;function sC(e){return e instanceof Error}ve.error=sC;function rh(e){return typeof e=="function"}ve.func=rh;function ih(e){return Array.isArray(e)}ve.array=ih;function aC(e){return ih(e)&&e.every(t=>nh(t))}ve.stringArray=aC;function cC(e,t){return Array.isArray(e)&&e.every(t)}ve.typedArray=cC;function uC(e){return e&&rh(e.then)}ve.thenable=uC});var Zu=S(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.generateUuid=nt.parse=nt.isUUID=nt.v4=nt.empty=void 0;var Ur=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Wr=class e extends Ur{static _oneOf(t){return t[Math.floor(t.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(""))}};Wr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Wr._timeHighBits=["8","9","a","b"];nt.empty=new Ur("00000000-0000-0000-0000-000000000000");function oh(){return new Wr}nt.v4=oh;var lC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function sh(e){return lC.test(e)}nt.isUUID=sh;function pC(e){if(!sh(e))throw new Error("invalid uuid");return new Ur(e)}nt.parse=pC;function dC(){return oh().asHex()}nt.generateUuid=dC});var ah=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.attachPartialResult=Kt.ProgressFeature=Kt.attachWorkDone=void 0;var Yt=ye(),fC=Zu(),mn=class e{constructor(t,n){this._connection=t,this._token=n,e.Instances.set(this._token,this)}begin(t,n,r,i){let o={kind:"begin",title:t,percentage:n,message:r,cancellable:i};this._connection.sendProgress(Yt.WorkDoneProgress.type,this._token,o)}report(t,n){let r={kind:"report"};typeof t=="number"?(r.percentage=t,n!==void 0&&(r.message=n)):r.message=t,this._connection.sendProgress(Yt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Yt.WorkDoneProgress.type,this._token,{kind:"end"})}};mn.Instances=new Map;var Lo=class extends mn{constructor(t,n){super(t,n),this._source=new Yt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Br=class{constructor(){}begin(){}report(){}done(){}},Fo=class extends Br{constructor(){super(),this._source=new Yt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function gC(e,t){if(t===void 0||t.workDoneToken===void 0)return new Br;let n=t.workDoneToken;return delete t.workDoneToken,new mn(e,n)}Kt.attachWorkDone=gC;var mC=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Yt.WorkDoneProgressCancelNotification.type,n=>{let r=mn.Instances.get(n.token);(r instanceof Lo||r instanceof Fo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Br:new mn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,fC.generateUuid)();return this.connection.sendRequest(Yt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Lo(this.connection,t))}else return Promise.resolve(new Fo)}};Kt.ProgressFeature=mC;var el;(function(e){e.type=new Yt.ProgressType})(el||(el={}));var tl=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(el.type,this._token,t)}};function hC(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new tl(e,n)}Kt.attachPartialResult=hC});var ch=S(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.ConfigurationFeature=void 0;var yC=ye(),bC=Xu(),vC=e=>class extends e{getConfiguration(t){return t?bC.string(t)?this._getConfiguration({section:t}):this._getConfiguration(t):this._getConfiguration({})}_getConfiguration(t){let n={items:Array.isArray(t)?t:[t]};return this.connection.sendRequest(yC.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};Io.ConfigurationFeature=vC});var uh=S(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.WorkspaceFoldersFeature=void 0;var Uo=ye(),xC=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Uo.Emitter,this.connection.onNotification(Uo.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}fillServerCapabilities(t){super.fillServerCapabilities(t);let n=t.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(Uo.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return!this._notificationIsAutoRegistered&&!this._unregistration&&(this._unregistration=this.connection.client.register(Uo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Wo.WorkspaceFoldersFeature=xC});var lh=S(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.CallHierarchyFeature=void 0;var nl=ye(),PC=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(nl.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=nl.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=nl.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Bo.CallHierarchyFeature=PC});var ph=S(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.ShowDocumentFeature=void 0;var _C=ye(),CC=e=>class extends e{showDocument(t){return this.connection.sendRequest(_C.ShowDocumentRequest.type,t)}};Ho.ShowDocumentFeature=CC});var dh=S(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.FileOperationsFeature=void 0;var sr=ye(),SC=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(sr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(sr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(sr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(sr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(sr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(sr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};zo.FileOperationsFeature=SC});var fh=S($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.LinkedEditingRangeFeature=void 0;var DC=ye(),RC=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(DC.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};$o.LinkedEditingRangeFeature=RC});var gh=S(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.TypeHierarchyFeature=void 0;var rl=ye(),wC=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(rl.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=rl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=rl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Vo.TypeHierarchyFeature=wC});var hh=S(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.InlineValueFeature=void 0;var mh=ye(),TC=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(mh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(mh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Yo.InlineValueFeature=TC});var bh=S(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.FoldingRangeFeature=void 0;var yh=ye(),kC=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(yh.FoldingRangeRefreshRequest.type),on:t=>{let n=yh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Ko.FoldingRangeFeature=kC});var vh=S(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.InlayHintFeature=void 0;var il=ye(),AC=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(il.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(il.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(il.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};Go.InlayHintFeature=AC});var xh=S(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.DiagnosticFeature=void 0;var Hr=ye(),OC=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Hr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Hr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Hr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Hr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Hr.WorkspaceDiagnosticRequest.partialResult,n)))}}};Qo.DiagnosticFeature=OC});var Ph=S(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.MonikerFeature=void 0;var qC=ye(),NC=e=>class extends e{get moniker(){return{on:t=>{let n=qC.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Jo.MonikerFeature=NC});var Mh=S(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.createConnection=Q.combineFeatures=Q.combineNotebooksFeatures=Q.combineLanguagesFeatures=Q.combineWorkspaceFeatures=Q.combineWindowFeatures=Q.combineClientFeatures=Q.combineTracerFeatures=Q.combineTelemetryFeatures=Q.combineConsoleFeatures=Q._NotebooksImpl=Q._LanguagesImpl=Q.BulkUnregistration=Q.BulkRegistration=Q.ErrorMessageTracker=void 0;var O=ye(),rt=Xu(),sl=Zu(),B=ah(),EC=ch(),jC=uh(),MC=lh(),LC=Yu(),FC=ph(),IC=dh(),UC=fh(),WC=gh(),BC=hh(),HC=bh(),zC=vh(),$C=xh(),VC=Ju(),YC=Ph();function ol(e){if(e!==null)return e}var al=class{constructor(){this._messages=Object.create(null)}add(t){let n=this._messages[t];n||(n=0),n++,this._messages[t]=n}sendErrors(t){Object.keys(this._messages).forEach(n=>{t.window.showErrorMessage(n)})}};Q.ErrorMessageTracker=al;var Xo=class{constructor(){}rawAttach(t){this._rawConnection=t}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(t){}initialize(t){}error(t){this.send(O.MessageType.Error,t)}warn(t){this.send(O.MessageType.Warning,t)}info(t){this.send(O.MessageType.Info,t)}log(t){this.send(O.MessageType.Log,t)}debug(t){this.send(O.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(O.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,O.RAL)().console.error("Sending log message failed")})}},cl=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}showErrorMessage(t,...n){let r={type:O.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(ol)}showWarningMessage(t,...n){let r={type:O.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(ol)}showInformationMessage(t,...n){let r={type:O.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(ol)}},_h=(0,FC.ShowDocumentFeature)((0,B.ProgressFeature)(cl)),Ch;(function(e){function t(){return new Zo}e.create=t})(Ch||(Q.BulkRegistration=Ch={}));var Zo=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=rt.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=sl.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Sh;(function(e){function t(){return new zr(void 0,[])}e.create=t})(Sh||(Q.BulkUnregistration=Sh={}));var zr=class{constructor(t,n){this._connection=t,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(t){this._connection=t}add(t){this._unregistrations.set(t.method,t)}dispose(){let t=[];for(let r of this._unregistrations.values())t.push(r);let n={unregisterations:t};this._connection.sendRequest(O.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=rt.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(O.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},es=class{attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}register(t,n,r){return t instanceof Zo?this.registerMany(t):t instanceof zr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=rt.string(n)?n:n.method,o=sl.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(O.RegistrationRequest.type,s).then(a=>(t.add({id:o,method:i}),t),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(t,n){let r=rt.string(t)?t:t.method,i=sl.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(O.RegistrationRequest.type,o).then(s=>O.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),s=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(s)))}unregisterSingle(t,n){let r={unregisterations:[{id:t,method:n}]};return this.connection.sendRequest(O.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${t} failed.`)})}registerMany(t){let n=t.asRegistrationParams();return this.connection.sendRequest(O.RegistrationRequest.type,n).then(()=>new zr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},ul=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}applyEdit(t){function n(i){return i&&!!i.edit}let r=n(t)?t:{edit:t};return this.connection.sendRequest(O.ApplyWorkspaceEditRequest.type,r)}},Dh=(0,IC.FileOperationsFeature)((0,jC.WorkspaceFoldersFeature)((0,EC.ConfigurationFeature)(ul))),ts=class{constructor(){this._trace=O.Trace.Off}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}set trace(t){this._trace=t}log(t,n){this._trace!==O.Trace.Off&&this.connection.sendNotification(O.LogTraceNotification.type,{message:t,verbose:this._trace===O.Trace.Verbose?n:void 0}).catch(()=>{})}},ns=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}logEvent(t){this.connection.sendNotification(O.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},rs=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._LanguagesImpl=rs;var Rh=(0,HC.FoldingRangeFeature)((0,YC.MonikerFeature)((0,$C.DiagnosticFeature)((0,zC.InlayHintFeature)((0,BC.InlineValueFeature)((0,WC.TypeHierarchyFeature)((0,UC.LinkedEditingRangeFeature)((0,LC.SemanticTokensFeature)((0,MC.CallHierarchyFeature)(rs))))))))),is=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._NotebooksImpl=is;var wh=(0,VC.NotebookSyncFeature)(is);function Th(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=Th;function kh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=kh;function Ah(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Ah;function Oh(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Oh;function qh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=qh;function Nh(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=Nh;function Eh(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=Eh;function jh(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=jh;function KC(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Th),tracer:n(e.tracer,t.tracer,Ah),telemetry:n(e.telemetry,t.telemetry,kh),client:n(e.client,t.client,Oh),window:n(e.window,t.window,qh),workspace:n(e.workspace,t.workspace,Nh),languages:n(e.languages,t.languages,Eh),notebooks:n(e.notebooks,t.notebooks,jh)}}Q.combineFeatures=KC;function GC(e,t,n){let r=n&&n.console?new(n.console(Xo)):new Xo,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(ts)):new ts,s=n&&n.telemetry?new(n.telemetry(ns)):new ns,a=n&&n.client?new(n.client(es)):new es,c=n&&n.window?new(n.window(_h)):new _h,l=n&&n.workspace?new(n.workspace(Dh)):new Dh,d=n&&n.languages?new(n.languages(Rh)):new Rh,h=n&&n.notebooks?new(n.notebooks(wh)):new wh,v=[r,o,s,a,c,l,d,h];function y(m){return m instanceof Promise?m:rt.thenable(m)?new Promise((g,T)=>{m.then(V=>g(V),V=>T(V))}):Promise.resolve(m)}let R,F,$,Y={listen:()=>i.listen(),sendRequest:(m,...g)=>i.sendRequest(rt.string(m)?m:m.method,...g),onRequest:(m,g)=>i.onRequest(m,g),sendNotification:(m,g)=>{let T=rt.string(m)?m:m.method;return i.sendNotification(T,g)},onNotification:(m,g)=>i.onNotification(m,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(F=m,{dispose:()=>{F=void 0}}),onInitialized:m=>i.onNotification(O.InitializedNotification.type,m),onShutdown:m=>(R=m,{dispose:()=>{R=void 0}}),onExit:m=>($=m,{dispose:()=>{$=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return c},get workspace(){return l},get languages(){return d},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(O.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(O.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(O.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(O.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(O.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(O.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(O.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(O.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(O.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(O.HoverRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:m=>i.onRequest(O.CompletionRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:m=>i.onRequest(O.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(O.SignatureHelpRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:m=>i.onRequest(O.DeclarationRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:m=>i.onRequest(O.DefinitionRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:m=>i.onRequest(O.TypeDefinitionRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:m=>i.onRequest(O.ImplementationRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:m=>i.onRequest(O.ReferencesRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:m=>i.onRequest(O.DocumentHighlightRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:m=>i.onRequest(O.DocumentSymbolRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:m=>i.onRequest(O.WorkspaceSymbolRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:m=>i.onRequest(O.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(O.CodeActionRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:m=>i.onRequest(O.CodeActionResolveRequest.type,(g,T)=>m(g,T)),onCodeLens:m=>i.onRequest(O.CodeLensRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:m=>i.onRequest(O.CodeLensResolveRequest.type,(g,T)=>m(g,T)),onDocumentFormatting:m=>i.onRequest(O.DocumentFormattingRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:m=>i.onRequest(O.DocumentRangeFormattingRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(O.DocumentOnTypeFormattingRequest.type,(g,T)=>m(g,T)),onRenameRequest:m=>i.onRequest(O.RenameRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:m=>i.onRequest(O.PrepareRenameRequest.type,(g,T)=>m(g,T)),onDocumentLinks:m=>i.onRequest(O.DocumentLinkRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:m=>i.onRequest(O.DocumentLinkResolveRequest.type,(g,T)=>m(g,T)),onDocumentColor:m=>i.onRequest(O.DocumentColorRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:m=>i.onRequest(O.ColorPresentationRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:m=>i.onRequest(O.FoldingRangeRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:m=>i.onRequest(O.SelectionRangeRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:m=>i.onRequest(O.ExecuteCommandRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let m of v)m.attach(Y);return i.onRequest(O.InitializeRequest.type,m=>{t.initialize(m),rt.string(m.trace)&&(o.trace=O.Trace.fromString(m.trace));for(let g of v)g.initialize(m.capabilities);if(F){let g=F(m,new O.CancellationTokenSource().token,(0,B.attachWorkDone)(i,m),void 0);return y(g).then(T=>{if(T instanceof O.ResponseError)return T;let V=T;V||(V={capabilities:{}});let X=V.capabilities;X||(X={},V.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None:!rt.number(X.textDocumentSync)&&!rt.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None);for(let it of v)it.fillServerCapabilities(X);return V})}else{let g={capabilities:{textDocumentSync:O.TextDocumentSyncKind.None}};for(let T of v)T.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(O.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,R)return R(new O.CancellationTokenSource().token)}),i.onNotification(O.ExitNotification.type,()=>{try{$&&$()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(O.SetTraceNotification.type,m=>{o.trace=O.Trace.fromString(m.value)}),Y}Q.createConnection=GC});var ll=S(je=>{"use strict";var QC=je&&je.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Fh=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&QC(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});je.ProposedFeatures=je.NotebookDocuments=je.TextDocuments=je.SemanticTokensBuilder=void 0;var JC=Yu();Object.defineProperty(je,"SemanticTokensBuilder",{enumerable:!0,get:function(){return JC.SemanticTokensBuilder}});var XC=eh();Fh(ye(),je);var ZC=Gu();Object.defineProperty(je,"TextDocuments",{enumerable:!0,get:function(){return ZC.TextDocuments}});var e0=Ju();Object.defineProperty(je,"NotebookDocuments",{enumerable:!0,get:function(){return e0.NotebookDocuments}});Fh(Mh(),je);var Lh;(function(e){e.all={__brand:"features",languages:XC.InlineCompletionFeature}})(Lh||(je.ProposedFeatures=Lh={}))});var Uh=S((Ww,Ih)=>{"use strict";Ih.exports=ye()});var pl=S(vt=>{"use strict";var t0=vt&&vt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Bh=vt&&vt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&t0(t,e,n)};Object.defineProperty(vt,"__esModule",{value:!0});vt.createConnection=void 0;var os=ll();Bh(Uh(),vt);Bh(ll(),vt);var Wh=!1,n0={initialize:e=>{},get shutdownReceived(){return Wh},set shutdownReceived(e){Wh=e},exit:e=>{}};function r0(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),os.ConnectionStrategy.is(e)||os.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=l=>(0,os.createProtocolConnection)(o,s,l,a);return(0,os.createConnection)(c,n0,i)}vt.createConnection=r0});var Gt=S((Hw,Hh)=>{"use strict";Hh.exports=pl()});var Pl=S((qT,ny)=>{"use strict";function xt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ty(e,t){for(var n="",r=0,i=-1,o=0,s,a=0;a<=e.length;++a){if(a<e.length)s=e.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,o=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return n}function z0(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var ur={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),xt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=ty(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(xt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=ty(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return xt(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var r=arguments[n];xt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":ur.normalize(t)},relative:function(t,n){if(xt(t),xt(n),t===n||(t=ur.resolve(t),n=ur.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,l=o<c?o:c,d=-1,h=0;h<=l;++h){if(h===l){if(c>l){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>l&&(t.charCodeAt(r+h)===47?d=h:h===0&&(d=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(d=h)}var R="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(R.length===0?R+="..":R+="/..");return R.length>0?R+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(xt(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,o=!0,s=t.length-1;s>=1;--s)if(n=t.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');xt(t);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,c=-1;for(s=t.length-1;s>=0;--s){var l=t.charCodeAt(s);if(l===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(l===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=c))}return r===i?i=c:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){xt(t);for(var n=-1,r=0,i=-1,o=!0,s=0,a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(c===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),c===46?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return z0("/",t)},parse:function(t){xt(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,c=-1,l=!0,d=t.length-1,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!l){a=d+1;break}continue}c===-1&&(l=!1,c=d+1),r===46?s===-1?s=d:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||c===-1||h===0||h===1&&s===c-1&&s===a+1?c!==-1&&(a===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(a,c)):(a===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(a,s),n.base=t.slice(a,c)),n.ext=t.slice(s,c)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};ur.posix=ur;ny.exports=ur});import{createConfig as pd,loadConfig as xx,DEFAULT_CONFIG as dd}from"@redocly/openapi-core";var Rl;(()=>{"use strict";var e={975:k=>{function b(P){if(typeof P!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(P))}function E(P,C){for(var D,N="",M=0,q=-1,z=0,K=0;K<=P.length;++K){if(K<P.length)D=P.charCodeAt(K);else{if(D===47)break;D=47}if(D===47){if(!(q===K-1||z===1))if(q!==K-1&&z===2){if(N.length<2||M!==2||N.charCodeAt(N.length-1)!==46||N.charCodeAt(N.length-2)!==46){if(N.length>2){var Ce=N.lastIndexOf("/");if(Ce!==N.length-1){Ce===-1?(N="",M=0):M=(N=N.slice(0,Ce)).length-1-N.lastIndexOf("/"),q=K,z=0;continue}}else if(N.length===2||N.length===1){N="",M=0,q=K,z=0;continue}}C&&(N.length>0?N+="/..":N="..",M=2)}else N.length>0?N+="/"+P.slice(q+1,K):N=P.slice(q+1,K),M=K-q-1;q=K,z=0}else D===46&&z!==-1?++z:z=-1}return N}var j={resolve:function(){for(var P,C="",D=!1,N=arguments.length-1;N>=-1&&!D;N--){var M;N>=0?M=arguments[N]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(C=M+"/"+C,D=M.charCodeAt(0)===47)}return C=E(C,!D),D?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(P){if(b(P),P.length===0)return".";var C=P.charCodeAt(0)===47,D=P.charCodeAt(P.length-1)===47;return(P=E(P,!C)).length!==0||C||(P="."),P.length>0&&D&&(P+="/"),C?"/"+P:P},isAbsolute:function(P){return b(P),P.length>0&&P.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var P,C=0;C<arguments.length;++C){var D=arguments[C];b(D),D.length>0&&(P===void 0?P=D:P+="/"+D)}return P===void 0?".":j.normalize(P)},relative:function(P,C){if(b(P),b(C),P===C||(P=j.resolve(P))===(C=j.resolve(C)))return"";for(var D=1;D<P.length&&P.charCodeAt(D)===47;++D);for(var N=P.length,M=N-D,q=1;q<C.length&&C.charCodeAt(q)===47;++q);for(var z=C.length-q,K=M<z?M:z,Ce=-1,ee=0;ee<=K;++ee){if(ee===K){if(z>K){if(C.charCodeAt(q+ee)===47)return C.slice(q+ee+1);if(ee===0)return C.slice(q+ee)}else M>K&&(P.charCodeAt(D+ee)===47?Ce=ee:ee===0&&(Ce=0));break}var ot=P.charCodeAt(D+ee);if(ot!==C.charCodeAt(q+ee))break;ot===47&&(Ce=ee)}var en="";for(ee=D+Ce+1;ee<=N;++ee)ee!==N&&P.charCodeAt(ee)!==47||(en.length===0?en+="..":en+="/..");return en.length>0?en+C.slice(q+Ce):(q+=Ce,C.charCodeAt(q)===47&&++q,C.slice(q))},_makeLong:function(P){return P},dirname:function(P){if(b(P),P.length===0)return".";for(var C=P.charCodeAt(0),D=C===47,N=-1,M=!0,q=P.length-1;q>=1;--q)if((C=P.charCodeAt(q))===47){if(!M){N=q;break}}else M=!1;return N===-1?D?"/":".":D&&N===1?"//":P.slice(0,N)},basename:function(P,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(P);var D,N=0,M=-1,q=!0;if(C!==void 0&&C.length>0&&C.length<=P.length){if(C.length===P.length&&C===P)return"";var z=C.length-1,K=-1;for(D=P.length-1;D>=0;--D){var Ce=P.charCodeAt(D);if(Ce===47){if(!q){N=D+1;break}}else K===-1&&(q=!1,K=D+1),z>=0&&(Ce===C.charCodeAt(z)?--z==-1&&(M=D):(z=-1,M=K))}return N===M?M=K:M===-1&&(M=P.length),P.slice(N,M)}for(D=P.length-1;D>=0;--D)if(P.charCodeAt(D)===47){if(!q){N=D+1;break}}else M===-1&&(q=!1,M=D+1);return M===-1?"":P.slice(N,M)},extname:function(P){b(P);for(var C=-1,D=0,N=-1,M=!0,q=0,z=P.length-1;z>=0;--z){var K=P.charCodeAt(z);if(K!==47)N===-1&&(M=!1,N=z+1),K===46?C===-1?C=z:q!==1&&(q=1):C!==-1&&(q=-1);else if(!M){D=z+1;break}}return C===-1||N===-1||q===0||q===1&&C===N-1&&C===D+1?"":P.slice(C,N)},format:function(P){if(P===null||typeof P!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof P);return function(C,D){var N=D.dir||D.root,M=D.base||(D.name||"")+(D.ext||"");return N?N===D.root?N+M:N+"/"+M:M}(0,P)},parse:function(P){b(P);var C={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return C;var D,N=P.charCodeAt(0),M=N===47;M?(C.root="/",D=1):D=0;for(var q=-1,z=0,K=-1,Ce=!0,ee=P.length-1,ot=0;ee>=D;--ee)if((N=P.charCodeAt(ee))!==47)K===-1&&(Ce=!1,K=ee+1),N===46?q===-1?q=ee:ot!==1&&(ot=1):q!==-1&&(ot=-1);else if(!Ce){z=ee+1;break}return q===-1||K===-1||ot===0||ot===1&&q===K-1&&q===z+1?K!==-1&&(C.base=C.name=z===0&&M?P.slice(1,K):P.slice(z,K)):(z===0&&M?(C.name=P.slice(1,q),C.base=P.slice(1,K)):(C.name=P.slice(z,q),C.base=P.slice(z,K)),C.ext=P.slice(q,K)),z>0?C.dir=P.slice(0,z-1):M&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var E=t[k]={exports:{}};return e[k](E,E.exports,n),E.exports}n.d=(k,b)=>{for(var E in b)n.o(b,E)&&!n.o(k,E)&&Object.defineProperty(k,E,{enumerable:!0,get:b[E]})},n.o=(k,b)=>Object.prototype.hasOwnProperty.call(k,b),n.r=k=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>v,Utils:()=>yn}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function c(k,b){if(!k.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${k.authority}", path: "${k.path}", query: "${k.query}", fragment: "${k.fragment}"}`);if(k.scheme&&!o.test(k.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(k.path){if(k.authority){if(!s.test(k.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(a.test(k.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let l="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class v{static isUri(b){return b instanceof v||!!b&&typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function"}scheme;authority;path;query;fragment;constructor(b,E,j,P,C,D=!1){typeof b=="object"?(this.scheme=b.scheme||l,this.authority=b.authority||l,this.path=b.path||l,this.query=b.query||l,this.fragment=b.fragment||l):(this.scheme=function(N,M){return N||M?N:"file"}(b,D),this.authority=E||l,this.path=function(N,M){switch(N){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M}(this.scheme,j||l),this.query=P||l,this.fragment=C||l,c(this,D))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:E,authority:j,path:P,query:C,fragment:D}=b;return E===void 0?E=this.scheme:E===null&&(E=l),j===void 0?j=this.authority:j===null&&(j=l),P===void 0?P=this.path:P===null&&(P=l),C===void 0?C=this.query:C===null&&(C=l),D===void 0?D=this.fragment:D===null&&(D=l),E===this.scheme&&j===this.authority&&P===this.path&&C===this.query&&D===this.fragment?this:new R(E,j,P,C,D)}static parse(b,E=!1){let j=h.exec(b);return j?new R(j[2]||l,X(j[4]||l),X(j[5]||l),X(j[7]||l),X(j[9]||l),E):new R(l,l,l,l,l)}static file(b){let E=l;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let j=b.indexOf(d,2);j===-1?(E=b.substring(2),b=d):(E=b.substring(2,j),b=b.substring(j)||d)}return new R("file",E,b,l,l)}static from(b){let E=new R(b.scheme,b.authority,b.path,b.query,b.fragment);return c(E,!0),E}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let E=new R(b);return E._formatted=b.external,E._fsPath=b._sep===y?b.fsPath:null,E}}return b}}let y=i?1:void 0;class R extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=m(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let F={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 $(k,b,E){let j,P=-1;for(let C=0;C<k.length;C++){let D=k.charCodeAt(C);if(D>=97&&D<=122||D>=65&&D<=90||D>=48&&D<=57||D===45||D===46||D===95||D===126||b&&D===47||E&&D===91||E&&D===93||E&&D===58)P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j!==void 0&&(j+=k.charAt(C));else{j===void 0&&(j=k.substr(0,C));let N=F[D];N!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j+=N):P===-1&&(P=C)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function Y(k){let b;for(let E=0;E<k.length;E++){let j=k.charCodeAt(E);j===35||j===63?(b===void 0&&(b=k.substr(0,E)),b+=F[j]):b!==void 0&&(b+=k[E])}return b!==void 0?b:k}function m(k,b){let E;return E=k.authority&&k.path.length>1&&k.scheme==="file"?`//${k.authority}${k.path}`:k.path.charCodeAt(0)===47&&(k.path.charCodeAt(1)>=65&&k.path.charCodeAt(1)<=90||k.path.charCodeAt(1)>=97&&k.path.charCodeAt(1)<=122)&&k.path.charCodeAt(2)===58?b?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(E=E.replace(/\//g,"\\")),E}function g(k,b){let E=b?Y:$,j="",{scheme:P,authority:C,path:D,query:N,fragment:M}=k;if(P&&(j+=P,j+=":"),(C||P==="file")&&(j+=d,j+=d),C){let q=C.indexOf("@");if(q!==-1){let z=C.substr(0,q);C=C.substr(q+1),q=z.lastIndexOf(":"),q===-1?j+=E(z,!1,!1):(j+=E(z.substr(0,q),!1,!1),j+=":",j+=E(z.substr(q+1),!1,!0)),j+="@"}C=C.toLowerCase(),q=C.lastIndexOf(":"),q===-1?j+=E(C,!1,!0):(j+=E(C.substr(0,q),!1,!0),j+=C.substr(q))}if(D){if(D.length>=3&&D.charCodeAt(0)===47&&D.charCodeAt(2)===58){let q=D.charCodeAt(1);q>=65&&q<=90&&(D=`/${String.fromCharCode(q+32)}:${D.substr(3)}`)}else if(D.length>=2&&D.charCodeAt(1)===58){let q=D.charCodeAt(0);q>=65&&q<=90&&(D=`${String.fromCharCode(q+32)}:${D.substr(2)}`)}j+=E(D,!0,!1)}return N&&(j+="?",j+=E(N,!1,!1)),M&&(j+="#",j+=b?M:$(M,!1,!1)),j}function T(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+T(k.substr(3)):k}}let V=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(V)?k.replace(V,b=>T(b)):k}var it=n(975);let Tt=it.posix||it,Zt="/";var yn;(function(k){k.joinPath=function(b,...E){return b.with({path:Tt.join(b.path,...E)})},k.resolvePath=function(b,...E){let j=b.path,P=!1;j[0]!==Zt&&(j=Zt+j,P=!0);let C=Tt.resolve(j,...E);return P&&C[0]===Zt&&!b.authority&&(C=C.substring(1)),b.with({path:C})},k.dirname=function(b){if(b.path.length===0||b.path===Zt)return b;let E=Tt.dirname(b.path);return E.length===1&&E.charCodeAt(0)===46&&(E=""),b.with({path:E})},k.basename=function(b){return Tt.basename(b.path)},k.extname=function(b){return Tt.extname(b.path)}})(yn||(yn={})),Rl=r})();var{URI:At,Utils:ne}=Rl;import{CONFIG_FILE_NAME as Ny}from"@redocly/openapi-core";var Cs={languageId:"yaml",filePattern:/\.ya?ml$/i},Ss={languageId:"json",filePattern:/\.json$/i},_s=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Cs,Ss];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ne.resolvePath(ne.dirname(Se(t)),Ny);return await this._fs.exists(n)?n.toString():void 0}catch{return}}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}registerRemoteScorecardAndPlugins(t){this._remoteScorecardAndPlugins=t}get remoteScorecardAndPlugins(){return this._remoteScorecardAndPlugins}get fs(){if(!this._fs)throw new Error("FileSystemProvider not registered.");return this._fs}get documents(){if(!this._documentManager)throw new Error("DocumentsProvider not registered.");return this._documentManager}get findConfig(){if(!this._findConfig)throw new Error("ConfigFinder not registered.");return this._findConfig}get getRootWorkspaceFolderURI(){if(!this._getRootWorkspaceFolderURI)throw new Error("RootWorkspaceFolderURIGetter not registered.");return this._getRootWorkspaceFolderURI}setScorecardStatus(t){this._scorecardStatus=t}get scorecardStatus(){return this._scorecardStatus}},Pe=new _s;function Ds(e,t){return ne.resolvePath(Se(e)).toString()===ne.resolvePath(Se(t)).toString()}function Se(e){return At.parse(e)}function xn(e){return At.parse(e).fsPath}function dr(e){let t=["https","http"],{scheme:n}=At.parse(e);return t.includes(n)}function fr(e){return ne.basename(Se(e))}async function wl(e,t="/"){let n=ne.resolvePath(Se(t));for(;e.path!=="/";)try{(await Pe.fs.stat(ne.resolvePath(n,e.path))).isDirectory()||(e=ne.dirname(e));break}catch{e=ne.dirname(e)}return e}import{BaseResolver as bx,Source as ld,readFileFromUrl as vx}from"@redocly/openapi-core";var li=Fe(br(),1);import{isAbsoluteUrl as mx}from"@redocly/openapi-core";function Zp(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(l){let d=i.get(l.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(l.uri,setTimeout(()=>a(l),t-h));else if(r.delete(l.uri),i.delete(l.uri),!n){let v=s.get(l.uri),y=e(o.get(l.uri));v&&v.forEach(({resolve:R})=>R(y)),s.delete(l.uri)}}catch(v){let y=s.get(l.uri);y&&y.forEach(({reject:R})=>R(v)),s.delete(l.uri)}}function c(l){let d=r.get(l.uri),h=n&&!d;return i.set(l.uri,Date.now()),o.set(l.uri,l),new Promise((v,y)=>{let R=s.get(l.uri)||[];d||(s.set(l.uri,[...R,{resolve:v,reject:y}]),r.set(l.uri,setTimeout(()=>a(l),t))),h?v(e(o.get(l.uri))):s.set(l.uri,[...R,{resolve:v,reject:y}])})}return c}function Zs(e){let t=new Set,n=r=>Array.isArray(n)?r.map(n):typeof r=="object"&&r!==null?t.has(r)?void 0:(t.add(r),Object.fromEntries(Object.entries(r).map(([i,o])=>[i,n(o)]))):r;return n(e)}function ed(e){return e==="$ref"}async function ea(e,t){let n=At.parse(t);return ne.joinPath(n,e).toString()}async function td(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await ea(i,n)===t)return r}function nd(e){return typeof e=="string"}function pi(e){return typeof e=="function"}function rd(e){return e?.kind===li.Kind.MAP}function ta(e){return e?.kind===li.Kind.MAPPING}function na(e){return e?.kind===li.Kind.SEQ}function vr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}function ra(e){return mx(e)||e.startsWith("file://")}var di=class e{constructor(t,n,r,i){this._uri=t,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(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(e.isIncremental(r)){let i=sd(r.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),c=Math.max(i.end.line,0),l=this._lineOffsets,d=id(r.text,!1,o);if(c-a===d.length)for(let v=0,y=d.length;v<y;v++)l[v+a+1]=d[v];else d.length<1e4?l.splice(a+1,c-a,...d):this._lineOffsets=l=l.slice(0,a+1).concat(d,l.slice(c+1));let h=r.text.length-(s-o);if(h!==0)for(let v=a+1+d.length,y=l.length;v<y;v++)l[v]=l[v]+h}else if(e.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=id(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return t=this.ensureBeforeEOL(t,n[o]),{line:o,character:t-n[o]}}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line];if(t.character<=0)return r;let i=t.line+1<n.length?n[t.line+1]:this._content.length,o=Math.min(r+t.character,i);return this.ensureBeforeEOL(o,r)}ensureBeforeEOL(t,n){for(;t>n&&od(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}},fi;(function(e){function t(i,o,s,a){return new di(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof di)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,o){let s=i.getText(),a=ia(o.map(hx),(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),c=0,l=[];for(let d of a){let h=i.offsetAt(d.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&l.push(s.substring(c,h)),d.newText.length&&l.push(d.newText),c=i.offsetAt(d.range.end)}return l.push(s.substr(c)),l.join("")}e.applyEdits=r})(fi||(fi={}));function ia(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);ia(r,t),ia(i,t);let o=0,s=0,a=0;for(;o<r.length&&s<i.length;)t(r[o],i[s])<=0?e[a++]=r[o++]:e[a++]=i[s++];for(;o<r.length;)e[a++]=r[o++];for(;s<i.length;)e[a++]=i[s++];return e}function id(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);od(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function od(e){return e===13||e===10}function sd(e){let t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function hx(e){let t=sd(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var ad=new Map;function cd(e,t){return ad.set(e,t)}function ud(e){let t=[];for(let[n,r]of ad.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Qe(e){let t=Pe.documents.get(e);if(t)return t;let n=await Pe.fs.readFile(Se(e),"utf-8");return fi.create(e,"yaml",1,n)}function oa(e){return Ss.filePattern.test(e)}function yx(e){return Cs.filePattern.test(e)}var Ct=class extends bx{resolveExternalRef(t,n){return ra(n)?n:t&&ra(t)?new URL(n,t).href:t?ne.resolvePath(ne.dirname(Se(t)),n).toString():n}async loadExternalRef(t){if(dr(t)){let{body:n,mimeType:r}=await vx(t,{...this.config.http,customFetch:fetch});return new ld(t,n,r)}return new ld(t,(await Qe(t)).getText())}};var Et;async function fd(e){let t=new Ct,n=e?await Pe.findConfig(e):void 0;return n===void 0?await pd(dd):(Et=await xx({configPath:n,externalRefResolver:t}),Et)}async function Rn(e){return Et||await fd(e)}async function sa(e,t){try{return await fd(e)}catch(n){return t?.createEventHandleLoadConfigError?.(n?.message),await pd(dd)}}function wn(e){return aa(e)?!0:!!Et?.resolvedRefMap&&[...Et.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Ds(fr(e),n))}function aa(e){return Et?.configPath?Ds(e,Et.configPath):!1}var gd={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},xr={type:"object",properties:gd,additionalProperties:!1},Px={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},jt={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},gd),{like:xr,dislike:xr,satisfied:xr,neutral:xr,dissatisfied:xr}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:Px},additionalProperties:!1}},additionalProperties:!1};var _x={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},ca={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},gi={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:jt,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ca,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:_x,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"}},additionalProperties:!1};var Tn={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Cx={type:"object",properties:{name:{type:"string"},items:Tn,queries:Tn,mutations:Tn,subscriptions:Tn,types:Tn,directives:Tn},required:["name"],additionalProperties:!1},Sx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Cx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},kn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Sx.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:ca,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:jt},additionalProperties:!1};var Dx={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Rx={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},md={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},wx={type:"object",properties:{beforeInfo:{type:"array",items:md},end:{type:"array",items:md}}},an={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},mi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Tx={type:"object",properties:vi(an.properties,["light","dark"])},kx={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},Ax={type:"object",properties:{error:mi,info:mi,redirect:mi,success:mi}},Ox={type:"object",properties:An(an.properties,["dark"])},qx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Nx={type:"object",properties:{accent:an,border:Tx,error:an,http:kx,primary:an,responses:Ax,secondary:Ox,success:an,text:qx,tonalOffset:{type:"number"},warning:an}},hi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Ex={type:"object",properties:{small:hi,medium:hi,large:hi,xlarge:hi}},ft={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},jx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Ex})},hd={type:"object",properties:vi(ft.properties,["fontSize","lineHeight"])},Mx={type:"object",properties:{medium:hd,small:hd}},Lx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Mx})},Fx={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Ix={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},yd={type:"object",properties:{fullWidth:{type:"boolean"}}},Ux={type:"object",properties:{buttons:jx,httpBadges:Lx,layoutControls:Fx,panels:Ix,tryItButton:yd,tryItSendButton:yd}},bi={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Wx={type:"object",properties:{maxWidth:bi}},Bx={type:"object",properties:{maxWidth:bi,middlePanelMaxWidth:bi}},Hx={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Wx,"three-panel":Bx}},bd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},zx={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:bd,defaultDetailsWidth:{type:"string"},examples:bd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},xd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},$x={type:"object",properties:vi(xd.properties,["textTransform"])},Vx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Yx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:xd,level1items:$x,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Vx,textColor:{type:"string"},width:{type:"string"}})},yi={type:"object",properties:Object.assign(Object.assign({},ft.properties),{color:{type:"string"},transform:{type:"string"}})},Kx={type:"object",properties:Object.assign(Object.assign({},ft.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},Gx={type:"object",properties:An(ft.properties,["fontSize"])},Qx={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Jx={type:"object",properties:Object.assign(Object.assign({code:Kx,fieldName:ft},vi(ft.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:yi,heading2:yi,heading3:yi,headings:Gx,lineHeight:{type:"string"},links:Qx,optimizeSpeed:{type:"boolean"},rightPanelHeading:yi,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},Xx={type:"object",properties:Object.assign({color:{type:"string"}},An(ft.properties,["fontWeight"]))},Zx={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:Xx}},eP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},tP={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},vd={type:"object",properties:{custom:{type:"string"}}},nP={type:"object",properties:{DownloadButton:vd,NextSectionButton:vd}},rP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},iP={type:"object",properties:{borderRadius:{type:"string"}}},oP={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},sP={type:"object",properties:{breakpoints:bi,codeBlock:Zx,colors:Nx,components:Ux,layout:Hx,logo:eP,fab:tP,overrides:nP,rightPanel:rP,schema:zx,shape:iP,sidebar:Yx,spacing:oP,typography:Jx,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},aP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Dx}},required:["languages"]},Pd={type:"object",properties:{theme:sP,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:aP,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:Rx,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:wx,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function vi(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function An(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var Mt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},Pr={rules:Mt,oas2Rules:Mt,oas3_0Rules:Mt,oas3_1Rules:Mt,async2Rules:Mt,async3Rules:Mt,arazzo1Rules:Mt,overlay1Rules:Mt},_r={preprocessors:{type:"object",additionalProperties:!0},oas2Preprocessors:{type:"object",additionalProperties:!0},oas3_0Preprocessors:{type:"object",additionalProperties:!0},oas3_1Preprocessors:{type:"object",additionalProperties:!0},async2Preprocessors:{type:"object",additionalProperties:!0},async3Preprocessors:{type:"object",additionalProperties:!0},arazzo1Preprocessors:{type:"object",additionalProperties:!0},overlay1Preprocessors:{type:"object",additionalProperties:!0}},Cr={decorators:{type:"object",additionalProperties:!0},oas2Decorators:{type:"object",additionalProperties:!0},oas3_0Decorators:{type:"object",additionalProperties:!0},oas3_1Decorators:{type:"object",additionalProperties:!0},async2Decorators:{type:"object",additionalProperties:!0},async3Decorators:{type:"object",additionalProperties:!0},arazzo1Decorators:{type:"object",additionalProperties:!0},overlay1Decorators:{type:"object",additionalProperties:!0}};var Re={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},_d={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},ua={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}}}},la={type:"array",items:Object.assign(Object.assign({},ua),{properties:Object.assign(Object.assign({},ua.properties),{items:{type:"array",items:ua}})})},cP={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},uP={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},lP={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},pP={type:"object",properties:Object.assign({facets:lP},Re.properties),additionalProperties:!1},dP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},xi={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Pi={type:"object",properties:Object.assign({items:la},Re.properties),additionalProperties:!1},_i={type:"object",additionalProperties:cP},Ci={type:"object",properties:Object.assign({items:la,copyrightText:{type:"string"},logo:Re},Re.properties),additionalProperties:!1},Si={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Re.properties),additionalProperties:!1},Di={type:"object",properties:{head:{type:"array",items:_d},body:{type:"array",items:_d}},additionalProperties:!1},Ri={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},wi={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:uP,filters:pP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:dP}},Re.properties),additionalProperties:!1},Ti={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Re.properties),additionalProperties:!1},fP={type:"object",properties:Object.assign(Object.assign({},Re.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1},ki={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},actions:fP},additionalProperties:!1},Ai={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Re.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},Oi={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["_partials"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Re.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Re.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},On=Object.assign(Object.assign({},gi),{properties:Object.assign(Object.assign({},gi.properties),Pd.properties)}),gP={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},mP={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},hP={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},yP={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},bP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},vP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},xP={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},pa={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},PP={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:pa}},additionalProperties:!1,required:["trackingId"]},qi={type:"object",properties:{adobe:gP,amplitude:mP,fullstory:hP,heap:yP,rudderstack:bP,segment:vP,gtm:xP,ga:PP}},Ni={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},Re.properties),additionalProperties:!1},Ei={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},ji={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},_P={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},CP={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:_P},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:la,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},qn={type:"object",patternProperties:{".*":CP}},Mi={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},Pr),_r),Cr),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}};var SP={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},DP={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},RP={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},St={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:DP},excludes:{type:"array",items:SP},filters:{type:"array",items:RP},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},wP={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},TP={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:wP},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},kP={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:TP,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},AP={type:"object",additionalProperties:kP},Li={type:"object",properties:{entityTypes:AP,catalogs:{type:"object",properties:{all:St,services:St,domains:St,teams:St,users:St,apiDescriptions:St,dataSchemas:St,apiOperations:St},additionalProperties:St}},additionalProperties:!1};var Je={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:xi,navbar:Pi,products:_i,footer:Ci,sidebar:Si,scripts:Di,links:Ri,feedback:jt,search:wi,colorMode:Ti,navigation:ki,codeSnippet:Ai,markdown:Oi,openapi:On,graphql:kn,analytics:qi,userMenu:Ni,versionPicker:Ei,breadcrumbs:ji,catalog:qn,entitiesCatalog:Li,catalogClassic:qn,scorecard:Mi},additionalProperties:!0};var fa="https://redocly.com/sso/teams",Nn;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(Nn||(Nn={}));var En;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(En||(En={}));var da;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(da||(da={}));function Fi(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>{if(n!==t)return typeof r!="object"||!r?[n,r]:Array.isArray(r)?[n,r.map(i=>typeof i=="object"?Fi(i,t):i)]:[n,Fi(r,t)]}).filter(Boolean))}var OP={type:"object",additionalProperties:{type:"string"}},qP={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Ii={type:"string",enum:["error","warn","off"]},NP={type:"object",additionalProperties:!1,properties:{schemaCheck:Ii,statusCodeCheck:Ii,contentTypeCheck:Ii,successCriteriaCheck:Ii}},EP={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},jP={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},Cd={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[EP,jP]},inputs:OP,servers:qP,severity:NP},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var MP={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},LP={type:"object",properties:{type:{type:"string",const:Nn.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:MP,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},FP={type:"object",properties:{type:{type:"string",const:Nn.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:fa},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},IP={oneOf:[LP,FP],discriminator:{propertyName:"type"}},UP={type:"object",additionalProperties:IP},WP={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},BP={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},HP={type:"object",additionalProperties:BP,default:{}},ha={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:On,graphql:kn,theme:{type:"object",properties:{openapi:On,graphql:kn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Pr),_r),Cr),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},zP={type:"object",additionalProperties:!0},$P={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Sd={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},Dd={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:Sd},default:{llmstxt:Sd.default},additionalProperties:!1},VP={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},cn={type:"object",additionalProperties:{type:"string"}},wd={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:cn,cms:cn,reunite:cn,features:{type:"object",properties:{aiSearch:cn},additionalProperties:!1},content:{type:"object",properties:{"**":cn},additionalProperties:cn}},additionalProperties:cn},YP={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},KP={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},GP={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[YP,KP]}},additionalProperties:!1,required:["type","apiBaseUrl"]},QP={type:"object",properties:{type:{type:"string",const:En.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},JP={type:"object",properties:{type:{type:"string",const:En.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},ga={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[QP,JP],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},XP=Object.assign(Object.assign({},ga),{properties:Object.assign(Object.assign({},ga.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),ZP={type:"object",oneOf:[ga,XP,GP],discriminator:{propertyName:"type"}},e_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:ZP}}},Rd={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},t_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},ma={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:HP,seo:Dd,rbac:wd,apiFunctions:VP,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:t_}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:ha},extends:{type:"array",items:{type:"string"}}},Pr),Cr),_r),{ssoDirect:UP,sso:WP,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:e_,removeAttribution:{type:"boolean"},i18n:Rd,l10n:Rd,metadata:zP,metadataGlobs:$P,ignore:{type:"array",items:{type:"string"}},theme:Je,reunite:Cd,logo:xi,navbar:Pi,products:_i,footer:Ci,sidebar:Si,scripts:Di,links:Ri,feedback:jt,search:wi,colorMode:Ti,navigation:ki,codeSnippet:Ai,markdown:Oi,openapi:On,graphql:kn,analytics:qi,userMenu:Ni,versionPicker:Ei,breadcrumbs:ji,catalog:qn,entitiesCatalog:Li,catalogClassic:qn,scorecard:Mi}),default:{redirects:{},seo:Dd.default},additionalProperties:!0},n_=Object.assign(Object.assign({},Fi(ma,"default")),{additionalProperties:!1}),ya=Object.assign(Object.assign({$id:"root-redocly-config"},ma),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},ma.properties),{env:{type:"object",additionalProperties:n_}}),default:{},additionalProperties:!1});var ba={type:"object",properties:{logo:Je.properties.logo,navbar:Je.properties.navbar,footer:Je.properties.footer,sidebar:Je.properties.sidebar,search:Je.properties.search,codeSnippet:Je.properties.codeSnippet,breadcrumbs:Je.properties.breadcrumbs,openapi:Je.properties.openapi,feedback:Je.properties.feedback,analytics:{type:"object",properties:{ga:pa}}},additionalProperties:!0,default:{}},r_={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},ba.properties),{apis:{type:"object",additionalProperties:ha},theme:ba}),additionalProperties:!1};var Le=Fe(Gt(),1);import{getLineColLocation as d0,lintDocument as f0,makeDocumentFromString as gl,lintConfig as g0,detectSpec as m0,createConfigTypes as h0}from"@redocly/openapi-core";import{bundleDocument as i0,isPlainObject as o0,makeDocumentFromString as s0}from"@redocly/openapi-core";var zh=new Map,ss=new Map;function a0(e){return e?Array.from(e).map(([t,n])=>[t,Zs(n)]):[]}async function dl(e,t){let n=await Rn(),r=new Ct(n.resolve),i=s0(e.getText(),e.uri),{bundle:o,problems:s,fileDependencies:a,rootType:c,refTypes:l}=await i0({document:i,config:n,externalRefResolver:r}),d=a0(l);l&&(ss=new Map([...ss,...l])),zh.set(e.uri,{uri:e.uri,name:fr(e.uri),definition:o0(o.parsed)?o.parsed:{},rootType:c,refTypes:d,errors:t})}function c0(){return Array.from(zh).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:fr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function fl(e){return ss.has(e)?ss.get(e):null}import{createConfig as u0,lintDocument as l0}from"@redocly/openapi-core";async function $h(e,t,n,r,i){let o=[];for(let s of n?.levels||[]){let a=typeof i=="string"?await p0(i):i,c=await u0({...s,plugins:a},{configPath:r}),l=await l0({document:e,externalRefResolver:t,config:c});o.push(...l.filter(({ignored:d})=>!d).map(d=>({...d,scorecardLevel:s.name})))}return o}async function p0(e){if(!e)return[];try{let t=e.replaceAll("__redocly_dirname",`"${typeof __dirname<"u"?__dirname:""}"`);return(await import(`data:text/javascript;base64,${btoa(t)}`)).default.map(s=>s())}catch(t){return console.error("Failed to load plugins module:",t.message),console.error(`
69
+ `&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Xe.create(0,t);for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return Xe.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function a(y,R,F){return t.call(y)==="[object Number]"&&R<=y&&y<=F}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function l(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=l;function d(y){return t.call(y)==="[object Function]"}e.func=d;function h(y){return y!==null&&typeof y=="object"}e.objectLiteral=h;function v(y,R){return Array.isArray(y)&&y.every(R)}e.typedArray=v})(f||(f={}))});var se=S(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.ProtocolNotificationType=He.ProtocolNotificationType0=He.ProtocolRequestType=He.ProtocolRequestType0=He.RegistrationType=He.MessageDirection=void 0;var Kn=ln(),tf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(tf||(He.MessageDirection=tf={}));var Au=class{constructor(t){this.method=t}};He.RegistrationType=Au;var Ou=class extends Kn.RequestType0{constructor(t){super(t)}};He.ProtocolRequestType0=Ou;var qu=class extends Kn.RequestType{constructor(t){super(t,Kn.ParameterStructures.byName)}};He.ProtocolRequestType=qu;var Nu=class extends Kn.NotificationType0{constructor(t){super(t)}};He.ProtocolNotificationType0=Nu;var Eu=class extends Kn.NotificationType{constructor(t){super(t,Kn.ParameterStructures.byName)}};He.ProtocolNotificationType=Eu});var mo=S(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.objectLiteral=be.typedArray=be.stringArray=be.array=be.func=be.error=be.number=be.string=be.boolean=void 0;function O_(e){return e===!0||e===!1}be.boolean=O_;function nf(e){return typeof e=="string"||e instanceof String}be.string=nf;function q_(e){return typeof e=="number"||e instanceof Number}be.number=q_;function N_(e){return e instanceof Error}be.error=N_;function E_(e){return typeof e=="function"}be.func=E_;function rf(e){return Array.isArray(e)}be.array=rf;function j_(e){return rf(e)&&e.every(t=>nf(t))}be.stringArray=j_;function M_(e,t){return Array.isArray(e)&&e.every(t)}be.typedArray=M_;function L_(e){return e!==null&&typeof e=="object"}be.objectLiteral=L_});var af=S(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.ImplementationRequest=void 0;var of=se(),sf;(function(e){e.method="textDocument/implementation",e.messageDirection=of.MessageDirection.clientToServer,e.type=new of.ProtocolRequestType(e.method)})(sf||(ho.ImplementationRequest=sf={}))});var lf=S(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.TypeDefinitionRequest=void 0;var cf=se(),uf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=cf.MessageDirection.clientToServer,e.type=new cf.ProtocolRequestType(e.method)})(uf||(yo.TypeDefinitionRequest=uf={}))});var ff=S(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.DidChangeWorkspaceFoldersNotification=Gn.WorkspaceFoldersRequest=void 0;var bo=se(),pf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=bo.MessageDirection.serverToClient,e.type=new bo.ProtocolRequestType0(e.method)})(pf||(Gn.WorkspaceFoldersRequest=pf={}));var df;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=bo.MessageDirection.clientToServer,e.type=new bo.ProtocolNotificationType(e.method)})(df||(Gn.DidChangeWorkspaceFoldersNotification=df={}))});var hf=S(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.ConfigurationRequest=void 0;var gf=se(),mf;(function(e){e.method="workspace/configuration",e.messageDirection=gf.MessageDirection.serverToClient,e.type=new gf.ProtocolRequestType(e.method)})(mf||(vo.ConfigurationRequest=mf={}))});var vf=S(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.ColorPresentationRequest=Qn.DocumentColorRequest=void 0;var xo=se(),yf;(function(e){e.method="textDocument/documentColor",e.messageDirection=xo.MessageDirection.clientToServer,e.type=new xo.ProtocolRequestType(e.method)})(yf||(Qn.DocumentColorRequest=yf={}));var bf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=xo.MessageDirection.clientToServer,e.type=new xo.ProtocolRequestType(e.method)})(bf||(Qn.ColorPresentationRequest=bf={}))});var _f=S(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.FoldingRangeRefreshRequest=Jn.FoldingRangeRequest=void 0;var Po=se(),xf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=Po.MessageDirection.clientToServer,e.type=new Po.ProtocolRequestType(e.method)})(xf||(Jn.FoldingRangeRequest=xf={}));var Pf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=Po.MessageDirection.serverToClient,e.type=new Po.ProtocolRequestType0(e.method)})(Pf||(Jn.FoldingRangeRefreshRequest=Pf={}))});var Df=S(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.DeclarationRequest=void 0;var Cf=se(),Sf;(function(e){e.method="textDocument/declaration",e.messageDirection=Cf.MessageDirection.clientToServer,e.type=new Cf.ProtocolRequestType(e.method)})(Sf||(_o.DeclarationRequest=Sf={}))});var Tf=S(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.SelectionRangeRequest=void 0;var Rf=se(),wf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Rf.MessageDirection.clientToServer,e.type=new Rf.ProtocolRequestType(e.method)})(wf||(Co.SelectionRangeRequest=wf={}))});var qf=S(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.WorkDoneProgressCancelNotification=Wt.WorkDoneProgressCreateRequest=Wt.WorkDoneProgress=void 0;var F_=ln(),So=se(),kf;(function(e){e.type=new F_.ProgressType;function t(n){return n===e.type}e.is=t})(kf||(Wt.WorkDoneProgress=kf={}));var Af;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=So.MessageDirection.serverToClient,e.type=new So.ProtocolRequestType(e.method)})(Af||(Wt.WorkDoneProgressCreateRequest=Af={}));var Of;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=So.MessageDirection.clientToServer,e.type=new So.ProtocolNotificationType(e.method)})(Of||(Wt.WorkDoneProgressCancelNotification=Of={}))});var Mf=S(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.CallHierarchyOutgoingCallsRequest=Bt.CallHierarchyIncomingCallsRequest=Bt.CallHierarchyPrepareRequest=void 0;var Xn=se(),Nf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(Nf||(Bt.CallHierarchyPrepareRequest=Nf={}));var Ef;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(Ef||(Bt.CallHierarchyIncomingCallsRequest=Ef={}));var jf;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(jf||(Bt.CallHierarchyOutgoingCallsRequest=jf={}))});var Bf=S(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.SemanticTokensRefreshRequest=ze.SemanticTokensRangeRequest=ze.SemanticTokensDeltaRequest=ze.SemanticTokensRequest=ze.SemanticTokensRegistrationType=ze.TokenFormat=void 0;var Rt=se(),Lf;(function(e){e.Relative="relative"})(Lf||(ze.TokenFormat=Lf={}));var Lr;(function(e){e.method="textDocument/semanticTokens",e.type=new Rt.RegistrationType(e.method)})(Lr||(ze.SemanticTokensRegistrationType=Lr={}));var Ff;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=Rt.MessageDirection.clientToServer,e.type=new Rt.ProtocolRequestType(e.method),e.registrationMethod=Lr.method})(Ff||(ze.SemanticTokensRequest=Ff={}));var If;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=Rt.MessageDirection.clientToServer,e.type=new Rt.ProtocolRequestType(e.method),e.registrationMethod=Lr.method})(If||(ze.SemanticTokensDeltaRequest=If={}));var Uf;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=Rt.MessageDirection.clientToServer,e.type=new Rt.ProtocolRequestType(e.method),e.registrationMethod=Lr.method})(Uf||(ze.SemanticTokensRangeRequest=Uf={}));var Wf;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=Rt.MessageDirection.serverToClient,e.type=new Rt.ProtocolRequestType0(e.method)})(Wf||(ze.SemanticTokensRefreshRequest=Wf={}))});var $f=S(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.ShowDocumentRequest=void 0;var Hf=se(),zf;(function(e){e.method="window/showDocument",e.messageDirection=Hf.MessageDirection.serverToClient,e.type=new Hf.ProtocolRequestType(e.method)})(zf||(Do.ShowDocumentRequest=zf={}))});var Kf=S(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.LinkedEditingRangeRequest=void 0;var Vf=se(),Yf;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=Vf.MessageDirection.clientToServer,e.type=new Vf.ProtocolRequestType(e.method)})(Yf||(Ro.LinkedEditingRangeRequest=Yf={}))});var ng=S(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.WillDeleteFilesRequest=Ee.DidDeleteFilesNotification=Ee.DidRenameFilesNotification=Ee.WillRenameFilesRequest=Ee.DidCreateFilesNotification=Ee.WillCreateFilesRequest=Ee.FileOperationPatternKind=void 0;var Ze=se(),Gf;(function(e){e.file="file",e.folder="folder"})(Gf||(Ee.FileOperationPatternKind=Gf={}));var Qf;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(Qf||(Ee.WillCreateFilesRequest=Qf={}));var Jf;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Jf||(Ee.DidCreateFilesNotification=Jf={}));var Xf;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(Xf||(Ee.WillRenameFilesRequest=Xf={}));var Zf;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Zf||(Ee.DidRenameFilesNotification=Zf={}));var eg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(eg||(Ee.DidDeleteFilesNotification=eg={}));var tg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(tg||(Ee.WillDeleteFilesRequest=tg={}))});var ag=S(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.MonikerRequest=Ht.MonikerKind=Ht.UniquenessLevel=void 0;var rg=se(),ig;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(ig||(Ht.UniquenessLevel=ig={}));var og;(function(e){e.$import="import",e.$export="export",e.local="local"})(og||(Ht.MonikerKind=og={}));var sg;(function(e){e.method="textDocument/moniker",e.messageDirection=rg.MessageDirection.clientToServer,e.type=new rg.ProtocolRequestType(e.method)})(sg||(Ht.MonikerRequest=sg={}))});var pg=S(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.TypeHierarchySubtypesRequest=zt.TypeHierarchySupertypesRequest=zt.TypeHierarchyPrepareRequest=void 0;var Zn=se(),cg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(cg||(zt.TypeHierarchyPrepareRequest=cg={}));var ug;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(ug||(zt.TypeHierarchySupertypesRequest=ug={}));var lg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(lg||(zt.TypeHierarchySubtypesRequest=lg={}))});var gg=S(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.InlineValueRefreshRequest=er.InlineValueRequest=void 0;var wo=se(),dg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=wo.MessageDirection.clientToServer,e.type=new wo.ProtocolRequestType(e.method)})(dg||(er.InlineValueRequest=dg={}));var fg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=wo.MessageDirection.serverToClient,e.type=new wo.ProtocolRequestType0(e.method)})(fg||(er.InlineValueRefreshRequest=fg={}))});var bg=S($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.InlayHintRefreshRequest=$t.InlayHintResolveRequest=$t.InlayHintRequest=void 0;var tr=se(),mg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(mg||($t.InlayHintRequest=mg={}));var hg;(function(e){e.method="inlayHint/resolve",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(hg||($t.InlayHintResolveRequest=hg={}));var yg;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=tr.MessageDirection.serverToClient,e.type=new tr.ProtocolRequestType0(e.method)})(yg||($t.InlayHintRefreshRequest=yg={}))});var Dg=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DiagnosticRefreshRequest=et.WorkspaceDiagnosticRequest=et.DocumentDiagnosticRequest=et.DocumentDiagnosticReportKind=et.DiagnosticServerCancellationData=void 0;var Sg=ln(),I_=mo(),nr=se(),vg;(function(e){function t(n){let r=n;return r&&I_.boolean(r.retriggerRequest)}e.is=t})(vg||(et.DiagnosticServerCancellationData=vg={}));var xg;(function(e){e.Full="full",e.Unchanged="unchanged"})(xg||(et.DocumentDiagnosticReportKind=xg={}));var Pg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method),e.partialResult=new Sg.ProgressType})(Pg||(et.DocumentDiagnosticRequest=Pg={}));var _g;(function(e){e.method="workspace/diagnostic",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method),e.partialResult=new Sg.ProgressType})(_g||(et.WorkspaceDiagnosticRequest=_g={}));var Cg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=nr.MessageDirection.serverToClient,e.type=new nr.ProtocolRequestType0(e.method)})(Cg||(et.DiagnosticRefreshRequest=Cg={}))});var qg=S(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.DidCloseNotebookDocumentNotification=de.DidSaveNotebookDocumentNotification=de.DidChangeNotebookDocumentNotification=de.NotebookCellArrayChange=de.DidOpenNotebookDocumentNotification=de.NotebookDocumentSyncRegistrationType=de.NotebookDocument=de.NotebookCell=de.ExecutionSummary=de.NotebookCellKind=void 0;var Fr=(go(),Xr(fo)),ct=mo(),ht=se(),ju;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(ju||(de.NotebookCellKind=ju={}));var Mu;(function(e){function t(i,o){let s={executionOrder:i};return(o===!0||o===!1)&&(s.success=o),s}e.create=t;function n(i){let o=i;return ct.objectLiteral(o)&&Fr.uinteger.is(o.executionOrder)&&(o.success===void 0||ct.boolean(o.success))}e.is=n;function r(i,o){return i===o?!0:i==null||o===null||o===void 0?!1:i.executionOrder===o.executionOrder&&i.success===o.success}e.equals=r})(Mu||(de.ExecutionSummary=Mu={}));var To;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ct.objectLiteral(s)&&ju.is(s.kind)&&Fr.DocumentUri.is(s.document)&&(s.metadata===void 0||ct.objectLiteral(s.metadata))}e.is=n;function r(o,s){let a=new Set;return o.document!==s.document&&a.add("document"),o.kind!==s.kind&&a.add("kind"),o.executionSummary!==s.executionSummary&&a.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!i(o.metadata,s.metadata)&&a.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!Mu.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}e.diff=r;function i(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let a=Array.isArray(o),c=Array.isArray(s);if(a!==c)return!1;if(a&&c){if(o.length!==s.length)return!1;for(let l=0;l<o.length;l++)if(!i(o[l],s[l]))return!1}if(ct.objectLiteral(o)&&ct.objectLiteral(s)){let l=Object.keys(o),d=Object.keys(s);if(l.length!==d.length||(l.sort(),d.sort(),!i(l,d)))return!1;for(let h=0;h<l.length;h++){let v=l[h];if(!i(o[v],s[v]))return!1}}return!0}})(To||(de.NotebookCell=To={}));var Rg;(function(e){function t(r,i,o,s){return{uri:r,notebookType:i,version:o,cells:s}}e.create=t;function n(r){let i=r;return ct.objectLiteral(i)&&ct.string(i.uri)&&Fr.integer.is(i.version)&&ct.typedArray(i.cells,To.is)}e.is=n})(Rg||(de.NotebookDocument=Rg={}));var rr;(function(e){e.method="notebookDocument/sync",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.RegistrationType(e.method)})(rr||(de.NotebookDocumentSyncRegistrationType=rr={}));var wg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(wg||(de.DidOpenNotebookDocumentNotification=wg={}));var Tg;(function(e){function t(r){let i=r;return ct.objectLiteral(i)&&Fr.uinteger.is(i.start)&&Fr.uinteger.is(i.deleteCount)&&(i.cells===void 0||ct.typedArray(i.cells,To.is))}e.is=t;function n(r,i,o){let s={start:r,deleteCount:i};return o!==void 0&&(s.cells=o),s}e.create=n})(Tg||(de.NotebookCellArrayChange=Tg={}));var kg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(kg||(de.DidChangeNotebookDocumentNotification=kg={}));var Ag;(function(e){e.method="notebookDocument/didSave",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Ag||(de.DidSaveNotebookDocumentNotification=Ag={}));var Og;(function(e){e.method="notebookDocument/didClose",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Og||(de.DidCloseNotebookDocumentNotification=Og={}))});var jg=S(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.InlineCompletionRequest=void 0;var Ng=se(),Eg;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=Ng.MessageDirection.clientToServer,e.type=new Ng.ProtocolRequestType(e.method)})(Eg||(ko.InlineCompletionRequest=Eg={}))});var Km=S(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.WorkspaceSymbolRequest=u.CodeActionResolveRequest=u.CodeActionRequest=u.DocumentSymbolRequest=u.DocumentHighlightRequest=u.ReferencesRequest=u.DefinitionRequest=u.SignatureHelpRequest=u.SignatureHelpTriggerKind=u.HoverRequest=u.CompletionResolveRequest=u.CompletionRequest=u.CompletionTriggerKind=u.PublishDiagnosticsNotification=u.WatchKind=u.RelativePattern=u.FileChangeType=u.DidChangeWatchedFilesNotification=u.WillSaveTextDocumentWaitUntilRequest=u.WillSaveTextDocumentNotification=u.TextDocumentSaveReason=u.DidSaveTextDocumentNotification=u.DidCloseTextDocumentNotification=u.DidChangeTextDocumentNotification=u.TextDocumentContentChangeEvent=u.DidOpenTextDocumentNotification=u.TextDocumentSyncKind=u.TelemetryEventNotification=u.LogMessageNotification=u.ShowMessageRequest=u.ShowMessageNotification=u.MessageType=u.DidChangeConfigurationNotification=u.ExitNotification=u.ShutdownRequest=u.InitializedNotification=u.InitializeErrorCodes=u.InitializeRequest=u.WorkDoneProgressOptions=u.TextDocumentRegistrationOptions=u.StaticRegistrationOptions=u.PositionEncodingKind=u.FailureHandlingKind=u.ResourceOperationKind=u.UnregistrationRequest=u.RegistrationRequest=u.DocumentSelector=u.NotebookCellTextDocumentFilter=u.NotebookDocumentFilter=u.TextDocumentFilter=void 0;u.MonikerRequest=u.MonikerKind=u.UniquenessLevel=u.WillDeleteFilesRequest=u.DidDeleteFilesNotification=u.WillRenameFilesRequest=u.DidRenameFilesNotification=u.WillCreateFilesRequest=u.DidCreateFilesNotification=u.FileOperationPatternKind=u.LinkedEditingRangeRequest=u.ShowDocumentRequest=u.SemanticTokensRegistrationType=u.SemanticTokensRefreshRequest=u.SemanticTokensRangeRequest=u.SemanticTokensDeltaRequest=u.SemanticTokensRequest=u.TokenFormat=u.CallHierarchyPrepareRequest=u.CallHierarchyOutgoingCallsRequest=u.CallHierarchyIncomingCallsRequest=u.WorkDoneProgressCancelNotification=u.WorkDoneProgressCreateRequest=u.WorkDoneProgress=u.SelectionRangeRequest=u.DeclarationRequest=u.FoldingRangeRefreshRequest=u.FoldingRangeRequest=u.ColorPresentationRequest=u.DocumentColorRequest=u.ConfigurationRequest=u.DidChangeWorkspaceFoldersNotification=u.WorkspaceFoldersRequest=u.TypeDefinitionRequest=u.ImplementationRequest=u.ApplyWorkspaceEditRequest=u.ExecuteCommandRequest=u.PrepareRenameRequest=u.RenameRequest=u.PrepareSupportDefaultBehavior=u.DocumentOnTypeFormattingRequest=u.DocumentRangesFormattingRequest=u.DocumentRangeFormattingRequest=u.DocumentFormattingRequest=u.DocumentLinkResolveRequest=u.DocumentLinkRequest=u.CodeLensRefreshRequest=u.CodeLensResolveRequest=u.CodeLensRequest=u.WorkspaceSymbolResolveRequest=void 0;u.InlineCompletionRequest=u.DidCloseNotebookDocumentNotification=u.DidSaveNotebookDocumentNotification=u.DidChangeNotebookDocumentNotification=u.NotebookCellArrayChange=u.DidOpenNotebookDocumentNotification=u.NotebookDocumentSyncRegistrationType=u.NotebookDocument=u.NotebookCell=u.ExecutionSummary=u.NotebookCellKind=u.DiagnosticRefreshRequest=u.WorkspaceDiagnosticRequest=u.DocumentDiagnosticRequest=u.DocumentDiagnosticReportKind=u.DiagnosticServerCancellationData=u.InlayHintRefreshRequest=u.InlayHintResolveRequest=u.InlayHintRequest=u.InlineValueRefreshRequest=u.InlineValueRequest=u.TypeHierarchySupertypesRequest=u.TypeHierarchySubtypesRequest=u.TypeHierarchyPrepareRequest=void 0;var w=se(),Mg=(go(),Xr(fo)),we=mo(),U_=af();Object.defineProperty(u,"ImplementationRequest",{enumerable:!0,get:function(){return U_.ImplementationRequest}});var W_=lf();Object.defineProperty(u,"TypeDefinitionRequest",{enumerable:!0,get:function(){return W_.TypeDefinitionRequest}});var zm=ff();Object.defineProperty(u,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return zm.WorkspaceFoldersRequest}});Object.defineProperty(u,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return zm.DidChangeWorkspaceFoldersNotification}});var B_=hf();Object.defineProperty(u,"ConfigurationRequest",{enumerable:!0,get:function(){return B_.ConfigurationRequest}});var $m=vf();Object.defineProperty(u,"DocumentColorRequest",{enumerable:!0,get:function(){return $m.DocumentColorRequest}});Object.defineProperty(u,"ColorPresentationRequest",{enumerable:!0,get:function(){return $m.ColorPresentationRequest}});var Vm=_f();Object.defineProperty(u,"FoldingRangeRequest",{enumerable:!0,get:function(){return Vm.FoldingRangeRequest}});Object.defineProperty(u,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return Vm.FoldingRangeRefreshRequest}});var H_=Df();Object.defineProperty(u,"DeclarationRequest",{enumerable:!0,get:function(){return H_.DeclarationRequest}});var z_=Tf();Object.defineProperty(u,"SelectionRangeRequest",{enumerable:!0,get:function(){return z_.SelectionRangeRequest}});var Wu=qf();Object.defineProperty(u,"WorkDoneProgress",{enumerable:!0,get:function(){return Wu.WorkDoneProgress}});Object.defineProperty(u,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Wu.WorkDoneProgressCreateRequest}});Object.defineProperty(u,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Wu.WorkDoneProgressCancelNotification}});var Bu=Mf();Object.defineProperty(u,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Bu.CallHierarchyIncomingCallsRequest}});Object.defineProperty(u,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Bu.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(u,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Bu.CallHierarchyPrepareRequest}});var ir=Bf();Object.defineProperty(u,"TokenFormat",{enumerable:!0,get:function(){return ir.TokenFormat}});Object.defineProperty(u,"SemanticTokensRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRequest}});Object.defineProperty(u,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ir.SemanticTokensDeltaRequest}});Object.defineProperty(u,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRangeRequest}});Object.defineProperty(u,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRefreshRequest}});Object.defineProperty(u,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ir.SemanticTokensRegistrationType}});var $_=$f();Object.defineProperty(u,"ShowDocumentRequest",{enumerable:!0,get:function(){return $_.ShowDocumentRequest}});var V_=Kf();Object.defineProperty(u,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return V_.LinkedEditingRangeRequest}});var fn=ng();Object.defineProperty(u,"FileOperationPatternKind",{enumerable:!0,get:function(){return fn.FileOperationPatternKind}});Object.defineProperty(u,"DidCreateFilesNotification",{enumerable:!0,get:function(){return fn.DidCreateFilesNotification}});Object.defineProperty(u,"WillCreateFilesRequest",{enumerable:!0,get:function(){return fn.WillCreateFilesRequest}});Object.defineProperty(u,"DidRenameFilesNotification",{enumerable:!0,get:function(){return fn.DidRenameFilesNotification}});Object.defineProperty(u,"WillRenameFilesRequest",{enumerable:!0,get:function(){return fn.WillRenameFilesRequest}});Object.defineProperty(u,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return fn.DidDeleteFilesNotification}});Object.defineProperty(u,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return fn.WillDeleteFilesRequest}});var Hu=ag();Object.defineProperty(u,"UniquenessLevel",{enumerable:!0,get:function(){return Hu.UniquenessLevel}});Object.defineProperty(u,"MonikerKind",{enumerable:!0,get:function(){return Hu.MonikerKind}});Object.defineProperty(u,"MonikerRequest",{enumerable:!0,get:function(){return Hu.MonikerRequest}});var zu=pg();Object.defineProperty(u,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return zu.TypeHierarchyPrepareRequest}});Object.defineProperty(u,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return zu.TypeHierarchySubtypesRequest}});Object.defineProperty(u,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return zu.TypeHierarchySupertypesRequest}});var Ym=gg();Object.defineProperty(u,"InlineValueRequest",{enumerable:!0,get:function(){return Ym.InlineValueRequest}});Object.defineProperty(u,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return Ym.InlineValueRefreshRequest}});var $u=bg();Object.defineProperty(u,"InlayHintRequest",{enumerable:!0,get:function(){return $u.InlayHintRequest}});Object.defineProperty(u,"InlayHintResolveRequest",{enumerable:!0,get:function(){return $u.InlayHintResolveRequest}});Object.defineProperty(u,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return $u.InlayHintRefreshRequest}});var Ir=Dg();Object.defineProperty(u,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Ir.DiagnosticServerCancellationData}});Object.defineProperty(u,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Ir.DocumentDiagnosticReportKind}});Object.defineProperty(u,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Ir.DocumentDiagnosticRequest}});Object.defineProperty(u,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Ir.WorkspaceDiagnosticRequest}});Object.defineProperty(u,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Ir.DiagnosticRefreshRequest}});var yt=qg();Object.defineProperty(u,"NotebookCellKind",{enumerable:!0,get:function(){return yt.NotebookCellKind}});Object.defineProperty(u,"ExecutionSummary",{enumerable:!0,get:function(){return yt.ExecutionSummary}});Object.defineProperty(u,"NotebookCell",{enumerable:!0,get:function(){return yt.NotebookCell}});Object.defineProperty(u,"NotebookDocument",{enumerable:!0,get:function(){return yt.NotebookDocument}});Object.defineProperty(u,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return yt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(u,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidOpenNotebookDocumentNotification}});Object.defineProperty(u,"NotebookCellArrayChange",{enumerable:!0,get:function(){return yt.NotebookCellArrayChange}});Object.defineProperty(u,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidChangeNotebookDocumentNotification}});Object.defineProperty(u,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidSaveNotebookDocumentNotification}});Object.defineProperty(u,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidCloseNotebookDocumentNotification}});var Y_=jg();Object.defineProperty(u,"InlineCompletionRequest",{enumerable:!0,get:function(){return Y_.InlineCompletionRequest}});var Lu;(function(e){function t(n){let r=n;return we.string(r)||we.string(r.language)||we.string(r.scheme)||we.string(r.pattern)}e.is=t})(Lu||(u.TextDocumentFilter=Lu={}));var Fu;(function(e){function t(n){let r=n;return we.objectLiteral(r)&&(we.string(r.notebookType)||we.string(r.scheme)||we.string(r.pattern))}e.is=t})(Fu||(u.NotebookDocumentFilter=Fu={}));var Iu;(function(e){function t(n){let r=n;return we.objectLiteral(r)&&(we.string(r.notebook)||Fu.is(r.notebook))&&(r.language===void 0||we.string(r.language))}e.is=t})(Iu||(u.NotebookCellTextDocumentFilter=Iu={}));var Uu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!we.string(r)&&!Lu.is(r)&&!Iu.is(r))return!1;return!0}e.is=t})(Uu||(u.DocumentSelector=Uu={}));var Lg;(function(e){e.method="client/registerCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(Lg||(u.RegistrationRequest=Lg={}));var Fg;(function(e){e.method="client/unregisterCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(Fg||(u.UnregistrationRequest=Fg={}));var Ig;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(Ig||(u.ResourceOperationKind=Ig={}));var Ug;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(Ug||(u.FailureHandlingKind=Ug={}));var Wg;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(Wg||(u.PositionEncodingKind=Wg={}));var Bg;(function(e){function t(n){let r=n;return r&&we.string(r.id)&&r.id.length>0}e.hasId=t})(Bg||(u.StaticRegistrationOptions=Bg={}));var Hg;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||Uu.is(r.documentSelector))}e.is=t})(Hg||(u.TextDocumentRegistrationOptions=Hg={}));var zg;(function(e){function t(r){let i=r;return we.objectLiteral(i)&&(i.workDoneProgress===void 0||we.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&we.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(zg||(u.WorkDoneProgressOptions=zg={}));var $g;(function(e){e.method="initialize",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})($g||(u.InitializeRequest=$g={}));var Vg;(function(e){e.unknownProtocolVersion=1})(Vg||(u.InitializeErrorCodes=Vg={}));var Yg;(function(e){e.method="initialized",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Yg||(u.InitializedNotification=Yg={}));var Kg;(function(e){e.method="shutdown",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType0(e.method)})(Kg||(u.ShutdownRequest=Kg={}));var Gg;(function(e){e.method="exit",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType0(e.method)})(Gg||(u.ExitNotification=Gg={}));var Qg;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Qg||(u.DidChangeConfigurationNotification=Qg={}));var Jg;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(Jg||(u.MessageType=Jg={}));var Xg;(function(e){e.method="window/showMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Xg||(u.ShowMessageNotification=Xg={}));var Zg;(function(e){e.method="window/showMessageRequest",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(Zg||(u.ShowMessageRequest=Zg={}));var em;(function(e){e.method="window/logMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(em||(u.LogMessageNotification=em={}));var tm;(function(e){e.method="telemetry/event",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(tm||(u.TelemetryEventNotification=tm={}));var nm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(nm||(u.TextDocumentSyncKind=nm={}));var rm;(function(e){e.method="textDocument/didOpen",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(rm||(u.DidOpenTextDocumentNotification=rm={}));var im;(function(e){function t(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}e.isIncremental=t;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}e.isFull=n})(im||(u.TextDocumentContentChangeEvent=im={}));var om;(function(e){e.method="textDocument/didChange",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(om||(u.DidChangeTextDocumentNotification=om={}));var sm;(function(e){e.method="textDocument/didClose",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(sm||(u.DidCloseTextDocumentNotification=sm={}));var am;(function(e){e.method="textDocument/didSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(am||(u.DidSaveTextDocumentNotification=am={}));var cm;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(cm||(u.TextDocumentSaveReason=cm={}));var um;(function(e){e.method="textDocument/willSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(um||(u.WillSaveTextDocumentNotification=um={}));var lm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(lm||(u.WillSaveTextDocumentWaitUntilRequest=lm={}));var pm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(pm||(u.DidChangeWatchedFilesNotification=pm={}));var dm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(dm||(u.FileChangeType=dm={}));var fm;(function(e){function t(n){let r=n;return we.objectLiteral(r)&&(Mg.URI.is(r.baseUri)||Mg.WorkspaceFolder.is(r.baseUri))&&we.string(r.pattern)}e.is=t})(fm||(u.RelativePattern=fm={}));var gm;(function(e){e.Create=1,e.Change=2,e.Delete=4})(gm||(u.WatchKind=gm={}));var mm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(mm||(u.PublishDiagnosticsNotification=mm={}));var hm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(hm||(u.CompletionTriggerKind=hm={}));var ym;(function(e){e.method="textDocument/completion",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ym||(u.CompletionRequest=ym={}));var bm;(function(e){e.method="completionItem/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(bm||(u.CompletionResolveRequest=bm={}));var vm;(function(e){e.method="textDocument/hover",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(vm||(u.HoverRequest=vm={}));var xm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(xm||(u.SignatureHelpTriggerKind=xm={}));var Pm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Pm||(u.SignatureHelpRequest=Pm={}));var _m;(function(e){e.method="textDocument/definition",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(_m||(u.DefinitionRequest=_m={}));var Cm;(function(e){e.method="textDocument/references",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Cm||(u.ReferencesRequest=Cm={}));var Sm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Sm||(u.DocumentHighlightRequest=Sm={}));var Dm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Dm||(u.DocumentSymbolRequest=Dm={}));var Rm;(function(e){e.method="textDocument/codeAction",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Rm||(u.CodeActionRequest=Rm={}));var wm;(function(e){e.method="codeAction/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(wm||(u.CodeActionResolveRequest=wm={}));var Tm;(function(e){e.method="workspace/symbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Tm||(u.WorkspaceSymbolRequest=Tm={}));var km;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(km||(u.WorkspaceSymbolResolveRequest=km={}));var Am;(function(e){e.method="textDocument/codeLens",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Am||(u.CodeLensRequest=Am={}));var Om;(function(e){e.method="codeLens/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Om||(u.CodeLensResolveRequest=Om={}));var qm;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType0(e.method)})(qm||(u.CodeLensRefreshRequest=qm={}));var Nm;(function(e){e.method="textDocument/documentLink",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Nm||(u.DocumentLinkRequest=Nm={}));var Em;(function(e){e.method="documentLink/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Em||(u.DocumentLinkResolveRequest=Em={}));var jm;(function(e){e.method="textDocument/formatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(jm||(u.DocumentFormattingRequest=jm={}));var Mm;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Mm||(u.DocumentRangeFormattingRequest=Mm={}));var Lm;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Lm||(u.DocumentRangesFormattingRequest=Lm={}));var Fm;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Fm||(u.DocumentOnTypeFormattingRequest=Fm={}));var Im;(function(e){e.Identifier=1})(Im||(u.PrepareSupportDefaultBehavior=Im={}));var Um;(function(e){e.method="textDocument/rename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Um||(u.RenameRequest=Um={}));var Wm;(function(e){e.method="textDocument/prepareRename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Wm||(u.PrepareRenameRequest=Wm={}));var Bm;(function(e){e.method="workspace/executeCommand",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Bm||(u.ExecuteCommandRequest=Bm={}));var Hm;(function(e){e.method="workspace/applyEdit",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType("workspace/applyEdit")})(Hm||(u.ApplyWorkspaceEditRequest=Hm={}))});var Qm=S(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.createProtocolConnection=void 0;var Gm=ln();function K_(e,t,n,r){return Gm.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Gm.createMessageConnection)(e,t,n,r)}Ao.createProtocolConnection=K_});var Xm=S($e=>{"use strict";var G_=$e&&$e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Oo=$e&&$e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&G_(t,e,n)};Object.defineProperty($e,"__esModule",{value:!0});$e.LSPErrorCodes=$e.createProtocolConnection=void 0;Oo(ln(),$e);Oo((go(),Xr(fo)),$e);Oo(se(),$e);Oo(Km(),$e);var Q_=Qm();Object.defineProperty($e,"createProtocolConnection",{enumerable:!0,get:function(){return Q_.createProtocolConnection}});var Jm;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(Jm||($e.LSPErrorCodes=Jm={}))});var ye=S(bt=>{"use strict";var J_=bt&&bt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Zm=bt&&bt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&J_(t,e,n)};Object.defineProperty(bt,"__esModule",{value:!0});bt.createProtocolConnection=void 0;var X_=wc();Zm(wc(),bt);Zm(Xm(),bt);function Z_(e,t,n,r){return(0,X_.createMessageConnection)(e,t,n,r)}bt.createProtocolConnection=Z_});var Yu=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.SemanticTokensBuilder=Vt.SemanticTokensDiff=Vt.SemanticTokensFeature=void 0;var qo=ye(),eC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(qo.SemanticTokensRefreshRequest.type),on:t=>{let n=qo.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=qo.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=qo.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Vt.SemanticTokensFeature=eC;var No=class{constructor(t,n){this.originalSequence=t,this.modifiedSequence=n}computeDiff(){let t=this.originalSequence.length,n=this.modifiedSequence.length,r=0;for(;r<n&&r<t&&this.originalSequence[r]===this.modifiedSequence[r];)r++;if(r<n&&r<t){let i=t-1,o=n-1;for(;i>=r&&o>=r&&this.originalSequence[i]===this.modifiedSequence[o];)i--,o--;(i<r||o<r)&&(i++,o++);let s=i-r+1,a=this.modifiedSequence.slice(r,o+1);return a.length===1&&a[0]===this.originalSequence[i]?[{start:r,deleteCount:s-1}]:[{start:r,deleteCount:s,data:a}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<t?[{start:r,deleteCount:t-r}]:[]}};Vt.SemanticTokensDiff=No;var Vu=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(t,n,r,i,o){let s=t,a=n;this._dataLen>0&&(s-=this._prevLine,s===0&&(a-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=o,this._prevLine=t,this._prevChar=n}get id(){return this._id.toString()}previousResult(t){this.id===t&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new No(this._prevData,this._data).computeDiff()}:this.build()}};Vt.SemanticTokensBuilder=Vu});var eh=S(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.InlineCompletionFeature=void 0;var tC=ye(),nC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(tC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Eo.InlineCompletionFeature=nC});var Gu=S(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.TextDocuments=void 0;var gn=ye(),Ku=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new gn.Emitter,this._onDidOpen=new gn.Emitter,this._onDidClose=new gn.Emitter,this._onDidSave=new gn.Emitter,this._onWillSave=new gn.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(t){this._willSaveWaitUntil=t}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(t){return this._syncedDocuments.get(t)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(t){t.__textDocumentSync=gn.TextDocumentSyncKind.Incremental;let n=[];return n.push(t.onDidOpenTextDocument(r=>{let i=r.textDocument,o=this._configuration.create(i.uri,i.languageId,i.version,i.text);this._syncedDocuments.set(i.uri,o);let s=Object.freeze({document:o});this._onDidOpen.fire(s),this._onDidChangeContent.fire(s)})),n.push(t.onDidChangeTextDocument(r=>{let i=r.textDocument,o=r.contentChanges;if(o.length===0)return;let{version:s}=i;if(s==null)throw new Error(`Received document change event for ${i.uri} without valid version identifier`);let a=this._syncedDocuments.get(i.uri);a!==void 0&&(a=this._configuration.update(a,o,s),this._syncedDocuments.set(i.uri,a),this._onDidChangeContent.fire(Object.freeze({document:a})))})),n.push(t.onDidCloseTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&(this._syncedDocuments.delete(r.textDocument.uri),this._onDidClose.fire(Object.freeze({document:i})))})),n.push(t.onWillSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onWillSave.fire(Object.freeze({document:i,reason:r.reason}))})),n.push(t.onWillSaveTextDocumentWaitUntil((r,i)=>{let o=this._syncedDocuments.get(r.textDocument.uri);return o!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:o,reason:r.reason}),i):[]})),n.push(t.onDidSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onDidSave.fire(Object.freeze({document:i}))})),gn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};jo.TextDocuments=Ku});var Ju=S(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.NotebookDocuments=or.NotebookSyncFeature=void 0;var tt=ye(),th=Gu(),rC=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(tt.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(tt.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(tt.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(tt.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};or.NotebookSyncFeature=rC;var Mo=class e{onDidOpenTextDocument(t){return this.openHandler=t,tt.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,tt.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,tt.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(t){this.closeHandler&&this.closeHandler(t)}onWillSaveTextDocument(){return e.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return e.NULL_DISPOSE}onDidSaveTextDocument(){return e.NULL_DISPOSE}};Mo.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var Qu=class{constructor(t){t instanceof th.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new th.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new tt.Emitter,this._onDidChange=new tt.Emitter,this._onDidSave=new tt.Emitter,this._onDidClose=new tt.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(t){return this._cellTextDocuments.get(t.document)}getNotebookDocument(t){return this.notebookDocuments.get(t)}getNotebookCell(t){let n=this.notebookCellMap.get(t);return n&&n[0]}findNotebookDocumentForCell(t){let n=typeof t=="string"?t:t.document,r=this.notebookCellMap.get(n);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(t){let n=new Mo,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let l=[],d=[],h=[],v=[];if(c.cells!==void 0){let Y=c.cells;if(Y.structure!==void 0){let m=Y.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),Y.structure.didOpen!==void 0)for(let g of Y.structure.didOpen)n.openTextDocument({textDocument:g}),l.push(g.uri);if(Y.structure.didClose)for(let g of Y.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(Y.data!==void 0){let m=new Map(Y.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let T=m.get(o.cells[g].document);if(T!==void 0){let V=o.cells.splice(g,1,T);if(h.push({old:V[0],new:T}),m.delete(T.document),m.size===0)break}}}if(Y.textContent!==void 0)for(let m of Y.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),v.push(m.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let R=[];for(let Y of l)R.push(this.getNotebookCell(Y));let F=[];for(let Y of d)F.push(this.getNotebookCell(Y));let $=[];for(let Y of v)$.push(this.getNotebookCell(Y));(R.length>0||F.length>0||h.length>0||$.length>0)&&(y.cells={added:R,removed:F,changed:{data:h,textContent:$}}),(y.metadata!==void 0||y.cells!==void 0)&&this._onDidChange.fire(y)})),r.push(t.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(t.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),tt.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};or.NotebookDocuments=Qu});var Xu=S(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.thenable=ve.typedArray=ve.stringArray=ve.array=ve.func=ve.error=ve.number=ve.string=ve.boolean=void 0;function iC(e){return e===!0||e===!1}ve.boolean=iC;function nh(e){return typeof e=="string"||e instanceof String}ve.string=nh;function oC(e){return typeof e=="number"||e instanceof Number}ve.number=oC;function sC(e){return e instanceof Error}ve.error=sC;function rh(e){return typeof e=="function"}ve.func=rh;function ih(e){return Array.isArray(e)}ve.array=ih;function aC(e){return ih(e)&&e.every(t=>nh(t))}ve.stringArray=aC;function cC(e,t){return Array.isArray(e)&&e.every(t)}ve.typedArray=cC;function uC(e){return e&&rh(e.then)}ve.thenable=uC});var Zu=S(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.generateUuid=nt.parse=nt.isUUID=nt.v4=nt.empty=void 0;var Ur=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Wr=class e extends Ur{static _oneOf(t){return t[Math.floor(t.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(""))}};Wr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Wr._timeHighBits=["8","9","a","b"];nt.empty=new Ur("00000000-0000-0000-0000-000000000000");function oh(){return new Wr}nt.v4=oh;var lC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function sh(e){return lC.test(e)}nt.isUUID=sh;function pC(e){if(!sh(e))throw new Error("invalid uuid");return new Ur(e)}nt.parse=pC;function dC(){return oh().asHex()}nt.generateUuid=dC});var ah=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.attachPartialResult=Kt.ProgressFeature=Kt.attachWorkDone=void 0;var Yt=ye(),fC=Zu(),mn=class e{constructor(t,n){this._connection=t,this._token=n,e.Instances.set(this._token,this)}begin(t,n,r,i){let o={kind:"begin",title:t,percentage:n,message:r,cancellable:i};this._connection.sendProgress(Yt.WorkDoneProgress.type,this._token,o)}report(t,n){let r={kind:"report"};typeof t=="number"?(r.percentage=t,n!==void 0&&(r.message=n)):r.message=t,this._connection.sendProgress(Yt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Yt.WorkDoneProgress.type,this._token,{kind:"end"})}};mn.Instances=new Map;var Lo=class extends mn{constructor(t,n){super(t,n),this._source=new Yt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Br=class{constructor(){}begin(){}report(){}done(){}},Fo=class extends Br{constructor(){super(),this._source=new Yt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function gC(e,t){if(t===void 0||t.workDoneToken===void 0)return new Br;let n=t.workDoneToken;return delete t.workDoneToken,new mn(e,n)}Kt.attachWorkDone=gC;var mC=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Yt.WorkDoneProgressCancelNotification.type,n=>{let r=mn.Instances.get(n.token);(r instanceof Lo||r instanceof Fo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Br:new mn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,fC.generateUuid)();return this.connection.sendRequest(Yt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Lo(this.connection,t))}else return Promise.resolve(new Fo)}};Kt.ProgressFeature=mC;var el;(function(e){e.type=new Yt.ProgressType})(el||(el={}));var tl=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(el.type,this._token,t)}};function hC(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new tl(e,n)}Kt.attachPartialResult=hC});var ch=S(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.ConfigurationFeature=void 0;var yC=ye(),bC=Xu(),vC=e=>class extends e{getConfiguration(t){return t?bC.string(t)?this._getConfiguration({section:t}):this._getConfiguration(t):this._getConfiguration({})}_getConfiguration(t){let n={items:Array.isArray(t)?t:[t]};return this.connection.sendRequest(yC.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};Io.ConfigurationFeature=vC});var uh=S(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.WorkspaceFoldersFeature=void 0;var Uo=ye(),xC=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Uo.Emitter,this.connection.onNotification(Uo.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}fillServerCapabilities(t){super.fillServerCapabilities(t);let n=t.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(Uo.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return!this._notificationIsAutoRegistered&&!this._unregistration&&(this._unregistration=this.connection.client.register(Uo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Wo.WorkspaceFoldersFeature=xC});var lh=S(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.CallHierarchyFeature=void 0;var nl=ye(),PC=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(nl.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=nl.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=nl.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Bo.CallHierarchyFeature=PC});var ph=S(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.ShowDocumentFeature=void 0;var _C=ye(),CC=e=>class extends e{showDocument(t){return this.connection.sendRequest(_C.ShowDocumentRequest.type,t)}};Ho.ShowDocumentFeature=CC});var dh=S(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.FileOperationsFeature=void 0;var sr=ye(),SC=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(sr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(sr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(sr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(sr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(sr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(sr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};zo.FileOperationsFeature=SC});var fh=S($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.LinkedEditingRangeFeature=void 0;var DC=ye(),RC=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(DC.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};$o.LinkedEditingRangeFeature=RC});var gh=S(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.TypeHierarchyFeature=void 0;var rl=ye(),wC=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(rl.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=rl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=rl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Vo.TypeHierarchyFeature=wC});var hh=S(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.InlineValueFeature=void 0;var mh=ye(),TC=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(mh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(mh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Yo.InlineValueFeature=TC});var bh=S(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.FoldingRangeFeature=void 0;var yh=ye(),kC=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(yh.FoldingRangeRefreshRequest.type),on:t=>{let n=yh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Ko.FoldingRangeFeature=kC});var vh=S(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.InlayHintFeature=void 0;var il=ye(),AC=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(il.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(il.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(il.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};Go.InlayHintFeature=AC});var xh=S(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.DiagnosticFeature=void 0;var Hr=ye(),OC=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Hr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Hr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Hr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Hr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Hr.WorkspaceDiagnosticRequest.partialResult,n)))}}};Qo.DiagnosticFeature=OC});var Ph=S(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.MonikerFeature=void 0;var qC=ye(),NC=e=>class extends e{get moniker(){return{on:t=>{let n=qC.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Jo.MonikerFeature=NC});var Mh=S(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.createConnection=Q.combineFeatures=Q.combineNotebooksFeatures=Q.combineLanguagesFeatures=Q.combineWorkspaceFeatures=Q.combineWindowFeatures=Q.combineClientFeatures=Q.combineTracerFeatures=Q.combineTelemetryFeatures=Q.combineConsoleFeatures=Q._NotebooksImpl=Q._LanguagesImpl=Q.BulkUnregistration=Q.BulkRegistration=Q.ErrorMessageTracker=void 0;var O=ye(),rt=Xu(),sl=Zu(),B=ah(),EC=ch(),jC=uh(),MC=lh(),LC=Yu(),FC=ph(),IC=dh(),UC=fh(),WC=gh(),BC=hh(),HC=bh(),zC=vh(),$C=xh(),VC=Ju(),YC=Ph();function ol(e){if(e!==null)return e}var al=class{constructor(){this._messages=Object.create(null)}add(t){let n=this._messages[t];n||(n=0),n++,this._messages[t]=n}sendErrors(t){Object.keys(this._messages).forEach(n=>{t.window.showErrorMessage(n)})}};Q.ErrorMessageTracker=al;var Xo=class{constructor(){}rawAttach(t){this._rawConnection=t}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(t){}initialize(t){}error(t){this.send(O.MessageType.Error,t)}warn(t){this.send(O.MessageType.Warning,t)}info(t){this.send(O.MessageType.Info,t)}log(t){this.send(O.MessageType.Log,t)}debug(t){this.send(O.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(O.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,O.RAL)().console.error("Sending log message failed")})}},cl=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}showErrorMessage(t,...n){let r={type:O.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(ol)}showWarningMessage(t,...n){let r={type:O.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(ol)}showInformationMessage(t,...n){let r={type:O.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(ol)}},_h=(0,FC.ShowDocumentFeature)((0,B.ProgressFeature)(cl)),Ch;(function(e){function t(){return new Zo}e.create=t})(Ch||(Q.BulkRegistration=Ch={}));var Zo=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=rt.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=sl.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Sh;(function(e){function t(){return new zr(void 0,[])}e.create=t})(Sh||(Q.BulkUnregistration=Sh={}));var zr=class{constructor(t,n){this._connection=t,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(t){this._connection=t}add(t){this._unregistrations.set(t.method,t)}dispose(){let t=[];for(let r of this._unregistrations.values())t.push(r);let n={unregisterations:t};this._connection.sendRequest(O.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=rt.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(O.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},es=class{attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}register(t,n,r){return t instanceof Zo?this.registerMany(t):t instanceof zr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=rt.string(n)?n:n.method,o=sl.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(O.RegistrationRequest.type,s).then(a=>(t.add({id:o,method:i}),t),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(t,n){let r=rt.string(t)?t:t.method,i=sl.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(O.RegistrationRequest.type,o).then(s=>O.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),s=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(s)))}unregisterSingle(t,n){let r={unregisterations:[{id:t,method:n}]};return this.connection.sendRequest(O.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${t} failed.`)})}registerMany(t){let n=t.asRegistrationParams();return this.connection.sendRequest(O.RegistrationRequest.type,n).then(()=>new zr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},ul=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}applyEdit(t){function n(i){return i&&!!i.edit}let r=n(t)?t:{edit:t};return this.connection.sendRequest(O.ApplyWorkspaceEditRequest.type,r)}},Dh=(0,IC.FileOperationsFeature)((0,jC.WorkspaceFoldersFeature)((0,EC.ConfigurationFeature)(ul))),ts=class{constructor(){this._trace=O.Trace.Off}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}set trace(t){this._trace=t}log(t,n){this._trace!==O.Trace.Off&&this.connection.sendNotification(O.LogTraceNotification.type,{message:t,verbose:this._trace===O.Trace.Verbose?n:void 0}).catch(()=>{})}},ns=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}logEvent(t){this.connection.sendNotification(O.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},rs=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._LanguagesImpl=rs;var Rh=(0,HC.FoldingRangeFeature)((0,YC.MonikerFeature)((0,$C.DiagnosticFeature)((0,zC.InlayHintFeature)((0,BC.InlineValueFeature)((0,WC.TypeHierarchyFeature)((0,UC.LinkedEditingRangeFeature)((0,LC.SemanticTokensFeature)((0,MC.CallHierarchyFeature)(rs))))))))),is=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._NotebooksImpl=is;var wh=(0,VC.NotebookSyncFeature)(is);function Th(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=Th;function kh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=kh;function Ah(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Ah;function Oh(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Oh;function qh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=qh;function Nh(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=Nh;function Eh(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=Eh;function jh(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=jh;function KC(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Th),tracer:n(e.tracer,t.tracer,Ah),telemetry:n(e.telemetry,t.telemetry,kh),client:n(e.client,t.client,Oh),window:n(e.window,t.window,qh),workspace:n(e.workspace,t.workspace,Nh),languages:n(e.languages,t.languages,Eh),notebooks:n(e.notebooks,t.notebooks,jh)}}Q.combineFeatures=KC;function GC(e,t,n){let r=n&&n.console?new(n.console(Xo)):new Xo,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(ts)):new ts,s=n&&n.telemetry?new(n.telemetry(ns)):new ns,a=n&&n.client?new(n.client(es)):new es,c=n&&n.window?new(n.window(_h)):new _h,l=n&&n.workspace?new(n.workspace(Dh)):new Dh,d=n&&n.languages?new(n.languages(Rh)):new Rh,h=n&&n.notebooks?new(n.notebooks(wh)):new wh,v=[r,o,s,a,c,l,d,h];function y(m){return m instanceof Promise?m:rt.thenable(m)?new Promise((g,T)=>{m.then(V=>g(V),V=>T(V))}):Promise.resolve(m)}let R,F,$,Y={listen:()=>i.listen(),sendRequest:(m,...g)=>i.sendRequest(rt.string(m)?m:m.method,...g),onRequest:(m,g)=>i.onRequest(m,g),sendNotification:(m,g)=>{let T=rt.string(m)?m:m.method;return i.sendNotification(T,g)},onNotification:(m,g)=>i.onNotification(m,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(F=m,{dispose:()=>{F=void 0}}),onInitialized:m=>i.onNotification(O.InitializedNotification.type,m),onShutdown:m=>(R=m,{dispose:()=>{R=void 0}}),onExit:m=>($=m,{dispose:()=>{$=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return c},get workspace(){return l},get languages(){return d},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(O.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(O.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(O.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(O.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(O.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(O.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(O.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(O.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(O.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(O.HoverRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:m=>i.onRequest(O.CompletionRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:m=>i.onRequest(O.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(O.SignatureHelpRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:m=>i.onRequest(O.DeclarationRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:m=>i.onRequest(O.DefinitionRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:m=>i.onRequest(O.TypeDefinitionRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:m=>i.onRequest(O.ImplementationRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:m=>i.onRequest(O.ReferencesRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:m=>i.onRequest(O.DocumentHighlightRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:m=>i.onRequest(O.DocumentSymbolRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:m=>i.onRequest(O.WorkspaceSymbolRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:m=>i.onRequest(O.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(O.CodeActionRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:m=>i.onRequest(O.CodeActionResolveRequest.type,(g,T)=>m(g,T)),onCodeLens:m=>i.onRequest(O.CodeLensRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:m=>i.onRequest(O.CodeLensResolveRequest.type,(g,T)=>m(g,T)),onDocumentFormatting:m=>i.onRequest(O.DocumentFormattingRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:m=>i.onRequest(O.DocumentRangeFormattingRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(O.DocumentOnTypeFormattingRequest.type,(g,T)=>m(g,T)),onRenameRequest:m=>i.onRequest(O.RenameRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:m=>i.onRequest(O.PrepareRenameRequest.type,(g,T)=>m(g,T)),onDocumentLinks:m=>i.onRequest(O.DocumentLinkRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:m=>i.onRequest(O.DocumentLinkResolveRequest.type,(g,T)=>m(g,T)),onDocumentColor:m=>i.onRequest(O.DocumentColorRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:m=>i.onRequest(O.ColorPresentationRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:m=>i.onRequest(O.FoldingRangeRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:m=>i.onRequest(O.SelectionRangeRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:m=>i.onRequest(O.ExecuteCommandRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let m of v)m.attach(Y);return i.onRequest(O.InitializeRequest.type,m=>{t.initialize(m),rt.string(m.trace)&&(o.trace=O.Trace.fromString(m.trace));for(let g of v)g.initialize(m.capabilities);if(F){let g=F(m,new O.CancellationTokenSource().token,(0,B.attachWorkDone)(i,m),void 0);return y(g).then(T=>{if(T instanceof O.ResponseError)return T;let V=T;V||(V={capabilities:{}});let X=V.capabilities;X||(X={},V.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None:!rt.number(X.textDocumentSync)&&!rt.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None);for(let it of v)it.fillServerCapabilities(X);return V})}else{let g={capabilities:{textDocumentSync:O.TextDocumentSyncKind.None}};for(let T of v)T.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(O.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,R)return R(new O.CancellationTokenSource().token)}),i.onNotification(O.ExitNotification.type,()=>{try{$&&$()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(O.SetTraceNotification.type,m=>{o.trace=O.Trace.fromString(m.value)}),Y}Q.createConnection=GC});var ll=S(je=>{"use strict";var QC=je&&je.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Fh=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&QC(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});je.ProposedFeatures=je.NotebookDocuments=je.TextDocuments=je.SemanticTokensBuilder=void 0;var JC=Yu();Object.defineProperty(je,"SemanticTokensBuilder",{enumerable:!0,get:function(){return JC.SemanticTokensBuilder}});var XC=eh();Fh(ye(),je);var ZC=Gu();Object.defineProperty(je,"TextDocuments",{enumerable:!0,get:function(){return ZC.TextDocuments}});var e0=Ju();Object.defineProperty(je,"NotebookDocuments",{enumerable:!0,get:function(){return e0.NotebookDocuments}});Fh(Mh(),je);var Lh;(function(e){e.all={__brand:"features",languages:XC.InlineCompletionFeature}})(Lh||(je.ProposedFeatures=Lh={}))});var Uh=S((Ww,Ih)=>{"use strict";Ih.exports=ye()});var pl=S(vt=>{"use strict";var t0=vt&&vt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Bh=vt&&vt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&t0(t,e,n)};Object.defineProperty(vt,"__esModule",{value:!0});vt.createConnection=void 0;var os=ll();Bh(Uh(),vt);Bh(ll(),vt);var Wh=!1,n0={initialize:e=>{},get shutdownReceived(){return Wh},set shutdownReceived(e){Wh=e},exit:e=>{}};function r0(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),os.ConnectionStrategy.is(e)||os.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=l=>(0,os.createProtocolConnection)(o,s,l,a);return(0,os.createConnection)(c,n0,i)}vt.createConnection=r0});var Gt=S((Hw,Hh)=>{"use strict";Hh.exports=pl()});var Pl=S((qT,ny)=>{"use strict";function xt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ty(e,t){for(var n="",r=0,i=-1,o=0,s,a=0;a<=e.length;++a){if(a<e.length)s=e.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,o=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return n}function z0(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var ur={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),xt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=ty(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(xt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=ty(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return xt(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var r=arguments[n];xt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":ur.normalize(t)},relative:function(t,n){if(xt(t),xt(n),t===n||(t=ur.resolve(t),n=ur.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,l=o<c?o:c,d=-1,h=0;h<=l;++h){if(h===l){if(c>l){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>l&&(t.charCodeAt(r+h)===47?d=h:h===0&&(d=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(d=h)}var R="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(R.length===0?R+="..":R+="/..");return R.length>0?R+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(xt(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,o=!0,s=t.length-1;s>=1;--s)if(n=t.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');xt(t);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,c=-1;for(s=t.length-1;s>=0;--s){var l=t.charCodeAt(s);if(l===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(l===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=c))}return r===i?i=c:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){xt(t);for(var n=-1,r=0,i=-1,o=!0,s=0,a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(c===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),c===46?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return z0("/",t)},parse:function(t){xt(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,c=-1,l=!0,d=t.length-1,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!l){a=d+1;break}continue}c===-1&&(l=!1,c=d+1),r===46?s===-1?s=d:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||c===-1||h===0||h===1&&s===c-1&&s===a+1?c!==-1&&(a===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(a,c)):(a===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(a,s),n.base=t.slice(a,c)),n.ext=t.slice(s,c)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};ur.posix=ur;ny.exports=ur});import{createConfig as pd,loadConfig as xx,DEFAULT_CONFIG as dd}from"@redocly/openapi-core";var Rl;(()=>{"use strict";var e={975:k=>{function b(P){if(typeof P!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(P))}function E(P,C){for(var D,N="",M=0,q=-1,z=0,K=0;K<=P.length;++K){if(K<P.length)D=P.charCodeAt(K);else{if(D===47)break;D=47}if(D===47){if(!(q===K-1||z===1))if(q!==K-1&&z===2){if(N.length<2||M!==2||N.charCodeAt(N.length-1)!==46||N.charCodeAt(N.length-2)!==46){if(N.length>2){var Ce=N.lastIndexOf("/");if(Ce!==N.length-1){Ce===-1?(N="",M=0):M=(N=N.slice(0,Ce)).length-1-N.lastIndexOf("/"),q=K,z=0;continue}}else if(N.length===2||N.length===1){N="",M=0,q=K,z=0;continue}}C&&(N.length>0?N+="/..":N="..",M=2)}else N.length>0?N+="/"+P.slice(q+1,K):N=P.slice(q+1,K),M=K-q-1;q=K,z=0}else D===46&&z!==-1?++z:z=-1}return N}var j={resolve:function(){for(var P,C="",D=!1,N=arguments.length-1;N>=-1&&!D;N--){var M;N>=0?M=arguments[N]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(C=M+"/"+C,D=M.charCodeAt(0)===47)}return C=E(C,!D),D?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(P){if(b(P),P.length===0)return".";var C=P.charCodeAt(0)===47,D=P.charCodeAt(P.length-1)===47;return(P=E(P,!C)).length!==0||C||(P="."),P.length>0&&D&&(P+="/"),C?"/"+P:P},isAbsolute:function(P){return b(P),P.length>0&&P.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var P,C=0;C<arguments.length;++C){var D=arguments[C];b(D),D.length>0&&(P===void 0?P=D:P+="/"+D)}return P===void 0?".":j.normalize(P)},relative:function(P,C){if(b(P),b(C),P===C||(P=j.resolve(P))===(C=j.resolve(C)))return"";for(var D=1;D<P.length&&P.charCodeAt(D)===47;++D);for(var N=P.length,M=N-D,q=1;q<C.length&&C.charCodeAt(q)===47;++q);for(var z=C.length-q,K=M<z?M:z,Ce=-1,ee=0;ee<=K;++ee){if(ee===K){if(z>K){if(C.charCodeAt(q+ee)===47)return C.slice(q+ee+1);if(ee===0)return C.slice(q+ee)}else M>K&&(P.charCodeAt(D+ee)===47?Ce=ee:ee===0&&(Ce=0));break}var ot=P.charCodeAt(D+ee);if(ot!==C.charCodeAt(q+ee))break;ot===47&&(Ce=ee)}var en="";for(ee=D+Ce+1;ee<=N;++ee)ee!==N&&P.charCodeAt(ee)!==47||(en.length===0?en+="..":en+="/..");return en.length>0?en+C.slice(q+Ce):(q+=Ce,C.charCodeAt(q)===47&&++q,C.slice(q))},_makeLong:function(P){return P},dirname:function(P){if(b(P),P.length===0)return".";for(var C=P.charCodeAt(0),D=C===47,N=-1,M=!0,q=P.length-1;q>=1;--q)if((C=P.charCodeAt(q))===47){if(!M){N=q;break}}else M=!1;return N===-1?D?"/":".":D&&N===1?"//":P.slice(0,N)},basename:function(P,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(P);var D,N=0,M=-1,q=!0;if(C!==void 0&&C.length>0&&C.length<=P.length){if(C.length===P.length&&C===P)return"";var z=C.length-1,K=-1;for(D=P.length-1;D>=0;--D){var Ce=P.charCodeAt(D);if(Ce===47){if(!q){N=D+1;break}}else K===-1&&(q=!1,K=D+1),z>=0&&(Ce===C.charCodeAt(z)?--z==-1&&(M=D):(z=-1,M=K))}return N===M?M=K:M===-1&&(M=P.length),P.slice(N,M)}for(D=P.length-1;D>=0;--D)if(P.charCodeAt(D)===47){if(!q){N=D+1;break}}else M===-1&&(q=!1,M=D+1);return M===-1?"":P.slice(N,M)},extname:function(P){b(P);for(var C=-1,D=0,N=-1,M=!0,q=0,z=P.length-1;z>=0;--z){var K=P.charCodeAt(z);if(K!==47)N===-1&&(M=!1,N=z+1),K===46?C===-1?C=z:q!==1&&(q=1):C!==-1&&(q=-1);else if(!M){D=z+1;break}}return C===-1||N===-1||q===0||q===1&&C===N-1&&C===D+1?"":P.slice(C,N)},format:function(P){if(P===null||typeof P!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof P);return(function(C,D){var N=D.dir||D.root,M=D.base||(D.name||"")+(D.ext||"");return N?N===D.root?N+M:N+"/"+M:M})(0,P)},parse:function(P){b(P);var C={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return C;var D,N=P.charCodeAt(0),M=N===47;M?(C.root="/",D=1):D=0;for(var q=-1,z=0,K=-1,Ce=!0,ee=P.length-1,ot=0;ee>=D;--ee)if((N=P.charCodeAt(ee))!==47)K===-1&&(Ce=!1,K=ee+1),N===46?q===-1?q=ee:ot!==1&&(ot=1):q!==-1&&(ot=-1);else if(!Ce){z=ee+1;break}return q===-1||K===-1||ot===0||ot===1&&q===K-1&&q===z+1?K!==-1&&(C.base=C.name=z===0&&M?P.slice(1,K):P.slice(z,K)):(z===0&&M?(C.name=P.slice(1,q),C.base=P.slice(1,K)):(C.name=P.slice(z,q),C.base=P.slice(z,K)),C.ext=P.slice(q,K)),z>0?C.dir=P.slice(0,z-1):M&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var E=t[k]={exports:{}};return e[k](E,E.exports,n),E.exports}n.d=(k,b)=>{for(var E in b)n.o(b,E)&&!n.o(k,E)&&Object.defineProperty(k,E,{enumerable:!0,get:b[E]})},n.o=(k,b)=>Object.prototype.hasOwnProperty.call(k,b),n.r=k=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>v,Utils:()=>yn}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function c(k,b){if(!k.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${k.authority}", path: "${k.path}", query: "${k.query}", fragment: "${k.fragment}"}`);if(k.scheme&&!o.test(k.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(k.path){if(k.authority){if(!s.test(k.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(a.test(k.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let l="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class v{static isUri(b){return b instanceof v||!!b&&typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function"}scheme;authority;path;query;fragment;constructor(b,E,j,P,C,D=!1){typeof b=="object"?(this.scheme=b.scheme||l,this.authority=b.authority||l,this.path=b.path||l,this.query=b.query||l,this.fragment=b.fragment||l):(this.scheme=(function(N,M){return N||M?N:"file"})(b,D),this.authority=E||l,this.path=(function(N,M){switch(N){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M})(this.scheme,j||l),this.query=P||l,this.fragment=C||l,c(this,D))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:E,authority:j,path:P,query:C,fragment:D}=b;return E===void 0?E=this.scheme:E===null&&(E=l),j===void 0?j=this.authority:j===null&&(j=l),P===void 0?P=this.path:P===null&&(P=l),C===void 0?C=this.query:C===null&&(C=l),D===void 0?D=this.fragment:D===null&&(D=l),E===this.scheme&&j===this.authority&&P===this.path&&C===this.query&&D===this.fragment?this:new R(E,j,P,C,D)}static parse(b,E=!1){let j=h.exec(b);return j?new R(j[2]||l,X(j[4]||l),X(j[5]||l),X(j[7]||l),X(j[9]||l),E):new R(l,l,l,l,l)}static file(b){let E=l;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let j=b.indexOf(d,2);j===-1?(E=b.substring(2),b=d):(E=b.substring(2,j),b=b.substring(j)||d)}return new R("file",E,b,l,l)}static from(b){let E=new R(b.scheme,b.authority,b.path,b.query,b.fragment);return c(E,!0),E}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let E=new R(b);return E._formatted=b.external,E._fsPath=b._sep===y?b.fsPath:null,E}}return b}}let y=i?1:void 0;class R extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=m(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let F={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 $(k,b,E){let j,P=-1;for(let C=0;C<k.length;C++){let D=k.charCodeAt(C);if(D>=97&&D<=122||D>=65&&D<=90||D>=48&&D<=57||D===45||D===46||D===95||D===126||b&&D===47||E&&D===91||E&&D===93||E&&D===58)P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j!==void 0&&(j+=k.charAt(C));else{j===void 0&&(j=k.substr(0,C));let N=F[D];N!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j+=N):P===-1&&(P=C)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function Y(k){let b;for(let E=0;E<k.length;E++){let j=k.charCodeAt(E);j===35||j===63?(b===void 0&&(b=k.substr(0,E)),b+=F[j]):b!==void 0&&(b+=k[E])}return b!==void 0?b:k}function m(k,b){let E;return E=k.authority&&k.path.length>1&&k.scheme==="file"?`//${k.authority}${k.path}`:k.path.charCodeAt(0)===47&&(k.path.charCodeAt(1)>=65&&k.path.charCodeAt(1)<=90||k.path.charCodeAt(1)>=97&&k.path.charCodeAt(1)<=122)&&k.path.charCodeAt(2)===58?b?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(E=E.replace(/\//g,"\\")),E}function g(k,b){let E=b?Y:$,j="",{scheme:P,authority:C,path:D,query:N,fragment:M}=k;if(P&&(j+=P,j+=":"),(C||P==="file")&&(j+=d,j+=d),C){let q=C.indexOf("@");if(q!==-1){let z=C.substr(0,q);C=C.substr(q+1),q=z.lastIndexOf(":"),q===-1?j+=E(z,!1,!1):(j+=E(z.substr(0,q),!1,!1),j+=":",j+=E(z.substr(q+1),!1,!0)),j+="@"}C=C.toLowerCase(),q=C.lastIndexOf(":"),q===-1?j+=E(C,!1,!0):(j+=E(C.substr(0,q),!1,!0),j+=C.substr(q))}if(D){if(D.length>=3&&D.charCodeAt(0)===47&&D.charCodeAt(2)===58){let q=D.charCodeAt(1);q>=65&&q<=90&&(D=`/${String.fromCharCode(q+32)}:${D.substr(3)}`)}else if(D.length>=2&&D.charCodeAt(1)===58){let q=D.charCodeAt(0);q>=65&&q<=90&&(D=`${String.fromCharCode(q+32)}:${D.substr(2)}`)}j+=E(D,!0,!1)}return N&&(j+="?",j+=E(N,!1,!1)),M&&(j+="#",j+=b?M:$(M,!1,!1)),j}function T(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+T(k.substr(3)):k}}let V=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(V)?k.replace(V,(b=>T(b))):k}var it=n(975);let Tt=it.posix||it,Zt="/";var yn;(function(k){k.joinPath=function(b,...E){return b.with({path:Tt.join(b.path,...E)})},k.resolvePath=function(b,...E){let j=b.path,P=!1;j[0]!==Zt&&(j=Zt+j,P=!0);let C=Tt.resolve(j,...E);return P&&C[0]===Zt&&!b.authority&&(C=C.substring(1)),b.with({path:C})},k.dirname=function(b){if(b.path.length===0||b.path===Zt)return b;let E=Tt.dirname(b.path);return E.length===1&&E.charCodeAt(0)===46&&(E=""),b.with({path:E})},k.basename=function(b){return Tt.basename(b.path)},k.extname=function(b){return Tt.extname(b.path)}})(yn||(yn={})),Rl=r})();var{URI:At,Utils:ne}=Rl;import{CONFIG_FILE_NAME as Ny}from"@redocly/openapi-core";var Cs={languageId:"yaml",filePattern:/\.ya?ml$/i},Ss={languageId:"json",filePattern:/\.json$/i},_s=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Cs,Ss];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ne.resolvePath(ne.dirname(Se(t)),Ny);return await this._fs.exists(n)?n.toString():void 0}catch{return}}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}registerRemoteScorecardAndPlugins(t){this._remoteScorecardAndPlugins=t}get remoteScorecardAndPlugins(){return this._remoteScorecardAndPlugins}get fs(){if(!this._fs)throw new Error("FileSystemProvider not registered.");return this._fs}get documents(){if(!this._documentManager)throw new Error("DocumentsProvider not registered.");return this._documentManager}get findConfig(){if(!this._findConfig)throw new Error("ConfigFinder not registered.");return this._findConfig}get getRootWorkspaceFolderURI(){if(!this._getRootWorkspaceFolderURI)throw new Error("RootWorkspaceFolderURIGetter not registered.");return this._getRootWorkspaceFolderURI}setScorecardStatus(t){this._scorecardStatus=t}get scorecardStatus(){return this._scorecardStatus}},Pe=new _s;function Ds(e,t){return ne.resolvePath(Se(e)).toString()===ne.resolvePath(Se(t)).toString()}function Se(e){return At.parse(e)}function xn(e){return At.parse(e).fsPath}function dr(e){let t=["https","http"],{scheme:n}=At.parse(e);return t.includes(n)}function fr(e){return ne.basename(Se(e))}async function wl(e,t="/"){let n=ne.resolvePath(Se(t));for(;e.path!=="/";)try{(await Pe.fs.stat(ne.resolvePath(n,e.path))).isDirectory()||(e=ne.dirname(e));break}catch{e=ne.dirname(e)}return e}import{BaseResolver as bx,Source as ld,readFileFromUrl as vx}from"@redocly/openapi-core";var li=Fe(br(),1);import{isAbsoluteUrl as mx}from"@redocly/openapi-core";function Zp(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(l){let d=i.get(l.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(l.uri,setTimeout(()=>a(l),t-h));else if(r.delete(l.uri),i.delete(l.uri),!n){let v=s.get(l.uri),y=e(o.get(l.uri));v&&v.forEach(({resolve:R})=>R(y)),s.delete(l.uri)}}catch(v){let y=s.get(l.uri);y&&y.forEach(({reject:R})=>R(v)),s.delete(l.uri)}}function c(l){let d=r.get(l.uri),h=n&&!d;return i.set(l.uri,Date.now()),o.set(l.uri,l),new Promise((v,y)=>{let R=s.get(l.uri)||[];d||(s.set(l.uri,[...R,{resolve:v,reject:y}]),r.set(l.uri,setTimeout(()=>a(l),t))),h?v(e(o.get(l.uri))):s.set(l.uri,[...R,{resolve:v,reject:y}])})}return c}function Zs(e){let t=new Set,n=r=>Array.isArray(n)?r.map(n):typeof r=="object"&&r!==null?t.has(r)?void 0:(t.add(r),Object.fromEntries(Object.entries(r).map(([i,o])=>[i,n(o)]))):r;return n(e)}function ed(e){return e==="$ref"}async function ea(e,t){let n=At.parse(t);return ne.joinPath(n,e).toString()}async function td(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await ea(i,n)===t)return r}function nd(e){return typeof e=="string"}function pi(e){return typeof e=="function"}function rd(e){return e?.kind===li.Kind.MAP}function ta(e){return e?.kind===li.Kind.MAPPING}function na(e){return e?.kind===li.Kind.SEQ}function vr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}function ra(e){return mx(e)||e.startsWith("file://")}var di=class e{constructor(t,n,r,i){this._uri=t,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(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(e.isIncremental(r)){let i=sd(r.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),c=Math.max(i.end.line,0),l=this._lineOffsets,d=id(r.text,!1,o);if(c-a===d.length)for(let v=0,y=d.length;v<y;v++)l[v+a+1]=d[v];else d.length<1e4?l.splice(a+1,c-a,...d):this._lineOffsets=l=l.slice(0,a+1).concat(d,l.slice(c+1));let h=r.text.length-(s-o);if(h!==0)for(let v=a+1+d.length,y=l.length;v<y;v++)l[v]=l[v]+h}else if(e.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=id(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return t=this.ensureBeforeEOL(t,n[o]),{line:o,character:t-n[o]}}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line];if(t.character<=0)return r;let i=t.line+1<n.length?n[t.line+1]:this._content.length,o=Math.min(r+t.character,i);return this.ensureBeforeEOL(o,r)}ensureBeforeEOL(t,n){for(;t>n&&od(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}},fi;(function(e){function t(i,o,s,a){return new di(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof di)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,o){let s=i.getText(),a=ia(o.map(hx),(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),c=0,l=[];for(let d of a){let h=i.offsetAt(d.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&l.push(s.substring(c,h)),d.newText.length&&l.push(d.newText),c=i.offsetAt(d.range.end)}return l.push(s.substr(c)),l.join("")}e.applyEdits=r})(fi||(fi={}));function ia(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);ia(r,t),ia(i,t);let o=0,s=0,a=0;for(;o<r.length&&s<i.length;)t(r[o],i[s])<=0?e[a++]=r[o++]:e[a++]=i[s++];for(;o<r.length;)e[a++]=r[o++];for(;s<i.length;)e[a++]=i[s++];return e}function id(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);od(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function od(e){return e===13||e===10}function sd(e){let t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function hx(e){let t=sd(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var ad=new Map;function cd(e,t){return ad.set(e,t)}function ud(e){let t=[];for(let[n,r]of ad.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Qe(e){let t=Pe.documents.get(e);if(t)return t;let n=await Pe.fs.readFile(Se(e),"utf-8");return fi.create(e,"yaml",1,n)}function oa(e){return Ss.filePattern.test(e)}function yx(e){return Cs.filePattern.test(e)}var Ct=class extends bx{resolveExternalRef(t,n){return ra(n)?n:t&&ra(t)?new URL(n,t).href:t?ne.resolvePath(ne.dirname(Se(t)),n).toString():n}async loadExternalRef(t){if(dr(t)){let{body:n,mimeType:r}=await vx(t,{...this.config.http,customFetch:fetch});return new ld(t,n,r)}return new ld(t,(await Qe(t)).getText())}};var Et;async function fd(e){let t=new Ct,n=e?await Pe.findConfig(e):void 0;return n===void 0?await pd(dd):(Et=await xx({configPath:n,externalRefResolver:t}),Et)}async function Rn(e){return Et||await fd(e)}async function sa(e,t){try{return await fd(e)}catch(n){return t?.createEventHandleLoadConfigError?.(n?.message),await pd(dd)}}function wn(e){return aa(e)?!0:!!Et?.resolvedRefMap&&[...Et.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Ds(fr(e),n))}function aa(e){return Et?.configPath?Ds(e,Et.configPath):!1}var gd={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},xr={type:"object",properties:gd,additionalProperties:!1},Px={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},jt={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},gd),{like:xr,dislike:xr,satisfied:xr,neutral:xr,dissatisfied:xr}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:Px},additionalProperties:!1}},additionalProperties:!1};var _x={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},ca={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},gi={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:jt,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ca,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:_x,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"}},additionalProperties:!1};var Tn={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Cx={type:"object",properties:{name:{type:"string"},items:Tn,queries:Tn,mutations:Tn,subscriptions:Tn,types:Tn,directives:Tn},required:["name"],additionalProperties:!1},Sx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Cx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},kn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Sx.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:ca,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:jt},additionalProperties:!1};var Dx={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Rx={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},md={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},wx={type:"object",properties:{beforeInfo:{type:"array",items:md},end:{type:"array",items:md}}},an={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},mi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Tx={type:"object",properties:vi(an.properties,["light","dark"])},kx={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},Ax={type:"object",properties:{error:mi,info:mi,redirect:mi,success:mi}},Ox={type:"object",properties:An(an.properties,["dark"])},qx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Nx={type:"object",properties:{accent:an,border:Tx,error:an,http:kx,primary:an,responses:Ax,secondary:Ox,success:an,text:qx,tonalOffset:{type:"number"},warning:an}},hi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Ex={type:"object",properties:{small:hi,medium:hi,large:hi,xlarge:hi}},ft={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},jx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Ex})},hd={type:"object",properties:vi(ft.properties,["fontSize","lineHeight"])},Mx={type:"object",properties:{medium:hd,small:hd}},Lx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Mx})},Fx={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Ix={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},yd={type:"object",properties:{fullWidth:{type:"boolean"}}},Ux={type:"object",properties:{buttons:jx,httpBadges:Lx,layoutControls:Fx,panels:Ix,tryItButton:yd,tryItSendButton:yd}},bi={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Wx={type:"object",properties:{maxWidth:bi}},Bx={type:"object",properties:{maxWidth:bi,middlePanelMaxWidth:bi}},Hx={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Wx,"three-panel":Bx}},bd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},zx={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:bd,defaultDetailsWidth:{type:"string"},examples:bd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},xd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},$x={type:"object",properties:vi(xd.properties,["textTransform"])},Vx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Yx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:xd,level1items:$x,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Vx,textColor:{type:"string"},width:{type:"string"}})},yi={type:"object",properties:Object.assign(Object.assign({},ft.properties),{color:{type:"string"},transform:{type:"string"}})},Kx={type:"object",properties:Object.assign(Object.assign({},ft.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},Gx={type:"object",properties:An(ft.properties,["fontSize"])},Qx={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Jx={type:"object",properties:Object.assign(Object.assign({code:Kx,fieldName:ft},vi(ft.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:yi,heading2:yi,heading3:yi,headings:Gx,lineHeight:{type:"string"},links:Qx,optimizeSpeed:{type:"boolean"},rightPanelHeading:yi,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},Xx={type:"object",properties:Object.assign({color:{type:"string"}},An(ft.properties,["fontWeight"]))},Zx={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:Xx}},eP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},tP={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},vd={type:"object",properties:{custom:{type:"string"}}},nP={type:"object",properties:{DownloadButton:vd,NextSectionButton:vd}},rP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},iP={type:"object",properties:{borderRadius:{type:"string"}}},oP={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},sP={type:"object",properties:{breakpoints:bi,codeBlock:Zx,colors:Nx,components:Ux,layout:Hx,logo:eP,fab:tP,overrides:nP,rightPanel:rP,schema:zx,shape:iP,sidebar:Yx,spacing:oP,typography:Jx,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},aP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Dx}},required:["languages"]},Pd={type:"object",properties:{theme:sP,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:aP,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:Rx,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:wx,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function vi(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function An(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var Mt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},Pr={rules:Mt,oas2Rules:Mt,oas3_0Rules:Mt,oas3_1Rules:Mt,async2Rules:Mt,async3Rules:Mt,arazzo1Rules:Mt,overlay1Rules:Mt},_r={preprocessors:{type:"object",additionalProperties:!0},oas2Preprocessors:{type:"object",additionalProperties:!0},oas3_0Preprocessors:{type:"object",additionalProperties:!0},oas3_1Preprocessors:{type:"object",additionalProperties:!0},async2Preprocessors:{type:"object",additionalProperties:!0},async3Preprocessors:{type:"object",additionalProperties:!0},arazzo1Preprocessors:{type:"object",additionalProperties:!0},overlay1Preprocessors:{type:"object",additionalProperties:!0}},Cr={decorators:{type:"object",additionalProperties:!0},oas2Decorators:{type:"object",additionalProperties:!0},oas3_0Decorators:{type:"object",additionalProperties:!0},oas3_1Decorators:{type:"object",additionalProperties:!0},async2Decorators:{type:"object",additionalProperties:!0},async3Decorators:{type:"object",additionalProperties:!0},arazzo1Decorators:{type:"object",additionalProperties:!0},overlay1Decorators:{type:"object",additionalProperties:!0}};var Re={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},_d={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},ua={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}}}},la={type:"array",items:Object.assign(Object.assign({},ua),{properties:Object.assign(Object.assign({},ua.properties),{items:{type:"array",items:ua}})})},cP={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},uP={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},lP={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},pP={type:"object",properties:Object.assign({facets:lP},Re.properties),additionalProperties:!1},dP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},xi={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Pi={type:"object",properties:Object.assign({items:la},Re.properties),additionalProperties:!1},_i={type:"object",additionalProperties:cP},Ci={type:"object",properties:Object.assign({items:la,copyrightText:{type:"string"},logo:Re},Re.properties),additionalProperties:!1},Si={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Re.properties),additionalProperties:!1},Di={type:"object",properties:{head:{type:"array",items:_d},body:{type:"array",items:_d}},additionalProperties:!1},Ri={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},wi={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:uP,filters:pP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:dP}},Re.properties),additionalProperties:!1},Ti={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Re.properties),additionalProperties:!1},fP={type:"object",properties:Object.assign(Object.assign({},Re.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1},ki={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},actions:fP},additionalProperties:!1},Ai={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Re.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},Oi={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["_partials"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Re.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Re.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},On=Object.assign(Object.assign({},gi),{properties:Object.assign(Object.assign({},gi.properties),Pd.properties)}),gP={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},mP={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},hP={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},yP={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},bP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},vP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},xP={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},pa={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},PP={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:pa}},additionalProperties:!1,required:["trackingId"]},qi={type:"object",properties:{adobe:gP,amplitude:mP,fullstory:hP,heap:yP,rudderstack:bP,segment:vP,gtm:xP,ga:PP}},Ni={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},Re.properties),additionalProperties:!1},Ei={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},ji={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},_P={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},CP={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:_P},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:la,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},qn={type:"object",patternProperties:{".*":CP}},Mi={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},Pr),_r),Cr),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}};var SP={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},DP={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},RP={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},St={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:DP},excludes:{type:"array",items:SP},filters:{type:"array",items:RP},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},wP={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},TP={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:wP},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},kP={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:TP,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},AP={type:"object",additionalProperties:kP},Li={type:"object",properties:{entityTypes:AP,catalogs:{type:"object",properties:{all:St,services:St,domains:St,teams:St,users:St,apiDescriptions:St,dataSchemas:St,apiOperations:St},additionalProperties:St}},additionalProperties:!1};var Je={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:xi,navbar:Pi,products:_i,footer:Ci,sidebar:Si,scripts:Di,links:Ri,feedback:jt,search:wi,colorMode:Ti,navigation:ki,codeSnippet:Ai,markdown:Oi,openapi:On,graphql:kn,analytics:qi,userMenu:Ni,versionPicker:Ei,breadcrumbs:ji,catalog:qn,entitiesCatalog:Li,catalogClassic:qn,scorecard:Mi},additionalProperties:!0};var fa="https://redocly.com/sso/teams",Nn;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(Nn||(Nn={}));var En;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(En||(En={}));var da;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(da||(da={}));function Fi(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>{if(n!==t)return typeof r!="object"||!r?[n,r]:Array.isArray(r)?[n,r.map(i=>typeof i=="object"?Fi(i,t):i)]:[n,Fi(r,t)]}).filter(Boolean))}var OP={type:"object",additionalProperties:{type:"string"}},qP={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Ii={type:"string",enum:["error","warn","off"]},NP={type:"object",additionalProperties:!1,properties:{schemaCheck:Ii,statusCodeCheck:Ii,contentTypeCheck:Ii,successCriteriaCheck:Ii}},EP={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},jP={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},Cd={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[EP,jP]},inputs:OP,servers:qP,severity:NP},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var MP={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},LP={type:"object",properties:{type:{type:"string",const:Nn.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:MP,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},FP={type:"object",properties:{type:{type:"string",const:Nn.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:fa},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},IP={oneOf:[LP,FP],discriminator:{propertyName:"type"}},UP={type:"object",additionalProperties:IP},WP={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},BP={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},HP={type:"object",additionalProperties:BP,default:{}},ha={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:On,graphql:kn,theme:{type:"object",properties:{openapi:On,graphql:kn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Pr),_r),Cr),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},zP={type:"object",additionalProperties:!0},$P={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Sd={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},Dd={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:Sd},default:{llmstxt:Sd.default},additionalProperties:!1},VP={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},cn={type:"object",additionalProperties:{type:"string"}},wd={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:cn,cms:cn,reunite:cn,features:{type:"object",properties:{aiSearch:cn},additionalProperties:!1},content:{type:"object",properties:{"**":cn},additionalProperties:cn}},additionalProperties:cn},YP={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},KP={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},GP={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[YP,KP]}},additionalProperties:!1,required:["type","apiBaseUrl"]},QP={type:"object",properties:{type:{type:"string",const:En.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},JP={type:"object",properties:{type:{type:"string",const:En.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},ga={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[QP,JP],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},XP=Object.assign(Object.assign({},ga),{properties:Object.assign(Object.assign({},ga.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),ZP={type:"object",oneOf:[ga,XP,GP],discriminator:{propertyName:"type"}},e_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:ZP}}},Rd={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},t_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},ma={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:HP,seo:Dd,rbac:wd,apiFunctions:VP,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:t_}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:ha},extends:{type:"array",items:{type:"string"}}},Pr),Cr),_r),{ssoDirect:UP,sso:WP,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:e_,removeAttribution:{type:"boolean"},i18n:Rd,l10n:Rd,metadata:zP,metadataGlobs:$P,ignore:{type:"array",items:{type:"string"}},theme:Je,reunite:Cd,logo:xi,navbar:Pi,products:_i,footer:Ci,sidebar:Si,scripts:Di,links:Ri,feedback:jt,search:wi,colorMode:Ti,navigation:ki,codeSnippet:Ai,markdown:Oi,openapi:On,graphql:kn,analytics:qi,userMenu:Ni,versionPicker:Ei,breadcrumbs:ji,catalog:qn,entitiesCatalog:Li,catalogClassic:qn,scorecard:Mi}),default:{redirects:{},seo:Dd.default},additionalProperties:!0},n_=Object.assign(Object.assign({},Fi(ma,"default")),{additionalProperties:!1}),ya=Object.assign(Object.assign({$id:"root-redocly-config"},ma),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},ma.properties),{env:{type:"object",additionalProperties:n_}}),default:{},additionalProperties:!1});var ba={type:"object",properties:{logo:Je.properties.logo,navbar:Je.properties.navbar,footer:Je.properties.footer,sidebar:Je.properties.sidebar,search:Je.properties.search,codeSnippet:Je.properties.codeSnippet,breadcrumbs:Je.properties.breadcrumbs,openapi:Je.properties.openapi,feedback:Je.properties.feedback,analytics:{type:"object",properties:{ga:pa}}},additionalProperties:!0,default:{}},r_={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},ba.properties),{apis:{type:"object",additionalProperties:ha},theme:ba}),additionalProperties:!1};var Le=Fe(Gt(),1);import{getLineColLocation as d0,lintDocument as f0,makeDocumentFromString as gl,lintConfig as g0,detectSpec as m0,createConfigTypes as h0}from"@redocly/openapi-core";import{bundleDocument as i0,isPlainObject as o0,makeDocumentFromString as s0}from"@redocly/openapi-core";var zh=new Map,ss=new Map;function a0(e){return e?Array.from(e).map(([t,n])=>[t,Zs(n)]):[]}async function dl(e,t){let n=await Rn(),r=new Ct(n.resolve),i=s0(e.getText(),e.uri),{bundle:o,problems:s,fileDependencies:a,rootType:c,refTypes:l}=await i0({document:i,config:n,externalRefResolver:r}),d=a0(l);l&&(ss=new Map([...ss,...l])),zh.set(e.uri,{uri:e.uri,name:fr(e.uri),definition:o0(o.parsed)?o.parsed:{},rootType:c,refTypes:d,errors:t})}function c0(){return Array.from(zh).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:fr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function fl(e){return ss.has(e)?ss.get(e):null}import{createConfig as u0,lintDocument as l0}from"@redocly/openapi-core";async function $h(e,t,n,r,i){let o=[];for(let s of n?.levels||[]){let a=typeof i=="string"?await p0(i):i,c=await u0({...s,plugins:a},{configPath:r}),l=await l0({document:e,externalRefResolver:t,config:c});o.push(...l.filter(({ignored:d})=>!d).map(d=>({...d,scorecardLevel:s.name})))}return o}async function p0(e){if(!e)return[];try{let t=typeof __dirname>"u"?"":__dirname.replaceAll(/\\/g,"/"),n=e.replaceAll("__redocly_dirname",`"${t}"`);return(await import(`data:text/javascript;base64,${btoa(n)}`)).default.map(a=>a())}catch(t){return console.error("Failed to load plugins module:",t.message),console.error(`
70
70
  Plugins code preview:`,e.substring(0,500)+"..."),[]}}var y0=800,b0=5,ml=Zp(P0,y0);async function v0(e){let t=e.map(({documentPath:i})=>Se(i).toString()),n=await Rn(),r=await Pe.getRootWorkspaceFolderURI();for(let{root:i}of Object.values(n.resolvedConfig.apis??{})){let o=await ea(i,r);if(t.includes(o))return o}return t[0]}function x0(e){try{return m0(e),!0}catch{return!1}}async function P0(e){let t=e.uri,n=await Rn();if(wn(xn(t))){let r=aa(t)?gl(e.getText(),t):gl(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new Ct,o=await g0({config:{document:r},externalRefResolver:i,externalConfigTypes:h0(ya,n)}),s=[{uri:e.uri,diagnostics:[]}];return Vh(o,s),s}else{let r=ud(t),i=await v0(r||[]);i&&(e=await Qe(i),t=i);let o;try{o=gl(e.getText(),t)}catch{return[{uri:e.uri,diagnostics:[]}]}if(!x0(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new Ct(n.resolve),c=await Pe.getRootWorkspaceFolderURI(),l=await td(n.resolvedConfig.apis??{},e.uri,c),d=Date.now(),h=[],v=[];try{v=(await f0({document:o,config:n.forAlias(l),externalRefResolver:a})).filter(({ignored:m})=>!m);let $=Pe.remoteScorecardAndPlugins?.scorecard||n.resolvedConfig.scorecard,Y=$&&Pe.scorecardStatus==="enabled"?await $h(o,a,$,n.configPath,Pe.remoteScorecardAndPlugins?.plugins):[];h=[...v,...Y]}catch($){h.push({ruleId:"struct",suggest:[],severity:"error",message:`Error linting document: ${$.message}`,location:[{start:{line:1,col:1},end:{line:1,col:1},source:o.source}]})}let y=D0(v);dl(e,y);let R=Date.now()-d;s=[...new Set([e.uri,...[...a.getFiles()].map($=>Se($).toString())])].map($=>({uri:$,diagnostics:[]})),cd(t,{dependencyPaths:a.getFiles(),durationMS:R}),Vh(h,s)}catch(a){_0(e.uri,a,s)}return s}}function as(){return Pe.documents.all().map(ml)}function _0(e,t,n){let r=n||[{uri:e,diagnostics:[]}];if(t.line&&t.col&&t.message){let i=t.source?.absoluteRef?Se(t.source.absoluteRef).toString():e,o=t.line-1,s=t.col-1,a=Le.Position.create(o,s),c=Le.Diagnostic.create(Le.Range.create(a,a),t.message,Le.DiagnosticSeverity.Error);Yh(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function Yh(e,t,n){let r=n.find(i=>i.uri===e);return r||(r={uri:e,diagnostics:[]},n.push(r)),r.diagnostics.push(t),n}function C0(e){return e.suggest.length===0?"":e.suggest.length===1?`
71
71
  Did you mean: ${e.suggest[0]} ?`:`
72
72
  Did you mean: