@redocly/openapi-language-server 0.8.6 → 0.8.8
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.d.ts +1 -4
- package/lib/index.js +53 -53
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Jy=Object.create;var Zr=Object.defineProperty;var Xy=Object.getOwnPropertyDescriptor;var Zy=Object.getOwnPropertyNames;var eb=Object.getPrototypeOf,tb=Object.prototype.hasOwnProperty;var bl=(e,t)=>()=>(e&&(t=e(e=0)),t);var D=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),gs=(e,t)=>{for(var n in t)Zr(e,n,{get:t[n],enumerable:!0})},Xr=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Zy(t))!tb.call(e,i)&&i!==n&&Zr(e,i,{get:()=>t[i],enumerable:!(r=Xy(t,i))||r.enumerable});return e},ms=(e,t,n)=>(Xr(e,t,"default"),n&&Xr(n,t,"default")),qe=(e,t,n)=>(n=e!=null?Jy(eb(e)):{},Xr(t||!e||!e.__esModule?Zr(n,"default",{value:e,enumerable:!0}):n,e)),ei=e=>Xr(Zr({},"__esModule",{value:!0}),e);var Nt=D(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.isYAMLNode=ye.isNodesEqual=ye.newMap=ye.newSeq=ye.newItems=ye.newScalar=ye.newAnchorRef=ye.newMapping=ye.Kind=void 0;var mt;(function(e){e[e.SCALAR=0]="SCALAR",e[e.MAPPING=1]="MAPPING",e[e.MAP=2]="MAP",e[e.SEQ=3]="SEQ",e[e.ANCHOR_REF=4]="ANCHOR_REF",e[e.INCLUDE_REF=5]="INCLUDE_REF"})(mt=ye.Kind||(ye.Kind={}));function ob(e,t,n=2){var r=t?t.endPosition:e.endPosition+1,i={key:e,value:t,nodeIndent:n,startPosition:e.startPosition,endPosition:r,kind:mt.MAPPING,parent:null,errors:[]};return i}ye.newMapping=ob;function sb(e,t,n,r,i=2){return{errors:[],referencesAnchor:e,value:r,nodeIndent:i,startPosition:t,endPosition:n,kind:mt.ANCHOR_REF,parent:null}}ye.newAnchorRef=sb;function ab(e="",t=2){let n={errors:[],startPosition:-1,endPosition:-1,value:""+e,nodeIndent:t,kind:mt.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(n.valueObject=e),n}ye.newScalar=ab;function Dl(){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:2,items:[],kind:mt.SEQ,parent:null}}ye.newItems=Dl;function cb(){return Dl()}ye.newSeq=cb;function ub(e,t=2){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:t,mappings:e||[],kind:mt.MAP,parent:null}}ye.newMap=ub;function hr(e,t){if(!e||!t||e.kind!==t.kind)return!1;if(e.kind===mt.SCALAR)return e.value===t.value;if(e.kind===mt.SEQ){let n=e,r=t;if(n.items.length!==r.items.length)return!1;for(let i=0;i<n.items.length;i++){let o=n.items[i],s=r.items[i];if(!hr(o,s))return!1}return!0}if(e.kind===mt.MAP){let n=e,r=t;if(n.mappings.length!==r.mappings.length)return!1;for(let i of n.mappings){let o=i.key,s=i.value,a=r.mappings.find(c=>hr(o,c.key));if(a){if(!hr(s,a.value))return!1}else return!1}return!0}if(mt.MAPPING===e.kind){let n=e,r=t;return hr(n.key,r.key)}return!1}ye.isNodesEqual=hr;function lb(e){return e.startPosition!==void 0&&e.endPosition!==void 0&&e.kind!==void 0}ye.isYAMLNode=lb});var un=D(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.isNegativeZero=He.repeat=He.extend=He.toArray=He.isObject=He.isNothing=void 0;function Rl(e){return typeof e>"u"||e===null}He.isNothing=Rl;function pb(e){return typeof e=="object"&&e!==null}He.isObject=pb;function db(e){return Array.isArray(e)?e:Rl(e)?[]:[e]}He.toArray=db;function fb(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n<r;n+=1)i=o[n],e[i]=t[i];return e}He.extend=fb;function gb(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}He.repeat=gb;function mb(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}He.isNegativeZero=mb});var Sn=D((GR,Tl)=>{"use strict";var ri=class e{constructor(t,n=null,r=!1){this.name="YAMLException",this.reason=t,this.mark=n,this.message=this.toString(!1),this.isWarning=r}static isInstance(t){if(t!=null&&t.getClassIdentifier&&typeof t.getClassIdentifier=="function"){for(let n of t.getClassIdentifier())if(n==e.CLASS_IDENTIFIER)return!0}return!1}getClassIdentifier(){var t=[];return t.concat(e.CLASS_IDENTIFIER)}toString(t=!1){var n;return n="JS-YAML: "+(this.reason||"(unknown reason)"),!t&&this.mark&&(n+=" "+this.mark.toString()),n}};ri.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException";Tl.exports=ri});var kl=D((QR,Sl)=>{"use strict";var wl=un(),xs=class{constructor(t,n,r,i,o){this.name=t,this.buffer=n,this.position=r,this.line=i,this.column=o}getSnippet(t=0,n=75){var r,i,o,s,a;if(!this.buffer)return null;for(t=t||4,n=n||75,r="",i=this.position;i>0&&`\0\r
|
|
2
2
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>n/2-1){r=" ... ",i+=5;break}for(o="",s=this.position;s<this.buffer.length&&`\0\r
|
|
3
|
-
\x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>n/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),
|
|
4
|
-
`+
|
|
5
|
-
`+n)),r}};
|
|
6
|
-
\r`;function
|
|
7
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function
|
|
8
|
-
`){e.position--,e.position==i&&(e.position+=1);return}if(o=="\r"){e.position--,e.position==i&&(e.position+=1);return}e.position++}}}function
|
|
9
|
-
`,n-1))}function
|
|
10
|
-
`,a):i===
|
|
11
|
-
`);break}for(r?
|
|
3
|
+
\x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>n/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),wl.repeat(" ",t)+r+a+o+`
|
|
4
|
+
`+wl.repeat(" ",t+this.position-i+r.length)+"^"}toString(t=!0){var n,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),t||(n=this.getSnippet(),n&&(r+=`:
|
|
5
|
+
`+n)),r}};Sl.exports=xs});var Ae=D(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.Type=void 0;var Al=Sn(),hb=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],yb=["scalar","sequence","mapping"];function bb(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}var _s=class{constructor(t,n){if(n=n||{},Object.keys(n).forEach(function(r){if(hb.indexOf(r)===-1)throw new Al('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(r){return r},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.defaultStyle=n.defaultStyle||null,this.styleAliases=bb(n.styleAliases||null),yb.indexOf(this.kind)===-1)throw new Al('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}};ii.Type=_s});var kn=D(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.Schema=void 0;var El=un(),oi=Sn(),vb=Ae();function Cs(e,t,n){var r=[];return e.include.forEach(function(i){n=Cs(i,t,n)}),e[t].forEach(function(i){n.forEach(function(o,s){o.tag===i.tag&&r.push(s)}),n.push(i)}),n.filter(function(i,o){return r.indexOf(o)===-1})}function Pb(){var e={},t,n;function r(i){e[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}var Wt=class{constructor(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(n){if(n.loadKind&&n.loadKind!=="scalar")throw new oi("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Cs(this,"implicit",[]),this.compiledExplicit=Cs(this,"explicit",[]),this.compiledTypeMap=Pb(this.compiledImplicit,this.compiledExplicit)}};si.Schema=Wt;Wt.DEFAULT=null;Wt.create=function(...t){var n,r;switch(t.length){case 1:n=Wt.DEFAULT,r=t[0];break;case 2:n=t[0],r=t[1];break;default:throw new oi("Wrong number of arguments for Schema.create function")}if(n=El.toArray(n),r=El.toArray(r),!n.every(function(i){return i instanceof Wt}))throw new oi("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(i){return i instanceof vb.Type}))throw new oi("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Wt({include:n,explicit:r})}});var ql=D((ZR,Nl)=>{"use strict";var xb=Ae();Nl.exports=new xb.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Ml=D((eT,Ol)=>{"use strict";var _b=Ae();Ol.exports=new _b.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Ll=D((tT,jl)=>{"use strict";var Cb=Ae();jl.exports=new Cb.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Fl=D((nT,Il)=>{"use strict";var Db=kn();Il.exports=new Db.Schema({explicit:[ql(),Ml(),Ll()]})});var Hl=D((rT,Wl)=>{"use strict";var Rb=Ae(),Ul=Nt();function Tb(e){let t=Ul.isYAMLNode(e)?e.value:e;if(t===null)return!0;var n=t.length;return n===1&&t==="~"||n===4&&(t==="null"||t==="Null"||t==="NULL")}function wb(e){return Ul.isYAMLNode(e)?e:null}function Sb(e){return e===null}Wl.exports=new Rb.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:Tb,construct:wb,predicate:Sb,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var $l=D((iT,zl)=>{"use strict";var kb=Ae(),Bl=Nt();function Ab(e){let t=Bl.isYAMLNode(e)?e.value:e;if(t===null)return!1;var n=t.length;return n===4&&(t==="true"||t==="True"||t==="TRUE")||n===5&&(t==="false"||t==="False"||t==="FALSE")}function Eb(e){return Bl.isYAMLNode(e)?e:e==="true"||e==="True"||e==="TRUE"}function Nb(e){return Object.prototype.toString.call(e)==="[object Boolean]"}zl.exports=new kb.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Ab,construct:Eb,predicate:Nb,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var Kl=D((oT,Vl)=>{"use strict";var qb=un(),Ob=Ae(),Yl=Nt();function Mb(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function jb(e){return 48<=e&&e<=55}function Lb(e){return 48<=e&&e<=57}function Ib(e){let t=Yl.isYAMLNode(e)?e.value:e;if(t===null)return!1;var n=t.length,r=0,i=!1,o;if(!n)return!1;if(o=t[r],(o==="-"||o==="+")&&(o=t[++r]),o==="0"){if(r+1===n)return!0;if(o=t[++r],o==="b"){for(r++;r<n;r++)if(o=t[r],o!=="_"){if(o!=="0"&&o!=="1")return!1;i=!0}return i}if(o==="x"){for(r++;r<n;r++)if(o=t[r],o!=="_"){if(!Mb(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(!jb(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(o===":")break;if(!Lb(t.charCodeAt(r)))return!1;i=!0}return i?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(r)):!1}function Fb(e){if(Yl.isYAMLNode(e))return e;var t=e,n=1,r,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0"?0:r==="0"?t[1]==="b"?n*parseInt(t.slice(2),2):t[1]==="x"?n*parseInt(t,16):n*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(s){o.unshift(parseInt(s,10))}),t=0,i=1,o.forEach(function(s){t+=s*i,i*=60}),n*t):n*parseInt(t,10)}function Ub(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!qb.isNegativeZero(e)}Vl.exports=new Ob.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:Ib,construct:Fb,predicate:Ub,represent:{binary:function(e){return"0b"+e.toString(2)},octal:function(e){return"0"+e.toString(8)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return"0x"+e.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Xl=D((sT,Jl)=>{"use strict";var Gl=un(),Wb=Ae(),Ql=Nt(),Hb=new RegExp("-?(0|[1-9][0-9]*)(.[0-9]*)?([eE][-+]?[0-9]+)?|^0$|^[-+]?.(inf|Inf|INF)$|^.(nan|NaN|NAN)$");function Bb(e){let t=Ql.isYAMLNode(e)?e.value:e;return!(t===null||!Hb.test(t))}function zb(e){if(Ql.isYAMLNode(e))return e;var t,n,r,i;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,i=[],0<="+-".indexOf(t[0])&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:0<=t.indexOf(":")?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,r=1,i.forEach(function(o){t+=o*r,r*=60}),n*t):n*parseFloat(t,10)}function $b(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Gl.isNegativeZero(e))return"-0.0";return e.toString(10)}function Yb(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Gl.isNegativeZero(e))}Jl.exports=new Wb.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:Bb,construct:zb,predicate:Yb,represent:$b,defaultStyle:"lowercase"})});var ep=D((aT,Zl)=>{"use strict";var Vb=kn();Zl.exports=new Vb.Schema({include:[Fl()],implicit:[Hl(),$l(),Kl(),Xl()]})});var np=D((cT,tp)=>{"use strict";var Kb=kn();tp.exports=new Kb.Schema({include:[ep()]})});var op=D((uT,ip)=>{"use strict";var Gb=Ae(),rp=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");function Qb(e){if(e===null)return!1;var t,n,r,i,o,s,a,c=0,u=null,d,h,v;return t=rp.exec(e),t!==null}function Jb(e){var t,n,r,i,o,s,a,c=0,u=null,d,h,v;if(t=rp.exec(e),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c=c+"0";c=+c}return t[9]&&(d=+t[10],h=+(t[11]||0),u=(d*60+h)*6e4,t[9]==="-"&&(u=-u)),v=new Date(Date.UTC(n,r,i,o,s,a,c)),u&&v.setTime(v.getTime()-u),v}function Xb(e){return e.toISOString()}ip.exports=new Gb.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Qb,construct:Jb,instanceOf:Date,represent:Xb})});var ap=D((lT,sp)=>{"use strict";var Zb=Ae();function ev(e){return e==="<<"||e===null}sp.exports=new Zb.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ev})});var cp={};gs(cp,{default:()=>tv});var tv,up=bl(()=>{tv={}});var pp=D((pT,lp)=>{"use strict";var ai=(up(),ei(cp)).Buffer,nv=Ae(),Ds=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
6
|
+
\r`;function rv(e){if(e===null)return!1;var t,n,r=0,i=0,o=e.length,s=Ds;for(n=0;n<o;n++)if(t=s.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function iv(e){var t,n,r,i=e.replace(/[\r\n=]/g,""),o=i.length,s=Ds,a=0,c=[];for(n=0;n<o;n++)n%4===0&&n&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(i.charAt(n));return r=o%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),ai?new ai(c):c}function ov(e){var t="",n=0,r,i,o=e.length,s=Ds;for(r=0;r<o;r++)r%3===0&&r&&(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[r];return i=o%3,i===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):i===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):i===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}function sv(e){return ai&&ai.isBuffer(e)}lp.exports=new nv.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:rv,construct:iv,predicate:sv,represent:ov})});var fp=D((dT,dp)=>{"use strict";var av=Ae(),cv=Object.prototype.hasOwnProperty,uv=Object.prototype.toString;function lv(e){if(e===null)return!0;var t=[],n,r,i,o,s,a=e;for(n=0,r=a.length;n<r;n+=1){if(i=a[n],s=!1,uv.call(i)!=="[object Object]")return!1;for(o in i)if(cv.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function pv(e){return e!==null?e:[]}dp.exports=new av.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:lv,construct:pv})});var mp=D((fT,gp)=>{"use strict";var dv=Ae(),Rs=Nt(),fv=Object.prototype.toString;function gv(e){if(e===null)return!0;if(e.kind!=Rs.Kind.SEQ)return!1;var t,n,r,i,o,s=e.items;for(t=0,n=s.length;t<n;t+=1)if(r=s[t],fv.call(r)!=="[object Object]"||!Array.isArray(r.mappings)||r.mappings.length!==1)return!1;return!0}function mv(e){if(e===null||!Array.isArray(e.items))return[];let t,n,r,i,o=e.items;for(i=Rs.newItems(),i.parent=e.parent,i.startPosition=e.startPosition,i.endPosition=e.endPosition,t=0,n=o.length;t<n;t+=1){let a=o[t].mappings[0],c=Rs.newItems();c.parent=i,c.startPosition=a.key.startPosition,c.endPosition=a.value.startPosition,a.key.parent=c,a.value.parent=c,c.items=[a.key,a.value],i.items.push(c)}return i}gp.exports=new dv.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:gv,construct:mv})});var yp=D((gT,hp)=>{"use strict";var hv=Ae(),yv=Nt();function bv(e){return e===null?!0:e.kind==yv.Kind.MAP}function vv(e){return e!==null?e:{}}hp.exports=new hv.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:bv,construct:vv})});var ci=D((mT,bp)=>{"use strict";var Pv=kn(),xv=new Pv.Schema({include:[np()],implicit:[op(),ap()],explicit:[pp(),fp(),mp(),yp()]});bp.exports=xv});var Pp=D((hT,vp)=>{"use strict";var _v=Ae();function Cv(){return!0}function Dv(){}function Rv(){return""}function Tv(e){return typeof e>"u"}vp.exports=new _v.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:Cv,construct:Dv,predicate:Tv,represent:Rv})});var _p=D((yT,xp)=>{"use strict";var wv=Ae();function Sv(e){if(e===null||e.length===0)return!1;var t=e,n=/\/([gim]*)$/.exec(e),r="";if(t[0]==="/"){if(n&&(r=n[1]),r.length>3||t[t.length-r.length-1]!=="/")return!1;t=t.slice(1,t.length-r.length-1)}try{var i=new RegExp(t,r);return!0}catch{return!1}}function kv(e){var t=e,n=/\/([gim]*)$/.exec(e),r="";return t[0]==="/"&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)}function Av(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function Ev(e){return Object.prototype.toString.call(e)==="[object RegExp]"}xp.exports=new wv.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:Sv,construct:kv,predicate:Ev,represent:Av})});var Ts=D((bT,Rp)=>{"use strict";var Cp=kn(),Dp=new Cp.Schema({include:[ci()],explicit:[Pp(),_p()]});Cp.Schema.DEFAULT=Dp;Rp.exports=Dp});var Ip=D((ht,br)=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.safeLoad=ht.safeLoadAll=ht.load=ht.loadAll=void 0;var ze=Nt(),Ht=un(),Os=Sn(),Ms=kl(),kp=ci(),Nv=Ts(),pi=Object.prototype.hasOwnProperty,ui=1,Ap=2,Ep=3,li=4,ws=1,qv=2,Tp=3,Ov=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Mv=/[\x85\u2028\u2029]/,jv=/[,\[\]\{\}]/,Np=/^(?:!|!!|![a-z\-]+!)$/i,qp=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ct(e){return e===10||e===13}function pn(e){return e===9||e===32}function Be(e){return e===9||e===32||e===10||e===13}function An(e){return e===44||e===91||e===93||e===123||e===125}function Lv(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Iv(e){return e===120?2:e===117?4:e===85?8:0}function Fv(e){return 48<=e&&e<=57?e-48:-1}function Uv(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
7
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Wv(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Ss=new Array(256),ks=new Array(256),Op=new Array(256),As=new Array(256);for(Ze=0;Ze<256;Ze++)As[Ze]=ks[Ze]=Uv(Ze),Ss[Ze]=ks[Ze]?1:0,Op[Ze]=1,Ss[Ze]||(As[Ze]="\\"+String.fromCharCode(Ze));var Ze,Es=class{constructor(t,n){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=n.filename||null,this.schema=n.schema||Nv,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.allowAnyEscape=n.allowAnyEscape||!1,this.ignoreDuplicateKeys=n.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}};function js(e,t,n=!1){return new Os(t,new Ms(e.filename,e.input,e.position,e.line,e.position-e.lineStart),n)}function Ns(e,t,n,r=!1,i=!1){var o=Hv(e,t);if(o){var s=n+t;if(!e.errorMap[s]){var a=new Ms(e.filename,e.input,t,o.line,t-o.start);i&&(a.toLineEnd=!0);var c=new Os(n,a,r);e.errors.push(c)}}}function H(e,t){var n=js(e,t),r=n.message+n.mark.position;if(!e.errorMap[r]){e.errors.push(n),e.errorMap[r]=1;for(var i=e.position;;){if(e.position>=e.input.length-1)return;var o=e.input.charAt(e.position);if(o==`
|
|
8
|
+
`){e.position--,e.position==i&&(e.position+=1);return}if(o=="\r"){e.position--,e.position==i&&(e.position+=1);return}e.position++}}}function qs(e,t){var n=js(e,t);e.onWarning&&e.onWarning.call(null,n)}var wp={YAML:function(t,n,r){var i,o,s;t.version!==null&&H(t,"duplication of %YAML directive"),r.length!==1&&H(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&H(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&H(t,"found incompatible YAML document (version 1.2 is required)"),t.version=r[0],t.checkLineBreaks=s<2,s!==2&&H(t,"found incompatible YAML document (version 1.2 is required)")},TAG:function(t,n,r){var i,o;r.length!==2&&H(t,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],Np.test(i)||H(t,"ill-formed tag handle (first argument) of the TAG directive"),pi.call(t.tagMap,i)&&H(t,'there is a previously declared suffix for "'+i+'" tag handle'),qp.test(o)||H(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function Bt(e,t,n,r){var i,o,s,a,c=e.result;if(c.startPosition==-1&&(c.startPosition=t),t<=n){if(a=e.input.slice(t,n),r)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||H(e,"expected valid JSON character");else Ov.test(a)&&H(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=n}}function ln(e,t,n,r,i,o){if(r!=null){var s=i?i.endPosition:r.endPosition;!i&&e.input.charAt(s)===":"&&s++,t===null&&(t={startPosition:r.startPosition,endPosition:s,parent:null,errors:[],mappings:[],kind:ze.Kind.MAP,nodeIndent:o});var a=ze.newMapping(r,i,o);return a.parent=t,r.parent=a,i==null?a.endPosition=r.endPosition:i.parent=a,!e.ignoreDuplicateKeys&&t.mappings.forEach(c=>{ze.isNodesEqual(c,a)&&(Ns(e,a.key.startPosition,"duplicate key"),Ns(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=s,t}}function Ls(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):H(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function Hv(e,t){for(var n,r=0;r<e.lines.length&&!(e.lines[r].start>t);r++)n=e.lines[r];return n||{start:0,line:0}}function ue(e,t,n,r=!1){for(var i=0,o=e.input.charCodeAt(e.position);o!==0;){for(;pn(o);)o===9&&e.errors.push(js(e,"Using tabs can lead to unpredictable results",!0)),o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(ct(o))for(Ls(e),o=e.input.charCodeAt(e.position),i++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return n!==-1&&i!==0&&e.lineIndent<n&&qs(e,"deficient indentation"),i}function yr(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&e.input.charCodeAt(t+1)===n&&e.input.charCodeAt(t+2)===n&&(t+=3,n=e.input.charCodeAt(t),n===0||Be(n)))}function Is(e,t,n){n===1?t.value+=" ":n>1&&(t.value+=Ht.repeat(`
|
|
9
|
+
`,n-1))}function Bv(e,t,n){var r,i,o,s,a,c,u,d,h=e.kind,v=e.result,y,T=ze.newScalar("",t);if(T.plainScalar=!0,e.result=T,y=e.input.charCodeAt(e.position),Be(y)||An(y)||y===35||y===38||y===42||y===33||y===124||y===62||y===39||y===34||y===37||y===64||y===96)return e.result.startPosition=e.position-1,e.result.endPosition=e.position-1,!1;if((y===63||y===45)&&(i=e.input.charCodeAt(e.position+1),Be(i)||n&&An(i)))return!1;for(e.kind="scalar",o=s=e.position,a=!1;y!==0;){if(y===58){if(i=e.input.charCodeAt(e.position+1),Be(i)||n&&An(i))break}else if(y===35){if(r=e.input.charCodeAt(e.position-1),Be(r))break}else{if(e.position===e.lineStart&&yr(e)||n&&An(y))break;if(ct(y))if(c=e.line,u=e.lineStart,d=e.lineIndent,ue(e,!1,-1),e.lineIndent>=t){a=!0,y=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=u,e.lineIndent=d;break}}if(a&&(Bt(e,o,s,!1),Is(e,T,e.line-c),o=s=e.position,a=!1),pn(y)||(s=e.position+1),y=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return Bt(e,o,s,!1),e.result.startPosition!=-1?(T.rawValue=e.input.substring(T.startPosition,T.endPosition),e.result.endPosition=ue(e,!1,-1)?e.position-1:e.position,!0):(e.kind=h,e.result=v,!1)}function zv(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;var o=ze.newScalar("",t);for(o.singleQuoted=!0,e.kind="scalar",e.result=o,o.startPosition=e.position,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Bt(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),o.endPosition=e.position,n===39)r=i=e.position,e.position++;else return!0;else ct(n)?(Bt(e,r,i,!0),Is(e,o,ue(e,!1,t)),r=i=e.position):e.position===e.lineStart&&yr(e)?H(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position,o.endPosition=e.position);H(e,"unexpected end of the stream within a single quoted scalar")}function $v(e,t){var n,r,i,o,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;e.kind="scalar";var u=ze.newScalar("",t);for(u.doubleQuoted=!0,e.result=u,u.startPosition=e.position,e.position++,n=r=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Bt(e,n,e.position,!0),e.position++,u.endPosition=e.position,u.rawValue=e.input.substring(u.startPosition,u.endPosition),!0;if(c===92){if(Bt(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),ct(c))ue(e,!1,t);else if(c<256&&(e.allowAnyEscape?Op[c]:Ss[c]))u.value+=e.allowAnyEscape?As[c]:ks[c],e.position++;else if((s=Iv(c))>0){for(i=s,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(s=Lv(c))>=0?o=(o<<4)+s:H(e,"expected hexadecimal character");u.value+=Wv(o),e.position++}else H(e,"unknown escape sequence");n=r=e.position}else ct(c)?(Bt(e,n,r,!0),Is(e,u,ue(e,!1,t)),n=r=e.position):e.position===e.lineStart&&yr(e)?H(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}H(e,"unexpected end of the stream within a double quoted scalar")}function Yv(e,t){var n=!0,r,i=e.tag,o,s=e.anchor,a,c,u,d,h,v,y,T,I;if(I=e.input.charCodeAt(e.position),I===91)c=93,h=!1,o=ze.newItems(),o.startPosition=e.position;else if(I===123)c=125,h=!0,o=ze.newMap(null,t),o.startPosition=e.position;else return!1;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),I=e.input.charCodeAt(++e.position);I!==0;){if(ue(e,!0,t),I=e.input.charCodeAt(e.position),I===c)return e.position++,e.tag=i,e.anchor=s,e.kind=h?"mapping":"sequence",e.result=o,o.endPosition=e.position,!0;if(!n){var K=e.position;H(e,"missed comma between flow collection entries"),e.position=K+1}if(y=v=T=null,u=d=!1,I===63&&(a=e.input.charCodeAt(e.position+1),Be(a)&&(u=d=!0,e.position++,ue(e,!0,t))),r=e.line,En(e,t,ui,!1,!0),y=e.tag,v=e.result,ue(e,!0,t),I=e.input.charCodeAt(e.position),(d||e.line===r)&&I===58&&(u=!0,I=e.input.charCodeAt(++e.position),ue(e,!0,t),En(e,t,ui,!1,!0),T=e.result),h)ln(e,o,y,v,T,t);else if(u){var W=ln(e,null,y,v,T,t);W.parent=o,o.items.push(W)}else v&&(v.parent=o),o.items.push(v);o.endPosition=e.position+1,ue(e,!0,t),I=e.input.charCodeAt(e.position),I===44?(n=!0,I=e.input.charCodeAt(++e.position)):n=!1}H(e,"unexpected end of the stream within a flow collection")}function Vv(e,t){var n,r,i=ws,o=!1,s=t,a=0,c=!1,u,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;var h=ze.newScalar("",t);for(e.kind="scalar",e.result=h,h.startPosition=e.position;d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)ws===i?i=d===43?Tp:qv:H(e,"repeat of a chomping mode identifier");else if((u=Fv(d))>=0)u===0?H(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?H(e,"repeat of an indentation width identifier"):(s=t+u-1,o=!0);else break;if(pn(d)){do d=e.input.charCodeAt(++e.position);while(pn(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ct(d)&&d!==0)}for(;d!==0;){for(Ls(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),ct(d)){a++;continue}if(e.lineIndent<s){i===Tp?h.value+=Ht.repeat(`
|
|
10
|
+
`,a):i===ws&&o&&(h.value+=`
|
|
11
|
+
`);break}for(r?pn(d)?(c=!0,h.value+=Ht.repeat(`
|
|
12
12
|
`,a+1)):c?(c=!1,h.value+=Ht.repeat(`
|
|
13
13
|
`,a+1)):a===0?o&&(h.value+=" "):h.value+=Ht.repeat(`
|
|
14
14
|
`,a):o&&(h.value+=Ht.repeat(`
|
|
15
|
-
`,a+1)),o=!0,a=0,n=e.position;!
|
|
16
|
-
`){y&&v--;break}if(
|
|
17
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new
|
|
18
|
-
`)break}}let s=r.documents,a=s.length;a>0&&(s[a-1].endPosition=n);for(let c of s)c.errors=r.errors,c.startPosition>c.endPosition&&(c.startPosition=c.endPosition);return s}function
|
|
15
|
+
`,a+1)),o=!0,a=0,n=e.position;!ct(d)&&d!==0;)d=e.input.charCodeAt(++e.position);Bt(e,n,e.position,!1)}h.endPosition=e.position;for(var v=e.position-1,y=!1;;){var T=e.input[v];if(T=="\r"||T==`
|
|
16
|
+
`){y&&v--;break}if(T!=" "&&T!=" ")break;v--}return h.endPosition=v,h.rawValue=e.input.substring(h.startPosition,h.endPosition),!0}function Sp(e,t){var n,r=e.tag,i=e.anchor,o=ze.newItems(),s,a=!1,c;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),o.startPosition=e.position,c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(s=e.input.charCodeAt(e.position+1),!Be(s)));){if(a=!0,e.position++,ue(e,!0,-1)&&e.lineIndent<=t){o.items.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,En(e,t,Ep,!1,!0),e.result&&(e.result.parent=o,o.items.push(e.result)),o.endPosition=ue(e,!0,t,!0)?e.position-1:e.position,c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)H(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function Kv(e,t,n){var r,i,o,s=e.tag,a=e.anchor,c=ze.newMap(null,t),u=null,d=null,h=null,v=!1,y=!1,T;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),T=e.input.charCodeAt(e.position);T!==0;){if(r=e.input.charCodeAt(e.position+1),o=e.line,(T===63||T===58)&&Be(r))T===63?(v&&(ln(e,c,u,d,null,t),u=d=h=null),y=!0,v=!0,i=!0):v?(v=!1,i=!0):H(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,T=r;else if(En(e,n,Ap,!1,!0))if(e.line===o){for(T=e.input.charCodeAt(e.position);pn(T);)T=e.input.charCodeAt(++e.position);if(T===58)T=e.input.charCodeAt(++e.position),Be(T)||H(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(ln(e,c,u,d,null,t),u=d=h=null),y=!0,v=!1,i=!1,u=e.tag,d=e.result;else{if(e.position==e.lineStart&&yr(e))break;if(y)H(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=a,!0}}else if(y){for(H(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(T=e.input.charCodeAt(--e.position),ct(T)){e.position++;break}d=e.result,d.value=e.input.substring(e.result.startPosition,e.position-1),d.rawValue=d.value,d.endPosition=e.position-1,ln(e,c,u,d,null,t)}else return e.tag=s,e.anchor=a,!0;else break;if(e.line===o||e.lineIndent>t){let I=e.line;En(e,t,li,!0,i)?(ue(e,!0,t),v?d=e.result:(h=e.result,h.endPosition=e.line===I?e.position:e.position-1)):d&&(d.endPosition=e.line===I?e.position:e.position-1),v||(ln(e,c,u,d,h,t),u=d=h=null),ue(e,!0,-1),T=e.input.charCodeAt(e.position)}if(e.lineIndent>t&&T!==0)H(e,"bad indentation of a mapping entry"+e.position),T=e.input.charCodeAt(++e.position),ue(e,!0,-1);else if(e.lineIndent<t)break}return v&&ln(e,c,u,d,null,t),y&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),y}function Gv(e){var t,n=!1,r=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&H(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(n=!0,s=e.input.charCodeAt(++e.position)):s===33?(r=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):H(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Be(s);)s===33&&(r?H(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Np.test(i)||H(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),jv.test(o)&&H(e,"tag suffix cannot contain flow indicator characters")}return o&&!qp.test(o)&&H(e,"tag name cannot contain such characters: "+o),n?e.tag=o:pi.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:H(e,'undeclared tag handle "'+i+'"'),!0}function Qv(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&H(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Be(n)&&!An(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&H(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Jv(e){var t,n,r=e.length,i=e.input,o;if(o=e.input.charCodeAt(e.position),o!==42)return!1;for(o=e.input.charCodeAt(++e.position),t=e.position;o!==0&&!Be(o)&&!An(o);)o=e.input.charCodeAt(++e.position);return e.position<=t&&(H(e,"name of an alias node must contain at least one character"),e.position=t+1),n=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(n)||(H(e,'unidentified alias "'+n+'"'),e.position<=t&&(e.position=t+1)),e.result=ze.newAnchorRef(n,t,e.position,e.anchorMap[n],0),ue(e,!0,-1),!0}function En(e,t,n,r,i){var o,s,a,c=1,u=!1,d=!1,h,v,y,T,I,K;e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=li===n||Ep===n,r&&ue(e,!0,-1)&&(u=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));let W=e.position;if(c===1)for(;Gv(e)||Qv(e);)ue(e,!0,-1)?(u=!0,a=o,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=u||i),(c===1||li===n)&&(ui===n||Ap===n?T=t:T=t+1,I=e.position-e.lineStart,c===1?a&&(Sp(e,I)||Kv(e,I,T))||Yv(e,T)?d=!0:(s&&Vv(e,T)||zv(e,T)||$v(e,T)?d=!0:Jv(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&H(e,"alias node should not have any properties")):Bv(e,T,ui===n)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result,e.result.anchorId=e.anchor)):c===0&&(d=a&&Sp(e,I))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=ze.newScalar("",I),e.result.startPosition=e.position,e.result.endPosition=e.position,H(e,"!include without value")),e.result.kind=ze.Kind.INCLUDE_REF;else if(e.tag==="?")for(h=0,v=e.implicitTypes.length;h<v;h+=1){y=e.implicitTypes[h];var m=e.result.value;if(y.resolve(m)){e.result.valueObject=y.construct(e.result.value),e.tag=y.tag,e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result);break}}else pi.call(e.typeMap,e.tag)?(y=e.typeMap[e.tag],e.result!==null&&y.kind!==e.kind&&(!y.additionalKinds||y.additionalKinds&&y.additionalKinds.indexOf(e.kind)===-1)&&H(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+y.kind+'", not "'+e.kind+'"'),y.resolve(e.result)?(e.result=y.construct(e.result),e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result)):H(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):Ns(e,W,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||d}function Xv(e){var t=e.position,n,r,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(s=e.input.charCodeAt(e.position))!==0&&(ue(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!Be(s);)s=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&H(e,"directive name must not be less than one character in length");s!==0;){for(;pn(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!ct(s));break}if(ct(s))break;for(n=e.position;s!==0&&!Be(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&Ls(e),pi.call(wp,r)?wp[r](e,r,i):(qs(e,'unknown document directive "'+r+'"'),e.position++)}if(ue(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ue(e,!0,-1)):o&&H(e,"directives end mark is expected"),En(e,e.lineIndent-1,li,!1,!0),ue(e,!0,-1),e.checkLineBreaks&&Mv.test(e.input.slice(t,e.position))&&qs(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&yr(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ue(e,!0,-1));return}if(e.position<e.length-1)H(e,"end of the stream or a document separator is expected");else return}function Mp(e,t){e=String(e),t=t||{};let n=e.length;n!==0&&(e.charCodeAt(n-1)!==10&&e.charCodeAt(n-1)!==13&&(e+=`
|
|
17
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Es(e,t);for(r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;){var i=r.position;if(Xv(r),r.position<=i)for(;r.position<r.length-1;r.position++){var o=r.input.charAt(r.position);if(o==`
|
|
18
|
+
`)break}}let s=r.documents,a=s.length;a>0&&(s[a-1].endPosition=n);for(let c of s)c.errors=r.errors,c.startPosition>c.endPosition&&(c.startPosition=c.endPosition);return s}function Fs(e,t,n={}){var r=Mp(e,n),i,o;for(i=0,o=r.length;i<o;i+=1)t(r[i])}ht.loadAll=Fs;function Us(e,t={}){var n=Mp(e,t),r,i;if(n.length!==0){if(n.length===1)return n[0];var o=new Os("expected a single document in the stream, but found more");return o.mark=new Ms("","",0,0,0),o.mark.position=n[0].endPosition,n[0].errors.push(o),n[0]}}ht.load=Us;function jp(e,t,n={}){Fs(e,t,Ht.extend({schema:kp},n))}ht.safeLoadAll=jp;function Lp(e,t={}){return Us(e,Ht.extend({schema:kp},t))}ht.safeLoad=Lp;br.exports.loadAll=Fs;br.exports.load=Us;br.exports.safeLoadAll=jp;br.exports.safeLoad=Lp});var $p=D(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.safeDump=Nn.dump=void 0;var vr=un(),Ys=Sn(),Zv=Ts(),eP=ci(),Vs=Object.prototype.toString,Hp=Object.prototype.hasOwnProperty,tP=9,dn=10,nP=13,Ws=32,rP=33,Hs=34,iP=35,oP=37,sP=38,Bs=39,aP=42,cP=44,uP=45,lP=58,pP=62,dP=63,fP=64,gP=91,mP=93,hP=96,yP=123,bP=124,vP=125,Te={};Te[0]="\\0";Te[7]="\\a";Te[8]="\\b";Te[9]="\\t";Te[10]="\\n";Te[11]="\\v";Te[12]="\\f";Te[13]="\\r";Te[27]="\\e";Te[34]='\\"';Te[92]="\\\\";Te[133]="\\N";Te[160]="\\_";Te[8232]="\\L";Te[8233]="\\P";var PP=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function xP(e,t){var n,r,i,o,s,a,c;if(t===null)return{};for(n={},r=Object.keys(t),i=0,o=r.length;i<o;i+=1)s=r[i],a=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),c=e.compiledTypeMap[s],c&&Hp.call(c.styleAliases,a)&&(a=c.styleAliases[a]),n[s]=a;return n}function _P(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new Ys("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+vr.repeat("0",r-t.length)+t}function CP(e){this.schema=e.schema||Zv,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=vr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=xP(this.schema,e.styles||null),this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Fp(e,t){for(var n=vr.repeat(" ",t),r=0,i=-1,o="",s,a=e.length;r<a;)i=e.indexOf(`
|
|
19
19
|
`,r),i===-1?(s=e.slice(r),r=a):(s=e.slice(r,i+1),r=i+1),s.length&&s!==`
|
|
20
|
-
`&&(o+=n),o+=s;return o}function
|
|
21
|
-
`+
|
|
22
|
-
`+
|
|
23
|
-
`+
|
|
20
|
+
`&&(o+=n),o+=s;return o}function zs(e,t){return`
|
|
21
|
+
`+vr.repeat(" ",e.indent*t)}function DP(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function di(e){this.source=e,this.result="",this.checkpoint=0}di.prototype.takeUpTo=function(e){var t;if(e<this.checkpoint)throw t=new Error("position should be > checkpoint"),t.position=e,t.checkpoint=this.checkpoint,t;return this.result+=this.source.slice(this.checkpoint,e),this.checkpoint=e,this};di.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=Te[e]||_P(e),this.result+=t,this.checkpoint+=1,this};di.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function RP(e,t,n){var r,i,o,s,a,c,u,d,h,v,y,T,I,K,W,m,g,S,Y,X,st;if(t.length===0){e.dump="''";return}if(t.indexOf("!include")==0){e.dump=""+t;return}if(t.indexOf("!$$$novalue")==0){e.dump="";return}if(PP.indexOf(t)!==-1){e.dump="'"+t+"'";return}for(r=!0,i=t.length?t.charCodeAt(0):0,o=Ws===i||Ws===t.charCodeAt(t.length-1),(uP===i||dP===i||fP===i||hP===i)&&(r=!1),o?(r=!1,s=!1,a=!1):(s=!0,a=!0),c=!0,u=new di(t),d=!1,h=0,v=0,y=e.indent*n,T=80,y<40?T-=y:T=40,K=0;K<t.length;K++){if(I=t.charCodeAt(K),r)if(!wP(I))r=!1;else continue;c&&I===Bs&&(c=!1),W=Te[I],m=Bp(I),!(!W&&!m)&&(I!==dn&&I!==Hs&&I!==Bs?(s=!1,a=!1):I===dn&&(d=!0,c=!1,K>0&&(g=t.charCodeAt(K-1),g===Ws&&(a=!1,s=!1)),s&&(S=K-h,h=K,S>v&&(v=S))),I!==Hs&&(c=!1),u.takeUpTo(K),u.escapeChar())}if(r&&DP(e,t)&&(r=!1),Y="",(s||a)&&(X=0,t.charCodeAt(t.length-1)===dn&&(X+=1,t.charCodeAt(t.length-2)===dn&&(X+=1)),X===0?Y="-":X===2&&(Y="+")),a&&v<T&&(s=!1),d||(a=!1),r)e.dump=t;else if(c)e.dump="'"+t+"'";else if(s)st=TP(t,T),e.dump=">"+Y+`
|
|
22
|
+
`+Fp(st,y);else if(a)Y||(t=t.replace(/\n$/,"")),e.dump="|"+Y+`
|
|
23
|
+
`+Fp(t,y);else if(u)u.finish(),e.dump='"'+u.result+'"';else throw new Error("Failed to dump scalar value")}function TP(e,t){var n="",r=0,i=e.length,o=/\n+$/.exec(e),s;for(o&&(i=o.index+1);r<i;)s=e.indexOf(`
|
|
24
24
|
`,r),s>i||s===-1?(n&&(n+=`
|
|
25
25
|
|
|
26
|
-
`),n+=
|
|
26
|
+
`),n+=Up(e.slice(r,i),t),r=i):(n&&(n+=`
|
|
27
27
|
|
|
28
|
-
`),n+=
|
|
29
|
-
`&&(n+=o[0]),n}function
|
|
28
|
+
`),n+=Up(e.slice(r,s),t),r=s+1);return o&&o[0]!==`
|
|
29
|
+
`&&(n+=o[0]),n}function Up(e,t){if(e==="")return e;for(var n=/[^\s] [^\s]/g,r="",i=0,o=0,s=n.exec(e),a,c,u;s;)a=s.index,a-o>t&&(i!==o?c=i:c=a,r&&(r+=`
|
|
30
30
|
`),u=e.slice(o,c),r+=u,o=c+1),i=a+1,s=n.exec(e);return r&&(r+=`
|
|
31
31
|
`),o!==i&&e.length-o>t?r+=e.slice(o,i)+`
|
|
32
|
-
`+e.slice(i+1):r+=e.slice(o),r}function
|
|
33
|
-
`:"")+e.dump)):(
|
|
34
|
-
`:"")+e.dump)):(
|
|
35
|
-
`:""}qn.dump=Pd;function Ux(e,t){return Pd(e,kr.extend({schema:ax},t))}qn.safeDump=Ux});var _d=S(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.determineScalarType=Ge.ScalarType=Ge.parseYamlFloat=Ge.parseYamlInteger=Ge.parseYamlBoolean=void 0;function Wx(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`}Ge.parseYamlBoolean=Wx;function Bx(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function Hx(e){let t=Bx(e);if(isNaN(t))throw`Invalid integer "${e}"`;return t}Ge.parseYamlInteger=Hx;function zx(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}"`}Ge.parseYamlFloat=zx;var qt;(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"})(qt=Ge.ScalarType||(Ge.ScalarType={}));function $x(e){if(e===void 0)return qt.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return qt.string;let t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return qt.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return qt.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 qt.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?qt.float:qt.string}Ge.determineScalarType=$x});var jn=S(ve=>{"use strict";var Yx=ve&&ve.__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]})),Sd=ve&&ve.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Yx(t,e,n)};Object.defineProperty(ve,"__esModule",{value:!0});ve.safeDump=ve.dump=ve.safeLoadAll=ve.safeLoad=ve.loadAll=ve.load=void 0;var Si=md();Object.defineProperty(ve,"load",{enumerable:!0,get:function(){return Si.load}});Object.defineProperty(ve,"loadAll",{enumerable:!0,get:function(){return Si.loadAll}});Object.defineProperty(ve,"safeLoad",{enumerable:!0,get:function(){return Si.safeLoad}});Object.defineProperty(ve,"safeLoadAll",{enumerable:!0,get:function(){return Si.safeLoadAll}});var Td=Cd();Object.defineProperty(ve,"dump",{enumerable:!0,get:function(){return Td.dump}});Object.defineProperty(ve,"safeDump",{enumerable:!0,get:function(){return Td.safeDump}});ve.YAMLException=An();Sd(Ot(),ve);Sd(_d(),ve)});var Vn=S(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.stringArray=je.array=je.func=je.error=je.number=je.string=je.boolean=void 0;function f_(e){return e===!0||e===!1}je.boolean=f_;function Jd(e){return typeof e=="string"||e instanceof String}je.string=Jd;function g_(e){return typeof e=="number"||e instanceof Number}je.number=g_;function m_(e){return e instanceof Error}je.error=m_;function h_(e){return typeof e=="function"}je.func=h_;function Xd(e){return Array.isArray(e)}je.array=Xd;function y_(e){return Xd(e)&&e.every(t=>Jd(t))}je.stringArray=y_});var sc=S(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.Message=F.NotificationType9=F.NotificationType8=F.NotificationType7=F.NotificationType6=F.NotificationType5=F.NotificationType4=F.NotificationType3=F.NotificationType2=F.NotificationType1=F.NotificationType0=F.NotificationType=F.RequestType9=F.RequestType8=F.RequestType7=F.RequestType6=F.RequestType5=F.RequestType4=F.RequestType3=F.RequestType2=F.RequestType1=F.RequestType=F.RequestType0=F.AbstractMessageSignature=F.ParameterStructures=F.ResponseError=F.ErrorCodes=void 0;var vn=Vn(),Ma;(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})(Ma||(F.ErrorCodes=Ma={}));var La=class e extends Error{constructor(t,n,r){super(n),this.code=vn.number(t)?t:Ma.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}};F.ResponseError=La;var $e=class e{constructor(t){this.kind=t}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};F.ParameterStructures=$e;$e.auto=new $e("auto");$e.byPosition=new $e("byPosition");$e.byName=new $e("byName");var se=class{constructor(t,n){this.method=t,this.numberOfParams=n}get parameterStructures(){return $e.auto}};F.AbstractMessageSignature=se;var Ia=class extends se{constructor(t){super(t,0)}};F.RequestType0=Ia;var Fa=class extends se{constructor(t,n=$e.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType=Fa;var Ua=class extends se{constructor(t,n=$e.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType1=Ua;var Wa=class extends se{constructor(t){super(t,2)}};F.RequestType2=Wa;var Ba=class extends se{constructor(t){super(t,3)}};F.RequestType3=Ba;var Ha=class extends se{constructor(t){super(t,4)}};F.RequestType4=Ha;var za=class extends se{constructor(t){super(t,5)}};F.RequestType5=za;var $a=class extends se{constructor(t){super(t,6)}};F.RequestType6=$a;var Ya=class extends se{constructor(t){super(t,7)}};F.RequestType7=Ya;var Va=class extends se{constructor(t){super(t,8)}};F.RequestType8=Va;var Ka=class extends se{constructor(t){super(t,9)}};F.RequestType9=Ka;var Ga=class extends se{constructor(t,n=$e.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType=Ga;var Qa=class extends se{constructor(t){super(t,0)}};F.NotificationType0=Qa;var Ja=class extends se{constructor(t,n=$e.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType1=Ja;var Xa=class extends se{constructor(t){super(t,2)}};F.NotificationType2=Xa;var Za=class extends se{constructor(t){super(t,3)}};F.NotificationType3=Za;var ec=class extends se{constructor(t){super(t,4)}};F.NotificationType4=ec;var tc=class extends se{constructor(t){super(t,5)}};F.NotificationType5=tc;var nc=class extends se{constructor(t){super(t,6)}};F.NotificationType6=nc;var rc=class extends se{constructor(t){super(t,7)}};F.NotificationType7=rc;var ic=class extends se{constructor(t){super(t,8)}};F.NotificationType8=ic;var oc=class extends se{constructor(t){super(t,9)}};F.NotificationType9=oc;var Zd;(function(e){function t(i){let o=i;return o&&vn.string(o.method)&&(vn.string(o.id)||vn.number(o.id))}e.isRequest=t;function n(i){let o=i;return o&&vn.string(o.method)&&i.id===void 0}e.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(vn.string(o.id)||vn.number(o.id)||o.id===null)}e.isResponse=r})(Zd||(F.Message=Zd={}))});var cc=S(Yt=>{"use strict";var ef;Object.defineProperty(Yt,"__esModule",{value:!0});Yt.LRUCache=Yt.LinkedMap=Yt.Touch=void 0;var Me;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(Me||(Yt.Touch=Me={}));var ro=class{constructor(){this[ef]="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=Me.None){let r=this._map.get(t);if(r)return n!==Me.None&&this.touch(r,n),r.value}set(t,n,r=Me.None){let i=this._map.get(t);if(i)i.value=n,r!==Me.None&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case Me.None:this.addItemLast(i);break;case Me.First:this.addItemFirst(i);break;case Me.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}[(ef=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!==Me.First&&n!==Me.Last)){if(n===Me.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===Me.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)}};Yt.LinkedMap=ro;var ac=class extends ro{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=Me.AsNew){return super.get(t,n)}peek(t){return super.get(t,Me.None)}set(t,n){return super.set(t,n,Me.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Yt.LRUCache=ac});var nf=S(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.Disposable=void 0;var tf;(function(e){function t(n){return{dispose:n}}e.create=t})(tf||(io.Disposable=tf={}))});var Vt=S(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var uc;function lc(){if(uc===void 0)throw new Error("No runtime abstraction layer installed");return uc}(function(e){function t(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");uc=n}e.install=t})(lc||(lc={}));pc.default=lc});var Gn=S(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.Emitter=Kn.Event=void 0;var b_=Vt(),rf;(function(e){let t={dispose(){}};e.None=function(){return t}})(rf||(Kn.Event=rf={}));var dc=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,b_.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},oo=class e{constructor(t){this._options=t}get event(){return this._event||(this._event=(t,n,r)=>{this._callbacks||(this._callbacks=new dc),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)}};Kn.Emitter=oo;oo._noop=function(){}});var co=S(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.CancellationTokenSource=Qn.CancellationToken=void 0;var v_=Vt(),x_=Vn(),fc=Gn(),so;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:fc.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:fc.Event.None});function t(n){let r=n;return r&&(r===e.None||r===e.Cancelled||x_.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(so||(Qn.CancellationToken=so={}));var P_=Object.freeze(function(e,t){let n=(0,v_.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),ao=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?P_:(this._emitter||(this._emitter=new fc.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},gc=class{get token(){return this._token||(this._token=new ao),this._token}cancel(){this._token?this._token.cancel():this._token=so.Cancelled}dispose(){this._token?this._token instanceof ao&&this._token.dispose():this._token=so.None}};Qn.CancellationTokenSource=gc});var of=S(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.SharedArrayReceiverStrategy=Jn.SharedArraySenderStrategy=void 0;var C_=co(),qr;(function(e){e.Continue=0,e.Cancelled=1})(qr||(qr={}));var mc=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]=qr.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,qr.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};Jn.SharedArraySenderStrategy=mc;var hc=class{constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===qr.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},yc=class{constructor(t){this.token=new hc(t)}cancel(){}dispose(){}},bc=class{constructor(){this.kind="request"}createCancellationTokenSource(t){let n=t.$cancellationData;return n===void 0?new C_.CancellationTokenSource:new yc(n)}};Jn.SharedArrayReceiverStrategy=bc});var xc=S(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.Semaphore=void 0;var __=Vt(),vc=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,__.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()}}};uo.Semaphore=vc});var af=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.ReadableStreamMessageReader=Kt.AbstractMessageReader=Kt.MessageReader=void 0;var Cc=Vt(),Xn=Vn(),Pc=Gn(),S_=xc(),sf;(function(e){function t(n){let r=n;return r&&Xn.func(r.listen)&&Xn.func(r.dispose)&&Xn.func(r.onError)&&Xn.func(r.onClose)&&Xn.func(r.onPartialMessage)}e.is=t})(sf||(Kt.MessageReader=sf={}));var lo=class{constructor(){this.errorEmitter=new Pc.Emitter,this.closeEmitter=new Pc.Emitter,this.partialMessageEmitter=new Pc.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: ${Xn.string(t.message)?t.message:"unknown"}`)}};Kt.AbstractMessageReader=lo;var _c;(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 u of n.contentDecoders)s.set(u.name,u);if(n.contentTypeDecoder!==void 0&&(a=n.contentTypeDecoder,c.set(a.name,a)),n.contentTypeDecoders!==void 0)for(let u of n.contentTypeDecoders)c.set(u.name,u)}return a===void 0&&(a=(0,Cc.default)().applicationJson.decoder,c.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:c}}e.fromOptions=t})(_c||(_c={}));var Sc=class extends lo{constructor(t,n){super(),this.readable=t,this.options=_c.fromOptions(n),this.buffer=(0,Cc.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new S_.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
|
-
${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
|
|
37
|
-
`,
|
|
38
|
-
`,
|
|
39
|
-
${d}`);let v=d.substr(0,h),y=d.substr(h+1).trim();a.set(t?v.toLowerCase():v,y)}return a}tryReadBody(t){if(!(this._totalLength<t))return this._read(t)}get numberOfBytes(){return this._totalLength}_read(t){if(t===0)return this.emptyBuffer();if(t>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===t){let o=this._chunks[0];return this._chunks.shift(),this._totalLength-=t,this.asNative(o)}if(this._chunks[0].byteLength>t){let o=this._chunks[0],s=this.asNative(o,t);return this._chunks[0]=o.slice(t),this._totalLength-=t,s}let n=this.allocNative(t),r=0,i=0;for(;t>0;){let o=this._chunks[i];if(o.byteLength>t){let s=o.slice(0,t);n.set(s,r),r+=t,this._chunks[i]=o.slice(t),this._totalLength-=t,t-=t}else n.set(o,r),r+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,t-=o.byteLength}return n}};
|
|
40
|
-
${JSON.stringify(p.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{let
|
|
41
|
-
${JSON.stringify(p,null,4)}`);let
|
|
32
|
+
`+e.slice(i+1):r+=e.slice(o),r}function wP(e){return tP!==e&&dn!==e&&nP!==e&&cP!==e&&gP!==e&&mP!==e&&yP!==e&&vP!==e&&iP!==e&&sP!==e&&aP!==e&&rP!==e&&bP!==e&&pP!==e&&Bs!==e&&Hs!==e&&oP!==e&&lP!==e&&!Te[e]&&!Bp(e)}function Bp(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function SP(e,t,n){var r="",i=e.tag,o,s;for(o=0,s=n.length;o<s;o+=1)fn(e,t,n[o],!1,!1)&&(o!==0&&(r+=", "),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function kP(e,t,n,r){var i="",o=e.tag,s,a;for(s=0,a=n.length;s<a;s+=1)fn(e,t+1,n[s],!0,!0)&&((!r||s!==0)&&(i+=zs(e,t)),i+="- "+e.dump);e.tag=o,e.dump=i||"[]"}function AP(e,t,n){var r="",i=e.tag,o=Object.keys(n),s,a,c,u,d;for(s=0,a=o.length;s<a;s+=1)d="",s!==0&&(d+=", "),c=o[s],u=n[c],fn(e,t,c,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+": ",fn(e,t,u,!1,!1)&&(d+=e.dump,r+=d));e.tag=i,e.dump="{"+r+"}"}function EP(e,t,n,r){var i="",o=e.tag,s=Object.keys(n),a,c,u,d,h,v;for(a=0,c=s.length;a<c;a+=1)v="",(!r||a!==0)&&(v+=zs(e,t)),u=s[a],d=n[u],fn(e,t+1,u,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&dn===e.dump.charCodeAt(0)?v+="?":v+="? "),v+=e.dump,h&&(v+=zs(e,t)),fn(e,t+1,d,!0,h)&&(e.dump&&dn===e.dump.charCodeAt(0)?v+=":":v+=": ",v+=e.dump,i+=v));e.tag=o,e.dump=i||"{}"}function Wp(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,Vs.call(a.represent)==="[object Function]")r=a.represent(t,c);else if(Hp.call(a.represent,c))r=a.represent[c](t,c);else throw new Ys("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function fn(e,t,n,r,i){e.tag=null,e.dump=n,Wp(e,n,!1)||Wp(e,n,!0);var o=Vs.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?(EP(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
|
|
33
|
+
`:"")+e.dump)):(AP(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object Array]")r&&e.dump.length!==0?(kP(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
|
|
34
|
+
`:"")+e.dump)):(SP(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&RP(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new Ys("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function NP(e,t){var n=[],r=[],i,o;for($s(e,n,r),i=0,o=r.length;i<o;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(o)}function $s(e,t,n){var r=Vs.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)$s(e[o],t,n);else for(i=Object.keys(e),o=0,s=i.length;o<s;o+=1)$s(e[i[o]],t,n)}function zp(e,t){t=t||{};var n=new CP(t);return NP(e,n),fn(n,0,e,!0,!0)?n.dump+`
|
|
35
|
+
`:""}Nn.dump=zp;function qP(e,t){return zp(e,vr.extend({schema:eP},t))}Nn.safeDump=qP});var Yp=D(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.determineScalarType=Ge.ScalarType=Ge.parseYamlFloat=Ge.parseYamlInteger=Ge.parseYamlBoolean=void 0;function OP(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`}Ge.parseYamlBoolean=OP;function MP(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function jP(e){let t=MP(e);if(isNaN(t))throw`Invalid integer "${e}"`;return t}Ge.parseYamlInteger=jP;function LP(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}"`}Ge.parseYamlFloat=LP;var qt;(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"})(qt=Ge.ScalarType||(Ge.ScalarType={}));function IP(e){if(e===void 0)return qt.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return qt.string;let t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return qt.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return qt.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 qt.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?qt.float:qt.string}Ge.determineScalarType=IP});var qn=D(be=>{"use strict";var FP=be&&be.__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]})),Vp=be&&be.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&FP(t,e,n)};Object.defineProperty(be,"__esModule",{value:!0});be.safeDump=be.dump=be.safeLoadAll=be.safeLoad=be.loadAll=be.load=void 0;var fi=Ip();Object.defineProperty(be,"load",{enumerable:!0,get:function(){return fi.load}});Object.defineProperty(be,"loadAll",{enumerable:!0,get:function(){return fi.loadAll}});Object.defineProperty(be,"safeLoad",{enumerable:!0,get:function(){return fi.safeLoad}});Object.defineProperty(be,"safeLoadAll",{enumerable:!0,get:function(){return fi.safeLoadAll}});var Kp=$p();Object.defineProperty(be,"dump",{enumerable:!0,get:function(){return Kp.dump}});Object.defineProperty(be,"safeDump",{enumerable:!0,get:function(){return Kp.safeDump}});be.YAMLException=Sn();Vp(Nt(),be);Vp(Yp(),be)});var Ln=D(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.stringArray=Me.array=Me.func=Me.error=Me.number=Me.string=Me.boolean=void 0;function d_(e){return e===!0||e===!1}Me.boolean=d_;function zd(e){return typeof e=="string"||e instanceof String}Me.string=zd;function f_(e){return typeof e=="number"||e instanceof Number}Me.number=f_;function g_(e){return e instanceof Error}Me.error=g_;function m_(e){return typeof e=="function"}Me.func=m_;function $d(e){return Array.isArray(e)}Me.array=$d;function h_(e){return $d(e)&&e.every(t=>zd(t))}Me.stringArray=h_});var ka=D(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.Message=F.NotificationType9=F.NotificationType8=F.NotificationType7=F.NotificationType6=F.NotificationType5=F.NotificationType4=F.NotificationType3=F.NotificationType2=F.NotificationType1=F.NotificationType0=F.NotificationType=F.RequestType9=F.RequestType8=F.RequestType7=F.RequestType6=F.RequestType5=F.RequestType4=F.RequestType3=F.RequestType2=F.RequestType1=F.RequestType=F.RequestType0=F.AbstractMessageSignature=F.ParameterStructures=F.ResponseError=F.ErrorCodes=void 0;var yn=Ln(),oa;(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})(oa||(F.ErrorCodes=oa={}));var sa=class e extends Error{constructor(t,n,r){super(n),this.code=yn.number(t)?t:oa.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}};F.ResponseError=sa;var $e=class e{constructor(t){this.kind=t}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};F.ParameterStructures=$e;$e.auto=new $e("auto");$e.byPosition=new $e("byPosition");$e.byName=new $e("byName");var se=class{constructor(t,n){this.method=t,this.numberOfParams=n}get parameterStructures(){return $e.auto}};F.AbstractMessageSignature=se;var aa=class extends se{constructor(t){super(t,0)}};F.RequestType0=aa;var ca=class extends se{constructor(t,n=$e.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType=ca;var ua=class extends se{constructor(t,n=$e.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType1=ua;var la=class extends se{constructor(t){super(t,2)}};F.RequestType2=la;var pa=class extends se{constructor(t){super(t,3)}};F.RequestType3=pa;var da=class extends se{constructor(t){super(t,4)}};F.RequestType4=da;var fa=class extends se{constructor(t){super(t,5)}};F.RequestType5=fa;var ga=class extends se{constructor(t){super(t,6)}};F.RequestType6=ga;var ma=class extends se{constructor(t){super(t,7)}};F.RequestType7=ma;var ha=class extends se{constructor(t){super(t,8)}};F.RequestType8=ha;var ya=class extends se{constructor(t){super(t,9)}};F.RequestType9=ya;var ba=class extends se{constructor(t,n=$e.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType=ba;var va=class extends se{constructor(t){super(t,0)}};F.NotificationType0=va;var Pa=class extends se{constructor(t,n=$e.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType1=Pa;var xa=class extends se{constructor(t){super(t,2)}};F.NotificationType2=xa;var _a=class extends se{constructor(t){super(t,3)}};F.NotificationType3=_a;var Ca=class extends se{constructor(t){super(t,4)}};F.NotificationType4=Ca;var Da=class extends se{constructor(t){super(t,5)}};F.NotificationType5=Da;var Ra=class extends se{constructor(t){super(t,6)}};F.NotificationType6=Ra;var Ta=class extends se{constructor(t){super(t,7)}};F.NotificationType7=Ta;var wa=class extends se{constructor(t){super(t,8)}};F.NotificationType8=wa;var Sa=class extends se{constructor(t){super(t,9)}};F.NotificationType9=Sa;var Yd;(function(e){function t(i){let o=i;return o&&yn.string(o.method)&&(yn.string(o.id)||yn.number(o.id))}e.isRequest=t;function n(i){let o=i;return o&&yn.string(o.method)&&i.id===void 0}e.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(yn.string(o.id)||yn.number(o.id)||o.id===null)}e.isResponse=r})(Yd||(F.Message=Yd={}))});var Ea=D($t=>{"use strict";var Vd;Object.defineProperty($t,"__esModule",{value:!0});$t.LRUCache=$t.LinkedMap=$t.Touch=void 0;var je;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(je||($t.Touch=je={}));var Ni=class{constructor(){this[Vd]="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=je.None){let r=this._map.get(t);if(r)return n!==je.None&&this.touch(r,n),r.value}set(t,n,r=je.None){let i=this._map.get(t);if(i)i.value=n,r!==je.None&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case je.None:this.addItemLast(i);break;case je.First:this.addItemFirst(i);break;case je.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}[(Vd=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!==je.First&&n!==je.Last)){if(n===je.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===je.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)}};$t.LinkedMap=Ni;var Aa=class extends Ni{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=je.AsNew){return super.get(t,n)}peek(t){return super.get(t,je.None)}set(t,n){return super.set(t,n,je.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};$t.LRUCache=Aa});var Gd=D(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.Disposable=void 0;var Kd;(function(e){function t(n){return{dispose:n}}e.create=t})(Kd||(qi.Disposable=Kd={}))});var Yt=D(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});var Na;function qa(){if(Na===void 0)throw new Error("No runtime abstraction layer installed");return Na}(function(e){function t(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");Na=n}e.install=t})(qa||(qa={}));Oa.default=qa});var Fn=D(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.Emitter=In.Event=void 0;var y_=Yt(),Qd;(function(e){let t={dispose(){}};e.None=function(){return t}})(Qd||(In.Event=Qd={}));var Ma=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,y_.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Oi=class e{constructor(t){this._options=t}get event(){return this._event||(this._event=(t,n,r)=>{this._callbacks||(this._callbacks=new Ma),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)}};In.Emitter=Oi;Oi._noop=function(){}});var Li=D(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.CancellationTokenSource=Un.CancellationToken=void 0;var b_=Yt(),v_=Ln(),ja=Fn(),Mi;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:ja.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:ja.Event.None});function t(n){let r=n;return r&&(r===e.None||r===e.Cancelled||v_.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(Mi||(Un.CancellationToken=Mi={}));var P_=Object.freeze(function(e,t){let n=(0,b_.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),ji=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?P_:(this._emitter||(this._emitter=new ja.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},La=class{get token(){return this._token||(this._token=new ji),this._token}cancel(){this._token?this._token.cancel():this._token=Mi.Cancelled}dispose(){this._token?this._token instanceof ji&&this._token.dispose():this._token=Mi.None}};Un.CancellationTokenSource=La});var Jd=D(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.SharedArrayReceiverStrategy=Wn.SharedArraySenderStrategy=void 0;var x_=Li(),Cr;(function(e){e.Continue=0,e.Cancelled=1})(Cr||(Cr={}));var Ia=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]=Cr.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,Cr.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};Wn.SharedArraySenderStrategy=Ia;var Fa=class{constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Cr.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},Ua=class{constructor(t){this.token=new Fa(t)}cancel(){}dispose(){}},Wa=class{constructor(){this.kind="request"}createCancellationTokenSource(t){let n=t.$cancellationData;return n===void 0?new x_.CancellationTokenSource:new Ua(n)}};Wn.SharedArrayReceiverStrategy=Wa});var Ba=D(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.Semaphore=void 0;var __=Yt(),Ha=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,__.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()}}};Ii.Semaphore=Ha});var Zd=D(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.ReadableStreamMessageReader=Vt.AbstractMessageReader=Vt.MessageReader=void 0;var $a=Yt(),Hn=Ln(),za=Fn(),C_=Ba(),Xd;(function(e){function t(n){let r=n;return r&&Hn.func(r.listen)&&Hn.func(r.dispose)&&Hn.func(r.onError)&&Hn.func(r.onClose)&&Hn.func(r.onPartialMessage)}e.is=t})(Xd||(Vt.MessageReader=Xd={}));var Fi=class{constructor(){this.errorEmitter=new za.Emitter,this.closeEmitter=new za.Emitter,this.partialMessageEmitter=new za.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: ${Hn.string(t.message)?t.message:"unknown"}`)}};Vt.AbstractMessageReader=Fi;var Ya;(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 u of n.contentDecoders)s.set(u.name,u);if(n.contentTypeDecoder!==void 0&&(a=n.contentTypeDecoder,c.set(a.name,a)),n.contentTypeDecoders!==void 0)for(let u of n.contentTypeDecoders)c.set(u.name,u)}return a===void 0&&(a=(0,$a.default)().applicationJson.decoder,c.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:c}}e.fromOptions=t})(Ya||(Ya={}));var Va=class extends Fi{constructor(t,n){super(),this.readable=t,this.options=Ya.fromOptions(n),this.buffer=(0,$a.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new C_.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
|
+
${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,$a.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))}};Vt.ReadableStreamMessageReader=Va});var of=D(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.WriteableStreamMessageWriter=Kt.AbstractMessageWriter=Kt.MessageWriter=void 0;var ef=Yt(),Dr=Ln(),D_=Ba(),tf=Fn(),R_="Content-Length: ",nf=`\r
|
|
37
|
+
`,rf;(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})(rf||(Kt.MessageWriter=rf={}));var Ui=class{constructor(){this.errorEmitter=new tf.Emitter,this.closeEmitter=new tf.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"}`)}};Kt.AbstractMessageWriter=Ui;var Ka;(function(e){function t(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,ef.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,ef.default)().applicationJson.encoder}}e.fromOptions=t})(Ka||(Ka={}));var Ga=class extends Ui{constructor(t,n){super(),this.writable=t,this.options=Ka.fromOptions(n),this.errorCount=0,this.writeSemaphore=new D_.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(R_,r.byteLength.toString(),nf),i.push(nf),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()}};Kt.WriteableStreamMessageWriter=Ga});var sf=D(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.AbstractMessageBuffer=void 0;var T_=13,w_=10,S_=`\r
|
|
38
|
+
`,Qa=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 u=this._chunks[r];for(i=0;i<u.length;){switch(u[i]){case T_:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case w_:switch(n){case 1:n=2;break;case 3:n=4,i++;break e;default:n=0}break;default:n=0}i++}o+=u.byteLength,r++}if(n!==4)return;let s=this._read(o+i),a=new Map,c=this.toString(s,"ascii").split(S_);if(c.length<2)return a;for(let u=0;u<c.length-2;u++){let d=c[u],h=d.indexOf(":");if(h===-1)throw new Error(`Message header must separate key and value using ':'
|
|
39
|
+
${d}`);let v=d.substr(0,h),y=d.substr(h+1).trim();a.set(t?v.toLowerCase():v,y)}return a}tryReadBody(t){if(!(this._totalLength<t))return this._read(t)}get numberOfBytes(){return this._totalLength}_read(t){if(t===0)return this.emptyBuffer();if(t>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===t){let o=this._chunks[0];return this._chunks.shift(),this._totalLength-=t,this.asNative(o)}if(this._chunks[0].byteLength>t){let o=this._chunks[0],s=this.asNative(o,t);return this._chunks[0]=o.slice(t),this._totalLength-=t,s}let n=this.allocNative(t),r=0,i=0;for(;t>0;){let o=this._chunks[i];if(o.byteLength>t){let s=o.slice(0,t);n.set(s,r),r+=t,this._chunks[i]=o.slice(t),this._totalLength-=t,t-=t}else n.set(o,r),r+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,t-=o.byteLength}return n}};Wi.AbstractMessageBuffer=Qa});var pf=D(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.createMessageConnection=z.ConnectionOptions=z.MessageStrategy=z.CancellationStrategy=z.CancellationSenderStrategy=z.CancellationReceiverStrategy=z.RequestCancellationReceiverStrategy=z.IdCancellationReceiverStrategy=z.ConnectionStrategy=z.ConnectionError=z.ConnectionErrors=z.LogTraceNotification=z.SetTraceNotification=z.TraceFormat=z.TraceValues=z.Trace=z.NullLogger=z.ProgressType=z.ProgressToken=void 0;var af=Yt(),le=Ln(),U=ka(),cf=Ea(),Rr=Fn(),Ja=Li(),Sr;(function(e){e.type=new U.NotificationType("$/cancelRequest")})(Sr||(Sr={}));var Xa;(function(e){function t(n){return typeof n=="string"||typeof n=="number"}e.is=t})(Xa||(z.ProgressToken=Xa={}));var Tr;(function(e){e.type=new U.NotificationType("$/progress")})(Tr||(Tr={}));var Za=class{constructor(){}};z.ProgressType=Za;var ec;(function(e){function t(n){return le.func(n)}e.is=t})(ec||(ec={}));z.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var J;(function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"})(J||(z.Trace=J={}));var uf;(function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"})(uf||(z.TraceValues=uf={}));(function(e){function t(r){if(!le.string(r))return e.Off;switch(r=r.toLowerCase(),r){case"off":return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose;default:return e.Off}}e.fromString=t;function n(r){switch(r){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}e.toString=n})(J||(z.Trace=J={}));var Je;(function(e){e.Text="text",e.JSON="json"})(Je||(z.TraceFormat=Je={}));(function(e){function t(n){return le.string(n)?(n=n.toLowerCase(),n==="json"?e.JSON:e.Text):e.Text}e.fromString=t})(Je||(z.TraceFormat=Je={}));var tc;(function(e){e.type=new U.NotificationType("$/setTrace")})(tc||(z.SetTraceNotification=tc={}));var Hi;(function(e){e.type=new U.NotificationType("$/logTrace")})(Hi||(z.LogTraceNotification=Hi={}));var wr;(function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"})(wr||(z.ConnectionErrors=wr={}));var Bn=class e extends Error{constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};z.ConnectionError=Bn;var nc;(function(e){function t(n){let r=n;return r&&le.func(r.cancelUndispatched)}e.is=t})(nc||(z.ConnectionStrategy=nc={}));var Bi;(function(e){function t(n){let r=n;return r&&(r.kind===void 0||r.kind==="id")&&le.func(r.createCancellationTokenSource)&&(r.dispose===void 0||le.func(r.dispose))}e.is=t})(Bi||(z.IdCancellationReceiverStrategy=Bi={}));var rc;(function(e){function t(n){let r=n;return r&&r.kind==="request"&&le.func(r.createCancellationTokenSource)&&(r.dispose===void 0||le.func(r.dispose))}e.is=t})(rc||(z.RequestCancellationReceiverStrategy=rc={}));var zi;(function(e){e.Message=Object.freeze({createCancellationTokenSource(n){return new Ja.CancellationTokenSource}});function t(n){return Bi.is(n)||rc.is(n)}e.is=t})(zi||(z.CancellationReceiverStrategy=zi={}));var $i;(function(e){e.Message=Object.freeze({sendCancellation(n,r){return n.sendNotification(Sr.type,{id:r})},cleanup(n){}});function t(n){let r=n;return r&&le.func(r.sendCancellation)&&le.func(r.cleanup)}e.is=t})($i||(z.CancellationSenderStrategy=$i={}));var Yi;(function(e){e.Message=Object.freeze({receiver:zi.Message,sender:$i.Message});function t(n){let r=n;return r&&zi.is(r.receiver)&&$i.is(r.sender)}e.is=t})(Yi||(z.CancellationStrategy=Yi={}));var Vi;(function(e){function t(n){let r=n;return r&&le.func(r.handleMessage)}e.is=t})(Vi||(z.MessageStrategy=Vi={}));var lf;(function(e){function t(n){let r=n;return r&&(Yi.is(r.cancellationStrategy)||nc.is(r.connectionStrategy)||Vi.is(r.messageStrategy))}e.is=t})(lf||(z.ConnectionOptions=lf={}));var ut;(function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"})(ut||(ut={}));function k_(e,t,n,r){let i=n!==void 0?n:z.NullLogger,o=0,s=0,a=0,c="2.0",u,d=new Map,h,v=new Map,y=new Map,T,I=new cf.LinkedMap,K=new Map,W=new Set,m=new Map,g=J.Off,S=Je.Text,Y,X=ut.New,st=new Rr.Emitter,Ft=new Rr.Emitter,an=new Rr.Emitter,Rn=new Rr.Emitter,k=new Rr.Emitter,b=r&&r.cancellationStrategy?r.cancellationStrategy:Yi.Message;function O(p){if(p===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+p.toString()}function M(p){return p===null?"res-unknown-"+(++a).toString():"res-"+p.toString()}function x(){return"not-"+(++s).toString()}function C(p,_){U.Message.isRequest(_)?p.set(O(_.id),_):U.Message.isResponse(_)?p.set(M(_.id),_):p.set(x(),_)}function R(p){}function q(){return X===ut.Listening}function j(){return X===ut.Closed}function N(){return X===ut.Disposed}function $(){(X===ut.New||X===ut.Listening)&&(X=ut.Closed,Ft.fire(void 0))}function V(p){st.fire([p,void 0,void 0])}function Re(p){st.fire(p)}e.onClose($),e.onError(V),t.onClose($),t.onError(Re);function te(){T||I.size===0||(T=(0,af.default)().timer.setImmediate(()=>{T=void 0,cn()}))}function at(p){U.Message.isRequest(p)?Uy(p):U.Message.isNotification(p)?Hy(p):U.Message.isResponse(p)?Wy(p):p?.type?.startsWith("redocly/")||By(p)}function cn(){if(I.size===0)return;let p=I.shift();try{let _=r?.messageStrategy;Vi.is(_)?_.handleMessage(p,at):at(p)}finally{te()}}let Fy=p=>{try{if(U.Message.isNotification(p)&&p.method===Sr.type.method){let _=p.params.id,A=O(_),L=I.get(A);if(U.Message.isRequest(L)){let ne=r?.connectionStrategy,pe=ne&&ne.cancelUndispatched?ne.cancelUndispatched(L,R):void 0;if(pe&&(pe.error!==void 0||pe.result!==void 0)){I.delete(A),m.delete(_),pe.id=L.id,Jr(pe,p.method,Date.now()),t.write(pe).catch(()=>i.error("Sending response for canceled message failed."));return}}let oe=m.get(_);if(oe!==void 0){oe.cancel(),ds(p);return}else W.add(_)}C(I,p)}finally{te()}};function Uy(p){if(N())return;function _(G,ce,Z){let Ce={jsonrpc:c,id:p.id};G instanceof U.ResponseError?Ce.error=G.toJson():Ce.result=G===void 0?null:G,Jr(Ce,ce,Z),t.write(Ce).catch(()=>i.error("Sending response failed."))}function A(G,ce,Z){let Ce={jsonrpc:c,id:p.id,error:G.toJson()};Jr(Ce,ce,Z),t.write(Ce).catch(()=>i.error("Sending response failed."))}function L(G,ce,Z){G===void 0&&(G=null);let Ce={jsonrpc:c,id:p.id,result:G};Jr(Ce,ce,Z),t.write(Ce).catch(()=>i.error("Sending response failed."))}Yy(p);let oe=d.get(p.method),ne,pe;oe&&(ne=oe.type,pe=oe.handler);let he=Date.now();if(pe||u){let G=p.id??String(Date.now()),ce=Bi.is(b.receiver)?b.receiver.createCancellationTokenSource(G):b.receiver.createCancellationTokenSource(p);p.id!==null&&W.has(p.id)&&ce.cancel(),p.id!==null&&m.set(G,ce);try{let Z;if(pe)if(p.params===void 0){if(ne!==void 0&&ne.numberOfParams!==0){A(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines ${ne.numberOfParams} params but received none.`),p.method,he);return}Z=pe(ce.token)}else if(Array.isArray(p.params)){if(ne!==void 0&&ne.parameterStructures===U.ParameterStructures.byName){A(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by name but received parameters by position`),p.method,he);return}Z=pe(...p.params,ce.token)}else{if(ne!==void 0&&ne.parameterStructures===U.ParameterStructures.byPosition){A(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by position but received parameters by name`),p.method,he);return}Z=pe(p.params,ce.token)}else u&&(Z=u(p.method,p.params,ce.token));let Ce=Z;Z?Ce.then?Ce.then(Fe=>{m.delete(G),_(Fe,p.method,he)},Fe=>{m.delete(G),Fe instanceof U.ResponseError?A(Fe,p.method,he):Fe&&le.string(Fe.message)?A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Fe.message}`),p.method,he):A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,he)}):(m.delete(G),_(Z,p.method,he)):(m.delete(G),L(Z,p.method,he))}catch(Z){m.delete(G),Z instanceof U.ResponseError?_(Z,p.method,he):Z&&le.string(Z.message)?A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Z.message}`),p.method,he):A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,he)}}else A(new U.ResponseError(U.ErrorCodes.MethodNotFound,`Unhandled method ${p.method}`),p.method,he)}function Wy(p){if(!N())if(p.id===null)p.error?i.error(`Received response message without id: Error is:
|
|
40
|
+
${JSON.stringify(p.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{let _=p.id,A=K.get(_);if(Vy(p,A),A!==void 0){K.delete(_);try{if(p.error){let L=p.error;A.reject(new U.ResponseError(L.code,L.message,L.data))}else if(p.result!==void 0)A.resolve(p.result);else throw new Error("Should never happen.")}catch(L){L.message?i.error(`Response handler '${A.method}' failed with message: ${L.message}`):i.error(`Response handler '${A.method}' failed unexpectedly.`)}}}}function Hy(p){if(N())return;let _,A;if(p.method===Sr.type.method){let L=p.params.id;W.delete(L),ds(p);return}else{let L=v.get(p.method);L&&(A=L.handler,_=L.type)}if(A||h)try{if(ds(p),A)if(p.params===void 0)_!==void 0&&_.numberOfParams!==0&&_.parameterStructures!==U.ParameterStructures.byName&&i.error(`Notification ${p.method} defines ${_.numberOfParams} params but received none.`),A();else if(Array.isArray(p.params)){let L=p.params;p.method===Tr.type.method&&L.length===2&&Xa.is(L[0])?A({token:L[0],value:L[1]}):(_!==void 0&&(_.parameterStructures===U.ParameterStructures.byName&&i.error(`Notification ${p.method} defines parameters by name but received parameters by position`),_.numberOfParams!==p.params.length&&i.error(`Notification ${p.method} defines ${_.numberOfParams} params but received ${L.length} arguments`)),A(...L))}else _!==void 0&&_.parameterStructures===U.ParameterStructures.byPosition&&i.error(`Notification ${p.method} defines parameters by position but received parameters by name`),A(p.params);else h&&h(p.method,p.params)}catch(L){L.message?i.error(`Notification handler '${p.method}' failed with message: ${L.message}`):i.error(`Notification handler '${p.method}' failed unexpectedly.`)}else an.fire(p)}function By(p){if(!p){i.error("Received empty message.");return}i.error(`Received message which is neither a response nor a notification message:
|
|
41
|
+
${JSON.stringify(p,null,4)}`);let _=p;if(le.string(_.id)||le.number(_.id)){let A=_.id,L=K.get(A);L&&L.reject(new Error("The received response has neither a result nor an error property."))}}function Ut(p){if(p!=null)switch(g){case J.Verbose:return JSON.stringify(p,null,4);case J.Compact:return JSON.stringify(p);default:return}}function zy(p){if(!(g===J.Off||!Y))if(S===Je.Text){let _;(g===J.Verbose||g===J.Compact)&&p.params&&(_=`Params: ${Ut(p.params)}
|
|
42
42
|
|
|
43
|
-
`),Y.log(`Sending request '${p.method} - (${p.id})'.`,
|
|
43
|
+
`),Y.log(`Sending request '${p.method} - (${p.id})'.`,_)}else Tn("send-request",p)}function $y(p){if(!(g===J.Off||!Y))if(S===Je.Text){let _;(g===J.Verbose||g===J.Compact)&&(p.params?_=`Params: ${Ut(p.params)}
|
|
44
44
|
|
|
45
|
-
`:
|
|
45
|
+
`:_=`No parameters provided.
|
|
46
46
|
|
|
47
|
-
`),Y.log(`Sending notification '${p.method}'.`,
|
|
47
|
+
`),Y.log(`Sending notification '${p.method}'.`,_)}else Tn("send-notification",p)}function Jr(p,_,A){if(!(g===J.Off||!Y))if(S===Je.Text){let L;(g===J.Verbose||g===J.Compact)&&(p.error&&p.error.data?L=`Error data: ${Ut(p.error.data)}
|
|
48
48
|
|
|
49
|
-
`:p.result?L=`Result: ${
|
|
49
|
+
`:p.result?L=`Result: ${Ut(p.result)}
|
|
50
50
|
|
|
51
51
|
`:p.error===void 0&&(L=`No result returned.
|
|
52
52
|
|
|
53
|
-
`)),Y.log(`Sending response '${
|
|
53
|
+
`)),Y.log(`Sending response '${_} - (${p.id})'. Processing request took ${Date.now()-A}ms`,L)}else Tn("send-response",p)}function Yy(p){if(!(g===J.Off||!Y))if(S===Je.Text){let _;(g===J.Verbose||g===J.Compact)&&p.params&&(_=`Params: ${Ut(p.params)}
|
|
54
54
|
|
|
55
|
-
`),Y.log(`Received request '${p.method} - (${p.id})'.`,
|
|
55
|
+
`),Y.log(`Received request '${p.method} - (${p.id})'.`,_)}else Tn("receive-request",p)}function ds(p){if(!(g===J.Off||!Y||p.method===Hi.type.method))if(S===Je.Text){let _;(g===J.Verbose||g===J.Compact)&&(p.params?_=`Params: ${Ut(p.params)}
|
|
56
56
|
|
|
57
|
-
`:
|
|
57
|
+
`:_=`No parameters provided.
|
|
58
58
|
|
|
59
|
-
`),Y.log(`Received notification '${p.method}'.`,
|
|
59
|
+
`),Y.log(`Received notification '${p.method}'.`,_)}else Tn("receive-notification",p)}function Vy(p,_){if(!(g===J.Off||!Y))if(S===Je.Text){let A;if((g===J.Verbose||g===J.Compact)&&(p.error&&p.error.data?A=`Error data: ${Ut(p.error.data)}
|
|
60
60
|
|
|
61
|
-
`:p.result?A=`Result: ${
|
|
61
|
+
`:p.result?A=`Result: ${Ut(p.result)}
|
|
62
62
|
|
|
63
63
|
`:p.error===void 0&&(A=`No result returned.
|
|
64
64
|
|
|
65
|
-
`)),C){let L=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";Y.log(`Received response '${C.method} - (${p.id})' in ${Date.now()-C.timerStart}ms.${L}`,A)}else Y.log(`Received response ${p.id} without active response promise.`,A)}else wn("receive-response",p)}function wn(p,C){if(!Y||g===J.Off)return;let A={isLSPMessage:!0,type:p,message:C,timestamp:Date.now()};Y.log(A)}function Cr(){if(M())throw new Zn(Ir.Closed,"Connection is closed.");if(N())throw new Zn(Ir.Disposed,"Connection is disposed.")}function tb(){if(O())throw new Zn(Ir.AlreadyListening,"Connection is already listening")}function nb(){if(!O())throw new Error("Call listen() first.")}function _r(p){return p===void 0?null:p}function Yl(p){if(p!==null)return p}function Vl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function Is(p,C){switch(p){case U.ParameterStructures.auto:return Vl(C)?Yl(C):[_r(C)];case U.ParameterStructures.byName:if(!Vl(C))throw new Error("Received parameters by name but param is not an object literal.");return Yl(C);case U.ParameterStructures.byPosition:return[_r(C)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function Kl(p,C){let A,L=p.numberOfParams;switch(L){case 0:A=void 0;break;case 1:A=Is(p.parameterStructures,C[0]);break;default:A=[];for(let oe=0;oe<C.length&&oe<L;oe++)A.push(_r(C[oe]));if(C.length<L)for(let oe=C.length;oe<L;oe++)A.push(null);break}return A}let kn={sendNotification:(p,...C)=>{Cr();let A,L;if(le.string(p)){A=p;let ne=C[0],pe=0,ye=U.ParameterStructures.auto;U.ParameterStructures.is(ne)&&(pe=1,ye=ne);let G=C.length,ce=G-pe;switch(ce){case 0:L=void 0;break;case 1:L=Is(ye,C[pe]);break;default:if(ye===U.ParameterStructures.byName)throw new Error(`Received ${ce} parameters for 'by Name' notification parameter structure.`);L=C.slice(pe,G).map(Z=>_r(Z));break}}else{let ne=C;A=p.method,L=Kl(p,ne)}let oe={jsonrpc:c,method:A,params:L};return Xy(oe),t.write(oe).catch(ne=>{throw i.error("Sending notification failed."),ne})},onNotification:(p,C)=>{Cr();let A;return le.func(p)?h=p:C&&(le.string(p)?(A=p,v.set(p,{type:void 0,handler:C})):(A=p.method,v.set(p.method,{type:p,handler:C}))),{dispose:()=>{A!==void 0?v.delete(A):h=void 0}}},onProgress:(p,C,A)=>{if(y.has(C))throw new Error(`Progress handler for token ${C} already registered`);return y.set(C,A),{dispose:()=>{y.delete(C)}}},sendProgress:(p,C,A)=>kn.sendNotification(Lr.type,{token:C,value:A}),onUnhandledProgress:Dn.event,sendRequest:(p,...C)=>{Cr(),nb();let A,L,oe;if(le.string(p)){A=p;let G=C[0],ce=C[C.length-1],Z=0,_e=U.ParameterStructures.auto;U.ParameterStructures.is(G)&&(Z=1,_e=G);let Fe=C.length;wc.CancellationToken.is(ce)&&(Fe=Fe-1,oe=ce);let mt=Fe-Z;switch(mt){case 0:L=void 0;break;case 1:L=Is(_e,C[Z]);break;default:if(_e===U.ParameterStructures.byName)throw new Error(`Received ${mt} parameters for 'by Name' request parameter structure.`);L=C.slice(Z,Fe).map(rb=>_r(rb));break}}else{let G=C;A=p.method,L=Kl(p,G);let ce=p.numberOfParams;oe=wc.CancellationToken.is(G[ce])?G[ce]:void 0}let ne=o++,pe;oe&&(pe=oe.onCancellationRequested(()=>{let G=b.sender.sendCancellation(kn,ne);return G===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${ne}`),Promise.resolve()):G.catch(()=>{i.log(`Sending cancellation messages for id ${ne} failed`)})}));let ye={jsonrpc:c,id:ne,method:A,params:L};return Jy(ye),typeof b.sender.enableCancellation=="function"&&b.sender.enableCancellation(ye),new Promise(async(G,ce)=>{let Z=mt=>{G(mt),b.sender.cleanup(ne),pe?.dispose()},_e=mt=>{ce(mt),b.sender.cleanup(ne),pe?.dispose()},Fe={method:A,timerStart:Date.now(),resolve:Z,reject:_e};try{await t.write(ye),K.set(ne,Fe)}catch(mt){throw i.error("Sending request failed."),Fe.reject(new U.ResponseError(U.ErrorCodes.MessageWriteError,mt.message?mt.message:"Unknown reason")),mt}})},onRequest:(p,C)=>{Cr();let A=null;return Ec.is(p)?(A=void 0,u=p):le.string(p)?(A=null,C!==void 0&&(A=p,d.set(p,{handler:C,type:void 0}))):C!==void 0&&(A=p.method,d.set(p.method,{type:p,handler:C})),{dispose:()=>{A!==null&&(A!==void 0?d.delete(A):u=void 0)}}},hasPendingResponse:()=>K.size>0,trace:async(p,C,A)=>{let L=!1,oe=Xe.Text;A!==void 0&&(le.boolean(A)?L=A:(L=A.sendNotification||!1,oe=A.traceFormat||Xe.Text)),g=p,w=oe,g===J.Off?Y=void 0:Y=C,L&&!M()&&!N()&&await kn.sendNotification(Nc.type,{value:J.toString(p)})},onError:ct.event,onClose:Ut.event,onUnhandledNotification:cn.event,onDispose:k.event,end:()=>{t.end()},dispose:()=>{if(N())return;X=pt.Disposed,k.fire(void 0);let p=new U.ResponseError(U.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let C of K.values())C.reject(p);K=new Map,m=new Map,W=new Set,I=new mf.LinkedMap,le.func(t.dispose)&&t.dispose(),le.func(e.dispose)&&e.dispose()},listen:()=>{Cr(),tb(),X=pt.Listening,e.listen(Yy)},inspect:()=>{(0,gf.default)().console.log("inspect")}};return kn.onNotification(go.type,p=>{if(g===J.Off||!Y)return;let C=g===J.Verbose||g===J.Compact;Y.log(p.message,C?p.verbose:void 0)}),kn.onNotification(Lr.type,p=>{let C=y.get(p.token);C?C(p.value):Dn.fire(p)}),kn}z.createMessageConnection=A_});var xo=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 ie=sc();Object.defineProperty(x,"Message",{enumerable:!0,get:function(){return ie.Message}});Object.defineProperty(x,"RequestType",{enumerable:!0,get:function(){return ie.RequestType}});Object.defineProperty(x,"RequestType0",{enumerable:!0,get:function(){return ie.RequestType0}});Object.defineProperty(x,"RequestType1",{enumerable:!0,get:function(){return ie.RequestType1}});Object.defineProperty(x,"RequestType2",{enumerable:!0,get:function(){return ie.RequestType2}});Object.defineProperty(x,"RequestType3",{enumerable:!0,get:function(){return ie.RequestType3}});Object.defineProperty(x,"RequestType4",{enumerable:!0,get:function(){return ie.RequestType4}});Object.defineProperty(x,"RequestType5",{enumerable:!0,get:function(){return ie.RequestType5}});Object.defineProperty(x,"RequestType6",{enumerable:!0,get:function(){return ie.RequestType6}});Object.defineProperty(x,"RequestType7",{enumerable:!0,get:function(){return ie.RequestType7}});Object.defineProperty(x,"RequestType8",{enumerable:!0,get:function(){return ie.RequestType8}});Object.defineProperty(x,"RequestType9",{enumerable:!0,get:function(){return ie.RequestType9}});Object.defineProperty(x,"ResponseError",{enumerable:!0,get:function(){return ie.ResponseError}});Object.defineProperty(x,"ErrorCodes",{enumerable:!0,get:function(){return ie.ErrorCodes}});Object.defineProperty(x,"NotificationType",{enumerable:!0,get:function(){return ie.NotificationType}});Object.defineProperty(x,"NotificationType0",{enumerable:!0,get:function(){return ie.NotificationType0}});Object.defineProperty(x,"NotificationType1",{enumerable:!0,get:function(){return ie.NotificationType1}});Object.defineProperty(x,"NotificationType2",{enumerable:!0,get:function(){return ie.NotificationType2}});Object.defineProperty(x,"NotificationType3",{enumerable:!0,get:function(){return ie.NotificationType3}});Object.defineProperty(x,"NotificationType4",{enumerable:!0,get:function(){return ie.NotificationType4}});Object.defineProperty(x,"NotificationType5",{enumerable:!0,get:function(){return ie.NotificationType5}});Object.defineProperty(x,"NotificationType6",{enumerable:!0,get:function(){return ie.NotificationType6}});Object.defineProperty(x,"NotificationType7",{enumerable:!0,get:function(){return ie.NotificationType7}});Object.defineProperty(x,"NotificationType8",{enumerable:!0,get:function(){return ie.NotificationType8}});Object.defineProperty(x,"NotificationType9",{enumerable:!0,get:function(){return ie.NotificationType9}});Object.defineProperty(x,"ParameterStructures",{enumerable:!0,get:function(){return ie.ParameterStructures}});var jc=cc();Object.defineProperty(x,"LinkedMap",{enumerable:!0,get:function(){return jc.LinkedMap}});Object.defineProperty(x,"LRUCache",{enumerable:!0,get:function(){return jc.LRUCache}});Object.defineProperty(x,"Touch",{enumerable:!0,get:function(){return jc.Touch}});var E_=nf();Object.defineProperty(x,"Disposable",{enumerable:!0,get:function(){return E_.Disposable}});var vf=Gn();Object.defineProperty(x,"Event",{enumerable:!0,get:function(){return vf.Event}});Object.defineProperty(x,"Emitter",{enumerable:!0,get:function(){return vf.Emitter}});var xf=co();Object.defineProperty(x,"CancellationTokenSource",{enumerable:!0,get:function(){return xf.CancellationTokenSource}});Object.defineProperty(x,"CancellationToken",{enumerable:!0,get:function(){return xf.CancellationToken}});var Pf=of();Object.defineProperty(x,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return Pf.SharedArraySenderStrategy}});Object.defineProperty(x,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return Pf.SharedArrayReceiverStrategy}});var Mc=af();Object.defineProperty(x,"MessageReader",{enumerable:!0,get:function(){return Mc.MessageReader}});Object.defineProperty(x,"AbstractMessageReader",{enumerable:!0,get:function(){return Mc.AbstractMessageReader}});Object.defineProperty(x,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return Mc.ReadableStreamMessageReader}});var Lc=df();Object.defineProperty(x,"MessageWriter",{enumerable:!0,get:function(){return Lc.MessageWriter}});Object.defineProperty(x,"AbstractMessageWriter",{enumerable:!0,get:function(){return Lc.AbstractMessageWriter}});Object.defineProperty(x,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return Lc.WriteableStreamMessageWriter}});var N_=ff();Object.defineProperty(x,"AbstractMessageBuffer",{enumerable:!0,get:function(){return N_.AbstractMessageBuffer}});var Ee=bf();Object.defineProperty(x,"ConnectionStrategy",{enumerable:!0,get:function(){return Ee.ConnectionStrategy}});Object.defineProperty(x,"ConnectionOptions",{enumerable:!0,get:function(){return Ee.ConnectionOptions}});Object.defineProperty(x,"NullLogger",{enumerable:!0,get:function(){return Ee.NullLogger}});Object.defineProperty(x,"createMessageConnection",{enumerable:!0,get:function(){return Ee.createMessageConnection}});Object.defineProperty(x,"ProgressToken",{enumerable:!0,get:function(){return Ee.ProgressToken}});Object.defineProperty(x,"ProgressType",{enumerable:!0,get:function(){return Ee.ProgressType}});Object.defineProperty(x,"Trace",{enumerable:!0,get:function(){return Ee.Trace}});Object.defineProperty(x,"TraceValues",{enumerable:!0,get:function(){return Ee.TraceValues}});Object.defineProperty(x,"TraceFormat",{enumerable:!0,get:function(){return Ee.TraceFormat}});Object.defineProperty(x,"SetTraceNotification",{enumerable:!0,get:function(){return Ee.SetTraceNotification}});Object.defineProperty(x,"LogTraceNotification",{enumerable:!0,get:function(){return Ee.LogTraceNotification}});Object.defineProperty(x,"ConnectionErrors",{enumerable:!0,get:function(){return Ee.ConnectionErrors}});Object.defineProperty(x,"ConnectionError",{enumerable:!0,get:function(){return Ee.ConnectionError}});Object.defineProperty(x,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Ee.CancellationReceiverStrategy}});Object.defineProperty(x,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Ee.CancellationSenderStrategy}});Object.defineProperty(x,"CancellationStrategy",{enumerable:!0,get:function(){return Ee.CancellationStrategy}});Object.defineProperty(x,"MessageStrategy",{enumerable:!0,get:function(){return Ee.MessageStrategy}});var O_=Vt();x.RAL=O_.default});var _f=S(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});var Tt=xo(),Po=class e extends Tt.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)}};Po.emptyBuffer=new Uint8Array(0);var Ic=class{constructor(t){this.socket=t,this._onData=new Tt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,Tt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),Tt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),Tt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),Tt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},Fc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),Tt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),Tt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),Tt.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()}},q_=new TextEncoder,Cf=Object.freeze({messageBuffer:Object.freeze({create:e=>new Po(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(q_.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 Ic(e),asWritableStream:e=>new Fc(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 Uc(){return Cf}(function(e){function t(){Tt.RAL.install(Cf)}e.install=t})(Uc||(Uc={}));Wc.default=Uc});var xn=S(Ze=>{"use strict";var j_=Ze&&Ze.__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]})),M_=Ze&&Ze.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&j_(t,e,n)};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.createMessageConnection=Ze.BrowserMessageWriter=Ze.BrowserMessageReader=void 0;var L_=_f();L_.default.install();var er=xo();M_(xo(),Ze);var Bc=class extends er.AbstractMessageReader{constructor(t){super(),this._onData=new er.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)}};Ze.BrowserMessageReader=Bc;var Hc=class extends er.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(){}};Ze.BrowserMessageWriter=Hc;function I_(e,t,n,r){return n===void 0&&(n=er.NullLogger),er.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,er.createMessageConnection)(e,t,n,r)}Ze.createMessageConnection=I_});var zc=S((mw,Sf)=>{"use strict";Sf.exports=xn()});var Ao={};Fs(Ao,{AnnotatedTextEdit:()=>Lt,ChangeAnnotation:()=>Pn,ChangeAnnotationIdentifier:()=>Ne,CodeAction:()=>Tu,CodeActionContext:()=>Su,CodeActionKind:()=>_u,CodeActionTriggerKind:()=>Yr,CodeDescription:()=>eu,CodeLens:()=>Ru,Color:()=>_o,ColorInformation:()=>Kc,ColorPresentation:()=>Gc,Command:()=>Cn,CompletionItem:()=>pu,CompletionItemKind:()=>ou,CompletionItemLabelDetails:()=>lu,CompletionItemTag:()=>au,CompletionList:()=>du,CreateFile:()=>nr,DeleteFile:()=>ir,Diagnostic:()=>Br,DiagnosticRelatedInformation:()=>So,DiagnosticSeverity:()=>Xc,DiagnosticTag:()=>Zc,DocumentHighlight:()=>yu,DocumentHighlightKind:()=>hu,DocumentLink:()=>wu,DocumentSymbol:()=>Cu,DocumentUri:()=>$c,EOL:()=>F_,FoldingRange:()=>Jc,FoldingRangeKind:()=>Qc,FormattingOptions:()=>Du,Hover:()=>fu,InlayHint:()=>Lu,InlayHintKind:()=>wo,InlayHintLabelPart:()=>ko,InlineCompletionContext:()=>Hu,InlineCompletionItem:()=>Fu,InlineCompletionList:()=>Uu,InlineCompletionTriggerKind:()=>Wu,InlineValueContext:()=>Mu,InlineValueEvaluatableExpression:()=>ju,InlineValueText:()=>Ou,InlineValueVariableLookup:()=>qu,InsertReplaceEdit:()=>cu,InsertTextFormat:()=>su,InsertTextMode:()=>uu,Location:()=>Wr,LocationLink:()=>Vc,MarkedString:()=>$r,MarkupContent:()=>or,MarkupKind:()=>Do,OptionalVersionedTextDocumentIdentifier:()=>zr,ParameterInformation:()=>gu,Position:()=>nt,Range:()=>ge,RenameFile:()=>rr,SelectedCompletionInfo:()=>Bu,SelectionRange:()=>ku,SemanticTokenModifiers:()=>Eu,SemanticTokenTypes:()=>Au,SemanticTokens:()=>Nu,SignatureInformation:()=>mu,StringValue:()=>Iu,SymbolInformation:()=>xu,SymbolKind:()=>bu,SymbolTag:()=>vu,TextDocument:()=>$u,TextDocumentEdit:()=>Hr,TextDocumentIdentifier:()=>nu,TextDocumentItem:()=>iu,TextEdit:()=>Rt,URI:()=>Co,VersionedTextDocumentIdentifier:()=>ru,WorkspaceChange:()=>tu,WorkspaceEdit:()=>To,WorkspaceFolder:()=>zu,WorkspaceSymbol:()=>Pu,integer:()=>Yc,uinteger:()=>Ur});var $c,Co,Yc,Ur,nt,ge,Wr,Vc,_o,Kc,Gc,Qc,Jc,So,Xc,Zc,eu,Br,Cn,Rt,Pn,Ne,Lt,Hr,nr,rr,ir,To,tr,Ro,tu,nu,ru,zr,iu,Do,or,ou,su,au,cu,uu,lu,pu,du,$r,fu,gu,mu,hu,yu,bu,vu,xu,Pu,Cu,_u,Yr,Su,Tu,Ru,Du,wu,ku,Au,Eu,Nu,Ou,qu,ju,Mu,wo,ko,Lu,Iu,Fu,Uu,Wu,Bu,Hu,zu,F_,$u,Yu,f,Eo=Gl(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})($c||($c={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(Co||(Co={}));(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})(Yc||(Yc={}));(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})(Ur||(Ur={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Ur.MAX_VALUE),i===Number.MAX_VALUE&&(i=Ur.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})(nt||(nt={}));(function(e){function t(r,i,o,s){if(f.uinteger(r)&&f.uinteger(i)&&f.uinteger(o)&&f.uinteger(s))return{start:nt.create(r,i),end:nt.create(o,s)};if(nt.is(r)&&nt.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)&&nt.is(i.start)&&nt.is(i.end)}e.is=n})(ge||(ge={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&ge.is(i.range)&&(f.string(i.uri)||f.undefined(i.uri))}e.is=n})(Wr||(Wr={}));(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)&&ge.is(i.targetRange)&&f.string(i.targetUri)&&ge.is(i.targetSelectionRange)&&(ge.is(i.originSelectionRange)||f.undefined(i.originSelectionRange))}e.is=n})(Vc||(Vc={}));(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})(_o||(_o={}));(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&ge.is(i.range)&&_o.is(i.color)}e.is=n})(Kc||(Kc={}));(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)||Rt.is(i))&&(f.undefined(i.additionalTextEdits)||f.typedArray(i.additionalTextEdits,Rt.is))}e.is=n})(Gc||(Gc={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Qc||(Qc={}));(function(e){function t(r,i,o,s,a,c){let u={startLine:r,endLine:i};return f.defined(o)&&(u.startCharacter=o),f.defined(s)&&(u.endCharacter=s),f.defined(a)&&(u.kind=a),f.defined(c)&&(u.collapsedText=c),u}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})(Jc||(Jc={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Wr.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})(Xc||(Xc={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(Zc||(Zc={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(eu||(eu={}));(function(e){function t(r,i,o,s,a,c){let u={range:r,message:i};return f.defined(o)&&(u.severity=o),f.defined(s)&&(u.code=s),f.defined(a)&&(u.source=a),f.defined(c)&&(u.relatedInformation=c),u}e.create=t;function n(r){var i;let o=r;return f.defined(o)&&ge.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})(Br||(Br={}));(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})(Cn||(Cn={}));(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)&&ge.is(s.range)}e.is=i})(Rt||(Rt={}));(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})(Ne||(Ne={}));(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 Rt.is(s)&&(Pn.is(s.annotationId)||Ne.is(s.annotationId))}e.is=i})(Lt||(Lt={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&zr.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Hr||(Hr={}));(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||Ne.is(i.annotationId))}e.is=n})(nr||(nr={}));(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||Ne.is(i.annotationId))}e.is=n})(rr||(rr={}));(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||Ne.is(i.annotationId))}e.is=n})(ir||(ir={}));(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)?nr.is(i)||rr.is(i)||ir.is(i):Hr.is(i)))}e.is=t})(To||(To={}));tr=class{constructor(t,n){this.edits=t,this.changeAnnotations=n}insert(t,n,r){let i,o;if(r===void 0?i=Rt.insert(t,n):Ne.is(r)?(o=r,i=Lt.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Lt.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=Rt.replace(t,n):Ne.is(r)?(o=r,i=Lt.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Lt.replace(t,n,o)),this.edits.push(i),o!==void 0)return o}delete(t,n){let r,i;if(n===void 0?r=Rt.del(t):Ne.is(n)?(i=n,r=Lt.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Lt.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.")}},Ro=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(Ne.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()}},tu=class{constructor(t){this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new Ro(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(n=>{if(Hr.is(n)){let r=new tr(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new tr(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(zr.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 tr(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 tr(r),this._textEditChanges[t]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Ro,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)||Ne.is(n)?i=n:r=n;let o,s;if(i===void 0?o=nr.create(t,r):(s=Ne.is(i)?i:this._changeAnnotations.manage(i),o=nr.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)||Ne.is(r)?o=r:i=r;let s,a;if(o===void 0?s=rr.create(t,n,i):(a=Ne.is(o)?o:this._changeAnnotations.manage(o),s=rr.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)||Ne.is(n)?i=n:r=n;let o,s;if(i===void 0?o=ir.create(t,r):(s=Ne.is(i)?i:this._changeAnnotations.manage(i),o=ir.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})(nu||(nu={}));(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})(ru||(ru={}));(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})(zr||(zr={}));(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})(iu||(iu={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(Do||(Do={}));(function(e){function t(n){let r=n;return f.objectLiteral(n)&&Do.is(r.kind)&&f.string(r.value)}e.is=t})(or||(or={}));(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})(ou||(ou={}));(function(e){e.PlainText=1,e.Snippet=2})(su||(su={}));(function(e){e.Deprecated=1})(au||(au={}));(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)&&ge.is(i.insert)&&ge.is(i.replace)}e.is=n})(cu||(cu={}));(function(e){e.asIs=1,e.adjustIndentation=2})(uu||(uu={}));(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})(lu||(lu={}));(function(e){function t(n){return{label:n}}e.create=t})(pu||(pu={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(du||(du={}));(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})($r||($r={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(or.is(r.contents)||$r.is(r.contents)||f.typedArray(r.contents,$r.is))&&(n.range===void 0||ge.is(n.range))}e.is=t})(fu||(fu={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(gu||(gu={}));(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})(mu||(mu={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(hu||(hu={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(yu||(yu={}));(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})(bu||(bu={}));(function(e){e.Deprecated=1})(vu||(vu={}));(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})(xu||(xu={}));(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})(Pu||(Pu={}));(function(e){function t(r,i,o,s,a,c){let u={name:r,detail:i,kind:o,range:s,selectionRange:a};return c!==void 0&&(u.children=c),u}e.create=t;function n(r){let i=r;return i&&f.string(i.name)&&f.number(i.kind)&&ge.is(i.range)&&ge.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})(Cu||(Cu={}));(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"})(_u||(_u={}));(function(e){e.Invoked=1,e.Automatic=2})(Yr||(Yr={}));(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,Br.is)&&(i.only===void 0||f.typedArray(i.only,f.string))&&(i.triggerKind===void 0||i.triggerKind===Yr.Invoked||i.triggerKind===Yr.Automatic)}e.is=n})(Su||(Su={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):Cn.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,Br.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Cn.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||To.is(i.edit))}e.is=n})(Tu||(Tu={}));(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)&&ge.is(i.range)&&(f.undefined(i.command)||Cn.is(i.command))}e.is=n})(Ru||(Ru={}));(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})(Du||(Du={}));(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)&&ge.is(i.range)&&(f.undefined(i.target)||f.string(i.target))}e.is=n})(wu||(wu={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&ge.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(ku||(ku={}));(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"})(Au||(Au={}));(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"})(Eu||(Eu={}));(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})(Nu||(Nu={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&ge.is(i.range)&&f.string(i.text)}e.is=n})(Ou||(Ou={}));(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&&ge.is(i.range)&&f.boolean(i.caseSensitiveLookup)&&(f.string(i.variableName)||i.variableName===void 0)}e.is=n})(qu||(qu={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&ge.is(i.range)&&(f.string(i.expression)||i.expression===void 0)}e.is=n})(ju||(ju={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&ge.is(r.stoppedLocation)}e.is=n})(Mu||(Mu={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(wo||(wo={}));(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)||or.is(i.tooltip))&&(i.location===void 0||Wr.is(i.location))&&(i.command===void 0||Cn.is(i.command))}e.is=n})(ko||(ko={}));(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)&&nt.is(i.position)&&(f.string(i.label)||f.typedArray(i.label,ko.is))&&(i.kind===void 0||wo.is(i.kind))&&i.textEdits===void 0||f.typedArray(i.textEdits,Rt.is)&&(i.tooltip===void 0||f.string(i.tooltip)||or.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(Lu||(Lu={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(Iu||(Iu={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(Fu||(Fu={}));(function(e){function t(n){return{items:n}}e.create=t})(Uu||(Uu={}));(function(e){e.Invoked=0,e.Automatic=1})(Wu||(Wu={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(Bu||(Bu={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(Hu||(Hu={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&Co.is(r.uri)&&f.string(r.name)}e.is=t})(zu||(zu={}));F_=[`
|
|
65
|
+
`)),_){let L=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";Y.log(`Received response '${_.method} - (${p.id})' in ${Date.now()-_.timerStart}ms.${L}`,A)}else Y.log(`Received response ${p.id} without active response promise.`,A)}else Tn("receive-response",p)}function Tn(p,_){if(!Y||g===J.Off)return;let A={isLSPMessage:!0,type:p,message:_,timestamp:Date.now()};Y.log(A)}function dr(){if(j())throw new Bn(wr.Closed,"Connection is closed.");if(N())throw new Bn(wr.Disposed,"Connection is disposed.")}function Ky(){if(q())throw new Bn(wr.AlreadyListening,"Connection is already listening")}function Gy(){if(!q())throw new Error("Call listen() first.")}function fr(p){return p===void 0?null:p}function ml(p){if(p!==null)return p}function hl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function fs(p,_){switch(p){case U.ParameterStructures.auto:return hl(_)?ml(_):[fr(_)];case U.ParameterStructures.byName:if(!hl(_))throw new Error("Received parameters by name but param is not an object literal.");return ml(_);case U.ParameterStructures.byPosition:return[fr(_)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function yl(p,_){let A,L=p.numberOfParams;switch(L){case 0:A=void 0;break;case 1:A=fs(p.parameterStructures,_[0]);break;default:A=[];for(let oe=0;oe<_.length&&oe<L;oe++)A.push(fr(_[oe]));if(_.length<L)for(let oe=_.length;oe<L;oe++)A.push(null);break}return A}let wn={sendNotification:(p,..._)=>{dr();let A,L;if(le.string(p)){A=p;let ne=_[0],pe=0,he=U.ParameterStructures.auto;U.ParameterStructures.is(ne)&&(pe=1,he=ne);let G=_.length,ce=G-pe;switch(ce){case 0:L=void 0;break;case 1:L=fs(he,_[pe]);break;default:if(he===U.ParameterStructures.byName)throw new Error(`Received ${ce} parameters for 'by Name' notification parameter structure.`);L=_.slice(pe,G).map(Z=>fr(Z));break}}else{let ne=_;A=p.method,L=yl(p,ne)}let oe={jsonrpc:c,method:A,params:L};return $y(oe),t.write(oe).catch(ne=>{throw i.error("Sending notification failed."),ne})},onNotification:(p,_)=>{dr();let A;return le.func(p)?h=p:_&&(le.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)=>wn.sendNotification(Tr.type,{token:_,value:A}),onUnhandledProgress:Rn.event,sendRequest:(p,..._)=>{dr(),Gy();let A,L,oe;if(le.string(p)){A=p;let G=_[0],ce=_[_.length-1],Z=0,Ce=U.ParameterStructures.auto;U.ParameterStructures.is(G)&&(Z=1,Ce=G);let Fe=_.length;Ja.CancellationToken.is(ce)&&(Fe=Fe-1,oe=ce);let ft=Fe-Z;switch(ft){case 0:L=void 0;break;case 1:L=fs(Ce,_[Z]);break;default:if(Ce===U.ParameterStructures.byName)throw new Error(`Received ${ft} parameters for 'by Name' request parameter structure.`);L=_.slice(Z,Fe).map(Qy=>fr(Qy));break}}else{let G=_;A=p.method,L=yl(p,G);let ce=p.numberOfParams;oe=Ja.CancellationToken.is(G[ce])?G[ce]:void 0}let ne=o++,pe;oe&&(pe=oe.onCancellationRequested(()=>{let G=b.sender.sendCancellation(wn,ne);return G===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${ne}`),Promise.resolve()):G.catch(()=>{i.log(`Sending cancellation messages for id ${ne} failed`)})}));let he={jsonrpc:c,id:ne,method:A,params:L};return zy(he),typeof b.sender.enableCancellation=="function"&&b.sender.enableCancellation(he),new Promise(async(G,ce)=>{let Z=ft=>{G(ft),b.sender.cleanup(ne),pe?.dispose()},Ce=ft=>{ce(ft),b.sender.cleanup(ne),pe?.dispose()},Fe={method:A,timerStart:Date.now(),resolve:Z,reject:Ce};try{await t.write(he),K.set(ne,Fe)}catch(ft){throw i.error("Sending request failed."),Fe.reject(new U.ResponseError(U.ErrorCodes.MessageWriteError,ft.message?ft.message:"Unknown reason")),ft}})},onRequest:(p,_)=>{dr();let A=null;return ec.is(p)?(A=void 0,u=p):le.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):u=void 0)}}},hasPendingResponse:()=>K.size>0,trace:async(p,_,A)=>{let L=!1,oe=Je.Text;A!==void 0&&(le.boolean(A)?L=A:(L=A.sendNotification||!1,oe=A.traceFormat||Je.Text)),g=p,S=oe,g===J.Off?Y=void 0:Y=_,L&&!j()&&!N()&&await wn.sendNotification(tc.type,{value:J.toString(p)})},onError:st.event,onClose:Ft.event,onUnhandledNotification:an.event,onDispose:k.event,end:()=>{t.end()},dispose:()=>{if(N())return;X=ut.Disposed,k.fire(void 0);let p=new U.ResponseError(U.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let _ of K.values())_.reject(p);K=new Map,m=new Map,W=new Set,I=new cf.LinkedMap,le.func(t.dispose)&&t.dispose(),le.func(e.dispose)&&e.dispose()},listen:()=>{dr(),Ky(),X=ut.Listening,e.listen(Fy)},inspect:()=>{(0,af.default)().console.log("inspect")}};return wn.onNotification(Hi.type,p=>{if(g===J.Off||!Y)return;let _=g===J.Verbose||g===J.Compact;Y.log(p.message,_?p.verbose:void 0)}),wn.onNotification(Tr.type,p=>{let _=y.get(p.token);_?_(p.value):Rn.fire(p)}),wn}z.createMessageConnection=k_});var Ki=D(P=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.ProgressType=P.ProgressToken=P.createMessageConnection=P.NullLogger=P.ConnectionOptions=P.ConnectionStrategy=P.AbstractMessageBuffer=P.WriteableStreamMessageWriter=P.AbstractMessageWriter=P.MessageWriter=P.ReadableStreamMessageReader=P.AbstractMessageReader=P.MessageReader=P.SharedArrayReceiverStrategy=P.SharedArraySenderStrategy=P.CancellationToken=P.CancellationTokenSource=P.Emitter=P.Event=P.Disposable=P.LRUCache=P.Touch=P.LinkedMap=P.ParameterStructures=P.NotificationType9=P.NotificationType8=P.NotificationType7=P.NotificationType6=P.NotificationType5=P.NotificationType4=P.NotificationType3=P.NotificationType2=P.NotificationType1=P.NotificationType0=P.NotificationType=P.ErrorCodes=P.ResponseError=P.RequestType9=P.RequestType8=P.RequestType7=P.RequestType6=P.RequestType5=P.RequestType4=P.RequestType3=P.RequestType2=P.RequestType1=P.RequestType0=P.RequestType=P.Message=P.RAL=void 0;P.MessageStrategy=P.CancellationStrategy=P.CancellationSenderStrategy=P.CancellationReceiverStrategy=P.ConnectionError=P.ConnectionErrors=P.LogTraceNotification=P.SetTraceNotification=P.TraceFormat=P.TraceValues=P.Trace=void 0;var ie=ka();Object.defineProperty(P,"Message",{enumerable:!0,get:function(){return ie.Message}});Object.defineProperty(P,"RequestType",{enumerable:!0,get:function(){return ie.RequestType}});Object.defineProperty(P,"RequestType0",{enumerable:!0,get:function(){return ie.RequestType0}});Object.defineProperty(P,"RequestType1",{enumerable:!0,get:function(){return ie.RequestType1}});Object.defineProperty(P,"RequestType2",{enumerable:!0,get:function(){return ie.RequestType2}});Object.defineProperty(P,"RequestType3",{enumerable:!0,get:function(){return ie.RequestType3}});Object.defineProperty(P,"RequestType4",{enumerable:!0,get:function(){return ie.RequestType4}});Object.defineProperty(P,"RequestType5",{enumerable:!0,get:function(){return ie.RequestType5}});Object.defineProperty(P,"RequestType6",{enumerable:!0,get:function(){return ie.RequestType6}});Object.defineProperty(P,"RequestType7",{enumerable:!0,get:function(){return ie.RequestType7}});Object.defineProperty(P,"RequestType8",{enumerable:!0,get:function(){return ie.RequestType8}});Object.defineProperty(P,"RequestType9",{enumerable:!0,get:function(){return ie.RequestType9}});Object.defineProperty(P,"ResponseError",{enumerable:!0,get:function(){return ie.ResponseError}});Object.defineProperty(P,"ErrorCodes",{enumerable:!0,get:function(){return ie.ErrorCodes}});Object.defineProperty(P,"NotificationType",{enumerable:!0,get:function(){return ie.NotificationType}});Object.defineProperty(P,"NotificationType0",{enumerable:!0,get:function(){return ie.NotificationType0}});Object.defineProperty(P,"NotificationType1",{enumerable:!0,get:function(){return ie.NotificationType1}});Object.defineProperty(P,"NotificationType2",{enumerable:!0,get:function(){return ie.NotificationType2}});Object.defineProperty(P,"NotificationType3",{enumerable:!0,get:function(){return ie.NotificationType3}});Object.defineProperty(P,"NotificationType4",{enumerable:!0,get:function(){return ie.NotificationType4}});Object.defineProperty(P,"NotificationType5",{enumerable:!0,get:function(){return ie.NotificationType5}});Object.defineProperty(P,"NotificationType6",{enumerable:!0,get:function(){return ie.NotificationType6}});Object.defineProperty(P,"NotificationType7",{enumerable:!0,get:function(){return ie.NotificationType7}});Object.defineProperty(P,"NotificationType8",{enumerable:!0,get:function(){return ie.NotificationType8}});Object.defineProperty(P,"NotificationType9",{enumerable:!0,get:function(){return ie.NotificationType9}});Object.defineProperty(P,"ParameterStructures",{enumerable:!0,get:function(){return ie.ParameterStructures}});var ic=Ea();Object.defineProperty(P,"LinkedMap",{enumerable:!0,get:function(){return ic.LinkedMap}});Object.defineProperty(P,"LRUCache",{enumerable:!0,get:function(){return ic.LRUCache}});Object.defineProperty(P,"Touch",{enumerable:!0,get:function(){return ic.Touch}});var A_=Gd();Object.defineProperty(P,"Disposable",{enumerable:!0,get:function(){return A_.Disposable}});var df=Fn();Object.defineProperty(P,"Event",{enumerable:!0,get:function(){return df.Event}});Object.defineProperty(P,"Emitter",{enumerable:!0,get:function(){return df.Emitter}});var ff=Li();Object.defineProperty(P,"CancellationTokenSource",{enumerable:!0,get:function(){return ff.CancellationTokenSource}});Object.defineProperty(P,"CancellationToken",{enumerable:!0,get:function(){return ff.CancellationToken}});var gf=Jd();Object.defineProperty(P,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return gf.SharedArraySenderStrategy}});Object.defineProperty(P,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return gf.SharedArrayReceiverStrategy}});var oc=Zd();Object.defineProperty(P,"MessageReader",{enumerable:!0,get:function(){return oc.MessageReader}});Object.defineProperty(P,"AbstractMessageReader",{enumerable:!0,get:function(){return oc.AbstractMessageReader}});Object.defineProperty(P,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return oc.ReadableStreamMessageReader}});var sc=of();Object.defineProperty(P,"MessageWriter",{enumerable:!0,get:function(){return sc.MessageWriter}});Object.defineProperty(P,"AbstractMessageWriter",{enumerable:!0,get:function(){return sc.AbstractMessageWriter}});Object.defineProperty(P,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return sc.WriteableStreamMessageWriter}});var E_=sf();Object.defineProperty(P,"AbstractMessageBuffer",{enumerable:!0,get:function(){return E_.AbstractMessageBuffer}});var Ee=pf();Object.defineProperty(P,"ConnectionStrategy",{enumerable:!0,get:function(){return Ee.ConnectionStrategy}});Object.defineProperty(P,"ConnectionOptions",{enumerable:!0,get:function(){return Ee.ConnectionOptions}});Object.defineProperty(P,"NullLogger",{enumerable:!0,get:function(){return Ee.NullLogger}});Object.defineProperty(P,"createMessageConnection",{enumerable:!0,get:function(){return Ee.createMessageConnection}});Object.defineProperty(P,"ProgressToken",{enumerable:!0,get:function(){return Ee.ProgressToken}});Object.defineProperty(P,"ProgressType",{enumerable:!0,get:function(){return Ee.ProgressType}});Object.defineProperty(P,"Trace",{enumerable:!0,get:function(){return Ee.Trace}});Object.defineProperty(P,"TraceValues",{enumerable:!0,get:function(){return Ee.TraceValues}});Object.defineProperty(P,"TraceFormat",{enumerable:!0,get:function(){return Ee.TraceFormat}});Object.defineProperty(P,"SetTraceNotification",{enumerable:!0,get:function(){return Ee.SetTraceNotification}});Object.defineProperty(P,"LogTraceNotification",{enumerable:!0,get:function(){return Ee.LogTraceNotification}});Object.defineProperty(P,"ConnectionErrors",{enumerable:!0,get:function(){return Ee.ConnectionErrors}});Object.defineProperty(P,"ConnectionError",{enumerable:!0,get:function(){return Ee.ConnectionError}});Object.defineProperty(P,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Ee.CancellationReceiverStrategy}});Object.defineProperty(P,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Ee.CancellationSenderStrategy}});Object.defineProperty(P,"CancellationStrategy",{enumerable:!0,get:function(){return Ee.CancellationStrategy}});Object.defineProperty(P,"MessageStrategy",{enumerable:!0,get:function(){return Ee.MessageStrategy}});var N_=Yt();P.RAL=N_.default});var hf=D(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});var Dt=Ki(),Gi=class e extends Dt.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)}};Gi.emptyBuffer=new Uint8Array(0);var ac=class{constructor(t){this.socket=t,this._onData=new Dt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,Dt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),Dt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),Dt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),Dt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},cc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),Dt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),Dt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),Dt.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()}},q_=new TextEncoder,mf=Object.freeze({messageBuffer:Object.freeze({create:e=>new Gi(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(q_.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 ac(e),asWritableStream:e=>new cc(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 uc(){return mf}(function(e){function t(){Dt.RAL.install(mf)}e.install=t})(uc||(uc={}));lc.default=uc});var bn=D(Xe=>{"use strict";var O_=Xe&&Xe.__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]})),M_=Xe&&Xe.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&O_(t,e,n)};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.createMessageConnection=Xe.BrowserMessageWriter=Xe.BrowserMessageReader=void 0;var j_=hf();j_.default.install();var zn=Ki();M_(Ki(),Xe);var pc=class extends zn.AbstractMessageReader{constructor(t){super(),this._onData=new zn.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)}};Xe.BrowserMessageReader=pc;var dc=class extends zn.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(){}};Xe.BrowserMessageWriter=dc;function L_(e,t,n,r){return n===void 0&&(n=zn.NullLogger),zn.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,zn.createMessageConnection)(e,t,n,r)}Xe.createMessageConnection=L_});var fc=D((nw,yf)=>{"use strict";yf.exports=bn()});var io={};gs(io,{AnnotatedTextEdit:()=>jt,ChangeAnnotation:()=>vn,ChangeAnnotationIdentifier:()=>Ne,CodeAction:()=>Kc,CodeActionContext:()=>Vc,CodeActionKind:()=>Yc,CodeActionTriggerKind:()=>Mr,CodeDescription:()=>Cc,CodeLens:()=>Gc,Color:()=>Ji,ColorInformation:()=>yc,ColorPresentation:()=>bc,Command:()=>Pn,CompletionItem:()=>Oc,CompletionItemKind:()=>Sc,CompletionItemLabelDetails:()=>qc,CompletionItemTag:()=>Ac,CompletionList:()=>Mc,CreateFile:()=>Yn,DeleteFile:()=>Kn,Diagnostic:()=>Er,DiagnosticRelatedInformation:()=>Xi,DiagnosticSeverity:()=>xc,DiagnosticTag:()=>_c,DocumentHighlight:()=>Uc,DocumentHighlightKind:()=>Fc,DocumentLink:()=>Jc,DocumentSymbol:()=>$c,DocumentUri:()=>gc,EOL:()=>I_,FoldingRange:()=>Pc,FoldingRangeKind:()=>vc,FormattingOptions:()=>Qc,Hover:()=>jc,InlayHint:()=>su,InlayHintKind:()=>no,InlayHintLabelPart:()=>ro,InlineCompletionContext:()=>du,InlineCompletionItem:()=>cu,InlineCompletionList:()=>uu,InlineCompletionTriggerKind:()=>lu,InlineValueContext:()=>ou,InlineValueEvaluatableExpression:()=>iu,InlineValueText:()=>nu,InlineValueVariableLookup:()=>ru,InsertReplaceEdit:()=>Ec,InsertTextFormat:()=>kc,InsertTextMode:()=>Nc,Location:()=>Ar,LocationLink:()=>hc,MarkedString:()=>Or,MarkupContent:()=>Gn,MarkupKind:()=>to,OptionalVersionedTextDocumentIdentifier:()=>qr,ParameterInformation:()=>Lc,Position:()=>et,Range:()=>fe,RenameFile:()=>Vn,SelectedCompletionInfo:()=>pu,SelectionRange:()=>Xc,SemanticTokenModifiers:()=>eu,SemanticTokenTypes:()=>Zc,SemanticTokens:()=>tu,SignatureInformation:()=>Ic,StringValue:()=>au,SymbolInformation:()=>Bc,SymbolKind:()=>Wc,SymbolTag:()=>Hc,TextDocument:()=>gu,TextDocumentEdit:()=>Nr,TextDocumentIdentifier:()=>Rc,TextDocumentItem:()=>wc,TextEdit:()=>Rt,URI:()=>Qi,VersionedTextDocumentIdentifier:()=>Tc,WorkspaceChange:()=>Dc,WorkspaceEdit:()=>Zi,WorkspaceFolder:()=>fu,WorkspaceSymbol:()=>zc,integer:()=>mc,uinteger:()=>kr});var gc,Qi,mc,kr,et,fe,Ar,hc,Ji,yc,bc,vc,Pc,Xi,xc,_c,Cc,Er,Pn,Rt,vn,Ne,jt,Nr,Yn,Vn,Kn,Zi,$n,eo,Dc,Rc,Tc,qr,wc,to,Gn,Sc,kc,Ac,Ec,Nc,qc,Oc,Mc,Or,jc,Lc,Ic,Fc,Uc,Wc,Hc,Bc,zc,$c,Yc,Mr,Vc,Kc,Gc,Qc,Jc,Xc,Zc,eu,tu,nu,ru,iu,ou,no,ro,su,au,cu,uu,lu,pu,du,fu,I_,gu,mu,f,oo=bl(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})(gc||(gc={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(Qi||(Qi={}));(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})(mc||(mc={}));(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})(kr||(kr={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=kr.MAX_VALUE),i===Number.MAX_VALUE&&(i=kr.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})(et||(et={}));(function(e){function t(r,i,o,s){if(f.uinteger(r)&&f.uinteger(i)&&f.uinteger(o)&&f.uinteger(s))return{start:et.create(r,i),end:et.create(o,s)};if(et.is(r)&&et.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)&&et.is(i.start)&&et.is(i.end)}e.is=n})(fe||(fe={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&fe.is(i.range)&&(f.string(i.uri)||f.undefined(i.uri))}e.is=n})(Ar||(Ar={}));(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)&&fe.is(i.targetRange)&&f.string(i.targetUri)&&fe.is(i.targetSelectionRange)&&(fe.is(i.originSelectionRange)||f.undefined(i.originSelectionRange))}e.is=n})(hc||(hc={}));(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})(Ji||(Ji={}));(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&fe.is(i.range)&&Ji.is(i.color)}e.is=n})(yc||(yc={}));(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)||Rt.is(i))&&(f.undefined(i.additionalTextEdits)||f.typedArray(i.additionalTextEdits,Rt.is))}e.is=n})(bc||(bc={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(vc||(vc={}));(function(e){function t(r,i,o,s,a,c){let u={startLine:r,endLine:i};return f.defined(o)&&(u.startCharacter=o),f.defined(s)&&(u.endCharacter=s),f.defined(a)&&(u.kind=a),f.defined(c)&&(u.collapsedText=c),u}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})(Pc||(Pc={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Ar.is(i.location)&&f.string(i.message)}e.is=n})(Xi||(Xi={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(xc||(xc={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(_c||(_c={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(Cc||(Cc={}));(function(e){function t(r,i,o,s,a,c){let u={range:r,message:i};return f.defined(o)&&(u.severity=o),f.defined(s)&&(u.code=s),f.defined(a)&&(u.source=a),f.defined(c)&&(u.relatedInformation=c),u}e.create=t;function n(r){var i;let o=r;return f.defined(o)&&fe.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,Xi.is))}e.is=n})(Er||(Er={}));(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})(Pn||(Pn={}));(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)&&fe.is(s.range)}e.is=i})(Rt||(Rt={}));(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})(vn||(vn={}));(function(e){function t(n){let r=n;return f.string(r)}e.is=t})(Ne||(Ne={}));(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 Rt.is(s)&&(vn.is(s.annotationId)||Ne.is(s.annotationId))}e.is=i})(jt||(jt={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&qr.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||Ne.is(i.annotationId))}e.is=n})(Yn||(Yn={}));(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||Ne.is(i.annotationId))}e.is=n})(Vn||(Vn={}));(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||Ne.is(i.annotationId))}e.is=n})(Kn||(Kn={}));(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)?Yn.is(i)||Vn.is(i)||Kn.is(i):Nr.is(i)))}e.is=t})(Zi||(Zi={}));$n=class{constructor(t,n){this.edits=t,this.changeAnnotations=n}insert(t,n,r){let i,o;if(r===void 0?i=Rt.insert(t,n):Ne.is(r)?(o=r,i=jt.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=jt.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=Rt.replace(t,n):Ne.is(r)?(o=r,i=jt.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=jt.replace(t,n,o)),this.edits.push(i),o!==void 0)return o}delete(t,n){let r,i;if(n===void 0?r=Rt.del(t):Ne.is(n)?(i=n,r=jt.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=jt.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.")}},eo=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(Ne.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()}},Dc=class{constructor(t){this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new eo(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(n=>{if(Nr.is(n)){let r=new $n(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new $n(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(qr.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 $n(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 $n(r),this._textEditChanges[t]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new eo,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;vn.is(n)||Ne.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Yn.create(t,r):(s=Ne.is(i)?i:this._changeAnnotations.manage(i),o=Yn.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;vn.is(r)||Ne.is(r)?o=r:i=r;let s,a;if(o===void 0?s=Vn.create(t,n,i):(a=Ne.is(o)?o:this._changeAnnotations.manage(o),s=Vn.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;vn.is(n)||Ne.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Kn.create(t,r):(s=Ne.is(i)?i:this._changeAnnotations.manage(i),o=Kn.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})(Rc||(Rc={}));(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})(Tc||(Tc={}));(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})(qr||(qr={}));(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})(to||(to={}));(function(e){function t(n){let r=n;return f.objectLiteral(n)&&to.is(r.kind)&&f.string(r.value)}e.is=t})(Gn||(Gn={}));(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})(Sc||(Sc={}));(function(e){e.PlainText=1,e.Snippet=2})(kc||(kc={}));(function(e){e.Deprecated=1})(Ac||(Ac={}));(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)&&fe.is(i.insert)&&fe.is(i.replace)}e.is=n})(Ec||(Ec={}));(function(e){e.asIs=1,e.adjustIndentation=2})(Nc||(Nc={}));(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})(qc||(qc={}));(function(e){function t(n){return{label:n}}e.create=t})(Oc||(Oc={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(Mc||(Mc={}));(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})(Or||(Or={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(Gn.is(r.contents)||Or.is(r.contents)||f.typedArray(r.contents,Or.is))&&(n.range===void 0||fe.is(n.range))}e.is=t})(jc||(jc={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Lc||(Lc={}));(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})(Ic||(Ic={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(Fc||(Fc={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(Uc||(Uc={}));(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})(Wc||(Wc={}));(function(e){e.Deprecated=1})(Hc||(Hc={}));(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})(Bc||(Bc={}));(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})(zc||(zc={}));(function(e){function t(r,i,o,s,a,c){let u={name:r,detail:i,kind:o,range:s,selectionRange:a};return c!==void 0&&(u.children=c),u}e.create=t;function n(r){let i=r;return i&&f.string(i.name)&&f.number(i.kind)&&fe.is(i.range)&&fe.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})($c||($c={}));(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"})(Yc||(Yc={}));(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,Er.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})(Vc||(Vc={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):Pn.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,Er.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Pn.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||Zi.is(i.edit))}e.is=n})(Kc||(Kc={}));(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)&&fe.is(i.range)&&(f.undefined(i.command)||Pn.is(i.command))}e.is=n})(Gc||(Gc={}));(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})(Qc||(Qc={}));(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)&&fe.is(i.range)&&(f.undefined(i.target)||f.string(i.target))}e.is=n})(Jc||(Jc={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&fe.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(Xc||(Xc={}));(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"})(Zc||(Zc={}));(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"})(eu||(eu={}));(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})(tu||(tu={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&fe.is(i.range)&&f.string(i.text)}e.is=n})(nu||(nu={}));(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&&fe.is(i.range)&&f.boolean(i.caseSensitiveLookup)&&(f.string(i.variableName)||i.variableName===void 0)}e.is=n})(ru||(ru={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&fe.is(i.range)&&(f.string(i.expression)||i.expression===void 0)}e.is=n})(iu||(iu={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&fe.is(r.stoppedLocation)}e.is=n})(ou||(ou={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(no||(no={}));(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)||Gn.is(i.tooltip))&&(i.location===void 0||Ar.is(i.location))&&(i.command===void 0||Pn.is(i.command))}e.is=n})(ro||(ro={}));(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)&&et.is(i.position)&&(f.string(i.label)||f.typedArray(i.label,ro.is))&&(i.kind===void 0||no.is(i.kind))&&i.textEdits===void 0||f.typedArray(i.textEdits,Rt.is)&&(i.tooltip===void 0||f.string(i.tooltip)||Gn.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(su||(su={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(au||(au={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(cu||(cu={}));(function(e){function t(n){return{items:n}}e.create=t})(uu||(uu={}));(function(e){e.Invoked=0,e.Automatic=1})(lu||(lu={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(pu||(pu={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(du||(du={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&Qi.is(r.uri)&&f.string(r.name)}e.is=t})(fu||(fu={}));I_=[`
|
|
66
66
|
`,`\r
|
|
67
|
-
`,"\r"];(function(e){function t(o,s,a,c){return new
|
|
67
|
+
`,"\r"];(function(e){function t(o,s,a,c){return new mu(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}),u=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<=u)a=a.substring(0,v)+h.newText+a.substring(y,a.length);else throw new Error("Overlapping edit");u=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),u=o.slice(a);i(c,s),i(u,s);let d=0,h=0,v=0;for(;d<c.length&&h<u.length;)s(c[d],u[h])<=0?o[v++]=c[d++]:o[v++]=u[h++];for(;d<c.length;)o[v++]=c[d++];for(;h<u.length;)o[v++]=u[h++];return o}})(gu||(gu={}));mu=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 nt.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 nt.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,I){return t.call(y)==="[object Number]"&&R<=y&&y<=I}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function u(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=u;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 ae=S(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.ProtocolNotificationType=Ye.ProtocolNotificationType0=Ye.ProtocolRequestType=Ye.ProtocolRequestType0=Ye.RegistrationType=Ye.MessageDirection=void 0;var sr=xn(),Tf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(Tf||(Ye.MessageDirection=Tf={}));var Vu=class{constructor(t){this.method=t}};Ye.RegistrationType=Vu;var Ku=class extends sr.RequestType0{constructor(t){super(t)}};Ye.ProtocolRequestType0=Ku;var Gu=class extends sr.RequestType{constructor(t){super(t,sr.ParameterStructures.byName)}};Ye.ProtocolRequestType=Gu;var Qu=class extends sr.NotificationType0{constructor(t){super(t)}};Ye.ProtocolNotificationType0=Qu;var Ju=class extends sr.NotificationType{constructor(t){super(t,sr.ParameterStructures.byName)}};Ye.ProtocolNotificationType=Ju});var No=S(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.objectLiteral=Pe.typedArray=Pe.stringArray=Pe.array=Pe.func=Pe.error=Pe.number=Pe.string=Pe.boolean=void 0;function U_(e){return e===!0||e===!1}Pe.boolean=U_;function Rf(e){return typeof e=="string"||e instanceof String}Pe.string=Rf;function W_(e){return typeof e=="number"||e instanceof Number}Pe.number=W_;function B_(e){return e instanceof Error}Pe.error=B_;function H_(e){return typeof e=="function"}Pe.func=H_;function Df(e){return Array.isArray(e)}Pe.array=Df;function z_(e){return Df(e)&&e.every(t=>Rf(t))}Pe.stringArray=z_;function $_(e,t){return Array.isArray(e)&&e.every(t)}Pe.typedArray=$_;function Y_(e){return e!==null&&typeof e=="object"}Pe.objectLiteral=Y_});var Af=S(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.ImplementationRequest=void 0;var wf=ae(),kf;(function(e){e.method="textDocument/implementation",e.messageDirection=wf.MessageDirection.clientToServer,e.type=new wf.ProtocolRequestType(e.method)})(kf||(Oo.ImplementationRequest=kf={}))});var Of=S(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.TypeDefinitionRequest=void 0;var Ef=ae(),Nf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=Ef.MessageDirection.clientToServer,e.type=new Ef.ProtocolRequestType(e.method)})(Nf||(qo.TypeDefinitionRequest=Nf={}))});var Mf=S(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.DidChangeWorkspaceFoldersNotification=ar.WorkspaceFoldersRequest=void 0;var jo=ae(),qf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=jo.MessageDirection.serverToClient,e.type=new jo.ProtocolRequestType0(e.method)})(qf||(ar.WorkspaceFoldersRequest=qf={}));var jf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=jo.MessageDirection.clientToServer,e.type=new jo.ProtocolNotificationType(e.method)})(jf||(ar.DidChangeWorkspaceFoldersNotification=jf={}))});var Ff=S(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.ConfigurationRequest=void 0;var Lf=ae(),If;(function(e){e.method="workspace/configuration",e.messageDirection=Lf.MessageDirection.serverToClient,e.type=new Lf.ProtocolRequestType(e.method)})(If||(Mo.ConfigurationRequest=If={}))});var Bf=S(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.ColorPresentationRequest=cr.DocumentColorRequest=void 0;var Lo=ae(),Uf;(function(e){e.method="textDocument/documentColor",e.messageDirection=Lo.MessageDirection.clientToServer,e.type=new Lo.ProtocolRequestType(e.method)})(Uf||(cr.DocumentColorRequest=Uf={}));var Wf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=Lo.MessageDirection.clientToServer,e.type=new Lo.ProtocolRequestType(e.method)})(Wf||(cr.ColorPresentationRequest=Wf={}))});var $f=S(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.FoldingRangeRefreshRequest=ur.FoldingRangeRequest=void 0;var Io=ae(),Hf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=Io.MessageDirection.clientToServer,e.type=new Io.ProtocolRequestType(e.method)})(Hf||(ur.FoldingRangeRequest=Hf={}));var zf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=Io.MessageDirection.serverToClient,e.type=new Io.ProtocolRequestType0(e.method)})(zf||(ur.FoldingRangeRefreshRequest=zf={}))});var Kf=S(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.DeclarationRequest=void 0;var Yf=ae(),Vf;(function(e){e.method="textDocument/declaration",e.messageDirection=Yf.MessageDirection.clientToServer,e.type=new Yf.ProtocolRequestType(e.method)})(Vf||(Fo.DeclarationRequest=Vf={}))});var Jf=S(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.SelectionRangeRequest=void 0;var Gf=ae(),Qf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Gf.MessageDirection.clientToServer,e.type=new Gf.ProtocolRequestType(e.method)})(Qf||(Uo.SelectionRangeRequest=Qf={}))});var tg=S(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.WorkDoneProgressCancelNotification=Qt.WorkDoneProgressCreateRequest=Qt.WorkDoneProgress=void 0;var V_=xn(),Wo=ae(),Xf;(function(e){e.type=new V_.ProgressType;function t(n){return n===e.type}e.is=t})(Xf||(Qt.WorkDoneProgress=Xf={}));var Zf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Wo.MessageDirection.serverToClient,e.type=new Wo.ProtocolRequestType(e.method)})(Zf||(Qt.WorkDoneProgressCreateRequest=Zf={}));var eg;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Wo.MessageDirection.clientToServer,e.type=new Wo.ProtocolNotificationType(e.method)})(eg||(Qt.WorkDoneProgressCancelNotification=eg={}))});var og=S(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.CallHierarchyOutgoingCallsRequest=Jt.CallHierarchyIncomingCallsRequest=Jt.CallHierarchyPrepareRequest=void 0;var lr=ae(),ng;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=lr.MessageDirection.clientToServer,e.type=new lr.ProtocolRequestType(e.method)})(ng||(Jt.CallHierarchyPrepareRequest=ng={}));var rg;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=lr.MessageDirection.clientToServer,e.type=new lr.ProtocolRequestType(e.method)})(rg||(Jt.CallHierarchyIncomingCallsRequest=rg={}));var ig;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=lr.MessageDirection.clientToServer,e.type=new lr.ProtocolRequestType(e.method)})(ig||(Jt.CallHierarchyOutgoingCallsRequest=ig={}))});var pg=S(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.SemanticTokensRefreshRequest=Ve.SemanticTokensRangeRequest=Ve.SemanticTokensDeltaRequest=Ve.SemanticTokensRequest=Ve.SemanticTokensRegistrationType=Ve.TokenFormat=void 0;var It=ae(),sg;(function(e){e.Relative="relative"})(sg||(Ve.TokenFormat=sg={}));var Vr;(function(e){e.method="textDocument/semanticTokens",e.type=new It.RegistrationType(e.method)})(Vr||(Ve.SemanticTokensRegistrationType=Vr={}));var ag;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=It.MessageDirection.clientToServer,e.type=new It.ProtocolRequestType(e.method),e.registrationMethod=Vr.method})(ag||(Ve.SemanticTokensRequest=ag={}));var cg;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=It.MessageDirection.clientToServer,e.type=new It.ProtocolRequestType(e.method),e.registrationMethod=Vr.method})(cg||(Ve.SemanticTokensDeltaRequest=cg={}));var ug;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=It.MessageDirection.clientToServer,e.type=new It.ProtocolRequestType(e.method),e.registrationMethod=Vr.method})(ug||(Ve.SemanticTokensRangeRequest=ug={}));var lg;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=It.MessageDirection.serverToClient,e.type=new It.ProtocolRequestType0(e.method)})(lg||(Ve.SemanticTokensRefreshRequest=lg={}))});var gg=S(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.ShowDocumentRequest=void 0;var dg=ae(),fg;(function(e){e.method="window/showDocument",e.messageDirection=dg.MessageDirection.serverToClient,e.type=new dg.ProtocolRequestType(e.method)})(fg||(Bo.ShowDocumentRequest=fg={}))});var yg=S(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.LinkedEditingRangeRequest=void 0;var mg=ae(),hg;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=mg.MessageDirection.clientToServer,e.type=new mg.ProtocolRequestType(e.method)})(hg||(Ho.LinkedEditingRangeRequest=hg={}))});var Tg=S(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.WillDeleteFilesRequest=Le.DidDeleteFilesNotification=Le.DidRenameFilesNotification=Le.WillRenameFilesRequest=Le.DidCreateFilesNotification=Le.WillCreateFilesRequest=Le.FileOperationPatternKind=void 0;var rt=ae(),bg;(function(e){e.file="file",e.folder="folder"})(bg||(Le.FileOperationPatternKind=bg={}));var vg;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=rt.MessageDirection.clientToServer,e.type=new rt.ProtocolRequestType(e.method)})(vg||(Le.WillCreateFilesRequest=vg={}));var xg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=rt.MessageDirection.clientToServer,e.type=new rt.ProtocolNotificationType(e.method)})(xg||(Le.DidCreateFilesNotification=xg={}));var Pg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=rt.MessageDirection.clientToServer,e.type=new rt.ProtocolRequestType(e.method)})(Pg||(Le.WillRenameFilesRequest=Pg={}));var Cg;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=rt.MessageDirection.clientToServer,e.type=new rt.ProtocolNotificationType(e.method)})(Cg||(Le.DidRenameFilesNotification=Cg={}));var _g;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=rt.MessageDirection.clientToServer,e.type=new rt.ProtocolNotificationType(e.method)})(_g||(Le.DidDeleteFilesNotification=_g={}));var Sg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=rt.MessageDirection.clientToServer,e.type=new rt.ProtocolRequestType(e.method)})(Sg||(Le.WillDeleteFilesRequest=Sg={}))});var Ag=S(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.MonikerRequest=Xt.MonikerKind=Xt.UniquenessLevel=void 0;var Rg=ae(),Dg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(Dg||(Xt.UniquenessLevel=Dg={}));var wg;(function(e){e.$import="import",e.$export="export",e.local="local"})(wg||(Xt.MonikerKind=wg={}));var kg;(function(e){e.method="textDocument/moniker",e.messageDirection=Rg.MessageDirection.clientToServer,e.type=new Rg.ProtocolRequestType(e.method)})(kg||(Xt.MonikerRequest=kg={}))});var qg=S(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.TypeHierarchySubtypesRequest=Zt.TypeHierarchySupertypesRequest=Zt.TypeHierarchyPrepareRequest=void 0;var pr=ae(),Eg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=pr.MessageDirection.clientToServer,e.type=new pr.ProtocolRequestType(e.method)})(Eg||(Zt.TypeHierarchyPrepareRequest=Eg={}));var Ng;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=pr.MessageDirection.clientToServer,e.type=new pr.ProtocolRequestType(e.method)})(Ng||(Zt.TypeHierarchySupertypesRequest=Ng={}));var Og;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=pr.MessageDirection.clientToServer,e.type=new pr.ProtocolRequestType(e.method)})(Og||(Zt.TypeHierarchySubtypesRequest=Og={}))});var Lg=S(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.InlineValueRefreshRequest=dr.InlineValueRequest=void 0;var zo=ae(),jg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=zo.MessageDirection.clientToServer,e.type=new zo.ProtocolRequestType(e.method)})(jg||(dr.InlineValueRequest=jg={}));var Mg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=zo.MessageDirection.serverToClient,e.type=new zo.ProtocolRequestType0(e.method)})(Mg||(dr.InlineValueRefreshRequest=Mg={}))});var Wg=S(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.InlayHintRefreshRequest=en.InlayHintResolveRequest=en.InlayHintRequest=void 0;var fr=ae(),Ig;(function(e){e.method="textDocument/inlayHint",e.messageDirection=fr.MessageDirection.clientToServer,e.type=new fr.ProtocolRequestType(e.method)})(Ig||(en.InlayHintRequest=Ig={}));var Fg;(function(e){e.method="inlayHint/resolve",e.messageDirection=fr.MessageDirection.clientToServer,e.type=new fr.ProtocolRequestType(e.method)})(Fg||(en.InlayHintResolveRequest=Fg={}));var Ug;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=fr.MessageDirection.serverToClient,e.type=new fr.ProtocolRequestType0(e.method)})(Ug||(en.InlayHintRefreshRequest=Ug={}))});var Kg=S(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.DiagnosticRefreshRequest=it.WorkspaceDiagnosticRequest=it.DocumentDiagnosticRequest=it.DocumentDiagnosticReportKind=it.DiagnosticServerCancellationData=void 0;var Vg=xn(),K_=No(),gr=ae(),Bg;(function(e){function t(n){let r=n;return r&&K_.boolean(r.retriggerRequest)}e.is=t})(Bg||(it.DiagnosticServerCancellationData=Bg={}));var Hg;(function(e){e.Full="full",e.Unchanged="unchanged"})(Hg||(it.DocumentDiagnosticReportKind=Hg={}));var zg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=gr.MessageDirection.clientToServer,e.type=new gr.ProtocolRequestType(e.method),e.partialResult=new Vg.ProgressType})(zg||(it.DocumentDiagnosticRequest=zg={}));var $g;(function(e){e.method="workspace/diagnostic",e.messageDirection=gr.MessageDirection.clientToServer,e.type=new gr.ProtocolRequestType(e.method),e.partialResult=new Vg.ProgressType})($g||(it.WorkspaceDiagnosticRequest=$g={}));var Yg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=gr.MessageDirection.serverToClient,e.type=new gr.ProtocolRequestType0(e.method)})(Yg||(it.DiagnosticRefreshRequest=Yg={}))});var tm=S(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.DidCloseNotebookDocumentNotification=me.DidSaveNotebookDocumentNotification=me.DidChangeNotebookDocumentNotification=me.NotebookCellArrayChange=me.DidOpenNotebookDocumentNotification=me.NotebookDocumentSyncRegistrationType=me.NotebookDocument=me.NotebookCell=me.ExecutionSummary=me.NotebookCellKind=void 0;var Kr=(Eo(),pi(Ao)),dt=No(),Dt=ae(),Xu;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Xu||(me.NotebookCellKind=Xu={}));var Zu;(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 dt.objectLiteral(o)&&Kr.uinteger.is(o.executionOrder)&&(o.success===void 0||dt.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})(Zu||(me.ExecutionSummary=Zu={}));var $o;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return dt.objectLiteral(s)&&Xu.is(s.kind)&&Kr.DocumentUri.is(s.document)&&(s.metadata===void 0||dt.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)&&!Zu.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 u=0;u<o.length;u++)if(!i(o[u],s[u]))return!1}if(dt.objectLiteral(o)&&dt.objectLiteral(s)){let u=Object.keys(o),d=Object.keys(s);if(u.length!==d.length||(u.sort(),d.sort(),!i(u,d)))return!1;for(let h=0;h<u.length;h++){let v=u[h];if(!i(o[v],s[v]))return!1}}return!0}})($o||(me.NotebookCell=$o={}));var Gg;(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 dt.objectLiteral(i)&&dt.string(i.uri)&&Kr.integer.is(i.version)&&dt.typedArray(i.cells,$o.is)}e.is=n})(Gg||(me.NotebookDocument=Gg={}));var mr;(function(e){e.method="notebookDocument/sync",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.RegistrationType(e.method)})(mr||(me.NotebookDocumentSyncRegistrationType=mr={}));var Qg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=mr.method})(Qg||(me.DidOpenNotebookDocumentNotification=Qg={}));var Jg;(function(e){function t(r){let i=r;return dt.objectLiteral(i)&&Kr.uinteger.is(i.start)&&Kr.uinteger.is(i.deleteCount)&&(i.cells===void 0||dt.typedArray(i.cells,$o.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})(Jg||(me.NotebookCellArrayChange=Jg={}));var Xg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=mr.method})(Xg||(me.DidChangeNotebookDocumentNotification=Xg={}));var Zg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=mr.method})(Zg||(me.DidSaveNotebookDocumentNotification=Zg={}));var em;(function(e){e.method="notebookDocument/didClose",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=mr.method})(em||(me.DidCloseNotebookDocumentNotification=em={}))});var im=S(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.InlineCompletionRequest=void 0;var nm=ae(),rm;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=nm.MessageDirection.clientToServer,e.type=new nm.ProtocolRequestType(e.method)})(rm||(Yo.InlineCompletionRequest=rm={}))});var yh=S(l=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});l.WorkspaceSymbolRequest=l.CodeActionResolveRequest=l.CodeActionRequest=l.DocumentSymbolRequest=l.DocumentHighlightRequest=l.ReferencesRequest=l.DefinitionRequest=l.SignatureHelpRequest=l.SignatureHelpTriggerKind=l.HoverRequest=l.CompletionResolveRequest=l.CompletionRequest=l.CompletionTriggerKind=l.PublishDiagnosticsNotification=l.WatchKind=l.RelativePattern=l.FileChangeType=l.DidChangeWatchedFilesNotification=l.WillSaveTextDocumentWaitUntilRequest=l.WillSaveTextDocumentNotification=l.TextDocumentSaveReason=l.DidSaveTextDocumentNotification=l.DidCloseTextDocumentNotification=l.DidChangeTextDocumentNotification=l.TextDocumentContentChangeEvent=l.DidOpenTextDocumentNotification=l.TextDocumentSyncKind=l.TelemetryEventNotification=l.LogMessageNotification=l.ShowMessageRequest=l.ShowMessageNotification=l.MessageType=l.DidChangeConfigurationNotification=l.ExitNotification=l.ShutdownRequest=l.InitializedNotification=l.InitializeErrorCodes=l.InitializeRequest=l.WorkDoneProgressOptions=l.TextDocumentRegistrationOptions=l.StaticRegistrationOptions=l.PositionEncodingKind=l.FailureHandlingKind=l.ResourceOperationKind=l.UnregistrationRequest=l.RegistrationRequest=l.DocumentSelector=l.NotebookCellTextDocumentFilter=l.NotebookDocumentFilter=l.TextDocumentFilter=void 0;l.MonikerRequest=l.MonikerKind=l.UniquenessLevel=l.WillDeleteFilesRequest=l.DidDeleteFilesNotification=l.WillRenameFilesRequest=l.DidRenameFilesNotification=l.WillCreateFilesRequest=l.DidCreateFilesNotification=l.FileOperationPatternKind=l.LinkedEditingRangeRequest=l.ShowDocumentRequest=l.SemanticTokensRegistrationType=l.SemanticTokensRefreshRequest=l.SemanticTokensRangeRequest=l.SemanticTokensDeltaRequest=l.SemanticTokensRequest=l.TokenFormat=l.CallHierarchyPrepareRequest=l.CallHierarchyOutgoingCallsRequest=l.CallHierarchyIncomingCallsRequest=l.WorkDoneProgressCancelNotification=l.WorkDoneProgressCreateRequest=l.WorkDoneProgress=l.SelectionRangeRequest=l.DeclarationRequest=l.FoldingRangeRefreshRequest=l.FoldingRangeRequest=l.ColorPresentationRequest=l.DocumentColorRequest=l.ConfigurationRequest=l.DidChangeWorkspaceFoldersNotification=l.WorkspaceFoldersRequest=l.TypeDefinitionRequest=l.ImplementationRequest=l.ApplyWorkspaceEditRequest=l.ExecuteCommandRequest=l.PrepareRenameRequest=l.RenameRequest=l.PrepareSupportDefaultBehavior=l.DocumentOnTypeFormattingRequest=l.DocumentRangesFormattingRequest=l.DocumentRangeFormattingRequest=l.DocumentFormattingRequest=l.DocumentLinkResolveRequest=l.DocumentLinkRequest=l.CodeLensRefreshRequest=l.CodeLensResolveRequest=l.CodeLensRequest=l.WorkspaceSymbolResolveRequest=void 0;l.InlineCompletionRequest=l.DidCloseNotebookDocumentNotification=l.DidSaveNotebookDocumentNotification=l.DidChangeNotebookDocumentNotification=l.NotebookCellArrayChange=l.DidOpenNotebookDocumentNotification=l.NotebookDocumentSyncRegistrationType=l.NotebookDocument=l.NotebookCell=l.ExecutionSummary=l.NotebookCellKind=l.DiagnosticRefreshRequest=l.WorkspaceDiagnosticRequest=l.DocumentDiagnosticRequest=l.DocumentDiagnosticReportKind=l.DiagnosticServerCancellationData=l.InlayHintRefreshRequest=l.InlayHintResolveRequest=l.InlayHintRequest=l.InlineValueRefreshRequest=l.InlineValueRequest=l.TypeHierarchySupertypesRequest=l.TypeHierarchySubtypesRequest=l.TypeHierarchyPrepareRequest=void 0;var D=ae(),om=(Eo(),pi(Ao)),we=No(),G_=Af();Object.defineProperty(l,"ImplementationRequest",{enumerable:!0,get:function(){return G_.ImplementationRequest}});var Q_=Of();Object.defineProperty(l,"TypeDefinitionRequest",{enumerable:!0,get:function(){return Q_.TypeDefinitionRequest}});var fh=Mf();Object.defineProperty(l,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return fh.WorkspaceFoldersRequest}});Object.defineProperty(l,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return fh.DidChangeWorkspaceFoldersNotification}});var J_=Ff();Object.defineProperty(l,"ConfigurationRequest",{enumerable:!0,get:function(){return J_.ConfigurationRequest}});var gh=Bf();Object.defineProperty(l,"DocumentColorRequest",{enumerable:!0,get:function(){return gh.DocumentColorRequest}});Object.defineProperty(l,"ColorPresentationRequest",{enumerable:!0,get:function(){return gh.ColorPresentationRequest}});var mh=$f();Object.defineProperty(l,"FoldingRangeRequest",{enumerable:!0,get:function(){return mh.FoldingRangeRequest}});Object.defineProperty(l,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return mh.FoldingRangeRefreshRequest}});var X_=Kf();Object.defineProperty(l,"DeclarationRequest",{enumerable:!0,get:function(){return X_.DeclarationRequest}});var Z_=Jf();Object.defineProperty(l,"SelectionRangeRequest",{enumerable:!0,get:function(){return Z_.SelectionRangeRequest}});var il=tg();Object.defineProperty(l,"WorkDoneProgress",{enumerable:!0,get:function(){return il.WorkDoneProgress}});Object.defineProperty(l,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return il.WorkDoneProgressCreateRequest}});Object.defineProperty(l,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return il.WorkDoneProgressCancelNotification}});var ol=og();Object.defineProperty(l,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return ol.CallHierarchyIncomingCallsRequest}});Object.defineProperty(l,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return ol.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(l,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return ol.CallHierarchyPrepareRequest}});var hr=pg();Object.defineProperty(l,"TokenFormat",{enumerable:!0,get:function(){return hr.TokenFormat}});Object.defineProperty(l,"SemanticTokensRequest",{enumerable:!0,get:function(){return hr.SemanticTokensRequest}});Object.defineProperty(l,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return hr.SemanticTokensDeltaRequest}});Object.defineProperty(l,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return hr.SemanticTokensRangeRequest}});Object.defineProperty(l,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return hr.SemanticTokensRefreshRequest}});Object.defineProperty(l,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return hr.SemanticTokensRegistrationType}});var e0=gg();Object.defineProperty(l,"ShowDocumentRequest",{enumerable:!0,get:function(){return e0.ShowDocumentRequest}});var t0=yg();Object.defineProperty(l,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return t0.LinkedEditingRangeRequest}});var _n=Tg();Object.defineProperty(l,"FileOperationPatternKind",{enumerable:!0,get:function(){return _n.FileOperationPatternKind}});Object.defineProperty(l,"DidCreateFilesNotification",{enumerable:!0,get:function(){return _n.DidCreateFilesNotification}});Object.defineProperty(l,"WillCreateFilesRequest",{enumerable:!0,get:function(){return _n.WillCreateFilesRequest}});Object.defineProperty(l,"DidRenameFilesNotification",{enumerable:!0,get:function(){return _n.DidRenameFilesNotification}});Object.defineProperty(l,"WillRenameFilesRequest",{enumerable:!0,get:function(){return _n.WillRenameFilesRequest}});Object.defineProperty(l,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return _n.DidDeleteFilesNotification}});Object.defineProperty(l,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return _n.WillDeleteFilesRequest}});var sl=Ag();Object.defineProperty(l,"UniquenessLevel",{enumerable:!0,get:function(){return sl.UniquenessLevel}});Object.defineProperty(l,"MonikerKind",{enumerable:!0,get:function(){return sl.MonikerKind}});Object.defineProperty(l,"MonikerRequest",{enumerable:!0,get:function(){return sl.MonikerRequest}});var al=qg();Object.defineProperty(l,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return al.TypeHierarchyPrepareRequest}});Object.defineProperty(l,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return al.TypeHierarchySubtypesRequest}});Object.defineProperty(l,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return al.TypeHierarchySupertypesRequest}});var hh=Lg();Object.defineProperty(l,"InlineValueRequest",{enumerable:!0,get:function(){return hh.InlineValueRequest}});Object.defineProperty(l,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return hh.InlineValueRefreshRequest}});var cl=Wg();Object.defineProperty(l,"InlayHintRequest",{enumerable:!0,get:function(){return cl.InlayHintRequest}});Object.defineProperty(l,"InlayHintResolveRequest",{enumerable:!0,get:function(){return cl.InlayHintResolveRequest}});Object.defineProperty(l,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return cl.InlayHintRefreshRequest}});var Gr=Kg();Object.defineProperty(l,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Gr.DiagnosticServerCancellationData}});Object.defineProperty(l,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Gr.DocumentDiagnosticReportKind}});Object.defineProperty(l,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Gr.DocumentDiagnosticRequest}});Object.defineProperty(l,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Gr.WorkspaceDiagnosticRequest}});Object.defineProperty(l,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Gr.DiagnosticRefreshRequest}});var wt=tm();Object.defineProperty(l,"NotebookCellKind",{enumerable:!0,get:function(){return wt.NotebookCellKind}});Object.defineProperty(l,"ExecutionSummary",{enumerable:!0,get:function(){return wt.ExecutionSummary}});Object.defineProperty(l,"NotebookCell",{enumerable:!0,get:function(){return wt.NotebookCell}});Object.defineProperty(l,"NotebookDocument",{enumerable:!0,get:function(){return wt.NotebookDocument}});Object.defineProperty(l,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return wt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(l,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidOpenNotebookDocumentNotification}});Object.defineProperty(l,"NotebookCellArrayChange",{enumerable:!0,get:function(){return wt.NotebookCellArrayChange}});Object.defineProperty(l,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidChangeNotebookDocumentNotification}});Object.defineProperty(l,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidSaveNotebookDocumentNotification}});Object.defineProperty(l,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidCloseNotebookDocumentNotification}});var n0=im();Object.defineProperty(l,"InlineCompletionRequest",{enumerable:!0,get:function(){return n0.InlineCompletionRequest}});var el;(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})(el||(l.TextDocumentFilter=el={}));var tl;(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})(tl||(l.NotebookDocumentFilter=tl={}));var nl;(function(e){function t(n){let r=n;return we.objectLiteral(r)&&(we.string(r.notebook)||tl.is(r.notebook))&&(r.language===void 0||we.string(r.language))}e.is=t})(nl||(l.NotebookCellTextDocumentFilter=nl={}));var rl;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!we.string(r)&&!el.is(r)&&!nl.is(r))return!1;return!0}e.is=t})(rl||(l.DocumentSelector=rl={}));var sm;(function(e){e.method="client/registerCapability",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolRequestType(e.method)})(sm||(l.RegistrationRequest=sm={}));var am;(function(e){e.method="client/unregisterCapability",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolRequestType(e.method)})(am||(l.UnregistrationRequest=am={}));var cm;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(cm||(l.ResourceOperationKind=cm={}));var um;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(um||(l.FailureHandlingKind=um={}));var lm;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(lm||(l.PositionEncodingKind=lm={}));var pm;(function(e){function t(n){let r=n;return r&&we.string(r.id)&&r.id.length>0}e.hasId=t})(pm||(l.StaticRegistrationOptions=pm={}));var dm;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||rl.is(r.documentSelector))}e.is=t})(dm||(l.TextDocumentRegistrationOptions=dm={}));var fm;(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})(fm||(l.WorkDoneProgressOptions=fm={}));var gm;(function(e){e.method="initialize",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(gm||(l.InitializeRequest=gm={}));var mm;(function(e){e.unknownProtocolVersion=1})(mm||(l.InitializeErrorCodes=mm={}));var hm;(function(e){e.method="initialized",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(hm||(l.InitializedNotification=hm={}));var ym;(function(e){e.method="shutdown",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType0(e.method)})(ym||(l.ShutdownRequest=ym={}));var bm;(function(e){e.method="exit",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType0(e.method)})(bm||(l.ExitNotification=bm={}));var vm;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(vm||(l.DidChangeConfigurationNotification=vm={}));var xm;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(xm||(l.MessageType=xm={}));var Pm;(function(e){e.method="window/showMessage",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolNotificationType(e.method)})(Pm||(l.ShowMessageNotification=Pm={}));var Cm;(function(e){e.method="window/showMessageRequest",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolRequestType(e.method)})(Cm||(l.ShowMessageRequest=Cm={}));var _m;(function(e){e.method="window/logMessage",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolNotificationType(e.method)})(_m||(l.LogMessageNotification=_m={}));var Sm;(function(e){e.method="telemetry/event",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolNotificationType(e.method)})(Sm||(l.TelemetryEventNotification=Sm={}));var Tm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(Tm||(l.TextDocumentSyncKind=Tm={}));var Rm;(function(e){e.method="textDocument/didOpen",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(Rm||(l.DidOpenTextDocumentNotification=Rm={}));var Dm;(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})(Dm||(l.TextDocumentContentChangeEvent=Dm={}));var wm;(function(e){e.method="textDocument/didChange",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(wm||(l.DidChangeTextDocumentNotification=wm={}));var km;(function(e){e.method="textDocument/didClose",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(km||(l.DidCloseTextDocumentNotification=km={}));var Am;(function(e){e.method="textDocument/didSave",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(Am||(l.DidSaveTextDocumentNotification=Am={}));var Em;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(Em||(l.TextDocumentSaveReason=Em={}));var Nm;(function(e){e.method="textDocument/willSave",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(Nm||(l.WillSaveTextDocumentNotification=Nm={}));var Om;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Om||(l.WillSaveTextDocumentWaitUntilRequest=Om={}));var qm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(qm||(l.DidChangeWatchedFilesNotification=qm={}));var jm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(jm||(l.FileChangeType=jm={}));var Mm;(function(e){function t(n){let r=n;return we.objectLiteral(r)&&(om.URI.is(r.baseUri)||om.WorkspaceFolder.is(r.baseUri))&&we.string(r.pattern)}e.is=t})(Mm||(l.RelativePattern=Mm={}));var Lm;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Lm||(l.WatchKind=Lm={}));var Im;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolNotificationType(e.method)})(Im||(l.PublishDiagnosticsNotification=Im={}));var Fm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Fm||(l.CompletionTriggerKind=Fm={}));var Um;(function(e){e.method="textDocument/completion",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Um||(l.CompletionRequest=Um={}));var Wm;(function(e){e.method="completionItem/resolve",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Wm||(l.CompletionResolveRequest=Wm={}));var Bm;(function(e){e.method="textDocument/hover",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Bm||(l.HoverRequest=Bm={}));var Hm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Hm||(l.SignatureHelpTriggerKind=Hm={}));var zm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(zm||(l.SignatureHelpRequest=zm={}));var $m;(function(e){e.method="textDocument/definition",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})($m||(l.DefinitionRequest=$m={}));var Ym;(function(e){e.method="textDocument/references",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Ym||(l.ReferencesRequest=Ym={}));var Vm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Vm||(l.DocumentHighlightRequest=Vm={}));var Km;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Km||(l.DocumentSymbolRequest=Km={}));var Gm;(function(e){e.method="textDocument/codeAction",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Gm||(l.CodeActionRequest=Gm={}));var Qm;(function(e){e.method="codeAction/resolve",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Qm||(l.CodeActionResolveRequest=Qm={}));var Jm;(function(e){e.method="workspace/symbol",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Jm||(l.WorkspaceSymbolRequest=Jm={}));var Xm;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Xm||(l.WorkspaceSymbolResolveRequest=Xm={}));var Zm;(function(e){e.method="textDocument/codeLens",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Zm||(l.CodeLensRequest=Zm={}));var eh;(function(e){e.method="codeLens/resolve",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(eh||(l.CodeLensResolveRequest=eh={}));var th;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolRequestType0(e.method)})(th||(l.CodeLensRefreshRequest=th={}));var nh;(function(e){e.method="textDocument/documentLink",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(nh||(l.DocumentLinkRequest=nh={}));var rh;(function(e){e.method="documentLink/resolve",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(rh||(l.DocumentLinkResolveRequest=rh={}));var ih;(function(e){e.method="textDocument/formatting",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(ih||(l.DocumentFormattingRequest=ih={}));var oh;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(oh||(l.DocumentRangeFormattingRequest=oh={}));var sh;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(sh||(l.DocumentRangesFormattingRequest=sh={}));var ah;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(ah||(l.DocumentOnTypeFormattingRequest=ah={}));var ch;(function(e){e.Identifier=1})(ch||(l.PrepareSupportDefaultBehavior=ch={}));var uh;(function(e){e.method="textDocument/rename",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(uh||(l.RenameRequest=uh={}));var lh;(function(e){e.method="textDocument/prepareRename",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(lh||(l.PrepareRenameRequest=lh={}));var ph;(function(e){e.method="workspace/executeCommand",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(ph||(l.ExecuteCommandRequest=ph={}));var dh;(function(e){e.method="workspace/applyEdit",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolRequestType("workspace/applyEdit")})(dh||(l.ApplyWorkspaceEditRequest=dh={}))});var vh=S(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.createProtocolConnection=void 0;var bh=xn();function r0(e,t,n,r){return bh.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,bh.createMessageConnection)(e,t,n,r)}Vo.createProtocolConnection=r0});var Ph=S(Ke=>{"use strict";var i0=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]})),Ko=Ke&&Ke.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&i0(t,e,n)};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.LSPErrorCodes=Ke.createProtocolConnection=void 0;Ko(xn(),Ke);Ko((Eo(),pi(Ao)),Ke);Ko(ae(),Ke);Ko(yh(),Ke);var o0=vh();Object.defineProperty(Ke,"createProtocolConnection",{enumerable:!0,get:function(){return o0.createProtocolConnection}});var xh;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(xh||(Ke.LSPErrorCodes=xh={}))});var xe=S(kt=>{"use strict";var s0=kt&&kt.__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]})),Ch=kt&&kt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&s0(t,e,n)};Object.defineProperty(kt,"__esModule",{value:!0});kt.createProtocolConnection=void 0;var a0=zc();Ch(zc(),kt);Ch(Ph(),kt);function c0(e,t,n,r){return(0,a0.createMessageConnection)(e,t,n,r)}kt.createProtocolConnection=c0});var ll=S(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.SemanticTokensBuilder=tn.SemanticTokensDiff=tn.SemanticTokensFeature=void 0;var Go=xe(),u0=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(Go.SemanticTokensRefreshRequest.type),on:t=>{let n=Go.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=Go.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=Go.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};tn.SemanticTokensFeature=u0;var Qo=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}]:[]}};tn.SemanticTokensDiff=Qo;var ul=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 Qo(this._prevData,this._data).computeDiff()}:this.build()}};tn.SemanticTokensBuilder=ul});var _h=S(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.InlineCompletionFeature=void 0;var l0=xe(),p0=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(l0.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Jo.InlineCompletionFeature=p0});var dl=S(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.TextDocuments=void 0;var Sn=xe(),pl=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new Sn.Emitter,this._onDidOpen=new Sn.Emitter,this._onDidClose=new Sn.Emitter,this._onDidSave=new Sn.Emitter,this._onWillSave=new Sn.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=Sn.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}))})),Sn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Xo.TextDocuments=pl});var gl=S(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.NotebookDocuments=yr.NotebookSyncFeature=void 0;var ot=xe(),Sh=dl(),d0=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(ot.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(ot.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(ot.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(ot.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};yr.NotebookSyncFeature=d0;var Zo=class e{onDidOpenTextDocument(t){return this.openHandler=t,ot.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,ot.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,ot.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}};Zo.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var fl=class{constructor(t){t instanceof Sh.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new Sh.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new ot.Emitter,this._onDidChange=new ot.Emitter,this._onDidSave=new ot.Emitter,this._onDidClose=new ot.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 Zo,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 u=[],d=[],h=[],v=[];if(c.cells!==void 0){let W=c.cells;if(W.structure!==void 0){let m=W.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),W.structure.didOpen!==void 0)for(let g of W.structure.didOpen)n.openTextDocument({textDocument:g}),u.push(g.uri);if(W.structure.didClose)for(let g of W.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(W.data!==void 0){let m=new Map(W.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let w=m.get(o.cells[g].document);if(w!==void 0){let Y=o.cells.splice(g,1,w);if(h.push({old:Y[0],new:w}),m.delete(w.document),m.size===0)break}}}if(W.textContent!==void 0)for(let m of W.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 W of u)R.push(this.getNotebookCell(W));let I=[];for(let W of d)I.push(this.getNotebookCell(W));let K=[];for(let W of v)K.push(this.getNotebookCell(W));(R.length>0||I.length>0||h.length>0||K.length>0)&&(y.cells={added:R,removed:I,changed:{data:h,textContent:K}}),(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)}})),ot.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};yr.NotebookDocuments=fl});var ml=S(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.thenable=Ce.typedArray=Ce.stringArray=Ce.array=Ce.func=Ce.error=Ce.number=Ce.string=Ce.boolean=void 0;function f0(e){return e===!0||e===!1}Ce.boolean=f0;function Th(e){return typeof e=="string"||e instanceof String}Ce.string=Th;function g0(e){return typeof e=="number"||e instanceof Number}Ce.number=g0;function m0(e){return e instanceof Error}Ce.error=m0;function Rh(e){return typeof e=="function"}Ce.func=Rh;function Dh(e){return Array.isArray(e)}Ce.array=Dh;function h0(e){return Dh(e)&&e.every(t=>Th(t))}Ce.stringArray=h0;function y0(e,t){return Array.isArray(e)&&e.every(t)}Ce.typedArray=y0;function b0(e){return e&&Rh(e.then)}Ce.thenable=b0});var hl=S(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.generateUuid=st.parse=st.isUUID=st.v4=st.empty=void 0;var Qr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Jr=class e extends Qr{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(""))}};Jr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Jr._timeHighBits=["8","9","a","b"];st.empty=new Qr("00000000-0000-0000-0000-000000000000");function wh(){return new Jr}st.v4=wh;var v0=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function kh(e){return v0.test(e)}st.isUUID=kh;function x0(e){if(!kh(e))throw new Error("invalid uuid");return new Qr(e)}st.parse=x0;function P0(){return wh().asHex()}st.generateUuid=P0});var Ah=S(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.attachPartialResult=rn.ProgressFeature=rn.attachWorkDone=void 0;var nn=xe(),C0=hl(),Tn=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(nn.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(nn.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(nn.WorkDoneProgress.type,this._token,{kind:"end"})}};Tn.Instances=new Map;var es=class extends Tn{constructor(t,n){super(t,n),this._source=new nn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Xr=class{constructor(){}begin(){}report(){}done(){}},ts=class extends Xr{constructor(){super(),this._source=new nn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function _0(e,t){if(t===void 0||t.workDoneToken===void 0)return new Xr;let n=t.workDoneToken;return delete t.workDoneToken,new Tn(e,n)}rn.attachWorkDone=_0;var S0=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(nn.WorkDoneProgressCancelNotification.type,n=>{let r=Tn.Instances.get(n.token);(r instanceof es||r instanceof ts)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Xr:new Tn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,C0.generateUuid)();return this.connection.sendRequest(nn.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new es(this.connection,t))}else return Promise.resolve(new ts)}};rn.ProgressFeature=S0;var yl;(function(e){e.type=new nn.ProgressType})(yl||(yl={}));var bl=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(yl.type,this._token,t)}};function T0(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new bl(e,n)}rn.attachPartialResult=T0});var Eh=S(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.ConfigurationFeature=void 0;var R0=xe(),D0=ml(),w0=e=>class extends e{getConfiguration(t){return t?D0.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(R0.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};ns.ConfigurationFeature=w0});var Nh=S(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.WorkspaceFoldersFeature=void 0;var rs=xe(),k0=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new rs.Emitter,this.connection.onNotification(rs.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(rs.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(rs.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};is.WorkspaceFoldersFeature=k0});var Oh=S(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.CallHierarchyFeature=void 0;var vl=xe(),A0=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(vl.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=vl.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=vl.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};os.CallHierarchyFeature=A0});var qh=S(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.ShowDocumentFeature=void 0;var E0=xe(),N0=e=>class extends e{showDocument(t){return this.connection.sendRequest(E0.ShowDocumentRequest.type,t)}};ss.ShowDocumentFeature=N0});var jh=S(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.FileOperationsFeature=void 0;var br=xe(),O0=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(br.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(br.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(br.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(br.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(br.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(br.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};as.FileOperationsFeature=O0});var Mh=S(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.LinkedEditingRangeFeature=void 0;var q0=xe(),j0=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(q0.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};cs.LinkedEditingRangeFeature=j0});var Lh=S(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.TypeHierarchyFeature=void 0;var xl=xe(),M0=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(xl.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=xl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=xl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};us.TypeHierarchyFeature=M0});var Fh=S(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.InlineValueFeature=void 0;var Ih=xe(),L0=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(Ih.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(Ih.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};ls.InlineValueFeature=L0});var Wh=S(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.FoldingRangeFeature=void 0;var Uh=xe(),I0=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(Uh.FoldingRangeRefreshRequest.type),on:t=>{let n=Uh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};ps.FoldingRangeFeature=I0});var Bh=S(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.InlayHintFeature=void 0;var Pl=xe(),F0=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(Pl.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(Pl.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(Pl.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};ds.InlayHintFeature=F0});var Hh=S(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.DiagnosticFeature=void 0;var Zr=xe(),U0=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Zr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Zr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Zr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Zr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Zr.WorkspaceDiagnosticRequest.partialResult,n)))}}};fs.DiagnosticFeature=U0});var zh=S(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.MonikerFeature=void 0;var W0=xe(),B0=e=>class extends e{get moniker(){return{on:t=>{let n=W0.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};gs.MonikerFeature=B0});var oy=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 E=xe(),at=ml(),_l=hl(),H=Ah(),H0=Eh(),z0=Nh(),$0=Oh(),Y0=ll(),V0=qh(),K0=jh(),G0=Mh(),Q0=Lh(),J0=Fh(),X0=Wh(),Z0=Bh(),eS=Hh(),tS=gl(),nS=zh();function Cl(e){if(e!==null)return e}var Sl=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=Sl;var ms=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(E.MessageType.Error,t)}warn(t){this.send(E.MessageType.Warning,t)}info(t){this.send(E.MessageType.Info,t)}log(t){this.send(E.MessageType.Log,t)}debug(t){this.send(E.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(E.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,E.RAL)().console.error("Sending log message failed")})}},Tl=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:E.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Cl)}showWarningMessage(t,...n){let r={type:E.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Cl)}showInformationMessage(t,...n){let r={type:E.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Cl)}},$h=(0,V0.ShowDocumentFeature)((0,H.ProgressFeature)(Tl)),Yh;(function(e){function t(){return new hs}e.create=t})(Yh||(Q.BulkRegistration=Yh={}));var hs=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=at.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=_l.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Vh;(function(e){function t(){return new ei(void 0,[])}e.create=t})(Vh||(Q.BulkUnregistration=Vh={}));var ei=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(E.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=at.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(E.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},ys=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 hs?this.registerMany(t):t instanceof ei?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=at.string(n)?n:n.method,o=_l.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(E.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=at.string(t)?t:t.method,i=_l.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(E.RegistrationRequest.type,o).then(s=>E.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(E.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(E.RegistrationRequest.type,n).then(()=>new ei(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},Rl=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(E.ApplyWorkspaceEditRequest.type,r)}},Kh=(0,K0.FileOperationsFeature)((0,z0.WorkspaceFoldersFeature)((0,H0.ConfigurationFeature)(Rl))),bs=class{constructor(){this._trace=E.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!==E.Trace.Off&&this.connection.sendNotification(E.LogTraceNotification.type,{message:t,verbose:this._trace===E.Trace.Verbose?n:void 0}).catch(()=>{})}},vs=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(E.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},xs=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,H.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,H.attachPartialResult)(this.connection,n)}};Q._LanguagesImpl=xs;var Gh=(0,X0.FoldingRangeFeature)((0,nS.MonikerFeature)((0,eS.DiagnosticFeature)((0,Z0.InlayHintFeature)((0,J0.InlineValueFeature)((0,Q0.TypeHierarchyFeature)((0,G0.LinkedEditingRangeFeature)((0,Y0.SemanticTokensFeature)((0,$0.CallHierarchyFeature)(xs))))))))),Ps=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,H.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,H.attachPartialResult)(this.connection,n)}};Q._NotebooksImpl=Ps;var Qh=(0,tS.NotebookSyncFeature)(Ps);function Jh(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=Jh;function Xh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=Xh;function Zh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Zh;function ey(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=ey;function ty(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=ty;function ny(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=ny;function ry(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=ry;function iy(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=iy;function rS(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Jh),tracer:n(e.tracer,t.tracer,Zh),telemetry:n(e.telemetry,t.telemetry,Xh),client:n(e.client,t.client,ey),window:n(e.window,t.window,ty),workspace:n(e.workspace,t.workspace,ny),languages:n(e.languages,t.languages,ry),notebooks:n(e.notebooks,t.notebooks,iy)}}Q.combineFeatures=rS;function iS(e,t,n){let r=n&&n.console?new(n.console(ms)):new ms,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(bs)):new bs,s=n&&n.telemetry?new(n.telemetry(vs)):new vs,a=n&&n.client?new(n.client(ys)):new ys,c=n&&n.window?new(n.window($h)):new $h,u=n&&n.workspace?new(n.workspace(Kh)):new Kh,d=n&&n.languages?new(n.languages(Gh)):new Gh,h=n&&n.notebooks?new(n.notebooks(Qh)):new Qh,v=[r,o,s,a,c,u,d,h];function y(m){return m instanceof Promise?m:at.thenable(m)?new Promise((g,w)=>{m.then(Y=>g(Y),Y=>w(Y))}):Promise.resolve(m)}let R,I,K,W={listen:()=>i.listen(),sendRequest:(m,...g)=>i.sendRequest(at.string(m)?m:m.method,...g),onRequest:(m,g)=>i.onRequest(m,g),sendNotification:(m,g)=>{let w=at.string(m)?m:m.method;return i.sendNotification(w,g)},onNotification:(m,g)=>i.onNotification(m,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(I=m,{dispose:()=>{I=void 0}}),onInitialized:m=>i.onNotification(E.InitializedNotification.type,m),onShutdown:m=>(R=m,{dispose:()=>{R=void 0}}),onExit:m=>(K=m,{dispose:()=>{K=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 u},get languages(){return d},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(E.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(E.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(E.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(E.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(E.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(E.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(E.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(E.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(E.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(E.HoverRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),void 0)),onCompletion:m=>i.onRequest(E.CompletionRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onCompletionResolve:m=>i.onRequest(E.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(E.SignatureHelpRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),void 0)),onDeclaration:m=>i.onRequest(E.DeclarationRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onDefinition:m=>i.onRequest(E.DefinitionRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onTypeDefinition:m=>i.onRequest(E.TypeDefinitionRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onImplementation:m=>i.onRequest(E.ImplementationRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onReferences:m=>i.onRequest(E.ReferencesRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onDocumentHighlight:m=>i.onRequest(E.DocumentHighlightRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onDocumentSymbol:m=>i.onRequest(E.DocumentSymbolRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onWorkspaceSymbol:m=>i.onRequest(E.WorkspaceSymbolRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:m=>i.onRequest(E.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(E.CodeActionRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onCodeActionResolve:m=>i.onRequest(E.CodeActionResolveRequest.type,(g,w)=>m(g,w)),onCodeLens:m=>i.onRequest(E.CodeLensRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onCodeLensResolve:m=>i.onRequest(E.CodeLensResolveRequest.type,(g,w)=>m(g,w)),onDocumentFormatting:m=>i.onRequest(E.DocumentFormattingRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:m=>i.onRequest(E.DocumentRangeFormattingRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(E.DocumentOnTypeFormattingRequest.type,(g,w)=>m(g,w)),onRenameRequest:m=>i.onRequest(E.RenameRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),void 0)),onPrepareRename:m=>i.onRequest(E.PrepareRenameRequest.type,(g,w)=>m(g,w)),onDocumentLinks:m=>i.onRequest(E.DocumentLinkRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onDocumentLinkResolve:m=>i.onRequest(E.DocumentLinkResolveRequest.type,(g,w)=>m(g,w)),onDocumentColor:m=>i.onRequest(E.DocumentColorRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onColorPresentation:m=>i.onRequest(E.ColorPresentationRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onFoldingRanges:m=>i.onRequest(E.FoldingRangeRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onSelectionRanges:m=>i.onRequest(E.SelectionRangeRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onExecuteCommand:m=>i.onRequest(E.ExecuteCommandRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let m of v)m.attach(W);return i.onRequest(E.InitializeRequest.type,m=>{t.initialize(m),at.string(m.trace)&&(o.trace=E.Trace.fromString(m.trace));for(let g of v)g.initialize(m.capabilities);if(I){let g=I(m,new E.CancellationTokenSource().token,(0,H.attachWorkDone)(i,m),void 0);return y(g).then(w=>{if(w instanceof E.ResponseError)return w;let Y=w;Y||(Y={capabilities:{}});let X=Y.capabilities;X||(X={},Y.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=at.number(W.__textDocumentSync)?W.__textDocumentSync:E.TextDocumentSyncKind.None:!at.number(X.textDocumentSync)&&!at.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=at.number(W.__textDocumentSync)?W.__textDocumentSync:E.TextDocumentSyncKind.None);for(let ct of v)ct.fillServerCapabilities(X);return Y})}else{let g={capabilities:{textDocumentSync:E.TextDocumentSyncKind.None}};for(let w of v)w.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(E.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,R)return R(new E.CancellationTokenSource().token)}),i.onNotification(E.ExitNotification.type,()=>{try{K&&K()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(E.SetTraceNotification.type,m=>{o.trace=E.Trace.fromString(m.value)}),W}Q.createConnection=iS});var Dl=S(Ie=>{"use strict";var oS=Ie&&Ie.__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]})),ay=Ie&&Ie.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&oS(t,e,n)};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.ProposedFeatures=Ie.NotebookDocuments=Ie.TextDocuments=Ie.SemanticTokensBuilder=void 0;var sS=ll();Object.defineProperty(Ie,"SemanticTokensBuilder",{enumerable:!0,get:function(){return sS.SemanticTokensBuilder}});var aS=_h();ay(xe(),Ie);var cS=dl();Object.defineProperty(Ie,"TextDocuments",{enumerable:!0,get:function(){return cS.TextDocuments}});var uS=gl();Object.defineProperty(Ie,"NotebookDocuments",{enumerable:!0,get:function(){return uS.NotebookDocuments}});ay(oy(),Ie);var sy;(function(e){e.all={__brand:"features",languages:aS.InlineCompletionFeature}})(sy||(Ie.ProposedFeatures=sy={}))});var uy=S((Rk,cy)=>{"use strict";cy.exports=xe()});var _s=S(At=>{"use strict";var lS=At&&At.__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]})),py=At&&At.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&lS(t,e,n)};Object.defineProperty(At,"__esModule",{value:!0});At.createConnection=void 0;var Cs=Dl();py(uy(),At);py(Dl(),At);var ly=!1,pS={initialize:e=>{},get shutdownReceived(){return ly},set shutdownReceived(e){ly=e},exit:e=>{}};function dS(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),Cs.ConnectionStrategy.is(e)||Cs.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=u=>(0,Cs.createProtocolConnection)(o,s,u,a);return(0,Cs.createConnection)(c,pS,i)}At.createConnection=dS});var on=S((wk,dy)=>{"use strict";dy.exports=_s()});var $l=S((SA,wy)=>{"use strict";function Et(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Dy(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 lT(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 Pr={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),Et(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=Dy(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Et(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Dy(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return Et(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];Et(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":Pr.normalize(t)},relative:function(t,n){if(Et(t),Et(n),t===n||(t=Pr.resolve(t),n=Pr.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,u=o<c?o:c,d=-1,h=0;h<=u;++h){if(h===u){if(c>u){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>u&&(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(Et(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');Et(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 u=t.charCodeAt(s);if(u===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(u===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){Et(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 lT("/",t)},parse:function(t){Et(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,u=!0,d=t.length-1,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!u){a=d+1;break}continue}c===-1&&(u=!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};Pr.posix=Pr;wy.exports=Pr});import{createConfig as kd,loadConfig as Gx,loadIgnoreConfig as Qx,DEFAULT_CONFIG as Jx,IGNORE_FILE as Xx}from"@redocly/openapi-core";var Ql;(()=>{"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 q(P,_){for(var T,O="",M=0,N=-1,$=0,V=0;V<=P.length;++V){if(V<P.length)T=P.charCodeAt(V);else{if(T===47)break;T=47}if(T===47){if(!(N===V-1||$===1))if(N!==V-1&&$===2){if(O.length<2||M!==2||O.charCodeAt(O.length-1)!==46||O.charCodeAt(O.length-2)!==46){if(O.length>2){var Te=O.lastIndexOf("/");if(Te!==O.length-1){Te===-1?(O="",M=0):M=(O=O.slice(0,Te)).length-1-O.lastIndexOf("/"),N=V,$=0;continue}}else if(O.length===2||O.length===1){O="",M=0,N=V,$=0;continue}}_&&(O.length>0?O+="/..":O="..",M=2)}else O.length>0?O+="/"+P.slice(N+1,V):O=P.slice(N+1,V),M=V-N-1;N=V,$=0}else T===46&&$!==-1?++$:$=-1}return O}var j={resolve:function(){for(var P,_="",T=!1,O=arguments.length-1;O>=-1&&!T;O--){var M;O>=0?M=arguments[O]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(_=M+"/"+_,T=M.charCodeAt(0)===47)}return _=q(_,!T),T?_.length>0?"/"+_:"/":_.length>0?_:"."},normalize:function(P){if(b(P),P.length===0)return".";var _=P.charCodeAt(0)===47,T=P.charCodeAt(P.length-1)===47;return(P=q(P,!_)).length!==0||_||(P="."),P.length>0&&T&&(P+="/"),_?"/"+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,_=0;_<arguments.length;++_){var T=arguments[_];b(T),T.length>0&&(P===void 0?P=T:P+="/"+T)}return P===void 0?".":j.normalize(P)},relative:function(P,_){if(b(P),b(_),P===_||(P=j.resolve(P))===(_=j.resolve(_)))return"";for(var T=1;T<P.length&&P.charCodeAt(T)===47;++T);for(var O=P.length,M=O-T,N=1;N<_.length&&_.charCodeAt(N)===47;++N);for(var $=_.length-N,V=M<$?M:$,Te=-1,te=0;te<=V;++te){if(te===V){if($>V){if(_.charCodeAt(N+te)===47)return _.slice(N+te+1);if(te===0)return _.slice(N+te)}else M>V&&(P.charCodeAt(T+te)===47?Te=te:te===0&&(Te=0));break}var ut=P.charCodeAt(T+te);if(ut!==_.charCodeAt(N+te))break;ut===47&&(Te=te)}var un="";for(te=T+Te+1;te<=O;++te)te!==O&&P.charCodeAt(te)!==47||(un.length===0?un+="..":un+="/..");return un.length>0?un+_.slice(N+Te):(N+=Te,_.charCodeAt(N)===47&&++N,_.slice(N))},_makeLong:function(P){return P},dirname:function(P){if(b(P),P.length===0)return".";for(var _=P.charCodeAt(0),T=_===47,O=-1,M=!0,N=P.length-1;N>=1;--N)if((_=P.charCodeAt(N))===47){if(!M){O=N;break}}else M=!1;return O===-1?T?"/":".":T&&O===1?"//":P.slice(0,O)},basename:function(P,_){if(_!==void 0&&typeof _!="string")throw new TypeError('"ext" argument must be a string');b(P);var T,O=0,M=-1,N=!0;if(_!==void 0&&_.length>0&&_.length<=P.length){if(_.length===P.length&&_===P)return"";var $=_.length-1,V=-1;for(T=P.length-1;T>=0;--T){var Te=P.charCodeAt(T);if(Te===47){if(!N){O=T+1;break}}else V===-1&&(N=!1,V=T+1),$>=0&&(Te===_.charCodeAt($)?--$==-1&&(M=T):($=-1,M=V))}return O===M?M=V:M===-1&&(M=P.length),P.slice(O,M)}for(T=P.length-1;T>=0;--T)if(P.charCodeAt(T)===47){if(!N){O=T+1;break}}else M===-1&&(N=!1,M=T+1);return M===-1?"":P.slice(O,M)},extname:function(P){b(P);for(var _=-1,T=0,O=-1,M=!0,N=0,$=P.length-1;$>=0;--$){var V=P.charCodeAt($);if(V!==47)O===-1&&(M=!1,O=$+1),V===46?_===-1?_=$:N!==1&&(N=1):_!==-1&&(N=-1);else if(!M){T=$+1;break}}return _===-1||O===-1||N===0||N===1&&_===O-1&&_===T+1?"":P.slice(_,O)},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(_,T){var O=T.dir||T.root,M=T.base||(T.name||"")+(T.ext||"");return O?O===T.root?O+M:O+"/"+M:M})(0,P)},parse:function(P){b(P);var _={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return _;var T,O=P.charCodeAt(0),M=O===47;M?(_.root="/",T=1):T=0;for(var N=-1,$=0,V=-1,Te=!0,te=P.length-1,ut=0;te>=T;--te)if((O=P.charCodeAt(te))!==47)V===-1&&(Te=!1,V=te+1),O===46?N===-1?N=te:ut!==1&&(ut=1):N!==-1&&(ut=-1);else if(!Te){$=te+1;break}return N===-1||V===-1||ut===0||ut===1&&N===V-1&&N===$+1?V!==-1&&(_.base=_.name=$===0&&M?P.slice(1,V):P.slice($,V)):($===0&&M?(_.name=P.slice(1,N),_.base=P.slice(1,V)):(_.name=P.slice($,N),_.base=P.slice($,V)),_.ext=P.slice(N,V)),$>0?_.dir=P.slice(0,$-1):M&&(_.dir="/"),_},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 q=t[k]={exports:{}};return e[k](q,q.exports,n),q.exports}n.d=(k,b)=>{for(var q in b)n.o(b,q)&&!n.o(k,q)&&Object.defineProperty(k,q,{enumerable:!0,get:b[q]})},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:()=>Dn}),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 u="",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,q,j,P,_,T=!1){typeof b=="object"?(this.scheme=b.scheme||u,this.authority=b.authority||u,this.path=b.path||u,this.query=b.query||u,this.fragment=b.fragment||u):(this.scheme=(function(O,M){return O||M?O:"file"})(b,T),this.authority=q||u,this.path=(function(O,M){switch(O){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M})(this.scheme,j||u),this.query=P||u,this.fragment=_||u,c(this,T))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:q,authority:j,path:P,query:_,fragment:T}=b;return q===void 0?q=this.scheme:q===null&&(q=u),j===void 0?j=this.authority:j===null&&(j=u),P===void 0?P=this.path:P===null&&(P=u),_===void 0?_=this.query:_===null&&(_=u),T===void 0?T=this.fragment:T===null&&(T=u),q===this.scheme&&j===this.authority&&P===this.path&&_===this.query&&T===this.fragment?this:new R(q,j,P,_,T)}static parse(b,q=!1){let j=h.exec(b);return j?new R(j[2]||u,X(j[4]||u),X(j[5]||u),X(j[7]||u),X(j[9]||u),q):new R(u,u,u,u,u)}static file(b){let q=u;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let j=b.indexOf(d,2);j===-1?(q=b.substring(2),b=d):(q=b.substring(2,j),b=b.substring(j)||d)}return new R("file",q,b,u,u)}static from(b){let q=new R(b.scheme,b.authority,b.path,b.query,b.fragment);return c(q,!0),q}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let q=new R(b);return q._formatted=b.external,q._fsPath=b._sep===y?b.fsPath:null,q}}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 I={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(k,b,q){let j,P=-1;for(let _=0;_<k.length;_++){let T=k.charCodeAt(_);if(T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===45||T===46||T===95||T===126||b&&T===47||q&&T===91||q&&T===93||q&&T===58)P!==-1&&(j+=encodeURIComponent(k.substring(P,_)),P=-1),j!==void 0&&(j+=k.charAt(_));else{j===void 0&&(j=k.substr(0,_));let O=I[T];O!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,_)),P=-1),j+=O):P===-1&&(P=_)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function W(k){let b;for(let q=0;q<k.length;q++){let j=k.charCodeAt(q);j===35||j===63?(b===void 0&&(b=k.substr(0,q)),b+=I[j]):b!==void 0&&(b+=k[q])}return b!==void 0?b:k}function m(k,b){let q;return q=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&&(q=q.replace(/\//g,"\\")),q}function g(k,b){let q=b?W:K,j="",{scheme:P,authority:_,path:T,query:O,fragment:M}=k;if(P&&(j+=P,j+=":"),(_||P==="file")&&(j+=d,j+=d),_){let N=_.indexOf("@");if(N!==-1){let $=_.substr(0,N);_=_.substr(N+1),N=$.lastIndexOf(":"),N===-1?j+=q($,!1,!1):(j+=q($.substr(0,N),!1,!1),j+=":",j+=q($.substr(N+1),!1,!0)),j+="@"}_=_.toLowerCase(),N=_.lastIndexOf(":"),N===-1?j+=q(_,!1,!0):(j+=q(_.substr(0,N),!1,!0),j+=_.substr(N))}if(T){if(T.length>=3&&T.charCodeAt(0)===47&&T.charCodeAt(2)===58){let N=T.charCodeAt(1);N>=65&&N<=90&&(T=`/${String.fromCharCode(N+32)}:${T.substr(3)}`)}else if(T.length>=2&&T.charCodeAt(1)===58){let N=T.charCodeAt(0);N>=65&&N<=90&&(T=`${String.fromCharCode(N+32)}:${T.substr(2)}`)}j+=q(T,!0,!1)}return O&&(j+="?",j+=q(O,!1,!1)),M&&(j+="#",j+=b?M:K(M,!1,!1)),j}function w(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+w(k.substr(3)):k}}let Y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(Y)?k.replace(Y,(b=>w(b))):k}var ct=n(975);let Ut=ct.posix||ct,cn="/";var Dn;(function(k){k.joinPath=function(b,...q){return b.with({path:Ut.join(b.path,...q)})},k.resolvePath=function(b,...q){let j=b.path,P=!1;j[0]!==cn&&(j=cn+j,P=!0);let _=Ut.resolve(j,...q);return P&&_[0]===cn&&!b.authority&&(_=_.substring(1)),b.with({path:_})},k.dirname=function(b){if(b.path.length===0||b.path===cn)return b;let q=Ut.dirname(b.path);return q.length===1&&q.charCodeAt(0)===46&&(q=""),b.with({path:q})},k.basename=function(b){return Ut.basename(b.path)},k.extname=function(b){return Ut.extname(b.path)}})(Dn||(Dn={})),Ql=r})();var{URI:ht,Utils:re}=Ql;import{isBrowser as lb}from"@redocly/openapi-core";import{CONFIG_FILE_NAME as ub}from"@redocly/openapi-core";var Bs={languageId:"yaml",filePattern:/\.ya?ml$/i},Hs={languageId:"json",filePattern:/\.json$/i},Ws=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Bs,Hs];this.registerConfigFinder(async t=>{if(this._fs)try{let n=re.resolvePath(re.dirname(Ue(t)),ub);return await this._fs.exists(n)?qe(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}},de=new Ws;function zs(e,t){let n=r=>re.resolvePath(Ue(Nt(r))).toString();return n(e)===n(t)}function Ue(e){return ht.parse(e)}function Nt(e){return e.startsWith("file://")?e:ht.file(e).toString()}function qe(e){let t=ht.parse(e).fsPath;return lb&&t.startsWith("/")?t.slice(1):t}function Sr(e){let t=["https","http"],{scheme:n}=ht.parse(e);return t.includes(n)}function Tr(e){return re.basename(Ue(e))}async function Jl(e,t="/"){let n=re.resolvePath(Ue(t));for(;e.path!=="/";)try{(await de.fs.stat(re.resolvePath(n,e.path))).isDirectory()||(e=re.dirname(e));break}catch{e=re.dirname(e)}return e}import{BaseResolver as Vx,Source as wd,readFileFromUrl as Kx,isAbsoluteUrl as xa}from"@redocly/openapi-core";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=ep(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),u=this._lineOffsets,d=Xl(r.text,!1,o);if(c-a===d.length)for(let v=0,y=d.length;v<y;v++)u[v+a+1]=d[v];else d.length<1e4?u.splice(a+1,c-a,...d):this._lineOffsets=u=u.slice(0,a+1).concat(d,u.slice(c+1));let h=r.text.length-(s-o);if(h!==0)for(let v=a+1+d.length,y=u.length;v<y;v++)u[v]=u[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=Xl(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&&Zl(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=$s(o.map(pb),(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,u=[];for(let d of a){let h=i.offsetAt(d.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&u.push(s.substring(c,h)),d.newText.length&&u.push(d.newText),c=i.offsetAt(d.range.end)}return u.push(s.substr(c)),u.join("")}e.applyEdits=r})(fi||(fi={}));function $s(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);$s(r,t),$s(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 Xl(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);Zl(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Zl(e){return e===13||e===10}function ep(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 pb(e){let t=ep(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var Ti=Oe(jn(),1),Rd=new Map;function Dd(e,t){return Rd.set(e,t)}function va(e){let t=[];for(let[n,r]of Rd.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Qe(e){let t=de.documents.get(e);if(t)return t;let n=await de.fs.readFile(Ue(e),"utf-8");return fi.create(e,"yaml",1,n)}function Ar(e){return Hs.filePattern.test(e)}function Ri(e){return Bs.filePattern.test(e)}function mn({uri:e,ast:t,textDocument:n}){if(!(Ri(e)&&/entit(y|ies)\.ya?ml$/i.test(e)))return!1;if(n){let i=n.getText();t=Ti.safeLoad(i,{filename:e})}if(t?.kind===Ti.Kind.MAP){let i=["openapi","swagger","asyncapi","arazzo"];for(let o of t.mappings){let s=o.key?.value;if(i.includes(s))return!1}}return!0}var vt=class extends Vx{resolveExternalRef(t,n){return xa(n)?n:t&&xa(t)?new URL(n,t).href:t?re.resolvePath(re.dirname(Ue(Nt(t))),n).toString():n}async loadExternalRef(t){if(Sr(t)){let{body:i,mimeType:o}=await Kx(t,{...this.config.http,customFetch:fetch});return new wd(t,i,o)}let n=Nt(t),r=xa(t)?qe(t):t;return new wd(r,(await Qe(n)).getText())}};var jt;async function Di(e,t){try{let n=new vt,r=e?await de.findConfig(e):void 0;if(r===void 0){let i=await Qx(r,n);return jt=await kd(Jx,{externalRefResolver:n,ignore:i}),jt}jt=await Gx({configPath:r,externalRefResolver:n})}catch(n){t?.createEventHandleLoadConfigError?.(n?.message),jt=await kd({})}return jt}async function Mn(e){return jt||await Di(e)}async function hn(e){return await Pa(e)?!0:!!jt?.resolvedRefMap&&[...jt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>zs(Tr(Nt(e)),n))}async function Pa(e){let t=await de.findConfig(e);return t?zs(e,t):!1}function Zx(e){return e.endsWith(Xx)}var Ad={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Er={type:"object",properties:Ad,additionalProperties:!1},eP={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},xt={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({},Ad),{like:Er,dislike:Er,satisfied:Er,neutral:Er,dissatisfied:Er}),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:eP},additionalProperties:!1}},additionalProperties:!1};var tP={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},Nr={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Ln={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:xt,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Nr,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:tP,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1};var In={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},nP={type:"object",properties:{name:{type:"string"},items:In,queries:In,mutations:In,subscriptions:In,types:In,directives:In},required:["name"],additionalProperties:!1},rP={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:nP},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},iP={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},oP={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},sP={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:iP,license:oP},additionalProperties:!1},Fn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},rP.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:Nr,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:xt,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},info:sP},additionalProperties:!1};var Ed={type:"object",properties:{downloadUrls:Nr,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:xt,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1};var aP={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},cP={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"}}},Nd={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},uP={type:"object",properties:{beforeInfo:{type:"array",items:Nd},end:{type:"array",items:Nd}}},yn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},wi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},lP={type:"object",properties:Ni(yn.properties,["light","dark"])},pP={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"}}},dP={type:"object",properties:{error:wi,info:wi,redirect:wi,success:wi}},fP={type:"object",properties:Un(yn.properties,["dark"])},gP={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},mP={type:"object",properties:{accent:yn,border:lP,error:yn,http:pP,primary:yn,responses:dP,secondary:fP,success:yn,text:gP,tonalOffset:{type:"number"},warning:yn}},ki={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},hP={type:"object",properties:{small:ki,medium:ki,large:ki,xlarge:ki}},Pt={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},yP={type:"object",properties:Object.assign(Object.assign({},Un(Pt.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:hP})},Od={type:"object",properties:Ni(Pt.properties,["fontSize","lineHeight"])},bP={type:"object",properties:{medium:Od,small:Od}},vP={type:"object",properties:Object.assign(Object.assign({},Un(Pt.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:bP})},xP={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},PP={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},qd={type:"object",properties:{fullWidth:{type:"boolean"}}},CP={type:"object",properties:{buttons:yP,httpBadges:vP,layoutControls:xP,panels:PP,tryItButton:qd,tryItSendButton:qd}},Ei={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},_P={type:"object",properties:{maxWidth:Ei}},SP={type:"object",properties:{maxWidth:Ei,middlePanelMaxWidth:Ei}},TP={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:_P,"three-panel":SP}},jd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},RP={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:jd,defaultDetailsWidth:{type:"string"},examples:jd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Ld={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},DP={type:"object",properties:Ni(Ld.properties,["textTransform"])},wP={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},kP={type:"object",properties:Object.assign(Object.assign({},Un(Pt.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:Ld,level1items:DP,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:wP,textColor:{type:"string"},width:{type:"string"}})},Ai={type:"object",properties:Object.assign(Object.assign({},Pt.properties),{color:{type:"string"},transform:{type:"string"}})},AP={type:"object",properties:Object.assign(Object.assign({},Pt.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"}})},EP={type:"object",properties:Un(Pt.properties,["fontSize"])},NP={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},OP={type:"object",properties:Object.assign(Object.assign({code:AP,fieldName:Pt},Ni(Pt.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Ai,heading2:Ai,heading3:Ai,headings:EP,lineHeight:{type:"string"},links:NP,optimizeSpeed:{type:"boolean"},rightPanelHeading:Ai,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},qP={type:"object",properties:Object.assign({color:{type:"string"}},Un(Pt.properties,["fontWeight"]))},jP={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:qP}},MP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},LP={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Md={type:"object",properties:{custom:{type:"string"}}},IP={type:"object",properties:{DownloadButton:Md,NextSectionButton:Md}},FP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},UP={type:"object",properties:{borderRadius:{type:"string"}}},WP={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},BP={type:"object",properties:{breakpoints:Ei,codeBlock:jP,colors:mP,components:CP,layout:TP,logo:MP,fab:LP,overrides:IP,rightPanel:FP,schema:RP,shape:UP,sidebar:kP,spacing:WP,typography:OP,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},HP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:aP}},required:["languages"]},Ca={type:"object",properties:{theme:BP,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:HP,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:cP,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:uP,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 Ni(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function Un(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var Ct={nodeTypeName:void 0,type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules"};var zP={rules:Ct,oas2Rules:Ct,oas3_0Rules:Ct,oas3_1Rules:Ct,oas3_2Rules:Ct,async2Rules:Ct,async3Rules:Ct,arazzo1Rules:Ct,overlay1Rules:Ct,openrpc1Rules:Ct};var _t={nodeTypeName:void 0,type:"object",additionalProperties:!0},$P={preprocessors:_t,oas2Preprocessors:_t,oas3_0Preprocessors:_t,oas3_1Preprocessors:_t,oas3_2Preprocessors:_t,async2Preprocessors:_t,async3Preprocessors:_t,arazzo1Preprocessors:_t,overlay1Preprocessors:_t,openrpc1Preprocessors:_t},St={nodeTypeName:void 0,type:"object",additionalProperties:!0};var YP={decorators:St,oas2Decorators:St,oas3_0Decorators:St,oas3_1Decorators:St,oas3_2Decorators:St,async2Decorators:St,async3Decorators:St,arazzo1Decorators:St,overlay1Decorators:St,openrpc1Decorators:St},VP={nodeTypeName:void 0,type:"array",items:{type:"string"},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends"},bn=Object.assign(Object.assign(Object.assign(Object.assign({},zP),YP),$P),{extends:VP});var Oi=e=>e;var Je=Oi({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"});var De={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Id={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},_a={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"}},additionalProps:{type:"object",additionalProperties:!0}}},Sa={type:"array",items:Object.assign(Object.assign({},_a),{properties:Object.assign(Object.assign({},_a.properties),{items:{type:"array",items:_a}})})},KP={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},GP={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},QP={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}},JP={type:"object",properties:Object.assign({facets:QP},De.properties),additionalProperties:!1},XP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},qi={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},ji={type:"object",properties:Object.assign({items:Sa},De.properties),additionalProperties:!1},Mi={type:"object",additionalProperties:KP},Li={type:"object",properties:Object.assign({items:Sa,copyrightText:{type:"string"},logo:De},De.properties),additionalProperties:!1},Ii={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},De.properties),additionalProperties:!1},Fi={type:"object",properties:{head:{type:"array",items:Id},body:{type:"array",items:Id}},additionalProperties:!1},Ui={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:GP,filters:JP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:XP}},De.properties),additionalProperties:!1},Bi={type:"object",properties:{hide:{type:"boolean"},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean",default:!1},inputType:{type:"string",enum:["button","icon"],default:"button"},inputIcon:{type:"string",enum:["chat","sparkles","redocly"],default:"sparkles"}},additionalProperties:!1}},additionalProperties:!1},Hi={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},De.properties),additionalProperties:!1},Wn={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},ZP={type:"object",properties:Object.assign(Object.assign({},De.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]},default:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}),additionalProperties:!1},zi={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},De.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},De.properties),additionalProperties:!1,default:{}},actions:ZP},additionalProperties:!1},$i={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},De.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},De.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},De.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},De.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},Yi={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"}},De.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},De.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},De.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},Bn=Object.assign(Object.assign({},Ln),{properties:Object.assign(Object.assign({},Ln.properties),Ca.properties)}),tD=Object.assign(Object.assign({},Ln),{properties:Object.assign(Object.assign({},Ln.properties),Ca.properties)}),eC={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},tC={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"]},nC={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},rC={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},iC={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"]},oC={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},sC={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"]},Ta={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"]},aC={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:Ta}},additionalProperties:!1,required:["trackingId"]},Vi={type:"object",properties:{adobe:eC,amplitude:tC,fullstory:nC,heap:rC,rudderstack:iC,segment:oC,gtm:sC,ga:aC}},Ki={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"}},De.properties),additionalProperties:!1},Gi={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Qi={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},cC={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"}}}},uC={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:cC},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:Sa,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Hn={type:"object",patternProperties:{".*":uC}},zn={nodeTypeName:Je.ScorecardClassic,description:"Add and create sets of rules and test your API description files against them. With these rules you can maintain quality across your existing APIs and ensure that newly-added or updated APIs match your criteria. An API scorecard can include multiple sets of rules, corresponding to different quality levels.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic",type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{nodeTypeName:Je.ScorecardClassicTeamMetadataProperty,description:"Provide custom team label and team metadata property.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#team-metadata-object",type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{nodeTypeName:Je.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:Je.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:Object.assign({name:{type:"string"},color:{type:"string"}},bn),additionalProperties:!1}},targets:{nodeTypeName:Je.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:Je.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:Je.ScorecardClassicTargetWhere,description:"Specify which API descriptions to apply the `minimumLevel` to based on the metadata.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#where-object",type:"object",required:["metadata"],properties:{metadata:{nodeTypeName:Je.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}};var lC={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},pC={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},dC={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},Mt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:pC},excludes:{type:"array",items:lC},filters:{type:"array",items:dC},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},fC={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},gC={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:fC},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},mC={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:gC,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},hC={type:"object",additionalProperties:mC},Ji={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:hC,catalogs:{type:"object",properties:{all:Mt,services:Mt,domains:Mt,teams:Mt,users:Mt,apiDescriptions:Mt,dataSchemas:Mt,apiOperations:Mt},additionalProperties:Mt}},additionalProperties:!1};var Fd={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Da={type:"string",enum:["and","or"]},Ra={type:"object",properties:{field:{type:"string"},operator:Fd,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Fd,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},yC={type:"object",properties:{operator:Da,conditions:{type:"array",items:Ra}},required:["operator","conditions"],additionalProperties:!1},Ud={type:"array",items:{oneOf:[Ra,{type:"object",properties:{operator:Da,conditions:{type:"array",items:{oneOf:[Ra,yC]}}},required:["operator","conditions"],additionalProperties:!1}]}},Bd={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{}},additionalProperties:!1},bC={type:"array",items:{type:"object",properties:{subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},assertions:Bd},required:["subject","assertions"],additionalProperties:!1}},vC={type:"object",properties:{title:{type:"string"},subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},severity:{type:"string",enum:["error","warn","off"]},message:{type:"string"},assertions:Bd,where:bC,weight:{type:"number",default:1}},required:["subject","assertions"],additionalProperties:!1},xC={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number",default:1}},additionalProperties:!0},vC]}},PC={type:"object",properties:{name:{type:"string"},extends:bn.extends,rules:xC},required:["name"],additionalProperties:!1},Wd={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},CC={oneOf:[Wd,{type:"array",items:Wd}]},_C={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[Ud,{type:"object",properties:{operator:Da,conditions:Ud},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:PC,minItems:1},trigger:CC},required:["name","key","entities","levels"],additionalProperties:!1},Xi={type:"array",items:_C};var tt={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:qi,navbar:ji,products:Mi,footer:Li,sidebar:Ii,scripts:Fi,links:Ui,feedback:xt,search:Wi,aiAssistant:Bi,colorMode:Hi,palette:Wn,navigation:zi,codeSnippet:$i,markdown:Yi,openapi:Bn,asyncapi:Ed,graphql:Fn,analytics:Vi,userMenu:Ki,versionPicker:Gi,breadcrumbs:Qi,catalog:Hn,entitiesCatalog:Ji,catalogClassic:Hn,scorecard:zn,scorecardClassic:zn,scorecards:Xi},additionalProperties:!0};var ka="https://redocly.com/sso/teams",$n;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})($n||($n={}));var Yn;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(Yn||(Yn={}));var wa;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(wa||(wa={}));function Zi(e,t,n){return Object.fromEntries(Object.entries(e).map(([r,i])=>{if(!(r===t&&n!=="properties"))return typeof i!="object"||!i?[r,i]:Array.isArray(i)?[r,i.map(o=>typeof o=="object"?Zi(o,t,r):o)]:[r,Zi(i,t,r)]}).filter(Boolean))}var SC={type:"object",additionalProperties:{type:"string"}},TC={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},eo={type:"string",enum:["error","warn","off"]},RC={type:"object",additionalProperties:!1,properties:{schemaCheck:eo,statusCodeCheck:eo,contentTypeCheck:eo,successCriteriaCheck:eo}},DC={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},wC={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},kC={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Hd={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:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[DC,wC]},inputs:SC,servers:TC,severity:RC,slo:kC},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var AC={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},EC={type:"object",properties:{type:{type:"string",const:$n.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:AC,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},NC={type:"object",properties:{type:{type:"string",const:$n.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:ka},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},OC={oneOf:[EC,NC],discriminator:{propertyName:"type"}},qC={type:"object",additionalProperties:OC},Vd={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},Kd={type:"boolean"},Gd={type:"string",pattern:"^https?://.*"},Qd={type:"string",pattern:"^https?://.*"},jC={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1,nodeTypeName:Je.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},MC={type:"object",additionalProperties:jC,default:{},nodeTypeName:Je.Redirects,description:"Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.",documentationLink:"https://redocly.com/docs/realm/config/redirects"},LC={type:"string",enum:["info","success","warning","error"],default:"info"},ee={type:"object",additionalProperties:{type:"string"}},IC={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean",default:!1},target:{type:"string"},color:LC,rbac:ee},required:["content"],additionalProperties:!1},FC={type:"array",items:IC,default:[]},Ea={type:"object",properties:Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:ee,openapi:Bn,graphql:Fn,theme:{type:"object",properties:{openapi:Bn,graphql:Fn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},bn),required:["root"]},UC={type:"object",additionalProperties:!0},WC={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},zd={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},$d={type:"object",properties:{title:{type:"string"},projectTitle:{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:zd},default:{llmstxt:zd.default},additionalProperties:!1},BC={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},HC={type:"object",properties:{catalogs:{type:"object",properties:{all:ee,services:ee,domains:ee,teams:ee,users:ee,apiDescriptions:ee,dataSchemas:ee,apiOperations:ee},additionalProperties:ee},entitiesTypes:{type:"object",properties:{service:ee,domain:ee,team:ee,user:ee,apiDescription:ee,apiOperation:ee,dataSchema:ee},additionalProperties:ee},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:ee},additionalProperties:!1}},entities:{type:"object",properties:{"**":ee},additionalProperties:ee}},additionalProperties:!1},Na={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:ee,cms:ee,reunite:ee,features:{type:"object",properties:{aiSearch:ee},additionalProperties:!1},content:{type:"object",properties:{"**":ee},additionalProperties:ee},entitiesCatalog:HC},additionalProperties:ee},zC={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},$C={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},YC={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:[zC,$C]}},additionalProperties:!1,required:["type","apiBaseUrl"]},VC={type:"object",properties:{type:{type:"string",const:Yn.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},KC={type:"object",properties:{type:{type:"string",const:Yn.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Aa={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:[VC,KC],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},GC=Object.assign(Object.assign({},Aa),{properties:Object.assign(Object.assign({},Aa.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),QC={type:"object",oneOf:[Aa,GC,YC],discriminator:{propertyName:"type"}},JC={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:QC}}},Yd={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"]},XC={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},ZC={type:"object",properties:{hide:{type:"boolean",default:!1},docs:{type:"object",properties:{hide:{type:"boolean",default:!1},name:{type:"string",default:"Docs MCP server"},ignore:{type:"array",items:{type:"string"},default:[]}},additionalProperties:!1}},additionalProperties:!1,default:{hide:!1,docs:{hide:!1,name:"MCP server",ignore:[]}}},e_={type:"object",properties:{requiresLogin:Kd,logoutReturnUrl:Gd,residency:Qd,sso:Vd,rbac:Na},additionalProperties:!1},Or={type:"object",properties:Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:MC,seo:$d,rbac:Na,apiFunctions:BC,requiresLogin:Kd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:XC}},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:Ea}},bn),{ssoDirect:qC,sso:Vd,residency:Qd,logoutReturnUrl:Gd,access:e_,developerOnboarding:JC,removeAttribution:{type:"boolean"},i18n:Yd,l10n:Yd,metadata:UC,metadataGlobs:WC,ignore:{type:"array",items:{type:"string"}},theme:tt,reunite:Hd,logo:qi,navbar:ji,products:Mi,footer:Li,sidebar:Ii,scripts:Fi,links:Ui,feedback:xt,search:Wi,aiAssistant:Bi,colorMode:Hi,palette:Wn,navigation:zi,codeSnippet:$i,markdown:Yi,openapi:Bn,graphql:Fn,analytics:Vi,userMenu:Ki,versionPicker:Gi,breadcrumbs:Qi,catalog:Hn,entitiesCatalog:Ji,catalogClassic:Hn,scorecard:zn,scorecardClassic:zn,scorecards:Xi,mcp:ZC,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:FC}),default:{redirects:{},seo:$d.default},additionalProperties:!0},t_=Object.assign(Object.assign({},Zi(Or,"default")),{additionalProperties:!1}),Oa=Object.assign(Object.assign({$id:"root-redocly-config"},Or),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},Or.properties),{env:{type:"object",additionalProperties:t_}}),default:{},additionalProperties:!1});var qa={type:"object",properties:{logo:tt.properties.logo,navbar:tt.properties.navbar,footer:tt.properties.footer,sidebar:tt.properties.sidebar,search:tt.properties.search,codeSnippet:tt.properties.codeSnippet,breadcrumbs:tt.properties.breadcrumbs,openapi:tt.properties.openapi,feedback:tt.properties.feedback,palette:Wn,mockServer:Or.properties.mockServer,analytics:{type:"object",properties:{ga:Ta}}},additionalProperties:!0,default:{}},n_={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},qa.properties),{apis:{type:"object",additionalProperties:Ea},theme:qa}),additionalProperties:!1};var ja=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy","returns","returnedBy"],fe=Oi({UserEntity:"UserEntity",UserEntityMetadata:"UserEntityMetadata",ApiDescriptionEntity:"ApiDescriptionEntity",ApiDescriptionEntityMetadata:"ApiDescriptionEntityMetadata",ApiOperationEntity:"ApiOperationEntity",ApiOperationEntityMetadata:"ApiOperationEntityMetadata",DataSchemaEntity:"DataSchemaEntity",DataSchemaEntityMetadata:"DataSchemaEntityMetadata",ServiceEntity:"ServiceEntity",DomainEntity:"DomainEntity",TeamEntity:"TeamEntity",Entity:"Entity",EntityMetadata:"EntityMetadata",EntityLinkList:"EntityLinkList",EntityLink:"EntityLink",EntityRelation:"EntityRelation",EntityRelationList:"EntityRelationList",EntityContact:"EntityContact",EntitySlackContact:"EntitySlackContact",EntitySlackChannel:"EntitySlackChannel"});var r_={type:"object",nodeTypeName:fe.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},i_={type:"object",nodeTypeName:fe.ApiDescriptionEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},o_={type:"object",nodeTypeName:fe.ApiOperationEntityMetadata,properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},s_={type:"object",nodeTypeName:fe.DataSchemaEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0},a_={type:"object",properties:{},nodeTypeName:fe.EntityMetadata,additionalProperties:!0},c_={type:"object",nodeTypeName:fe.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},u_={type:"object",nodeTypeName:fe.EntitySlackContact,properties:{channels:{type:"array",items:c_}},required:["channels"],additionalProperties:!1},l_={type:"object",nodeTypeName:fe.EntityContact,properties:{slack:u_},additionalProperties:!1},p_={type:"object",nodeTypeName:fe.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},d_={type:"object",nodeTypeName:fe.EntityRelation,properties:{type:{type:"string",enum:ja},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},$t={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:l_,links:{type:"array",nodeTypeName:fe.EntityLinkList,items:p_},relations:{type:"array",nodeTypeName:fe.EntityRelationList,items:d_},metadata:a_},to={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:Object.assign(Object.assign({},$t),{type:{const:"user"},metadata:r_}),required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:fe.UserEntity},{type:"object",nodeTypeName:fe.ApiOperationEntity,properties:Object.assign(Object.assign({},$t),{type:{const:"api-operation"},metadata:o_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:fe.DataSchemaEntity,properties:Object.assign(Object.assign({},$t),{type:{const:"data-schema"},metadata:s_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:fe.ApiDescriptionEntity,properties:Object.assign(Object.assign({},$t),{type:{const:"api-description"},metadata:i_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:fe.ServiceEntity,properties:Object.assign(Object.assign({},$t),{type:{const:"service"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:fe.DomainEntity,properties:Object.assign(Object.assign({},$t),{type:{const:"domain"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:fe.TeamEntity,properties:Object.assign(Object.assign({},$t),{type:{const:"team"}}),required:["key","title","type"],additionalProperties:!1}]},no={type:"object",nodeTypeName:fe.Entity,properties:Object.assign({},$t),required:["key","title","type"],additionalProperties:!1};var We=Oe(on(),1);import{getLineColLocation as DS,lintDocument as wS,makeDocumentFromString as Rs,lintConfig as kS,lintEntityFile as AS,detectSpec as ES,createConfigTypes as NS}from"@redocly/openapi-core";var Ss=Oe(jn(),1);function fy(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(u){let d=i.get(u.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(u.uri,setTimeout(()=>a(u),t-h));else if(r.delete(u.uri),i.delete(u.uri),!n){let v=s.get(u.uri),y=e(o.get(u.uri));v&&v.forEach(({resolve:R})=>R(y)),s.delete(u.uri)}}catch(v){let y=s.get(u.uri);y&&y.forEach(({reject:R})=>R(v)),s.delete(u.uri)}}function c(u){let d=r.get(u.uri),h=n&&!d;return i.set(u.uri,Date.now()),o.set(u.uri,u),new Promise((v,y)=>{let R=s.get(u.uri)||[];d||(s.set(u.uri,[...R,{resolve:v,reject:y}]),r.set(u.uri,setTimeout(()=>a(u),t))),h?v(e(o.get(u.uri))):s.set(u.uri,[...R,{resolve:v,reject:y}])})}return c}function wl(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 gy(e){return e==="$ref"}function kl(e,t){return e?re.dirname(ht.file(e)).toString():t}async function Al(e,t){let n=ht.parse(t);return re.joinPath(n,e).toString()}async function my(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await Al(i,n)===t)return r}function hy(e){return typeof e=="string"}function ti(e){return typeof e=="function"}function yy(e){return e?.kind===Ss.Kind.MAP}function El(e){return e?.kind===Ss.Kind.MAPPING}function Nl(e){return e?.kind===Ss.Kind.SEQ}function ni(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}import{bundleDocument as fS,isPlainObject as gS,makeDocumentFromString as mS,getTypes as hS,detectSpec as yS}from"@redocly/openapi-core";var by=new Map,Ts=new Map;function bS(e){return e?Array.from(e).map(([t,n])=>[t,wl(n)]):[]}async function Ol(e,t){let n=await Mn(),r=new vt(n.resolve),i=mS(e.getText(),e.uri),{bundle:o,rootType:s,refTypes:a}=await fS({document:i,config:n,externalRefResolver:r,types:hS(yS(i.parsed))}),c=bS(a);a&&(Ts=new Map([...Ts,...a])),by.set(e.uri,{uri:e.uri,name:Tr(e.uri),definition:gS(o.parsed)?o.parsed:{},rootType:s,refTypes:c,errors:t})}function vS(){return Array.from(by).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:Tr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function ql(e){return Ts.has(e)?Ts.get(e):null}import{createConfig as vy,lintDocument as xS,loadIgnoreConfig as PS,regexFromString as CS}from"@redocly/openapi-core";async function xy(e,t,n,r,i,o){let s=[],a=await PS(r,t),c=typeof i=="string"?await _S(i):i,u={};if(n.targets?.length){let d=e.parsed?.info,h=d?.["x-metadata"]||{},v={title:d?.title,version:d?.version,...h,...o},y=TS(n.targets,v);y?.rules&&r&&(u=await SS(e.source.absoluteRef,y.rules,n.levels,c,r,a))}for(let d of n?.levels||[]){let h=u[d.name]??await vy({...d,plugins:c},{configPath:r,ignore:a}),v=await xS({document:e,externalRefResolver:t,config:h});s.push(...v.filter(({ignored:y})=>!y).map(y=>({...y,scorecardLevel:d.name})))}return s}async function _S(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
|
-
Plugins code preview:`,e.substring(0,500)+"..."),[]}}async function
|
|
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 et.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 et.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,T,I){return t.call(y)==="[object Number]"&&T<=y&&y<=I}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function u(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=u;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,T){return Array.isArray(y)&&y.every(T)}e.typedArray=v})(f||(f={}))});var ae=D(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.ProtocolNotificationType=Ye.ProtocolNotificationType0=Ye.ProtocolRequestType=Ye.ProtocolRequestType0=Ye.RegistrationType=Ye.MessageDirection=void 0;var Qn=bn(),bf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(bf||(Ye.MessageDirection=bf={}));var hu=class{constructor(t){this.method=t}};Ye.RegistrationType=hu;var yu=class extends Qn.RequestType0{constructor(t){super(t)}};Ye.ProtocolRequestType0=yu;var bu=class extends Qn.RequestType{constructor(t){super(t,Qn.ParameterStructures.byName)}};Ye.ProtocolRequestType=bu;var vu=class extends Qn.NotificationType0{constructor(t){super(t)}};Ye.ProtocolNotificationType0=vu;var Pu=class extends Qn.NotificationType{constructor(t){super(t,Qn.ParameterStructures.byName)}};Ye.ProtocolNotificationType=Pu});var so=D(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.objectLiteral=xe.typedArray=xe.stringArray=xe.array=xe.func=xe.error=xe.number=xe.string=xe.boolean=void 0;function F_(e){return e===!0||e===!1}xe.boolean=F_;function vf(e){return typeof e=="string"||e instanceof String}xe.string=vf;function U_(e){return typeof e=="number"||e instanceof Number}xe.number=U_;function W_(e){return e instanceof Error}xe.error=W_;function H_(e){return typeof e=="function"}xe.func=H_;function Pf(e){return Array.isArray(e)}xe.array=Pf;function B_(e){return Pf(e)&&e.every(t=>vf(t))}xe.stringArray=B_;function z_(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=z_;function $_(e){return e!==null&&typeof e=="object"}xe.objectLiteral=$_});var Cf=D(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.ImplementationRequest=void 0;var xf=ae(),_f;(function(e){e.method="textDocument/implementation",e.messageDirection=xf.MessageDirection.clientToServer,e.type=new xf.ProtocolRequestType(e.method)})(_f||(ao.ImplementationRequest=_f={}))});var Tf=D(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.TypeDefinitionRequest=void 0;var Df=ae(),Rf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=Df.MessageDirection.clientToServer,e.type=new Df.ProtocolRequestType(e.method)})(Rf||(co.TypeDefinitionRequest=Rf={}))});var kf=D(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.DidChangeWorkspaceFoldersNotification=Jn.WorkspaceFoldersRequest=void 0;var uo=ae(),wf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=uo.MessageDirection.serverToClient,e.type=new uo.ProtocolRequestType0(e.method)})(wf||(Jn.WorkspaceFoldersRequest=wf={}));var Sf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=uo.MessageDirection.clientToServer,e.type=new uo.ProtocolNotificationType(e.method)})(Sf||(Jn.DidChangeWorkspaceFoldersNotification=Sf={}))});var Nf=D(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.ConfigurationRequest=void 0;var Af=ae(),Ef;(function(e){e.method="workspace/configuration",e.messageDirection=Af.MessageDirection.serverToClient,e.type=new Af.ProtocolRequestType(e.method)})(Ef||(lo.ConfigurationRequest=Ef={}))});var Mf=D(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.ColorPresentationRequest=Xn.DocumentColorRequest=void 0;var po=ae(),qf;(function(e){e.method="textDocument/documentColor",e.messageDirection=po.MessageDirection.clientToServer,e.type=new po.ProtocolRequestType(e.method)})(qf||(Xn.DocumentColorRequest=qf={}));var Of;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=po.MessageDirection.clientToServer,e.type=new po.ProtocolRequestType(e.method)})(Of||(Xn.ColorPresentationRequest=Of={}))});var If=D(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.FoldingRangeRefreshRequest=Zn.FoldingRangeRequest=void 0;var fo=ae(),jf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=fo.MessageDirection.clientToServer,e.type=new fo.ProtocolRequestType(e.method)})(jf||(Zn.FoldingRangeRequest=jf={}));var Lf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=fo.MessageDirection.serverToClient,e.type=new fo.ProtocolRequestType0(e.method)})(Lf||(Zn.FoldingRangeRefreshRequest=Lf={}))});var Wf=D(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.DeclarationRequest=void 0;var Ff=ae(),Uf;(function(e){e.method="textDocument/declaration",e.messageDirection=Ff.MessageDirection.clientToServer,e.type=new Ff.ProtocolRequestType(e.method)})(Uf||(go.DeclarationRequest=Uf={}))});var zf=D(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.SelectionRangeRequest=void 0;var Hf=ae(),Bf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Hf.MessageDirection.clientToServer,e.type=new Hf.ProtocolRequestType(e.method)})(Bf||(mo.SelectionRangeRequest=Bf={}))});var Kf=D(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.WorkDoneProgressCancelNotification=Gt.WorkDoneProgressCreateRequest=Gt.WorkDoneProgress=void 0;var Y_=bn(),ho=ae(),$f;(function(e){e.type=new Y_.ProgressType;function t(n){return n===e.type}e.is=t})($f||(Gt.WorkDoneProgress=$f={}));var Yf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=ho.MessageDirection.serverToClient,e.type=new ho.ProtocolRequestType(e.method)})(Yf||(Gt.WorkDoneProgressCreateRequest=Yf={}));var Vf;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=ho.MessageDirection.clientToServer,e.type=new ho.ProtocolNotificationType(e.method)})(Vf||(Gt.WorkDoneProgressCancelNotification=Vf={}))});var Xf=D(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.CallHierarchyOutgoingCallsRequest=Qt.CallHierarchyIncomingCallsRequest=Qt.CallHierarchyPrepareRequest=void 0;var er=ae(),Gf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(Gf||(Qt.CallHierarchyPrepareRequest=Gf={}));var Qf;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(Qf||(Qt.CallHierarchyIncomingCallsRequest=Qf={}));var Jf;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(Jf||(Qt.CallHierarchyOutgoingCallsRequest=Jf={}))});var ig=D(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.SemanticTokensRefreshRequest=Ve.SemanticTokensRangeRequest=Ve.SemanticTokensDeltaRequest=Ve.SemanticTokensRequest=Ve.SemanticTokensRegistrationType=Ve.TokenFormat=void 0;var Lt=ae(),Zf;(function(e){e.Relative="relative"})(Zf||(Ve.TokenFormat=Zf={}));var jr;(function(e){e.method="textDocument/semanticTokens",e.type=new Lt.RegistrationType(e.method)})(jr||(Ve.SemanticTokensRegistrationType=jr={}));var eg;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=Lt.MessageDirection.clientToServer,e.type=new Lt.ProtocolRequestType(e.method),e.registrationMethod=jr.method})(eg||(Ve.SemanticTokensRequest=eg={}));var tg;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=Lt.MessageDirection.clientToServer,e.type=new Lt.ProtocolRequestType(e.method),e.registrationMethod=jr.method})(tg||(Ve.SemanticTokensDeltaRequest=tg={}));var ng;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=Lt.MessageDirection.clientToServer,e.type=new Lt.ProtocolRequestType(e.method),e.registrationMethod=jr.method})(ng||(Ve.SemanticTokensRangeRequest=ng={}));var rg;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=Lt.MessageDirection.serverToClient,e.type=new Lt.ProtocolRequestType0(e.method)})(rg||(Ve.SemanticTokensRefreshRequest=rg={}))});var ag=D(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.ShowDocumentRequest=void 0;var og=ae(),sg;(function(e){e.method="window/showDocument",e.messageDirection=og.MessageDirection.serverToClient,e.type=new og.ProtocolRequestType(e.method)})(sg||(yo.ShowDocumentRequest=sg={}))});var lg=D(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.LinkedEditingRangeRequest=void 0;var cg=ae(),ug;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=cg.MessageDirection.clientToServer,e.type=new cg.ProtocolRequestType(e.method)})(ug||(bo.LinkedEditingRangeRequest=ug={}))});var bg=D(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.WillDeleteFilesRequest=Le.DidDeleteFilesNotification=Le.DidRenameFilesNotification=Le.WillRenameFilesRequest=Le.DidCreateFilesNotification=Le.WillCreateFilesRequest=Le.FileOperationPatternKind=void 0;var tt=ae(),pg;(function(e){e.file="file",e.folder="folder"})(pg||(Le.FileOperationPatternKind=pg={}));var dg;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=tt.MessageDirection.clientToServer,e.type=new tt.ProtocolRequestType(e.method)})(dg||(Le.WillCreateFilesRequest=dg={}));var fg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=tt.MessageDirection.clientToServer,e.type=new tt.ProtocolNotificationType(e.method)})(fg||(Le.DidCreateFilesNotification=fg={}));var gg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=tt.MessageDirection.clientToServer,e.type=new tt.ProtocolRequestType(e.method)})(gg||(Le.WillRenameFilesRequest=gg={}));var mg;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=tt.MessageDirection.clientToServer,e.type=new tt.ProtocolNotificationType(e.method)})(mg||(Le.DidRenameFilesNotification=mg={}));var hg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=tt.MessageDirection.clientToServer,e.type=new tt.ProtocolNotificationType(e.method)})(hg||(Le.DidDeleteFilesNotification=hg={}));var yg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=tt.MessageDirection.clientToServer,e.type=new tt.ProtocolRequestType(e.method)})(yg||(Le.WillDeleteFilesRequest=yg={}))});var Cg=D(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.MonikerRequest=Jt.MonikerKind=Jt.UniquenessLevel=void 0;var vg=ae(),Pg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(Pg||(Jt.UniquenessLevel=Pg={}));var xg;(function(e){e.$import="import",e.$export="export",e.local="local"})(xg||(Jt.MonikerKind=xg={}));var _g;(function(e){e.method="textDocument/moniker",e.messageDirection=vg.MessageDirection.clientToServer,e.type=new vg.ProtocolRequestType(e.method)})(_g||(Jt.MonikerRequest=_g={}))});var wg=D(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.TypeHierarchySubtypesRequest=Xt.TypeHierarchySupertypesRequest=Xt.TypeHierarchyPrepareRequest=void 0;var tr=ae(),Dg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Dg||(Xt.TypeHierarchyPrepareRequest=Dg={}));var Rg;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Rg||(Xt.TypeHierarchySupertypesRequest=Rg={}));var Tg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Tg||(Xt.TypeHierarchySubtypesRequest=Tg={}))});var Ag=D(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.InlineValueRefreshRequest=nr.InlineValueRequest=void 0;var vo=ae(),Sg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=vo.MessageDirection.clientToServer,e.type=new vo.ProtocolRequestType(e.method)})(Sg||(nr.InlineValueRequest=Sg={}));var kg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=vo.MessageDirection.serverToClient,e.type=new vo.ProtocolRequestType0(e.method)})(kg||(nr.InlineValueRefreshRequest=kg={}))});var Og=D(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.InlayHintRefreshRequest=Zt.InlayHintResolveRequest=Zt.InlayHintRequest=void 0;var rr=ae(),Eg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=rr.MessageDirection.clientToServer,e.type=new rr.ProtocolRequestType(e.method)})(Eg||(Zt.InlayHintRequest=Eg={}));var Ng;(function(e){e.method="inlayHint/resolve",e.messageDirection=rr.MessageDirection.clientToServer,e.type=new rr.ProtocolRequestType(e.method)})(Ng||(Zt.InlayHintResolveRequest=Ng={}));var qg;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=rr.MessageDirection.serverToClient,e.type=new rr.ProtocolRequestType0(e.method)})(qg||(Zt.InlayHintRefreshRequest=qg={}))});var Wg=D(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.DiagnosticRefreshRequest=nt.WorkspaceDiagnosticRequest=nt.DocumentDiagnosticRequest=nt.DocumentDiagnosticReportKind=nt.DiagnosticServerCancellationData=void 0;var Ug=bn(),V_=so(),ir=ae(),Mg;(function(e){function t(n){let r=n;return r&&V_.boolean(r.retriggerRequest)}e.is=t})(Mg||(nt.DiagnosticServerCancellationData=Mg={}));var jg;(function(e){e.Full="full",e.Unchanged="unchanged"})(jg||(nt.DocumentDiagnosticReportKind=jg={}));var Lg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method),e.partialResult=new Ug.ProgressType})(Lg||(nt.DocumentDiagnosticRequest=Lg={}));var Ig;(function(e){e.method="workspace/diagnostic",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method),e.partialResult=new Ug.ProgressType})(Ig||(nt.WorkspaceDiagnosticRequest=Ig={}));var Fg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=ir.MessageDirection.serverToClient,e.type=new ir.ProtocolRequestType0(e.method)})(Fg||(nt.DiagnosticRefreshRequest=Fg={}))});var Kg=D(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.DidCloseNotebookDocumentNotification=ge.DidSaveNotebookDocumentNotification=ge.DidChangeNotebookDocumentNotification=ge.NotebookCellArrayChange=ge.DidOpenNotebookDocumentNotification=ge.NotebookDocumentSyncRegistrationType=ge.NotebookDocument=ge.NotebookCell=ge.ExecutionSummary=ge.NotebookCellKind=void 0;var Lr=(oo(),ei(io)),lt=so(),Tt=ae(),xu;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(xu||(ge.NotebookCellKind=xu={}));var _u;(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 lt.objectLiteral(o)&&Lr.uinteger.is(o.executionOrder)&&(o.success===void 0||lt.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})(_u||(ge.ExecutionSummary=_u={}));var Po;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return lt.objectLiteral(s)&&xu.is(s.kind)&&Lr.DocumentUri.is(s.document)&&(s.metadata===void 0||lt.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)&&!_u.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 u=0;u<o.length;u++)if(!i(o[u],s[u]))return!1}if(lt.objectLiteral(o)&<.objectLiteral(s)){let u=Object.keys(o),d=Object.keys(s);if(u.length!==d.length||(u.sort(),d.sort(),!i(u,d)))return!1;for(let h=0;h<u.length;h++){let v=u[h];if(!i(o[v],s[v]))return!1}}return!0}})(Po||(ge.NotebookCell=Po={}));var Hg;(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 lt.objectLiteral(i)&<.string(i.uri)&&Lr.integer.is(i.version)&<.typedArray(i.cells,Po.is)}e.is=n})(Hg||(ge.NotebookDocument=Hg={}));var or;(function(e){e.method="notebookDocument/sync",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.RegistrationType(e.method)})(or||(ge.NotebookDocumentSyncRegistrationType=or={}));var Bg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(Bg||(ge.DidOpenNotebookDocumentNotification=Bg={}));var zg;(function(e){function t(r){let i=r;return lt.objectLiteral(i)&&Lr.uinteger.is(i.start)&&Lr.uinteger.is(i.deleteCount)&&(i.cells===void 0||lt.typedArray(i.cells,Po.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})(zg||(ge.NotebookCellArrayChange=zg={}));var $g;(function(e){e.method="notebookDocument/didChange",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})($g||(ge.DidChangeNotebookDocumentNotification=$g={}));var Yg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(Yg||(ge.DidSaveNotebookDocumentNotification=Yg={}));var Vg;(function(e){e.method="notebookDocument/didClose",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(Vg||(ge.DidCloseNotebookDocumentNotification=Vg={}))});var Jg=D(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.InlineCompletionRequest=void 0;var Gg=ae(),Qg;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=Gg.MessageDirection.clientToServer,e.type=new Gg.ProtocolRequestType(e.method)})(Qg||(xo.InlineCompletionRequest=Qg={}))});var lh=D(l=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});l.WorkspaceSymbolRequest=l.CodeActionResolveRequest=l.CodeActionRequest=l.DocumentSymbolRequest=l.DocumentHighlightRequest=l.ReferencesRequest=l.DefinitionRequest=l.SignatureHelpRequest=l.SignatureHelpTriggerKind=l.HoverRequest=l.CompletionResolveRequest=l.CompletionRequest=l.CompletionTriggerKind=l.PublishDiagnosticsNotification=l.WatchKind=l.RelativePattern=l.FileChangeType=l.DidChangeWatchedFilesNotification=l.WillSaveTextDocumentWaitUntilRequest=l.WillSaveTextDocumentNotification=l.TextDocumentSaveReason=l.DidSaveTextDocumentNotification=l.DidCloseTextDocumentNotification=l.DidChangeTextDocumentNotification=l.TextDocumentContentChangeEvent=l.DidOpenTextDocumentNotification=l.TextDocumentSyncKind=l.TelemetryEventNotification=l.LogMessageNotification=l.ShowMessageRequest=l.ShowMessageNotification=l.MessageType=l.DidChangeConfigurationNotification=l.ExitNotification=l.ShutdownRequest=l.InitializedNotification=l.InitializeErrorCodes=l.InitializeRequest=l.WorkDoneProgressOptions=l.TextDocumentRegistrationOptions=l.StaticRegistrationOptions=l.PositionEncodingKind=l.FailureHandlingKind=l.ResourceOperationKind=l.UnregistrationRequest=l.RegistrationRequest=l.DocumentSelector=l.NotebookCellTextDocumentFilter=l.NotebookDocumentFilter=l.TextDocumentFilter=void 0;l.MonikerRequest=l.MonikerKind=l.UniquenessLevel=l.WillDeleteFilesRequest=l.DidDeleteFilesNotification=l.WillRenameFilesRequest=l.DidRenameFilesNotification=l.WillCreateFilesRequest=l.DidCreateFilesNotification=l.FileOperationPatternKind=l.LinkedEditingRangeRequest=l.ShowDocumentRequest=l.SemanticTokensRegistrationType=l.SemanticTokensRefreshRequest=l.SemanticTokensRangeRequest=l.SemanticTokensDeltaRequest=l.SemanticTokensRequest=l.TokenFormat=l.CallHierarchyPrepareRequest=l.CallHierarchyOutgoingCallsRequest=l.CallHierarchyIncomingCallsRequest=l.WorkDoneProgressCancelNotification=l.WorkDoneProgressCreateRequest=l.WorkDoneProgress=l.SelectionRangeRequest=l.DeclarationRequest=l.FoldingRangeRefreshRequest=l.FoldingRangeRequest=l.ColorPresentationRequest=l.DocumentColorRequest=l.ConfigurationRequest=l.DidChangeWorkspaceFoldersNotification=l.WorkspaceFoldersRequest=l.TypeDefinitionRequest=l.ImplementationRequest=l.ApplyWorkspaceEditRequest=l.ExecuteCommandRequest=l.PrepareRenameRequest=l.RenameRequest=l.PrepareSupportDefaultBehavior=l.DocumentOnTypeFormattingRequest=l.DocumentRangesFormattingRequest=l.DocumentRangeFormattingRequest=l.DocumentFormattingRequest=l.DocumentLinkResolveRequest=l.DocumentLinkRequest=l.CodeLensRefreshRequest=l.CodeLensResolveRequest=l.CodeLensRequest=l.WorkspaceSymbolResolveRequest=void 0;l.InlineCompletionRequest=l.DidCloseNotebookDocumentNotification=l.DidSaveNotebookDocumentNotification=l.DidChangeNotebookDocumentNotification=l.NotebookCellArrayChange=l.DidOpenNotebookDocumentNotification=l.NotebookDocumentSyncRegistrationType=l.NotebookDocument=l.NotebookCell=l.ExecutionSummary=l.NotebookCellKind=l.DiagnosticRefreshRequest=l.WorkspaceDiagnosticRequest=l.DocumentDiagnosticRequest=l.DocumentDiagnosticReportKind=l.DiagnosticServerCancellationData=l.InlayHintRefreshRequest=l.InlayHintResolveRequest=l.InlayHintRequest=l.InlineValueRefreshRequest=l.InlineValueRequest=l.TypeHierarchySupertypesRequest=l.TypeHierarchySubtypesRequest=l.TypeHierarchyPrepareRequest=void 0;var w=ae(),Xg=(oo(),ei(io)),Se=so(),K_=Cf();Object.defineProperty(l,"ImplementationRequest",{enumerable:!0,get:function(){return K_.ImplementationRequest}});var G_=Tf();Object.defineProperty(l,"TypeDefinitionRequest",{enumerable:!0,get:function(){return G_.TypeDefinitionRequest}});var sh=kf();Object.defineProperty(l,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return sh.WorkspaceFoldersRequest}});Object.defineProperty(l,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return sh.DidChangeWorkspaceFoldersNotification}});var Q_=Nf();Object.defineProperty(l,"ConfigurationRequest",{enumerable:!0,get:function(){return Q_.ConfigurationRequest}});var ah=Mf();Object.defineProperty(l,"DocumentColorRequest",{enumerable:!0,get:function(){return ah.DocumentColorRequest}});Object.defineProperty(l,"ColorPresentationRequest",{enumerable:!0,get:function(){return ah.ColorPresentationRequest}});var ch=If();Object.defineProperty(l,"FoldingRangeRequest",{enumerable:!0,get:function(){return ch.FoldingRangeRequest}});Object.defineProperty(l,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return ch.FoldingRangeRefreshRequest}});var J_=Wf();Object.defineProperty(l,"DeclarationRequest",{enumerable:!0,get:function(){return J_.DeclarationRequest}});var X_=zf();Object.defineProperty(l,"SelectionRangeRequest",{enumerable:!0,get:function(){return X_.SelectionRangeRequest}});var wu=Kf();Object.defineProperty(l,"WorkDoneProgress",{enumerable:!0,get:function(){return wu.WorkDoneProgress}});Object.defineProperty(l,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return wu.WorkDoneProgressCreateRequest}});Object.defineProperty(l,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return wu.WorkDoneProgressCancelNotification}});var Su=Xf();Object.defineProperty(l,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Su.CallHierarchyIncomingCallsRequest}});Object.defineProperty(l,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Su.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(l,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Su.CallHierarchyPrepareRequest}});var sr=ig();Object.defineProperty(l,"TokenFormat",{enumerable:!0,get:function(){return sr.TokenFormat}});Object.defineProperty(l,"SemanticTokensRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRequest}});Object.defineProperty(l,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return sr.SemanticTokensDeltaRequest}});Object.defineProperty(l,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRangeRequest}});Object.defineProperty(l,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRefreshRequest}});Object.defineProperty(l,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return sr.SemanticTokensRegistrationType}});var Z_=ag();Object.defineProperty(l,"ShowDocumentRequest",{enumerable:!0,get:function(){return Z_.ShowDocumentRequest}});var eC=lg();Object.defineProperty(l,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return eC.LinkedEditingRangeRequest}});var xn=bg();Object.defineProperty(l,"FileOperationPatternKind",{enumerable:!0,get:function(){return xn.FileOperationPatternKind}});Object.defineProperty(l,"DidCreateFilesNotification",{enumerable:!0,get:function(){return xn.DidCreateFilesNotification}});Object.defineProperty(l,"WillCreateFilesRequest",{enumerable:!0,get:function(){return xn.WillCreateFilesRequest}});Object.defineProperty(l,"DidRenameFilesNotification",{enumerable:!0,get:function(){return xn.DidRenameFilesNotification}});Object.defineProperty(l,"WillRenameFilesRequest",{enumerable:!0,get:function(){return xn.WillRenameFilesRequest}});Object.defineProperty(l,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return xn.DidDeleteFilesNotification}});Object.defineProperty(l,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return xn.WillDeleteFilesRequest}});var ku=Cg();Object.defineProperty(l,"UniquenessLevel",{enumerable:!0,get:function(){return ku.UniquenessLevel}});Object.defineProperty(l,"MonikerKind",{enumerable:!0,get:function(){return ku.MonikerKind}});Object.defineProperty(l,"MonikerRequest",{enumerable:!0,get:function(){return ku.MonikerRequest}});var Au=wg();Object.defineProperty(l,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Au.TypeHierarchyPrepareRequest}});Object.defineProperty(l,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Au.TypeHierarchySubtypesRequest}});Object.defineProperty(l,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Au.TypeHierarchySupertypesRequest}});var uh=Ag();Object.defineProperty(l,"InlineValueRequest",{enumerable:!0,get:function(){return uh.InlineValueRequest}});Object.defineProperty(l,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return uh.InlineValueRefreshRequest}});var Eu=Og();Object.defineProperty(l,"InlayHintRequest",{enumerable:!0,get:function(){return Eu.InlayHintRequest}});Object.defineProperty(l,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Eu.InlayHintResolveRequest}});Object.defineProperty(l,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Eu.InlayHintRefreshRequest}});var Ir=Wg();Object.defineProperty(l,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Ir.DiagnosticServerCancellationData}});Object.defineProperty(l,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Ir.DocumentDiagnosticReportKind}});Object.defineProperty(l,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Ir.DocumentDiagnosticRequest}});Object.defineProperty(l,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Ir.WorkspaceDiagnosticRequest}});Object.defineProperty(l,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Ir.DiagnosticRefreshRequest}});var wt=Kg();Object.defineProperty(l,"NotebookCellKind",{enumerable:!0,get:function(){return wt.NotebookCellKind}});Object.defineProperty(l,"ExecutionSummary",{enumerable:!0,get:function(){return wt.ExecutionSummary}});Object.defineProperty(l,"NotebookCell",{enumerable:!0,get:function(){return wt.NotebookCell}});Object.defineProperty(l,"NotebookDocument",{enumerable:!0,get:function(){return wt.NotebookDocument}});Object.defineProperty(l,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return wt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(l,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidOpenNotebookDocumentNotification}});Object.defineProperty(l,"NotebookCellArrayChange",{enumerable:!0,get:function(){return wt.NotebookCellArrayChange}});Object.defineProperty(l,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidChangeNotebookDocumentNotification}});Object.defineProperty(l,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidSaveNotebookDocumentNotification}});Object.defineProperty(l,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidCloseNotebookDocumentNotification}});var tC=Jg();Object.defineProperty(l,"InlineCompletionRequest",{enumerable:!0,get:function(){return tC.InlineCompletionRequest}});var Cu;(function(e){function t(n){let r=n;return Se.string(r)||Se.string(r.language)||Se.string(r.scheme)||Se.string(r.pattern)}e.is=t})(Cu||(l.TextDocumentFilter=Cu={}));var Du;(function(e){function t(n){let r=n;return Se.objectLiteral(r)&&(Se.string(r.notebookType)||Se.string(r.scheme)||Se.string(r.pattern))}e.is=t})(Du||(l.NotebookDocumentFilter=Du={}));var Ru;(function(e){function t(n){let r=n;return Se.objectLiteral(r)&&(Se.string(r.notebook)||Du.is(r.notebook))&&(r.language===void 0||Se.string(r.language))}e.is=t})(Ru||(l.NotebookCellTextDocumentFilter=Ru={}));var Tu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Se.string(r)&&!Cu.is(r)&&!Ru.is(r))return!1;return!0}e.is=t})(Tu||(l.DocumentSelector=Tu={}));var Zg;(function(e){e.method="client/registerCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(Zg||(l.RegistrationRequest=Zg={}));var em;(function(e){e.method="client/unregisterCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(em||(l.UnregistrationRequest=em={}));var tm;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(tm||(l.ResourceOperationKind=tm={}));var nm;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(nm||(l.FailureHandlingKind=nm={}));var rm;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(rm||(l.PositionEncodingKind=rm={}));var im;(function(e){function t(n){let r=n;return r&&Se.string(r.id)&&r.id.length>0}e.hasId=t})(im||(l.StaticRegistrationOptions=im={}));var om;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||Tu.is(r.documentSelector))}e.is=t})(om||(l.TextDocumentRegistrationOptions=om={}));var sm;(function(e){function t(r){let i=r;return Se.objectLiteral(i)&&(i.workDoneProgress===void 0||Se.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&Se.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(sm||(l.WorkDoneProgressOptions=sm={}));var am;(function(e){e.method="initialize",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(am||(l.InitializeRequest=am={}));var cm;(function(e){e.unknownProtocolVersion=1})(cm||(l.InitializeErrorCodes=cm={}));var um;(function(e){e.method="initialized",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(um||(l.InitializedNotification=um={}));var lm;(function(e){e.method="shutdown",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType0(e.method)})(lm||(l.ShutdownRequest=lm={}));var pm;(function(e){e.method="exit",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType0(e.method)})(pm||(l.ExitNotification=pm={}));var dm;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(dm||(l.DidChangeConfigurationNotification=dm={}));var fm;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(fm||(l.MessageType=fm={}));var gm;(function(e){e.method="window/showMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(gm||(l.ShowMessageNotification=gm={}));var mm;(function(e){e.method="window/showMessageRequest",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(mm||(l.ShowMessageRequest=mm={}));var hm;(function(e){e.method="window/logMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(hm||(l.LogMessageNotification=hm={}));var ym;(function(e){e.method="telemetry/event",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(ym||(l.TelemetryEventNotification=ym={}));var bm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(bm||(l.TextDocumentSyncKind=bm={}));var vm;(function(e){e.method="textDocument/didOpen",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(vm||(l.DidOpenTextDocumentNotification=vm={}));var Pm;(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})(Pm||(l.TextDocumentContentChangeEvent=Pm={}));var xm;(function(e){e.method="textDocument/didChange",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(xm||(l.DidChangeTextDocumentNotification=xm={}));var _m;(function(e){e.method="textDocument/didClose",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(_m||(l.DidCloseTextDocumentNotification=_m={}));var Cm;(function(e){e.method="textDocument/didSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Cm||(l.DidSaveTextDocumentNotification=Cm={}));var Dm;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(Dm||(l.TextDocumentSaveReason=Dm={}));var Rm;(function(e){e.method="textDocument/willSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Rm||(l.WillSaveTextDocumentNotification=Rm={}));var Tm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Tm||(l.WillSaveTextDocumentWaitUntilRequest=Tm={}));var wm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(wm||(l.DidChangeWatchedFilesNotification=wm={}));var Sm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(Sm||(l.FileChangeType=Sm={}));var km;(function(e){function t(n){let r=n;return Se.objectLiteral(r)&&(Xg.URI.is(r.baseUri)||Xg.WorkspaceFolder.is(r.baseUri))&&Se.string(r.pattern)}e.is=t})(km||(l.RelativePattern=km={}));var Am;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Am||(l.WatchKind=Am={}));var Em;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Em||(l.PublishDiagnosticsNotification=Em={}));var Nm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Nm||(l.CompletionTriggerKind=Nm={}));var qm;(function(e){e.method="textDocument/completion",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(qm||(l.CompletionRequest=qm={}));var Om;(function(e){e.method="completionItem/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Om||(l.CompletionResolveRequest=Om={}));var Mm;(function(e){e.method="textDocument/hover",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Mm||(l.HoverRequest=Mm={}));var jm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(jm||(l.SignatureHelpTriggerKind=jm={}));var Lm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Lm||(l.SignatureHelpRequest=Lm={}));var Im;(function(e){e.method="textDocument/definition",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Im||(l.DefinitionRequest=Im={}));var Fm;(function(e){e.method="textDocument/references",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Fm||(l.ReferencesRequest=Fm={}));var Um;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Um||(l.DocumentHighlightRequest=Um={}));var Wm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Wm||(l.DocumentSymbolRequest=Wm={}));var Hm;(function(e){e.method="textDocument/codeAction",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Hm||(l.CodeActionRequest=Hm={}));var Bm;(function(e){e.method="codeAction/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Bm||(l.CodeActionResolveRequest=Bm={}));var zm;(function(e){e.method="workspace/symbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(zm||(l.WorkspaceSymbolRequest=zm={}));var $m;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})($m||(l.WorkspaceSymbolResolveRequest=$m={}));var Ym;(function(e){e.method="textDocument/codeLens",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Ym||(l.CodeLensRequest=Ym={}));var Vm;(function(e){e.method="codeLens/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Vm||(l.CodeLensResolveRequest=Vm={}));var Km;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType0(e.method)})(Km||(l.CodeLensRefreshRequest=Km={}));var Gm;(function(e){e.method="textDocument/documentLink",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Gm||(l.DocumentLinkRequest=Gm={}));var Qm;(function(e){e.method="documentLink/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Qm||(l.DocumentLinkResolveRequest=Qm={}));var Jm;(function(e){e.method="textDocument/formatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Jm||(l.DocumentFormattingRequest=Jm={}));var Xm;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Xm||(l.DocumentRangeFormattingRequest=Xm={}));var Zm;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Zm||(l.DocumentRangesFormattingRequest=Zm={}));var eh;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(eh||(l.DocumentOnTypeFormattingRequest=eh={}));var th;(function(e){e.Identifier=1})(th||(l.PrepareSupportDefaultBehavior=th={}));var nh;(function(e){e.method="textDocument/rename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(nh||(l.RenameRequest=nh={}));var rh;(function(e){e.method="textDocument/prepareRename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(rh||(l.PrepareRenameRequest=rh={}));var ih;(function(e){e.method="workspace/executeCommand",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ih||(l.ExecuteCommandRequest=ih={}));var oh;(function(e){e.method="workspace/applyEdit",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType("workspace/applyEdit")})(oh||(l.ApplyWorkspaceEditRequest=oh={}))});var dh=D(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.createProtocolConnection=void 0;var ph=bn();function nC(e,t,n,r){return ph.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,ph.createMessageConnection)(e,t,n,r)}_o.createProtocolConnection=nC});var gh=D(Ke=>{"use strict";var rC=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]})),Co=Ke&&Ke.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&rC(t,e,n)};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.LSPErrorCodes=Ke.createProtocolConnection=void 0;Co(bn(),Ke);Co((oo(),ei(io)),Ke);Co(ae(),Ke);Co(lh(),Ke);var iC=dh();Object.defineProperty(Ke,"createProtocolConnection",{enumerable:!0,get:function(){return iC.createProtocolConnection}});var fh;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(fh||(Ke.LSPErrorCodes=fh={}))});var ve=D(St=>{"use strict";var oC=St&&St.__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]})),mh=St&&St.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&oC(t,e,n)};Object.defineProperty(St,"__esModule",{value:!0});St.createProtocolConnection=void 0;var sC=fc();mh(fc(),St);mh(gh(),St);function aC(e,t,n,r){return(0,sC.createMessageConnection)(e,t,n,r)}St.createProtocolConnection=aC});var qu=D(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.SemanticTokensBuilder=en.SemanticTokensDiff=en.SemanticTokensFeature=void 0;var Do=ve(),cC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(Do.SemanticTokensRefreshRequest.type),on:t=>{let n=Do.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=Do.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=Do.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};en.SemanticTokensFeature=cC;var Ro=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}]:[]}};en.SemanticTokensDiff=Ro;var Nu=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 Ro(this._prevData,this._data).computeDiff()}:this.build()}};en.SemanticTokensBuilder=Nu});var hh=D(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.InlineCompletionFeature=void 0;var uC=ve(),lC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(uC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};To.InlineCompletionFeature=lC});var Mu=D(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.TextDocuments=void 0;var _n=ve(),Ou=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new _n.Emitter,this._onDidOpen=new _n.Emitter,this._onDidClose=new _n.Emitter,this._onDidSave=new _n.Emitter,this._onWillSave=new _n.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=_n.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}))})),_n.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};wo.TextDocuments=Ou});var Lu=D(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.NotebookDocuments=ar.NotebookSyncFeature=void 0;var rt=ve(),yh=Mu(),pC=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(rt.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(rt.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(rt.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(rt.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};ar.NotebookSyncFeature=pC;var So=class e{onDidOpenTextDocument(t){return this.openHandler=t,rt.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,rt.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,rt.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}};So.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var ju=class{constructor(t){t instanceof yh.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new yh.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new rt.Emitter,this._onDidChange=new rt.Emitter,this._onDidSave=new rt.Emitter,this._onDidClose=new rt.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 So,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 u=[],d=[],h=[],v=[];if(c.cells!==void 0){let W=c.cells;if(W.structure!==void 0){let m=W.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),W.structure.didOpen!==void 0)for(let g of W.structure.didOpen)n.openTextDocument({textDocument:g}),u.push(g.uri);if(W.structure.didClose)for(let g of W.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(W.data!==void 0){let m=new Map(W.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let S=m.get(o.cells[g].document);if(S!==void 0){let Y=o.cells.splice(g,1,S);if(h.push({old:Y[0],new:S}),m.delete(S.document),m.size===0)break}}}if(W.textContent!==void 0)for(let m of W.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 T=[];for(let W of u)T.push(this.getNotebookCell(W));let I=[];for(let W of d)I.push(this.getNotebookCell(W));let K=[];for(let W of v)K.push(this.getNotebookCell(W));(T.length>0||I.length>0||h.length>0||K.length>0)&&(y.cells={added:T,removed:I,changed:{data:h,textContent:K}}),(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)}})),rt.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};ar.NotebookDocuments=ju});var Iu=D(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.thenable=_e.typedArray=_e.stringArray=_e.array=_e.func=_e.error=_e.number=_e.string=_e.boolean=void 0;function dC(e){return e===!0||e===!1}_e.boolean=dC;function bh(e){return typeof e=="string"||e instanceof String}_e.string=bh;function fC(e){return typeof e=="number"||e instanceof Number}_e.number=fC;function gC(e){return e instanceof Error}_e.error=gC;function vh(e){return typeof e=="function"}_e.func=vh;function Ph(e){return Array.isArray(e)}_e.array=Ph;function mC(e){return Ph(e)&&e.every(t=>bh(t))}_e.stringArray=mC;function hC(e,t){return Array.isArray(e)&&e.every(t)}_e.typedArray=hC;function yC(e){return e&&vh(e.then)}_e.thenable=yC});var Fu=D(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.generateUuid=it.parse=it.isUUID=it.v4=it.empty=void 0;var Fr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Ur=class e extends Fr{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(""))}};Ur._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Ur._timeHighBits=["8","9","a","b"];it.empty=new Fr("00000000-0000-0000-0000-000000000000");function xh(){return new Ur}it.v4=xh;var bC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function _h(e){return bC.test(e)}it.isUUID=_h;function vC(e){if(!_h(e))throw new Error("invalid uuid");return new Fr(e)}it.parse=vC;function PC(){return xh().asHex()}it.generateUuid=PC});var Ch=D(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.attachPartialResult=nn.ProgressFeature=nn.attachWorkDone=void 0;var tn=ve(),xC=Fu(),Cn=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(tn.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(tn.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(tn.WorkDoneProgress.type,this._token,{kind:"end"})}};Cn.Instances=new Map;var ko=class extends Cn{constructor(t,n){super(t,n),this._source=new tn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Wr=class{constructor(){}begin(){}report(){}done(){}},Ao=class extends Wr{constructor(){super(),this._source=new tn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function _C(e,t){if(t===void 0||t.workDoneToken===void 0)return new Wr;let n=t.workDoneToken;return delete t.workDoneToken,new Cn(e,n)}nn.attachWorkDone=_C;var CC=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(tn.WorkDoneProgressCancelNotification.type,n=>{let r=Cn.Instances.get(n.token);(r instanceof ko||r instanceof Ao)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Wr:new Cn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,xC.generateUuid)();return this.connection.sendRequest(tn.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new ko(this.connection,t))}else return Promise.resolve(new Ao)}};nn.ProgressFeature=CC;var Uu;(function(e){e.type=new tn.ProgressType})(Uu||(Uu={}));var Wu=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(Uu.type,this._token,t)}};function DC(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new Wu(e,n)}nn.attachPartialResult=DC});var Dh=D(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.ConfigurationFeature=void 0;var RC=ve(),TC=Iu(),wC=e=>class extends e{getConfiguration(t){return t?TC.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(RC.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};Eo.ConfigurationFeature=wC});var Rh=D(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.WorkspaceFoldersFeature=void 0;var No=ve(),SC=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new No.Emitter,this.connection.onNotification(No.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(No.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(No.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};qo.WorkspaceFoldersFeature=SC});var Th=D(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.CallHierarchyFeature=void 0;var Hu=ve(),kC=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(Hu.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=Hu.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=Hu.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Oo.CallHierarchyFeature=kC});var wh=D(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.ShowDocumentFeature=void 0;var AC=ve(),EC=e=>class extends e{showDocument(t){return this.connection.sendRequest(AC.ShowDocumentRequest.type,t)}};Mo.ShowDocumentFeature=EC});var Sh=D(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.FileOperationsFeature=void 0;var cr=ve(),NC=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(cr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(cr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(cr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(cr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(cr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(cr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};jo.FileOperationsFeature=NC});var kh=D(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.LinkedEditingRangeFeature=void 0;var qC=ve(),OC=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(qC.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};Lo.LinkedEditingRangeFeature=OC});var Ah=D(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.TypeHierarchyFeature=void 0;var Bu=ve(),MC=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(Bu.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=Bu.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=Bu.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Io.TypeHierarchyFeature=MC});var Nh=D(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.InlineValueFeature=void 0;var Eh=ve(),jC=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(Eh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(Eh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Fo.InlineValueFeature=jC});var Oh=D(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.FoldingRangeFeature=void 0;var qh=ve(),LC=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(qh.FoldingRangeRefreshRequest.type),on:t=>{let n=qh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Uo.FoldingRangeFeature=LC});var Mh=D(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.InlayHintFeature=void 0;var zu=ve(),IC=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(zu.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(zu.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(zu.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};Wo.InlayHintFeature=IC});var jh=D(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.DiagnosticFeature=void 0;var Hr=ve(),FC=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)))}}};Ho.DiagnosticFeature=FC});var Lh=D(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.MonikerFeature=void 0;var UC=ve(),WC=e=>class extends e{get moniker(){return{on:t=>{let n=UC.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Bo.MonikerFeature=WC});var Xh=D(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 E=ve(),ot=Iu(),Yu=Fu(),B=Ch(),HC=Dh(),BC=Rh(),zC=Th(),$C=qu(),YC=wh(),VC=Sh(),KC=kh(),GC=Ah(),QC=Nh(),JC=Oh(),XC=Mh(),ZC=jh(),eD=Lu(),tD=Lh();function $u(e){if(e!==null)return e}var Vu=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=Vu;var zo=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(E.MessageType.Error,t)}warn(t){this.send(E.MessageType.Warning,t)}info(t){this.send(E.MessageType.Info,t)}log(t){this.send(E.MessageType.Log,t)}debug(t){this.send(E.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(E.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,E.RAL)().console.error("Sending log message failed")})}},Ku=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:E.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then($u)}showWarningMessage(t,...n){let r={type:E.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then($u)}showInformationMessage(t,...n){let r={type:E.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then($u)}},Ih=(0,YC.ShowDocumentFeature)((0,B.ProgressFeature)(Ku)),Fh;(function(e){function t(){return new $o}e.create=t})(Fh||(Q.BulkRegistration=Fh={}));var $o=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=ot.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=Yu.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Uh;(function(e){function t(){return new Br(void 0,[])}e.create=t})(Uh||(Q.BulkUnregistration=Uh={}));var Br=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(E.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=ot.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(E.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},Yo=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 $o?this.registerMany(t):t instanceof Br?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=ot.string(n)?n:n.method,o=Yu.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(E.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=ot.string(t)?t:t.method,i=Yu.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(E.RegistrationRequest.type,o).then(s=>E.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(E.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(E.RegistrationRequest.type,n).then(()=>new Br(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},Gu=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(E.ApplyWorkspaceEditRequest.type,r)}},Wh=(0,VC.FileOperationsFeature)((0,BC.WorkspaceFoldersFeature)((0,HC.ConfigurationFeature)(Gu))),Vo=class{constructor(){this._trace=E.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!==E.Trace.Off&&this.connection.sendNotification(E.LogTraceNotification.type,{message:t,verbose:this._trace===E.Trace.Verbose?n:void 0}).catch(()=>{})}},Ko=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(E.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},Go=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=Go;var Hh=(0,JC.FoldingRangeFeature)((0,tD.MonikerFeature)((0,ZC.DiagnosticFeature)((0,XC.InlayHintFeature)((0,QC.InlineValueFeature)((0,GC.TypeHierarchyFeature)((0,KC.LinkedEditingRangeFeature)((0,$C.SemanticTokensFeature)((0,zC.CallHierarchyFeature)(Go))))))))),Qo=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=Qo;var Bh=(0,eD.NotebookSyncFeature)(Qo);function zh(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=zh;function $h(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=$h;function Yh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Yh;function Vh(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Vh;function Kh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=Kh;function Gh(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=Gh;function Qh(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=Qh;function Jh(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=Jh;function nD(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,zh),tracer:n(e.tracer,t.tracer,Yh),telemetry:n(e.telemetry,t.telemetry,$h),client:n(e.client,t.client,Vh),window:n(e.window,t.window,Kh),workspace:n(e.workspace,t.workspace,Gh),languages:n(e.languages,t.languages,Qh),notebooks:n(e.notebooks,t.notebooks,Jh)}}Q.combineFeatures=nD;function rD(e,t,n){let r=n&&n.console?new(n.console(zo)):new zo,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(Vo)):new Vo,s=n&&n.telemetry?new(n.telemetry(Ko)):new Ko,a=n&&n.client?new(n.client(Yo)):new Yo,c=n&&n.window?new(n.window(Ih)):new Ih,u=n&&n.workspace?new(n.workspace(Wh)):new Wh,d=n&&n.languages?new(n.languages(Hh)):new Hh,h=n&&n.notebooks?new(n.notebooks(Bh)):new Bh,v=[r,o,s,a,c,u,d,h];function y(m){return m instanceof Promise?m:ot.thenable(m)?new Promise((g,S)=>{m.then(Y=>g(Y),Y=>S(Y))}):Promise.resolve(m)}let T,I,K,W={listen:()=>i.listen(),sendRequest:(m,...g)=>i.sendRequest(ot.string(m)?m:m.method,...g),onRequest:(m,g)=>i.onRequest(m,g),sendNotification:(m,g)=>{let S=ot.string(m)?m:m.method;return i.sendNotification(S,g)},onNotification:(m,g)=>i.onNotification(m,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(I=m,{dispose:()=>{I=void 0}}),onInitialized:m=>i.onNotification(E.InitializedNotification.type,m),onShutdown:m=>(T=m,{dispose:()=>{T=void 0}}),onExit:m=>(K=m,{dispose:()=>{K=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 u},get languages(){return d},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(E.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(E.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(E.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(E.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(E.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(E.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(E.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(E.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(E.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(E.HoverRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:m=>i.onRequest(E.CompletionRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:m=>i.onRequest(E.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(E.SignatureHelpRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:m=>i.onRequest(E.DeclarationRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:m=>i.onRequest(E.DefinitionRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:m=>i.onRequest(E.TypeDefinitionRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:m=>i.onRequest(E.ImplementationRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:m=>i.onRequest(E.ReferencesRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:m=>i.onRequest(E.DocumentHighlightRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:m=>i.onRequest(E.DocumentSymbolRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:m=>i.onRequest(E.WorkspaceSymbolRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:m=>i.onRequest(E.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(E.CodeActionRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:m=>i.onRequest(E.CodeActionResolveRequest.type,(g,S)=>m(g,S)),onCodeLens:m=>i.onRequest(E.CodeLensRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:m=>i.onRequest(E.CodeLensResolveRequest.type,(g,S)=>m(g,S)),onDocumentFormatting:m=>i.onRequest(E.DocumentFormattingRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:m=>i.onRequest(E.DocumentRangeFormattingRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(E.DocumentOnTypeFormattingRequest.type,(g,S)=>m(g,S)),onRenameRequest:m=>i.onRequest(E.RenameRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:m=>i.onRequest(E.PrepareRenameRequest.type,(g,S)=>m(g,S)),onDocumentLinks:m=>i.onRequest(E.DocumentLinkRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:m=>i.onRequest(E.DocumentLinkResolveRequest.type,(g,S)=>m(g,S)),onDocumentColor:m=>i.onRequest(E.DocumentColorRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:m=>i.onRequest(E.ColorPresentationRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:m=>i.onRequest(E.FoldingRangeRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:m=>i.onRequest(E.SelectionRangeRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:m=>i.onRequest(E.ExecuteCommandRequest.type,(g,S)=>m(g,S,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let m of v)m.attach(W);return i.onRequest(E.InitializeRequest.type,m=>{t.initialize(m),ot.string(m.trace)&&(o.trace=E.Trace.fromString(m.trace));for(let g of v)g.initialize(m.capabilities);if(I){let g=I(m,new E.CancellationTokenSource().token,(0,B.attachWorkDone)(i,m),void 0);return y(g).then(S=>{if(S instanceof E.ResponseError)return S;let Y=S;Y||(Y={capabilities:{}});let X=Y.capabilities;X||(X={},Y.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=ot.number(W.__textDocumentSync)?W.__textDocumentSync:E.TextDocumentSyncKind.None:!ot.number(X.textDocumentSync)&&!ot.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=ot.number(W.__textDocumentSync)?W.__textDocumentSync:E.TextDocumentSyncKind.None);for(let st of v)st.fillServerCapabilities(X);return Y})}else{let g={capabilities:{textDocumentSync:E.TextDocumentSyncKind.None}};for(let S of v)S.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(E.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,T)return T(new E.CancellationTokenSource().token)}),i.onNotification(E.ExitNotification.type,()=>{try{K&&K()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(E.SetTraceNotification.type,m=>{o.trace=E.Trace.fromString(m.value)}),W}Q.createConnection=rD});var Qu=D(Ie=>{"use strict";var iD=Ie&&Ie.__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]})),ey=Ie&&Ie.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&iD(t,e,n)};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.ProposedFeatures=Ie.NotebookDocuments=Ie.TextDocuments=Ie.SemanticTokensBuilder=void 0;var oD=qu();Object.defineProperty(Ie,"SemanticTokensBuilder",{enumerable:!0,get:function(){return oD.SemanticTokensBuilder}});var sD=hh();ey(ve(),Ie);var aD=Mu();Object.defineProperty(Ie,"TextDocuments",{enumerable:!0,get:function(){return aD.TextDocuments}});var cD=Lu();Object.defineProperty(Ie,"NotebookDocuments",{enumerable:!0,get:function(){return cD.NotebookDocuments}});ey(Xh(),Ie);var Zh;(function(e){e.all={__brand:"features",languages:sD.InlineCompletionFeature}})(Zh||(Ie.ProposedFeatures=Zh={}))});var ny=D((fS,ty)=>{"use strict";ty.exports=ve()});var Xo=D(kt=>{"use strict";var uD=kt&&kt.__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]})),iy=kt&&kt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&uD(t,e,n)};Object.defineProperty(kt,"__esModule",{value:!0});kt.createConnection=void 0;var Jo=Qu();iy(ny(),kt);iy(Qu(),kt);var ry=!1,lD={initialize:e=>{},get shutdownReceived(){return ry},set shutdownReceived(e){ry=e},exit:e=>{}};function pD(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),Jo.ConnectionStrategy.is(e)||Jo.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=u=>(0,Jo.createProtocolConnection)(o,s,u,a);return(0,Jo.createConnection)(c,lD,i)}kt.createConnection=pD});var rn=D((mS,oy)=>{"use strict";oy.exports=Xo()});var gl=D((pk,xy)=>{"use strict";function At(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Py(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 uR(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 pr={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),At(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=Py(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(At(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Py(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return At(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];At(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":pr.normalize(t)},relative:function(t,n){if(At(t),At(n),t===n||(t=pr.resolve(t),n=pr.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,u=o<c?o:c,d=-1,h=0;h<=u;++h){if(h===u){if(c>u){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>u&&(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 T="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(T.length===0?T+="..":T+="/..");return T.length>0?T+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(At(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');At(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 u=t.charCodeAt(s);if(u===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(u===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){At(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 uR("/",t)},parse:function(t){At(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,u=!0,d=t.length-1,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!u){a=d+1;break}continue}c===-1&&(u=!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};pr.posix=pr;xy.exports=pr});import{createConfig as Xp,loadConfig as HP,loadIgnoreConfig as BP,DEFAULT_CONFIG as zP,IGNORE_FILE as $P}from"@redocly/openapi-core";var vl;(()=>{"use strict";var e={975:k=>{function b(x){if(typeof x!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(x))}function O(x,C){for(var R,q="",j=0,N=-1,$=0,V=0;V<=x.length;++V){if(V<x.length)R=x.charCodeAt(V);else{if(R===47)break;R=47}if(R===47){if(!(N===V-1||$===1))if(N!==V-1&&$===2){if(q.length<2||j!==2||q.charCodeAt(q.length-1)!==46||q.charCodeAt(q.length-2)!==46){if(q.length>2){var Re=q.lastIndexOf("/");if(Re!==q.length-1){Re===-1?(q="",j=0):j=(q=q.slice(0,Re)).length-1-q.lastIndexOf("/"),N=V,$=0;continue}}else if(q.length===2||q.length===1){q="",j=0,N=V,$=0;continue}}C&&(q.length>0?q+="/..":q="..",j=2)}else q.length>0?q+="/"+x.slice(N+1,V):q=x.slice(N+1,V),j=V-N-1;N=V,$=0}else R===46&&$!==-1?++$:$=-1}return q}var M={resolve:function(){for(var x,C="",R=!1,q=arguments.length-1;q>=-1&&!R;q--){var j;q>=0?j=arguments[q]:(x===void 0&&(x=process.cwd()),j=x),b(j),j.length!==0&&(C=j+"/"+C,R=j.charCodeAt(0)===47)}return C=O(C,!R),R?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(x){if(b(x),x.length===0)return".";var C=x.charCodeAt(0)===47,R=x.charCodeAt(x.length-1)===47;return(x=O(x,!C)).length!==0||C||(x="."),x.length>0&&R&&(x+="/"),C?"/"+x:x},isAbsolute:function(x){return b(x),x.length>0&&x.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var x,C=0;C<arguments.length;++C){var R=arguments[C];b(R),R.length>0&&(x===void 0?x=R:x+="/"+R)}return x===void 0?".":M.normalize(x)},relative:function(x,C){if(b(x),b(C),x===C||(x=M.resolve(x))===(C=M.resolve(C)))return"";for(var R=1;R<x.length&&x.charCodeAt(R)===47;++R);for(var q=x.length,j=q-R,N=1;N<C.length&&C.charCodeAt(N)===47;++N);for(var $=C.length-N,V=j<$?j:$,Re=-1,te=0;te<=V;++te){if(te===V){if($>V){if(C.charCodeAt(N+te)===47)return C.slice(N+te+1);if(te===0)return C.slice(N+te)}else j>V&&(x.charCodeAt(R+te)===47?Re=te:te===0&&(Re=0));break}var at=x.charCodeAt(R+te);if(at!==C.charCodeAt(N+te))break;at===47&&(Re=te)}var cn="";for(te=R+Re+1;te<=q;++te)te!==q&&x.charCodeAt(te)!==47||(cn.length===0?cn+="..":cn+="/..");return cn.length>0?cn+C.slice(N+Re):(N+=Re,C.charCodeAt(N)===47&&++N,C.slice(N))},_makeLong:function(x){return x},dirname:function(x){if(b(x),x.length===0)return".";for(var C=x.charCodeAt(0),R=C===47,q=-1,j=!0,N=x.length-1;N>=1;--N)if((C=x.charCodeAt(N))===47){if(!j){q=N;break}}else j=!1;return q===-1?R?"/":".":R&&q===1?"//":x.slice(0,q)},basename:function(x,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(x);var R,q=0,j=-1,N=!0;if(C!==void 0&&C.length>0&&C.length<=x.length){if(C.length===x.length&&C===x)return"";var $=C.length-1,V=-1;for(R=x.length-1;R>=0;--R){var Re=x.charCodeAt(R);if(Re===47){if(!N){q=R+1;break}}else V===-1&&(N=!1,V=R+1),$>=0&&(Re===C.charCodeAt($)?--$==-1&&(j=R):($=-1,j=V))}return q===j?j=V:j===-1&&(j=x.length),x.slice(q,j)}for(R=x.length-1;R>=0;--R)if(x.charCodeAt(R)===47){if(!N){q=R+1;break}}else j===-1&&(N=!1,j=R+1);return j===-1?"":x.slice(q,j)},extname:function(x){b(x);for(var C=-1,R=0,q=-1,j=!0,N=0,$=x.length-1;$>=0;--$){var V=x.charCodeAt($);if(V!==47)q===-1&&(j=!1,q=$+1),V===46?C===-1?C=$:N!==1&&(N=1):C!==-1&&(N=-1);else if(!j){R=$+1;break}}return C===-1||q===-1||N===0||N===1&&C===q-1&&C===R+1?"":x.slice(C,q)},format:function(x){if(x===null||typeof x!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof x);return(function(C,R){var q=R.dir||R.root,j=R.base||(R.name||"")+(R.ext||"");return q?q===R.root?q+j:q+"/"+j:j})(0,x)},parse:function(x){b(x);var C={root:"",dir:"",base:"",ext:"",name:""};if(x.length===0)return C;var R,q=x.charCodeAt(0),j=q===47;j?(C.root="/",R=1):R=0;for(var N=-1,$=0,V=-1,Re=!0,te=x.length-1,at=0;te>=R;--te)if((q=x.charCodeAt(te))!==47)V===-1&&(Re=!1,V=te+1),q===46?N===-1?N=te:at!==1&&(at=1):N!==-1&&(at=-1);else if(!Re){$=te+1;break}return N===-1||V===-1||at===0||at===1&&N===V-1&&N===$+1?V!==-1&&(C.base=C.name=$===0&&j?x.slice(1,V):x.slice($,V)):($===0&&j?(C.name=x.slice(1,N),C.base=x.slice(1,V)):(C.name=x.slice($,N),C.base=x.slice($,V)),C.ext=x.slice(N,V)),$>0?C.dir=x.slice(0,$-1):j&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};M.posix=M,k.exports=M}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var O=t[k]={exports:{}};return e[k](O,O.exports,n),O.exports}n.d=(k,b)=>{for(var O in b)n.o(b,O)&&!n.o(k,O)&&Object.defineProperty(k,O,{enumerable:!0,get:b[O]})},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:()=>Rn}),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 u="",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,O,M,x,C,R=!1){typeof b=="object"?(this.scheme=b.scheme||u,this.authority=b.authority||u,this.path=b.path||u,this.query=b.query||u,this.fragment=b.fragment||u):(this.scheme=(function(q,j){return q||j?q:"file"})(b,R),this.authority=O||u,this.path=(function(q,j){switch(q){case"https":case"http":case"file":j?j[0]!==d&&(j=d+j):j=d}return j})(this.scheme,M||u),this.query=x||u,this.fragment=C||u,c(this,R))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:O,authority:M,path:x,query:C,fragment:R}=b;return O===void 0?O=this.scheme:O===null&&(O=u),M===void 0?M=this.authority:M===null&&(M=u),x===void 0?x=this.path:x===null&&(x=u),C===void 0?C=this.query:C===null&&(C=u),R===void 0?R=this.fragment:R===null&&(R=u),O===this.scheme&&M===this.authority&&x===this.path&&C===this.query&&R===this.fragment?this:new T(O,M,x,C,R)}static parse(b,O=!1){let M=h.exec(b);return M?new T(M[2]||u,X(M[4]||u),X(M[5]||u),X(M[7]||u),X(M[9]||u),O):new T(u,u,u,u,u)}static file(b){let O=u;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let M=b.indexOf(d,2);M===-1?(O=b.substring(2),b=d):(O=b.substring(2,M),b=b.substring(M)||d)}return new T("file",O,b,u,u)}static from(b){let O=new T(b.scheme,b.authority,b.path,b.query,b.fragment);return c(O,!0),O}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let O=new T(b);return O._formatted=b.external,O._fsPath=b._sep===y?b.fsPath:null,O}}return b}}let y=i?1:void 0;class T 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 I={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(k,b,O){let M,x=-1;for(let C=0;C<k.length;C++){let R=k.charCodeAt(C);if(R>=97&&R<=122||R>=65&&R<=90||R>=48&&R<=57||R===45||R===46||R===95||R===126||b&&R===47||O&&R===91||O&&R===93||O&&R===58)x!==-1&&(M+=encodeURIComponent(k.substring(x,C)),x=-1),M!==void 0&&(M+=k.charAt(C));else{M===void 0&&(M=k.substr(0,C));let q=I[R];q!==void 0?(x!==-1&&(M+=encodeURIComponent(k.substring(x,C)),x=-1),M+=q):x===-1&&(x=C)}}return x!==-1&&(M+=encodeURIComponent(k.substring(x))),M!==void 0?M:k}function W(k){let b;for(let O=0;O<k.length;O++){let M=k.charCodeAt(O);M===35||M===63?(b===void 0&&(b=k.substr(0,O)),b+=I[M]):b!==void 0&&(b+=k[O])}return b!==void 0?b:k}function m(k,b){let O;return O=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&&(O=O.replace(/\//g,"\\")),O}function g(k,b){let O=b?W:K,M="",{scheme:x,authority:C,path:R,query:q,fragment:j}=k;if(x&&(M+=x,M+=":"),(C||x==="file")&&(M+=d,M+=d),C){let N=C.indexOf("@");if(N!==-1){let $=C.substr(0,N);C=C.substr(N+1),N=$.lastIndexOf(":"),N===-1?M+=O($,!1,!1):(M+=O($.substr(0,N),!1,!1),M+=":",M+=O($.substr(N+1),!1,!0)),M+="@"}C=C.toLowerCase(),N=C.lastIndexOf(":"),N===-1?M+=O(C,!1,!0):(M+=O(C.substr(0,N),!1,!0),M+=C.substr(N))}if(R){if(R.length>=3&&R.charCodeAt(0)===47&&R.charCodeAt(2)===58){let N=R.charCodeAt(1);N>=65&&N<=90&&(R=`/${String.fromCharCode(N+32)}:${R.substr(3)}`)}else if(R.length>=2&&R.charCodeAt(1)===58){let N=R.charCodeAt(0);N>=65&&N<=90&&(R=`${String.fromCharCode(N+32)}:${R.substr(2)}`)}M+=O(R,!0,!1)}return q&&(M+="?",M+=O(q,!1,!1)),j&&(M+="#",M+=b?j:K(j,!1,!1)),M}function S(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+S(k.substr(3)):k}}let Y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(Y)?k.replace(Y,(b=>S(b))):k}var st=n(975);let Ft=st.posix||st,an="/";var Rn;(function(k){k.joinPath=function(b,...O){return b.with({path:Ft.join(b.path,...O)})},k.resolvePath=function(b,...O){let M=b.path,x=!1;M[0]!==an&&(M=an+M,x=!0);let C=Ft.resolve(M,...O);return x&&C[0]===an&&!b.authority&&(C=C.substring(1)),b.with({path:C})},k.dirname=function(b){if(b.path.length===0||b.path===an)return b;let O=Ft.dirname(b.path);return O.length===1&&O.charCodeAt(0)===46&&(O=""),b.with({path:O})},k.basename=function(b){return Ft.basename(b.path)},k.extname=function(b){return Ft.extname(b.path)}})(Rn||(Rn={})),vl=r})();var{URI:gt,Utils:re}=vl;import{isBrowser as rb}from"@redocly/openapi-core";import{CONFIG_FILE_NAME as nb}from"@redocly/openapi-core";var ys={languageId:"yaml",filePattern:/\.ya?ml$/i},bs={languageId:"json",filePattern:/\.json$/i},hs=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[ys,bs];this.registerConfigFinder(async t=>{if(this._fs)try{let n=re.resolvePath(re.dirname(Ue(t)),nb);return await this._fs.exists(n)?Oe(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}},de=new hs;function vs(e,t){let n=r=>re.resolvePath(Ue(Et(r))).toString();return n(e)===n(t)}function Ue(e){return gt.parse(e)}function Et(e){return e.startsWith("file://")?e:gt.file(e).toString()}function Oe(e){let t=gt.parse(e).fsPath;return rb&&t.startsWith("/")?t.slice(1):t}function gr(e){let t=["https","http"],{scheme:n}=gt.parse(e);return t.includes(n)}function mr(e){return re.basename(Ue(e))}async function Pl(e,t="/"){let n=re.resolvePath(Ue(t));for(;e.path!=="/";)try{(await de.fs.stat(re.resolvePath(n,e.path))).isDirectory()||(e=re.dirname(e));break}catch{e=re.dirname(e)}return e}import{BaseResolver as UP,Source as Jp,readFileFromUrl as WP,isAbsoluteUrl as Gs}from"@redocly/openapi-core";var ti=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=Cl(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),u=this._lineOffsets,d=xl(r.text,!1,o);if(c-a===d.length)for(let v=0,y=d.length;v<y;v++)u[v+a+1]=d[v];else d.length<1e4?u.splice(a+1,c-a,...d):this._lineOffsets=u=u.slice(0,a+1).concat(d,u.slice(c+1));let h=r.text.length-(s-o);if(h!==0)for(let v=a+1+d.length,y=u.length;v<y;v++)u[v]=u[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=xl(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&&_l(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}},ni;(function(e){function t(i,o,s,a){return new ti(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof ti)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=Ps(o.map(ib),(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,u=[];for(let d of a){let h=i.offsetAt(d.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&u.push(s.substring(c,h)),d.newText.length&&u.push(d.newText),c=i.offsetAt(d.range.end)}return u.push(s.substr(c)),u.join("")}e.applyEdits=r})(ni||(ni={}));function Ps(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);Ps(r,t),Ps(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 xl(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);_l(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function _l(e){return e===13||e===10}function Cl(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 ib(e){let t=Cl(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var gi=qe(qn(),1),Gp=new Map;function Qp(e,t){return Gp.set(e,t)}function Ks(e){let t=[];for(let[n,r]of Gp.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Qe(e){let t=de.documents.get(e);if(t)return t;let n=await de.fs.readFile(Ue(e),"utf-8");return ni.create(e,"yaml",1,n)}function Pr(e){return bs.filePattern.test(e)}function mi(e){return ys.filePattern.test(e)}function gn({uri:e,ast:t,textDocument:n}){if(!(mi(e)&&/entit(y|ies)\.ya?ml$/i.test(e)))return!1;if(n){let i=n.getText();t=gi.safeLoad(i,{filename:e})}if(t?.kind===gi.Kind.MAP){let i=["openapi","swagger","asyncapi","arazzo"];for(let o of t.mappings){let s=o.key?.value;if(i.includes(s))return!1}}return!0}var yt=class extends UP{resolveExternalRef(t,n){return Gs(n)?n:t&&Gs(t)?new URL(n,t).href:t?re.resolvePath(re.dirname(Ue(Et(t))),n).toString():n}async loadExternalRef(t){if(gr(t)){let{body:i,mimeType:o}=await WP(t,{...this.config.http,customFetch:fetch});return new Jp(t,i,o)}let n=Et(t),r=Gs(t)?Oe(t):t;return new Jp(r,(await Qe(n)).getText())}};var Ot;async function hi(e,t){try{let n=new yt,r=e?await de.findConfig(e):void 0;if(r===void 0){let i=await BP(r,n);return Ot=await Xp(zP,{externalRefResolver:n,ignore:i}),Ot}Ot=await HP({configPath:r,externalRefResolver:n})}catch(n){t?.createEventHandleLoadConfigError?.(n?.message),Ot=await Xp({})}return Ot}async function On(e){return Ot||await hi(e)}async function mn(e){return await Qs(e)?!0:!!Ot?.resolvedRefMap&&[...Ot.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>vs(mr(Et(e)),n))}async function Qs(e){let t=await de.findConfig(e);return t?vs(e,t):!1}function YP(e){return e.endsWith($P)}var dd={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:dd,additionalProperties:!1},VP={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},_r={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:{...dd,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:VP},additionalProperties:!1}},additionalProperties:!1},KP={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},ta={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},xi={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:_r,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ta,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:KP,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Mn={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},GP={type:"object",properties:{name:{type:"string"},items:Mn,queries:Mn,mutations:Mn,subscriptions:Mn,types:Mn,directives:Mn},required:["name"],additionalProperties:!1},QP={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:GP},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},JP={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},XP={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},ZP={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:JP,license:XP},additionalProperties:!1},_i={type:"object",properties:{menu:{type:"object",properties:{...QP.properties},additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:ta,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:_r,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},info:ZP},additionalProperties:!1},ex={type:"object",properties:{downloadUrls:ta,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:_r,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},tx={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},nx={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"}}},Zp={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},rx={type:"object",properties:{beforeInfo:{type:"array",items:Zp},end:{type:"array",items:Zp}}},hn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},yi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},ix={type:"object",properties:Si(hn.properties,["light","dark"])},ox={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"}}},sx={type:"object",properties:{error:yi,info:yi,redirect:yi,success:yi}},ax={type:"object",properties:jn(hn.properties,["dark"])},cx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},ux={type:"object",properties:{accent:hn,border:ix,error:hn,http:ox,primary:hn,responses:sx,secondary:ax,success:hn,text:cx,tonalOffset:{type:"number"},warning:hn}},bi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},lx={type:"object",properties:{small:bi,medium:bi,large:bi,xlarge:bi}},Ct={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},px={type:"object",properties:{...jn(Ct.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:lx}},ed={type:"object",properties:Si(Ct.properties,["fontSize","lineHeight"])},dx={type:"object",properties:{medium:ed,small:ed}},fx={type:"object",properties:{...jn(Ct.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:dx}},gx={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},mx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},td={type:"object",properties:{fullWidth:{type:"boolean"}}},hx={type:"object",properties:{buttons:px,httpBadges:fx,layoutControls:gx,panels:mx,tryItButton:td,tryItSendButton:td}},Ci={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},yx={type:"object",properties:{maxWidth:Ci}},bx={type:"object",properties:{maxWidth:Ci,middlePanelMaxWidth:Ci}},vx={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:yx,"three-panel":bx}},nd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Px={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:nd,defaultDetailsWidth:{type:"string"},examples:nd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},fd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},xx={type:"object",properties:Si(fd.properties,["textTransform"])},_x={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Cx={type:"object",properties:{...jn(Ct.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:fd,level1items:xx,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:_x,textColor:{type:"string"},width:{type:"string"}}},vi={type:"object",properties:{...Ct.properties,color:{type:"string"},transform:{type:"string"}}},Dx={type:"object",properties:{...Ct.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"}}},Rx={type:"object",properties:jn(Ct.properties,["fontSize"])},Tx={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},wx={type:"object",properties:{code:Dx,fieldName:Ct,...Si(Ct.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:vi,heading2:vi,heading3:vi,headings:Rx,lineHeight:{type:"string"},links:Tx,optimizeSpeed:{type:"boolean"},rightPanelHeading:vi,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},Sx={type:"object",properties:{color:{type:"string"},...jn(Ct.properties,["fontWeight"])}},kx={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:Sx}},Ax={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},Ex={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},rd={type:"object",properties:{custom:{type:"string"}}},Nx={type:"object",properties:{DownloadButton:rd,NextSectionButton:rd}},qx={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},Ox={type:"object",properties:{borderRadius:{type:"string"}}},Mx={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},jx={type:"object",properties:{breakpoints:Ci,codeBlock:kx,colors:ux,components:hx,layout:vx,logo:Ax,fab:Ex,overrides:Nx,rightPanel:qx,schema:Px,shape:Ox,sidebar:Cx,spacing:Mx,typography:wx,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},Lx={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:tx}},required:["languages"]},gd={type:"object",properties:{theme:jx,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:Lx,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:nx,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:rx,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 Si(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function jn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var bt={nodeTypeName:void 0,type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules"};var Ix={rules:bt,oas2Rules:bt,oas3_0Rules:bt,oas3_1Rules:bt,oas3_2Rules:bt,async2Rules:bt,async3Rules:bt,arazzo1Rules:bt,overlay1Rules:bt,openrpc1Rules:bt};var vt={nodeTypeName:void 0,type:"object",additionalProperties:!0},Fx={preprocessors:vt,oas2Preprocessors:vt,oas3_0Preprocessors:vt,oas3_1Preprocessors:vt,oas3_2Preprocessors:vt,async2Preprocessors:vt,async3Preprocessors:vt,arazzo1Preprocessors:vt,overlay1Preprocessors:vt,openrpc1Preprocessors:vt},Pt={nodeTypeName:void 0,type:"object",additionalProperties:!0};var Ux={decorators:Pt,oas2Decorators:Pt,oas3_0Decorators:Pt,oas3_1Decorators:Pt,oas3_2Decorators:Pt,async2Decorators:Pt,async3Decorators:Pt,arazzo1Decorators:Pt,overlay1Decorators:Pt,openrpc1Decorators:Pt},Wx={nodeTypeName:void 0,type:"array",items:{type:"string"},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends"},ki={...Ix,...Ux,...Fx,extends:Wx},md=e=>e,_t=md({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),we={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},id={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},Js={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"}},additionalProps:{type:"object",additionalProperties:!0}}},na={type:"array",items:{...Js,properties:{...Js.properties,items:{type:"array",items:Js}}}},Hx={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Bx={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},zx={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}},$x={type:"object",properties:{facets:zx,...we.properties},additionalProperties:!1},Yx={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},hd={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},yd={type:"object",properties:{items:na,...we.properties},additionalProperties:!1},bd={type:"object",additionalProperties:Hx},vd={type:"object",properties:{items:na,copyrightText:{type:"string"},logo:we,...we.properties},additionalProperties:!1},Pd={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"},...we.properties},additionalProperties:!1},xd={type:"object",properties:{head:{type:"array",items:id},body:{type:"array",items:id}},additionalProperties:!1},_d={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}},Cd={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:Bx,filters:$x,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:Yx},...we.properties},additionalProperties:!1},Dd={type:"object",properties:{hide:{type:"boolean"},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean",default:!1},inputType:{type:"string",enum:["button","icon"],default:"button"},inputIcon:{type:"string",enum:["chat","sparkles","redocly"],default:"sparkles"}},additionalProperties:!1}},additionalProperties:!1},Rd={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]},...we.properties},additionalProperties:!1},ra={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},Vx={type:"object",properties:{...we.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]},default:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}},additionalProperties:!1},Td={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...we.properties},additionalProperties:!1,default:{}},previousButton:{type:"object",properties:{text:{type:"string"},...we.properties},additionalProperties:!1,default:{}},actions:Vx},additionalProperties:!1},wd={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:{...we.properties},additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...we.properties},additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:{...we.properties},additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:{...we.properties},additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},Sd={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["**/_partials/**"]},lastUpdatedBlock:{type:"object",properties:{format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"},...we.properties},additionalProperties:!1,default:{}},toc:{type:"object",properties:{header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1},...we.properties},additionalProperties:!1,default:{}},editPage:{type:"object",properties:{baseUrl:{type:"string"},...we.properties},additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},Di={...xi,properties:{...xi.properties,...gd.properties}},LT={...xi,properties:{...xi.properties,...gd.properties}},Kx={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Gx={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"]},Qx={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},Jx={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Xx={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"]},Zx={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},e0={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"]},kd={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"]},t0={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:kd}},additionalProperties:!1,required:["trackingId"]},Ad={type:"object",properties:{adobe:Kx,amplitude:Gx,fullstory:Qx,heap:Jx,rudderstack:Xx,segment:Zx,gtm:e0,ga:t0}},Ed={type:"object",properties:{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"},...we.properties},additionalProperties:!1},Nd={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},qd={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},n0={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"}}}},r0={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:n0},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:na,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Ri={type:"object",patternProperties:{".*":r0}},Ti={nodeTypeName:_t.ScorecardClassic,description:"Add and create sets of rules and test your API description files against them. With these rules you can maintain quality across your existing APIs and ensure that newly-added or updated APIs match your criteria. An API scorecard can include multiple sets of rules, corresponding to different quality levels.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic",type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{nodeTypeName:_t.ScorecardClassicTeamMetadataProperty,description:"Provide custom team label and team metadata property.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#team-metadata-object",type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{nodeTypeName:_t.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:_t.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...ki},additionalProperties:!1}},targets:{nodeTypeName:_t.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:_t.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:_t.ScorecardClassicTargetWhere,description:"Specify which API descriptions to apply the `minimumLevel` to based on the metadata.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#where-object",type:"object",required:["metadata"],properties:{metadata:{nodeTypeName:_t.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},i0={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},o0={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},s0={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},Mt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:o0},excludes:{type:"array",items:i0},filters:{type:"array",items:s0},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},a0={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},c0={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:a0},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},u0={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:c0,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},l0={type:"object",additionalProperties:u0},Od={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:l0,catalogs:{type:"object",properties:{all:Mt,services:Mt,domains:Mt,teams:Mt,users:Mt,apiDescriptions:Mt,dataSchemas:Mt,apiOperations:Mt},additionalProperties:Mt}},additionalProperties:!1},od={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},ia={type:"string",enum:["and","or"]},Xs={type:"object",properties:{field:{type:"string"},operator:od,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:od,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},p0={type:"object",properties:{operator:ia,conditions:{type:"array",items:Xs}},required:["operator","conditions"],additionalProperties:!1},sd={type:"array",items:{oneOf:[Xs,{type:"object",properties:{operator:ia,conditions:{type:"array",items:{oneOf:[Xs,p0]}}},required:["operator","conditions"],additionalProperties:!1}]}},Md={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{}},additionalProperties:!1},d0={type:"array",items:{type:"object",properties:{subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},assertions:Md},required:["subject","assertions"],additionalProperties:!1}},f0={type:"object",properties:{title:{type:"string"},subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},severity:{type:"string",enum:["error","warn","off"]},message:{type:"string"},assertions:Md,where:d0,weight:{type:"number",default:1}},required:["subject","assertions"],additionalProperties:!1},g0={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number",default:1}},additionalProperties:!0},f0]}},m0={type:"object",properties:{name:{type:"string"},extends:ki.extends,rules:g0},required:["name"],additionalProperties:!1},ad={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},h0={oneOf:[ad,{type:"array",items:ad}]},y0={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[sd,{type:"object",properties:{operator:ia,conditions:sd},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:m0,minItems:1},trigger:h0},required:["name","key","entities","levels"],additionalProperties:!1},jd={type:"array",items:y0},xt={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:hd,navbar:yd,products:bd,footer:vd,sidebar:Pd,scripts:xd,links:_d,feedback:_r,search:Cd,aiAssistant:Dd,colorMode:Rd,palette:ra,navigation:Td,codeSnippet:wd,markdown:Sd,openapi:Di,asyncapi:ex,graphql:_i,analytics:Ad,userMenu:Ed,versionPicker:Nd,breadcrumbs:qd,catalog:Ri,entitiesCatalog:Od,catalogClassic:Ri,scorecard:Ti,scorecardClassic:Ti,scorecards:jd},additionalProperties:!0},b0="https://redocly.com/sso/teams",v0=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(v0||{}),P0=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(P0||{});var x0=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(x0||{});function Zs(e,t,n){return Object.fromEntries(Object.entries(e).map(([r,i])=>{if(!(r===t&&n!=="properties"))return typeof i!="object"||!i?[r,i]:Array.isArray(i)?[r,i.map(o=>typeof o=="object"?Zs(o,t,r):o)]:[r,Zs(i,t,r)]}).filter(Boolean))}var _0={type:"object",additionalProperties:{type:"string"}},C0={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Pi={type:"string",enum:["error","warn","off"]},D0={type:"object",additionalProperties:!1,properties:{schemaCheck:Pi,statusCodeCheck:Pi,contentTypeCheck:Pi,successCriteriaCheck:Pi}},R0={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},T0={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},w0={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},S0={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:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[R0,T0]},inputs:_0,servers:C0,severity:D0,slo:w0},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},k0={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},A0={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:k0,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},E0={type:"object",properties:{type:{type:"string",const:"SAML2"},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:b0},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},N0={oneOf:[A0,E0],discriminator:{propertyName:"type"}},q0={type:"object",additionalProperties:N0},Ld={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},Id={type:"boolean"},Fd={type:"string",pattern:"^https?://.*"},Ud={type:"string",pattern:"^https?://.*"},O0={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1,nodeTypeName:_t.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},M0={type:"object",additionalProperties:O0,default:{},nodeTypeName:_t.Redirects,description:"Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.",documentationLink:"https://redocly.com/docs/realm/config/redirects"},j0={type:"string",enum:["info","success","warning","error"],default:"info"},ee={type:"object",additionalProperties:{type:"string"}},L0={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean",default:!1},target:{type:"string"},color:j0,rbac:ee},required:["content"],additionalProperties:!1},I0={type:"array",items:L0,default:[]},Wd={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:ee,openapi:Di,graphql:_i,theme:{type:"object",properties:{openapi:Di,graphql:_i},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...ki},required:["root"]},F0={type:"object",additionalProperties:!0},U0={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},cd={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},ud={type:"object",properties:{title:{type:"string"},projectTitle:{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:cd},default:{llmstxt:cd.default},additionalProperties:!1},W0={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},H0={type:"object",properties:{catalogs:{type:"object",properties:{all:ee,services:ee,domains:ee,teams:ee,users:ee,apiDescriptions:ee,dataSchemas:ee,apiOperations:ee},additionalProperties:ee},entitiesTypes:{type:"object",properties:{service:ee,domain:ee,team:ee,user:ee,apiDescription:ee,apiOperation:ee,dataSchema:ee},additionalProperties:ee},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:ee},additionalProperties:!1}},entities:{type:"object",properties:{"**":ee},additionalProperties:ee}},additionalProperties:!1},Hd={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:ee,cms:ee,reunite:ee,features:{type:"object",properties:{aiSearch:ee},additionalProperties:!1},content:{type:"object",properties:{"**":ee},additionalProperties:ee},entitiesCatalog:H0},additionalProperties:ee},B0={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},z0={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},$0={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:[B0,z0]}},additionalProperties:!1,required:["type","apiBaseUrl"]},Y0={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},V0={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},ea={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:[Y0,V0],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},K0={...ea,properties:{...ea.properties,type:{type:"string",const:"APIGEE_EDGE"}}},G0={type:"object",oneOf:[ea,K0,$0],discriminator:{propertyName:"type"}},Q0={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:G0}}},ld={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"]},J0={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},X0={type:"object",properties:{hide:{type:"boolean",default:!1},docs:{type:"object",properties:{hide:{type:"boolean",default:!1},name:{type:"string",default:"Docs MCP server"},ignore:{type:"array",items:{type:"string"},default:[]}},additionalProperties:!1}},additionalProperties:!1,default:{hide:!1,docs:{hide:!1,name:"MCP server",ignore:[]}}},Z0={type:"object",properties:{requiresLogin:Id,logoutReturnUrl:Fd,residency:Ud,sso:Ld,rbac:Hd},additionalProperties:!1},wi={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:M0,seo:ud,rbac:Hd,apiFunctions:W0,requiresLogin:Id,responseHeaders:{type:"object",additionalProperties:{type:"array",items:J0}},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:Wd},...ki,ssoDirect:q0,sso:Ld,residency:Ud,logoutReturnUrl:Fd,access:Z0,developerOnboarding:Q0,removeAttribution:{type:"boolean"},i18n:ld,l10n:ld,metadata:F0,metadataGlobs:U0,ignore:{type:"array",items:{type:"string"}},theme:xt,reunite:S0,logo:hd,navbar:yd,products:bd,footer:vd,sidebar:Pd,scripts:xd,links:_d,feedback:_r,search:Cd,aiAssistant:Dd,colorMode:Rd,palette:ra,navigation:Td,codeSnippet:wd,markdown:Sd,openapi:Di,graphql:_i,analytics:Ad,userMenu:Ed,versionPicker:Nd,breadcrumbs:qd,catalog:Ri,entitiesCatalog:Od,catalogClassic:Ri,scorecard:Ti,scorecardClassic:Ti,scorecards:jd,mcp:X0,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:I0},default:{redirects:{},seo:ud.default},additionalProperties:!0},e_={...Zs(wi,"default"),additionalProperties:!1},Bd={$id:"root-redocly-config",...wi,properties:{plugins:{type:"array",items:{type:"string"}},...wi.properties,env:{type:"object",additionalProperties:e_}},default:{},additionalProperties:!1},pd={type:"object",properties:{logo:xt.properties.logo,navbar:xt.properties.navbar,footer:xt.properties.footer,sidebar:xt.properties.sidebar,search:xt.properties.search,codeSnippet:xt.properties.codeSnippet,breadcrumbs:xt.properties.breadcrumbs,openapi:xt.properties.openapi,feedback:xt.properties.feedback,palette:ra,mockServer:wi.properties.mockServer,analytics:{type:"object",properties:{ga:kd}}},additionalProperties:!0,default:{}},IT={$id:"product-config-override",type:"object",properties:{...pd.properties,apis:{type:"object",additionalProperties:Wd},theme:pd},additionalProperties:!1},t_=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy","returns","returnedBy"],Pe=md({UserEntity:"UserEntity",UserEntityMetadata:"UserEntityMetadata",ApiDescriptionEntity:"ApiDescriptionEntity",ApiDescriptionEntityMetadata:"ApiDescriptionEntityMetadata",ApiOperationEntity:"ApiOperationEntity",ApiOperationEntityMetadata:"ApiOperationEntityMetadata",DataSchemaEntity:"DataSchemaEntity",DataSchemaEntityMetadata:"DataSchemaEntityMetadata",ServiceEntity:"ServiceEntity",DomainEntity:"DomainEntity",TeamEntity:"TeamEntity",Entity:"Entity",EntityMetadata:"EntityMetadata",EntityLinkList:"EntityLinkList",EntityLink:"EntityLink",EntityRelation:"EntityRelation",EntityRelationList:"EntityRelationList",EntityContact:"EntityContact",EntitySlackContact:"EntitySlackContact",EntitySlackChannel:"EntitySlackChannel"}),n_={type:"object",nodeTypeName:Pe.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},r_={type:"object",nodeTypeName:Pe.ApiDescriptionEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},i_={type:"object",nodeTypeName:Pe.ApiOperationEntityMetadata,properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},o_={type:"object",nodeTypeName:Pe.DataSchemaEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0},s_={type:"object",properties:{},nodeTypeName:Pe.EntityMetadata,additionalProperties:!0},a_={type:"object",nodeTypeName:Pe.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},c_={type:"object",nodeTypeName:Pe.EntitySlackContact,properties:{channels:{type:"array",items:a_}},required:["channels"],additionalProperties:!1},u_={type:"object",nodeTypeName:Pe.EntityContact,properties:{slack:c_},additionalProperties:!1},l_={type:"object",nodeTypeName:Pe.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},p_={type:"object",nodeTypeName:Pe.EntityRelation,properties:{type:{type:"string",enum:t_},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},zt={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:u_,links:{type:"array",nodeTypeName:Pe.EntityLinkList,items:l_},relations:{type:"array",nodeTypeName:Pe.EntityRelationList,items:p_},metadata:s_},Ai={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...zt,type:{const:"user"},metadata:n_},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Pe.UserEntity},{type:"object",nodeTypeName:Pe.ApiOperationEntity,properties:{...zt,type:{const:"api-operation"},metadata:i_},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.DataSchemaEntity,properties:{...zt,type:{const:"data-schema"},metadata:o_},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.ApiDescriptionEntity,properties:{...zt,type:{const:"api-description"},metadata:r_},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.ServiceEntity,properties:{...zt,type:{const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.DomainEntity,properties:{...zt,type:{const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.TeamEntity,properties:{...zt,type:{const:"team"}},required:["key","title","type"],additionalProperties:!1}]},Ei={type:"object",nodeTypeName:Pe.Entity,properties:{...zt},required:["key","title","type"],additionalProperties:!1};var We=qe(rn(),1);import{getLineColLocation as TD,lintDocument as wD,makeDocumentFromString as ts,lintConfig as SD,lintEntityFile as kD,detectSpec as AD,createConfigTypes as ED}from"@redocly/openapi-core";var Zo=qe(qn(),1);function sy(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(u){let d=i.get(u.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(u.uri,setTimeout(()=>a(u),t-h));else if(r.delete(u.uri),i.delete(u.uri),!n){let v=s.get(u.uri),y=e(o.get(u.uri));v&&v.forEach(({resolve:T})=>T(y)),s.delete(u.uri)}}catch(v){let y=s.get(u.uri);y&&y.forEach(({reject:T})=>T(v)),s.delete(u.uri)}}function c(u){let d=r.get(u.uri),h=n&&!d;return i.set(u.uri,Date.now()),o.set(u.uri,u),new Promise((v,y)=>{let T=s.get(u.uri)||[];d||(s.set(u.uri,[...T,{resolve:v,reject:y}]),r.set(u.uri,setTimeout(()=>a(u),t))),h?v(e(o.get(u.uri))):s.set(u.uri,[...T,{resolve:v,reject:y}])})}return c}function Ju(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 ay(e){return e==="$ref"}function Xu(e,t){return e?re.dirname(gt.file(e)).toString():t}async function Zu(e,t){let n=gt.parse(t);return re.joinPath(n,e).toString()}async function cy(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await Zu(i,n)===t)return r}function uy(e){return typeof e=="string"}function zr(e){return typeof e=="function"}function ly(e){return e?.kind===Zo.Kind.MAP}function el(e){return e?.kind===Zo.Kind.MAPPING}function tl(e){return e?.kind===Zo.Kind.SEQ}function $r(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}import{bundleDocument as dD,isPlainObject as fD,makeDocumentFromString as gD,getTypes as mD,detectSpec as hD}from"@redocly/openapi-core";var py=new Map,es=new Map;function yD(e){return e?Array.from(e).map(([t,n])=>[t,Ju(n)]):[]}async function nl(e,t){let n=await On(),r=new yt(n.resolve),i=gD(e.getText(),e.uri),{bundle:o,rootType:s,refTypes:a}=await dD({document:i,config:n,externalRefResolver:r,types:mD(hD(i.parsed))}),c=yD(a);a&&(es=new Map([...es,...a])),py.set(e.uri,{uri:e.uri,name:mr(e.uri),definition:fD(o.parsed)?o.parsed:{},rootType:s,refTypes:c,errors:t})}function bD(){return Array.from(py).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:mr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function rl(e){return es.has(e)?es.get(e):null}import{createConfig as dy,lintDocument as vD,loadIgnoreConfig as PD,regexFromString as xD}from"@redocly/openapi-core";async function fy(e,t,n,r,i,o){let s=[],a=await PD(r,t),c=typeof i=="string"?await _D(i):i,u={};if(n.targets?.length){let d=e.parsed?.info,h=d?.["x-metadata"]||{},v={title:d?.title,version:d?.version,...h,...o},y=DD(n.targets,v);y?.rules&&r&&(u=await CD(e.source.absoluteRef,y.rules,n.levels,c,r,a))}for(let d of n?.levels||[]){let h=u[d.name]??await dy({...d,plugins:c},{configPath:r,ignore:a}),v=await vD({document:e,externalRefResolver:t,config:h});s.push(...v.filter(({ignored:y})=>!y).map(y=>({...y,scorecardLevel:d.name})))}return s}async function _D(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
|
+
Plugins code preview:`,e.substring(0,500)+"..."),[]}}async function CD(e,t,n=[],r=[],i,o){let s={};for(let a of n){let c={[a.name]:{root:e,rules:t}},u=await dy({apis:c,...a,plugins:r},{configPath:i,...o&&{ignore:o}});s[a.name]=u.forAlias(a.name)}return s}function DD(e,t){if(e){for(let n of e)if(Object.entries(n.where?.metadata||{}).every(([i,o])=>RD(i,o,t)))return n}}function RD(e,t,n){if(t.match(/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}Z)?\/(\d{4}-\d{2}-\d{2})?$/)){if(!n[e])return!1;let[r,i]=t.split("/"),o=new Date(n[e]);return isNaN(o.getTime())?!1:!(o<new Date(r)||i&&o>new Date(i))}else if(t.match(/^\/.*\//)){if(!n[e])return!1;try{return xD(t).test(n[e])}catch(r){return console.error(`Invalid regex in scorecard target: ${t}`,r),!1}}return n[e]===t}var ND=800,ol=sy(jD,ND);async function qD(e){let t=e.map(({documentPath:o})=>Ue(o).toString()),n=await On(),r=await de.getRootWorkspaceFolderURI(),i=Xu(n.configPath,r);for(let{root:o}of Object.values(n.resolvedConfig.apis??{})){let s=await Zu(o,i);if(t.includes(s))return s}return t[0]}function OD(e){try{return AD(e),!0}catch{return!1}}async function MD(e){try{let t=ts(e.getText(),e.uri),n=new yt,r=await kD({document:t,entitySchema:Ai,entityDefaultSchema:Ei,externalRefResolver:n}),i=[{uri:e.uri,diagnostics:[]}];return il(r,i),i}catch{return[{uri:e.uri,diagnostics:[]}]}}async function jD(e){let t=e.uri,n=await On();if(await mn(Oe(t)))try{let r=await Qs(Oe(t))?ts(e.getText(),t):ts(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new yt,o=await SD({config:{document:r},externalRefResolver:i,externalConfigTypes:ED(Bd,n)}),s=[{uri:e.uri,diagnostics:[]}];return il(o,s),s}catch{return[{uri:e.uri,diagnostics:[]}]}else{if(gn({uri:Oe(t),textDocument:e}))return await MD(e);{let r=Ks(t),i=await qD(r||[]);i&&(e=await Qe(i),t=i);let o;try{o=ts(e.getText(),Oe(t))}catch{return[{uri:e.uri,diagnostics:[]}]}if(!OD(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new yt(n.resolve),c=await de.getRootWorkspaceFolderURI(),u=Xu(n.configPath,c),d=await cy(n.resolvedConfig.apis??{},e.uri,u),h=Date.now(),v=[],y=[];try{y=(await wD({document:o,config:n.forAlias(d),externalRefResolver:a})).filter(({ignored:S})=>!S);let W=de.remoteScorecardAndPlugins?.scorecard||n.resolvedConfig.scorecardClassic||n.resolvedConfig.scorecard,m=d?n.resolvedConfig.apis?.[d]?.metadata:void 0,g=W&&de.scorecardStatus==="enabled"?await fy(o,a,W,n.configPath,de.remoteScorecardAndPlugins?.plugins,m):[];v=[...y,...g]}catch(W){v.push({ruleId:"struct",suggest:[],severity:"error",message:`Error linting document: ${W.message}`,location:[{start:{line:1,col:1},end:{line:1,col:1},source:o.source}]})}let T=UD(y);nl(e,T);let I=Date.now()-h;s=[...new Set([e.uri,...[...a.getFiles()].map(W=>Ue(W).toString())])].map(W=>({uri:W,diagnostics:[]})),Qp(t,{dependencyPaths:a.getFiles(),durationMS:I}),il(v,s)}catch(a){LD(e.uri,a,s)}return s}}}function Yr(){return de.documents.all().map(ol)}function LD(e,t,n){let r=n||[{uri:e,diagnostics:[]}];if(t.line&&t.col&&t.message){let i=t.source?.absoluteRef?Et(t.source.absoluteRef):e,o=t.line-1,s=t.col-1,a=We.Position.create(o,s),c=We.Diagnostic.create(We.Range.create(a,a),t.message,We.DiagnosticSeverity.Error);gy(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function gy(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 ID(e){return e.suggest.length===0?"":e.suggest.length===1?`
|
|
71
71
|
Did you mean: ${e.suggest[0]} ?`:`
|
|
72
72
|
Did you mean:
|
|
73
73
|
- ${e.suggest.join(`
|
|
74
|
-
- `)}`}function
|
|
75
|
-
Scorecard level: ${e.scorecardLevel}`:""}function jl(e,t){e.forEach(n=>{let r;switch(n.severity){case"error":r=We.DiagnosticSeverity.Error;break;case"warn":r=We.DiagnosticSeverity.Warning;break;default:r=We.DiagnosticSeverity.Warning}let i=DS(n.location[0]),o=Nt(i.source.absoluteRef),s=We.Position.create(i.start.line-1,i.start.col-1),a=i.end?We.Position.create(i.end.line-1,i.end.col-1):s,c=n.message+` Rule: ${n.ruleId}.`+FS(n)+US(n),u=We.Diagnostic.create(We.Range.create(s,a),c,r,void 0,"Redocly OpenAPI");Py(o,u,t)})}function WS(e){return e.filter(({severity:t})=>t==="error").map(t=>({...t,location:t.location.map(n=>({...n,source:{...n.source,_ast:null}}))}))}var Ms=Oe(on(),1);var he=Oe(on(),1);function Se(e,t){return e?t?Ds[e+"_"+t]||t:Ds[e]||Ds.Default:Ds.Default}var BS=["newLine","MediaTypeMap","PathMap","propertyName","newItem","Root_openapi","Root","Info","Root_info","Info_title","Info_summary","Info_description","Info_termsOfService","Info_contact","Contact_name","Contact_url","Contact_email","Info_license","License_name","License_identifier","License_url","Info_version","Root_jsonSchemaDialect","jsonSchemaDialect","Root_servers","Server_List","Server_url","Server_description","Server_variables","Root_paths","Root_webhooks","Root_components","Root_security","Root_tags","Root_externalDocs","LocalComponentCompletion","FolderCompletion","FileCompletion","Default"],Ds=BS.reduce((e,t,n)=>(e[t]=String.fromCharCode(n),e),{});var sn="newItem",ii="propertyName",vr="newLine";function ws(e){return!!(e?.name&&Cy[e.name])}function Ll(e){return Cy[e]||[]}var Cy={[vr]:[{label:"newLine",kind:he.CompletionItemKind.Constructor,data:{},sortText:Se(vr)}],[ii]:[{label:ii,kind:he.CompletionItemKind.Constructor,data:{properties:{}},sortText:Se(ii)}],ServerVariable_Map:[{label:"newVariableName",kind:he.CompletionItemKind.Property,data:{properties:{}},sortText:Se("ServerVariable_Map")}],ResponsesMap:[{label:"200",kind:he.CompletionItemKind.Property,data:{properties:{}}},{label:"201",kind:he.CompletionItemKind.Property,data:{properties:{}}},{label:"204",kind:he.CompletionItemKind.Property,data:{properties:{}}},{label:"301",kind:he.CompletionItemKind.Property,data:{properties:{}}},{label:"303",kind:he.CompletionItemKind.Property,data:{properties:{}}},{label:"400",kind:he.CompletionItemKind.Property,data:{properties:{}}},{label:"401",kind:he.CompletionItemKind.Property,data:{properties:{}}},{label:"403",kind:he.CompletionItemKind.Property,data:{properties:{}}},{label:"404",kind:he.CompletionItemKind.Property,data:{properties:{}}},{label:"500",kind:he.CompletionItemKind.Property,data:{properties:{}}},{label:"503",kind:he.CompletionItemKind.Property,data:{properties:{}}}],PathMap:[{label:"/newPath",kind:he.CompletionItemKind.Property,data:{properties:{}},sortText:Se("PathMap")}],MediaTypeMap:[{label:"mime/type",kind:he.CompletionItemKind.Property,data:{properties:{}},sortText:Se("MediaTypeMap")},{label:"application/json",kind:he.CompletionItemKind.Property,data:{properties:{}},sortText:Se("MediaTypeMap")},{label:"application/octet-stream",kind:he.CompletionItemKind.Property,data:{properties:{}},sortText:Se("MediaTypeMap")},{label:"multipart/form-data",kind:he.CompletionItemKind.Property,data:{properties:{}},sortText:Se("MediaTypeMap")},{label:"application/x-www-form-urlencoded",kind:he.CompletionItemKind.Property,data:{properties:{}},sortText:Se("MediaTypeMap")},{label:"application/xml",kind:he.CompletionItemKind.Property,data:[],sortText:Se("MediaTypeMap")}]};import{Oas2Types as HS,Oas3Types as zS,Oas3_1Types as $S,Oas3_2Types as _y,AsyncApi2Types as YS,AsyncApi3Types as VS,Arazzo1Types as KS,ConfigTypes as GS,normalizeTypes as Fl,getMajorSpecVersion as QS,createEntityTypes as JS}from"@redocly/openapi-core";var ft=Oe(jn(),1);var Il=new Map;async function Ul(e,t){let n=await Qe(e),r=n.getText(),i=ft.safeLoad(r,{filename:e}),{nodePath:o}=ks({node:i,nodePath:[]},t,n,!0),s=await Wl(i,e),{version:a}=Hl(i),{currentType:c,parentType:u,endPath:d}=As(s,o,i),h=oi(i),v=c?.name?c:u;return{nodePath:o,endPath:d,type:v,existingValues:h,types:s,descriptionVersion:a}}async function XS(e){let n=(await Qe(e)).getText(),r=ft.safeLoad(n,{filename:e});return Bl(r)}function Sy(e,t){if(!e)return null;let n=e,r=!0;return t.forEach(i=>{if(r=!1,Nl(n)&&n.items&&n.items[i])n=n.items[i],r=!0;else if(yy(n)){let o=Es(n);for(let s of o)if(El(s)&&s.key?.value===i){n=s?.value,r=!0;break}}}),r?n:(console.warn("Cannot find node by path",t),null)}function ZS(e,t){for(let n=0;n<t.length;n++)if(n===t.length-1||t[n+1]>e)return n;return t.length-1}function ks(e,t,n,r=!1){let{node:i,nodePath:o=[]}=e,s=n.offsetAt(t),a=Es(i);if(a.length===0||eT(i)||!r&&tT(i,n,t))return e;let c=nT(a,s);return ks({nodePath:rT(o,i,a[c],c),node:a[c]},t,n,r)}function eT(e){return e?.kind===ft.Kind.MAPPING&&!e?.value}function tT(e,t,n){let r=t.getText({start:t.positionAt(t._lineOffsets[n.line]),end:n}),i=iT(e,t),o=r?.match(/^\s+/)?.[0]?.length||0;return(/^\s*[\w\-\$\/\{\}]+$/.test(r)?o:n.character)===i}function nT(e,t){for(let n=1;n<e.length;n++){let r=e[n];if(r&&r.startPosition>t)return n-1}return e.length-1}function rT(e,t,n,r){return Nl(t)?[...e,r]:El(n)&&n?.key?.value&&typeof n.key.value=="string"?[...e,n.key.value]:e}function iT(e,t){let n=e?.startPosition??0,r=ZS(n,t._lineOffsets);if(r>=0){let i=t._lineOffsets[r];return n-i}return 0}function As(e,t,n){let r=e,i,o=new Array(t.length).fill(null);t.forEach((a,c)=>{let u;if(e?.name&&e?.name!==r?.name&&(r=e,i=a),e&&e?.properties&&!Object.keys(e?.properties).length&&e?.items){if(e.items.properties)u=e.items;else if(ti(e.items)){let d=oT(n,typeof t[0]=="number"?t[0]:0);u=e.items(d,a)}}else if(e?.properties&&e.properties[a])u=e.properties[a],ti(u)&&(u=u(null,a));else if(e?.additionalProperties&&!ti(e?.additionalProperties))u=e.additionalProperties;else if(ti(e?.additionalProperties)&&a){let d=e.additionalProperties(null,a);d&&(u=d)}u&&(e=u,o[c]=u)}),e?.name&&r?.name&&e?.name!==r?.name&&(i=void 0);let s=o.every(a=>!!a);return{currentType:s||t[0]==="openapi"||t.length===0?e:null,parentType:s?r:null,endPath:i}}function oT(e,t){let n={};if(e.kind===ft.Kind.SEQ&&e.items?.[t]){let r=e.items?.[t]?.mappings??[];for(let i of r)i.key?.value&&(n[i.key?.value]=i.value?.value)}return n}async function Wl(e,t){if(await hn(t)||await hn(qe(t)))return Fl(GS).ConfigRoot;if(mn({uri:t,ast:e})||mn({uri:qe(t),ast:e})){let{entityTypes:o}=JS(to,no),s=Fl(o);if(e?.kind===ft.Kind.SEQ)return s.EntityFileArray;let a=sT(e);return a&&s[a]?s[a]:s.EntityFileDefault}let{types:n,isDefault:r}=cT(e);if(!e)return n;let i=r?ql(t):n;return r&&!ql(t)&&e?null:i||n}function sT(e){let t="type";return e?.mappings?.find(n=>n.key?.value===t&&n.value?.value)?.value?.value}function aT(e){if(Il.has(e))return Il.get(e);let t=Fl(uT(e)).Root;return Il.set(e,t),t}function Bl(e){let t,n=!1;if(e?.kind===ft.Kind.MAP)for(let r of e.mappings){let i=r.key?.value,o=String(r?.value?.value);if(i==="openapi"&&o.startsWith("3.2")){t="oas3_2";break}if(i==="openapi"&&o.startsWith("3.1")){t="oas3_1";break}if(i==="openapi"&&o.startsWith("3.0")){t="oas3_0";break}if(i==="swagger"&&o==="2.0"){t="oas2";break}if(i==="asyncapi"&&o.startsWith("2."))return{version:"async2",isDefault:!1};if(i==="asyncapi"&&o.startsWith("3."))return{version:"async3",isDefault:!1};if(i==="arazzo")return{version:"arazzo1",isDefault:!1}}return t||(t="oas3_2",n=!0),{version:t,isDefault:n}}function Hl(e){let{version:t,isDefault:n}=Bl(e);return{version:QS(t),isDefault:n}}function cT(e){let{version:t,isDefault:n}=Bl(e);return{types:aT(t),isDefault:n}}function Es(e){switch(e?.kind){case ft.Kind.MAPPING:return[e.key,e.value];case ft.Kind.MAP:return e.mappings;case ft.Kind.SEQ:return e?.items;default:return[]}}function uT(e){switch(e){case"oas3_2":return _y;case"oas3_1":return $S;case"oas3_0":return zS;case"oas2":return HS;case"async2":return YS;case"async3":return VS;case"arazzo1":return KS;default:return _y}}function oi(e,t,n){if(typeof t>"u"&&(t={}),typeof n>"u"&&(n=0),!e)return{};let r=e?.mappings||e?.items;if(r){let i=0;for(let o of r)o?.value===null||!o?.value?.value?t[o?.key?.value||i]={value:hy(o?.value)?o?.value:null,startOffset:o?.key?.value?o.startPosition+o.key.value.length+1:null,endOffset:null,indent:n}:t[o?.key?.value||i]={value:o?.value?.value,rawValue:o?.value?.rawValue||null,startOffset:o?.value?.startPosition||null,endOffset:o?.value?.endPosition||null,indent:n},Object.keys(o?.value||o||{}).includes("items")?(t[o?.key?.value||i]={type:"sequence",startOffset:o.startPosition,endOffset:o.endPosition,indent:n,value:null},oi(o?.value||o,t[o?.key?.value||i],n+1)):Object.keys(o?.value||o||{}).includes("mappings")&&(t[o?.key?.value||i]={type:"map",startOffset:o.startPosition,endOffset:o.endPosition,indent:n,value:null},oi(o?.value||o,t[o?.key?.value||i],n+1)),i++}return t}import{mapTypeToComponent as Ty}from"@redocly/openapi-core";var zl={Schema:[{name:"$ref",value:{type:"string",name:"Schema"}}],PathItem:[{name:"$ref",value:{type:"string",name:"PathItem"}}],Parameter:[{name:"$ref",value:{type:"string",name:"Parameter"}}],Response:[{name:"$ref",value:{type:"string",name:"Response"}}],Example:[{name:"$ref",value:{type:"string",name:"Example"}}],RequestBody:[{name:"$ref",value:{type:"string",name:"RequestBody"}}],Header:[{name:"$ref",value:{type:"string",name:"Header"}}],SecuritySchema:[{name:"$ref",value:{type:"string",name:"SecuritySchema"}}],Link:[{name:"$ref",value:{type:"string",name:"Link"}}],Callback:[{name:"$ref",value:{type:"string",name:"Callback"}}]};function Ry(e){let t=zl[e.name];if(t&&e.properties)for(let n of t)e.properties[n.name]=n.value;return e}var Ns=Oe(on(),1),gt=class{constructor({kind:t,label:n,value:r,textEdit:i,filterText:o,sortText:s,data:a}){this.kind=t||Ns.CompletionItemKind.Value,this.label=n;let{node:c,lineOffset:u,position:d}=a;this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.textEdit=i||(c?.value&&d&&u?this.getTextEdit(c,d,u):void 0)}getTextEdit(t,n,r){let i=t.startPosition-r,o=t.singleQuoted||t.doubleQuoted?2:0,s=i+t.value.length+o;return Ns.TextEdit.replace({start:{line:n.line,character:i},end:{line:n.line,character:s}},this.insertText)}};var xr=Oe(on(),1),Rn=class{constructor({kind:t,label:n,insertText:r,insertTextFormat:i,filterText:o,sortText:s,data:a}){this.insertTextFormat=i||n.includes("$")?xr.InsertTextFormat.PlainText:xr.InsertTextFormat.Snippet,this.kind=t||xr.CompletionItemKind.Property,this.label=n,this.data=a||{},this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.command=this.kind===xr.CompletionItemKind.Property?{title:"Suggested values",command:"editor.action.triggerSuggest"}:void 0}};var si={example:"example",default:"default",enum:"enum",ref:"$ref"},Os=[si.default,si.example];var Ay=Oe(jn(),1);var ke={};Fs(ke,{default:()=>ky.default});Us(ke,Oe($l()));var ky=Oe($l());function pT(e,t,n){let r=t.slice(0,t.length-1),{currentType:i}=As(e,r,n);if(i?.name){let[o]=zl[i.name]||[];return o?.value}return null}function dT(e,t,n){let r=t[t.length-1];if(gy(r))return pT(e,t,n);let{currentType:i}=As(e,t,n);return i?ws(i)?i:i?.name&&(i?.name.includes("Map")||i?.name.includes("Named"))?{name:ii,properties:{}}:i:null}async function Ey(e,t){let n=await Qe(e),r=n.getText(),i=(0,Ay.safeLoad)(r,{filename:e}),{node:o,nodePath:s}=ks({node:i,nodePath:[]},t,n),a=await Wl(i,e),c=dT(a,s,i),u=n._lineOffsets[t.line],d=n.getText({start:n.positionAt(u),end:t});return{currentAst:i,node:o,nodePath:s,position:t,lineText:d,lineOffset:u,openApiType:c}}async function Ny(e,t){let n=re.resolvePath(Ue(e)),r=re.dirname(n),i=await Jl(re.joinPath(r,t),r.path),o=re.resolvePath(r,i.path);return{refPath:t,refDirPath:i,refDirAbsolutePath:o,isAbsolutePath:t?(0,ke.isAbsolute)(t):!1,docAbsolutePath:n,docAbsoluteDirPath:r,root:"/"}}var Oy=Oe(on(),1);var qs=class extends gt{constructor(t){super(t),this.kind=Oy.CompletionItemKind.Folder,this.command={title:"Complete path",command:"editor.action.triggerSuggest",arguments:[]}}};var qy=Oe(on(),1);var js=class extends gt{constructor(t){super(t),this.kind=qy.CompletionItemKind.File}};var gT=de.supportedLanguages.concat({languageId:"markdown",filePattern:/\.md$/});function mT(e){let{refPath:t,docAbsoluteDirPath:n,isAbsolutePath:r,root:i}=e,o=(0,ke.resolve)(n.path,t,".."),s=r?o:(0,ke.relative)(n.path,o),a=s&&s!==i?"/":"";return{name:"../",type:1,matchBy:t,sortBy:Se("FolderCompletion"),value:`${s}${a}`}}async function hT(e,t,n){let r=[],{refDirAbsolutePath:i,docAbsolutePath:o}=n;for(let s of e)try{let a=re.resolvePath(i,s),c=await de.fs.stat(a);c.isFile()&&a.path!==o.path&&t.supportedFiles.some(u=>u.filePattern.test(s))&&r.push({name:s,type:0}),c.isDirectory()&&r.push({name:s,type:1})}catch{continue}return r}function jy(e,t){let{docAbsoluteDirPath:n,isAbsolutePath:r,refDirAbsolutePath:i,root:o,refPath:s}=t,a=[];return i.path!==o&&a.push(mT(t)),a.concat(e.map(({name:c,type:u})=>{let d=(0,ke.resolve)(i.path,c),h=(0,ke.relative)(n.path,d),v=s.includes(ke.sep)?s.slice(0,s.lastIndexOf(ke.sep)+1):s+ke.sep,y=r?d:h;if(u===0)return{type:u,name:c,value:y,sortBy:`${Se("FileCompletion")}${c}`,matchBy:`${v}${c}`};let R=`${c}/`;return{type:u,name:R,value:`${y}${h?"/":""}`,sortBy:`${Se("FolderCompletion")}${c}`,matchBy:`${v}${c}`}}))}function My(e,t){let{node:n,lineOffset:r,position:i}=t;return e.map(o=>{let{name:s,value:a,matchBy:c,sortBy:u,type:d}=o,h={label:s,filterText:ni(c,n),sortText:u,value:a,data:{lineOffset:r,position:i,node:n}};return d===1?new qs(h):new js(h)})}async function Ly(e,t){let{node:n}=t,r=n.value??"",i=await Ny(e,r),{refDirAbsolutePath:o}=i,s=[];try{s=await de.fs.readDir(o)}catch{return My(jy([],i),t)}let a=await hT(s,{supportedFiles:gT},i);return My(jy(a,i),t)}import{isEmptyObject as yT}from"@redocly/openapi-core";function Iy(e,t){if(t?.items)return"- "+Iy(e,t.items);if(t?.required)return Object.values(t.required).map((n,r)=>`${n}: \${${r+1}}`).join(`
|
|
76
|
-
`)
|
|
74
|
+
- `)}`}function FD(e){return e.scorecardLevel?`
|
|
75
|
+
Scorecard level: ${e.scorecardLevel}`:""}function il(e,t){e.forEach(n=>{let r;switch(n.severity){case"error":r=We.DiagnosticSeverity.Error;break;case"warn":r=We.DiagnosticSeverity.Warning;break;default:r=We.DiagnosticSeverity.Warning}let i=TD(n.location[0]),o=Et(i.source.absoluteRef),s=We.Position.create(i.start.line-1,i.start.col-1),a=i.end?We.Position.create(i.end.line-1,i.end.col-1):s,c=n.message+` Rule: ${n.ruleId}.`+ID(n)+FD(n),u=We.Diagnostic.create(We.Range.create(s,a),c,r,void 0,"Redocly OpenAPI");gy(o,u,t)})}function UD(e){return e.filter(({severity:t})=>t==="error").map(t=>({...t,location:t.location.map(n=>({...n,source:{...n.source,_ast:null}}))}))}var ps=qe(rn(),1);var me=qe(rn(),1);function De(e,t){return e?t?ns[e+"_"+t]||t:ns[e]||ns.Default:ns.Default}var WD=["newLine","MediaTypeMap","PathMap","propertyName","newItem","Root_openapi","Root","Info","Root_info","Info_title","Info_summary","Info_description","Info_termsOfService","Info_contact","Contact_name","Contact_url","Contact_email","Info_license","License_name","License_identifier","License_url","Info_version","Root_jsonSchemaDialect","jsonSchemaDialect","Root_servers","Server_List","Server_url","Server_description","Server_variables","Root_paths","Root_webhooks","Root_components","Root_security","Root_tags","Root_externalDocs","LocalComponentCompletion","FolderCompletion","FileCompletion","Default"],ns=WD.reduce((e,t,n)=>(e[t]=String.fromCharCode(n),e),{});var on="newItem",Vr="propertyName",ur="newLine";function rs(e){return!!(e?.name&&my[e.name])}function sl(e){return my[e]||[]}var my={[ur]:[{label:"newLine",kind:me.CompletionItemKind.Constructor,data:{},sortText:De(ur)}],[Vr]:[{label:Vr,kind:me.CompletionItemKind.Constructor,data:{properties:{}},sortText:De(Vr)}],ServerVariable_Map:[{label:"newVariableName",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:De("ServerVariable_Map")}],ResponsesMap:[{label:"200",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"201",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"204",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"301",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"303",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"400",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"401",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"403",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"404",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"500",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"503",kind:me.CompletionItemKind.Property,data:{properties:{}}}],PathMap:[{label:"/newPath",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:De("PathMap")}],MediaTypeMap:[{label:"mime/type",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:De("MediaTypeMap")},{label:"application/json",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:De("MediaTypeMap")},{label:"application/octet-stream",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:De("MediaTypeMap")},{label:"multipart/form-data",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:De("MediaTypeMap")},{label:"application/x-www-form-urlencoded",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:De("MediaTypeMap")},{label:"application/xml",kind:me.CompletionItemKind.Property,data:[],sortText:De("MediaTypeMap")}]};import{Oas2Types as HD,Oas3Types as BD,Oas3_1Types as zD,Oas3_2Types as hy,AsyncApi2Types as $D,AsyncApi3Types as YD,Arazzo1Types as VD,ConfigTypes as KD,normalizeTypes as cl,getMajorSpecVersion as GD,createEntityTypes as QD}from"@redocly/openapi-core";var pt=qe(qn(),1);var al=new Map;async function ul(e,t){let n=await Qe(e),r=n.getText(),i=pt.safeLoad(r,{filename:e}),{nodePath:o}=is({node:i,nodePath:[]},t,n,!0),s=await ll(i,e),{version:a}=dl(i),{currentType:c,parentType:u,endPath:d}=os(s,o,i),h=Kr(i),v=c?.name?c:u;return{nodePath:o,endPath:d,type:v,existingValues:h,types:s,descriptionVersion:a}}async function JD(e){let n=(await Qe(e)).getText(),r=pt.safeLoad(n,{filename:e});return pl(r)}function yy(e,t){if(!e)return null;let n=e,r=!0;return t.forEach(i=>{if(r=!1,tl(n)&&n.items&&n.items[i])n=n.items[i],r=!0;else if(ly(n)){let o=ss(n);for(let s of o)if(el(s)&&s.key?.value===i){n=s?.value,r=!0;break}}}),r?n:(console.warn("Cannot find node by path",t),null)}function XD(e,t){for(let n=0;n<t.length;n++)if(n===t.length-1||t[n+1]>e)return n;return t.length-1}function is(e,t,n,r=!1){let{node:i,nodePath:o=[]}=e,s=n.offsetAt(t),a=ss(i);if(a.length===0||ZD(i)||!r&&eR(i,n,t))return e;let c=tR(a,s);return is({nodePath:nR(o,i,a[c],c),node:a[c]},t,n,r)}function ZD(e){return e?.kind===pt.Kind.MAPPING&&!e?.value}function eR(e,t,n){let r=t.getText({start:t.positionAt(t._lineOffsets[n.line]),end:n}),i=rR(e,t),o=r?.match(/^\s+/)?.[0]?.length||0;return(/^\s*[\w\-\$\/\{\}]+$/.test(r)?o:n.character)===i}function tR(e,t){for(let n=1;n<e.length;n++){let r=e[n];if(r&&r.startPosition>t)return n-1}return e.length-1}function nR(e,t,n,r){return tl(t)?[...e,r]:el(n)&&n?.key?.value&&typeof n.key.value=="string"?[...e,n.key.value]:e}function rR(e,t){let n=e?.startPosition??0,r=XD(n,t._lineOffsets);if(r>=0){let i=t._lineOffsets[r];return n-i}return 0}function os(e,t,n){let r=e,i,o=new Array(t.length).fill(null);t.forEach((a,c)=>{let u;if(e?.name&&e?.name!==r?.name&&(r=e,i=a),e&&e?.properties&&!Object.keys(e?.properties).length&&e?.items){if(e.items.properties)u=e.items;else if(zr(e.items)){let d=iR(n,typeof t[0]=="number"?t[0]:0);u=e.items(d,a)}}else if(e?.properties&&e.properties[a])u=e.properties[a],zr(u)&&(u=u(null,a));else if(e?.additionalProperties&&!zr(e?.additionalProperties))u=e.additionalProperties;else if(zr(e?.additionalProperties)&&a){let d=e.additionalProperties(null,a);d&&(u=d)}u&&(e=u,o[c]=u)}),e?.name&&r?.name&&e?.name!==r?.name&&(i=void 0);let s=o.every(a=>!!a);return{currentType:s||t[0]==="openapi"||t.length===0?e:null,parentType:s?r:null,endPath:i}}function iR(e,t){let n={};if(e.kind===pt.Kind.SEQ&&e.items?.[t]){let r=e.items?.[t]?.mappings??[];for(let i of r)i.key?.value&&(n[i.key?.value]=i.value?.value)}return n}async function ll(e,t){if(await mn(t)||await mn(Oe(t)))return cl(KD).ConfigRoot;if(gn({uri:t,ast:e})||gn({uri:Oe(t),ast:e})){let{entityTypes:o}=QD(Ai,Ei),s=cl(o);if(e?.kind===pt.Kind.SEQ)return s.EntityFileArray;let a=oR(e);return a&&s[a]?s[a]:s.EntityFileDefault}let{types:n,isDefault:r}=aR(e);if(!e)return n;let i=r?rl(t):n;return r&&!rl(t)&&e?null:i||n}function oR(e){let t="type";return e?.mappings?.find(n=>n.key?.value===t&&n.value?.value)?.value?.value}function sR(e){if(al.has(e))return al.get(e);let t=cl(cR(e)).Root;return al.set(e,t),t}function pl(e){let t,n=!1;if(e?.kind===pt.Kind.MAP)for(let r of e.mappings){let i=r.key?.value,o=String(r?.value?.value);if(i==="openapi"&&o.startsWith("3.2")){t="oas3_2";break}if(i==="openapi"&&o.startsWith("3.1")){t="oas3_1";break}if(i==="openapi"&&o.startsWith("3.0")){t="oas3_0";break}if(i==="swagger"&&o==="2.0"){t="oas2";break}if(i==="asyncapi"&&o.startsWith("2."))return{version:"async2",isDefault:!1};if(i==="asyncapi"&&o.startsWith("3."))return{version:"async3",isDefault:!1};if(i==="arazzo")return{version:"arazzo1",isDefault:!1}}return t||(t="oas3_2",n=!0),{version:t,isDefault:n}}function dl(e){let{version:t,isDefault:n}=pl(e);return{version:GD(t),isDefault:n}}function aR(e){let{version:t,isDefault:n}=pl(e);return{types:sR(t),isDefault:n}}function ss(e){switch(e?.kind){case pt.Kind.MAPPING:return[e.key,e.value];case pt.Kind.MAP:return e.mappings;case pt.Kind.SEQ:return e?.items;default:return[]}}function cR(e){switch(e){case"oas3_2":return hy;case"oas3_1":return zD;case"oas3_0":return BD;case"oas2":return HD;case"async2":return $D;case"async3":return YD;case"arazzo1":return VD;default:return hy}}function Kr(e,t,n){if(typeof t>"u"&&(t={}),typeof n>"u"&&(n=0),!e)return{};let r=e?.mappings||e?.items;if(r){let i=0;for(let o of r)o?.value===null||!o?.value?.value?t[o?.key?.value||i]={value:uy(o?.value)?o?.value:null,startOffset:o?.key?.value?o.startPosition+o.key.value.length+1:null,endOffset:null,indent:n}:t[o?.key?.value||i]={value:o?.value?.value,rawValue:o?.value?.rawValue||null,startOffset:o?.value?.startPosition||null,endOffset:o?.value?.endPosition||null,indent:n},Object.keys(o?.value||o||{}).includes("items")?(t[o?.key?.value||i]={type:"sequence",startOffset:o.startPosition,endOffset:o.endPosition,indent:n,value:null},Kr(o?.value||o,t[o?.key?.value||i],n+1)):Object.keys(o?.value||o||{}).includes("mappings")&&(t[o?.key?.value||i]={type:"map",startOffset:o.startPosition,endOffset:o.endPosition,indent:n,value:null},Kr(o?.value||o,t[o?.key?.value||i],n+1)),i++}return t}import{mapTypeToComponent as by}from"@redocly/openapi-core";var fl={Schema:[{name:"$ref",value:{type:"string",name:"Schema"}}],PathItem:[{name:"$ref",value:{type:"string",name:"PathItem"}}],Parameter:[{name:"$ref",value:{type:"string",name:"Parameter"}}],Response:[{name:"$ref",value:{type:"string",name:"Response"}}],Example:[{name:"$ref",value:{type:"string",name:"Example"}}],RequestBody:[{name:"$ref",value:{type:"string",name:"RequestBody"}}],Header:[{name:"$ref",value:{type:"string",name:"Header"}}],SecuritySchema:[{name:"$ref",value:{type:"string",name:"SecuritySchema"}}],Link:[{name:"$ref",value:{type:"string",name:"Link"}}],Callback:[{name:"$ref",value:{type:"string",name:"Callback"}}]};function vy(e){let t=fl[e.name];if(t&&e.properties)for(let n of t)e.properties[n.name]=n.value;return e}var as=qe(rn(),1),dt=class{constructor({kind:t,label:n,value:r,textEdit:i,filterText:o,sortText:s,data:a}){this.kind=t||as.CompletionItemKind.Value,this.label=n;let{node:c,lineOffset:u,position:d}=a;this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.textEdit=i||(c?.value&&d&&u?this.getTextEdit(c,d,u):void 0)}getTextEdit(t,n,r){let i=t.startPosition-r,o=t.singleQuoted||t.doubleQuoted?2:0,s=i+t.value.length+o;return as.TextEdit.replace({start:{line:n.line,character:i},end:{line:n.line,character:s}},this.insertText)}};var lr=qe(rn(),1),Dn=class{constructor({kind:t,label:n,insertText:r,insertTextFormat:i,filterText:o,sortText:s,data:a}){this.insertTextFormat=i||n.includes("$")?lr.InsertTextFormat.PlainText:lr.InsertTextFormat.Snippet,this.kind=t||lr.CompletionItemKind.Property,this.label=n,this.data=a||{},this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.command=this.kind===lr.CompletionItemKind.Property?{title:"Suggested values",command:"editor.action.triggerSuggest"}:void 0}};var Gr={example:"example",default:"default",enum:"enum",ref:"$ref"},cs=[Gr.default,Gr.example];var Cy=qe(qn(),1);var ke={};gs(ke,{default:()=>_y.default});ms(ke,qe(gl()));var _y=qe(gl());function lR(e,t,n){let r=t.slice(0,t.length-1),{currentType:i}=os(e,r,n);if(i?.name){let[o]=fl[i.name]||[];return o?.value}return null}function pR(e,t,n){let r=t[t.length-1];if(ay(r))return lR(e,t,n);let{currentType:i}=os(e,t,n);return i?rs(i)?i:i?.name&&(i?.name.includes("Map")||i?.name.includes("Named"))?{name:Vr,properties:{}}:i:null}async function Dy(e,t){let n=await Qe(e),r=n.getText(),i=(0,Cy.safeLoad)(r,{filename:e}),{node:o,nodePath:s}=is({node:i,nodePath:[]},t,n),a=await ll(i,e),c=pR(a,s,i),u=n._lineOffsets[t.line],d=n.getText({start:n.positionAt(u),end:t});return{currentAst:i,node:o,nodePath:s,position:t,lineText:d,lineOffset:u,openApiType:c}}async function Ry(e,t){let n=re.resolvePath(Ue(e)),r=re.dirname(n),i=await Pl(re.joinPath(r,t),r.path),o=re.resolvePath(r,i.path);return{refPath:t,refDirPath:i,refDirAbsolutePath:o,isAbsolutePath:t?(0,ke.isAbsolute)(t):!1,docAbsolutePath:n,docAbsoluteDirPath:r,root:"/"}}var Ty=qe(rn(),1);var us=class extends dt{constructor(t){super(t),this.kind=Ty.CompletionItemKind.Folder,this.command={title:"Complete path",command:"editor.action.triggerSuggest",arguments:[]}}};var wy=qe(rn(),1);var ls=class extends dt{constructor(t){super(t),this.kind=wy.CompletionItemKind.File}};var fR=de.supportedLanguages.concat({languageId:"markdown",filePattern:/\.md$/});function gR(e){let{refPath:t,docAbsoluteDirPath:n,isAbsolutePath:r,root:i}=e,o=(0,ke.resolve)(n.path,t,".."),s=r?o:(0,ke.relative)(n.path,o),a=s&&s!==i?"/":"";return{name:"../",type:1,matchBy:t,sortBy:De("FolderCompletion"),value:`${s}${a}`}}async function mR(e,t,n){let r=[],{refDirAbsolutePath:i,docAbsolutePath:o}=n;for(let s of e)try{let a=re.resolvePath(i,s),c=await de.fs.stat(a);c.isFile()&&a.path!==o.path&&t.supportedFiles.some(u=>u.filePattern.test(s))&&r.push({name:s,type:0}),c.isDirectory()&&r.push({name:s,type:1})}catch{continue}return r}function Sy(e,t){let{docAbsoluteDirPath:n,isAbsolutePath:r,refDirAbsolutePath:i,root:o,refPath:s}=t,a=[];return i.path!==o&&a.push(gR(t)),a.concat(e.map(({name:c,type:u})=>{let d=(0,ke.resolve)(i.path,c),h=(0,ke.relative)(n.path,d),v=s.includes(ke.sep)?s.slice(0,s.lastIndexOf(ke.sep)+1):s+ke.sep,y=r?d:h;if(u===0)return{type:u,name:c,value:y,sortBy:`${De("FileCompletion")}${c}`,matchBy:`${v}${c}`};let T=`${c}/`;return{type:u,name:T,value:`${y}${h?"/":""}`,sortBy:`${De("FolderCompletion")}${c}`,matchBy:`${v}${c}`}}))}function ky(e,t){let{node:n,lineOffset:r,position:i}=t;return e.map(o=>{let{name:s,value:a,matchBy:c,sortBy:u,type:d}=o,h={label:s,filterText:$r(c,n),sortText:u,value:a,data:{lineOffset:r,position:i,node:n}};return d===1?new us(h):new ls(h)})}async function Ay(e,t){let{node:n}=t,r=n.value??"",i=await Ry(e,r),{refDirAbsolutePath:o}=i,s=[];try{s=await de.fs.readDir(o)}catch{return ky(Sy([],i),t)}let a=await mR(s,{supportedFiles:fR},i);return ky(Sy(a,i),t)}import{isEmptyObject as hR,isPlainObject as yR}from"@redocly/openapi-core";function Ey(e,t){let n=t?.items;return yR(n)?"- "+Ey(e,n):t?.required?Object.values(t.required).map((r,i)=>`${r}: \${${i+1}}`).join(`
|
|
76
|
+
`):""}function bR(e,t,n,r){if(e===on)return"";if(r?.items||r?.required){let i=`
|
|
77
77
|
`;return n.includes(`
|
|
78
78
|
`)&&(i+=" "),i}return n.includes(`
|
|
79
|
-
`)||!t?"":" "}function
|
|
80
|
-
`:e?.includes(":")&&!e?.includes(": ")?" ":""}function
|
|
79
|
+
`)||!t?"":" "}function vR(e){return e===on?"":": "}function PR(e){return e?.includes(":")||e?.includes(": ")?`
|
|
80
|
+
`:e?.includes(":")&&!e?.includes(": ")?" ":""}function xR(e,t){return!t||hR(t)?"":e.includes(`
|
|
81
81
|
`)?`
|
|
82
82
|
`:`
|
|
83
|
-
`}function
|
|
84
|
-
`;let r=
|
|
83
|
+
`}function Qr(e,t,n=!0){if(e===ur)return`
|
|
84
|
+
`;let r=PR(t?.lineText),i=vR(e),o=e===on?"":e,s=Ey(e,t),a=bR(e,s,r,t),c=n?xR(r,t?.properties):" ";return`${r}${o}${i}${a}${s}${c}`}function _R(e,t){let{version:n}=dl(e),r=by(t,n);if(!r)return[];let i=yy(e,["components",r]);return i?(ss(i.value||i)||[]).map(({key:{value:s}})=>`#/components/${r}/${s}`):[]}function CR(e){let{node:t,position:n,lineOffset:r}=e,i=cs.includes(t.key?.value)?t:cs.includes(t.parent?.key?.value)?t.parent:null;return i?i?.parent?.mappings?.find(({key:s})=>s?.value===Gr.enum)?.value?.items?.map(({value:s})=>new dt({label:s,data:{node:t,position:n,lineOffset:r}}))||[]:[]}async function DR(e,t){let{position:n,openApiType:r,currentAst:i,lineOffset:o,node:s}=t,a=r?.name?_R(i,r.name):[];return[...await Ay(e,t),...a.map(u=>{let d=$r(u,s);return new dt({label:u,filterText:$r(u,s),value:d,sortText:`${De("LocalComponentCompletion")}${u}`,data:{lineOffset:o,position:n,node:s}})})]}function RR(e){let{openApiType:t,node:n,position:r,lineOffset:i}=e;return t?.enum?t.enum.map(o=>new dt({label:o,kind:ps.CompletionItemKind.EnumMember,data:{node:n,position:r,lineOffset:i}})):[]}function TR(e){let{node:t,position:n,lineOffset:r}=e;return["true","false"].map(i=>new dt({label:i,data:{node:t,position:n,lineOffset:r}}))}function wR(e){let{currentAst:t,nodePath:n,node:r,openApiType:i,lineText:o}=e,s=kR(t,n,r);return AR(i,s,o)}async function SR(e,t){let{node:n,nodePath:r,openApiType:i}=t;if(!n)return[];let o=n.key?.value||(r.length?r[r.length-1]:null);return o&&i?.name&&Gr.ref===o?DR(e,t):cs.includes(o)?CR(t):i?.enum?RR(t):i?.type==="boolean"?TR(t):[]}async function Ny(e,t){let n=await Dy(e,t);return n.openApiType?.properties?wR(n):SR(e,n)}function kR(e,t,n){if(!e)return[];let i=Kr(e);for(let a=0;a<t.length;a++)i[t[a]]&&(i=i[t[a]]);let o=i?Object.keys(i).filter(a=>i[a]&&typeof i[a]=="object"):[],s=n?.value?.mappings||n?.mappings;if(s){let a=s.map(c=>c.key?.value);o.push(...a)}return!o.length&&n?.value&&o.push(n.value),o}function AR(e,t,n){if(!e)return[];if(vy(e),rs(e))return sl(e?.name).filter(r=>!t.includes(r.label)).map(r=>new Dn({...r,insertText:Qr(r.label,{...r.data,...e,lineText:n})}));if(e.properties&&Object.keys(e.properties).length){let r=Object.keys(e.properties).filter(i=>!t.includes(i)).map(i=>{let o={...e?.properties?.[i]||{},lineText:n};return new Dn({label:i,kind:ps.CompletionItemKind.Property,insertText:Qr(i,o,!o?.items),sortText:De(e?.name,i)})});return n.endsWith(":")&&r.push(...sl(ur).map(i=>new Dn({...i,insertText:Qr(i.label,{...i.data,lineText:n})}))),r}return e.items&&Object.keys(e.items).length?[new Dn({label:on,kind:ps.CompletionItemKind.Constructor,insertText:Qr(on,{...e,lineText:n}),sortText:De(on)})]:[]}var It=qe(Xo(),1);var sn=qe(qn(),1);import{getAstNodeByPointer as ER}from"@redocly/openapi-core";async function NR({position:e,textDocument:t,value:n,line:r,document:i}){let[o,s]=n.split("#/"),a=r.indexOf(n),c=a+n.length;if(e.character>=a&&a!==-1){let u=o?re.joinPath(re.dirname(gt.parse(i.uri)),o).toString():t.uri,d;try{d=await Qe(u)}catch{return}let h=(0,sn.safeLoad)(d.getText(),{filename:Oe(u)}),v=ER(h,`#/${s}`,!0),y=It.Range.create(d.positionAt(v?.startPosition||0),d.positionAt(v?.endPosition||0));return[It.LocationLink.create(u,It.Range.create(0,0,d.lineCount,0),y,It.Range.create(It.Position.create(e.line,a),It.Position.create(e.line,c)))]}}async function qy({position:e,textDocument:t}){let n;try{n=await Qe(t.uri)}catch{return}let o=n.getText().split(/\r\n|[\n\r]/g)[e.line],s=(0,sn.safeLoad)(o,{filename:Oe(t.uri)}),a;switch(s.kind){case sn.Kind.SCALAR:{a=s.parent||{value:{value:s?.value}};break}case sn.Kind.MAP:{a=s?.mappings?.[0];break}case sn.Kind.SEQ:{let u=s?.items?.[0];a=u?.kind===sn.Kind.MAP?u?.mappings?.[0]:{value:{value:u?.value}};break}default:a=null}let c=a?.value?.value;if(c&&!gr(c))return NR({position:e,textDocument:t,value:c,line:o,document:n})}var jy=qe(Xo(),1);function Oy({nodePath:e,propertyTypeName:t,typeName:n,documentationLink:r}){let i=e.join(" \u203A "),o=r&&r.trim()?`
|
|
85
85
|
|
|
86
86
|
[Documentation](${r})
|
|
87
87
|
`:"";return`${n&&t&&n!==t?`\`type\` **${n}** \u203A \`property\` **${t}**`:`\`type\` **${t}**`}${o}
|
|
88
88
|
|
|
89
89
|
*${i}*
|
|
90
|
-
`}function
|
|
91
|
-
`)}async function
|
|
90
|
+
`}function My(e){if(!e)return"";let t=e.nodePath.map(a=>String(a)),n=e.type,r=n?.name;if(!n||!r)return"";let i=n?.properties,o=e?.endPath?i?.[e.endPath]:n;return typeof o=="function"||e.types?.name==="ConfigRoot"&&r.startsWith("rootRedoclyConfigSchema.")?"":[Oy({nodePath:t,propertyTypeName:e.endPath?e.endPath:r,typeName:e.endPath?r:void 0,documentationLink:o?.documentationLink}),o?.description??""].join(`
|
|
91
|
+
`)}async function Ly(e){try{let t=e.textDocument.uri;if(!mi(t)&&!Pr(t))return null;let n=e.position;if(!qR(n,t))return null;let r=await ul(t,n);if(!r)return null;let i=My(r);return i?{contents:{kind:jy.MarkupKind.Markdown,value:i},metadata:{nodePath:r.nodePath,endPath:r.endPath,typeName:r.type?.name,descriptionVersion:r.descriptionVersion}}:null}catch(t){return console.error("Error in hover handler:",t),null}}function qR(e,t){let n=de.documents.get(t);if(!n)return!0;let r=n.getText({start:{line:e.line,character:0},end:{line:e.line+1,character:0}}).trimEnd(),i=r.indexOf(":");if(i===-1)return!1;let o=r.match(/^\s*/)?.[0].length??0,s=r.substring(o,i).trimEnd(),a=o+s.length;return e.character>=o&&e.character<a}var OR=(t=>(t[t.FILE_TYPE_NOT_SUPPORTED=0]="FILE_TYPE_NOT_SUPPORTED",t))(OR||{});var Iy=class{async onCompletion(t){let{uri:n}=t.textDocument;return Pr(n)?[]:Ny(n,t.position)}async onCompletionResolve(t){return t}async onHover(t){return Ly(t)}async validateOpenAPI(t){return ol(t)}async onDidChangeWatchedFiles(t){let n=t.changes.find(async i=>await mn(i.uri));if(n)return await hi(n.uri),Yr();if(t.changes.find(i=>gn({uri:i.uri})))return Yr()}async onDidConfigChange(t){return await hi(t),Yr()}async onDidChangeConfiguration(){return Yr()}async onDefinition(t){let{uri:n}=t.textDocument;return Pr(n)?[]:await qy(t)||[]}};export{OR as ContextErrorCodes,Iy as OpenapiLanguageServer,nl as bundleOpenAPI,bD as getBundles,On as getConfigData,ul as getContextData,Qe as getDocumentByURI,Ks as getPathsByDependency,JD as getSpecVersion,mn as isConfigFile,gn as isEntityFile,gr as isHttpPath,YP as isIgnoreFile,mi as isYamlFile,de as languageServerConfig,hi as loadOpenAPIConfig,Ue as parseUri,Ju as removeCirculars,Yr as revalidateAllDocuments,Oe as uriToAbsFSPath};
|