@redocly/openapi-language-server 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +41 -41
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
var
|
|
1
|
+
var eb=Object.create;var ai=Object.defineProperty;var tb=Object.getOwnPropertyDescriptor;var nb=Object.getOwnPropertyNames;var rb=Object.getPrototypeOf,ib=Object.prototype.hasOwnProperty;var zl=(e,t)=>()=>(e&&(t=e(e=0)),t);var T=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Is=(e,t)=>{for(var n in t)ai(e,n,{get:t[n],enumerable:!0})},si=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of nb(t))!ib.call(e,i)&&i!==n&&ai(e,i,{get:()=>t[i],enumerable:!(r=tb(t,i))||r.enumerable});return e},Ls=(e,t,n)=>(si(e,t,"default"),n&&si(n,t,"default")),Ne=(e,t,n)=>(n=e!=null?eb(rb(e)):{},si(t||!e||!e.__esModule?ai(n,"default",{value:e,enumerable:!0}):n,e)),ci=e=>si(ai({},"__esModule",{value:!0}),e);var At=T(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 gt;(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"})(gt=ye.Kind||(ye.Kind={}));function cb(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:gt.MAPPING,parent:null,errors:[]};return i}ye.newMapping=cb;function ub(e,t,n,r,i=2){return{errors:[],referencesAnchor:e,value:r,nodeIndent:i,startPosition:t,endPosition:n,kind:gt.ANCHOR_REF,parent:null}}ye.newAnchorRef=ub;function lb(e="",t=2){let n={errors:[],startPosition:-1,endPosition:-1,value:""+e,nodeIndent:t,kind:gt.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(n.valueObject=e),n}ye.newScalar=lb;function Ql(){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:2,items:[],kind:gt.SEQ,parent:null}}ye.newItems=Ql;function pb(){return Ql()}ye.newSeq=pb;function db(e,t=2){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:t,mappings:e||[],kind:gt.MAP,parent:null}}ye.newMap=db;function xr(e,t){if(!e||!t||e.kind!==t.kind)return!1;if(e.kind===gt.SCALAR)return e.value===t.value;if(e.kind===gt.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(!xr(o,s))return!1}return!0}if(e.kind===gt.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=>xr(o,c.key));if(a){if(!xr(s,a.value))return!1}else return!1}return!0}if(gt.MAPPING===e.kind){let n=e,r=t;return xr(n.key,r.key)}return!1}ye.isNodesEqual=xr;function fb(e){return e.startPosition!==void 0&&e.endPosition!==void 0&&e.kind!==void 0}ye.isYAMLNode=fb});var an=T(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.isNegativeZero=We.repeat=We.extend=We.toArray=We.isObject=We.isNothing=void 0;function Jl(e){return typeof e>"u"||e===null}We.isNothing=Jl;function gb(e){return typeof e=="object"&&e!==null}We.isObject=gb;function mb(e){return Array.isArray(e)?e:Jl(e)?[]:[e]}We.toArray=mb;function hb(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}We.extend=hb;function yb(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}We.repeat=yb;function bb(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}We.isNegativeZero=bb});var Rn=T((IS,Xl)=>{"use strict";var di=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}};di.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException";Xl.exports=di});var tp=T((LS,ep)=>{"use strict";var Zl=an(),zs=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
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),Zl.repeat(" ",t)+r+a+o+`
|
|
4
4
|
`+Zl.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}};ep.exports=
|
|
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===
|
|
5
|
+
`+n)),r}};ep.exports=zs});var Ae=T(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.Type=void 0;var np=Rn(),vb=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Pb=["scalar","sequence","mapping"];function xb(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}var Ys=class{constructor(t,n){if(n=n||{},Object.keys(n).forEach(function(r){if(vb.indexOf(r)===-1)throw new np('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=xb(n.styleAliases||null),Pb.indexOf(this.kind)===-1)throw new np('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}};fi.Type=Ys});var wn=T(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.Schema=void 0;var rp=an(),gi=Rn(),_b=Ae();function $s(e,t,n){var r=[];return e.include.forEach(function(i){n=$s(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 Cb(){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 Lt=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 gi("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=$s(this,"implicit",[]),this.compiledExplicit=$s(this,"explicit",[]),this.compiledTypeMap=Cb(this.compiledImplicit,this.compiledExplicit)}};mi.Schema=Lt;Lt.DEFAULT=null;Lt.create=function(...t){var n,r;switch(t.length){case 1:n=Lt.DEFAULT,r=t[0];break;case 2:n=t[0],r=t[1];break;default:throw new gi("Wrong number of arguments for Schema.create function")}if(n=rp.toArray(n),r=rp.toArray(r),!n.every(function(i){return i instanceof Lt}))throw new gi("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(i){return i instanceof _b.Type}))throw new gi("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Lt({include:n,explicit:r})}});var op=T((WS,ip)=>{"use strict";var Tb=Ae();ip.exports=new Tb.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var ap=T((HS,sp)=>{"use strict";var Sb=Ae();sp.exports=new Sb.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var up=T((BS,cp)=>{"use strict";var Db=Ae();cp.exports=new Db.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var pp=T((zS,lp)=>{"use strict";var Rb=wn();lp.exports=new Rb.Schema({explicit:[op(),ap(),up()]})});var gp=T((YS,fp)=>{"use strict";var wb=Ae(),dp=At();function Ab(e){let t=dp.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 kb(e){return dp.isYAMLNode(e)?e:null}function Eb(e){return e===null}fp.exports=new wb.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:Ab,construct:kb,predicate:Eb,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var yp=T(($S,hp)=>{"use strict";var Nb=Ae(),mp=At();function Ob(e){let t=mp.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 qb(e){return mp.isYAMLNode(e)?e:e==="true"||e==="True"||e==="TRUE"}function jb(e){return Object.prototype.toString.call(e)==="[object Boolean]"}hp.exports=new Nb.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Ob,construct:qb,predicate:jb,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 Pp=T((VS,vp)=>{"use strict";var Mb=an(),Ib=Ae(),bp=At();function Lb(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Fb(e){return 48<=e&&e<=55}function Ub(e){return 48<=e&&e<=57}function Wb(e){let t=bp.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(!Lb(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(!Fb(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(o===":")break;if(!Ub(t.charCodeAt(r)))return!1;i=!0}return i?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(r)):!1}function Hb(e){if(bp.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 Bb(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Mb.isNegativeZero(e)}vp.exports=new Ib.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:Wb,construct:Hb,predicate:Bb,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 Tp=T((KS,Cp)=>{"use strict";var xp=an(),zb=Ae(),_p=At(),Yb=new RegExp("-?(0|[1-9][0-9]*)(.[0-9]*)?([eE][-+]?[0-9]+)?|^0$|^[-+]?.(inf|Inf|INF)$|^.(nan|NaN|NAN)$");function $b(e){let t=_p.isYAMLNode(e)?e.value:e;return!(t===null||!Yb.test(t))}function Vb(e){if(_p.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 Kb(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(xp.isNegativeZero(e))return"-0.0";return e.toString(10)}function Gb(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||xp.isNegativeZero(e))}Cp.exports=new zb.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:$b,construct:Vb,predicate:Gb,represent:Kb,defaultStyle:"lowercase"})});var Dp=T((GS,Sp)=>{"use strict";var Qb=wn();Sp.exports=new Qb.Schema({include:[pp()],implicit:[gp(),yp(),Pp(),Tp()]})});var wp=T((QS,Rp)=>{"use strict";var Jb=wn();Rp.exports=new Jb.Schema({include:[Dp()]})});var Ep=T((JS,kp)=>{"use strict";var Xb=Ae(),Ap=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 Zb(e){if(e===null)return!1;var t,n,r,i,o,s,a,c=0,l=null,d,h,v;return t=Ap.exec(e),t!==null}function ev(e){var t,n,r,i,o,s,a,c=0,l=null,d,h,v;if(t=Ap.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),l=(d*60+h)*6e4,t[9]==="-"&&(l=-l)),v=new Date(Date.UTC(n,r,i,o,s,a,c)),l&&v.setTime(v.getTime()-l),v}function tv(e){return e.toISOString()}kp.exports=new Xb.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Zb,construct:ev,instanceOf:Date,represent:tv})});var Op=T((XS,Np)=>{"use strict";var nv=Ae();function rv(e){return e==="<<"||e===null}Np.exports=new nv.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:rv})});var qp={};Is(qp,{default:()=>iv});var iv,jp=zl(()=>{iv={}});var Ip=T((ZS,Mp)=>{"use strict";var hi=(jp(),ci(qp)).Buffer,ov=Ae(),Vs=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
6
|
+
\r`;function sv(e){if(e===null)return!1;var t,n,r=0,i=0,o=e.length,s=Vs;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 av(e){var t,n,r,i=e.replace(/[\r\n=]/g,""),o=i.length,s=Vs,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),hi?new hi(c):c}function cv(e){var t="",n=0,r,i,o=e.length,s=Vs;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 uv(e){return hi&&hi.isBuffer(e)}Mp.exports=new ov.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:sv,construct:av,predicate:uv,represent:cv})});var Fp=T((eD,Lp)=>{"use strict";var lv=Ae(),pv=Object.prototype.hasOwnProperty,dv=Object.prototype.toString;function fv(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,dv.call(i)!=="[object Object]")return!1;for(o in i)if(pv.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 gv(e){return e!==null?e:[]}Lp.exports=new lv.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:fv,construct:gv})});var Wp=T((tD,Up)=>{"use strict";var mv=Ae(),Ks=At(),hv=Object.prototype.toString;function yv(e){if(e===null)return!0;if(e.kind!=Ks.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],hv.call(r)!=="[object Object]"||!Array.isArray(r.mappings)||r.mappings.length!==1)return!1;return!0}function bv(e){if(e===null||!Array.isArray(e.items))return[];let t,n,r,i,o=e.items;for(i=Ks.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=Ks.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}Up.exports=new mv.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:yv,construct:bv})});var Bp=T((nD,Hp)=>{"use strict";var vv=Ae(),Pv=At();function xv(e){return e===null?!0:e.kind==Pv.Kind.MAP}function _v(e){return e!==null?e:{}}Hp.exports=new vv.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:xv,construct:_v})});var yi=T((rD,zp)=>{"use strict";var Cv=wn(),Tv=new Cv.Schema({include:[wp()],implicit:[Ep(),Op()],explicit:[Ip(),Fp(),Wp(),Bp()]});zp.exports=Tv});var $p=T((iD,Yp)=>{"use strict";var Sv=Ae();function Dv(){return!0}function Rv(){}function wv(){return""}function Av(e){return typeof e>"u"}Yp.exports=new Sv.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:Dv,construct:Rv,predicate:Av,represent:wv})});var Kp=T((oD,Vp)=>{"use strict";var kv=Ae();function Ev(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 Nv(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 Ov(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function qv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}Vp.exports=new kv.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:Ev,construct:Nv,predicate:qv,represent:Ov})});var Gs=T((sD,Jp)=>{"use strict";var Gp=wn(),Qp=new Gp.Schema({include:[yi()],explicit:[$p(),Kp()]});Gp.Schema.DEFAULT=Qp;Jp.exports=Qp});var ld=T((mt,Cr)=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.safeLoad=mt.safeLoadAll=mt.load=mt.loadAll=void 0;var Be=At(),Ft=an(),ra=Rn(),ia=tp(),td=yi(),jv=Gs(),Pi=Object.prototype.hasOwnProperty,bi=1,nd=2,rd=3,vi=4,Qs=1,Mv=2,Xp=3,Iv=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Lv=/[\x85\u2028\u2029]/,Fv=/[,\[\]\{\}]/,id=/^(?:!|!!|![a-z\-]+!)$/i,od=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ct(e){return e===10||e===13}function un(e){return e===9||e===32}function He(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 Uv(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Wv(e){return e===120?2:e===117?4:e===85?8:0}function Hv(e){return 48<=e&&e<=57?e-48:-1}function Bv(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 zv(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Js=new Array(256),Xs=new Array(256),sd=new Array(256),Zs=new Array(256);for(Xe=0;Xe<256;Xe++)Zs[Xe]=Xs[Xe]=Bv(Xe),Js[Xe]=Xs[Xe]?1:0,sd[Xe]=1,Js[Xe]||(Zs[Xe]="\\"+String.fromCharCode(Xe));var Xe,ea=class{constructor(t,n){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=n.filename||null,this.schema=n.schema||jv,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 oa(e,t,n=!1){return new ra(t,new ia(e.filename,e.input,e.position,e.line,e.position-e.lineStart),n)}function ta(e,t,n,r=!1,i=!1){var o=Yv(e,t);if(o){var s=n+t;if(!e.errorMap[s]){var a=new ia(e.filename,e.input,t,o.line,t-o.start);i&&(a.toLineEnd=!0);var c=new ra(n,a,r);e.errors.push(c)}}}function W(e,t){var n=oa(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 na(e,t){var n=oa(e,t);e.onWarning&&e.onWarning.call(null,n)}var Zp={YAML:function(t,n,r){var i,o,s;t.version!==null&&W(t,"duplication of %YAML directive"),r.length!==1&&W(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&W(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&W(t,"found incompatible YAML document (version 1.2 is required)"),t.version=r[0],t.checkLineBreaks=s<2,s!==2&&W(t,"found incompatible YAML document (version 1.2 is required)")},TAG:function(t,n,r){var i,o;r.length!==2&&W(t,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],id.test(i)||W(t,"ill-formed tag handle (first argument) of the TAG directive"),Pi.call(t.tagMap,i)&&W(t,'there is a previously declared suffix for "'+i+'" tag handle'),od.test(o)||W(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function Ut(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||W(e,"expected valid JSON character");else Iv.test(a)&&W(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=n}}function cn(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:Be.Kind.MAP,nodeIndent:o});var a=Be.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=>{Be.isNodesEqual(c,a)&&(ta(e,a.key.startPosition,"duplicate key"),ta(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=s,t}}function sa(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++):W(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function Yv(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 ce(e,t,n,r=!1){for(var i=0,o=e.input.charCodeAt(e.position);o!==0;){for(;un(o);)o===9&&e.errors.push(oa(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(sa(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&&na(e,"deficient indentation"),i}function _r(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||He(n)))}function aa(e,t,n){n===1?t.value+=" ":n>1&&(t.value+=Ft.repeat(`
|
|
9
|
+
`,n-1))}function $v(e,t,n){var r,i,o,s,a,c,l,d,h=e.kind,v=e.result,y,D=Be.newScalar("",t);if(D.plainScalar=!0,e.result=D,y=e.input.charCodeAt(e.position),He(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),He(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),He(i)||n&&An(i))break}else if(y===35){if(r=e.input.charCodeAt(e.position-1),He(r))break}else{if(e.position===e.lineStart&&_r(e)||n&&An(y))break;if(ct(y))if(c=e.line,l=e.lineStart,d=e.lineIndent,ce(e,!1,-1),e.lineIndent>=t){a=!0,y=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=l,e.lineIndent=d;break}}if(a&&(Ut(e,o,s,!1),aa(e,D,e.line-c),o=s=e.position,a=!1),un(y)||(s=e.position+1),y=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return Ut(e,o,s,!1),e.result.startPosition!=-1?(D.rawValue=e.input.substring(D.startPosition,D.endPosition),e.result.endPosition=ce(e,!1,-1)?e.position-1:e.position,!0):(e.kind=h,e.result=v,!1)}function Vv(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;var o=Be.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(Ut(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)?(Ut(e,r,i,!0),aa(e,o,ce(e,!1,t)),r=i=e.position):e.position===e.lineStart&&_r(e)?W(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position,o.endPosition=e.position);W(e,"unexpected end of the stream within a single quoted scalar")}function Kv(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 l=Be.newScalar("",t);for(l.doubleQuoted=!0,e.result=l,l.startPosition=e.position,e.position++,n=r=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Ut(e,n,e.position,!0),e.position++,l.endPosition=e.position,l.rawValue=e.input.substring(l.startPosition,l.endPosition),!0;if(c===92){if(Ut(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),ct(c))ce(e,!1,t);else if(c<256&&(e.allowAnyEscape?sd[c]:Js[c]))l.value+=e.allowAnyEscape?Zs[c]:Xs[c],e.position++;else if((s=Wv(c))>0){for(i=s,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(s=Uv(c))>=0?o=(o<<4)+s:W(e,"expected hexadecimal character");l.value+=zv(o),e.position++}else W(e,"unknown escape sequence");n=r=e.position}else ct(c)?(Ut(e,n,r,!0),aa(e,l,ce(e,!1,t)),n=r=e.position):e.position===e.lineStart&&_r(e)?W(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}W(e,"unexpected end of the stream within a double quoted scalar")}function Gv(e,t){var n=!0,r,i=e.tag,o,s=e.anchor,a,c,l,d,h,v,y,D,L;if(L=e.input.charCodeAt(e.position),L===91)c=93,h=!1,o=Be.newItems(),o.startPosition=e.position;else if(L===123)c=125,h=!0,o=Be.newMap(null,t),o.startPosition=e.position;else return!1;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),L=e.input.charCodeAt(++e.position);L!==0;){if(ce(e,!0,t),L=e.input.charCodeAt(e.position),L===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 Y=e.position;W(e,"missed comma between flow collection entries"),e.position=Y+1}if(y=v=D=null,l=d=!1,L===63&&(a=e.input.charCodeAt(e.position+1),He(a)&&(l=d=!0,e.position++,ce(e,!0,t))),r=e.line,kn(e,t,bi,!1,!0),y=e.tag,v=e.result,ce(e,!0,t),L=e.input.charCodeAt(e.position),(d||e.line===r)&&L===58&&(l=!0,L=e.input.charCodeAt(++e.position),ce(e,!0,t),kn(e,t,bi,!1,!0),D=e.result),h)cn(e,o,y,v,D,t);else if(l){var V=cn(e,null,y,v,D,t);V.parent=o,o.items.push(V)}else v&&(v.parent=o),o.items.push(v);o.endPosition=e.position+1,ce(e,!0,t),L=e.input.charCodeAt(e.position),L===44?(n=!0,L=e.input.charCodeAt(++e.position)):n=!1}W(e,"unexpected end of the stream within a flow collection")}function Qv(e,t){var n,r,i=Qs,o=!1,s=t,a=0,c=!1,l,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;var h=Be.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)Qs===i?i=d===43?Xp:Mv:W(e,"repeat of a chomping mode identifier");else if((l=Hv(d))>=0)l===0?W(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?W(e,"repeat of an indentation width identifier"):(s=t+l-1,o=!0);else break;if(un(d)){do d=e.input.charCodeAt(++e.position);while(un(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ct(d)&&d!==0)}for(;d!==0;){for(sa(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===Xp?h.value+=Ft.repeat(`
|
|
10
|
+
`,a):i===Qs&&o&&(h.value+=`
|
|
11
11
|
`);break}for(r?un(d)?(c=!0,h.value+=Ft.repeat(`
|
|
12
12
|
`,a+1)):c?(c=!1,h.value+=Ft.repeat(`
|
|
13
13
|
`,a+1)):a===0?o&&(h.value+=" "):h.value+=Ft.repeat(`
|
|
14
14
|
`,a):o&&(h.value+=Ft.repeat(`
|
|
15
15
|
`,a+1)),o=!0,a=0,n=e.position;!ct(d)&&d!==0;)d=e.input.charCodeAt(++e.position);Ut(e,n,e.position,!1)}h.endPosition=e.position;for(var v=e.position-1,y=!1;;){var D=e.input[v];if(D=="\r"||D==`
|
|
16
|
-
`){y&&v--;break}if(D!=" "&&D!=" ")break;v--}return h.endPosition=v,h.rawValue=e.input.substring(h.startPosition,h.endPosition),!0}function ed(e,t){var n,r=e.tag,i=e.anchor,o=Be.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),!He(s)));){if(a=!0,e.position++,ce(e,!0,-1)&&e.lineIndent<=t){o.items.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,kn(e,t,rd,!1,!0),e.result&&(e.result.parent=o,o.items.push(e.result)),o.endPosition=ce(e,!0,t,!0)?e.position-1:e.position,c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)W(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
|
|
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
|
|
16
|
+
`){y&&v--;break}if(D!=" "&&D!=" ")break;v--}return h.endPosition=v,h.rawValue=e.input.substring(h.startPosition,h.endPosition),!0}function ed(e,t){var n,r=e.tag,i=e.anchor,o=Be.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),!He(s)));){if(a=!0,e.position++,ce(e,!0,-1)&&e.lineIndent<=t){o.items.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,kn(e,t,rd,!1,!0),e.result&&(e.result.parent=o,o.items.push(e.result)),o.endPosition=ce(e,!0,t,!0)?e.position-1:e.position,c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)W(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 Jv(e,t,n){var r,i,o,s=e.tag,a=e.anchor,c=Be.newMap(null,t),l=null,d=null,h=null,v=!1,y=!1,D;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),D=e.input.charCodeAt(e.position);D!==0;){if(r=e.input.charCodeAt(e.position+1),o=e.line,(D===63||D===58)&&He(r))D===63?(v&&(cn(e,c,l,d,null,t),l=d=h=null),y=!0,v=!0,i=!0):v?(v=!1,i=!0):W(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,D=r;else if(kn(e,n,nd,!1,!0))if(e.line===o){for(D=e.input.charCodeAt(e.position);un(D);)D=e.input.charCodeAt(++e.position);if(D===58)D=e.input.charCodeAt(++e.position),He(D)||W(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(cn(e,c,l,d,null,t),l=d=h=null),y=!0,v=!1,i=!1,l=e.tag,d=e.result;else{if(e.position==e.lineStart&&_r(e))break;if(y)W(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(W(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(D=e.input.charCodeAt(--e.position),ct(D)){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,cn(e,c,l,d,null,t)}else return e.tag=s,e.anchor=a,!0;else break;if(e.line===o||e.lineIndent>t){let L=e.line;kn(e,t,vi,!0,i)?(ce(e,!0,t),v?d=e.result:(h=e.result,h.endPosition=e.line===L?e.position:e.position-1)):d&&(d.endPosition=e.line===L?e.position:e.position-1),v||(cn(e,c,l,d,h,t),l=d=h=null),ce(e,!0,-1),D=e.input.charCodeAt(e.position)}if(e.lineIndent>t&&D!==0)W(e,"bad indentation of a mapping entry"+e.position),D=e.input.charCodeAt(++e.position),ce(e,!0,-1);else if(e.lineIndent<t)break}return v&&cn(e,c,l,d,null,t),y&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),y}function Xv(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&&W(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)):W(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!He(s);)s===33&&(r?W(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),id.test(i)||W(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),Fv.test(o)&&W(e,"tag suffix cannot contain flow indicator characters")}return o&&!od.test(o)&&W(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:W(e,'undeclared tag handle "'+i+'"'),!0}function Zv(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&W(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!He(n)&&!An(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&W(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function eP(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&&!He(o)&&!An(o);)o=e.input.charCodeAt(++e.position);return e.position<=t&&(W(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)||(W(e,'unidentified alias "'+n+'"'),e.position<=t&&(e.position=t+1)),e.result=Be.newAnchorRef(n,t,e.position,e.anchorMap[n],0),ce(e,!0,-1),!0}function kn(e,t,n,r,i){var o,s,a,c=1,l=!1,d=!1,h,v,y,D,L,Y;e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=vi===n||rd===n,r&&ce(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));let V=e.position;if(c===1)for(;Xv(e)||Zv(e);)ce(e,!0,-1)?(l=!0,a=o,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=l||i),(c===1||vi===n)&&(bi===n||nd===n?D=t:D=t+1,L=e.position-e.lineStart,c===1?a&&(ed(e,L)||Jv(e,L,D))||Gv(e,D)?d=!0:(s&&Qv(e,D)||Vv(e,D)||Kv(e,D)?d=!0:eP(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&W(e,"alias node should not have any properties")):$v(e,D,bi===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&&ed(e,L))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=Be.newScalar("",L),e.result.startPosition=e.position,e.result.endPosition=e.position,W(e,"!include without value")),e.result.kind=Be.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)&&W(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)):W(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):ta(e,V,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||d}function tP(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&&(ce(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&&!He(s);)s=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&W(e,"directive name must not be less than one character in length");s!==0;){for(;un(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&&!He(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&sa(e),Pi.call(Zp,r)?Zp[r](e,r,i):(na(e,'unknown document directive "'+r+'"'),e.position++)}if(ce(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,ce(e,!0,-1)):o&&W(e,"directives end mark is expected"),kn(e,e.lineIndent-1,vi,!1,!0),ce(e,!0,-1),e.checkLineBreaks&&Lv.test(e.input.slice(t,e.position))&&na(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&_r(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ce(e,!0,-1));return}if(e.position<e.length-1)W(e,"end of the stream or a document separator is expected");else return}function ad(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 ea(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(tP(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 ca(e,t,n={}){var r=ad(e,n),i,o;for(i=0,o=r.length;i<o;i+=1)t(r[i])}mt.loadAll=ca;function ua(e,t={}){var n=ad(e,t),r,i;if(n.length!==0){if(n.length===1)return n[0];var o=new ra("expected a single document in the stream, but found more");return o.mark=new ia("","",0,0,0),o.mark.position=n[0].endPosition,n[0].errors.push(o),n[0]}}mt.load=ua;function cd(e,t,n={}){ca(e,t,Ft.extend({schema:td},n))}mt.safeLoadAll=cd;function ud(e,t={}){return ua(e,Ft.extend({schema:td},t))}mt.safeLoad=ud;Cr.exports.loadAll=ca;Cr.exports.load=ua;Cr.exports.safeLoadAll=cd;Cr.exports.safeLoad=ud});var yd=T(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.safeDump=En.dump=void 0;var Tr=an(),ma=Rn(),nP=Gs(),rP=yi(),ha=Object.prototype.toString,gd=Object.prototype.hasOwnProperty,iP=9,ln=10,oP=13,la=32,sP=33,pa=34,aP=35,cP=37,uP=38,da=39,lP=42,pP=44,dP=45,fP=58,gP=62,mP=63,hP=64,yP=91,bP=93,vP=96,PP=123,xP=124,_P=125,Se={};Se[0]="\\0";Se[7]="\\a";Se[8]="\\b";Se[9]="\\t";Se[10]="\\n";Se[11]="\\v";Se[12]="\\f";Se[13]="\\r";Se[27]="\\e";Se[34]='\\"';Se[92]="\\\\";Se[133]="\\N";Se[160]="\\_";Se[8232]="\\L";Se[8233]="\\P";var CP=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function TP(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&&gd.call(c.styleAliases,a)&&(a=c.styleAliases[a]),n[s]=a;return n}function SP(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 ma("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Tr.repeat("0",r-t.length)+t}function DP(e){this.schema=e.schema||nP,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Tr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=TP(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 pd(e,t){for(var n=Tr.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
|
-
`+Tr.repeat(" ",e.indent*t)}function
|
|
20
|
+
`&&(o+=n),o+=s;return o}function fa(e,t){return`
|
|
21
|
+
`+Tr.repeat(" ",e.indent*t)}function RP(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 xi(e){this.source=e,this.result="",this.checkpoint=0}xi.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};xi.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=Se[e]||SP(e),this.result+=t,this.checkpoint+=1,this};xi.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function wP(e,t,n){var r,i,o,s,a,c,l,d,h,v,y,D,L,Y,V,m,g,w,$,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(CP.indexOf(t)!==-1){e.dump="'"+t+"'";return}for(r=!0,i=t.length?t.charCodeAt(0):0,o=la===i||la===t.charCodeAt(t.length-1),(dP===i||mP===i||hP===i||vP===i)&&(r=!1),o?(r=!1,s=!1,a=!1):(s=!0,a=!0),c=!0,l=new xi(t),d=!1,h=0,v=0,y=e.indent*n,D=80,y<40?D-=y:D=40,Y=0;Y<t.length;Y++){if(L=t.charCodeAt(Y),r)if(!kP(L))r=!1;else continue;c&&L===da&&(c=!1),V=Se[L],m=md(L),!(!V&&!m)&&(L!==ln&&L!==pa&&L!==da?(s=!1,a=!1):L===ln&&(d=!0,c=!1,Y>0&&(g=t.charCodeAt(Y-1),g===la&&(a=!1,s=!1)),s&&(w=Y-h,h=Y,w>v&&(v=w))),L!==pa&&(c=!1),l.takeUpTo(Y),l.escapeChar())}if(r&&RP(e,t)&&(r=!1),$="",(s||a)&&(X=0,t.charCodeAt(t.length-1)===ln&&(X+=1,t.charCodeAt(t.length-2)===ln&&(X+=1)),X===0?$="-":X===2&&($="+")),a&&v<D&&(s=!1),d||(a=!1),r)e.dump=t;else if(c)e.dump="'"+t+"'";else if(s)st=AP(t,D),e.dump=">"+$+`
|
|
22
22
|
`+pd(st,y);else if(a)$||(t=t.replace(/\n$/,"")),e.dump="|"+$+`
|
|
23
|
-
`+pd(t,y);else if(l)l.finish(),e.dump='"'+l.result+'"';else throw new Error("Failed to dump scalar value")}function
|
|
23
|
+
`+pd(t,y);else if(l)l.finish(),e.dump='"'+l.result+'"';else throw new Error("Failed to dump scalar value")}function AP(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
26
|
`),n+=dd(e.slice(r,i),t),r=i):(n&&(n+=`
|
|
@@ -29,63 +29,63 @@ var Zy=Object.create;var ci=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
29
29
|
`&&(n+=o[0]),n}function dd(e,t){if(e==="")return e;for(var n=/[^\s] [^\s]/g,r="",i=0,o=0,s=n.exec(e),a,c,l;s;)a=s.index,a-o>t&&(i!==o?c=i:c=a,r&&(r+=`
|
|
30
30
|
`),l=e.slice(o,c),r+=l,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
|
-
`:""}En.dump=hd;function jP(e,t){return hd(e,Tr.extend({schema:nP},t))}En.safeDump=jP});var bd=T(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.determineScalarType=Ke.ScalarType=Ke.parseYamlFloat=Ke.parseYamlInteger=Ke.parseYamlBoolean=void 0;function MP(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`}Ke.parseYamlBoolean=MP;function IP(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function LP(e){let t=IP(e);if(isNaN(t))throw`Invalid integer "${e}"`;return t}Ke.parseYamlInteger=LP;function FP(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}"`}Ke.parseYamlFloat=FP;var kt;(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"})(kt=Ke.ScalarType||(Ke.ScalarType={}));function UP(e){if(e===void 0)return kt.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return kt.string;let t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return kt.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return kt.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 kt.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?kt.float:kt.string}Ke.determineScalarType=UP});var Nn=T(be=>{"use strict";var WP=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]})),vd=be&&be.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&WP(t,e,n)};Object.defineProperty(be,"__esModule",{value:!0});be.safeDump=be.dump=be.safeLoadAll=be.safeLoad=be.loadAll=be.load=void 0;var Ci=ld();Object.defineProperty(be,"load",{enumerable:!0,get:function(){return Ci.load}});Object.defineProperty(be,"loadAll",{enumerable:!0,get:function(){return Ci.loadAll}});Object.defineProperty(be,"safeLoad",{enumerable:!0,get:function(){return Ci.safeLoad}});Object.defineProperty(be,"safeLoadAll",{enumerable:!0,get:function(){return Ci.safeLoadAll}});var Pd=yd();Object.defineProperty(be,"dump",{enumerable:!0,get:function(){return Pd.dump}});Object.defineProperty(be,"safeDump",{enumerable:!0,get:function(){return Pd.safeDump}});be.YAMLException=Rn();vd(At(),be);vd(bd(),be)});var Hn=T(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.stringArray=Oe.array=Oe.func=Oe.error=Oe.number=Oe.string=Oe.boolean=void 0;function rC(e){return e===!0||e===!1}Oe.boolean=rC;function Vd(e){return typeof e=="string"||e instanceof String}Oe.string=Vd;function iC(e){return typeof e=="number"||e instanceof Number}Oe.number=iC;function oC(e){return e instanceof Error}Oe.error=oC;function sC(e){return typeof e=="function"}Oe.func=sC;function Kd(e){return Array.isArray(e)}Oe.array=Kd;function aC(e){return Kd(e)&&e.every(t=>Vd(t))}Oe.stringArray=aC});var nc=T(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 hn=Hn(),Na;(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})(Na||(F.ErrorCodes=Na={}));var Oa=class e extends Error{constructor(t,n,r){super(n),this.code=hn.number(t)?t:Na.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=Oa;var ze=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=ze;ze.auto=new ze("auto");ze.byPosition=new ze("byPosition");ze.byName=new ze("byName");var oe=class{constructor(t,n){this.method=t,this.numberOfParams=n}get parameterStructures(){return ze.auto}};F.AbstractMessageSignature=oe;var qa=class extends oe{constructor(t){super(t,0)}};F.RequestType0=qa;var ja=class extends oe{constructor(t,n=ze.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType=ja;var Ma=class extends oe{constructor(t,n=ze.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType1=Ma;var Ia=class extends oe{constructor(t){super(t,2)}};F.RequestType2=Ia;var La=class extends oe{constructor(t){super(t,3)}};F.RequestType3=La;var Fa=class extends oe{constructor(t){super(t,4)}};F.RequestType4=Fa;var Ua=class extends oe{constructor(t){super(t,5)}};F.RequestType5=Ua;var Wa=class extends oe{constructor(t){super(t,6)}};F.RequestType6=Wa;var Ha=class extends oe{constructor(t){super(t,7)}};F.RequestType7=Ha;var Ba=class extends oe{constructor(t){super(t,8)}};F.RequestType8=Ba;var za=class extends oe{constructor(t){super(t,9)}};F.RequestType9=za;var Ya=class extends oe{constructor(t,n=ze.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType=Ya;var $a=class extends oe{constructor(t){super(t,0)}};F.NotificationType0=$a;var Va=class extends oe{constructor(t,n=ze.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType1=Va;var Ka=class extends oe{constructor(t){super(t,2)}};F.NotificationType2=Ka;var Ga=class extends oe{constructor(t){super(t,3)}};F.NotificationType3=Ga;var Qa=class extends oe{constructor(t){super(t,4)}};F.NotificationType4=Qa;var Ja=class extends oe{constructor(t){super(t,5)}};F.NotificationType5=Ja;var Xa=class extends oe{constructor(t){super(t,6)}};F.NotificationType6=Xa;var Za=class extends oe{constructor(t){super(t,7)}};F.NotificationType7=Za;var ec=class extends oe{constructor(t){super(t,8)}};F.NotificationType8=ec;var tc=class extends oe{constructor(t){super(t,9)}};F.NotificationType9=tc;var Gd;(function(e){function t(i){let o=i;return o&&hn.string(o.method)&&(hn.string(o.id)||hn.number(o.id))}e.isRequest=t;function n(i){let o=i;return o&&hn.string(o.method)&&i.id===void 0}e.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(hn.string(o.id)||hn.number(o.id)||o.id===null)}e.isResponse=r})(Gd||(F.Message=Gd={}))});var ic=T(Bt=>{"use strict";var Qd;Object.defineProperty(Bt,"__esModule",{value:!0});Bt.LRUCache=Bt.LinkedMap=Bt.Touch=void 0;var qe;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(qe||(Bt.Touch=qe={}));var no=class{constructor(){this[Qd]="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=qe.None){let r=this._map.get(t);if(r)return n!==qe.None&&this.touch(r,n),r.value}set(t,n,r=qe.None){let i=this._map.get(t);if(i)i.value=n,r!==qe.None&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case qe.None:this.addItemLast(i);break;case qe.First:this.addItemFirst(i);break;case qe.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}[(Qd=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!==qe.First&&n!==qe.Last)){if(n===qe.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===qe.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)}};Bt.LinkedMap=no;var rc=class extends no{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=qe.AsNew){return super.get(t,n)}peek(t){return super.get(t,qe.None)}set(t,n){return super.set(t,n,qe.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Bt.LRUCache=rc});var Xd=T(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.Disposable=void 0;var Jd;(function(e){function t(n){return{dispose:n}}e.create=t})(Jd||(ro.Disposable=Jd={}))});var zt=T(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var oc;function sc(){if(oc===void 0)throw new Error("No runtime abstraction layer installed");return oc}(function(e){function t(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");oc=n}e.install=t})(sc||(sc={}));ac.default=sc});var zn=T(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.Emitter=Bn.Event=void 0;var cC=zt(),Zd;(function(e){let t={dispose(){}};e.None=function(){return t}})(Zd||(Bn.Event=Zd={}));var cc=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,cC.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},io=class e{constructor(t){this._options=t}get event(){return this._event||(this._event=(t,n,r)=>{this._callbacks||(this._callbacks=new cc),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)}};Bn.Emitter=io;io._noop=function(){}});var ao=T(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.CancellationTokenSource=Yn.CancellationToken=void 0;var uC=zt(),lC=Hn(),uc=zn(),oo;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:uc.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:uc.Event.None});function t(n){let r=n;return r&&(r===e.None||r===e.Cancelled||lC.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(oo||(Yn.CancellationToken=oo={}));var pC=Object.freeze(function(e,t){let n=(0,uC.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),so=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?pC:(this._emitter||(this._emitter=new uc.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},lc=class{get token(){return this._token||(this._token=new so),this._token}cancel(){this._token?this._token.cancel():this._token=oo.Cancelled}dispose(){this._token?this._token instanceof so&&this._token.dispose():this._token=oo.None}};Yn.CancellationTokenSource=lc});var ef=T($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.SharedArrayReceiverStrategy=$n.SharedArraySenderStrategy=void 0;var dC=ao(),Nr;(function(e){e.Continue=0,e.Cancelled=1})(Nr||(Nr={}));var pc=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]=Nr.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,Nr.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};$n.SharedArraySenderStrategy=pc;var dc=class{constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Nr.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},fc=class{constructor(t){this.token=new dc(t)}cancel(){}dispose(){}},gc=class{constructor(){this.kind="request"}createCancellationTokenSource(t){let n=t.$cancellationData;return n===void 0?new dC.CancellationTokenSource:new fc(n)}};$n.SharedArrayReceiverStrategy=gc});var hc=T(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.Semaphore=void 0;var fC=zt(),mc=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,fC.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()}}};co.Semaphore=mc});var nf=T(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.ReadableStreamMessageReader=Yt.AbstractMessageReader=Yt.MessageReader=void 0;var bc=zt(),Vn=Hn(),yc=zn(),gC=hc(),tf;(function(e){function t(n){let r=n;return r&&Vn.func(r.listen)&&Vn.func(r.dispose)&&Vn.func(r.onError)&&Vn.func(r.onClose)&&Vn.func(r.onPartialMessage)}e.is=t})(tf||(Yt.MessageReader=tf={}));var uo=class{constructor(){this.errorEmitter=new yc.Emitter,this.closeEmitter=new yc.Emitter,this.partialMessageEmitter=new yc.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: ${Vn.string(t.message)?t.message:"unknown"}`)}};Yt.AbstractMessageReader=uo;var vc;(function(e){function t(n){let r,i,o,s=new Map,a,c=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(o=n.contentDecoder,s.set(o.name,o)),n.contentDecoders!==void 0)for(let l of n.contentDecoders)s.set(l.name,l);if(n.contentTypeDecoder!==void 0&&(a=n.contentTypeDecoder,c.set(a.name,a)),n.contentTypeDecoders!==void 0)for(let l of n.contentTypeDecoders)c.set(l.name,l)}return a===void 0&&(a=(0,bc.default)().applicationJson.decoder,c.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:c}}e.fromOptions=t})(vc||(vc={}));var Pc=class extends uo{constructor(t,n){super(),this.readable=t,this.options=vc.fromOptions(n),this.buffer=(0,bc.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new gC.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,bc.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))}};Yt.ReadableStreamMessageReader=Pc});var
|
|
37
|
-
`,
|
|
38
|
-
`,Cc=class{constructor(t="utf-8"){this._encoding=t,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(t){let n=typeof t=="string"?this.fromString(t,this._encoding):t;this._chunks.push(n),this._totalLength+=n.byteLength}tryReadHeaders(t=!1){if(this._chunks.length===0)return;let n=0,r=0,i=0,o=0;e:for(;r<this._chunks.length;){let l=this._chunks[r];for(i=0;i<l.length;){switch(l[i]){case
|
|
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 _=p.id,k=Y.get(_);if(
|
|
41
|
-
${JSON.stringify(p,null,4)}`);let _=p;if(ue.string(_.id)||ue.number(_.id)){let k=_.id,I=Y.get(k);I&&I.reject(new Error("The received response has neither a result nor an error property."))}}function It(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
|
|
42
|
-
|
|
43
|
-
`),$.log(`Sending request '${p.method} - (${p.id})'.`,_)}else Sn("send-request",p)}function
|
|
32
|
+
`+e.slice(i+1):r+=e.slice(o),r}function kP(e){return iP!==e&&ln!==e&&oP!==e&&pP!==e&&yP!==e&&bP!==e&&PP!==e&&_P!==e&&aP!==e&&uP!==e&&lP!==e&&sP!==e&&xP!==e&&gP!==e&&da!==e&&pa!==e&&cP!==e&&fP!==e&&!Se[e]&&!md(e)}function md(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function EP(e,t,n){var r="",i=e.tag,o,s;for(o=0,s=n.length;o<s;o+=1)pn(e,t,n[o],!1,!1)&&(o!==0&&(r+=", "),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function NP(e,t,n,r){var i="",o=e.tag,s,a;for(s=0,a=n.length;s<a;s+=1)pn(e,t+1,n[s],!0,!0)&&((!r||s!==0)&&(i+=fa(e,t)),i+="- "+e.dump);e.tag=o,e.dump=i||"[]"}function OP(e,t,n){var r="",i=e.tag,o=Object.keys(n),s,a,c,l,d;for(s=0,a=o.length;s<a;s+=1)d="",s!==0&&(d+=", "),c=o[s],l=n[c],pn(e,t,c,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+": ",pn(e,t,l,!1,!1)&&(d+=e.dump,r+=d));e.tag=i,e.dump="{"+r+"}"}function qP(e,t,n,r){var i="",o=e.tag,s=Object.keys(n),a,c,l,d,h,v;for(a=0,c=s.length;a<c;a+=1)v="",(!r||a!==0)&&(v+=fa(e,t)),l=s[a],d=n[l],pn(e,t+1,l,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&ln===e.dump.charCodeAt(0)?v+="?":v+="? "),v+=e.dump,h&&(v+=fa(e,t)),pn(e,t+1,d,!0,h)&&(e.dump&&ln===e.dump.charCodeAt(0)?v+=":":v+=": ",v+=e.dump,i+=v));e.tag=o,e.dump=i||"{}"}function fd(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,ha.call(a.represent)==="[object Function]")r=a.represent(t,c);else if(gd.call(a.represent,c))r=a.represent[c](t,c);else throw new ma("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function pn(e,t,n,r,i){e.tag=null,e.dump=n,fd(e,n,!1)||fd(e,n,!0);var o=ha.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?(qP(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
|
|
33
|
+
`:"")+e.dump)):(OP(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object Array]")r&&e.dump.length!==0?(NP(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
|
|
34
|
+
`:"")+e.dump)):(EP(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&wP(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new ma("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function jP(e,t){var n=[],r=[],i,o;for(ga(e,n,r),i=0,o=r.length;i<o;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(o)}function ga(e,t,n){var r=ha.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)ga(e[o],t,n);else for(i=Object.keys(e),o=0,s=i.length;o<s;o+=1)ga(e[i[o]],t,n)}function hd(e,t){t=t||{};var n=new DP(t);return jP(e,n),pn(n,0,e,!0,!0)?n.dump+`
|
|
35
|
+
`:""}En.dump=hd;function MP(e,t){return hd(e,Tr.extend({schema:rP},t))}En.safeDump=MP});var bd=T(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.determineScalarType=Ke.ScalarType=Ke.parseYamlFloat=Ke.parseYamlInteger=Ke.parseYamlBoolean=void 0;function IP(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`}Ke.parseYamlBoolean=IP;function LP(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function FP(e){let t=LP(e);if(isNaN(t))throw`Invalid integer "${e}"`;return t}Ke.parseYamlInteger=FP;function UP(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}"`}Ke.parseYamlFloat=UP;var kt;(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"})(kt=Ke.ScalarType||(Ke.ScalarType={}));function WP(e){if(e===void 0)return kt.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return kt.string;let t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return kt.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return kt.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 kt.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?kt.float:kt.string}Ke.determineScalarType=WP});var Nn=T(be=>{"use strict";var HP=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]})),vd=be&&be.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&HP(t,e,n)};Object.defineProperty(be,"__esModule",{value:!0});be.safeDump=be.dump=be.safeLoadAll=be.safeLoad=be.loadAll=be.load=void 0;var _i=ld();Object.defineProperty(be,"load",{enumerable:!0,get:function(){return _i.load}});Object.defineProperty(be,"loadAll",{enumerable:!0,get:function(){return _i.loadAll}});Object.defineProperty(be,"safeLoad",{enumerable:!0,get:function(){return _i.safeLoad}});Object.defineProperty(be,"safeLoadAll",{enumerable:!0,get:function(){return _i.safeLoadAll}});var Pd=yd();Object.defineProperty(be,"dump",{enumerable:!0,get:function(){return Pd.dump}});Object.defineProperty(be,"safeDump",{enumerable:!0,get:function(){return Pd.safeDump}});be.YAMLException=Rn();vd(At(),be);vd(bd(),be)});var Hn=T(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.stringArray=Oe.array=Oe.func=Oe.error=Oe.number=Oe.string=Oe.boolean=void 0;function iC(e){return e===!0||e===!1}Oe.boolean=iC;function Kd(e){return typeof e=="string"||e instanceof String}Oe.string=Kd;function oC(e){return typeof e=="number"||e instanceof Number}Oe.number=oC;function sC(e){return e instanceof Error}Oe.error=sC;function aC(e){return typeof e=="function"}Oe.func=aC;function Gd(e){return Array.isArray(e)}Oe.array=Gd;function cC(e){return Gd(e)&&e.every(t=>Kd(t))}Oe.stringArray=cC});var nc=T(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 hn=Hn(),Na;(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})(Na||(F.ErrorCodes=Na={}));var Oa=class e extends Error{constructor(t,n,r){super(n),this.code=hn.number(t)?t:Na.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=Oa;var ze=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=ze;ze.auto=new ze("auto");ze.byPosition=new ze("byPosition");ze.byName=new ze("byName");var oe=class{constructor(t,n){this.method=t,this.numberOfParams=n}get parameterStructures(){return ze.auto}};F.AbstractMessageSignature=oe;var qa=class extends oe{constructor(t){super(t,0)}};F.RequestType0=qa;var ja=class extends oe{constructor(t,n=ze.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType=ja;var Ma=class extends oe{constructor(t,n=ze.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType1=Ma;var Ia=class extends oe{constructor(t){super(t,2)}};F.RequestType2=Ia;var La=class extends oe{constructor(t){super(t,3)}};F.RequestType3=La;var Fa=class extends oe{constructor(t){super(t,4)}};F.RequestType4=Fa;var Ua=class extends oe{constructor(t){super(t,5)}};F.RequestType5=Ua;var Wa=class extends oe{constructor(t){super(t,6)}};F.RequestType6=Wa;var Ha=class extends oe{constructor(t){super(t,7)}};F.RequestType7=Ha;var Ba=class extends oe{constructor(t){super(t,8)}};F.RequestType8=Ba;var za=class extends oe{constructor(t){super(t,9)}};F.RequestType9=za;var Ya=class extends oe{constructor(t,n=ze.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType=Ya;var $a=class extends oe{constructor(t){super(t,0)}};F.NotificationType0=$a;var Va=class extends oe{constructor(t,n=ze.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType1=Va;var Ka=class extends oe{constructor(t){super(t,2)}};F.NotificationType2=Ka;var Ga=class extends oe{constructor(t){super(t,3)}};F.NotificationType3=Ga;var Qa=class extends oe{constructor(t){super(t,4)}};F.NotificationType4=Qa;var Ja=class extends oe{constructor(t){super(t,5)}};F.NotificationType5=Ja;var Xa=class extends oe{constructor(t){super(t,6)}};F.NotificationType6=Xa;var Za=class extends oe{constructor(t){super(t,7)}};F.NotificationType7=Za;var ec=class extends oe{constructor(t){super(t,8)}};F.NotificationType8=ec;var tc=class extends oe{constructor(t){super(t,9)}};F.NotificationType9=tc;var Qd;(function(e){function t(i){let o=i;return o&&hn.string(o.method)&&(hn.string(o.id)||hn.number(o.id))}e.isRequest=t;function n(i){let o=i;return o&&hn.string(o.method)&&i.id===void 0}e.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(hn.string(o.id)||hn.number(o.id)||o.id===null)}e.isResponse=r})(Qd||(F.Message=Qd={}))});var ic=T(Bt=>{"use strict";var Jd;Object.defineProperty(Bt,"__esModule",{value:!0});Bt.LRUCache=Bt.LinkedMap=Bt.Touch=void 0;var qe;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(qe||(Bt.Touch=qe={}));var to=class{constructor(){this[Jd]="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=qe.None){let r=this._map.get(t);if(r)return n!==qe.None&&this.touch(r,n),r.value}set(t,n,r=qe.None){let i=this._map.get(t);if(i)i.value=n,r!==qe.None&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case qe.None:this.addItemLast(i);break;case qe.First:this.addItemFirst(i);break;case qe.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}[(Jd=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!==qe.First&&n!==qe.Last)){if(n===qe.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===qe.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)}};Bt.LinkedMap=to;var rc=class extends to{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=qe.AsNew){return super.get(t,n)}peek(t){return super.get(t,qe.None)}set(t,n){return super.set(t,n,qe.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Bt.LRUCache=rc});var Zd=T(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.Disposable=void 0;var Xd;(function(e){function t(n){return{dispose:n}}e.create=t})(Xd||(no.Disposable=Xd={}))});var zt=T(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var oc;function sc(){if(oc===void 0)throw new Error("No runtime abstraction layer installed");return oc}(function(e){function t(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");oc=n}e.install=t})(sc||(sc={}));ac.default=sc});var zn=T(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.Emitter=Bn.Event=void 0;var uC=zt(),ef;(function(e){let t={dispose(){}};e.None=function(){return t}})(ef||(Bn.Event=ef={}));var cc=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,uC.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},ro=class e{constructor(t){this._options=t}get event(){return this._event||(this._event=(t,n,r)=>{this._callbacks||(this._callbacks=new cc),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)}};Bn.Emitter=ro;ro._noop=function(){}});var so=T(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.CancellationTokenSource=Yn.CancellationToken=void 0;var lC=zt(),pC=Hn(),uc=zn(),io;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:uc.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:uc.Event.None});function t(n){let r=n;return r&&(r===e.None||r===e.Cancelled||pC.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(io||(Yn.CancellationToken=io={}));var dC=Object.freeze(function(e,t){let n=(0,lC.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),oo=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?dC:(this._emitter||(this._emitter=new uc.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},lc=class{get token(){return this._token||(this._token=new oo),this._token}cancel(){this._token?this._token.cancel():this._token=io.Cancelled}dispose(){this._token?this._token instanceof oo&&this._token.dispose():this._token=io.None}};Yn.CancellationTokenSource=lc});var tf=T($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.SharedArrayReceiverStrategy=$n.SharedArraySenderStrategy=void 0;var fC=so(),Er;(function(e){e.Continue=0,e.Cancelled=1})(Er||(Er={}));var pc=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]=Er.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,Er.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};$n.SharedArraySenderStrategy=pc;var dc=class{constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Er.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},fc=class{constructor(t){this.token=new dc(t)}cancel(){}dispose(){}},gc=class{constructor(){this.kind="request"}createCancellationTokenSource(t){let n=t.$cancellationData;return n===void 0?new fC.CancellationTokenSource:new fc(n)}};$n.SharedArrayReceiverStrategy=gc});var hc=T(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.Semaphore=void 0;var gC=zt(),mc=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,gC.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()}}};ao.Semaphore=mc});var rf=T(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.ReadableStreamMessageReader=Yt.AbstractMessageReader=Yt.MessageReader=void 0;var bc=zt(),Vn=Hn(),yc=zn(),mC=hc(),nf;(function(e){function t(n){let r=n;return r&&Vn.func(r.listen)&&Vn.func(r.dispose)&&Vn.func(r.onError)&&Vn.func(r.onClose)&&Vn.func(r.onPartialMessage)}e.is=t})(nf||(Yt.MessageReader=nf={}));var co=class{constructor(){this.errorEmitter=new yc.Emitter,this.closeEmitter=new yc.Emitter,this.partialMessageEmitter=new yc.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: ${Vn.string(t.message)?t.message:"unknown"}`)}};Yt.AbstractMessageReader=co;var vc;(function(e){function t(n){let r,i,o,s=new Map,a,c=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(o=n.contentDecoder,s.set(o.name,o)),n.contentDecoders!==void 0)for(let l of n.contentDecoders)s.set(l.name,l);if(n.contentTypeDecoder!==void 0&&(a=n.contentTypeDecoder,c.set(a.name,a)),n.contentTypeDecoders!==void 0)for(let l of n.contentTypeDecoders)c.set(l.name,l)}return a===void 0&&(a=(0,bc.default)().applicationJson.decoder,c.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:c}}e.fromOptions=t})(vc||(vc={}));var Pc=class extends co{constructor(t,n){super(),this.readable=t,this.options=vc.fromOptions(n),this.buffer=(0,bc.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new mC.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,bc.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))}};Yt.ReadableStreamMessageReader=Pc});var uf=T($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.WriteableStreamMessageWriter=$t.AbstractMessageWriter=$t.MessageWriter=void 0;var of=zt(),Nr=Hn(),hC=hc(),sf=zn(),yC="Content-Length: ",af=`\r
|
|
37
|
+
`,cf;(function(e){function t(n){let r=n;return r&&Nr.func(r.dispose)&&Nr.func(r.onClose)&&Nr.func(r.onError)&&Nr.func(r.write)}e.is=t})(cf||($t.MessageWriter=cf={}));var uo=class{constructor(){this.errorEmitter=new sf.Emitter,this.closeEmitter=new sf.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: ${Nr.string(t.message)?t.message:"unknown"}`)}};$t.AbstractMessageWriter=uo;var xc;(function(e){function t(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,of.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,of.default)().applicationJson.encoder}}e.fromOptions=t})(xc||(xc={}));var _c=class extends uo{constructor(t,n){super(),this.writable=t,this.options=xc.fromOptions(n),this.errorCount=0,this.writeSemaphore=new hC.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(yC,r.byteLength.toString(),af),i.push(af),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()}};$t.WriteableStreamMessageWriter=_c});var lf=T(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.AbstractMessageBuffer=void 0;var bC=13,vC=10,PC=`\r
|
|
38
|
+
`,Cc=class{constructor(t="utf-8"){this._encoding=t,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(t){let n=typeof t=="string"?this.fromString(t,this._encoding):t;this._chunks.push(n),this._totalLength+=n.byteLength}tryReadHeaders(t=!1){if(this._chunks.length===0)return;let n=0,r=0,i=0,o=0;e:for(;r<this._chunks.length;){let l=this._chunks[r];for(i=0;i<l.length;){switch(l[i]){case bC:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case vC:switch(n){case 1:n=2;break;case 3:n=4,i++;break e;default:n=0}break;default:n=0}i++}o+=l.byteLength,r++}if(n!==4)return;let s=this._read(o+i),a=new Map,c=this.toString(s,"ascii").split(PC);if(c.length<2)return a;for(let l=0;l<c.length-2;l++){let d=c[l],h=d.indexOf(":");if(h===-1)throw new Error(`Message header must separate key and value using ':'
|
|
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}};lo.AbstractMessageBuffer=Cc});var mf=T(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.createMessageConnection=B.ConnectionOptions=B.MessageStrategy=B.CancellationStrategy=B.CancellationSenderStrategy=B.CancellationReceiverStrategy=B.RequestCancellationReceiverStrategy=B.IdCancellationReceiverStrategy=B.ConnectionStrategy=B.ConnectionError=B.ConnectionErrors=B.LogTraceNotification=B.SetTraceNotification=B.TraceFormat=B.TraceValues=B.Trace=B.NullLogger=B.ProgressType=B.ProgressToken=void 0;var pf=zt(),ue=Hn(),U=nc(),df=ic(),Or=zn(),Tc=so(),Mr;(function(e){e.type=new U.NotificationType("$/cancelRequest")})(Mr||(Mr={}));var Sc;(function(e){function t(n){return typeof n=="string"||typeof n=="number"}e.is=t})(Sc||(B.ProgressToken=Sc={}));var qr;(function(e){e.type=new U.NotificationType("$/progress")})(qr||(qr={}));var Dc=class{constructor(){}};B.ProgressType=Dc;var Rc;(function(e){function t(n){return ue.func(n)}e.is=t})(Rc||(Rc={}));B.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||(B.Trace=J={}));var ff;(function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"})(ff||(B.TraceValues=ff={}));(function(e){function t(r){if(!ue.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||(B.Trace=J={}));var Qe;(function(e){e.Text="text",e.JSON="json"})(Qe||(B.TraceFormat=Qe={}));(function(e){function t(n){return ue.string(n)?(n=n.toLowerCase(),n==="json"?e.JSON:e.Text):e.Text}e.fromString=t})(Qe||(B.TraceFormat=Qe={}));var wc;(function(e){e.type=new U.NotificationType("$/setTrace")})(wc||(B.SetTraceNotification=wc={}));var po;(function(e){e.type=new U.NotificationType("$/logTrace")})(po||(B.LogTraceNotification=po={}));var jr;(function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"})(jr||(B.ConnectionErrors=jr={}));var Kn=class e extends Error{constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};B.ConnectionError=Kn;var Ac;(function(e){function t(n){let r=n;return r&&ue.func(r.cancelUndispatched)}e.is=t})(Ac||(B.ConnectionStrategy=Ac={}));var fo;(function(e){function t(n){let r=n;return r&&(r.kind===void 0||r.kind==="id")&&ue.func(r.createCancellationTokenSource)&&(r.dispose===void 0||ue.func(r.dispose))}e.is=t})(fo||(B.IdCancellationReceiverStrategy=fo={}));var kc;(function(e){function t(n){let r=n;return r&&r.kind==="request"&&ue.func(r.createCancellationTokenSource)&&(r.dispose===void 0||ue.func(r.dispose))}e.is=t})(kc||(B.RequestCancellationReceiverStrategy=kc={}));var go;(function(e){e.Message=Object.freeze({createCancellationTokenSource(n){return new Tc.CancellationTokenSource}});function t(n){return fo.is(n)||kc.is(n)}e.is=t})(go||(B.CancellationReceiverStrategy=go={}));var mo;(function(e){e.Message=Object.freeze({sendCancellation(n,r){return n.sendNotification(Mr.type,{id:r})},cleanup(n){}});function t(n){let r=n;return r&&ue.func(r.sendCancellation)&&ue.func(r.cleanup)}e.is=t})(mo||(B.CancellationSenderStrategy=mo={}));var ho;(function(e){e.Message=Object.freeze({receiver:go.Message,sender:mo.Message});function t(n){let r=n;return r&&go.is(r.receiver)&&mo.is(r.sender)}e.is=t})(ho||(B.CancellationStrategy=ho={}));var yo;(function(e){function t(n){let r=n;return r&&ue.func(r.handleMessage)}e.is=t})(yo||(B.MessageStrategy=yo={}));var gf;(function(e){function t(n){let r=n;return r&&(ho.is(r.cancellationStrategy)||Ac.is(r.connectionStrategy)||yo.is(r.messageStrategy))}e.is=t})(gf||(B.ConnectionOptions=gf={}));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 xC(e,t,n,r){let i=n!==void 0?n:B.NullLogger,o=0,s=0,a=0,c="2.0",l,d=new Map,h,v=new Map,y=new Map,D,L=new df.LinkedMap,Y=new Map,V=new Set,m=new Map,g=J.Off,w=Qe.Text,$,X=ut.New,st=new Or.Emitter,Mt=new Or.Emitter,on=new Or.Emitter,Tn=new Or.Emitter,A=new Or.Emitter,b=r&&r.cancellationStrategy?r.cancellationStrategy:ho.Message;function q(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 j(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(q(_.id),_):U.Message.isResponse(_)?p.set(j(_.id),_):p.set(x(),_)}function S(p){}function O(){return X===ut.Listening}function M(){return X===ut.Closed}function N(){return X===ut.Disposed}function z(){(X===ut.New||X===ut.Listening)&&(X=ut.Closed,Mt.fire(void 0))}function K(p){st.fire([p,void 0,void 0])}function Te(p){st.fire(p)}e.onClose(z),e.onError(K),t.onClose(z),t.onError(Te);function ee(){D||L.size===0||(D=(0,pf.default)().timer.setImmediate(()=>{D=void 0,sn()}))}function at(p){U.Message.isRequest(p)?By(p):U.Message.isNotification(p)?Yy(p):U.Message.isResponse(p)?zy(p):p?.type?.startsWith("redocly/")||$y(p)}function sn(){if(L.size===0)return;let p=L.shift();try{let _=r?.messageStrategy;yo.is(_)?_.handleMessage(p,at):at(p)}finally{ee()}}let Hy=p=>{try{if(U.Message.isNotification(p)&&p.method===Mr.type.method){let _=p.params.id,k=q(_),I=L.get(k);if(U.Message.isRequest(I)){let te=r?.connectionStrategy,le=te&&te.cancelUndispatched?te.cancelUndispatched(I,S):void 0;if(le&&(le.error!==void 0||le.result!==void 0)){L.delete(k),m.delete(_),le.id=I.id,oi(le,p.method,Date.now()),t.write(le).catch(()=>i.error("Sending response for canceled message failed."));return}}let re=m.get(_);if(re!==void 0){re.cancel(),js(p);return}else V.add(_)}C(L,p)}finally{ee()}};function By(p){if(N())return;function _(G,ae,Z){let _e={jsonrpc:c,id:p.id};G instanceof U.ResponseError?_e.error=G.toJson():_e.result=G===void 0?null:G,oi(_e,ae,Z),t.write(_e).catch(()=>i.error("Sending response failed."))}function k(G,ae,Z){let _e={jsonrpc:c,id:p.id,error:G.toJson()};oi(_e,ae,Z),t.write(_e).catch(()=>i.error("Sending response failed."))}function I(G,ae,Z){G===void 0&&(G=null);let _e={jsonrpc:c,id:p.id,result:G};oi(_e,ae,Z),t.write(_e).catch(()=>i.error("Sending response failed."))}Gy(p);let re=d.get(p.method),te,le;re&&(te=re.type,le=re.handler);let he=Date.now();if(le||l){let G=p.id??String(Date.now()),ae=fo.is(b.receiver)?b.receiver.createCancellationTokenSource(G):b.receiver.createCancellationTokenSource(p);p.id!==null&&V.has(p.id)&&ae.cancel(),p.id!==null&&m.set(G,ae);try{let Z;if(le)if(p.params===void 0){if(te!==void 0&&te.numberOfParams!==0){k(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines ${te.numberOfParams} params but received none.`),p.method,he);return}Z=le(ae.token)}else if(Array.isArray(p.params)){if(te!==void 0&&te.parameterStructures===U.ParameterStructures.byName){k(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by name but received parameters by position`),p.method,he);return}Z=le(...p.params,ae.token)}else{if(te!==void 0&&te.parameterStructures===U.ParameterStructures.byPosition){k(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by position but received parameters by name`),p.method,he);return}Z=le(p.params,ae.token)}else l&&(Z=l(p.method,p.params,ae.token));let _e=Z;Z?_e.then?_e.then(Ie=>{m.delete(G),_(Ie,p.method,he)},Ie=>{m.delete(G),Ie instanceof U.ResponseError?k(Ie,p.method,he):Ie&&ue.string(Ie.message)?k(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Ie.message}`),p.method,he):k(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),I(Z,p.method,he))}catch(Z){m.delete(G),Z instanceof U.ResponseError?_(Z,p.method,he):Z&&ue.string(Z.message)?k(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Z.message}`),p.method,he):k(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,he)}}else k(new U.ResponseError(U.ErrorCodes.MethodNotFound,`Unhandled method ${p.method}`),p.method,he)}function zy(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,k=Y.get(_);if(Qy(p,k),k!==void 0){Y.delete(_);try{if(p.error){let I=p.error;k.reject(new U.ResponseError(I.code,I.message,I.data))}else if(p.result!==void 0)k.resolve(p.result);else throw new Error("Should never happen.")}catch(I){I.message?i.error(`Response handler '${k.method}' failed with message: ${I.message}`):i.error(`Response handler '${k.method}' failed unexpectedly.`)}}}}function Yy(p){if(N())return;let _,k;if(p.method===Mr.type.method){let I=p.params.id;V.delete(I),js(p);return}else{let I=v.get(p.method);I&&(k=I.handler,_=I.type)}if(k||h)try{if(js(p),k)if(p.params===void 0)_!==void 0&&_.numberOfParams!==0&&_.parameterStructures!==U.ParameterStructures.byName&&i.error(`Notification ${p.method} defines ${_.numberOfParams} params but received none.`),k();else if(Array.isArray(p.params)){let I=p.params;p.method===qr.type.method&&I.length===2&&Sc.is(I[0])?k({token:I[0],value:I[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 ${I.length} arguments`)),k(...I))}else _!==void 0&&_.parameterStructures===U.ParameterStructures.byPosition&&i.error(`Notification ${p.method} defines parameters by position but received parameters by name`),k(p.params);else h&&h(p.method,p.params)}catch(I){I.message?i.error(`Notification handler '${p.method}' failed with message: ${I.message}`):i.error(`Notification handler '${p.method}' failed unexpectedly.`)}else on.fire(p)}function $y(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(ue.string(_.id)||ue.number(_.id)){let k=_.id,I=Y.get(k);I&&I.reject(new Error("The received response has neither a result nor an error property."))}}function It(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 Vy(p){if(!(g===J.Off||!$))if(w===Qe.Text){let _;(g===J.Verbose||g===J.Compact)&&p.params&&(_=`Params: ${It(p.params)}
|
|
42
|
+
|
|
43
|
+
`),$.log(`Sending request '${p.method} - (${p.id})'.`,_)}else Sn("send-request",p)}function Ky(p){if(!(g===J.Off||!$))if(w===Qe.Text){let _;(g===J.Verbose||g===J.Compact)&&(p.params?_=`Params: ${It(p.params)}
|
|
44
44
|
|
|
45
45
|
`:_=`No parameters provided.
|
|
46
46
|
|
|
47
|
-
`),$.log(`Sending notification '${p.method}'.`,_)}else Sn("send-notification",p)}function
|
|
47
|
+
`),$.log(`Sending notification '${p.method}'.`,_)}else Sn("send-notification",p)}function oi(p,_,k){if(!(g===J.Off||!$))if(w===Qe.Text){let I;(g===J.Verbose||g===J.Compact)&&(p.error&&p.error.data?I=`Error data: ${It(p.error.data)}
|
|
48
48
|
|
|
49
49
|
`:p.result?I=`Result: ${It(p.result)}
|
|
50
50
|
|
|
51
51
|
`:p.error===void 0&&(I=`No result returned.
|
|
52
52
|
|
|
53
|
-
`)),$.log(`Sending response '${_} - (${p.id})'. Processing request took ${Date.now()-k}ms`,I)}else Sn("send-response",p)}function
|
|
53
|
+
`)),$.log(`Sending response '${_} - (${p.id})'. Processing request took ${Date.now()-k}ms`,I)}else Sn("send-response",p)}function Gy(p){if(!(g===J.Off||!$))if(w===Qe.Text){let _;(g===J.Verbose||g===J.Compact)&&p.params&&(_=`Params: ${It(p.params)}
|
|
54
54
|
|
|
55
|
-
`),$.log(`Received request '${p.method} - (${p.id})'.`,_)}else Sn("receive-request",p)}function
|
|
55
|
+
`),$.log(`Received request '${p.method} - (${p.id})'.`,_)}else Sn("receive-request",p)}function js(p){if(!(g===J.Off||!$||p.method===po.type.method))if(w===Qe.Text){let _;(g===J.Verbose||g===J.Compact)&&(p.params?_=`Params: ${It(p.params)}
|
|
56
56
|
|
|
57
57
|
`:_=`No parameters provided.
|
|
58
58
|
|
|
59
|
-
`),$.log(`Received notification '${p.method}'.`,_)}else Sn("receive-notification",p)}function
|
|
59
|
+
`),$.log(`Received notification '${p.method}'.`,_)}else Sn("receive-notification",p)}function Qy(p,_){if(!(g===J.Off||!$))if(w===Qe.Text){let k;if((g===J.Verbose||g===J.Compact)&&(p.error&&p.error.data?k=`Error data: ${It(p.error.data)}
|
|
60
60
|
|
|
61
61
|
`:p.result?k=`Result: ${It(p.result)}
|
|
62
62
|
|
|
63
63
|
`:p.error===void 0&&(k=`No result returned.
|
|
64
64
|
|
|
65
|
-
`)),_){let I=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";$.log(`Received response '${_.method} - (${p.id})' in ${Date.now()-_.timerStart}ms.${I}`,k)}else $.log(`Received response ${p.id} without active response promise.`,k)}else Sn("receive-response",p)}function Sn(p,_){if(!$||g===J.Off)return;let k={isLSPMessage:!0,type:p,message:_,timestamp:Date.now()};$.log(k)}function yr(){if(M())throw new Kn(Mr.Closed,"Connection is closed.");if(N())throw new Kn(Mr.Disposed,"Connection is disposed.")}function Qy(){if(O())throw new Kn(Mr.AlreadyListening,"Connection is already listening")}function Jy(){if(!O())throw new Error("Call listen() first.")}function br(p){return p===void 0?null:p}function Wl(p){if(p!==null)return p}function Hl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function Is(p,_){switch(p){case U.ParameterStructures.auto:return Hl(_)?Wl(_):[br(_)];case U.ParameterStructures.byName:if(!Hl(_))throw new Error("Received parameters by name but param is not an object literal.");return Wl(_);case U.ParameterStructures.byPosition:return[br(_)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function Bl(p,_){let k,I=p.numberOfParams;switch(I){case 0:k=void 0;break;case 1:k=Is(p.parameterStructures,_[0]);break;default:k=[];for(let re=0;re<_.length&&re<I;re++)k.push(br(_[re]));if(_.length<I)for(let re=_.length;re<I;re++)k.push(null);break}return k}let Dn={sendNotification:(p,..._)=>{yr();let k,I;if(ue.string(p)){k=p;let te=_[0],le=0,he=U.ParameterStructures.auto;U.ParameterStructures.is(te)&&(le=1,he=te);let G=_.length,ae=G-le;switch(ae){case 0:I=void 0;break;case 1:I=Is(he,_[le]);break;default:if(he===U.ParameterStructures.byName)throw new Error(`Received ${ae} parameters for 'by Name' notification parameter structure.`);I=_.slice(le,G).map(Z=>br(Z));break}}else{let te=_;k=p.method,I=Bl(p,te)}let re={jsonrpc:c,method:k,params:I};return Vy(re),t.write(re).catch(te=>{throw i.error("Sending notification failed."),te})},onNotification:(p,_)=>{yr();let k;return ue.func(p)?h=p:_&&(ue.string(p)?(k=p,v.set(p,{type:void 0,handler:_})):(k=p.method,v.set(p.method,{type:p,handler:_}))),{dispose:()=>{k!==void 0?v.delete(k):h=void 0}}},onProgress:(p,_,k)=>{if(y.has(_))throw new Error(`Progress handler for token ${_} already registered`);return y.set(_,k),{dispose:()=>{y.delete(_)}}},sendProgress:(p,_,k)=>Dn.sendNotification(jr.type,{token:_,value:k}),onUnhandledProgress:Tn.event,sendRequest:(p,..._)=>{yr(),Jy();let k,I,re;if(ue.string(p)){k=p;let G=_[0],ae=_[_.length-1],Z=0,_e=U.ParameterStructures.auto;U.ParameterStructures.is(G)&&(Z=1,_e=G);let Ie=_.length;Tc.CancellationToken.is(ae)&&(Ie=Ie-1,re=ae);let ft=Ie-Z;switch(ft){case 0:I=void 0;break;case 1:I=Is(_e,_[Z]);break;default:if(_e===U.ParameterStructures.byName)throw new Error(`Received ${ft} parameters for 'by Name' request parameter structure.`);I=_.slice(Z,Ie).map(Xy=>br(Xy));break}}else{let G=_;k=p.method,I=Bl(p,G);let ae=p.numberOfParams;re=Tc.CancellationToken.is(G[ae])?G[ae]:void 0}let te=o++,le;re&&(le=re.onCancellationRequested(()=>{let G=b.sender.sendCancellation(Dn,te);return G===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${te}`),Promise.resolve()):G.catch(()=>{i.log(`Sending cancellation messages for id ${te} failed`)})}));let he={jsonrpc:c,id:te,method:k,params:I};return $y(he),typeof b.sender.enableCancellation=="function"&&b.sender.enableCancellation(he),new Promise(async(G,ae)=>{let Z=ft=>{G(ft),b.sender.cleanup(te),le?.dispose()},_e=ft=>{ae(ft),b.sender.cleanup(te),le?.dispose()},Ie={method:k,timerStart:Date.now(),resolve:Z,reject:_e};try{await t.write(he),Y.set(te,Ie)}catch(ft){throw i.error("Sending request failed."),Ie.reject(new U.ResponseError(U.ErrorCodes.MessageWriteError,ft.message?ft.message:"Unknown reason")),ft}})},onRequest:(p,_)=>{yr();let k=null;return Rc.is(p)?(k=void 0,l=p):ue.string(p)?(k=null,_!==void 0&&(k=p,d.set(p,{handler:_,type:void 0}))):_!==void 0&&(k=p.method,d.set(p.method,{type:p,handler:_})),{dispose:()=>{k!==null&&(k!==void 0?d.delete(k):l=void 0)}}},hasPendingResponse:()=>Y.size>0,trace:async(p,_,k)=>{let I=!1,re=Qe.Text;k!==void 0&&(ue.boolean(k)?I=k:(I=k.sendNotification||!1,re=k.traceFormat||Qe.Text)),g=p,w=re,g===J.Off?$=void 0:$=_,I&&!M()&&!N()&&await Dn.sendNotification(wc.type,{value:J.toString(p)})},onError:st.event,onClose:Mt.event,onUnhandledNotification:on.event,onDispose:A.event,end:()=>{t.end()},dispose:()=>{if(N())return;X=ut.Disposed,A.fire(void 0);let p=new U.ResponseError(U.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let _ of Y.values())_.reject(p);Y=new Map,m=new Map,V=new Set,L=new pf.LinkedMap,ue.func(t.dispose)&&t.dispose(),ue.func(e.dispose)&&e.dispose()},listen:()=>{yr(),Qy(),X=ut.Listening,e.listen(Wy)},inspect:()=>{(0,lf.default)().console.log("inspect")}};return Dn.onNotification(fo.type,p=>{if(g===J.Off||!$)return;let _=g===J.Verbose||g===J.Compact;$.log(p.message,_?p.verbose:void 0)}),Dn.onNotification(jr.type,p=>{let _=y.get(p.token);_?_(p.value):Tn.fire(p)}),Dn}B.createMessageConnection=PC});var vo=T(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 ne=nc();Object.defineProperty(P,"Message",{enumerable:!0,get:function(){return ne.Message}});Object.defineProperty(P,"RequestType",{enumerable:!0,get:function(){return ne.RequestType}});Object.defineProperty(P,"RequestType0",{enumerable:!0,get:function(){return ne.RequestType0}});Object.defineProperty(P,"RequestType1",{enumerable:!0,get:function(){return ne.RequestType1}});Object.defineProperty(P,"RequestType2",{enumerable:!0,get:function(){return ne.RequestType2}});Object.defineProperty(P,"RequestType3",{enumerable:!0,get:function(){return ne.RequestType3}});Object.defineProperty(P,"RequestType4",{enumerable:!0,get:function(){return ne.RequestType4}});Object.defineProperty(P,"RequestType5",{enumerable:!0,get:function(){return ne.RequestType5}});Object.defineProperty(P,"RequestType6",{enumerable:!0,get:function(){return ne.RequestType6}});Object.defineProperty(P,"RequestType7",{enumerable:!0,get:function(){return ne.RequestType7}});Object.defineProperty(P,"RequestType8",{enumerable:!0,get:function(){return ne.RequestType8}});Object.defineProperty(P,"RequestType9",{enumerable:!0,get:function(){return ne.RequestType9}});Object.defineProperty(P,"ResponseError",{enumerable:!0,get:function(){return ne.ResponseError}});Object.defineProperty(P,"ErrorCodes",{enumerable:!0,get:function(){return ne.ErrorCodes}});Object.defineProperty(P,"NotificationType",{enumerable:!0,get:function(){return ne.NotificationType}});Object.defineProperty(P,"NotificationType0",{enumerable:!0,get:function(){return ne.NotificationType0}});Object.defineProperty(P,"NotificationType1",{enumerable:!0,get:function(){return ne.NotificationType1}});Object.defineProperty(P,"NotificationType2",{enumerable:!0,get:function(){return ne.NotificationType2}});Object.defineProperty(P,"NotificationType3",{enumerable:!0,get:function(){return ne.NotificationType3}});Object.defineProperty(P,"NotificationType4",{enumerable:!0,get:function(){return ne.NotificationType4}});Object.defineProperty(P,"NotificationType5",{enumerable:!0,get:function(){return ne.NotificationType5}});Object.defineProperty(P,"NotificationType6",{enumerable:!0,get:function(){return ne.NotificationType6}});Object.defineProperty(P,"NotificationType7",{enumerable:!0,get:function(){return ne.NotificationType7}});Object.defineProperty(P,"NotificationType8",{enumerable:!0,get:function(){return ne.NotificationType8}});Object.defineProperty(P,"NotificationType9",{enumerable:!0,get:function(){return ne.NotificationType9}});Object.defineProperty(P,"ParameterStructures",{enumerable:!0,get:function(){return ne.ParameterStructures}});var Ec=ic();Object.defineProperty(P,"LinkedMap",{enumerable:!0,get:function(){return Ec.LinkedMap}});Object.defineProperty(P,"LRUCache",{enumerable:!0,get:function(){return Ec.LRUCache}});Object.defineProperty(P,"Touch",{enumerable:!0,get:function(){return Ec.Touch}});var xC=Xd();Object.defineProperty(P,"Disposable",{enumerable:!0,get:function(){return xC.Disposable}});var mf=zn();Object.defineProperty(P,"Event",{enumerable:!0,get:function(){return mf.Event}});Object.defineProperty(P,"Emitter",{enumerable:!0,get:function(){return mf.Emitter}});var hf=ao();Object.defineProperty(P,"CancellationTokenSource",{enumerable:!0,get:function(){return hf.CancellationTokenSource}});Object.defineProperty(P,"CancellationToken",{enumerable:!0,get:function(){return hf.CancellationToken}});var yf=ef();Object.defineProperty(P,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return yf.SharedArraySenderStrategy}});Object.defineProperty(P,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return yf.SharedArrayReceiverStrategy}});var Nc=nf();Object.defineProperty(P,"MessageReader",{enumerable:!0,get:function(){return Nc.MessageReader}});Object.defineProperty(P,"AbstractMessageReader",{enumerable:!0,get:function(){return Nc.AbstractMessageReader}});Object.defineProperty(P,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return Nc.ReadableStreamMessageReader}});var Oc=cf();Object.defineProperty(P,"MessageWriter",{enumerable:!0,get:function(){return Oc.MessageWriter}});Object.defineProperty(P,"AbstractMessageWriter",{enumerable:!0,get:function(){return Oc.AbstractMessageWriter}});Object.defineProperty(P,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return Oc.WriteableStreamMessageWriter}});var _C=uf();Object.defineProperty(P,"AbstractMessageBuffer",{enumerable:!0,get:function(){return _C.AbstractMessageBuffer}});var ke=gf();Object.defineProperty(P,"ConnectionStrategy",{enumerable:!0,get:function(){return ke.ConnectionStrategy}});Object.defineProperty(P,"ConnectionOptions",{enumerable:!0,get:function(){return ke.ConnectionOptions}});Object.defineProperty(P,"NullLogger",{enumerable:!0,get:function(){return ke.NullLogger}});Object.defineProperty(P,"createMessageConnection",{enumerable:!0,get:function(){return ke.createMessageConnection}});Object.defineProperty(P,"ProgressToken",{enumerable:!0,get:function(){return ke.ProgressToken}});Object.defineProperty(P,"ProgressType",{enumerable:!0,get:function(){return ke.ProgressType}});Object.defineProperty(P,"Trace",{enumerable:!0,get:function(){return ke.Trace}});Object.defineProperty(P,"TraceValues",{enumerable:!0,get:function(){return ke.TraceValues}});Object.defineProperty(P,"TraceFormat",{enumerable:!0,get:function(){return ke.TraceFormat}});Object.defineProperty(P,"SetTraceNotification",{enumerable:!0,get:function(){return ke.SetTraceNotification}});Object.defineProperty(P,"LogTraceNotification",{enumerable:!0,get:function(){return ke.LogTraceNotification}});Object.defineProperty(P,"ConnectionErrors",{enumerable:!0,get:function(){return ke.ConnectionErrors}});Object.defineProperty(P,"ConnectionError",{enumerable:!0,get:function(){return ke.ConnectionError}});Object.defineProperty(P,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return ke.CancellationReceiverStrategy}});Object.defineProperty(P,"CancellationSenderStrategy",{enumerable:!0,get:function(){return ke.CancellationSenderStrategy}});Object.defineProperty(P,"CancellationStrategy",{enumerable:!0,get:function(){return ke.CancellationStrategy}});Object.defineProperty(P,"MessageStrategy",{enumerable:!0,get:function(){return ke.MessageStrategy}});var CC=zt();P.RAL=CC.default});var vf=T(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});var xt=vo(),Po=class e extends xt.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 qc=class{constructor(t){this.socket=t,this._onData=new xt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,xt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),xt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),xt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),xt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},jc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),xt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),xt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),xt.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()}},TC=new TextEncoder,bf=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(TC.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 qc(e),asWritableStream:e=>new jc(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 Mc(){return bf}(function(e){function t(){xt.RAL.install(bf)}e.install=t})(Mc||(Mc={}));Ic.default=Mc});var yn=T(Je=>{"use strict";var SC=Je&&Je.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),DC=Je&&Je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&SC(t,e,n)};Object.defineProperty(Je,"__esModule",{value:!0});Je.createMessageConnection=Je.BrowserMessageWriter=Je.BrowserMessageReader=void 0;var RC=vf();RC.default.install();var Gn=vo();DC(vo(),Je);var Lc=class extends Gn.AbstractMessageReader{constructor(t){super(),this._onData=new Gn.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)}};Je.BrowserMessageReader=Lc;var Fc=class extends Gn.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(){}};Je.BrowserMessageWriter=Fc;function wC(e,t,n,r){return n===void 0&&(n=Gn.NullLogger),Gn.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Gn.createMessageConnection)(e,t,n,r)}Je.createMessageConnection=wC});var Uc=T((WR,Pf)=>{"use strict";Pf.exports=yn()});var Ao={};Ls(Ao,{AnnotatedTextEdit:()=>Ot,ChangeAnnotation:()=>bn,ChangeAnnotationIdentifier:()=>Ee,CodeAction:()=>xu,CodeActionContext:()=>Pu,CodeActionKind:()=>vu,CodeActionTriggerKind:()=>zr,CodeDescription:()=>Qc,CodeLens:()=>_u,Color:()=>_o,ColorInformation:()=>zc,ColorPresentation:()=>Yc,Command:()=>vn,CompletionItem:()=>au,CompletionItemKind:()=>tu,CompletionItemLabelDetails:()=>su,CompletionItemTag:()=>ru,CompletionList:()=>cu,CreateFile:()=>Jn,DeleteFile:()=>Zn,Diagnostic:()=>Ur,DiagnosticRelatedInformation:()=>Co,DiagnosticSeverity:()=>Kc,DiagnosticTag:()=>Gc,DocumentHighlight:()=>fu,DocumentHighlightKind:()=>du,DocumentLink:()=>Tu,DocumentSymbol:()=>bu,DocumentUri:()=>Wc,EOL:()=>AC,FoldingRange:()=>Vc,FoldingRangeKind:()=>$c,FormattingOptions:()=>Cu,Hover:()=>uu,InlayHint:()=>Ou,InlayHintKind:()=>Ro,InlayHintLabelPart:()=>wo,InlineCompletionContext:()=>Fu,InlineCompletionItem:()=>ju,InlineCompletionList:()=>Mu,InlineCompletionTriggerKind:()=>Iu,InlineValueContext:()=>Nu,InlineValueEvaluatableExpression:()=>Eu,InlineValueText:()=>Au,InlineValueVariableLookup:()=>ku,InsertReplaceEdit:()=>iu,InsertTextFormat:()=>nu,InsertTextMode:()=>ou,Location:()=>Fr,LocationLink:()=>Bc,MarkedString:()=>Br,MarkupContent:()=>er,MarkupKind:()=>Do,OptionalVersionedTextDocumentIdentifier:()=>Hr,ParameterInformation:()=>lu,Position:()=>et,Range:()=>fe,RenameFile:()=>Xn,SelectedCompletionInfo:()=>Lu,SelectionRange:()=>Su,SemanticTokenModifiers:()=>Ru,SemanticTokenTypes:()=>Du,SemanticTokens:()=>wu,SignatureInformation:()=>pu,StringValue:()=>qu,SymbolInformation:()=>hu,SymbolKind:()=>gu,SymbolTag:()=>mu,TextDocument:()=>Wu,TextDocumentEdit:()=>Wr,TextDocumentIdentifier:()=>Xc,TextDocumentItem:()=>eu,TextEdit:()=>_t,URI:()=>xo,VersionedTextDocumentIdentifier:()=>Zc,WorkspaceChange:()=>Jc,WorkspaceEdit:()=>To,WorkspaceFolder:()=>Uu,WorkspaceSymbol:()=>yu,integer:()=>Hc,uinteger:()=>Lr});var Wc,xo,Hc,Lr,et,fe,Fr,Bc,_o,zc,Yc,$c,Vc,Co,Kc,Gc,Qc,Ur,vn,_t,bn,Ee,Ot,Wr,Jn,Xn,Zn,To,Qn,So,Jc,Xc,Zc,Hr,eu,Do,er,tu,nu,ru,iu,ou,su,au,cu,Br,uu,lu,pu,du,fu,gu,mu,hu,yu,bu,vu,zr,Pu,xu,_u,Cu,Tu,Su,Du,Ru,wu,Au,ku,Eu,Nu,Ro,wo,Ou,qu,ju,Mu,Iu,Lu,Fu,Uu,AC,Wu,Hu,f,ko=zl(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})(Wc||(Wc={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(xo||(xo={}));(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})(Hc||(Hc={}));(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})(Lr||(Lr={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Lr.MAX_VALUE),i===Number.MAX_VALUE&&(i=Lr.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})(Fr||(Fr={}));(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})(Bc||(Bc={}));(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)&&fe.is(i.range)&&_o.is(i.color)}e.is=n})(zc||(zc={}));(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)||_t.is(i))&&(f.undefined(i.additionalTextEdits)||f.typedArray(i.additionalTextEdits,_t.is))}e.is=n})(Yc||(Yc={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})($c||($c={}));(function(e){function t(r,i,o,s,a,c){let l={startLine:r,endLine:i};return f.defined(o)&&(l.startCharacter=o),f.defined(s)&&(l.endCharacter=s),f.defined(a)&&(l.kind=a),f.defined(c)&&(l.collapsedText=c),l}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.startLine)&&f.uinteger(i.startLine)&&(f.undefined(i.startCharacter)||f.uinteger(i.startCharacter))&&(f.undefined(i.endCharacter)||f.uinteger(i.endCharacter))&&(f.undefined(i.kind)||f.string(i.kind))}e.is=n})(Vc||(Vc={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Fr.is(i.location)&&f.string(i.message)}e.is=n})(Co||(Co={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Kc||(Kc={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(Gc||(Gc={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(Qc||(Qc={}));(function(e){function t(r,i,o,s,a,c){let l={range:r,message:i};return f.defined(o)&&(l.severity=o),f.defined(s)&&(l.code=s),f.defined(a)&&(l.source=a),f.defined(c)&&(l.relatedInformation=c),l}e.create=t;function n(r){var i;let o=r;return f.defined(o)&&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,Co.is))}e.is=n})(Ur||(Ur={}));(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})(vn||(vn={}));(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})(_t||(_t={}));(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})(bn||(bn={}));(function(e){function t(n){let r=n;return f.string(r)}e.is=t})(Ee||(Ee={}));(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 _t.is(s)&&(bn.is(s.annotationId)||Ee.is(s.annotationId))}e.is=i})(Ot||(Ot={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Hr.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Wr||(Wr={}));(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||Ee.is(i.annotationId))}e.is=n})(Jn||(Jn={}));(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||Ee.is(i.annotationId))}e.is=n})(Xn||(Xn={}));(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||Ee.is(i.annotationId))}e.is=n})(Zn||(Zn={}));(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)?Jn.is(i)||Xn.is(i)||Zn.is(i):Wr.is(i)))}e.is=t})(To||(To={}));Qn=class{constructor(t,n){this.edits=t,this.changeAnnotations=n}insert(t,n,r){let i,o;if(r===void 0?i=_t.insert(t,n):Ee.is(r)?(o=r,i=Ot.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Ot.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=_t.replace(t,n):Ee.is(r)?(o=r,i=Ot.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Ot.replace(t,n,o)),this.edits.push(i),o!==void 0)return o}delete(t,n){let r,i;if(n===void 0?r=_t.del(t):Ee.is(n)?(i=n,r=Ot.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Ot.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.")}},So=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(Ee.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()}},Jc=class{constructor(t){this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new So(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(n=>{if(Wr.is(n)){let r=new Qn(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new Qn(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(Hr.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 Qn(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 Qn(r),this._textEditChanges[t]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new So,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;bn.is(n)||Ee.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Jn.create(t,r):(s=Ee.is(i)?i:this._changeAnnotations.manage(i),o=Jn.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;bn.is(r)||Ee.is(r)?o=r:i=r;let s,a;if(o===void 0?s=Xn.create(t,n,i):(a=Ee.is(o)?o:this._changeAnnotations.manage(o),s=Xn.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;bn.is(n)||Ee.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Zn.create(t,r):(s=Ee.is(i)?i:this._changeAnnotations.manage(i),o=Zn.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})(Xc||(Xc={}));(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})(Zc||(Zc={}));(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})(Hr||(Hr={}));(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})(eu||(eu={}));(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})(er||(er={}));(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})(tu||(tu={}));(function(e){e.PlainText=1,e.Snippet=2})(nu||(nu={}));(function(e){e.Deprecated=1})(ru||(ru={}));(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})(iu||(iu={}));(function(e){e.asIs=1,e.adjustIndentation=2})(ou||(ou={}));(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})(su||(su={}));(function(e){function t(n){return{label:n}}e.create=t})(au||(au={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(cu||(cu={}));(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})(Br||(Br={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(er.is(r.contents)||Br.is(r.contents)||f.typedArray(r.contents,Br.is))&&(n.range===void 0||fe.is(n.range))}e.is=t})(uu||(uu={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(lu||(lu={}));(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})(pu||(pu={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(du||(du={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(fu||(fu={}));(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})(gu||(gu={}));(function(e){e.Deprecated=1})(mu||(mu={}));(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})(hu||(hu={}));(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})(yu||(yu={}));(function(e){function t(r,i,o,s,a,c){let l={name:r,detail:i,kind:o,range:s,selectionRange:a};return c!==void 0&&(l.children=c),l}e.create=t;function n(r){let i=r;return i&&f.string(i.name)&&f.number(i.kind)&&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})(bu||(bu={}));(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"})(vu||(vu={}));(function(e){e.Invoked=1,e.Automatic=2})(zr||(zr={}));(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,Ur.is)&&(i.only===void 0||f.typedArray(i.only,f.string))&&(i.triggerKind===void 0||i.triggerKind===zr.Invoked||i.triggerKind===zr.Automatic)}e.is=n})(Pu||(Pu={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):vn.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,Ur.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||vn.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||To.is(i.edit))}e.is=n})(xu||(xu={}));(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)||vn.is(i.command))}e.is=n})(_u||(_u={}));(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})(Cu||(Cu={}));(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})(Tu||(Tu={}));(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})(Su||(Su={}));(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"})(Du||(Du={}));(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"})(Ru||(Ru={}));(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})(wu||(wu={}));(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})(Au||(Au={}));(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})(ku||(ku={}));(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})(Eu||(Eu={}));(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})(Nu||(Nu={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(Ro||(Ro={}));(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)||er.is(i.tooltip))&&(i.location===void 0||Fr.is(i.location))&&(i.command===void 0||vn.is(i.command))}e.is=n})(wo||(wo={}));(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,wo.is))&&(i.kind===void 0||Ro.is(i.kind))&&i.textEdits===void 0||f.typedArray(i.textEdits,_t.is)&&(i.tooltip===void 0||f.string(i.tooltip)||er.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(Ou||(Ou={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(qu||(qu={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(ju||(ju={}));(function(e){function t(n){return{items:n}}e.create=t})(Mu||(Mu={}));(function(e){e.Invoked=0,e.Automatic=1})(Iu||(Iu={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(Lu||(Lu={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(Fu||(Fu={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&xo.is(r.uri)&&f.string(r.name)}e.is=t})(Uu||(Uu={}));AC=[`
|
|
65
|
+
`)),_){let I=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";$.log(`Received response '${_.method} - (${p.id})' in ${Date.now()-_.timerStart}ms.${I}`,k)}else $.log(`Received response ${p.id} without active response promise.`,k)}else Sn("receive-response",p)}function Sn(p,_){if(!$||g===J.Off)return;let k={isLSPMessage:!0,type:p,message:_,timestamp:Date.now()};$.log(k)}function yr(){if(M())throw new Kn(jr.Closed,"Connection is closed.");if(N())throw new Kn(jr.Disposed,"Connection is disposed.")}function Jy(){if(O())throw new Kn(jr.AlreadyListening,"Connection is already listening")}function Xy(){if(!O())throw new Error("Call listen() first.")}function br(p){return p===void 0?null:p}function Wl(p){if(p!==null)return p}function Hl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function Ms(p,_){switch(p){case U.ParameterStructures.auto:return Hl(_)?Wl(_):[br(_)];case U.ParameterStructures.byName:if(!Hl(_))throw new Error("Received parameters by name but param is not an object literal.");return Wl(_);case U.ParameterStructures.byPosition:return[br(_)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function Bl(p,_){let k,I=p.numberOfParams;switch(I){case 0:k=void 0;break;case 1:k=Ms(p.parameterStructures,_[0]);break;default:k=[];for(let re=0;re<_.length&&re<I;re++)k.push(br(_[re]));if(_.length<I)for(let re=_.length;re<I;re++)k.push(null);break}return k}let Dn={sendNotification:(p,..._)=>{yr();let k,I;if(ue.string(p)){k=p;let te=_[0],le=0,he=U.ParameterStructures.auto;U.ParameterStructures.is(te)&&(le=1,he=te);let G=_.length,ae=G-le;switch(ae){case 0:I=void 0;break;case 1:I=Ms(he,_[le]);break;default:if(he===U.ParameterStructures.byName)throw new Error(`Received ${ae} parameters for 'by Name' notification parameter structure.`);I=_.slice(le,G).map(Z=>br(Z));break}}else{let te=_;k=p.method,I=Bl(p,te)}let re={jsonrpc:c,method:k,params:I};return Ky(re),t.write(re).catch(te=>{throw i.error("Sending notification failed."),te})},onNotification:(p,_)=>{yr();let k;return ue.func(p)?h=p:_&&(ue.string(p)?(k=p,v.set(p,{type:void 0,handler:_})):(k=p.method,v.set(p.method,{type:p,handler:_}))),{dispose:()=>{k!==void 0?v.delete(k):h=void 0}}},onProgress:(p,_,k)=>{if(y.has(_))throw new Error(`Progress handler for token ${_} already registered`);return y.set(_,k),{dispose:()=>{y.delete(_)}}},sendProgress:(p,_,k)=>Dn.sendNotification(qr.type,{token:_,value:k}),onUnhandledProgress:Tn.event,sendRequest:(p,..._)=>{yr(),Xy();let k,I,re;if(ue.string(p)){k=p;let G=_[0],ae=_[_.length-1],Z=0,_e=U.ParameterStructures.auto;U.ParameterStructures.is(G)&&(Z=1,_e=G);let Ie=_.length;Tc.CancellationToken.is(ae)&&(Ie=Ie-1,re=ae);let ft=Ie-Z;switch(ft){case 0:I=void 0;break;case 1:I=Ms(_e,_[Z]);break;default:if(_e===U.ParameterStructures.byName)throw new Error(`Received ${ft} parameters for 'by Name' request parameter structure.`);I=_.slice(Z,Ie).map(Zy=>br(Zy));break}}else{let G=_;k=p.method,I=Bl(p,G);let ae=p.numberOfParams;re=Tc.CancellationToken.is(G[ae])?G[ae]:void 0}let te=o++,le;re&&(le=re.onCancellationRequested(()=>{let G=b.sender.sendCancellation(Dn,te);return G===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${te}`),Promise.resolve()):G.catch(()=>{i.log(`Sending cancellation messages for id ${te} failed`)})}));let he={jsonrpc:c,id:te,method:k,params:I};return Vy(he),typeof b.sender.enableCancellation=="function"&&b.sender.enableCancellation(he),new Promise(async(G,ae)=>{let Z=ft=>{G(ft),b.sender.cleanup(te),le?.dispose()},_e=ft=>{ae(ft),b.sender.cleanup(te),le?.dispose()},Ie={method:k,timerStart:Date.now(),resolve:Z,reject:_e};try{await t.write(he),Y.set(te,Ie)}catch(ft){throw i.error("Sending request failed."),Ie.reject(new U.ResponseError(U.ErrorCodes.MessageWriteError,ft.message?ft.message:"Unknown reason")),ft}})},onRequest:(p,_)=>{yr();let k=null;return Rc.is(p)?(k=void 0,l=p):ue.string(p)?(k=null,_!==void 0&&(k=p,d.set(p,{handler:_,type:void 0}))):_!==void 0&&(k=p.method,d.set(p.method,{type:p,handler:_})),{dispose:()=>{k!==null&&(k!==void 0?d.delete(k):l=void 0)}}},hasPendingResponse:()=>Y.size>0,trace:async(p,_,k)=>{let I=!1,re=Qe.Text;k!==void 0&&(ue.boolean(k)?I=k:(I=k.sendNotification||!1,re=k.traceFormat||Qe.Text)),g=p,w=re,g===J.Off?$=void 0:$=_,I&&!M()&&!N()&&await Dn.sendNotification(wc.type,{value:J.toString(p)})},onError:st.event,onClose:Mt.event,onUnhandledNotification:on.event,onDispose:A.event,end:()=>{t.end()},dispose:()=>{if(N())return;X=ut.Disposed,A.fire(void 0);let p=new U.ResponseError(U.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let _ of Y.values())_.reject(p);Y=new Map,m=new Map,V=new Set,L=new df.LinkedMap,ue.func(t.dispose)&&t.dispose(),ue.func(e.dispose)&&e.dispose()},listen:()=>{yr(),Jy(),X=ut.Listening,e.listen(Hy)},inspect:()=>{(0,pf.default)().console.log("inspect")}};return Dn.onNotification(po.type,p=>{if(g===J.Off||!$)return;let _=g===J.Verbose||g===J.Compact;$.log(p.message,_?p.verbose:void 0)}),Dn.onNotification(qr.type,p=>{let _=y.get(p.token);_?_(p.value):Tn.fire(p)}),Dn}B.createMessageConnection=xC});var bo=T(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 ne=nc();Object.defineProperty(P,"Message",{enumerable:!0,get:function(){return ne.Message}});Object.defineProperty(P,"RequestType",{enumerable:!0,get:function(){return ne.RequestType}});Object.defineProperty(P,"RequestType0",{enumerable:!0,get:function(){return ne.RequestType0}});Object.defineProperty(P,"RequestType1",{enumerable:!0,get:function(){return ne.RequestType1}});Object.defineProperty(P,"RequestType2",{enumerable:!0,get:function(){return ne.RequestType2}});Object.defineProperty(P,"RequestType3",{enumerable:!0,get:function(){return ne.RequestType3}});Object.defineProperty(P,"RequestType4",{enumerable:!0,get:function(){return ne.RequestType4}});Object.defineProperty(P,"RequestType5",{enumerable:!0,get:function(){return ne.RequestType5}});Object.defineProperty(P,"RequestType6",{enumerable:!0,get:function(){return ne.RequestType6}});Object.defineProperty(P,"RequestType7",{enumerable:!0,get:function(){return ne.RequestType7}});Object.defineProperty(P,"RequestType8",{enumerable:!0,get:function(){return ne.RequestType8}});Object.defineProperty(P,"RequestType9",{enumerable:!0,get:function(){return ne.RequestType9}});Object.defineProperty(P,"ResponseError",{enumerable:!0,get:function(){return ne.ResponseError}});Object.defineProperty(P,"ErrorCodes",{enumerable:!0,get:function(){return ne.ErrorCodes}});Object.defineProperty(P,"NotificationType",{enumerable:!0,get:function(){return ne.NotificationType}});Object.defineProperty(P,"NotificationType0",{enumerable:!0,get:function(){return ne.NotificationType0}});Object.defineProperty(P,"NotificationType1",{enumerable:!0,get:function(){return ne.NotificationType1}});Object.defineProperty(P,"NotificationType2",{enumerable:!0,get:function(){return ne.NotificationType2}});Object.defineProperty(P,"NotificationType3",{enumerable:!0,get:function(){return ne.NotificationType3}});Object.defineProperty(P,"NotificationType4",{enumerable:!0,get:function(){return ne.NotificationType4}});Object.defineProperty(P,"NotificationType5",{enumerable:!0,get:function(){return ne.NotificationType5}});Object.defineProperty(P,"NotificationType6",{enumerable:!0,get:function(){return ne.NotificationType6}});Object.defineProperty(P,"NotificationType7",{enumerable:!0,get:function(){return ne.NotificationType7}});Object.defineProperty(P,"NotificationType8",{enumerable:!0,get:function(){return ne.NotificationType8}});Object.defineProperty(P,"NotificationType9",{enumerable:!0,get:function(){return ne.NotificationType9}});Object.defineProperty(P,"ParameterStructures",{enumerable:!0,get:function(){return ne.ParameterStructures}});var Ec=ic();Object.defineProperty(P,"LinkedMap",{enumerable:!0,get:function(){return Ec.LinkedMap}});Object.defineProperty(P,"LRUCache",{enumerable:!0,get:function(){return Ec.LRUCache}});Object.defineProperty(P,"Touch",{enumerable:!0,get:function(){return Ec.Touch}});var _C=Zd();Object.defineProperty(P,"Disposable",{enumerable:!0,get:function(){return _C.Disposable}});var hf=zn();Object.defineProperty(P,"Event",{enumerable:!0,get:function(){return hf.Event}});Object.defineProperty(P,"Emitter",{enumerable:!0,get:function(){return hf.Emitter}});var yf=so();Object.defineProperty(P,"CancellationTokenSource",{enumerable:!0,get:function(){return yf.CancellationTokenSource}});Object.defineProperty(P,"CancellationToken",{enumerable:!0,get:function(){return yf.CancellationToken}});var bf=tf();Object.defineProperty(P,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return bf.SharedArraySenderStrategy}});Object.defineProperty(P,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return bf.SharedArrayReceiverStrategy}});var Nc=rf();Object.defineProperty(P,"MessageReader",{enumerable:!0,get:function(){return Nc.MessageReader}});Object.defineProperty(P,"AbstractMessageReader",{enumerable:!0,get:function(){return Nc.AbstractMessageReader}});Object.defineProperty(P,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return Nc.ReadableStreamMessageReader}});var Oc=uf();Object.defineProperty(P,"MessageWriter",{enumerable:!0,get:function(){return Oc.MessageWriter}});Object.defineProperty(P,"AbstractMessageWriter",{enumerable:!0,get:function(){return Oc.AbstractMessageWriter}});Object.defineProperty(P,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return Oc.WriteableStreamMessageWriter}});var CC=lf();Object.defineProperty(P,"AbstractMessageBuffer",{enumerable:!0,get:function(){return CC.AbstractMessageBuffer}});var ke=mf();Object.defineProperty(P,"ConnectionStrategy",{enumerable:!0,get:function(){return ke.ConnectionStrategy}});Object.defineProperty(P,"ConnectionOptions",{enumerable:!0,get:function(){return ke.ConnectionOptions}});Object.defineProperty(P,"NullLogger",{enumerable:!0,get:function(){return ke.NullLogger}});Object.defineProperty(P,"createMessageConnection",{enumerable:!0,get:function(){return ke.createMessageConnection}});Object.defineProperty(P,"ProgressToken",{enumerable:!0,get:function(){return ke.ProgressToken}});Object.defineProperty(P,"ProgressType",{enumerable:!0,get:function(){return ke.ProgressType}});Object.defineProperty(P,"Trace",{enumerable:!0,get:function(){return ke.Trace}});Object.defineProperty(P,"TraceValues",{enumerable:!0,get:function(){return ke.TraceValues}});Object.defineProperty(P,"TraceFormat",{enumerable:!0,get:function(){return ke.TraceFormat}});Object.defineProperty(P,"SetTraceNotification",{enumerable:!0,get:function(){return ke.SetTraceNotification}});Object.defineProperty(P,"LogTraceNotification",{enumerable:!0,get:function(){return ke.LogTraceNotification}});Object.defineProperty(P,"ConnectionErrors",{enumerable:!0,get:function(){return ke.ConnectionErrors}});Object.defineProperty(P,"ConnectionError",{enumerable:!0,get:function(){return ke.ConnectionError}});Object.defineProperty(P,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return ke.CancellationReceiverStrategy}});Object.defineProperty(P,"CancellationSenderStrategy",{enumerable:!0,get:function(){return ke.CancellationSenderStrategy}});Object.defineProperty(P,"CancellationStrategy",{enumerable:!0,get:function(){return ke.CancellationStrategy}});Object.defineProperty(P,"MessageStrategy",{enumerable:!0,get:function(){return ke.MessageStrategy}});var TC=zt();P.RAL=TC.default});var Pf=T(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});var xt=bo(),vo=class e extends xt.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)}};vo.emptyBuffer=new Uint8Array(0);var qc=class{constructor(t){this.socket=t,this._onData=new xt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,xt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),xt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),xt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),xt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},jc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),xt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),xt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),xt.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()}},SC=new TextEncoder,vf=Object.freeze({messageBuffer:Object.freeze({create:e=>new vo(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(SC.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 qc(e),asWritableStream:e=>new jc(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 Mc(){return vf}(function(e){function t(){xt.RAL.install(vf)}e.install=t})(Mc||(Mc={}));Ic.default=Mc});var yn=T(Je=>{"use strict";var DC=Je&&Je.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),RC=Je&&Je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&DC(t,e,n)};Object.defineProperty(Je,"__esModule",{value:!0});Je.createMessageConnection=Je.BrowserMessageWriter=Je.BrowserMessageReader=void 0;var wC=Pf();wC.default.install();var Gn=bo();RC(bo(),Je);var Lc=class extends Gn.AbstractMessageReader{constructor(t){super(),this._onData=new Gn.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)}};Je.BrowserMessageReader=Lc;var Fc=class extends Gn.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(){}};Je.BrowserMessageWriter=Fc;function AC(e,t,n,r){return n===void 0&&(n=Gn.NullLogger),Gn.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Gn.createMessageConnection)(e,t,n,r)}Je.createMessageConnection=AC});var Uc=T((HR,xf)=>{"use strict";xf.exports=yn()});var wo={};Is(wo,{AnnotatedTextEdit:()=>Ot,ChangeAnnotation:()=>bn,ChangeAnnotationIdentifier:()=>Ee,CodeAction:()=>xu,CodeActionContext:()=>Pu,CodeActionKind:()=>vu,CodeActionTriggerKind:()=>Br,CodeDescription:()=>Qc,CodeLens:()=>_u,Color:()=>xo,ColorInformation:()=>zc,ColorPresentation:()=>Yc,Command:()=>vn,CompletionItem:()=>au,CompletionItemKind:()=>tu,CompletionItemLabelDetails:()=>su,CompletionItemTag:()=>ru,CompletionList:()=>cu,CreateFile:()=>Jn,DeleteFile:()=>Zn,Diagnostic:()=>Fr,DiagnosticRelatedInformation:()=>_o,DiagnosticSeverity:()=>Kc,DiagnosticTag:()=>Gc,DocumentHighlight:()=>fu,DocumentHighlightKind:()=>du,DocumentLink:()=>Tu,DocumentSymbol:()=>bu,DocumentUri:()=>Wc,EOL:()=>kC,FoldingRange:()=>Vc,FoldingRangeKind:()=>$c,FormattingOptions:()=>Cu,Hover:()=>uu,InlayHint:()=>Ou,InlayHintKind:()=>Do,InlayHintLabelPart:()=>Ro,InlineCompletionContext:()=>Fu,InlineCompletionItem:()=>ju,InlineCompletionList:()=>Mu,InlineCompletionTriggerKind:()=>Iu,InlineValueContext:()=>Nu,InlineValueEvaluatableExpression:()=>Eu,InlineValueText:()=>Au,InlineValueVariableLookup:()=>ku,InsertReplaceEdit:()=>iu,InsertTextFormat:()=>nu,InsertTextMode:()=>ou,Location:()=>Lr,LocationLink:()=>Bc,MarkedString:()=>Hr,MarkupContent:()=>er,MarkupKind:()=>So,OptionalVersionedTextDocumentIdentifier:()=>Wr,ParameterInformation:()=>lu,Position:()=>et,Range:()=>fe,RenameFile:()=>Xn,SelectedCompletionInfo:()=>Lu,SelectionRange:()=>Su,SemanticTokenModifiers:()=>Ru,SemanticTokenTypes:()=>Du,SemanticTokens:()=>wu,SignatureInformation:()=>pu,StringValue:()=>qu,SymbolInformation:()=>hu,SymbolKind:()=>gu,SymbolTag:()=>mu,TextDocument:()=>Wu,TextDocumentEdit:()=>Ur,TextDocumentIdentifier:()=>Xc,TextDocumentItem:()=>eu,TextEdit:()=>_t,URI:()=>Po,VersionedTextDocumentIdentifier:()=>Zc,WorkspaceChange:()=>Jc,WorkspaceEdit:()=>Co,WorkspaceFolder:()=>Uu,WorkspaceSymbol:()=>yu,integer:()=>Hc,uinteger:()=>Ir});var Wc,Po,Hc,Ir,et,fe,Lr,Bc,xo,zc,Yc,$c,Vc,_o,Kc,Gc,Qc,Fr,vn,_t,bn,Ee,Ot,Ur,Jn,Xn,Zn,Co,Qn,To,Jc,Xc,Zc,Wr,eu,So,er,tu,nu,ru,iu,ou,su,au,cu,Hr,uu,lu,pu,du,fu,gu,mu,hu,yu,bu,vu,Br,Pu,xu,_u,Cu,Tu,Su,Du,Ru,wu,Au,ku,Eu,Nu,Do,Ro,Ou,qu,ju,Mu,Iu,Lu,Fu,Uu,kC,Wu,Hu,f,Ao=zl(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})(Wc||(Wc={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(Po||(Po={}));(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})(Hc||(Hc={}));(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})(Ir||(Ir={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Ir.MAX_VALUE),i===Number.MAX_VALUE&&(i=Ir.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})(Lr||(Lr={}));(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})(Bc||(Bc={}));(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})(xo||(xo={}));(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)&&xo.is(i.color)}e.is=n})(zc||(zc={}));(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)||_t.is(i))&&(f.undefined(i.additionalTextEdits)||f.typedArray(i.additionalTextEdits,_t.is))}e.is=n})(Yc||(Yc={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})($c||($c={}));(function(e){function t(r,i,o,s,a,c){let l={startLine:r,endLine:i};return f.defined(o)&&(l.startCharacter=o),f.defined(s)&&(l.endCharacter=s),f.defined(a)&&(l.kind=a),f.defined(c)&&(l.collapsedText=c),l}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.startLine)&&f.uinteger(i.startLine)&&(f.undefined(i.startCharacter)||f.uinteger(i.startCharacter))&&(f.undefined(i.endCharacter)||f.uinteger(i.endCharacter))&&(f.undefined(i.kind)||f.string(i.kind))}e.is=n})(Vc||(Vc={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Lr.is(i.location)&&f.string(i.message)}e.is=n})(_o||(_o={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Kc||(Kc={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(Gc||(Gc={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(Qc||(Qc={}));(function(e){function t(r,i,o,s,a,c){let l={range:r,message:i};return f.defined(o)&&(l.severity=o),f.defined(s)&&(l.code=s),f.defined(a)&&(l.source=a),f.defined(c)&&(l.relatedInformation=c),l}e.create=t;function n(r){var i;let o=r;return f.defined(o)&&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,_o.is))}e.is=n})(Fr||(Fr={}));(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})(vn||(vn={}));(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})(_t||(_t={}));(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})(bn||(bn={}));(function(e){function t(n){let r=n;return f.string(r)}e.is=t})(Ee||(Ee={}));(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 _t.is(s)&&(bn.is(s.annotationId)||Ee.is(s.annotationId))}e.is=i})(Ot||(Ot={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Wr.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Ur||(Ur={}));(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||Ee.is(i.annotationId))}e.is=n})(Jn||(Jn={}));(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||Ee.is(i.annotationId))}e.is=n})(Xn||(Xn={}));(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||Ee.is(i.annotationId))}e.is=n})(Zn||(Zn={}));(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)?Jn.is(i)||Xn.is(i)||Zn.is(i):Ur.is(i)))}e.is=t})(Co||(Co={}));Qn=class{constructor(t,n){this.edits=t,this.changeAnnotations=n}insert(t,n,r){let i,o;if(r===void 0?i=_t.insert(t,n):Ee.is(r)?(o=r,i=Ot.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Ot.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=_t.replace(t,n):Ee.is(r)?(o=r,i=Ot.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Ot.replace(t,n,o)),this.edits.push(i),o!==void 0)return o}delete(t,n){let r,i;if(n===void 0?r=_t.del(t):Ee.is(n)?(i=n,r=Ot.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Ot.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.")}},To=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(Ee.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()}},Jc=class{constructor(t){this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new To(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(n=>{if(Ur.is(n)){let r=new Qn(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new Qn(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(Wr.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 Qn(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 Qn(r),this._textEditChanges[t]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new To,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;bn.is(n)||Ee.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Jn.create(t,r):(s=Ee.is(i)?i:this._changeAnnotations.manage(i),o=Jn.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;bn.is(r)||Ee.is(r)?o=r:i=r;let s,a;if(o===void 0?s=Xn.create(t,n,i):(a=Ee.is(o)?o:this._changeAnnotations.manage(o),s=Xn.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;bn.is(n)||Ee.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Zn.create(t,r):(s=Ee.is(i)?i:this._changeAnnotations.manage(i),o=Zn.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})(Xc||(Xc={}));(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})(Zc||(Zc={}));(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})(Wr||(Wr={}));(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})(eu||(eu={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(So||(So={}));(function(e){function t(n){let r=n;return f.objectLiteral(n)&&So.is(r.kind)&&f.string(r.value)}e.is=t})(er||(er={}));(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})(tu||(tu={}));(function(e){e.PlainText=1,e.Snippet=2})(nu||(nu={}));(function(e){e.Deprecated=1})(ru||(ru={}));(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})(iu||(iu={}));(function(e){e.asIs=1,e.adjustIndentation=2})(ou||(ou={}));(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})(su||(su={}));(function(e){function t(n){return{label:n}}e.create=t})(au||(au={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(cu||(cu={}));(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})(Hr||(Hr={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(er.is(r.contents)||Hr.is(r.contents)||f.typedArray(r.contents,Hr.is))&&(n.range===void 0||fe.is(n.range))}e.is=t})(uu||(uu={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(lu||(lu={}));(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})(pu||(pu={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(du||(du={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(fu||(fu={}));(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})(gu||(gu={}));(function(e){e.Deprecated=1})(mu||(mu={}));(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})(hu||(hu={}));(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})(yu||(yu={}));(function(e){function t(r,i,o,s,a,c){let l={name:r,detail:i,kind:o,range:s,selectionRange:a};return c!==void 0&&(l.children=c),l}e.create=t;function n(r){let i=r;return i&&f.string(i.name)&&f.number(i.kind)&&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})(bu||(bu={}));(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"})(vu||(vu={}));(function(e){e.Invoked=1,e.Automatic=2})(Br||(Br={}));(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,Fr.is)&&(i.only===void 0||f.typedArray(i.only,f.string))&&(i.triggerKind===void 0||i.triggerKind===Br.Invoked||i.triggerKind===Br.Automatic)}e.is=n})(Pu||(Pu={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):vn.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,Fr.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||vn.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||Co.is(i.edit))}e.is=n})(xu||(xu={}));(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)||vn.is(i.command))}e.is=n})(_u||(_u={}));(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})(Cu||(Cu={}));(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})(Tu||(Tu={}));(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})(Su||(Su={}));(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"})(Du||(Du={}));(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"})(Ru||(Ru={}));(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})(wu||(wu={}));(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})(Au||(Au={}));(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})(ku||(ku={}));(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})(Eu||(Eu={}));(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})(Nu||(Nu={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(Do||(Do={}));(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)||er.is(i.tooltip))&&(i.location===void 0||Lr.is(i.location))&&(i.command===void 0||vn.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||Do.is(i.kind))&&i.textEdits===void 0||f.typedArray(i.textEdits,_t.is)&&(i.tooltip===void 0||f.string(i.tooltip)||er.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(Ou||(Ou={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(qu||(qu={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(ju||(ju={}));(function(e){function t(n){return{items:n}}e.create=t})(Mu||(Mu={}));(function(e){e.Invoked=0,e.Automatic=1})(Iu||(Iu={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(Lu||(Lu={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(Fu||(Fu={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&Po.is(r.uri)&&f.string(r.name)}e.is=t})(Uu||(Uu={}));kC=[`
|
|
66
66
|
`,`\r
|
|
67
67
|
`,"\r"];(function(e){function t(o,s,a,c){return new Hu(o,s,a,c)}e.create=t;function n(o){let s=o;return!!(f.defined(s)&&f.string(s.uri)&&(f.undefined(s.languageId)||f.string(s.languageId))&&f.uinteger(s.lineCount)&&f.func(s.getText)&&f.func(s.positionAt)&&f.func(s.offsetAt))}e.is=n;function r(o,s){let a=o.getText(),c=i(s,(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),l=a.length;for(let d=c.length-1;d>=0;d--){let h=c[d],v=o.offsetAt(h.range.start),y=o.offsetAt(h.range.end);if(y<=l)a=a.substring(0,v)+h.newText+a.substring(y,a.length);else throw new Error("Overlapping edit");l=v}return a}e.applyEdits=r;function i(o,s){if(o.length<=1)return o;let a=o.length/2|0,c=o.slice(0,a),l=o.slice(a);i(c,s),i(l,s);let d=0,h=0,v=0;for(;d<c.length&&h<l.length;)s(c[d],l[h])<=0?o[v++]=c[d++]:o[v++]=l[h++];for(;d<c.length;)o[v++]=c[d++];for(;h<l.length;)o[v++]=l[h++];return o}})(Wu||(Wu={}));Hu=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 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,D,L){return t.call(y)==="[object Number]"&&D<=y&&y<=L}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function l(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=l;function d(y){return t.call(y)==="[object Function]"}e.func=d;function h(y){return y!==null&&typeof y=="object"}e.objectLiteral=h;function v(y,D){return Array.isArray(y)&&y.every(D)}e.typedArray=v})(f||(f={}))});var se=T(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.ProtocolNotificationType=Ye.ProtocolNotificationType0=Ye.ProtocolRequestType=Ye.ProtocolRequestType0=Ye.RegistrationType=Ye.MessageDirection=void 0;var tr=yn(),xf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(xf||(Ye.MessageDirection=xf={}));var Bu=class{constructor(t){this.method=t}};Ye.RegistrationType=Bu;var zu=class extends tr.RequestType0{constructor(t){super(t)}};Ye.ProtocolRequestType0=zu;var Yu=class extends tr.RequestType{constructor(t){super(t,tr.ParameterStructures.byName)}};Ye.ProtocolRequestType=Yu;var $u=class extends tr.NotificationType0{constructor(t){super(t)}};Ye.ProtocolNotificationType0=$u;var Vu=class extends tr.NotificationType{constructor(t){super(t,tr.ParameterStructures.byName)}};Ye.ProtocolNotificationType=Vu});var Eo=T(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 kC(e){return e===!0||e===!1}Pe.boolean=kC;function _f(e){return typeof e=="string"||e instanceof String}Pe.string=_f;function EC(e){return typeof e=="number"||e instanceof Number}Pe.number=EC;function NC(e){return e instanceof Error}Pe.error=NC;function OC(e){return typeof e=="function"}Pe.func=OC;function Cf(e){return Array.isArray(e)}Pe.array=Cf;function qC(e){return Cf(e)&&e.every(t=>_f(t))}Pe.stringArray=qC;function jC(e,t){return Array.isArray(e)&&e.every(t)}Pe.typedArray=jC;function MC(e){return e!==null&&typeof e=="object"}Pe.objectLiteral=MC});var Df=T(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.ImplementationRequest=void 0;var Tf=se(),Sf;(function(e){e.method="textDocument/implementation",e.messageDirection=Tf.MessageDirection.clientToServer,e.type=new Tf.ProtocolRequestType(e.method)})(Sf||(No.ImplementationRequest=Sf={}))});var Af=T(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.TypeDefinitionRequest=void 0;var Rf=se(),wf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=Rf.MessageDirection.clientToServer,e.type=new Rf.ProtocolRequestType(e.method)})(wf||(Oo.TypeDefinitionRequest=wf={}))});var Nf=T(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.DidChangeWorkspaceFoldersNotification=nr.WorkspaceFoldersRequest=void 0;var qo=se(),kf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=qo.MessageDirection.serverToClient,e.type=new qo.ProtocolRequestType0(e.method)})(kf||(nr.WorkspaceFoldersRequest=kf={}));var Ef;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=qo.MessageDirection.clientToServer,e.type=new qo.ProtocolNotificationType(e.method)})(Ef||(nr.DidChangeWorkspaceFoldersNotification=Ef={}))});var jf=T(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.ConfigurationRequest=void 0;var Of=se(),qf;(function(e){e.method="workspace/configuration",e.messageDirection=Of.MessageDirection.serverToClient,e.type=new Of.ProtocolRequestType(e.method)})(qf||(jo.ConfigurationRequest=qf={}))});var Lf=T(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.ColorPresentationRequest=rr.DocumentColorRequest=void 0;var Mo=se(),Mf;(function(e){e.method="textDocument/documentColor",e.messageDirection=Mo.MessageDirection.clientToServer,e.type=new Mo.ProtocolRequestType(e.method)})(Mf||(rr.DocumentColorRequest=Mf={}));var If;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=Mo.MessageDirection.clientToServer,e.type=new Mo.ProtocolRequestType(e.method)})(If||(rr.ColorPresentationRequest=If={}))});var Wf=T(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.FoldingRangeRefreshRequest=ir.FoldingRangeRequest=void 0;var Io=se(),Ff;(function(e){e.method="textDocument/foldingRange",e.messageDirection=Io.MessageDirection.clientToServer,e.type=new Io.ProtocolRequestType(e.method)})(Ff||(ir.FoldingRangeRequest=Ff={}));var Uf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=Io.MessageDirection.serverToClient,e.type=new Io.ProtocolRequestType0(e.method)})(Uf||(ir.FoldingRangeRefreshRequest=Uf={}))});var zf=T(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.DeclarationRequest=void 0;var Hf=se(),Bf;(function(e){e.method="textDocument/declaration",e.messageDirection=Hf.MessageDirection.clientToServer,e.type=new Hf.ProtocolRequestType(e.method)})(Bf||(Lo.DeclarationRequest=Bf={}))});var Vf=T(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.SelectionRangeRequest=void 0;var Yf=se(),$f;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Yf.MessageDirection.clientToServer,e.type=new Yf.ProtocolRequestType(e.method)})($f||(Fo.SelectionRangeRequest=$f={}))});var Jf=T(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.WorkDoneProgressCancelNotification=Vt.WorkDoneProgressCreateRequest=Vt.WorkDoneProgress=void 0;var IC=yn(),Uo=se(),Kf;(function(e){e.type=new IC.ProgressType;function t(n){return n===e.type}e.is=t})(Kf||(Vt.WorkDoneProgress=Kf={}));var Gf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Uo.MessageDirection.serverToClient,e.type=new Uo.ProtocolRequestType(e.method)})(Gf||(Vt.WorkDoneProgressCreateRequest=Gf={}));var Qf;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Uo.MessageDirection.clientToServer,e.type=new Uo.ProtocolNotificationType(e.method)})(Qf||(Vt.WorkDoneProgressCancelNotification=Qf={}))});var tg=T(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.CallHierarchyOutgoingCallsRequest=Kt.CallHierarchyIncomingCallsRequest=Kt.CallHierarchyPrepareRequest=void 0;var or=se(),Xf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(Xf||(Kt.CallHierarchyPrepareRequest=Xf={}));var Zf;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(Zf||(Kt.CallHierarchyIncomingCallsRequest=Zf={}));var eg;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(eg||(Kt.CallHierarchyOutgoingCallsRequest=eg={}))});var ag=T($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.SemanticTokensRefreshRequest=$e.SemanticTokensRangeRequest=$e.SemanticTokensDeltaRequest=$e.SemanticTokensRequest=$e.SemanticTokensRegistrationType=$e.TokenFormat=void 0;var qt=se(),ng;(function(e){e.Relative="relative"})(ng||($e.TokenFormat=ng={}));var Yr;(function(e){e.method="textDocument/semanticTokens",e.type=new qt.RegistrationType(e.method)})(Yr||($e.SemanticTokensRegistrationType=Yr={}));var rg;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=Yr.method})(rg||($e.SemanticTokensRequest=rg={}));var ig;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=Yr.method})(ig||($e.SemanticTokensDeltaRequest=ig={}));var og;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=Yr.method})(og||($e.SemanticTokensRangeRequest=og={}));var sg;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=qt.MessageDirection.serverToClient,e.type=new qt.ProtocolRequestType0(e.method)})(sg||($e.SemanticTokensRefreshRequest=sg={}))});var lg=T(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.ShowDocumentRequest=void 0;var cg=se(),ug;(function(e){e.method="window/showDocument",e.messageDirection=cg.MessageDirection.serverToClient,e.type=new cg.ProtocolRequestType(e.method)})(ug||(Wo.ShowDocumentRequest=ug={}))});var fg=T(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.LinkedEditingRangeRequest=void 0;var pg=se(),dg;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=pg.MessageDirection.clientToServer,e.type=new pg.ProtocolRequestType(e.method)})(dg||(Ho.LinkedEditingRangeRequest=dg={}))});var xg=T(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.WillDeleteFilesRequest=je.DidDeleteFilesNotification=je.DidRenameFilesNotification=je.WillRenameFilesRequest=je.DidCreateFilesNotification=je.WillCreateFilesRequest=je.FileOperationPatternKind=void 0;var tt=se(),gg;(function(e){e.file="file",e.folder="folder"})(gg||(je.FileOperationPatternKind=gg={}));var mg;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=tt.MessageDirection.clientToServer,e.type=new tt.ProtocolRequestType(e.method)})(mg||(je.WillCreateFilesRequest=mg={}));var hg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=tt.MessageDirection.clientToServer,e.type=new tt.ProtocolNotificationType(e.method)})(hg||(je.DidCreateFilesNotification=hg={}));var yg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=tt.MessageDirection.clientToServer,e.type=new tt.ProtocolRequestType(e.method)})(yg||(je.WillRenameFilesRequest=yg={}));var bg;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=tt.MessageDirection.clientToServer,e.type=new tt.ProtocolNotificationType(e.method)})(bg||(je.DidRenameFilesNotification=bg={}));var vg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=tt.MessageDirection.clientToServer,e.type=new tt.ProtocolNotificationType(e.method)})(vg||(je.DidDeleteFilesNotification=vg={}));var Pg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=tt.MessageDirection.clientToServer,e.type=new tt.ProtocolRequestType(e.method)})(Pg||(je.WillDeleteFilesRequest=Pg={}))});var Dg=T(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.MonikerRequest=Gt.MonikerKind=Gt.UniquenessLevel=void 0;var _g=se(),Cg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(Cg||(Gt.UniquenessLevel=Cg={}));var Tg;(function(e){e.$import="import",e.$export="export",e.local="local"})(Tg||(Gt.MonikerKind=Tg={}));var Sg;(function(e){e.method="textDocument/moniker",e.messageDirection=_g.MessageDirection.clientToServer,e.type=new _g.ProtocolRequestType(e.method)})(Sg||(Gt.MonikerRequest=Sg={}))});var kg=T(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.TypeHierarchySubtypesRequest=Qt.TypeHierarchySupertypesRequest=Qt.TypeHierarchyPrepareRequest=void 0;var sr=se(),Rg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=sr.MessageDirection.clientToServer,e.type=new sr.ProtocolRequestType(e.method)})(Rg||(Qt.TypeHierarchyPrepareRequest=Rg={}));var wg;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=sr.MessageDirection.clientToServer,e.type=new sr.ProtocolRequestType(e.method)})(wg||(Qt.TypeHierarchySupertypesRequest=wg={}));var Ag;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=sr.MessageDirection.clientToServer,e.type=new sr.ProtocolRequestType(e.method)})(Ag||(Qt.TypeHierarchySubtypesRequest=Ag={}))});var Og=T(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.InlineValueRefreshRequest=ar.InlineValueRequest=void 0;var Bo=se(),Eg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=Bo.MessageDirection.clientToServer,e.type=new Bo.ProtocolRequestType(e.method)})(Eg||(ar.InlineValueRequest=Eg={}));var Ng;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=Bo.MessageDirection.serverToClient,e.type=new Bo.ProtocolRequestType0(e.method)})(Ng||(ar.InlineValueRefreshRequest=Ng={}))});var Ig=T(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.InlayHintRefreshRequest=Jt.InlayHintResolveRequest=Jt.InlayHintRequest=void 0;var cr=se(),qg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=cr.MessageDirection.clientToServer,e.type=new cr.ProtocolRequestType(e.method)})(qg||(Jt.InlayHintRequest=qg={}));var jg;(function(e){e.method="inlayHint/resolve",e.messageDirection=cr.MessageDirection.clientToServer,e.type=new cr.ProtocolRequestType(e.method)})(jg||(Jt.InlayHintResolveRequest=jg={}));var Mg;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=cr.MessageDirection.serverToClient,e.type=new cr.ProtocolRequestType0(e.method)})(Mg||(Jt.InlayHintRefreshRequest=Mg={}))});var zg=T(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.DiagnosticRefreshRequest=nt.WorkspaceDiagnosticRequest=nt.DocumentDiagnosticRequest=nt.DocumentDiagnosticReportKind=nt.DiagnosticServerCancellationData=void 0;var Bg=yn(),LC=Eo(),ur=se(),Lg;(function(e){function t(n){let r=n;return r&&LC.boolean(r.retriggerRequest)}e.is=t})(Lg||(nt.DiagnosticServerCancellationData=Lg={}));var Fg;(function(e){e.Full="full",e.Unchanged="unchanged"})(Fg||(nt.DocumentDiagnosticReportKind=Fg={}));var Ug;(function(e){e.method="textDocument/diagnostic",e.messageDirection=ur.MessageDirection.clientToServer,e.type=new ur.ProtocolRequestType(e.method),e.partialResult=new Bg.ProgressType})(Ug||(nt.DocumentDiagnosticRequest=Ug={}));var Wg;(function(e){e.method="workspace/diagnostic",e.messageDirection=ur.MessageDirection.clientToServer,e.type=new ur.ProtocolRequestType(e.method),e.partialResult=new Bg.ProgressType})(Wg||(nt.WorkspaceDiagnosticRequest=Wg={}));var Hg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=ur.MessageDirection.serverToClient,e.type=new ur.ProtocolRequestType0(e.method)})(Hg||(nt.DiagnosticRefreshRequest=Hg={}))});var Jg=T(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 $r=(ko(),ui(Ao)),lt=Eo(),Ct=se(),Ku;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Ku||(ge.NotebookCellKind=Ku={}));var Gu;(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)&&$r.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})(Gu||(ge.ExecutionSummary=Gu={}));var zo;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return lt.objectLiteral(s)&&Ku.is(s.kind)&&$r.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)&&!Gu.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}e.diff=r;function i(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let a=Array.isArray(o),c=Array.isArray(s);if(a!==c)return!1;if(a&&c){if(o.length!==s.length)return!1;for(let l=0;l<o.length;l++)if(!i(o[l],s[l]))return!1}if(lt.objectLiteral(o)&<.objectLiteral(s)){let l=Object.keys(o),d=Object.keys(s);if(l.length!==d.length||(l.sort(),d.sort(),!i(l,d)))return!1;for(let h=0;h<l.length;h++){let v=l[h];if(!i(o[v],s[v]))return!1}}return!0}})(zo||(ge.NotebookCell=zo={}));var Yg;(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)&&$r.integer.is(i.version)&<.typedArray(i.cells,zo.is)}e.is=n})(Yg||(ge.NotebookDocument=Yg={}));var lr;(function(e){e.method="notebookDocument/sync",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.RegistrationType(e.method)})(lr||(ge.NotebookDocumentSyncRegistrationType=lr={}));var $g;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.ProtocolNotificationType(e.method),e.registrationMethod=lr.method})($g||(ge.DidOpenNotebookDocumentNotification=$g={}));var Vg;(function(e){function t(r){let i=r;return lt.objectLiteral(i)&&$r.uinteger.is(i.start)&&$r.uinteger.is(i.deleteCount)&&(i.cells===void 0||lt.typedArray(i.cells,zo.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})(Vg||(ge.NotebookCellArrayChange=Vg={}));var Kg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.ProtocolNotificationType(e.method),e.registrationMethod=lr.method})(Kg||(ge.DidChangeNotebookDocumentNotification=Kg={}));var Gg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.ProtocolNotificationType(e.method),e.registrationMethod=lr.method})(Gg||(ge.DidSaveNotebookDocumentNotification=Gg={}));var Qg;(function(e){e.method="notebookDocument/didClose",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.ProtocolNotificationType(e.method),e.registrationMethod=lr.method})(Qg||(ge.DidCloseNotebookDocumentNotification=Qg={}))});var em=T(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.InlineCompletionRequest=void 0;var Xg=se(),Zg;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=Xg.MessageDirection.clientToServer,e.type=new Xg.ProtocolRequestType(e.method)})(Zg||(Yo.InlineCompletionRequest=Zg={}))});var fh=T(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.WorkspaceSymbolRequest=u.CodeActionResolveRequest=u.CodeActionRequest=u.DocumentSymbolRequest=u.DocumentHighlightRequest=u.ReferencesRequest=u.DefinitionRequest=u.SignatureHelpRequest=u.SignatureHelpTriggerKind=u.HoverRequest=u.CompletionResolveRequest=u.CompletionRequest=u.CompletionTriggerKind=u.PublishDiagnosticsNotification=u.WatchKind=u.RelativePattern=u.FileChangeType=u.DidChangeWatchedFilesNotification=u.WillSaveTextDocumentWaitUntilRequest=u.WillSaveTextDocumentNotification=u.TextDocumentSaveReason=u.DidSaveTextDocumentNotification=u.DidCloseTextDocumentNotification=u.DidChangeTextDocumentNotification=u.TextDocumentContentChangeEvent=u.DidOpenTextDocumentNotification=u.TextDocumentSyncKind=u.TelemetryEventNotification=u.LogMessageNotification=u.ShowMessageRequest=u.ShowMessageNotification=u.MessageType=u.DidChangeConfigurationNotification=u.ExitNotification=u.ShutdownRequest=u.InitializedNotification=u.InitializeErrorCodes=u.InitializeRequest=u.WorkDoneProgressOptions=u.TextDocumentRegistrationOptions=u.StaticRegistrationOptions=u.PositionEncodingKind=u.FailureHandlingKind=u.ResourceOperationKind=u.UnregistrationRequest=u.RegistrationRequest=u.DocumentSelector=u.NotebookCellTextDocumentFilter=u.NotebookDocumentFilter=u.TextDocumentFilter=void 0;u.MonikerRequest=u.MonikerKind=u.UniquenessLevel=u.WillDeleteFilesRequest=u.DidDeleteFilesNotification=u.WillRenameFilesRequest=u.DidRenameFilesNotification=u.WillCreateFilesRequest=u.DidCreateFilesNotification=u.FileOperationPatternKind=u.LinkedEditingRangeRequest=u.ShowDocumentRequest=u.SemanticTokensRegistrationType=u.SemanticTokensRefreshRequest=u.SemanticTokensRangeRequest=u.SemanticTokensDeltaRequest=u.SemanticTokensRequest=u.TokenFormat=u.CallHierarchyPrepareRequest=u.CallHierarchyOutgoingCallsRequest=u.CallHierarchyIncomingCallsRequest=u.WorkDoneProgressCancelNotification=u.WorkDoneProgressCreateRequest=u.WorkDoneProgress=u.SelectionRangeRequest=u.DeclarationRequest=u.FoldingRangeRefreshRequest=u.FoldingRangeRequest=u.ColorPresentationRequest=u.DocumentColorRequest=u.ConfigurationRequest=u.DidChangeWorkspaceFoldersNotification=u.WorkspaceFoldersRequest=u.TypeDefinitionRequest=u.ImplementationRequest=u.ApplyWorkspaceEditRequest=u.ExecuteCommandRequest=u.PrepareRenameRequest=u.RenameRequest=u.PrepareSupportDefaultBehavior=u.DocumentOnTypeFormattingRequest=u.DocumentRangesFormattingRequest=u.DocumentRangeFormattingRequest=u.DocumentFormattingRequest=u.DocumentLinkResolveRequest=u.DocumentLinkRequest=u.CodeLensRefreshRequest=u.CodeLensResolveRequest=u.CodeLensRequest=u.WorkspaceSymbolResolveRequest=void 0;u.InlineCompletionRequest=u.DidCloseNotebookDocumentNotification=u.DidSaveNotebookDocumentNotification=u.DidChangeNotebookDocumentNotification=u.NotebookCellArrayChange=u.DidOpenNotebookDocumentNotification=u.NotebookDocumentSyncRegistrationType=u.NotebookDocument=u.NotebookCell=u.ExecutionSummary=u.NotebookCellKind=u.DiagnosticRefreshRequest=u.WorkspaceDiagnosticRequest=u.DocumentDiagnosticRequest=u.DocumentDiagnosticReportKind=u.DiagnosticServerCancellationData=u.InlayHintRefreshRequest=u.InlayHintResolveRequest=u.InlayHintRequest=u.InlineValueRefreshRequest=u.InlineValueRequest=u.TypeHierarchySupertypesRequest=u.TypeHierarchySubtypesRequest=u.TypeHierarchyPrepareRequest=void 0;var R=se(),tm=(ko(),ui(Ao)),Re=Eo(),FC=Df();Object.defineProperty(u,"ImplementationRequest",{enumerable:!0,get:function(){return FC.ImplementationRequest}});var UC=Af();Object.defineProperty(u,"TypeDefinitionRequest",{enumerable:!0,get:function(){return UC.TypeDefinitionRequest}});var uh=Nf();Object.defineProperty(u,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return uh.WorkspaceFoldersRequest}});Object.defineProperty(u,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return uh.DidChangeWorkspaceFoldersNotification}});var WC=jf();Object.defineProperty(u,"ConfigurationRequest",{enumerable:!0,get:function(){return WC.ConfigurationRequest}});var lh=Lf();Object.defineProperty(u,"DocumentColorRequest",{enumerable:!0,get:function(){return lh.DocumentColorRequest}});Object.defineProperty(u,"ColorPresentationRequest",{enumerable:!0,get:function(){return lh.ColorPresentationRequest}});var ph=Wf();Object.defineProperty(u,"FoldingRangeRequest",{enumerable:!0,get:function(){return ph.FoldingRangeRequest}});Object.defineProperty(u,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return ph.FoldingRangeRefreshRequest}});var HC=zf();Object.defineProperty(u,"DeclarationRequest",{enumerable:!0,get:function(){return HC.DeclarationRequest}});var BC=Vf();Object.defineProperty(u,"SelectionRangeRequest",{enumerable:!0,get:function(){return BC.SelectionRangeRequest}});var el=Jf();Object.defineProperty(u,"WorkDoneProgress",{enumerable:!0,get:function(){return el.WorkDoneProgress}});Object.defineProperty(u,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return el.WorkDoneProgressCreateRequest}});Object.defineProperty(u,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return el.WorkDoneProgressCancelNotification}});var tl=tg();Object.defineProperty(u,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return tl.CallHierarchyIncomingCallsRequest}});Object.defineProperty(u,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return tl.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(u,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return tl.CallHierarchyPrepareRequest}});var pr=ag();Object.defineProperty(u,"TokenFormat",{enumerable:!0,get:function(){return pr.TokenFormat}});Object.defineProperty(u,"SemanticTokensRequest",{enumerable:!0,get:function(){return pr.SemanticTokensRequest}});Object.defineProperty(u,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return pr.SemanticTokensDeltaRequest}});Object.defineProperty(u,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return pr.SemanticTokensRangeRequest}});Object.defineProperty(u,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return pr.SemanticTokensRefreshRequest}});Object.defineProperty(u,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return pr.SemanticTokensRegistrationType}});var zC=lg();Object.defineProperty(u,"ShowDocumentRequest",{enumerable:!0,get:function(){return zC.ShowDocumentRequest}});var YC=fg();Object.defineProperty(u,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return YC.LinkedEditingRangeRequest}});var Pn=xg();Object.defineProperty(u,"FileOperationPatternKind",{enumerable:!0,get:function(){return Pn.FileOperationPatternKind}});Object.defineProperty(u,"DidCreateFilesNotification",{enumerable:!0,get:function(){return Pn.DidCreateFilesNotification}});Object.defineProperty(u,"WillCreateFilesRequest",{enumerable:!0,get:function(){return Pn.WillCreateFilesRequest}});Object.defineProperty(u,"DidRenameFilesNotification",{enumerable:!0,get:function(){return Pn.DidRenameFilesNotification}});Object.defineProperty(u,"WillRenameFilesRequest",{enumerable:!0,get:function(){return Pn.WillRenameFilesRequest}});Object.defineProperty(u,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return Pn.DidDeleteFilesNotification}});Object.defineProperty(u,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return Pn.WillDeleteFilesRequest}});var nl=Dg();Object.defineProperty(u,"UniquenessLevel",{enumerable:!0,get:function(){return nl.UniquenessLevel}});Object.defineProperty(u,"MonikerKind",{enumerable:!0,get:function(){return nl.MonikerKind}});Object.defineProperty(u,"MonikerRequest",{enumerable:!0,get:function(){return nl.MonikerRequest}});var rl=kg();Object.defineProperty(u,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return rl.TypeHierarchyPrepareRequest}});Object.defineProperty(u,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return rl.TypeHierarchySubtypesRequest}});Object.defineProperty(u,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return rl.TypeHierarchySupertypesRequest}});var dh=Og();Object.defineProperty(u,"InlineValueRequest",{enumerable:!0,get:function(){return dh.InlineValueRequest}});Object.defineProperty(u,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return dh.InlineValueRefreshRequest}});var il=Ig();Object.defineProperty(u,"InlayHintRequest",{enumerable:!0,get:function(){return il.InlayHintRequest}});Object.defineProperty(u,"InlayHintResolveRequest",{enumerable:!0,get:function(){return il.InlayHintResolveRequest}});Object.defineProperty(u,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return il.InlayHintRefreshRequest}});var Vr=zg();Object.defineProperty(u,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Vr.DiagnosticServerCancellationData}});Object.defineProperty(u,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Vr.DocumentDiagnosticReportKind}});Object.defineProperty(u,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Vr.DocumentDiagnosticRequest}});Object.defineProperty(u,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Vr.WorkspaceDiagnosticRequest}});Object.defineProperty(u,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Vr.DiagnosticRefreshRequest}});var Tt=Jg();Object.defineProperty(u,"NotebookCellKind",{enumerable:!0,get:function(){return Tt.NotebookCellKind}});Object.defineProperty(u,"ExecutionSummary",{enumerable:!0,get:function(){return Tt.ExecutionSummary}});Object.defineProperty(u,"NotebookCell",{enumerable:!0,get:function(){return Tt.NotebookCell}});Object.defineProperty(u,"NotebookDocument",{enumerable:!0,get:function(){return Tt.NotebookDocument}});Object.defineProperty(u,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return Tt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(u,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return Tt.DidOpenNotebookDocumentNotification}});Object.defineProperty(u,"NotebookCellArrayChange",{enumerable:!0,get:function(){return Tt.NotebookCellArrayChange}});Object.defineProperty(u,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return Tt.DidChangeNotebookDocumentNotification}});Object.defineProperty(u,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return Tt.DidSaveNotebookDocumentNotification}});Object.defineProperty(u,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return Tt.DidCloseNotebookDocumentNotification}});var $C=em();Object.defineProperty(u,"InlineCompletionRequest",{enumerable:!0,get:function(){return $C.InlineCompletionRequest}});var Qu;(function(e){function t(n){let r=n;return Re.string(r)||Re.string(r.language)||Re.string(r.scheme)||Re.string(r.pattern)}e.is=t})(Qu||(u.TextDocumentFilter=Qu={}));var Ju;(function(e){function t(n){let r=n;return Re.objectLiteral(r)&&(Re.string(r.notebookType)||Re.string(r.scheme)||Re.string(r.pattern))}e.is=t})(Ju||(u.NotebookDocumentFilter=Ju={}));var Xu;(function(e){function t(n){let r=n;return Re.objectLiteral(r)&&(Re.string(r.notebook)||Ju.is(r.notebook))&&(r.language===void 0||Re.string(r.language))}e.is=t})(Xu||(u.NotebookCellTextDocumentFilter=Xu={}));var Zu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Re.string(r)&&!Qu.is(r)&&!Xu.is(r))return!1;return!0}e.is=t})(Zu||(u.DocumentSelector=Zu={}));var nm;(function(e){e.method="client/registerCapability",e.messageDirection=R.MessageDirection.serverToClient,e.type=new R.ProtocolRequestType(e.method)})(nm||(u.RegistrationRequest=nm={}));var rm;(function(e){e.method="client/unregisterCapability",e.messageDirection=R.MessageDirection.serverToClient,e.type=new R.ProtocolRequestType(e.method)})(rm||(u.UnregistrationRequest=rm={}));var im;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(im||(u.ResourceOperationKind=im={}));var om;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(om||(u.FailureHandlingKind=om={}));var sm;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(sm||(u.PositionEncodingKind=sm={}));var am;(function(e){function t(n){let r=n;return r&&Re.string(r.id)&&r.id.length>0}e.hasId=t})(am||(u.StaticRegistrationOptions=am={}));var cm;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||Zu.is(r.documentSelector))}e.is=t})(cm||(u.TextDocumentRegistrationOptions=cm={}));var um;(function(e){function t(r){let i=r;return Re.objectLiteral(i)&&(i.workDoneProgress===void 0||Re.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&Re.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(um||(u.WorkDoneProgressOptions=um={}));var lm;(function(e){e.method="initialize",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(lm||(u.InitializeRequest=lm={}));var pm;(function(e){e.unknownProtocolVersion=1})(pm||(u.InitializeErrorCodes=pm={}));var dm;(function(e){e.method="initialized",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolNotificationType(e.method)})(dm||(u.InitializedNotification=dm={}));var fm;(function(e){e.method="shutdown",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType0(e.method)})(fm||(u.ShutdownRequest=fm={}));var gm;(function(e){e.method="exit",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolNotificationType0(e.method)})(gm||(u.ExitNotification=gm={}));var mm;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolNotificationType(e.method)})(mm||(u.DidChangeConfigurationNotification=mm={}));var hm;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(hm||(u.MessageType=hm={}));var ym;(function(e){e.method="window/showMessage",e.messageDirection=R.MessageDirection.serverToClient,e.type=new R.ProtocolNotificationType(e.method)})(ym||(u.ShowMessageNotification=ym={}));var bm;(function(e){e.method="window/showMessageRequest",e.messageDirection=R.MessageDirection.serverToClient,e.type=new R.ProtocolRequestType(e.method)})(bm||(u.ShowMessageRequest=bm={}));var vm;(function(e){e.method="window/logMessage",e.messageDirection=R.MessageDirection.serverToClient,e.type=new R.ProtocolNotificationType(e.method)})(vm||(u.LogMessageNotification=vm={}));var Pm;(function(e){e.method="telemetry/event",e.messageDirection=R.MessageDirection.serverToClient,e.type=new R.ProtocolNotificationType(e.method)})(Pm||(u.TelemetryEventNotification=Pm={}));var xm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(xm||(u.TextDocumentSyncKind=xm={}));var _m;(function(e){e.method="textDocument/didOpen",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolNotificationType(e.method)})(_m||(u.DidOpenTextDocumentNotification=_m={}));var Cm;(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})(Cm||(u.TextDocumentContentChangeEvent=Cm={}));var Tm;(function(e){e.method="textDocument/didChange",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolNotificationType(e.method)})(Tm||(u.DidChangeTextDocumentNotification=Tm={}));var Sm;(function(e){e.method="textDocument/didClose",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolNotificationType(e.method)})(Sm||(u.DidCloseTextDocumentNotification=Sm={}));var Dm;(function(e){e.method="textDocument/didSave",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolNotificationType(e.method)})(Dm||(u.DidSaveTextDocumentNotification=Dm={}));var Rm;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(Rm||(u.TextDocumentSaveReason=Rm={}));var wm;(function(e){e.method="textDocument/willSave",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolNotificationType(e.method)})(wm||(u.WillSaveTextDocumentNotification=wm={}));var Am;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Am||(u.WillSaveTextDocumentWaitUntilRequest=Am={}));var km;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolNotificationType(e.method)})(km||(u.DidChangeWatchedFilesNotification=km={}));var Em;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(Em||(u.FileChangeType=Em={}));var Nm;(function(e){function t(n){let r=n;return Re.objectLiteral(r)&&(tm.URI.is(r.baseUri)||tm.WorkspaceFolder.is(r.baseUri))&&Re.string(r.pattern)}e.is=t})(Nm||(u.RelativePattern=Nm={}));var Om;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Om||(u.WatchKind=Om={}));var qm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=R.MessageDirection.serverToClient,e.type=new R.ProtocolNotificationType(e.method)})(qm||(u.PublishDiagnosticsNotification=qm={}));var jm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(jm||(u.CompletionTriggerKind=jm={}));var Mm;(function(e){e.method="textDocument/completion",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Mm||(u.CompletionRequest=Mm={}));var Im;(function(e){e.method="completionItem/resolve",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Im||(u.CompletionResolveRequest=Im={}));var Lm;(function(e){e.method="textDocument/hover",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Lm||(u.HoverRequest=Lm={}));var Fm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Fm||(u.SignatureHelpTriggerKind=Fm={}));var Um;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Um||(u.SignatureHelpRequest=Um={}));var Wm;(function(e){e.method="textDocument/definition",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Wm||(u.DefinitionRequest=Wm={}));var Hm;(function(e){e.method="textDocument/references",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Hm||(u.ReferencesRequest=Hm={}));var Bm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Bm||(u.DocumentHighlightRequest=Bm={}));var zm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(zm||(u.DocumentSymbolRequest=zm={}));var Ym;(function(e){e.method="textDocument/codeAction",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Ym||(u.CodeActionRequest=Ym={}));var $m;(function(e){e.method="codeAction/resolve",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})($m||(u.CodeActionResolveRequest=$m={}));var Vm;(function(e){e.method="workspace/symbol",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Vm||(u.WorkspaceSymbolRequest=Vm={}));var Km;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Km||(u.WorkspaceSymbolResolveRequest=Km={}));var Gm;(function(e){e.method="textDocument/codeLens",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Gm||(u.CodeLensRequest=Gm={}));var Qm;(function(e){e.method="codeLens/resolve",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Qm||(u.CodeLensResolveRequest=Qm={}));var Jm;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=R.MessageDirection.serverToClient,e.type=new R.ProtocolRequestType0(e.method)})(Jm||(u.CodeLensRefreshRequest=Jm={}));var Xm;(function(e){e.method="textDocument/documentLink",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Xm||(u.DocumentLinkRequest=Xm={}));var Zm;(function(e){e.method="documentLink/resolve",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Zm||(u.DocumentLinkResolveRequest=Zm={}));var eh;(function(e){e.method="textDocument/formatting",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(eh||(u.DocumentFormattingRequest=eh={}));var th;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(th||(u.DocumentRangeFormattingRequest=th={}));var nh;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(nh||(u.DocumentRangesFormattingRequest=nh={}));var rh;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(rh||(u.DocumentOnTypeFormattingRequest=rh={}));var ih;(function(e){e.Identifier=1})(ih||(u.PrepareSupportDefaultBehavior=ih={}));var oh;(function(e){e.method="textDocument/rename",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(oh||(u.RenameRequest=oh={}));var sh;(function(e){e.method="textDocument/prepareRename",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(sh||(u.PrepareRenameRequest=sh={}));var ah;(function(e){e.method="workspace/executeCommand",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(ah||(u.ExecuteCommandRequest=ah={}));var ch;(function(e){e.method="workspace/applyEdit",e.messageDirection=R.MessageDirection.serverToClient,e.type=new R.ProtocolRequestType("workspace/applyEdit")})(ch||(u.ApplyWorkspaceEditRequest=ch={}))});var mh=T($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.createProtocolConnection=void 0;var gh=yn();function VC(e,t,n,r){return gh.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,gh.createMessageConnection)(e,t,n,r)}$o.createProtocolConnection=VC});var yh=T(Ve=>{"use strict";var KC=Ve&&Ve.__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]})),Vo=Ve&&Ve.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&KC(t,e,n)};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.LSPErrorCodes=Ve.createProtocolConnection=void 0;Vo(yn(),Ve);Vo((ko(),ui(Ao)),Ve);Vo(se(),Ve);Vo(fh(),Ve);var GC=mh();Object.defineProperty(Ve,"createProtocolConnection",{enumerable:!0,get:function(){return GC.createProtocolConnection}});var hh;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(hh||(Ve.LSPErrorCodes=hh={}))});var ve=T(St=>{"use strict";var QC=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]})),bh=St&&St.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&QC(t,e,n)};Object.defineProperty(St,"__esModule",{value:!0});St.createProtocolConnection=void 0;var JC=Uc();bh(Uc(),St);bh(yh(),St);function XC(e,t,n,r){return(0,JC.createMessageConnection)(e,t,n,r)}St.createProtocolConnection=XC});var sl=T(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.SemanticTokensBuilder=Xt.SemanticTokensDiff=Xt.SemanticTokensFeature=void 0;var Ko=ve(),ZC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(Ko.SemanticTokensRefreshRequest.type),on:t=>{let n=Ko.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=Ko.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=Ko.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Xt.SemanticTokensFeature=ZC;var Go=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}]:[]}};Xt.SemanticTokensDiff=Go;var ol=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 Go(this._prevData,this._data).computeDiff()}:this.build()}};Xt.SemanticTokensBuilder=ol});var vh=T(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.InlineCompletionFeature=void 0;var e0=ve(),t0=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(e0.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Qo.InlineCompletionFeature=t0});var cl=T(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.TextDocuments=void 0;var xn=ve(),al=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new xn.Emitter,this._onDidOpen=new xn.Emitter,this._onDidClose=new xn.Emitter,this._onDidSave=new xn.Emitter,this._onWillSave=new xn.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=xn.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}))})),xn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Jo.TextDocuments=al});var ll=T(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.NotebookDocuments=dr.NotebookSyncFeature=void 0;var rt=ve(),Ph=cl(),n0=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)})}}};dr.NotebookSyncFeature=n0;var Xo=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}};Xo.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var ul=class{constructor(t){t instanceof Ph.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new Ph.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 Xo,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let l=[],d=[],h=[],v=[];if(c.cells!==void 0){let V=c.cells;if(V.structure!==void 0){let m=V.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),V.structure.didOpen!==void 0)for(let g of V.structure.didOpen)n.openTextDocument({textDocument:g}),l.push(g.uri);if(V.structure.didClose)for(let g of V.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(V.data!==void 0){let m=new Map(V.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 $=o.cells.splice(g,1,w);if(h.push({old:$[0],new:w}),m.delete(w.document),m.size===0)break}}}if(V.textContent!==void 0)for(let m of V.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 D=[];for(let V of l)D.push(this.getNotebookCell(V));let L=[];for(let V of d)L.push(this.getNotebookCell(V));let Y=[];for(let V of v)Y.push(this.getNotebookCell(V));(D.length>0||L.length>0||h.length>0||Y.length>0)&&(y.cells={added:D,removed:L,changed:{data:h,textContent:Y}}),(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])}};dr.NotebookDocuments=ul});var pl=T(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.thenable=xe.typedArray=xe.stringArray=xe.array=xe.func=xe.error=xe.number=xe.string=xe.boolean=void 0;function r0(e){return e===!0||e===!1}xe.boolean=r0;function xh(e){return typeof e=="string"||e instanceof String}xe.string=xh;function i0(e){return typeof e=="number"||e instanceof Number}xe.number=i0;function o0(e){return e instanceof Error}xe.error=o0;function _h(e){return typeof e=="function"}xe.func=_h;function Ch(e){return Array.isArray(e)}xe.array=Ch;function s0(e){return Ch(e)&&e.every(t=>xh(t))}xe.stringArray=s0;function a0(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=a0;function c0(e){return e&&_h(e.then)}xe.thenable=c0});var dl=T(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.generateUuid=it.parse=it.isUUID=it.v4=it.empty=void 0;var Kr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Gr=class e extends Kr{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(""))}};Gr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Gr._timeHighBits=["8","9","a","b"];it.empty=new Kr("00000000-0000-0000-0000-000000000000");function Th(){return new Gr}it.v4=Th;var u0=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function Sh(e){return u0.test(e)}it.isUUID=Sh;function l0(e){if(!Sh(e))throw new Error("invalid uuid");return new Kr(e)}it.parse=l0;function p0(){return Th().asHex()}it.generateUuid=p0});var Dh=T(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.attachPartialResult=en.ProgressFeature=en.attachWorkDone=void 0;var Zt=ve(),d0=dl(),_n=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(Zt.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(Zt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Zt.WorkDoneProgress.type,this._token,{kind:"end"})}};_n.Instances=new Map;var Zo=class extends _n{constructor(t,n){super(t,n),this._source=new Zt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Qr=class{constructor(){}begin(){}report(){}done(){}},es=class extends Qr{constructor(){super(),this._source=new Zt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function f0(e,t){if(t===void 0||t.workDoneToken===void 0)return new Qr;let n=t.workDoneToken;return delete t.workDoneToken,new _n(e,n)}en.attachWorkDone=f0;var g0=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Zt.WorkDoneProgressCancelNotification.type,n=>{let r=_n.Instances.get(n.token);(r instanceof Zo||r instanceof es)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Qr:new _n(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,d0.generateUuid)();return this.connection.sendRequest(Zt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Zo(this.connection,t))}else return Promise.resolve(new es)}};en.ProgressFeature=g0;var fl;(function(e){e.type=new Zt.ProgressType})(fl||(fl={}));var gl=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(fl.type,this._token,t)}};function m0(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new gl(e,n)}en.attachPartialResult=m0});var Rh=T(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.ConfigurationFeature=void 0;var h0=ve(),y0=pl(),b0=e=>class extends e{getConfiguration(t){return t?y0.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(h0.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};ts.ConfigurationFeature=b0});var wh=T(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.WorkspaceFoldersFeature=void 0;var ns=ve(),v0=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new ns.Emitter,this.connection.onNotification(ns.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(ns.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(ns.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};rs.WorkspaceFoldersFeature=v0});var Ah=T(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.CallHierarchyFeature=void 0;var ml=ve(),P0=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(ml.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=ml.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=ml.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};is.CallHierarchyFeature=P0});var kh=T(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.ShowDocumentFeature=void 0;var x0=ve(),_0=e=>class extends e{showDocument(t){return this.connection.sendRequest(x0.ShowDocumentRequest.type,t)}};os.ShowDocumentFeature=_0});var Eh=T(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.FileOperationsFeature=void 0;var fr=ve(),C0=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(fr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(fr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(fr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(fr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(fr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(fr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};ss.FileOperationsFeature=C0});var Nh=T(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.LinkedEditingRangeFeature=void 0;var T0=ve(),S0=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(T0.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};as.LinkedEditingRangeFeature=S0});var Oh=T(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.TypeHierarchyFeature=void 0;var hl=ve(),D0=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(hl.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=hl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=hl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};cs.TypeHierarchyFeature=D0});var jh=T(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.InlineValueFeature=void 0;var qh=ve(),R0=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(qh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(qh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};us.InlineValueFeature=R0});var Ih=T(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.FoldingRangeFeature=void 0;var Mh=ve(),w0=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(Mh.FoldingRangeRefreshRequest.type),on:t=>{let n=Mh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};ls.FoldingRangeFeature=w0});var Lh=T(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.InlayHintFeature=void 0;var yl=ve(),A0=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(yl.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(yl.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(yl.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};ps.InlayHintFeature=A0});var Fh=T(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.DiagnosticFeature=void 0;var Jr=ve(),k0=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Jr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Jr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Jr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Jr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Jr.WorkspaceDiagnosticRequest.partialResult,n)))}}};ds.DiagnosticFeature=k0});var Uh=T(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.MonikerFeature=void 0;var E0=ve(),N0=e=>class extends e{get moniker(){return{on:t=>{let n=E0.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};fs.MonikerFeature=N0});var ty=T(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=pl(),vl=dl(),H=Dh(),O0=Rh(),q0=wh(),j0=Ah(),M0=sl(),I0=kh(),L0=Eh(),F0=Nh(),U0=Oh(),W0=jh(),H0=Ih(),B0=Lh(),z0=Fh(),Y0=ll(),$0=Uh();function bl(e){if(e!==null)return e}var Pl=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=Pl;var gs=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")})}},xl=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(bl)}showWarningMessage(t,...n){let r={type:E.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(bl)}showInformationMessage(t,...n){let r={type:E.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(bl)}},Wh=(0,I0.ShowDocumentFeature)((0,H.ProgressFeature)(xl)),Hh;(function(e){function t(){return new ms}e.create=t})(Hh||(Q.BulkRegistration=Hh={}));var ms=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=vl.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Bh;(function(e){function t(){return new Xr(void 0,[])}e.create=t})(Bh||(Q.BulkUnregistration=Bh={}));var Xr=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}},hs=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 ms?this.registerMany(t):t instanceof Xr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=ot.string(n)?n:n.method,o=vl.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=vl.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 Xr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},_l=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)}},zh=(0,L0.FileOperationsFeature)((0,q0.WorkspaceFoldersFeature)((0,O0.ConfigurationFeature)(_l))),ys=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(()=>{})}},bs=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")})}},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){}attachWorkDoneProgress(t){return(0,H.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,H.attachPartialResult)(this.connection,n)}};Q._LanguagesImpl=vs;var Yh=(0,H0.FoldingRangeFeature)((0,$0.MonikerFeature)((0,z0.DiagnosticFeature)((0,B0.InlayHintFeature)((0,W0.InlineValueFeature)((0,U0.TypeHierarchyFeature)((0,F0.LinkedEditingRangeFeature)((0,M0.SemanticTokensFeature)((0,j0.CallHierarchyFeature)(vs))))))))),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 $h=(0,Y0.NotebookSyncFeature)(Ps);function Vh(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=Vh;function Kh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=Kh;function Gh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Gh;function Qh(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Qh;function Jh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=Jh;function Xh(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=Xh;function Zh(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=Zh;function ey(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=ey;function V0(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Vh),tracer:n(e.tracer,t.tracer,Gh),telemetry:n(e.telemetry,t.telemetry,Kh),client:n(e.client,t.client,Qh),window:n(e.window,t.window,Jh),workspace:n(e.workspace,t.workspace,Xh),languages:n(e.languages,t.languages,Zh),notebooks:n(e.notebooks,t.notebooks,ey)}}Q.combineFeatures=V0;function K0(e,t,n){let r=n&&n.console?new(n.console(gs)):new gs,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(ys)):new ys,s=n&&n.telemetry?new(n.telemetry(bs)):new bs,a=n&&n.client?new(n.client(hs)):new hs,c=n&&n.window?new(n.window(Wh)):new Wh,l=n&&n.workspace?new(n.workspace(zh)):new zh,d=n&&n.languages?new(n.languages(Yh)):new Yh,h=n&&n.notebooks?new(n.notebooks($h)):new $h,v=[r,o,s,a,c,l,d,h];function y(m){return m instanceof Promise?m:ot.thenable(m)?new Promise((g,w)=>{m.then($=>g($),$=>w($))}):Promise.resolve(m)}let D,L,Y,V={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 w=ot.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=>(L=m,{dispose:()=>{L=void 0}}),onInitialized:m=>i.onNotification(E.InitializedNotification.type,m),onShutdown:m=>(D=m,{dispose:()=>{D=void 0}}),onExit:m=>(Y=m,{dispose:()=>{Y=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return c},get workspace(){return l},get languages(){return d},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(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(V);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(L){let g=L(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 $=w;$||($={capabilities:{}});let X=$.capabilities;X||(X={},$.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=ot.number(V.__textDocumentSync)?V.__textDocumentSync:E.TextDocumentSyncKind.None:!ot.number(X.textDocumentSync)&&!ot.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=ot.number(V.__textDocumentSync)?V.__textDocumentSync:E.TextDocumentSyncKind.None);for(let st of v)st.fillServerCapabilities(X);return $})}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,D)return D(new E.CancellationTokenSource().token)}),i.onNotification(E.ExitNotification.type,()=>{try{Y&&Y()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(E.SetTraceNotification.type,m=>{o.trace=E.Trace.fromString(m.value)}),V}Q.createConnection=K0});var Cl=T(Me=>{"use strict";var G0=Me&&Me.__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]})),ry=Me&&Me.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&G0(t,e,n)};Object.defineProperty(Me,"__esModule",{value:!0});Me.ProposedFeatures=Me.NotebookDocuments=Me.TextDocuments=Me.SemanticTokensBuilder=void 0;var Q0=sl();Object.defineProperty(Me,"SemanticTokensBuilder",{enumerable:!0,get:function(){return Q0.SemanticTokensBuilder}});var J0=vh();ry(ve(),Me);var X0=cl();Object.defineProperty(Me,"TextDocuments",{enumerable:!0,get:function(){return X0.TextDocuments}});var Z0=ll();Object.defineProperty(Me,"NotebookDocuments",{enumerable:!0,get:function(){return Z0.NotebookDocuments}});ry(ty(),Me);var ny;(function(e){e.all={__brand:"features",languages:J0.InlineCompletionFeature}})(ny||(Me.ProposedFeatures=ny={}))});var oy=T((Xw,iy)=>{"use strict";iy.exports=ve()});var _s=T(Dt=>{"use strict";var eT=Dt&&Dt.__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=Dt&&Dt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&eT(t,e,n)};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.createConnection=void 0;var xs=Cl();ay(oy(),Dt);ay(Cl(),Dt);var sy=!1,tT={initialize:e=>{},get shutdownReceived(){return sy},set shutdownReceived(e){sy=e},exit:e=>{}};function nT(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),xs.ConnectionStrategy.is(e)||xs.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=l=>(0,xs.createProtocolConnection)(o,s,l,a);return(0,xs.createConnection)(c,tT,i)}Dt.createConnection=nT});var tn=T((eA,cy)=>{"use strict";cy.exports=_s()});var Ul=T((QA,Cy)=>{"use strict";function Rt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function _y(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 JT(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 hr={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),Rt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=_y(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Rt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=_y(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return Rt(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];Rt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":hr.normalize(t)},relative:function(t,n){if(Rt(t),Rt(n),t===n||(t=hr.resolve(t),n=hr.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,l=o<c?o:c,d=-1,h=0;h<=l;++h){if(h===l){if(c>l){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>l&&(t.charCodeAt(r+h)===47?d=h:h===0&&(d=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(d=h)}var D="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(D.length===0?D+="..":D+="/..");return D.length>0?D+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(Rt(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');Rt(t);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,c=-1;for(s=t.length-1;s>=0;--s){var l=t.charCodeAt(s);if(l===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(l===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=c))}return r===i?i=c:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){Rt(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 JT("/",t)},parse:function(t){Rt(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,c=-1,l=!0,d=t.length-1,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!l){a=d+1;break}continue}c===-1&&(l=!1,c=d+1),r===46?s===-1?s=d:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||c===-1||h===0||h===1&&s===c-1&&s===a+1?c!==-1&&(a===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(a,c)):(a===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(a,s),n.base=t.slice(a,c)),n.ext=t.slice(s,c)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};hr.posix=hr;Cy.exports=hr});import{createConfig as Dd,loadConfig as zP,loadIgnoreConfig as YP,DEFAULT_CONFIG as $P,IGNORE_FILE as VP}from"@redocly/openapi-core";var Yl;(()=>{"use strict";var e={975:A=>{function b(x){if(typeof x!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(x))}function q(x,C){for(var S,O="",M=0,N=-1,z=0,K=0;K<=x.length;++K){if(K<x.length)S=x.charCodeAt(K);else{if(S===47)break;S=47}if(S===47){if(!(N===K-1||z===1))if(N!==K-1&&z===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=K,z=0;continue}}else if(O.length===2||O.length===1){O="",M=0,N=K,z=0;continue}}C&&(O.length>0?O+="/..":O="..",M=2)}else O.length>0?O+="/"+x.slice(N+1,K):O=x.slice(N+1,K),M=K-N-1;N=K,z=0}else S===46&&z!==-1?++z:z=-1}return O}var j={resolve:function(){for(var x,C="",S=!1,O=arguments.length-1;O>=-1&&!S;O--){var M;O>=0?M=arguments[O]:(x===void 0&&(x=process.cwd()),M=x),b(M),M.length!==0&&(C=M+"/"+C,S=M.charCodeAt(0)===47)}return C=q(C,!S),S?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(x){if(b(x),x.length===0)return".";var C=x.charCodeAt(0)===47,S=x.charCodeAt(x.length-1)===47;return(x=q(x,!C)).length!==0||C||(x="."),x.length>0&&S&&(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 S=arguments[C];b(S),S.length>0&&(x===void 0?x=S:x+="/"+S)}return x===void 0?".":j.normalize(x)},relative:function(x,C){if(b(x),b(C),x===C||(x=j.resolve(x))===(C=j.resolve(C)))return"";for(var S=1;S<x.length&&x.charCodeAt(S)===47;++S);for(var O=x.length,M=O-S,N=1;N<C.length&&C.charCodeAt(N)===47;++N);for(var z=C.length-N,K=M<z?M:z,Te=-1,ee=0;ee<=K;++ee){if(ee===K){if(z>K){if(C.charCodeAt(N+ee)===47)return C.slice(N+ee+1);if(ee===0)return C.slice(N+ee)}else M>K&&(x.charCodeAt(S+ee)===47?Te=ee:ee===0&&(Te=0));break}var at=x.charCodeAt(S+ee);if(at!==C.charCodeAt(N+ee))break;at===47&&(Te=ee)}var sn="";for(ee=S+Te+1;ee<=O;++ee)ee!==O&&x.charCodeAt(ee)!==47||(sn.length===0?sn+="..":sn+="/..");return sn.length>0?sn+C.slice(N+Te):(N+=Te,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),S=C===47,O=-1,M=!0,N=x.length-1;N>=1;--N)if((C=x.charCodeAt(N))===47){if(!M){O=N;break}}else M=!1;return O===-1?S?"/":".":S&&O===1?"//":x.slice(0,O)},basename:function(x,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(x);var S,O=0,M=-1,N=!0;if(C!==void 0&&C.length>0&&C.length<=x.length){if(C.length===x.length&&C===x)return"";var z=C.length-1,K=-1;for(S=x.length-1;S>=0;--S){var Te=x.charCodeAt(S);if(Te===47){if(!N){O=S+1;break}}else K===-1&&(N=!1,K=S+1),z>=0&&(Te===C.charCodeAt(z)?--z==-1&&(M=S):(z=-1,M=K))}return O===M?M=K:M===-1&&(M=x.length),x.slice(O,M)}for(S=x.length-1;S>=0;--S)if(x.charCodeAt(S)===47){if(!N){O=S+1;break}}else M===-1&&(N=!1,M=S+1);return M===-1?"":x.slice(O,M)},extname:function(x){b(x);for(var C=-1,S=0,O=-1,M=!0,N=0,z=x.length-1;z>=0;--z){var K=x.charCodeAt(z);if(K!==47)O===-1&&(M=!1,O=z+1),K===46?C===-1?C=z:N!==1&&(N=1):C!==-1&&(N=-1);else if(!M){S=z+1;break}}return C===-1||O===-1||N===0||N===1&&C===O-1&&C===S+1?"":x.slice(C,O)},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,S){var O=S.dir||S.root,M=S.base||(S.name||"")+(S.ext||"");return O?O===S.root?O+M:O+"/"+M:M})(0,x)},parse:function(x){b(x);var C={root:"",dir:"",base:"",ext:"",name:""};if(x.length===0)return C;var S,O=x.charCodeAt(0),M=O===47;M?(C.root="/",S=1):S=0;for(var N=-1,z=0,K=-1,Te=!0,ee=x.length-1,at=0;ee>=S;--ee)if((O=x.charCodeAt(ee))!==47)K===-1&&(Te=!1,K=ee+1),O===46?N===-1?N=ee:at!==1&&(at=1):N!==-1&&(at=-1);else if(!Te){z=ee+1;break}return N===-1||K===-1||at===0||at===1&&N===K-1&&N===z+1?K!==-1&&(C.base=C.name=z===0&&M?x.slice(1,K):x.slice(z,K)):(z===0&&M?(C.name=x.slice(1,N),C.base=x.slice(1,K)):(C.name=x.slice(z,N),C.base=x.slice(z,K)),C.ext=x.slice(N,K)),z>0?C.dir=x.slice(0,z-1):M&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,A.exports=j}},t={};function n(A){var b=t[A];if(b!==void 0)return b.exports;var q=t[A]={exports:{}};return e[A](q,q.exports,n),q.exports}n.d=(A,b)=>{for(var q in b)n.o(b,q)&&!n.o(A,q)&&Object.defineProperty(A,q,{enumerable:!0,get:b[q]})},n.o=(A,b)=>Object.prototype.hasOwnProperty.call(A,b),n.r=A=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>v,Utils:()=>Tn}),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(A,b){if(!A.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${A.authority}", path: "${A.path}", query: "${A.query}", fragment: "${A.fragment}"}`);if(A.scheme&&!o.test(A.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(A.path){if(A.authority){if(!s.test(A.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(A.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let l="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class v{static isUri(b){return b instanceof v||!!b&&typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function"}scheme;authority;path;query;fragment;constructor(b,q,j,x,C,S=!1){typeof b=="object"?(this.scheme=b.scheme||l,this.authority=b.authority||l,this.path=b.path||l,this.query=b.query||l,this.fragment=b.fragment||l):(this.scheme=(function(O,M){return O||M?O:"file"})(b,S),this.authority=q||l,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||l),this.query=x||l,this.fragment=C||l,c(this,S))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:q,authority:j,path:x,query:C,fragment:S}=b;return q===void 0?q=this.scheme:q===null&&(q=l),j===void 0?j=this.authority:j===null&&(j=l),x===void 0?x=this.path:x===null&&(x=l),C===void 0?C=this.query:C===null&&(C=l),S===void 0?S=this.fragment:S===null&&(S=l),q===this.scheme&&j===this.authority&&x===this.path&&C===this.query&&S===this.fragment?this:new D(q,j,x,C,S)}static parse(b,q=!1){let j=h.exec(b);return j?new D(j[2]||l,X(j[4]||l),X(j[5]||l),X(j[7]||l),X(j[9]||l),q):new D(l,l,l,l,l)}static file(b){let q=l;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 D("file",q,b,l,l)}static from(b){let q=new D(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 D(b);return q._formatted=b.external,q._fsPath=b._sep===y?b.fsPath:null,q}}return b}}let y=i?1:void 0;class D 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 L={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 Y(A,b,q){let j,x=-1;for(let C=0;C<A.length;C++){let S=A.charCodeAt(C);if(S>=97&&S<=122||S>=65&&S<=90||S>=48&&S<=57||S===45||S===46||S===95||S===126||b&&S===47||q&&S===91||q&&S===93||q&&S===58)x!==-1&&(j+=encodeURIComponent(A.substring(x,C)),x=-1),j!==void 0&&(j+=A.charAt(C));else{j===void 0&&(j=A.substr(0,C));let O=L[S];O!==void 0?(x!==-1&&(j+=encodeURIComponent(A.substring(x,C)),x=-1),j+=O):x===-1&&(x=C)}}return x!==-1&&(j+=encodeURIComponent(A.substring(x))),j!==void 0?j:A}function V(A){let b;for(let q=0;q<A.length;q++){let j=A.charCodeAt(q);j===35||j===63?(b===void 0&&(b=A.substr(0,q)),b+=L[j]):b!==void 0&&(b+=A[q])}return b!==void 0?b:A}function m(A,b){let q;return q=A.authority&&A.path.length>1&&A.scheme==="file"?`//${A.authority}${A.path}`:A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?b?A.path.substr(1):A.path[1].toLowerCase()+A.path.substr(2):A.path,i&&(q=q.replace(/\//g,"\\")),q}function g(A,b){let q=b?V:Y,j="",{scheme:x,authority:C,path:S,query:O,fragment:M}=A;if(x&&(j+=x,j+=":"),(C||x==="file")&&(j+=d,j+=d),C){let N=C.indexOf("@");if(N!==-1){let z=C.substr(0,N);C=C.substr(N+1),N=z.lastIndexOf(":"),N===-1?j+=q(z,!1,!1):(j+=q(z.substr(0,N),!1,!1),j+=":",j+=q(z.substr(N+1),!1,!0)),j+="@"}C=C.toLowerCase(),N=C.lastIndexOf(":"),N===-1?j+=q(C,!1,!0):(j+=q(C.substr(0,N),!1,!0),j+=C.substr(N))}if(S){if(S.length>=3&&S.charCodeAt(0)===47&&S.charCodeAt(2)===58){let N=S.charCodeAt(1);N>=65&&N<=90&&(S=`/${String.fromCharCode(N+32)}:${S.substr(3)}`)}else if(S.length>=2&&S.charCodeAt(1)===58){let N=S.charCodeAt(0);N>=65&&N<=90&&(S=`${String.fromCharCode(N+32)}:${S.substr(2)}`)}j+=q(S,!0,!1)}return O&&(j+="?",j+=q(O,!1,!1)),M&&(j+="#",j+=b?M:Y(M,!1,!1)),j}function w(A){try{return decodeURIComponent(A)}catch{return A.length>3?A.substr(0,3)+w(A.substr(3)):A}}let $=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(A){return A.match($)?A.replace($,(b=>w(b))):A}var st=n(975);let Mt=st.posix||st,on="/";var Tn;(function(A){A.joinPath=function(b,...q){return b.with({path:Mt.join(b.path,...q)})},A.resolvePath=function(b,...q){let j=b.path,x=!1;j[0]!==on&&(j=on+j,x=!0);let C=Mt.resolve(j,...q);return x&&C[0]===on&&!b.authority&&(C=C.substring(1)),b.with({path:C})},A.dirname=function(b){if(b.path.length===0||b.path===on)return b;let q=Mt.dirname(b.path);return q.length===1&&q.charCodeAt(0)===46&&(q=""),b.with({path:q})},A.basename=function(b){return Mt.basename(b.path)},A.extname=function(b){return Mt.extname(b.path)}})(Tn||(Tn={})),Yl=r})();var{URI:wt,Utils:ie}=Yl;import{isBrowser as ob}from"@redocly/openapi-core";import{CONFIG_FILE_NAME as ib}from"@redocly/openapi-core";var Ws={languageId:"yaml",filePattern:/\.ya?ml$/i},Hs={languageId:"json",filePattern:/\.json$/i},Us=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Ws,Hs];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ie.resolvePath(ie.dirname(Le(t)),ib);return await this._fs.exists(n)?Ue(n.toString()):void 0}catch{return}}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}registerRemoteScorecardAndPlugins(t){this._remoteScorecardAndPlugins=t}get remoteScorecardAndPlugins(){return this._remoteScorecardAndPlugins}get fs(){if(!this._fs)throw new Error("FileSystemProvider not registered.");return this._fs}get documents(){if(!this._documentManager)throw new Error("DocumentsProvider not registered.");return this._documentManager}get findConfig(){if(!this._findConfig)throw new Error("ConfigFinder not registered.");return this._findConfig}get getRootWorkspaceFolderURI(){if(!this._getRootWorkspaceFolderURI)throw new Error("RootWorkspaceFolderURIGetter not registered.");return this._getRootWorkspaceFolderURI}setScorecardStatus(t){this._scorecardStatus=t}get scorecardStatus(){return this._scorecardStatus}},pe=new Us;function Bs(e,t){let n=r=>ie.resolvePath(Le(li(r))).toString();return n(e)===n(t)}function Le(e){return wt.parse(e)}function li(e){return e.startsWith("file://")?e:wt.file(e).toString()}function Ue(e){let t=wt.parse(e).fsPath;return ob&&t.startsWith("/")?t.slice(1):t}function vr(e){let t=["https","http"],{scheme:n}=wt.parse(e);return t.includes(n)}function Pr(e){return ie.basename(Le(e))}async function $l(e,t="/"){let n=ie.resolvePath(Le(t));for(;e.path!=="/";)try{(await pe.fs.stat(ie.resolvePath(n,e.path))).isDirectory()||(e=ie.dirname(e));break}catch{e=ie.dirname(e)}return e}import{BaseResolver as HP,Source as Td,readFileFromUrl as BP,isAbsoluteUrl as Sd}from"@redocly/openapi-core";var pi=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=Gl(r.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),c=Math.max(i.end.line,0),l=this._lineOffsets,d=Vl(r.text,!1,o);if(c-a===d.length)for(let v=0,y=d.length;v<y;v++)l[v+a+1]=d[v];else d.length<1e4?l.splice(a+1,c-a,...d):this._lineOffsets=l=l.slice(0,a+1).concat(d,l.slice(c+1));let h=r.text.length-(s-o);if(h!==0)for(let v=a+1+d.length,y=l.length;v<y;v++)l[v]=l[v]+h}else if(e.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Vl(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&&Kl(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}},di;(function(e){function t(i,o,s,a){return new pi(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof pi)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=zs(o.map(sb),(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),c=0,l=[];for(let d of a){let h=i.offsetAt(d.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&l.push(s.substring(c,h)),d.newText.length&&l.push(d.newText),c=i.offsetAt(d.range.end)}return l.push(s.substr(c)),l.join("")}e.applyEdits=r})(di||(di={}));function zs(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);zs(r,t),zs(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 Vl(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);Kl(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Kl(e){return e===13||e===10}function Gl(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 sb(e){let t=Gl(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var Ti=Ne(Nn(),1),xd=new Map;function _d(e,t){return xd.set(e,t)}function Cd(e){let t=[];for(let[n,r]of xd.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Ge(e){let t=pe.documents.get(e);if(t)return t;let n=await pe.fs.readFile(Le(e),"utf-8");return di.create(e,"yaml",1,n)}function Sr(e){return Hs.filePattern.test(e)}function Si(e){return Ws.filePattern.test(e)}function dn({uri:e,ast:t,textDocument:n}){if(!(Si(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 ht=class extends HP{resolveExternalRef(t,n){return Sd(n)?n:t&&Sd(t)?new URL(n,t).href:t?ie.resolvePath(ie.dirname(Le(t)),n).toString():n}async loadExternalRef(t){if(vr(t)){let{body:n,mimeType:r}=await BP(t,{...this.config.http,customFetch:fetch});return new Td(t,n,r)}return new Td(t,(await Ge(t)).getText())}};var Et;async function Di(e,t){try{let n=new ht,r=e?await pe.findConfig(e):void 0;if(r===void 0){let i=await YP(r,n);return Et=await Dd($P,{externalRefResolver:n,ignore:i}),Et}Et=await zP({configPath:r,externalRefResolver:n})}catch(n){t?.createEventHandleLoadConfigError?.(n?.message),Et=await Dd({})}return Et}async function On(e){return Et||await Di(e)}async function fn(e){return await ba(e)?!0:!!Et?.resolvedRefMap&&[...Et.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Bs(Pr(e),n))}async function ba(e){let t=await pe.findConfig(e);return t?Bs(e,t):!1}function KP(e){return e.endsWith(VP)}var Rd={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Dr={type:"object",properties:Rd,additionalProperties:!1},GP={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Wt={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({},Rd),{like:Dr,dislike:Dr,satisfied:Dr,neutral:Dr,dissatisfied:Dr}),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:GP},additionalProperties:!1}},additionalProperties:!1};var QP={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},va={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Ri={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Wt,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:va,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:QP,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1};var qn={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},JP={type:"object",properties:{name:{type:"string"},items:qn,queries:qn,mutations:qn,subscriptions:qn,types:qn,directives:qn},required:["name"],additionalProperties:!1},XP={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:JP},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},ZP={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},ex={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},tx={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:ZP,license:ex},additionalProperties:!1},jn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},XP.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:va,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:Wt,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},info:tx},additionalProperties:!1};var nx={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},rx={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},wd={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},ix={type:"object",properties:{beforeInfo:{type:"array",items:wd},end:{type:"array",items:wd}}},gn={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"}}},ox={type:"object",properties:Ni(gn.properties,["light","dark"])},sx={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},ax={type:"object",properties:{error:wi,info:wi,redirect:wi,success:wi}},cx={type:"object",properties:Mn(gn.properties,["dark"])},ux={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},lx={type:"object",properties:{accent:gn,border:ox,error:gn,http:sx,primary:gn,responses:ax,secondary:cx,success:gn,text:ux,tonalOffset:{type:"number"},warning:gn}},Ai={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},px={type:"object",properties:{small:Ai,medium:Ai,large:Ai,xlarge:Ai}},yt={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},dx={type:"object",properties:Object.assign(Object.assign({},Mn(yt.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:px})},Ad={type:"object",properties:Ni(yt.properties,["fontSize","lineHeight"])},fx={type:"object",properties:{medium:Ad,small:Ad}},gx={type:"object",properties:Object.assign(Object.assign({},Mn(yt.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:fx})},mx={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},hx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},kd={type:"object",properties:{fullWidth:{type:"boolean"}}},yx={type:"object",properties:{buttons:dx,httpBadges:gx,layoutControls:mx,panels:hx,tryItButton:kd,tryItSendButton:kd}},Ei={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},bx={type:"object",properties:{maxWidth:Ei}},vx={type:"object",properties:{maxWidth:Ei,middlePanelMaxWidth:Ei}},Px={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:bx,"three-panel":vx}},Ed={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},xx={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:Ed,defaultDetailsWidth:{type:"string"},examples:Ed,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Od={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},_x={type:"object",properties:Ni(Od.properties,["textTransform"])},Cx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Tx={type:"object",properties:Object.assign(Object.assign({},Mn(yt.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:Od,level1items:_x,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Cx,textColor:{type:"string"},width:{type:"string"}})},ki={type:"object",properties:Object.assign(Object.assign({},yt.properties),{color:{type:"string"},transform:{type:"string"}})},Sx={type:"object",properties:Object.assign(Object.assign({},yt.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"}})},Dx={type:"object",properties:Mn(yt.properties,["fontSize"])},Rx={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},wx={type:"object",properties:Object.assign(Object.assign({code:Sx,fieldName:yt},Ni(yt.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:ki,heading2:ki,heading3:ki,headings:Dx,lineHeight:{type:"string"},links:Rx,optimizeSpeed:{type:"boolean"},rightPanelHeading:ki,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},Ax={type:"object",properties:Object.assign({color:{type:"string"}},Mn(yt.properties,["fontWeight"]))},kx={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:Ax}},Ex={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},Nx={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Nd={type:"object",properties:{custom:{type:"string"}}},Ox={type:"object",properties:{DownloadButton:Nd,NextSectionButton:Nd}},qx={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},jx={type:"object",properties:{borderRadius:{type:"string"}}},Mx={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Ix={type:"object",properties:{breakpoints:Ei,codeBlock:kx,colors:lx,components:yx,layout:Px,logo:Ex,fab:Nx,overrides:Ox,rightPanel:qx,schema:xx,shape:jx,sidebar:Tx,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:nx}},required:["languages"]},qd={type:"object",properties:{theme:Ix,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:rx,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:ix,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 Mn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var bt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}};var Rr={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={type:"object",additionalProperties:!0},wr={preprocessors:vt,oas2Preprocessors:vt,oas3_0Preprocessors:vt,oas3_1Preprocessors:vt,oas3_2Preprocessors:vt,async2Preprocessors:vt,async3Preprocessors:vt,arazzo1Preprocessors:vt,overlay1Preprocessors:vt,openrpc1Preprocessors:vt},Pt={type:"object",additionalProperties:!0};var Ar={decorators:Pt,oas2Decorators:Pt,oas3_0Decorators:Pt,oas3_1Decorators:Pt,oas3_2Decorators:Pt,async2Decorators:Pt,async3Decorators:Pt,arazzo1Decorators:Pt,overlay1Decorators:Pt,openrpc1Decorators:Pt};var De={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},jd={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},Pa={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}}},xa={type:"array",items:Object.assign(Object.assign({},Pa),{properties:Object.assign(Object.assign({},Pa.properties),{items:{type:"array",items:Pa}})})},Fx={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Ux={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Wx={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}},Hx={type:"object",properties:Object.assign({facets:Wx},De.properties),additionalProperties:!1},Bx={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Oi={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},qi={type:"object",properties:Object.assign({items:xa},De.properties),additionalProperties:!1},ji={type:"object",additionalProperties:Fx},Mi={type:"object",properties:Object.assign({items:xa,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},Li={type:"object",properties:{head:{type:"array",items:jd},body:{type:"array",items:jd}},additionalProperties:!1},Fi={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}},Ui={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:Ux,filters:Hx,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:Bx}},De.properties),additionalProperties:!1},Wi={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},zx={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},Bi={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:zx},additionalProperties:!1},zi={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:{}},In=Object.assign(Object.assign({},Ri),{properties:Object.assign(Object.assign({},Ri.properties),qd.properties)}),Yx={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},$x={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"]},Vx={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},Kx={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Gx={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"]},Qx={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},Jx={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"]},_a={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"]},Xx={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:_a}},additionalProperties:!1,required:["trackingId"]},$i={type:"object",properties:{adobe:Yx,amplitude:$x,fullstory:Vx,heap:Kx,rudderstack:Gx,segment:Qx,gtm:Jx,ga:Xx}},Vi={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},Ki={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Gi={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},Zx={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"}}}},e_={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:Zx},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:xa,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Ln={type:"object",patternProperties:{".*":e_}},Fn={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},Rr),wr),Ar),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}};var t_={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},n_={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},r_={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},Nt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:n_},excludes:{type:"array",items:t_},filters:{type:"array",items:r_},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},i_={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},o_={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:i_},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},s_={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:o_,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},a_={type:"object",additionalProperties:s_},Qi={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:a_,catalogs:{type:"object",properties:{all:Nt,services:Nt,domains:Nt,teams:Nt,users:Nt,apiDescriptions:Nt,dataSchemas:Nt,apiOperations:Nt},additionalProperties:Nt}},additionalProperties:!1};var kr={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none","and","or","not"]},Ca={type:"object",properties:{field:{type:"string"},operator:kr,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:kr,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}}}}}},c_={type:"object",properties:{operator:kr,conditions:{type:"array",items:Ca}},required:["operator","conditions"],additionalProperties:!1},Md={type:"array",items:{oneOf:[Ca,{type:"object",properties:{operator:kr,conditions:{type:"array",items:{oneOf:[Ca,c_]}}},required:["operator","conditions"],additionalProperties:!1}]}},Ld={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},u_={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:Ld},required:["subject","assertions"],additionalProperties:!1}},l_={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:Ld,where:u_,weight:{type:"number",default:1}},required:["subject","assertions"],additionalProperties:!1},p_={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number",default:1}},additionalProperties:!0},l_]}},d_={type:"object",properties:{name:{type:"string"},extends:{type:"array",items:{type:"string"}},rules:p_},required:["name"],additionalProperties:!1},Id={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},f_={oneOf:[Id,{type:"array",items:Id}]},g_={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[Md,{type:"object",properties:{operator:kr,conditions:Md},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:d_,minItems:1},trigger:f_},required:["name","key","entities","levels"],additionalProperties:!1},Ji={type:"array",items:g_};var Ze={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Oi,navbar:qi,products:ji,footer:Mi,sidebar:Ii,scripts:Li,links:Fi,feedback:Wt,search:Ui,aiAssistant:Wi,colorMode:Hi,navigation:Bi,codeSnippet:zi,markdown:Yi,openapi:In,graphql:jn,analytics:$i,userMenu:Vi,versionPicker:Ki,breadcrumbs:Gi,catalog:Ln,entitiesCatalog:Qi,catalogClassic:Ln,scorecard:Fn,scorecards:Ji,scorecardClassic:Fn},additionalProperties:!0};var Sa="https://redocly.com/sso/teams",Un;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(Un||(Un={}));var Wn;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(Wn||(Wn={}));var Ta;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(Ta||(Ta={}));var Da=["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"],de={USER_ENTITY:"UserEntity",USER_ENTITY_METADATA:"UserEntityMetadata",API_DESCRIPTION_ENTITY:"ApiDescriptionEntity",API_DESCRIPTION_METADATA:"ApiDescriptionEntityMetadata",API_OPERATION_ENTITY:"ApiOperationEntity",API_OPERATION_METADATA:"ApiOperationEntityMetadata",DATA_SCHEMA_ENTITY:"DataSchemaEntity",DATA_SCHEMA_METADATA:"DataSchemaEntityMetadata",SERVICE_ENTITY:"ServiceEntity",DOMAIN_ENTITY:"DomainEntity",TEAM_ENTITY:"TeamEntity",ENTITY:"Entity",ENTITY_METADATA:"EntityMetadata",ENTITY_LINK_LIST:"EntityLinkList",ENTITY_LINK:"EntityLink",ENTITY_RELATION:"EntityRelation",ENTITY_RELATION_LIST:"EntityRelationList",ENTITY_CONTACT:"EntityContact",SLACK_CONTACT:"EntitySlackContact",SLACK_CHANNEL:"EntitySlackChannel"};function Xi(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>{if(n!==t)return typeof r!="object"||!r?[n,r]:Array.isArray(r)?[n,r.map(i=>typeof i=="object"?Xi(i,t):i)]:[n,Xi(r,t)]}).filter(Boolean))}var m_={type:"object",additionalProperties:{type:"string"}},h_={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Zi={type:"string",enum:["error","warn","off"]},y_={type:"object",additionalProperties:!1,properties:{schemaCheck:Zi,statusCodeCheck:Zi,contentTypeCheck:Zi,successCriteriaCheck:Zi}},b_={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},v_={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},P_={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Fd={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:[b_,v_]},inputs:m_,servers:h_,severity:y_,slo:P_},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var x_={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},__={type:"object",properties:{type:{type:"string",const:Un.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:x_,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},C_={type:"object",properties:{type:{type:"string",const:Un.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:Sa},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},T_={oneOf:[__,C_],discriminator:{propertyName:"type"}},S_={type:"object",additionalProperties:T_},Bd={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},zd={type:"boolean"},Yd={type:"string",pattern:"^https?://.*"},$d={type:"string",pattern:"^https?://.*"},D_={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},R_={type:"object",additionalProperties:D_,default:{}},w_={type:"string",enum:["info","success","warning","error"],default:"info"},A_={type:"object",properties:{content:{type:"string"},dismissible:{type:"boolean",default:!1},target:{type:"string"},color:w_},required:["content"],additionalProperties:!1},k_={type:"array",items:A_,default:[]},wa={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:In,graphql:jn,theme:{type:"object",properties:{openapi:In,graphql:jn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Rr),wr),Ar),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},E_={type:"object",additionalProperties:!0},N_={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Ud={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},Wd={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:Ud},default:{llmstxt:Ud.default},additionalProperties:!1},O_={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},mn={type:"object",additionalProperties:{type:"string"}},Aa={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:mn,cms:mn,reunite:mn,features:{type:"object",properties:{aiSearch:mn},additionalProperties:!1},content:{type:"object",properties:{"**":mn},additionalProperties:mn}},additionalProperties:mn},q_={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},j_={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},M_={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:[q_,j_]}},additionalProperties:!1,required:["type","apiBaseUrl"]},I_={type:"object",properties:{type:{type:"string",const:Wn.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},L_={type:"object",properties:{type:{type:"string",const:Wn.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Ra={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:[I_,L_],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},F_=Object.assign(Object.assign({},Ra),{properties:Object.assign(Object.assign({},Ra.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),U_={type:"object",oneOf:[Ra,F_,M_],discriminator:{propertyName:"type"}},W_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:U_}}},Hd={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"]},H_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},B_={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:[]}}},z_={type:"object",properties:{requiresLogin:zd,logoutReturnUrl:Yd,residency:$d,sso:Bd,rbac:Aa},additionalProperties:!1},Er={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:R_,seo:Wd,rbac:Aa,apiFunctions:O_,requiresLogin:zd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:H_}},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:wa},extends:{type:"array",items:{type:"string"}}},Rr),Ar),wr),{ssoDirect:S_,sso:Bd,residency:$d,logoutReturnUrl:Yd,access:z_,developerOnboarding:W_,removeAttribution:{type:"boolean"},i18n:Hd,l10n:Hd,metadata:E_,metadataGlobs:N_,ignore:{type:"array",items:{type:"string"}},theme:Ze,reunite:Fd,logo:Oi,navbar:qi,products:ji,footer:Mi,sidebar:Ii,scripts:Li,links:Fi,feedback:Wt,search:Ui,aiAssistant:Wi,colorMode:Hi,navigation:Bi,codeSnippet:zi,markdown:Yi,openapi:In,graphql:jn,analytics:$i,userMenu:Vi,versionPicker:Ki,breadcrumbs:Gi,catalog:Ln,entitiesCatalog:Qi,catalogClassic:Ln,scorecard:Fn,scorecards:Ji,scorecardClassic:Fn,mcp:B_,banner:k_}),default:{redirects:{},seo:Wd.default},additionalProperties:!0},Y_=Object.assign(Object.assign({},Xi(Er,"default")),{additionalProperties:!1}),ka=Object.assign(Object.assign({$id:"root-redocly-config"},Er),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},Er.properties),{env:{type:"object",additionalProperties:Y_}}),default:{},additionalProperties:!1});var Ea={type:"object",properties:{logo:Ze.properties.logo,navbar:Ze.properties.navbar,footer:Ze.properties.footer,sidebar:Ze.properties.sidebar,search:Ze.properties.search,codeSnippet:Ze.properties.codeSnippet,breadcrumbs:Ze.properties.breadcrumbs,openapi:Ze.properties.openapi,feedback:Ze.properties.feedback,mockServer:Er.properties.mockServer,analytics:{type:"object",properties:{ga:_a}}},additionalProperties:!0,default:{}},$_={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},Ea.properties),{apis:{type:"object",additionalProperties:wa},theme:Ea}),additionalProperties:!1};var V_={type:"object",nodeTypeName:de.USER_ENTITY_METADATA,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},K_={type:"object",nodeTypeName:de.API_DESCRIPTION_METADATA,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},G_={type:"object",nodeTypeName:de.API_OPERATION_METADATA,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},Q_={type:"object",nodeTypeName:de.DATA_SCHEMA_METADATA,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},J_={type:"object",properties:{},nodeTypeName:de.ENTITY_METADATA,additionalProperties:!0},X_={type:"object",nodeTypeName:de.SLACK_CHANNEL,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},Z_={type:"object",nodeTypeName:de.SLACK_CONTACT,properties:{channels:{type:"array",items:X_}},required:["channels"],additionalProperties:!1},eC={type:"object",nodeTypeName:de.ENTITY_CONTACT,properties:{slack:Z_},additionalProperties:!1},tC={type:"object",nodeTypeName:de.ENTITY_LINK,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},nC={type:"object",nodeTypeName:de.ENTITY_RELATION,properties:{type:{type:"string",enum:Da},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Ht={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:eC,links:{type:"array",nodeTypeName:de.ENTITY_LINK_LIST,items:tC},relations:{type:"array",nodeTypeName:de.ENTITY_RELATION_LIST,items:nC},metadata:J_},eo={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:Object.assign(Object.assign({},Ht),{type:{const:"user"},metadata:V_}),required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:de.USER_ENTITY},{type:"object",nodeTypeName:de.API_OPERATION_ENTITY,properties:Object.assign(Object.assign({},Ht),{type:{const:"api-operation"},metadata:G_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:de.DATA_SCHEMA_ENTITY,properties:Object.assign(Object.assign({},Ht),{type:{const:"data-schema"},metadata:Q_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:de.API_DESCRIPTION_ENTITY,properties:Object.assign(Object.assign({},Ht),{type:{const:"api-description"},metadata:K_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:de.SERVICE_ENTITY,properties:Object.assign(Object.assign({},Ht),{type:{const:"service"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:de.DOMAIN_ENTITY,properties:Object.assign(Object.assign({},Ht),{type:{const:"domain"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:de.TEAM_ENTITY,properties:Object.assign(Object.assign({},Ht),{type:{const:"team"}}),required:["key","title","type"],additionalProperties:!1}]},to={type:"object",nodeTypeName:de.ENTITY,properties:Object.assign({},Ht),required:["key","title","type"],additionalProperties:!1};var Fe=Ne(tn(),1);import{getLineColLocation as gT,lintDocument as mT,makeDocumentFromString as Ss,lintConfig as hT,lintEntityFile as yT,detectSpec as bT,createConfigTypes as vT}from"@redocly/openapi-core";var Cs=Ne(Nn(),1);function uy(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(l){let d=i.get(l.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(l.uri,setTimeout(()=>a(l),t-h));else if(r.delete(l.uri),i.delete(l.uri),!n){let v=s.get(l.uri),y=e(o.get(l.uri));v&&v.forEach(({resolve:D})=>D(y)),s.delete(l.uri)}}catch(v){let y=s.get(l.uri);y&&y.forEach(({reject:D})=>D(v)),s.delete(l.uri)}}function c(l){let d=r.get(l.uri),h=n&&!d;return i.set(l.uri,Date.now()),o.set(l.uri,l),new Promise((v,y)=>{let D=s.get(l.uri)||[];d||(s.set(l.uri,[...D,{resolve:v,reject:y}]),r.set(l.uri,setTimeout(()=>a(l),t))),h?v(e(o.get(l.uri))):s.set(l.uri,[...D,{resolve:v,reject:y}])})}return c}function Tl(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 ly(e){return e==="$ref"}async function Sl(e,t){let n=wt.parse(t);return ie.joinPath(n,e).toString()}async function py(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await Sl(i,n)===t)return r}function dy(e){return typeof e=="string"}function Zr(e){return typeof e=="function"}function fy(e){return e?.kind===Cs.Kind.MAP}function Dl(e){return e?.kind===Cs.Kind.MAPPING}function Rl(e){return e?.kind===Cs.Kind.SEQ}function ei(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}import{bundleDocument as rT,isPlainObject as iT,makeDocumentFromString as oT,getTypes as sT,detectSpec as aT}from"@redocly/openapi-core";var gy=new Map,Ts=new Map;function cT(e){return e?Array.from(e).map(([t,n])=>[t,Tl(n)]):[]}async function wl(e,t){let n=await On(),r=new ht(n.resolve),i=oT(e.getText(),e.uri),{bundle:o,rootType:s,refTypes:a}=await rT({document:i,config:n,externalRefResolver:r,types:sT(aT(i.parsed))}),c=cT(a);a&&(Ts=new Map([...Ts,...a])),gy.set(e.uri,{uri:e.uri,name:Pr(e.uri),definition:iT(o.parsed)?o.parsed:{},rootType:s,refTypes:c,errors:t})}function uT(){return Array.from(gy).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:Pr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function Al(e){return Ts.has(e)?Ts.get(e):null}import{createConfig as lT,lintDocument as pT,loadIgnoreConfig as dT}from"@redocly/openapi-core";async function my(e,t,n,r,i){let o=[],s=await dT(r,t);for(let a of n?.levels||[]){let c=typeof i=="string"?await fT(i):i,l=await lT({...a,plugins:c},{configPath:r,ignore:s}),d=await pT({document:e,externalRefResolver:t,config:l});o.push(...d.filter(({ignored:h})=>!h).map(h=>({...h,scorecardLevel:a.name})))}return o}async function fT(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)+"..."),[]}}var
|
|
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,D,L){return t.call(y)==="[object Number]"&&D<=y&&y<=L}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function l(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=l;function d(y){return t.call(y)==="[object Function]"}e.func=d;function h(y){return y!==null&&typeof y=="object"}e.objectLiteral=h;function v(y,D){return Array.isArray(y)&&y.every(D)}e.typedArray=v})(f||(f={}))});var se=T(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.ProtocolNotificationType=Ye.ProtocolNotificationType0=Ye.ProtocolRequestType=Ye.ProtocolRequestType0=Ye.RegistrationType=Ye.MessageDirection=void 0;var tr=yn(),_f;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(_f||(Ye.MessageDirection=_f={}));var Bu=class{constructor(t){this.method=t}};Ye.RegistrationType=Bu;var zu=class extends tr.RequestType0{constructor(t){super(t)}};Ye.ProtocolRequestType0=zu;var Yu=class extends tr.RequestType{constructor(t){super(t,tr.ParameterStructures.byName)}};Ye.ProtocolRequestType=Yu;var $u=class extends tr.NotificationType0{constructor(t){super(t)}};Ye.ProtocolNotificationType0=$u;var Vu=class extends tr.NotificationType{constructor(t){super(t,tr.ParameterStructures.byName)}};Ye.ProtocolNotificationType=Vu});var ko=T(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 EC(e){return e===!0||e===!1}Pe.boolean=EC;function Cf(e){return typeof e=="string"||e instanceof String}Pe.string=Cf;function NC(e){return typeof e=="number"||e instanceof Number}Pe.number=NC;function OC(e){return e instanceof Error}Pe.error=OC;function qC(e){return typeof e=="function"}Pe.func=qC;function Tf(e){return Array.isArray(e)}Pe.array=Tf;function jC(e){return Tf(e)&&e.every(t=>Cf(t))}Pe.stringArray=jC;function MC(e,t){return Array.isArray(e)&&e.every(t)}Pe.typedArray=MC;function IC(e){return e!==null&&typeof e=="object"}Pe.objectLiteral=IC});var Rf=T(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.ImplementationRequest=void 0;var Sf=se(),Df;(function(e){e.method="textDocument/implementation",e.messageDirection=Sf.MessageDirection.clientToServer,e.type=new Sf.ProtocolRequestType(e.method)})(Df||(Eo.ImplementationRequest=Df={}))});var kf=T(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.TypeDefinitionRequest=void 0;var wf=se(),Af;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=wf.MessageDirection.clientToServer,e.type=new wf.ProtocolRequestType(e.method)})(Af||(No.TypeDefinitionRequest=Af={}))});var Of=T(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.DidChangeWorkspaceFoldersNotification=nr.WorkspaceFoldersRequest=void 0;var Oo=se(),Ef;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=Oo.MessageDirection.serverToClient,e.type=new Oo.ProtocolRequestType0(e.method)})(Ef||(nr.WorkspaceFoldersRequest=Ef={}));var Nf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=Oo.MessageDirection.clientToServer,e.type=new Oo.ProtocolNotificationType(e.method)})(Nf||(nr.DidChangeWorkspaceFoldersNotification=Nf={}))});var Mf=T(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.ConfigurationRequest=void 0;var qf=se(),jf;(function(e){e.method="workspace/configuration",e.messageDirection=qf.MessageDirection.serverToClient,e.type=new qf.ProtocolRequestType(e.method)})(jf||(qo.ConfigurationRequest=jf={}))});var Ff=T(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.ColorPresentationRequest=rr.DocumentColorRequest=void 0;var jo=se(),If;(function(e){e.method="textDocument/documentColor",e.messageDirection=jo.MessageDirection.clientToServer,e.type=new jo.ProtocolRequestType(e.method)})(If||(rr.DocumentColorRequest=If={}));var Lf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=jo.MessageDirection.clientToServer,e.type=new jo.ProtocolRequestType(e.method)})(Lf||(rr.ColorPresentationRequest=Lf={}))});var Hf=T(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.FoldingRangeRefreshRequest=ir.FoldingRangeRequest=void 0;var Mo=se(),Uf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=Mo.MessageDirection.clientToServer,e.type=new Mo.ProtocolRequestType(e.method)})(Uf||(ir.FoldingRangeRequest=Uf={}));var Wf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=Mo.MessageDirection.serverToClient,e.type=new Mo.ProtocolRequestType0(e.method)})(Wf||(ir.FoldingRangeRefreshRequest=Wf={}))});var Yf=T(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.DeclarationRequest=void 0;var Bf=se(),zf;(function(e){e.method="textDocument/declaration",e.messageDirection=Bf.MessageDirection.clientToServer,e.type=new Bf.ProtocolRequestType(e.method)})(zf||(Io.DeclarationRequest=zf={}))});var Kf=T(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.SelectionRangeRequest=void 0;var $f=se(),Vf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=$f.MessageDirection.clientToServer,e.type=new $f.ProtocolRequestType(e.method)})(Vf||(Lo.SelectionRangeRequest=Vf={}))});var Xf=T(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.WorkDoneProgressCancelNotification=Vt.WorkDoneProgressCreateRequest=Vt.WorkDoneProgress=void 0;var LC=yn(),Fo=se(),Gf;(function(e){e.type=new LC.ProgressType;function t(n){return n===e.type}e.is=t})(Gf||(Vt.WorkDoneProgress=Gf={}));var Qf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Fo.MessageDirection.serverToClient,e.type=new Fo.ProtocolRequestType(e.method)})(Qf||(Vt.WorkDoneProgressCreateRequest=Qf={}));var Jf;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Fo.MessageDirection.clientToServer,e.type=new Fo.ProtocolNotificationType(e.method)})(Jf||(Vt.WorkDoneProgressCancelNotification=Jf={}))});var ng=T(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.CallHierarchyOutgoingCallsRequest=Kt.CallHierarchyIncomingCallsRequest=Kt.CallHierarchyPrepareRequest=void 0;var or=se(),Zf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(Zf||(Kt.CallHierarchyPrepareRequest=Zf={}));var eg;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(eg||(Kt.CallHierarchyIncomingCallsRequest=eg={}));var tg;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(tg||(Kt.CallHierarchyOutgoingCallsRequest=tg={}))});var cg=T($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.SemanticTokensRefreshRequest=$e.SemanticTokensRangeRequest=$e.SemanticTokensDeltaRequest=$e.SemanticTokensRequest=$e.SemanticTokensRegistrationType=$e.TokenFormat=void 0;var qt=se(),rg;(function(e){e.Relative="relative"})(rg||($e.TokenFormat=rg={}));var zr;(function(e){e.method="textDocument/semanticTokens",e.type=new qt.RegistrationType(e.method)})(zr||($e.SemanticTokensRegistrationType=zr={}));var ig;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=zr.method})(ig||($e.SemanticTokensRequest=ig={}));var og;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=zr.method})(og||($e.SemanticTokensDeltaRequest=og={}));var sg;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=zr.method})(sg||($e.SemanticTokensRangeRequest=sg={}));var ag;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=qt.MessageDirection.serverToClient,e.type=new qt.ProtocolRequestType0(e.method)})(ag||($e.SemanticTokensRefreshRequest=ag={}))});var pg=T(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.ShowDocumentRequest=void 0;var ug=se(),lg;(function(e){e.method="window/showDocument",e.messageDirection=ug.MessageDirection.serverToClient,e.type=new ug.ProtocolRequestType(e.method)})(lg||(Uo.ShowDocumentRequest=lg={}))});var gg=T(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.LinkedEditingRangeRequest=void 0;var dg=se(),fg;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=dg.MessageDirection.clientToServer,e.type=new dg.ProtocolRequestType(e.method)})(fg||(Wo.LinkedEditingRangeRequest=fg={}))});var _g=T(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.WillDeleteFilesRequest=je.DidDeleteFilesNotification=je.DidRenameFilesNotification=je.WillRenameFilesRequest=je.DidCreateFilesNotification=je.WillCreateFilesRequest=je.FileOperationPatternKind=void 0;var tt=se(),mg;(function(e){e.file="file",e.folder="folder"})(mg||(je.FileOperationPatternKind=mg={}));var hg;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=tt.MessageDirection.clientToServer,e.type=new tt.ProtocolRequestType(e.method)})(hg||(je.WillCreateFilesRequest=hg={}));var yg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=tt.MessageDirection.clientToServer,e.type=new tt.ProtocolNotificationType(e.method)})(yg||(je.DidCreateFilesNotification=yg={}));var bg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=tt.MessageDirection.clientToServer,e.type=new tt.ProtocolRequestType(e.method)})(bg||(je.WillRenameFilesRequest=bg={}));var vg;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=tt.MessageDirection.clientToServer,e.type=new tt.ProtocolNotificationType(e.method)})(vg||(je.DidRenameFilesNotification=vg={}));var Pg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=tt.MessageDirection.clientToServer,e.type=new tt.ProtocolNotificationType(e.method)})(Pg||(je.DidDeleteFilesNotification=Pg={}));var xg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=tt.MessageDirection.clientToServer,e.type=new tt.ProtocolRequestType(e.method)})(xg||(je.WillDeleteFilesRequest=xg={}))});var Rg=T(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.MonikerRequest=Gt.MonikerKind=Gt.UniquenessLevel=void 0;var Cg=se(),Tg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(Tg||(Gt.UniquenessLevel=Tg={}));var Sg;(function(e){e.$import="import",e.$export="export",e.local="local"})(Sg||(Gt.MonikerKind=Sg={}));var Dg;(function(e){e.method="textDocument/moniker",e.messageDirection=Cg.MessageDirection.clientToServer,e.type=new Cg.ProtocolRequestType(e.method)})(Dg||(Gt.MonikerRequest=Dg={}))});var Eg=T(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.TypeHierarchySubtypesRequest=Qt.TypeHierarchySupertypesRequest=Qt.TypeHierarchyPrepareRequest=void 0;var sr=se(),wg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=sr.MessageDirection.clientToServer,e.type=new sr.ProtocolRequestType(e.method)})(wg||(Qt.TypeHierarchyPrepareRequest=wg={}));var Ag;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=sr.MessageDirection.clientToServer,e.type=new sr.ProtocolRequestType(e.method)})(Ag||(Qt.TypeHierarchySupertypesRequest=Ag={}));var kg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=sr.MessageDirection.clientToServer,e.type=new sr.ProtocolRequestType(e.method)})(kg||(Qt.TypeHierarchySubtypesRequest=kg={}))});var qg=T(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.InlineValueRefreshRequest=ar.InlineValueRequest=void 0;var Ho=se(),Ng;(function(e){e.method="textDocument/inlineValue",e.messageDirection=Ho.MessageDirection.clientToServer,e.type=new Ho.ProtocolRequestType(e.method)})(Ng||(ar.InlineValueRequest=Ng={}));var Og;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=Ho.MessageDirection.serverToClient,e.type=new Ho.ProtocolRequestType0(e.method)})(Og||(ar.InlineValueRefreshRequest=Og={}))});var Lg=T(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.InlayHintRefreshRequest=Jt.InlayHintResolveRequest=Jt.InlayHintRequest=void 0;var cr=se(),jg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=cr.MessageDirection.clientToServer,e.type=new cr.ProtocolRequestType(e.method)})(jg||(Jt.InlayHintRequest=jg={}));var Mg;(function(e){e.method="inlayHint/resolve",e.messageDirection=cr.MessageDirection.clientToServer,e.type=new cr.ProtocolRequestType(e.method)})(Mg||(Jt.InlayHintResolveRequest=Mg={}));var Ig;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=cr.MessageDirection.serverToClient,e.type=new cr.ProtocolRequestType0(e.method)})(Ig||(Jt.InlayHintRefreshRequest=Ig={}))});var Yg=T(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.DiagnosticRefreshRequest=nt.WorkspaceDiagnosticRequest=nt.DocumentDiagnosticRequest=nt.DocumentDiagnosticReportKind=nt.DiagnosticServerCancellationData=void 0;var zg=yn(),FC=ko(),ur=se(),Fg;(function(e){function t(n){let r=n;return r&&FC.boolean(r.retriggerRequest)}e.is=t})(Fg||(nt.DiagnosticServerCancellationData=Fg={}));var Ug;(function(e){e.Full="full",e.Unchanged="unchanged"})(Ug||(nt.DocumentDiagnosticReportKind=Ug={}));var Wg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=ur.MessageDirection.clientToServer,e.type=new ur.ProtocolRequestType(e.method),e.partialResult=new zg.ProgressType})(Wg||(nt.DocumentDiagnosticRequest=Wg={}));var Hg;(function(e){e.method="workspace/diagnostic",e.messageDirection=ur.MessageDirection.clientToServer,e.type=new ur.ProtocolRequestType(e.method),e.partialResult=new zg.ProgressType})(Hg||(nt.WorkspaceDiagnosticRequest=Hg={}));var Bg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=ur.MessageDirection.serverToClient,e.type=new ur.ProtocolRequestType0(e.method)})(Bg||(nt.DiagnosticRefreshRequest=Bg={}))});var Xg=T(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 Yr=(Ao(),ci(wo)),lt=ko(),Ct=se(),Ku;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Ku||(ge.NotebookCellKind=Ku={}));var Gu;(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)&&Yr.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})(Gu||(ge.ExecutionSummary=Gu={}));var Bo;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return lt.objectLiteral(s)&&Ku.is(s.kind)&&Yr.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)&&!Gu.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}e.diff=r;function i(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let a=Array.isArray(o),c=Array.isArray(s);if(a!==c)return!1;if(a&&c){if(o.length!==s.length)return!1;for(let l=0;l<o.length;l++)if(!i(o[l],s[l]))return!1}if(lt.objectLiteral(o)&<.objectLiteral(s)){let l=Object.keys(o),d=Object.keys(s);if(l.length!==d.length||(l.sort(),d.sort(),!i(l,d)))return!1;for(let h=0;h<l.length;h++){let v=l[h];if(!i(o[v],s[v]))return!1}}return!0}})(Bo||(ge.NotebookCell=Bo={}));var $g;(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)&&Yr.integer.is(i.version)&<.typedArray(i.cells,Bo.is)}e.is=n})($g||(ge.NotebookDocument=$g={}));var lr;(function(e){e.method="notebookDocument/sync",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.RegistrationType(e.method)})(lr||(ge.NotebookDocumentSyncRegistrationType=lr={}));var Vg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.ProtocolNotificationType(e.method),e.registrationMethod=lr.method})(Vg||(ge.DidOpenNotebookDocumentNotification=Vg={}));var Kg;(function(e){function t(r){let i=r;return lt.objectLiteral(i)&&Yr.uinteger.is(i.start)&&Yr.uinteger.is(i.deleteCount)&&(i.cells===void 0||lt.typedArray(i.cells,Bo.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})(Kg||(ge.NotebookCellArrayChange=Kg={}));var Gg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.ProtocolNotificationType(e.method),e.registrationMethod=lr.method})(Gg||(ge.DidChangeNotebookDocumentNotification=Gg={}));var Qg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.ProtocolNotificationType(e.method),e.registrationMethod=lr.method})(Qg||(ge.DidSaveNotebookDocumentNotification=Qg={}));var Jg;(function(e){e.method="notebookDocument/didClose",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.ProtocolNotificationType(e.method),e.registrationMethod=lr.method})(Jg||(ge.DidCloseNotebookDocumentNotification=Jg={}))});var tm=T(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.InlineCompletionRequest=void 0;var Zg=se(),em;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=Zg.MessageDirection.clientToServer,e.type=new Zg.ProtocolRequestType(e.method)})(em||(zo.InlineCompletionRequest=em={}))});var gh=T(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.WorkspaceSymbolRequest=u.CodeActionResolveRequest=u.CodeActionRequest=u.DocumentSymbolRequest=u.DocumentHighlightRequest=u.ReferencesRequest=u.DefinitionRequest=u.SignatureHelpRequest=u.SignatureHelpTriggerKind=u.HoverRequest=u.CompletionResolveRequest=u.CompletionRequest=u.CompletionTriggerKind=u.PublishDiagnosticsNotification=u.WatchKind=u.RelativePattern=u.FileChangeType=u.DidChangeWatchedFilesNotification=u.WillSaveTextDocumentWaitUntilRequest=u.WillSaveTextDocumentNotification=u.TextDocumentSaveReason=u.DidSaveTextDocumentNotification=u.DidCloseTextDocumentNotification=u.DidChangeTextDocumentNotification=u.TextDocumentContentChangeEvent=u.DidOpenTextDocumentNotification=u.TextDocumentSyncKind=u.TelemetryEventNotification=u.LogMessageNotification=u.ShowMessageRequest=u.ShowMessageNotification=u.MessageType=u.DidChangeConfigurationNotification=u.ExitNotification=u.ShutdownRequest=u.InitializedNotification=u.InitializeErrorCodes=u.InitializeRequest=u.WorkDoneProgressOptions=u.TextDocumentRegistrationOptions=u.StaticRegistrationOptions=u.PositionEncodingKind=u.FailureHandlingKind=u.ResourceOperationKind=u.UnregistrationRequest=u.RegistrationRequest=u.DocumentSelector=u.NotebookCellTextDocumentFilter=u.NotebookDocumentFilter=u.TextDocumentFilter=void 0;u.MonikerRequest=u.MonikerKind=u.UniquenessLevel=u.WillDeleteFilesRequest=u.DidDeleteFilesNotification=u.WillRenameFilesRequest=u.DidRenameFilesNotification=u.WillCreateFilesRequest=u.DidCreateFilesNotification=u.FileOperationPatternKind=u.LinkedEditingRangeRequest=u.ShowDocumentRequest=u.SemanticTokensRegistrationType=u.SemanticTokensRefreshRequest=u.SemanticTokensRangeRequest=u.SemanticTokensDeltaRequest=u.SemanticTokensRequest=u.TokenFormat=u.CallHierarchyPrepareRequest=u.CallHierarchyOutgoingCallsRequest=u.CallHierarchyIncomingCallsRequest=u.WorkDoneProgressCancelNotification=u.WorkDoneProgressCreateRequest=u.WorkDoneProgress=u.SelectionRangeRequest=u.DeclarationRequest=u.FoldingRangeRefreshRequest=u.FoldingRangeRequest=u.ColorPresentationRequest=u.DocumentColorRequest=u.ConfigurationRequest=u.DidChangeWorkspaceFoldersNotification=u.WorkspaceFoldersRequest=u.TypeDefinitionRequest=u.ImplementationRequest=u.ApplyWorkspaceEditRequest=u.ExecuteCommandRequest=u.PrepareRenameRequest=u.RenameRequest=u.PrepareSupportDefaultBehavior=u.DocumentOnTypeFormattingRequest=u.DocumentRangesFormattingRequest=u.DocumentRangeFormattingRequest=u.DocumentFormattingRequest=u.DocumentLinkResolveRequest=u.DocumentLinkRequest=u.CodeLensRefreshRequest=u.CodeLensResolveRequest=u.CodeLensRequest=u.WorkspaceSymbolResolveRequest=void 0;u.InlineCompletionRequest=u.DidCloseNotebookDocumentNotification=u.DidSaveNotebookDocumentNotification=u.DidChangeNotebookDocumentNotification=u.NotebookCellArrayChange=u.DidOpenNotebookDocumentNotification=u.NotebookDocumentSyncRegistrationType=u.NotebookDocument=u.NotebookCell=u.ExecutionSummary=u.NotebookCellKind=u.DiagnosticRefreshRequest=u.WorkspaceDiagnosticRequest=u.DocumentDiagnosticRequest=u.DocumentDiagnosticReportKind=u.DiagnosticServerCancellationData=u.InlayHintRefreshRequest=u.InlayHintResolveRequest=u.InlayHintRequest=u.InlineValueRefreshRequest=u.InlineValueRequest=u.TypeHierarchySupertypesRequest=u.TypeHierarchySubtypesRequest=u.TypeHierarchyPrepareRequest=void 0;var R=se(),nm=(Ao(),ci(wo)),Re=ko(),UC=Rf();Object.defineProperty(u,"ImplementationRequest",{enumerable:!0,get:function(){return UC.ImplementationRequest}});var WC=kf();Object.defineProperty(u,"TypeDefinitionRequest",{enumerable:!0,get:function(){return WC.TypeDefinitionRequest}});var lh=Of();Object.defineProperty(u,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return lh.WorkspaceFoldersRequest}});Object.defineProperty(u,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return lh.DidChangeWorkspaceFoldersNotification}});var HC=Mf();Object.defineProperty(u,"ConfigurationRequest",{enumerable:!0,get:function(){return HC.ConfigurationRequest}});var ph=Ff();Object.defineProperty(u,"DocumentColorRequest",{enumerable:!0,get:function(){return ph.DocumentColorRequest}});Object.defineProperty(u,"ColorPresentationRequest",{enumerable:!0,get:function(){return ph.ColorPresentationRequest}});var dh=Hf();Object.defineProperty(u,"FoldingRangeRequest",{enumerable:!0,get:function(){return dh.FoldingRangeRequest}});Object.defineProperty(u,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return dh.FoldingRangeRefreshRequest}});var BC=Yf();Object.defineProperty(u,"DeclarationRequest",{enumerable:!0,get:function(){return BC.DeclarationRequest}});var zC=Kf();Object.defineProperty(u,"SelectionRangeRequest",{enumerable:!0,get:function(){return zC.SelectionRangeRequest}});var el=Xf();Object.defineProperty(u,"WorkDoneProgress",{enumerable:!0,get:function(){return el.WorkDoneProgress}});Object.defineProperty(u,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return el.WorkDoneProgressCreateRequest}});Object.defineProperty(u,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return el.WorkDoneProgressCancelNotification}});var tl=ng();Object.defineProperty(u,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return tl.CallHierarchyIncomingCallsRequest}});Object.defineProperty(u,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return tl.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(u,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return tl.CallHierarchyPrepareRequest}});var pr=cg();Object.defineProperty(u,"TokenFormat",{enumerable:!0,get:function(){return pr.TokenFormat}});Object.defineProperty(u,"SemanticTokensRequest",{enumerable:!0,get:function(){return pr.SemanticTokensRequest}});Object.defineProperty(u,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return pr.SemanticTokensDeltaRequest}});Object.defineProperty(u,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return pr.SemanticTokensRangeRequest}});Object.defineProperty(u,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return pr.SemanticTokensRefreshRequest}});Object.defineProperty(u,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return pr.SemanticTokensRegistrationType}});var YC=pg();Object.defineProperty(u,"ShowDocumentRequest",{enumerable:!0,get:function(){return YC.ShowDocumentRequest}});var $C=gg();Object.defineProperty(u,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return $C.LinkedEditingRangeRequest}});var Pn=_g();Object.defineProperty(u,"FileOperationPatternKind",{enumerable:!0,get:function(){return Pn.FileOperationPatternKind}});Object.defineProperty(u,"DidCreateFilesNotification",{enumerable:!0,get:function(){return Pn.DidCreateFilesNotification}});Object.defineProperty(u,"WillCreateFilesRequest",{enumerable:!0,get:function(){return Pn.WillCreateFilesRequest}});Object.defineProperty(u,"DidRenameFilesNotification",{enumerable:!0,get:function(){return Pn.DidRenameFilesNotification}});Object.defineProperty(u,"WillRenameFilesRequest",{enumerable:!0,get:function(){return Pn.WillRenameFilesRequest}});Object.defineProperty(u,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return Pn.DidDeleteFilesNotification}});Object.defineProperty(u,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return Pn.WillDeleteFilesRequest}});var nl=Rg();Object.defineProperty(u,"UniquenessLevel",{enumerable:!0,get:function(){return nl.UniquenessLevel}});Object.defineProperty(u,"MonikerKind",{enumerable:!0,get:function(){return nl.MonikerKind}});Object.defineProperty(u,"MonikerRequest",{enumerable:!0,get:function(){return nl.MonikerRequest}});var rl=Eg();Object.defineProperty(u,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return rl.TypeHierarchyPrepareRequest}});Object.defineProperty(u,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return rl.TypeHierarchySubtypesRequest}});Object.defineProperty(u,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return rl.TypeHierarchySupertypesRequest}});var fh=qg();Object.defineProperty(u,"InlineValueRequest",{enumerable:!0,get:function(){return fh.InlineValueRequest}});Object.defineProperty(u,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return fh.InlineValueRefreshRequest}});var il=Lg();Object.defineProperty(u,"InlayHintRequest",{enumerable:!0,get:function(){return il.InlayHintRequest}});Object.defineProperty(u,"InlayHintResolveRequest",{enumerable:!0,get:function(){return il.InlayHintResolveRequest}});Object.defineProperty(u,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return il.InlayHintRefreshRequest}});var $r=Yg();Object.defineProperty(u,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return $r.DiagnosticServerCancellationData}});Object.defineProperty(u,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return $r.DocumentDiagnosticReportKind}});Object.defineProperty(u,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return $r.DocumentDiagnosticRequest}});Object.defineProperty(u,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return $r.WorkspaceDiagnosticRequest}});Object.defineProperty(u,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return $r.DiagnosticRefreshRequest}});var Tt=Xg();Object.defineProperty(u,"NotebookCellKind",{enumerable:!0,get:function(){return Tt.NotebookCellKind}});Object.defineProperty(u,"ExecutionSummary",{enumerable:!0,get:function(){return Tt.ExecutionSummary}});Object.defineProperty(u,"NotebookCell",{enumerable:!0,get:function(){return Tt.NotebookCell}});Object.defineProperty(u,"NotebookDocument",{enumerable:!0,get:function(){return Tt.NotebookDocument}});Object.defineProperty(u,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return Tt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(u,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return Tt.DidOpenNotebookDocumentNotification}});Object.defineProperty(u,"NotebookCellArrayChange",{enumerable:!0,get:function(){return Tt.NotebookCellArrayChange}});Object.defineProperty(u,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return Tt.DidChangeNotebookDocumentNotification}});Object.defineProperty(u,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return Tt.DidSaveNotebookDocumentNotification}});Object.defineProperty(u,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return Tt.DidCloseNotebookDocumentNotification}});var VC=tm();Object.defineProperty(u,"InlineCompletionRequest",{enumerable:!0,get:function(){return VC.InlineCompletionRequest}});var Qu;(function(e){function t(n){let r=n;return Re.string(r)||Re.string(r.language)||Re.string(r.scheme)||Re.string(r.pattern)}e.is=t})(Qu||(u.TextDocumentFilter=Qu={}));var Ju;(function(e){function t(n){let r=n;return Re.objectLiteral(r)&&(Re.string(r.notebookType)||Re.string(r.scheme)||Re.string(r.pattern))}e.is=t})(Ju||(u.NotebookDocumentFilter=Ju={}));var Xu;(function(e){function t(n){let r=n;return Re.objectLiteral(r)&&(Re.string(r.notebook)||Ju.is(r.notebook))&&(r.language===void 0||Re.string(r.language))}e.is=t})(Xu||(u.NotebookCellTextDocumentFilter=Xu={}));var Zu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Re.string(r)&&!Qu.is(r)&&!Xu.is(r))return!1;return!0}e.is=t})(Zu||(u.DocumentSelector=Zu={}));var rm;(function(e){e.method="client/registerCapability",e.messageDirection=R.MessageDirection.serverToClient,e.type=new R.ProtocolRequestType(e.method)})(rm||(u.RegistrationRequest=rm={}));var im;(function(e){e.method="client/unregisterCapability",e.messageDirection=R.MessageDirection.serverToClient,e.type=new R.ProtocolRequestType(e.method)})(im||(u.UnregistrationRequest=im={}));var om;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(om||(u.ResourceOperationKind=om={}));var sm;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(sm||(u.FailureHandlingKind=sm={}));var am;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(am||(u.PositionEncodingKind=am={}));var cm;(function(e){function t(n){let r=n;return r&&Re.string(r.id)&&r.id.length>0}e.hasId=t})(cm||(u.StaticRegistrationOptions=cm={}));var um;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||Zu.is(r.documentSelector))}e.is=t})(um||(u.TextDocumentRegistrationOptions=um={}));var lm;(function(e){function t(r){let i=r;return Re.objectLiteral(i)&&(i.workDoneProgress===void 0||Re.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&Re.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(lm||(u.WorkDoneProgressOptions=lm={}));var pm;(function(e){e.method="initialize",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(pm||(u.InitializeRequest=pm={}));var dm;(function(e){e.unknownProtocolVersion=1})(dm||(u.InitializeErrorCodes=dm={}));var fm;(function(e){e.method="initialized",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolNotificationType(e.method)})(fm||(u.InitializedNotification=fm={}));var gm;(function(e){e.method="shutdown",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType0(e.method)})(gm||(u.ShutdownRequest=gm={}));var mm;(function(e){e.method="exit",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolNotificationType0(e.method)})(mm||(u.ExitNotification=mm={}));var hm;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolNotificationType(e.method)})(hm||(u.DidChangeConfigurationNotification=hm={}));var ym;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(ym||(u.MessageType=ym={}));var bm;(function(e){e.method="window/showMessage",e.messageDirection=R.MessageDirection.serverToClient,e.type=new R.ProtocolNotificationType(e.method)})(bm||(u.ShowMessageNotification=bm={}));var vm;(function(e){e.method="window/showMessageRequest",e.messageDirection=R.MessageDirection.serverToClient,e.type=new R.ProtocolRequestType(e.method)})(vm||(u.ShowMessageRequest=vm={}));var Pm;(function(e){e.method="window/logMessage",e.messageDirection=R.MessageDirection.serverToClient,e.type=new R.ProtocolNotificationType(e.method)})(Pm||(u.LogMessageNotification=Pm={}));var xm;(function(e){e.method="telemetry/event",e.messageDirection=R.MessageDirection.serverToClient,e.type=new R.ProtocolNotificationType(e.method)})(xm||(u.TelemetryEventNotification=xm={}));var _m;(function(e){e.None=0,e.Full=1,e.Incremental=2})(_m||(u.TextDocumentSyncKind=_m={}));var Cm;(function(e){e.method="textDocument/didOpen",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolNotificationType(e.method)})(Cm||(u.DidOpenTextDocumentNotification=Cm={}));var Tm;(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})(Tm||(u.TextDocumentContentChangeEvent=Tm={}));var Sm;(function(e){e.method="textDocument/didChange",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolNotificationType(e.method)})(Sm||(u.DidChangeTextDocumentNotification=Sm={}));var Dm;(function(e){e.method="textDocument/didClose",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolNotificationType(e.method)})(Dm||(u.DidCloseTextDocumentNotification=Dm={}));var Rm;(function(e){e.method="textDocument/didSave",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolNotificationType(e.method)})(Rm||(u.DidSaveTextDocumentNotification=Rm={}));var wm;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(wm||(u.TextDocumentSaveReason=wm={}));var Am;(function(e){e.method="textDocument/willSave",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolNotificationType(e.method)})(Am||(u.WillSaveTextDocumentNotification=Am={}));var km;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(km||(u.WillSaveTextDocumentWaitUntilRequest=km={}));var Em;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolNotificationType(e.method)})(Em||(u.DidChangeWatchedFilesNotification=Em={}));var Nm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(Nm||(u.FileChangeType=Nm={}));var Om;(function(e){function t(n){let r=n;return Re.objectLiteral(r)&&(nm.URI.is(r.baseUri)||nm.WorkspaceFolder.is(r.baseUri))&&Re.string(r.pattern)}e.is=t})(Om||(u.RelativePattern=Om={}));var qm;(function(e){e.Create=1,e.Change=2,e.Delete=4})(qm||(u.WatchKind=qm={}));var jm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=R.MessageDirection.serverToClient,e.type=new R.ProtocolNotificationType(e.method)})(jm||(u.PublishDiagnosticsNotification=jm={}));var Mm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Mm||(u.CompletionTriggerKind=Mm={}));var Im;(function(e){e.method="textDocument/completion",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Im||(u.CompletionRequest=Im={}));var Lm;(function(e){e.method="completionItem/resolve",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Lm||(u.CompletionResolveRequest=Lm={}));var Fm;(function(e){e.method="textDocument/hover",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Fm||(u.HoverRequest=Fm={}));var Um;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Um||(u.SignatureHelpTriggerKind=Um={}));var Wm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Wm||(u.SignatureHelpRequest=Wm={}));var Hm;(function(e){e.method="textDocument/definition",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Hm||(u.DefinitionRequest=Hm={}));var Bm;(function(e){e.method="textDocument/references",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Bm||(u.ReferencesRequest=Bm={}));var zm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(zm||(u.DocumentHighlightRequest=zm={}));var Ym;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Ym||(u.DocumentSymbolRequest=Ym={}));var $m;(function(e){e.method="textDocument/codeAction",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})($m||(u.CodeActionRequest=$m={}));var Vm;(function(e){e.method="codeAction/resolve",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Vm||(u.CodeActionResolveRequest=Vm={}));var Km;(function(e){e.method="workspace/symbol",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Km||(u.WorkspaceSymbolRequest=Km={}));var Gm;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Gm||(u.WorkspaceSymbolResolveRequest=Gm={}));var Qm;(function(e){e.method="textDocument/codeLens",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Qm||(u.CodeLensRequest=Qm={}));var Jm;(function(e){e.method="codeLens/resolve",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Jm||(u.CodeLensResolveRequest=Jm={}));var Xm;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=R.MessageDirection.serverToClient,e.type=new R.ProtocolRequestType0(e.method)})(Xm||(u.CodeLensRefreshRequest=Xm={}));var Zm;(function(e){e.method="textDocument/documentLink",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(Zm||(u.DocumentLinkRequest=Zm={}));var eh;(function(e){e.method="documentLink/resolve",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(eh||(u.DocumentLinkResolveRequest=eh={}));var th;(function(e){e.method="textDocument/formatting",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(th||(u.DocumentFormattingRequest=th={}));var nh;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(nh||(u.DocumentRangeFormattingRequest=nh={}));var rh;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(rh||(u.DocumentRangesFormattingRequest=rh={}));var ih;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(ih||(u.DocumentOnTypeFormattingRequest=ih={}));var oh;(function(e){e.Identifier=1})(oh||(u.PrepareSupportDefaultBehavior=oh={}));var sh;(function(e){e.method="textDocument/rename",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(sh||(u.RenameRequest=sh={}));var ah;(function(e){e.method="textDocument/prepareRename",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(ah||(u.PrepareRenameRequest=ah={}));var ch;(function(e){e.method="workspace/executeCommand",e.messageDirection=R.MessageDirection.clientToServer,e.type=new R.ProtocolRequestType(e.method)})(ch||(u.ExecuteCommandRequest=ch={}));var uh;(function(e){e.method="workspace/applyEdit",e.messageDirection=R.MessageDirection.serverToClient,e.type=new R.ProtocolRequestType("workspace/applyEdit")})(uh||(u.ApplyWorkspaceEditRequest=uh={}))});var hh=T(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.createProtocolConnection=void 0;var mh=yn();function KC(e,t,n,r){return mh.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,mh.createMessageConnection)(e,t,n,r)}Yo.createProtocolConnection=KC});var bh=T(Ve=>{"use strict";var GC=Ve&&Ve.__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]})),$o=Ve&&Ve.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&GC(t,e,n)};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.LSPErrorCodes=Ve.createProtocolConnection=void 0;$o(yn(),Ve);$o((Ao(),ci(wo)),Ve);$o(se(),Ve);$o(gh(),Ve);var QC=hh();Object.defineProperty(Ve,"createProtocolConnection",{enumerable:!0,get:function(){return QC.createProtocolConnection}});var yh;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(yh||(Ve.LSPErrorCodes=yh={}))});var ve=T(St=>{"use strict";var JC=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]})),vh=St&&St.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&JC(t,e,n)};Object.defineProperty(St,"__esModule",{value:!0});St.createProtocolConnection=void 0;var XC=Uc();vh(Uc(),St);vh(bh(),St);function ZC(e,t,n,r){return(0,XC.createMessageConnection)(e,t,n,r)}St.createProtocolConnection=ZC});var sl=T(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.SemanticTokensBuilder=Xt.SemanticTokensDiff=Xt.SemanticTokensFeature=void 0;var Vo=ve(),e0=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(Vo.SemanticTokensRefreshRequest.type),on:t=>{let n=Vo.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=Vo.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=Vo.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Xt.SemanticTokensFeature=e0;var Ko=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}]:[]}};Xt.SemanticTokensDiff=Ko;var ol=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 Ko(this._prevData,this._data).computeDiff()}:this.build()}};Xt.SemanticTokensBuilder=ol});var Ph=T(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.InlineCompletionFeature=void 0;var t0=ve(),n0=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(t0.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Go.InlineCompletionFeature=n0});var cl=T(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.TextDocuments=void 0;var xn=ve(),al=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new xn.Emitter,this._onDidOpen=new xn.Emitter,this._onDidClose=new xn.Emitter,this._onDidSave=new xn.Emitter,this._onWillSave=new xn.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=xn.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}))})),xn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Qo.TextDocuments=al});var ll=T(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.NotebookDocuments=dr.NotebookSyncFeature=void 0;var rt=ve(),xh=cl(),r0=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)})}}};dr.NotebookSyncFeature=r0;var Jo=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}};Jo.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var ul=class{constructor(t){t instanceof xh.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new xh.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 Jo,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let l=[],d=[],h=[],v=[];if(c.cells!==void 0){let V=c.cells;if(V.structure!==void 0){let m=V.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),V.structure.didOpen!==void 0)for(let g of V.structure.didOpen)n.openTextDocument({textDocument:g}),l.push(g.uri);if(V.structure.didClose)for(let g of V.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(V.data!==void 0){let m=new Map(V.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 $=o.cells.splice(g,1,w);if(h.push({old:$[0],new:w}),m.delete(w.document),m.size===0)break}}}if(V.textContent!==void 0)for(let m of V.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 D=[];for(let V of l)D.push(this.getNotebookCell(V));let L=[];for(let V of d)L.push(this.getNotebookCell(V));let Y=[];for(let V of v)Y.push(this.getNotebookCell(V));(D.length>0||L.length>0||h.length>0||Y.length>0)&&(y.cells={added:D,removed:L,changed:{data:h,textContent:Y}}),(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])}};dr.NotebookDocuments=ul});var pl=T(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.thenable=xe.typedArray=xe.stringArray=xe.array=xe.func=xe.error=xe.number=xe.string=xe.boolean=void 0;function i0(e){return e===!0||e===!1}xe.boolean=i0;function _h(e){return typeof e=="string"||e instanceof String}xe.string=_h;function o0(e){return typeof e=="number"||e instanceof Number}xe.number=o0;function s0(e){return e instanceof Error}xe.error=s0;function Ch(e){return typeof e=="function"}xe.func=Ch;function Th(e){return Array.isArray(e)}xe.array=Th;function a0(e){return Th(e)&&e.every(t=>_h(t))}xe.stringArray=a0;function c0(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=c0;function u0(e){return e&&Ch(e.then)}xe.thenable=u0});var dl=T(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.generateUuid=it.parse=it.isUUID=it.v4=it.empty=void 0;var Vr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Kr=class e extends Vr{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(""))}};Kr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Kr._timeHighBits=["8","9","a","b"];it.empty=new Vr("00000000-0000-0000-0000-000000000000");function Sh(){return new Kr}it.v4=Sh;var l0=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function Dh(e){return l0.test(e)}it.isUUID=Dh;function p0(e){if(!Dh(e))throw new Error("invalid uuid");return new Vr(e)}it.parse=p0;function d0(){return Sh().asHex()}it.generateUuid=d0});var Rh=T(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.attachPartialResult=en.ProgressFeature=en.attachWorkDone=void 0;var Zt=ve(),f0=dl(),_n=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(Zt.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(Zt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Zt.WorkDoneProgress.type,this._token,{kind:"end"})}};_n.Instances=new Map;var Xo=class extends _n{constructor(t,n){super(t,n),this._source=new Zt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Gr=class{constructor(){}begin(){}report(){}done(){}},Zo=class extends Gr{constructor(){super(),this._source=new Zt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function g0(e,t){if(t===void 0||t.workDoneToken===void 0)return new Gr;let n=t.workDoneToken;return delete t.workDoneToken,new _n(e,n)}en.attachWorkDone=g0;var m0=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Zt.WorkDoneProgressCancelNotification.type,n=>{let r=_n.Instances.get(n.token);(r instanceof Xo||r instanceof Zo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Gr:new _n(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,f0.generateUuid)();return this.connection.sendRequest(Zt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Xo(this.connection,t))}else return Promise.resolve(new Zo)}};en.ProgressFeature=m0;var fl;(function(e){e.type=new Zt.ProgressType})(fl||(fl={}));var gl=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(fl.type,this._token,t)}};function h0(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new gl(e,n)}en.attachPartialResult=h0});var wh=T(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.ConfigurationFeature=void 0;var y0=ve(),b0=pl(),v0=e=>class extends e{getConfiguration(t){return t?b0.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(y0.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};es.ConfigurationFeature=v0});var Ah=T(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.WorkspaceFoldersFeature=void 0;var ts=ve(),P0=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new ts.Emitter,this.connection.onNotification(ts.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(ts.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(ts.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};ns.WorkspaceFoldersFeature=P0});var kh=T(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.CallHierarchyFeature=void 0;var ml=ve(),x0=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(ml.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=ml.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=ml.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};rs.CallHierarchyFeature=x0});var Eh=T(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.ShowDocumentFeature=void 0;var _0=ve(),C0=e=>class extends e{showDocument(t){return this.connection.sendRequest(_0.ShowDocumentRequest.type,t)}};is.ShowDocumentFeature=C0});var Nh=T(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.FileOperationsFeature=void 0;var fr=ve(),T0=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(fr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(fr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(fr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(fr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(fr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(fr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};os.FileOperationsFeature=T0});var Oh=T(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.LinkedEditingRangeFeature=void 0;var S0=ve(),D0=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(S0.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};ss.LinkedEditingRangeFeature=D0});var qh=T(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.TypeHierarchyFeature=void 0;var hl=ve(),R0=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(hl.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=hl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=hl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};as.TypeHierarchyFeature=R0});var Mh=T(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.InlineValueFeature=void 0;var jh=ve(),w0=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(jh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(jh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};cs.InlineValueFeature=w0});var Lh=T(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.FoldingRangeFeature=void 0;var Ih=ve(),A0=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(Ih.FoldingRangeRefreshRequest.type),on:t=>{let n=Ih.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};us.FoldingRangeFeature=A0});var Fh=T(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.InlayHintFeature=void 0;var yl=ve(),k0=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(yl.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(yl.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(yl.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};ls.InlayHintFeature=k0});var Uh=T(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.DiagnosticFeature=void 0;var Qr=ve(),E0=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Qr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Qr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Qr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Qr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Qr.WorkspaceDiagnosticRequest.partialResult,n)))}}};ps.DiagnosticFeature=E0});var Wh=T(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.MonikerFeature=void 0;var N0=ve(),O0=e=>class extends e{get moniker(){return{on:t=>{let n=N0.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};ds.MonikerFeature=O0});var ny=T(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=pl(),vl=dl(),H=Rh(),q0=wh(),j0=Ah(),M0=kh(),I0=sl(),L0=Eh(),F0=Nh(),U0=Oh(),W0=qh(),H0=Mh(),B0=Lh(),z0=Fh(),Y0=Uh(),$0=ll(),V0=Wh();function bl(e){if(e!==null)return e}var Pl=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=Pl;var fs=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")})}},xl=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(bl)}showWarningMessage(t,...n){let r={type:E.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(bl)}showInformationMessage(t,...n){let r={type:E.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(bl)}},Hh=(0,L0.ShowDocumentFeature)((0,H.ProgressFeature)(xl)),Bh;(function(e){function t(){return new gs}e.create=t})(Bh||(Q.BulkRegistration=Bh={}));var gs=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=vl.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},zh;(function(e){function t(){return new Jr(void 0,[])}e.create=t})(zh||(Q.BulkUnregistration=zh={}));var Jr=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}},ms=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 gs?this.registerMany(t):t instanceof Jr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=ot.string(n)?n:n.method,o=vl.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=vl.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 Jr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},_l=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)}},Yh=(0,F0.FileOperationsFeature)((0,j0.WorkspaceFoldersFeature)((0,q0.ConfigurationFeature)(_l))),hs=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(()=>{})}},ys=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")})}},bs=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=bs;var $h=(0,B0.FoldingRangeFeature)((0,V0.MonikerFeature)((0,Y0.DiagnosticFeature)((0,z0.InlayHintFeature)((0,H0.InlineValueFeature)((0,W0.TypeHierarchyFeature)((0,U0.LinkedEditingRangeFeature)((0,I0.SemanticTokensFeature)((0,M0.CallHierarchyFeature)(bs))))))))),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){}attachWorkDoneProgress(t){return(0,H.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,H.attachPartialResult)(this.connection,n)}};Q._NotebooksImpl=vs;var Vh=(0,$0.NotebookSyncFeature)(vs);function Kh(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=Kh;function Gh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=Gh;function Qh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Qh;function Jh(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Jh;function Xh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=Xh;function Zh(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=Zh;function ey(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=ey;function ty(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=ty;function K0(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Kh),tracer:n(e.tracer,t.tracer,Qh),telemetry:n(e.telemetry,t.telemetry,Gh),client:n(e.client,t.client,Jh),window:n(e.window,t.window,Xh),workspace:n(e.workspace,t.workspace,Zh),languages:n(e.languages,t.languages,ey),notebooks:n(e.notebooks,t.notebooks,ty)}}Q.combineFeatures=K0;function G0(e,t,n){let r=n&&n.console?new(n.console(fs)):new fs,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(hs)):new hs,s=n&&n.telemetry?new(n.telemetry(ys)):new ys,a=n&&n.client?new(n.client(ms)):new ms,c=n&&n.window?new(n.window(Hh)):new Hh,l=n&&n.workspace?new(n.workspace(Yh)):new Yh,d=n&&n.languages?new(n.languages($h)):new $h,h=n&&n.notebooks?new(n.notebooks(Vh)):new Vh,v=[r,o,s,a,c,l,d,h];function y(m){return m instanceof Promise?m:ot.thenable(m)?new Promise((g,w)=>{m.then($=>g($),$=>w($))}):Promise.resolve(m)}let D,L,Y,V={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 w=ot.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=>(L=m,{dispose:()=>{L=void 0}}),onInitialized:m=>i.onNotification(E.InitializedNotification.type,m),onShutdown:m=>(D=m,{dispose:()=>{D=void 0}}),onExit:m=>(Y=m,{dispose:()=>{Y=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return c},get workspace(){return l},get languages(){return d},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(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(V);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(L){let g=L(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 $=w;$||($={capabilities:{}});let X=$.capabilities;X||(X={},$.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=ot.number(V.__textDocumentSync)?V.__textDocumentSync:E.TextDocumentSyncKind.None:!ot.number(X.textDocumentSync)&&!ot.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=ot.number(V.__textDocumentSync)?V.__textDocumentSync:E.TextDocumentSyncKind.None);for(let st of v)st.fillServerCapabilities(X);return $})}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,D)return D(new E.CancellationTokenSource().token)}),i.onNotification(E.ExitNotification.type,()=>{try{Y&&Y()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(E.SetTraceNotification.type,m=>{o.trace=E.Trace.fromString(m.value)}),V}Q.createConnection=G0});var Cl=T(Me=>{"use strict";var Q0=Me&&Me.__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=Me&&Me.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Q0(t,e,n)};Object.defineProperty(Me,"__esModule",{value:!0});Me.ProposedFeatures=Me.NotebookDocuments=Me.TextDocuments=Me.SemanticTokensBuilder=void 0;var J0=sl();Object.defineProperty(Me,"SemanticTokensBuilder",{enumerable:!0,get:function(){return J0.SemanticTokensBuilder}});var X0=Ph();iy(ve(),Me);var Z0=cl();Object.defineProperty(Me,"TextDocuments",{enumerable:!0,get:function(){return Z0.TextDocuments}});var eT=ll();Object.defineProperty(Me,"NotebookDocuments",{enumerable:!0,get:function(){return eT.NotebookDocuments}});iy(ny(),Me);var ry;(function(e){e.all={__brand:"features",languages:X0.InlineCompletionFeature}})(ry||(Me.ProposedFeatures=ry={}))});var sy=T((Zw,oy)=>{"use strict";oy.exports=ve()});var xs=T(Dt=>{"use strict";var tT=Dt&&Dt.__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]})),cy=Dt&&Dt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&tT(t,e,n)};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.createConnection=void 0;var Ps=Cl();cy(sy(),Dt);cy(Cl(),Dt);var ay=!1,nT={initialize:e=>{},get shutdownReceived(){return ay},set shutdownReceived(e){ay=e},exit:e=>{}};function rT(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),Ps.ConnectionStrategy.is(e)||Ps.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=l=>(0,Ps.createProtocolConnection)(o,s,l,a);return(0,Ps.createConnection)(c,nT,i)}Dt.createConnection=rT});var tn=T((tA,uy)=>{"use strict";uy.exports=xs()});var Ul=T((JA,Ty)=>{"use strict";function Rt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Cy(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 XT(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 hr={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),Rt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=Cy(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Rt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Cy(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return Rt(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];Rt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":hr.normalize(t)},relative:function(t,n){if(Rt(t),Rt(n),t===n||(t=hr.resolve(t),n=hr.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,l=o<c?o:c,d=-1,h=0;h<=l;++h){if(h===l){if(c>l){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>l&&(t.charCodeAt(r+h)===47?d=h:h===0&&(d=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(d=h)}var D="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(D.length===0?D+="..":D+="/..");return D.length>0?D+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(Rt(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');Rt(t);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,c=-1;for(s=t.length-1;s>=0;--s){var l=t.charCodeAt(s);if(l===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(l===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=c))}return r===i?i=c:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){Rt(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 XT("/",t)},parse:function(t){Rt(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,c=-1,l=!0,d=t.length-1,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!l){a=d+1;break}continue}c===-1&&(l=!1,c=d+1),r===46?s===-1?s=d:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||c===-1||h===0||h===1&&s===c-1&&s===a+1?c!==-1&&(a===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(a,c)):(a===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(a,s),n.base=t.slice(a,c)),n.ext=t.slice(s,c)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};hr.posix=hr;Ty.exports=hr});import{createConfig as Dd,loadConfig as YP,loadIgnoreConfig as $P,DEFAULT_CONFIG as VP,IGNORE_FILE as KP}from"@redocly/openapi-core";var Yl;(()=>{"use strict";var e={975:A=>{function b(x){if(typeof x!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(x))}function q(x,C){for(var S,O="",M=0,N=-1,z=0,K=0;K<=x.length;++K){if(K<x.length)S=x.charCodeAt(K);else{if(S===47)break;S=47}if(S===47){if(!(N===K-1||z===1))if(N!==K-1&&z===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=K,z=0;continue}}else if(O.length===2||O.length===1){O="",M=0,N=K,z=0;continue}}C&&(O.length>0?O+="/..":O="..",M=2)}else O.length>0?O+="/"+x.slice(N+1,K):O=x.slice(N+1,K),M=K-N-1;N=K,z=0}else S===46&&z!==-1?++z:z=-1}return O}var j={resolve:function(){for(var x,C="",S=!1,O=arguments.length-1;O>=-1&&!S;O--){var M;O>=0?M=arguments[O]:(x===void 0&&(x=process.cwd()),M=x),b(M),M.length!==0&&(C=M+"/"+C,S=M.charCodeAt(0)===47)}return C=q(C,!S),S?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(x){if(b(x),x.length===0)return".";var C=x.charCodeAt(0)===47,S=x.charCodeAt(x.length-1)===47;return(x=q(x,!C)).length!==0||C||(x="."),x.length>0&&S&&(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 S=arguments[C];b(S),S.length>0&&(x===void 0?x=S:x+="/"+S)}return x===void 0?".":j.normalize(x)},relative:function(x,C){if(b(x),b(C),x===C||(x=j.resolve(x))===(C=j.resolve(C)))return"";for(var S=1;S<x.length&&x.charCodeAt(S)===47;++S);for(var O=x.length,M=O-S,N=1;N<C.length&&C.charCodeAt(N)===47;++N);for(var z=C.length-N,K=M<z?M:z,Te=-1,ee=0;ee<=K;++ee){if(ee===K){if(z>K){if(C.charCodeAt(N+ee)===47)return C.slice(N+ee+1);if(ee===0)return C.slice(N+ee)}else M>K&&(x.charCodeAt(S+ee)===47?Te=ee:ee===0&&(Te=0));break}var at=x.charCodeAt(S+ee);if(at!==C.charCodeAt(N+ee))break;at===47&&(Te=ee)}var sn="";for(ee=S+Te+1;ee<=O;++ee)ee!==O&&x.charCodeAt(ee)!==47||(sn.length===0?sn+="..":sn+="/..");return sn.length>0?sn+C.slice(N+Te):(N+=Te,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),S=C===47,O=-1,M=!0,N=x.length-1;N>=1;--N)if((C=x.charCodeAt(N))===47){if(!M){O=N;break}}else M=!1;return O===-1?S?"/":".":S&&O===1?"//":x.slice(0,O)},basename:function(x,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(x);var S,O=0,M=-1,N=!0;if(C!==void 0&&C.length>0&&C.length<=x.length){if(C.length===x.length&&C===x)return"";var z=C.length-1,K=-1;for(S=x.length-1;S>=0;--S){var Te=x.charCodeAt(S);if(Te===47){if(!N){O=S+1;break}}else K===-1&&(N=!1,K=S+1),z>=0&&(Te===C.charCodeAt(z)?--z==-1&&(M=S):(z=-1,M=K))}return O===M?M=K:M===-1&&(M=x.length),x.slice(O,M)}for(S=x.length-1;S>=0;--S)if(x.charCodeAt(S)===47){if(!N){O=S+1;break}}else M===-1&&(N=!1,M=S+1);return M===-1?"":x.slice(O,M)},extname:function(x){b(x);for(var C=-1,S=0,O=-1,M=!0,N=0,z=x.length-1;z>=0;--z){var K=x.charCodeAt(z);if(K!==47)O===-1&&(M=!1,O=z+1),K===46?C===-1?C=z:N!==1&&(N=1):C!==-1&&(N=-1);else if(!M){S=z+1;break}}return C===-1||O===-1||N===0||N===1&&C===O-1&&C===S+1?"":x.slice(C,O)},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,S){var O=S.dir||S.root,M=S.base||(S.name||"")+(S.ext||"");return O?O===S.root?O+M:O+"/"+M:M})(0,x)},parse:function(x){b(x);var C={root:"",dir:"",base:"",ext:"",name:""};if(x.length===0)return C;var S,O=x.charCodeAt(0),M=O===47;M?(C.root="/",S=1):S=0;for(var N=-1,z=0,K=-1,Te=!0,ee=x.length-1,at=0;ee>=S;--ee)if((O=x.charCodeAt(ee))!==47)K===-1&&(Te=!1,K=ee+1),O===46?N===-1?N=ee:at!==1&&(at=1):N!==-1&&(at=-1);else if(!Te){z=ee+1;break}return N===-1||K===-1||at===0||at===1&&N===K-1&&N===z+1?K!==-1&&(C.base=C.name=z===0&&M?x.slice(1,K):x.slice(z,K)):(z===0&&M?(C.name=x.slice(1,N),C.base=x.slice(1,K)):(C.name=x.slice(z,N),C.base=x.slice(z,K)),C.ext=x.slice(N,K)),z>0?C.dir=x.slice(0,z-1):M&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,A.exports=j}},t={};function n(A){var b=t[A];if(b!==void 0)return b.exports;var q=t[A]={exports:{}};return e[A](q,q.exports,n),q.exports}n.d=(A,b)=>{for(var q in b)n.o(b,q)&&!n.o(A,q)&&Object.defineProperty(A,q,{enumerable:!0,get:b[q]})},n.o=(A,b)=>Object.prototype.hasOwnProperty.call(A,b),n.r=A=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>v,Utils:()=>Tn}),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(A,b){if(!A.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${A.authority}", path: "${A.path}", query: "${A.query}", fragment: "${A.fragment}"}`);if(A.scheme&&!o.test(A.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(A.path){if(A.authority){if(!s.test(A.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(A.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let l="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class v{static isUri(b){return b instanceof v||!!b&&typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function"}scheme;authority;path;query;fragment;constructor(b,q,j,x,C,S=!1){typeof b=="object"?(this.scheme=b.scheme||l,this.authority=b.authority||l,this.path=b.path||l,this.query=b.query||l,this.fragment=b.fragment||l):(this.scheme=(function(O,M){return O||M?O:"file"})(b,S),this.authority=q||l,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||l),this.query=x||l,this.fragment=C||l,c(this,S))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:q,authority:j,path:x,query:C,fragment:S}=b;return q===void 0?q=this.scheme:q===null&&(q=l),j===void 0?j=this.authority:j===null&&(j=l),x===void 0?x=this.path:x===null&&(x=l),C===void 0?C=this.query:C===null&&(C=l),S===void 0?S=this.fragment:S===null&&(S=l),q===this.scheme&&j===this.authority&&x===this.path&&C===this.query&&S===this.fragment?this:new D(q,j,x,C,S)}static parse(b,q=!1){let j=h.exec(b);return j?new D(j[2]||l,X(j[4]||l),X(j[5]||l),X(j[7]||l),X(j[9]||l),q):new D(l,l,l,l,l)}static file(b){let q=l;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 D("file",q,b,l,l)}static from(b){let q=new D(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 D(b);return q._formatted=b.external,q._fsPath=b._sep===y?b.fsPath:null,q}}return b}}let y=i?1:void 0;class D 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 L={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 Y(A,b,q){let j,x=-1;for(let C=0;C<A.length;C++){let S=A.charCodeAt(C);if(S>=97&&S<=122||S>=65&&S<=90||S>=48&&S<=57||S===45||S===46||S===95||S===126||b&&S===47||q&&S===91||q&&S===93||q&&S===58)x!==-1&&(j+=encodeURIComponent(A.substring(x,C)),x=-1),j!==void 0&&(j+=A.charAt(C));else{j===void 0&&(j=A.substr(0,C));let O=L[S];O!==void 0?(x!==-1&&(j+=encodeURIComponent(A.substring(x,C)),x=-1),j+=O):x===-1&&(x=C)}}return x!==-1&&(j+=encodeURIComponent(A.substring(x))),j!==void 0?j:A}function V(A){let b;for(let q=0;q<A.length;q++){let j=A.charCodeAt(q);j===35||j===63?(b===void 0&&(b=A.substr(0,q)),b+=L[j]):b!==void 0&&(b+=A[q])}return b!==void 0?b:A}function m(A,b){let q;return q=A.authority&&A.path.length>1&&A.scheme==="file"?`//${A.authority}${A.path}`:A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?b?A.path.substr(1):A.path[1].toLowerCase()+A.path.substr(2):A.path,i&&(q=q.replace(/\//g,"\\")),q}function g(A,b){let q=b?V:Y,j="",{scheme:x,authority:C,path:S,query:O,fragment:M}=A;if(x&&(j+=x,j+=":"),(C||x==="file")&&(j+=d,j+=d),C){let N=C.indexOf("@");if(N!==-1){let z=C.substr(0,N);C=C.substr(N+1),N=z.lastIndexOf(":"),N===-1?j+=q(z,!1,!1):(j+=q(z.substr(0,N),!1,!1),j+=":",j+=q(z.substr(N+1),!1,!0)),j+="@"}C=C.toLowerCase(),N=C.lastIndexOf(":"),N===-1?j+=q(C,!1,!0):(j+=q(C.substr(0,N),!1,!0),j+=C.substr(N))}if(S){if(S.length>=3&&S.charCodeAt(0)===47&&S.charCodeAt(2)===58){let N=S.charCodeAt(1);N>=65&&N<=90&&(S=`/${String.fromCharCode(N+32)}:${S.substr(3)}`)}else if(S.length>=2&&S.charCodeAt(1)===58){let N=S.charCodeAt(0);N>=65&&N<=90&&(S=`${String.fromCharCode(N+32)}:${S.substr(2)}`)}j+=q(S,!0,!1)}return O&&(j+="?",j+=q(O,!1,!1)),M&&(j+="#",j+=b?M:Y(M,!1,!1)),j}function w(A){try{return decodeURIComponent(A)}catch{return A.length>3?A.substr(0,3)+w(A.substr(3)):A}}let $=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(A){return A.match($)?A.replace($,(b=>w(b))):A}var st=n(975);let Mt=st.posix||st,on="/";var Tn;(function(A){A.joinPath=function(b,...q){return b.with({path:Mt.join(b.path,...q)})},A.resolvePath=function(b,...q){let j=b.path,x=!1;j[0]!==on&&(j=on+j,x=!0);let C=Mt.resolve(j,...q);return x&&C[0]===on&&!b.authority&&(C=C.substring(1)),b.with({path:C})},A.dirname=function(b){if(b.path.length===0||b.path===on)return b;let q=Mt.dirname(b.path);return q.length===1&&q.charCodeAt(0)===46&&(q=""),b.with({path:q})},A.basename=function(b){return Mt.basename(b.path)},A.extname=function(b){return Mt.extname(b.path)}})(Tn||(Tn={})),Yl=r})();var{URI:wt,Utils:ie}=Yl;import{isBrowser as sb}from"@redocly/openapi-core";import{CONFIG_FILE_NAME as ob}from"@redocly/openapi-core";var Us={languageId:"yaml",filePattern:/\.ya?ml$/i},Ws={languageId:"json",filePattern:/\.json$/i},Fs=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Us,Ws];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ie.resolvePath(ie.dirname(Le(t)),ob);return await this._fs.exists(n)?Ue(n.toString()):void 0}catch{return}}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}registerRemoteScorecardAndPlugins(t){this._remoteScorecardAndPlugins=t}get remoteScorecardAndPlugins(){return this._remoteScorecardAndPlugins}get fs(){if(!this._fs)throw new Error("FileSystemProvider not registered.");return this._fs}get documents(){if(!this._documentManager)throw new Error("DocumentsProvider not registered.");return this._documentManager}get findConfig(){if(!this._findConfig)throw new Error("ConfigFinder not registered.");return this._findConfig}get getRootWorkspaceFolderURI(){if(!this._getRootWorkspaceFolderURI)throw new Error("RootWorkspaceFolderURIGetter not registered.");return this._getRootWorkspaceFolderURI}setScorecardStatus(t){this._scorecardStatus=t}get scorecardStatus(){return this._scorecardStatus}},pe=new Fs;function Hs(e,t){let n=r=>ie.resolvePath(Le(ui(r))).toString();return n(e)===n(t)}function Le(e){return wt.parse(e)}function ui(e){return e.startsWith("file://")?e:wt.file(e).toString()}function Ue(e){let t=wt.parse(e).fsPath;return sb&&t.startsWith("/")?t.slice(1):t}function vr(e){let t=["https","http"],{scheme:n}=wt.parse(e);return t.includes(n)}function Pr(e){return ie.basename(Le(e))}async function $l(e,t="/"){let n=ie.resolvePath(Le(t));for(;e.path!=="/";)try{(await pe.fs.stat(ie.resolvePath(n,e.path))).isDirectory()||(e=ie.dirname(e));break}catch{e=ie.dirname(e)}return e}import{BaseResolver as BP,Source as Td,readFileFromUrl as zP,isAbsoluteUrl as Sd}from"@redocly/openapi-core";var li=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=Gl(r.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),c=Math.max(i.end.line,0),l=this._lineOffsets,d=Vl(r.text,!1,o);if(c-a===d.length)for(let v=0,y=d.length;v<y;v++)l[v+a+1]=d[v];else d.length<1e4?l.splice(a+1,c-a,...d):this._lineOffsets=l=l.slice(0,a+1).concat(d,l.slice(c+1));let h=r.text.length-(s-o);if(h!==0)for(let v=a+1+d.length,y=l.length;v<y;v++)l[v]=l[v]+h}else if(e.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Vl(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&&Kl(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}},pi;(function(e){function t(i,o,s,a){return new li(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof li)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=Bs(o.map(ab),(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),c=0,l=[];for(let d of a){let h=i.offsetAt(d.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&l.push(s.substring(c,h)),d.newText.length&&l.push(d.newText),c=i.offsetAt(d.range.end)}return l.push(s.substr(c)),l.join("")}e.applyEdits=r})(pi||(pi={}));function Bs(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);Bs(r,t),Bs(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 Vl(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);Kl(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Kl(e){return e===13||e===10}function Gl(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 ab(e){let t=Gl(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var Ci=Ne(Nn(),1),xd=new Map;function _d(e,t){return xd.set(e,t)}function Cd(e){let t=[];for(let[n,r]of xd.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Ge(e){let t=pe.documents.get(e);if(t)return t;let n=await pe.fs.readFile(Le(e),"utf-8");return pi.create(e,"yaml",1,n)}function Sr(e){return Ws.filePattern.test(e)}function Ti(e){return Us.filePattern.test(e)}function dn({uri:e,ast:t,textDocument:n}){if(!(Ti(e)&&/entit(y|ies)\.ya?ml$/i.test(e)))return!1;if(n){let i=n.getText();t=Ci.safeLoad(i,{filename:e})}if(t?.kind===Ci.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 ht=class extends BP{resolveExternalRef(t,n){return Sd(n)?n:t&&Sd(t)?new URL(n,t).href:t?ie.resolvePath(ie.dirname(Le(t)),n).toString():n}async loadExternalRef(t){if(vr(t)){let{body:n,mimeType:r}=await zP(t,{...this.config.http,customFetch:fetch});return new Td(t,n,r)}return new Td(t,(await Ge(t)).getText())}};var Et;async function Si(e,t){try{let n=new ht,r=e?await pe.findConfig(e):void 0;if(r===void 0){let i=await $P(r,n);return Et=await Dd(VP,{externalRefResolver:n,ignore:i}),Et}Et=await YP({configPath:r,externalRefResolver:n})}catch(n){t?.createEventHandleLoadConfigError?.(n?.message),Et=await Dd({})}return Et}async function On(e){return Et||await Si(e)}async function fn(e){return await ya(e)?!0:!!Et?.resolvedRefMap&&[...Et.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Hs(Pr(e),n))}async function ya(e){let t=await pe.findConfig(e);return t?Hs(e,t):!1}function GP(e){return e.endsWith(KP)}var Rd={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Dr={type:"object",properties:Rd,additionalProperties:!1},QP={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Wt={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({},Rd),{like:Dr,dislike:Dr,satisfied:Dr,neutral:Dr,dissatisfied:Dr}),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:QP},additionalProperties:!1}},additionalProperties:!1};var JP={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},ba={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Di={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Wt,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ba,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:JP,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1};var qn={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},XP={type:"object",properties:{name:{type:"string"},items:qn,queries:qn,mutations:qn,subscriptions:qn,types:qn,directives:qn},required:["name"],additionalProperties:!1},ZP={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:XP},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},ex={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},tx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},nx={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:ex,license:tx},additionalProperties:!1},jn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},ZP.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:ba,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:Wt,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},info:nx},additionalProperties:!1};var rx={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},ix={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"}}},wd={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},ox={type:"object",properties:{beforeInfo:{type:"array",items:wd},end:{type:"array",items:wd}}},gn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Ri={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},sx={type:"object",properties:Ei(gn.properties,["light","dark"])},ax={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"}}},cx={type:"object",properties:{error:Ri,info:Ri,redirect:Ri,success:Ri}},ux={type:"object",properties:Mn(gn.properties,["dark"])},lx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},px={type:"object",properties:{accent:gn,border:sx,error:gn,http:ax,primary:gn,responses:cx,secondary:ux,success:gn,text:lx,tonalOffset:{type:"number"},warning:gn}},wi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},dx={type:"object",properties:{small:wi,medium:wi,large:wi,xlarge:wi}},yt={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},fx={type:"object",properties:Object.assign(Object.assign({},Mn(yt.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:dx})},Ad={type:"object",properties:Ei(yt.properties,["fontSize","lineHeight"])},gx={type:"object",properties:{medium:Ad,small:Ad}},mx={type:"object",properties:Object.assign(Object.assign({},Mn(yt.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:gx})},hx={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},yx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},kd={type:"object",properties:{fullWidth:{type:"boolean"}}},bx={type:"object",properties:{buttons:fx,httpBadges:mx,layoutControls:hx,panels:yx,tryItButton:kd,tryItSendButton:kd}},ki={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},vx={type:"object",properties:{maxWidth:ki}},Px={type:"object",properties:{maxWidth:ki,middlePanelMaxWidth:ki}},xx={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:vx,"three-panel":Px}},Ed={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},_x={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:Ed,defaultDetailsWidth:{type:"string"},examples:Ed,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Od={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Cx={type:"object",properties:Ei(Od.properties,["textTransform"])},Tx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Sx={type:"object",properties:Object.assign(Object.assign({},Mn(yt.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:Od,level1items:Cx,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Tx,textColor:{type:"string"},width:{type:"string"}})},Ai={type:"object",properties:Object.assign(Object.assign({},yt.properties),{color:{type:"string"},transform:{type:"string"}})},Dx={type:"object",properties:Object.assign(Object.assign({},yt.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:Mn(yt.properties,["fontSize"])},wx={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Ax={type:"object",properties:Object.assign(Object.assign({code:Dx,fieldName:yt},Ei(yt.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Ai,heading2:Ai,heading3:Ai,headings:Rx,lineHeight:{type:"string"},links:wx,optimizeSpeed:{type:"boolean"},rightPanelHeading:Ai,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},kx={type:"object",properties:Object.assign({color:{type:"string"}},Mn(yt.properties,["fontWeight"]))},Ex={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:kx}},Nx={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},Ox={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Nd={type:"object",properties:{custom:{type:"string"}}},qx={type:"object",properties:{DownloadButton:Nd,NextSectionButton:Nd}},jx={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},Mx={type:"object",properties:{borderRadius:{type:"string"}}},Ix={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Lx={type:"object",properties:{breakpoints:ki,codeBlock:Ex,colors:px,components:bx,layout:xx,logo:Nx,fab:Ox,overrides:qx,rightPanel:jx,schema:_x,shape:Mx,sidebar:Sx,spacing:Ix,typography:Ax,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},Fx={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:rx}},required:["languages"]},qd={type:"object",properties:{theme:Lx,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:Fx,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:ix,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:ox,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 Ei(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function Mn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var bt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}};var Rr={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={type:"object",additionalProperties:!0},wr={preprocessors:vt,oas2Preprocessors:vt,oas3_0Preprocessors:vt,oas3_1Preprocessors:vt,oas3_2Preprocessors:vt,async2Preprocessors:vt,async3Preprocessors:vt,arazzo1Preprocessors:vt,overlay1Preprocessors:vt,openrpc1Preprocessors:vt},Pt={type:"object",additionalProperties:!0};var Ar={decorators:Pt,oas2Decorators:Pt,oas3_0Decorators:Pt,oas3_1Decorators:Pt,oas3_2Decorators:Pt,async2Decorators:Pt,async3Decorators:Pt,arazzo1Decorators:Pt,overlay1Decorators:Pt,openrpc1Decorators:Pt};var De={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},jd={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},va={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}}},Pa={type:"array",items:Object.assign(Object.assign({},va),{properties:Object.assign(Object.assign({},va.properties),{items:{type:"array",items:va}})})},Ux={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Wx={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Hx={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}},Bx={type:"object",properties:Object.assign({facets:Hx},De.properties),additionalProperties:!1},zx={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Ni={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Oi={type:"object",properties:Object.assign({items:Pa},De.properties),additionalProperties:!1},qi={type:"object",additionalProperties:Ux},ji={type:"object",properties:Object.assign({items:Pa,copyrightText:{type:"string"},logo:De},De.properties),additionalProperties:!1},Mi={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},De.properties),additionalProperties:!1},Ii={type:"object",properties:{head:{type:"array",items:jd},body:{type:"array",items:jd}},additionalProperties:!1},Li={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}},Fi={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:Wx,filters:Bx,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:zx}},De.properties),additionalProperties:!1},Ui={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},Wi={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},De.properties),additionalProperties:!1},Yx={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},Hi={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:Yx},additionalProperties:!1},Bi={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},zi={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:{}},In=Object.assign(Object.assign({},Di),{properties:Object.assign(Object.assign({},Di.properties),qd.properties)}),$x={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Vx={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"]},Kx={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},Gx={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Qx={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"]},Jx={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},Xx={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"]},xa={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"]},Zx={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:xa}},additionalProperties:!1,required:["trackingId"]},Yi={type:"object",properties:{adobe:$x,amplitude:Vx,fullstory:Kx,heap:Gx,rudderstack:Qx,segment:Jx,gtm:Xx,ga:Zx}},$i={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},Vi={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Ki={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},e_={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"}}}},t_={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:e_},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:Pa,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Ln={type:"object",patternProperties:{".*":t_}},Fn={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},Rr),wr),Ar),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}};var n_={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},r_={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},i_={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},Nt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:r_},excludes:{type:"array",items:n_},filters:{type:"array",items:i_},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},o_={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},s_={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:o_},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},a_={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:s_,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},c_={type:"object",additionalProperties:a_},Gi={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:c_,catalogs:{type:"object",properties:{all:Nt,services:Nt,domains:Nt,teams:Nt,users:Nt,apiDescriptions:Nt,dataSchemas:Nt,apiOperations:Nt},additionalProperties:Nt}},additionalProperties:!1};var Md={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Ca={type:"string",enum:["and","or"]},_a={type:"object",properties:{field:{type:"string"},operator:Md,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Md,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},u_={type:"object",properties:{operator:Ca,conditions:{type:"array",items:_a}},required:["operator","conditions"],additionalProperties:!1},Id={type:"array",items:{oneOf:[_a,{type:"object",properties:{operator:Ca,conditions:{type:"array",items:{oneOf:[_a,u_]}}},required:["operator","conditions"],additionalProperties:!1}]}},Fd={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},l_={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:Fd},required:["subject","assertions"],additionalProperties:!1}},p_={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:Fd,where:l_,weight:{type:"number",default:1}},required:["subject","assertions"],additionalProperties:!1},d_={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number",default:1}},additionalProperties:!0},p_]}},f_={type:"object",properties:{name:{type:"string"},extends:{type:"array",items:{type:"string"}},rules:d_},required:["name"],additionalProperties:!1},Ld={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},g_={oneOf:[Ld,{type:"array",items:Ld}]},m_={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[Id,{type:"object",properties:{operator:Ca,conditions:Id},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:f_,minItems:1},trigger:g_},required:["name","key","entities","levels"],additionalProperties:!1},Qi={type:"array",items:m_};var Ze={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Ni,navbar:Oi,products:qi,footer:ji,sidebar:Mi,scripts:Ii,links:Li,feedback:Wt,search:Fi,aiAssistant:Ui,colorMode:Wi,navigation:Hi,codeSnippet:Bi,markdown:zi,openapi:In,graphql:jn,analytics:Yi,userMenu:$i,versionPicker:Vi,breadcrumbs:Ki,catalog:Ln,entitiesCatalog:Gi,catalogClassic:Ln,scorecard:Fn,scorecards:Qi,scorecardClassic:Fn},additionalProperties:!0};var Sa="https://redocly.com/sso/teams",Un;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(Un||(Un={}));var Wn;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(Wn||(Wn={}));var Ta;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(Ta||(Ta={}));var Da=["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"],de={USER_ENTITY:"UserEntity",USER_ENTITY_METADATA:"UserEntityMetadata",API_DESCRIPTION_ENTITY:"ApiDescriptionEntity",API_DESCRIPTION_METADATA:"ApiDescriptionEntityMetadata",API_OPERATION_ENTITY:"ApiOperationEntity",API_OPERATION_METADATA:"ApiOperationEntityMetadata",DATA_SCHEMA_ENTITY:"DataSchemaEntity",DATA_SCHEMA_METADATA:"DataSchemaEntityMetadata",SERVICE_ENTITY:"ServiceEntity",DOMAIN_ENTITY:"DomainEntity",TEAM_ENTITY:"TeamEntity",ENTITY:"Entity",ENTITY_METADATA:"EntityMetadata",ENTITY_LINK_LIST:"EntityLinkList",ENTITY_LINK:"EntityLink",ENTITY_RELATION:"EntityRelation",ENTITY_RELATION_LIST:"EntityRelationList",ENTITY_CONTACT:"EntityContact",SLACK_CONTACT:"EntitySlackContact",SLACK_CHANNEL:"EntitySlackChannel"};function Ji(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>{if(n!==t)return typeof r!="object"||!r?[n,r]:Array.isArray(r)?[n,r.map(i=>typeof i=="object"?Ji(i,t):i)]:[n,Ji(r,t)]}).filter(Boolean))}var h_={type:"object",additionalProperties:{type:"string"}},y_={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Xi={type:"string",enum:["error","warn","off"]},b_={type:"object",additionalProperties:!1,properties:{schemaCheck:Xi,statusCodeCheck:Xi,contentTypeCheck:Xi,successCriteriaCheck:Xi}},v_={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},P_={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},x_={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Ud={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:[v_,P_]},inputs:h_,servers:y_,severity:b_,slo:x_},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var __={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},C_={type:"object",properties:{type:{type:"string",const:Un.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:__,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},T_={type:"object",properties:{type:{type:"string",const:Un.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:Sa},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},S_={oneOf:[C_,T_],discriminator:{propertyName:"type"}},D_={type:"object",additionalProperties:S_},zd={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},Yd={type:"boolean"},$d={type:"string",pattern:"^https?://.*"},Vd={type:"string",pattern:"^https?://.*"},R_={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},w_={type:"object",additionalProperties:R_,default:{}},A_={type:"string",enum:["info","success","warning","error"],default:"info"},k_={type:"object",properties:{content:{type:"string"},dismissible:{type:"boolean",default:!1},target:{type:"string"},color:A_},required:["content"],additionalProperties:!1},E_={type:"array",items:k_,default:[]},wa={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:In,graphql:jn,theme:{type:"object",properties:{openapi:In,graphql:jn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Rr),wr),Ar),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},N_={type:"object",additionalProperties:!0},O_={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Wd={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},Hd={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:Wd},default:{llmstxt:Wd.default},additionalProperties:!1},q_={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},mn={type:"object",additionalProperties:{type:"string"}},Aa={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:mn,cms:mn,reunite:mn,features:{type:"object",properties:{aiSearch:mn},additionalProperties:!1},content:{type:"object",properties:{"**":mn},additionalProperties:mn}},additionalProperties:mn},j_={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},M_={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},I_={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:[j_,M_]}},additionalProperties:!1,required:["type","apiBaseUrl"]},L_={type:"object",properties:{type:{type:"string",const:Wn.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},F_={type:"object",properties:{type:{type:"string",const:Wn.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Ra={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:[L_,F_],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},U_=Object.assign(Object.assign({},Ra),{properties:Object.assign(Object.assign({},Ra.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),W_={type:"object",oneOf:[Ra,U_,I_],discriminator:{propertyName:"type"}},H_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:W_}}},Bd={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"]},B_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},z_={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:[]}}},Y_={type:"object",properties:{requiresLogin:Yd,logoutReturnUrl:$d,residency:Vd,sso:zd,rbac:Aa},additionalProperties:!1},kr={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:w_,seo:Hd,rbac:Aa,apiFunctions:q_,requiresLogin:Yd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:B_}},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:wa},extends:{type:"array",items:{type:"string"}}},Rr),Ar),wr),{ssoDirect:D_,sso:zd,residency:Vd,logoutReturnUrl:$d,access:Y_,developerOnboarding:H_,removeAttribution:{type:"boolean"},i18n:Bd,l10n:Bd,metadata:N_,metadataGlobs:O_,ignore:{type:"array",items:{type:"string"}},theme:Ze,reunite:Ud,logo:Ni,navbar:Oi,products:qi,footer:ji,sidebar:Mi,scripts:Ii,links:Li,feedback:Wt,search:Fi,aiAssistant:Ui,colorMode:Wi,navigation:Hi,codeSnippet:Bi,markdown:zi,openapi:In,graphql:jn,analytics:Yi,userMenu:$i,versionPicker:Vi,breadcrumbs:Ki,catalog:Ln,entitiesCatalog:Gi,catalogClassic:Ln,scorecard:Fn,scorecards:Qi,scorecardClassic:Fn,mcp:z_,banner:E_}),default:{redirects:{},seo:Hd.default},additionalProperties:!0},$_=Object.assign(Object.assign({},Ji(kr,"default")),{additionalProperties:!1}),ka=Object.assign(Object.assign({$id:"root-redocly-config"},kr),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},kr.properties),{env:{type:"object",additionalProperties:$_}}),default:{},additionalProperties:!1});var Ea={type:"object",properties:{logo:Ze.properties.logo,navbar:Ze.properties.navbar,footer:Ze.properties.footer,sidebar:Ze.properties.sidebar,search:Ze.properties.search,codeSnippet:Ze.properties.codeSnippet,breadcrumbs:Ze.properties.breadcrumbs,openapi:Ze.properties.openapi,feedback:Ze.properties.feedback,mockServer:kr.properties.mockServer,analytics:{type:"object",properties:{ga:xa}}},additionalProperties:!0,default:{}},V_={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},Ea.properties),{apis:{type:"object",additionalProperties:wa},theme:Ea}),additionalProperties:!1};var K_={type:"object",nodeTypeName:de.USER_ENTITY_METADATA,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},G_={type:"object",nodeTypeName:de.API_DESCRIPTION_METADATA,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},Q_={type:"object",nodeTypeName:de.API_OPERATION_METADATA,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},J_={type:"object",nodeTypeName:de.DATA_SCHEMA_METADATA,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},X_={type:"object",properties:{},nodeTypeName:de.ENTITY_METADATA,additionalProperties:!0},Z_={type:"object",nodeTypeName:de.SLACK_CHANNEL,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},eC={type:"object",nodeTypeName:de.SLACK_CONTACT,properties:{channels:{type:"array",items:Z_}},required:["channels"],additionalProperties:!1},tC={type:"object",nodeTypeName:de.ENTITY_CONTACT,properties:{slack:eC},additionalProperties:!1},nC={type:"object",nodeTypeName:de.ENTITY_LINK,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},rC={type:"object",nodeTypeName:de.ENTITY_RELATION,properties:{type:{type:"string",enum:Da},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Ht={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:tC,links:{type:"array",nodeTypeName:de.ENTITY_LINK_LIST,items:nC},relations:{type:"array",nodeTypeName:de.ENTITY_RELATION_LIST,items:rC},metadata:X_},Zi={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:Object.assign(Object.assign({},Ht),{type:{const:"user"},metadata:K_}),required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:de.USER_ENTITY},{type:"object",nodeTypeName:de.API_OPERATION_ENTITY,properties:Object.assign(Object.assign({},Ht),{type:{const:"api-operation"},metadata:Q_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:de.DATA_SCHEMA_ENTITY,properties:Object.assign(Object.assign({},Ht),{type:{const:"data-schema"},metadata:J_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:de.API_DESCRIPTION_ENTITY,properties:Object.assign(Object.assign({},Ht),{type:{const:"api-description"},metadata:G_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:de.SERVICE_ENTITY,properties:Object.assign(Object.assign({},Ht),{type:{const:"service"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:de.DOMAIN_ENTITY,properties:Object.assign(Object.assign({},Ht),{type:{const:"domain"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:de.TEAM_ENTITY,properties:Object.assign(Object.assign({},Ht),{type:{const:"team"}}),required:["key","title","type"],additionalProperties:!1}]},eo={type:"object",nodeTypeName:de.ENTITY,properties:Object.assign({},Ht),required:["key","title","type"],additionalProperties:!1};var Fe=Ne(tn(),1);import{getLineColLocation as mT,lintDocument as hT,makeDocumentFromString as Ts,lintConfig as yT,lintEntityFile as bT,detectSpec as vT,createConfigTypes as PT}from"@redocly/openapi-core";var _s=Ne(Nn(),1);function ly(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(l){let d=i.get(l.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(l.uri,setTimeout(()=>a(l),t-h));else if(r.delete(l.uri),i.delete(l.uri),!n){let v=s.get(l.uri),y=e(o.get(l.uri));v&&v.forEach(({resolve:D})=>D(y)),s.delete(l.uri)}}catch(v){let y=s.get(l.uri);y&&y.forEach(({reject:D})=>D(v)),s.delete(l.uri)}}function c(l){let d=r.get(l.uri),h=n&&!d;return i.set(l.uri,Date.now()),o.set(l.uri,l),new Promise((v,y)=>{let D=s.get(l.uri)||[];d||(s.set(l.uri,[...D,{resolve:v,reject:y}]),r.set(l.uri,setTimeout(()=>a(l),t))),h?v(e(o.get(l.uri))):s.set(l.uri,[...D,{resolve:v,reject:y}])})}return c}function Tl(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 py(e){return e==="$ref"}async function Sl(e,t){let n=wt.parse(t);return ie.joinPath(n,e).toString()}async function dy(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await Sl(i,n)===t)return r}function fy(e){return typeof e=="string"}function Xr(e){return typeof e=="function"}function gy(e){return e?.kind===_s.Kind.MAP}function Dl(e){return e?.kind===_s.Kind.MAPPING}function Rl(e){return e?.kind===_s.Kind.SEQ}function Zr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}import{bundleDocument as iT,isPlainObject as oT,makeDocumentFromString as sT,getTypes as aT,detectSpec as cT}from"@redocly/openapi-core";var my=new Map,Cs=new Map;function uT(e){return e?Array.from(e).map(([t,n])=>[t,Tl(n)]):[]}async function wl(e,t){let n=await On(),r=new ht(n.resolve),i=sT(e.getText(),e.uri),{bundle:o,rootType:s,refTypes:a}=await iT({document:i,config:n,externalRefResolver:r,types:aT(cT(i.parsed))}),c=uT(a);a&&(Cs=new Map([...Cs,...a])),my.set(e.uri,{uri:e.uri,name:Pr(e.uri),definition:oT(o.parsed)?o.parsed:{},rootType:s,refTypes:c,errors:t})}function lT(){return Array.from(my).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:Pr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function Al(e){return Cs.has(e)?Cs.get(e):null}import{createConfig as pT,lintDocument as dT,loadIgnoreConfig as fT}from"@redocly/openapi-core";async function hy(e,t,n,r,i){let o=[],s=await fT(r,t);for(let a of n?.levels||[]){let c=typeof i=="string"?await gT(i):i,l=await pT({...a,plugins:c},{configPath:r,ignore:s}),d=await dT({document:e,externalRefResolver:t,config:l});o.push(...d.filter(({ignored:h})=>!h).map(h=>({...h,scorecardLevel:a.name})))}return o}async function gT(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)+"..."),[]}}var xT=800,El=ly(ST,xT);async function _T(e){let t=e.map(({documentPath:i})=>Le(i).toString()),n=await On(),r=await pe.getRootWorkspaceFolderURI();for(let{root:i}of Object.values(n.resolvedConfig.apis??{})){let o=await Sl(i,r);if(t.includes(o))return o}return t[0]}function CT(e){try{return vT(e),!0}catch{return!1}}async function TT(e){try{let t=Ts(e.getText(),e.uri),n=new ht,r=await bT({document:t,entitySchema:Zi,entityDefaultSchema:eo,externalRefResolver:n}),i=[{uri:e.uri,diagnostics:[]}];return kl(r,i),i}catch{return[{uri:e.uri,diagnostics:[]}]}}async function ST(e){let t=e.uri,n=await On();if(await fn(Ue(t)))try{let r=await ya(Ue(t))?Ts(e.getText(),t):Ts(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new ht,o=await yT({config:{document:r},externalRefResolver:i,externalConfigTypes:PT(ka,n)}),s=[{uri:e.uri,diagnostics:[]}];return kl(o,s),s}catch{return[{uri:e.uri,diagnostics:[]}]}else{if(dn({uri:Ue(t),textDocument:e}))return await TT(e);{let r=Cd(t),i=await _T(r||[]);i&&(e=await Ge(i),t=i);let o;try{o=Ts(e.getText(),Ue(t))}catch{return[{uri:e.uri,diagnostics:[]}]}if(!CT(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new ht(n.resolve),c=await pe.getRootWorkspaceFolderURI(),l=await dy(n.resolvedConfig.apis??{},e.uri,c),d=Date.now(),h=[],v=[];try{v=(await hT({document:o,config:n.forAlias(l),externalRefResolver:a})).filter(({ignored:m})=>!m);let Y=pe.remoteScorecardAndPlugins?.scorecard||n.resolvedConfig.scorecardClassic||n.resolvedConfig.scorecard,V=Y&&pe.scorecardStatus==="enabled"?await hy(o,a,Y,n.configPath,pe.remoteScorecardAndPlugins?.plugins):[];h=[...v,...V]}catch(Y){h.push({ruleId:"struct",suggest:[],severity:"error",message:`Error linting document: ${Y.message}`,location:[{start:{line:1,col:1},end:{line:1,col:1},source:o.source}]})}let y=AT(v);wl(e,y);let D=Date.now()-d;s=[...new Set([e.uri,...[...a.getFiles()].map(Y=>Le(Y).toString())])].map(Y=>({uri:Y,diagnostics:[]})),_d(t,{dependencyPaths:a.getFiles(),durationMS:D}),kl(h,s)}catch(a){DT(e.uri,a,s)}return s}}}function ei(){return pe.documents.all().map(El)}function DT(e,t,n){let r=n||[{uri:e,diagnostics:[]}];if(t.line&&t.col&&t.message){let i=t.source?.absoluteRef?ui(t.source.absoluteRef):e,o=t.line-1,s=t.col-1,a=Fe.Position.create(o,s),c=Fe.Diagnostic.create(Fe.Range.create(a,a),t.message,Fe.DiagnosticSeverity.Error);yy(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function yy(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 RT(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 kl(e,t){e.forEach(n=>{let r;switch(n.severity){case"error":r=Fe.DiagnosticSeverity.Error;break;case"warn":r=Fe.DiagnosticSeverity.Warning;break;default:r=Fe.DiagnosticSeverity.Warning}let i=gT(n.location[0]),o=li(i.source.absoluteRef),s=Fe.Position.create(i.start.line-1,i.start.col-1),a=i.end?Fe.Position.create(i.end.line-1,i.end.col-1):s,c=n.message+` Rule: ${n.ruleId}.`+DT(n)+RT(n),l=Fe.Diagnostic.create(Fe.Range.create(s,a),c,r,void 0,"Redocly OpenAPI");hy(o,l,t)})}function wT(e){return e.filter(({severity:t})=>t==="error").map(t=>({...t,location:t.location.map(n=>({...n,source:{...n.source,_ast:null}}))}))}var js=Ne(tn(),1);var me=Ne(tn(),1);function Ce(e,t){return e?t?Ds[e+"_"+t]||t:Ds[e]||Ds.Default:Ds.Default}var AT=["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=AT.reduce((e,t,n)=>(e[t]=String.fromCharCode(n),e),{});var nn="newItem",ni="propertyName",gr="newLine";function Rs(e){return!!(e?.name&&yy[e.name])}function Nl(e){return yy[e]||[]}var yy={[gr]:[{label:"newLine",kind:me.CompletionItemKind.Constructor,data:{},sortText:Ce(gr)}],[ni]:[{label:ni,kind:me.CompletionItemKind.Constructor,data:{properties:{}},sortText:Ce(ni)}],ServerVariable_Map:[{label:"newVariableName",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("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:Ce("PathMap")}],MediaTypeMap:[{label:"mime/type",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"application/json",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"application/octet-stream",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"multipart/form-data",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"application/x-www-form-urlencoded",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"application/xml",kind:me.CompletionItemKind.Property,data:[],sortText:Ce("MediaTypeMap")}]};import{Oas2Types as kT,Oas3Types as ET,Oas3_1Types as NT,Oas3_2Types as by,AsyncApi2Types as OT,AsyncApi3Types as qT,Arazzo1Types as jT,ConfigTypes as MT,normalizeTypes as ql,getMajorSpecVersion as IT,createEntityTypes as LT}from"@redocly/openapi-core";var pt=Ne(Nn(),1);var Ol=new Map;async function jl(e,t){let n=await Ge(e),r=n.getText(),i=pt.safeLoad(r,{filename:e}),{nodePath:o}=ws({node:i,nodePath:[]},t,n,!0),s=await Ml(i,e),{version:a}=Ll(i),{currentType:c,parentType:l,endPath:d}=As(s,o,i),h=ri(i),v=c?.name?c:l;return{nodePath:o,endPath:d,type:v,existingValues:h,types:s,descriptionVersion:a}}async function FT(e){let n=(await Ge(e)).getText(),r=pt.safeLoad(n,{filename:e});return Il(r)}function vy(e,t){if(!e)return null;let n=e,r=!0;return t.forEach(i=>{if(r=!1,Rl(n)&&n.items&&n.items[i])n=n.items[i],r=!0;else if(fy(n)){let o=ks(n);for(let s of o)if(Dl(s)&&s.key?.value===i){n=s?.value,r=!0;break}}}),r?n:(console.warn("Cannot find node by path",t),null)}function UT(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 ws(e,t,n,r=!1){let{node:i,nodePath:o=[]}=e,s=n.offsetAt(t),a=ks(i);if(a.length===0||WT(i)||!r&&HT(i,n,t))return e;let c=BT(a,s);return ws({nodePath:zT(o,i,a[c],c),node:a[c]},t,n,r)}function WT(e){return e?.kind===pt.Kind.MAPPING&&!e?.value}function HT(e,t,n){let r=t.getText({start:t.positionAt(t._lineOffsets[n.line]),end:n}),i=YT(e,t),o=r?.match(/^\s+/)?.[0]?.length||0;return(/^\s*[\w\-\$\/\{\}]+$/.test(r)?o:n.character)===i}function BT(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 zT(e,t,n,r){return Rl(t)?[...e,r]:Dl(n)&&n?.key?.value&&typeof n.key.value=="string"?[...e,n.key.value]:e}function YT(e,t){let n=e?.startPosition??0,r=UT(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 l;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)l=e.items;else if(Zr(e.items)){let d=$T(n,typeof t[0]=="number"?t[0]:0);l=e.items(d,a)}}else if(e?.properties&&e.properties[a])l=e.properties[a],Zr(l)&&(l=l(null,a));else if(e?.additionalProperties&&!Zr(e?.additionalProperties))l=e.additionalProperties;else if(Zr(e?.additionalProperties)&&a){let d=e.additionalProperties(null,a);d&&(l=d)}l&&(e=l,o[c]=l)}),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 $T(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 Ml(e,t){if(await fn(t)||await fn(Ue(t)))return ql(MT).ConfigRoot;if(dn({uri:t,ast:e})||dn({uri:Ue(t),ast:e})){let o=LT(eo,to),s=ql(o);if(e?.kind===pt.Kind.SEQ)return s.EntityFileArray;let a=VT(e);return a&&s[a]?s[a]:s.EntityFileDefault}let{types:n,isDefault:r}=GT(e);if(!e)return n;let i=r?Al(t):n;return r&&!Al(t)&&e?null:i||n}function VT(e){let t="type";return e?.mappings?.find(n=>n.key?.value===t&&n.value?.value)?.value?.value}function KT(e){if(Ol.has(e))return Ol.get(e);let t=ql(QT(e)).Root;return Ol.set(e,t),t}function Il(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 Ll(e){let{version:t,isDefault:n}=Il(e);return{version:IT(t),isDefault:n}}function GT(e){let{version:t,isDefault:n}=Il(e);return{types:KT(t),isDefault:n}}function ks(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 QT(e){switch(e){case"oas3_2":return by;case"oas3_1":return NT;case"oas3_0":return ET;case"oas2":return kT;case"async2":return OT;case"async3":return qT;case"arazzo1":return jT;default:return by}}function ri(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:dy(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},ri(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},ri(o?.value||o,t[o?.key?.value||i],n+1)),i++}return t}import{mapTypeToComponent as Py}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 xy(e){let t=Fl[e.name];if(t&&e.properties)for(let n of t)e.properties[n.name]=n.value;return e}var Es=Ne(tn(),1),dt=class{constructor({kind:t,label:n,value:r,textEdit:i,filterText:o,sortText:s,data:a}){this.kind=t||Es.CompletionItemKind.Value,this.label=n;let{node:c,lineOffset:l,position:d}=a;this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.textEdit=i||(c?.value&&d&&l?this.getTextEdit(c,d,l):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 Es.TextEdit.replace({start:{line:n.line,character:i},end:{line:n.line,character:s}},this.insertText)}};var mr=Ne(tn(),1),Cn=class{constructor({kind:t,label:n,insertText:r,insertTextFormat:i,filterText:o,sortText:s,data:a}){this.insertTextFormat=i||n.includes("$")?mr.InsertTextFormat.PlainText:mr.InsertTextFormat.Snippet,this.kind=t||mr.CompletionItemKind.Property,this.label=n,this.data=a||{},this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.command=this.kind===mr.CompletionItemKind.Property?{title:"Suggested values",command:"editor.action.triggerSuggest"}:void 0}};var ii={example:"example",default:"default",enum:"enum",ref:"$ref"},Ns=[ii.default,ii.example];var Sy=Ne(Nn(),1);var we={};Ls(we,{default:()=>Ty.default});Fs(we,Ne(Ul()));var Ty=Ne(Ul());function XT(e,t,n){let r=t.slice(0,t.length-1),{currentType:i}=As(e,r,n);if(i?.name){let[o]=Fl[i.name]||[];return o?.value}return null}function ZT(e,t,n){let r=t[t.length-1];if(ly(r))return XT(e,t,n);let{currentType:i}=As(e,t,n);return i?Rs(i)?i:i?.name&&(i?.name.includes("Map")||i?.name.includes("Named"))?{name:ni,properties:{}}:i:null}async function Dy(e,t){let n=await Ge(e),r=n.getText(),i=(0,Sy.safeLoad)(r,{filename:e}),{node:o,nodePath:s}=ws({node:i,nodePath:[]},t,n),a=await Ml(i,e),c=ZT(a,s,i),l=n._lineOffsets[t.line],d=n.getText({start:n.positionAt(l),end:t});return{currentAst:i,node:o,nodePath:s,position:t,lineText:d,lineOffset:l,openApiType:c}}async function Ry(e,t){let n=ie.resolvePath(Le(e)),r=ie.dirname(n),i=await $l(ie.joinPath(r,t),r.path),o=ie.resolvePath(r,i.path);return{refPath:t,refDirPath:i,refDirAbsolutePath:o,isAbsolutePath:t?(0,we.isAbsolute)(t):!1,docAbsolutePath:n,docAbsoluteDirPath:r,root:"/"}}var wy=Ne(tn(),1);var Os=class extends dt{constructor(t){super(t),this.kind=wy.CompletionItemKind.Folder,this.command={title:"Complete path",command:"editor.action.triggerSuggest",arguments:[]}}};var Ay=Ne(tn(),1);var qs=class extends dt{constructor(t){super(t),this.kind=Ay.CompletionItemKind.File}};var tS=pe.supportedLanguages.concat({languageId:"markdown",filePattern:/\.md$/});function nS(e){let{refPath:t,docAbsoluteDirPath:n,isAbsolutePath:r,root:i}=e,o=(0,we.resolve)(n.path,t,".."),s=r?o:(0,we.relative)(n.path,o),a=s&&s!==i?"/":"";return{name:"../",type:1,matchBy:t,sortBy:Ce("FolderCompletion"),value:`${s}${a}`}}async function rS(e,t,n){let r=[],{refDirAbsolutePath:i,docAbsolutePath:o}=n;for(let s of e)try{let a=ie.resolvePath(i,s),c=await pe.fs.stat(a);c.isFile()&&a.path!==o.path&&t.supportedFiles.some(l=>l.filePattern.test(s))&&r.push({name:s,type:0}),c.isDirectory()&&r.push({name:s,type:1})}catch{continue}return r}function ky(e,t){let{docAbsoluteDirPath:n,isAbsolutePath:r,refDirAbsolutePath:i,root:o,refPath:s}=t,a=[];return i.path!==o&&a.push(nS(t)),a.concat(e.map(({name:c,type:l})=>{let d=(0,we.resolve)(i.path,c),h=(0,we.relative)(n.path,d),v=s.includes(we.sep)?s.slice(0,s.lastIndexOf(we.sep)+1):s+we.sep,y=r?d:h;if(l===0)return{type:l,name:c,value:y,sortBy:`${Ce("FileCompletion")}${c}`,matchBy:`${v}${c}`};let D=`${c}/`;return{type:l,name:D,value:`${y}${h?"/":""}`,sortBy:`${Ce("FolderCompletion")}${c}`,matchBy:`${v}${c}`}}))}function Ey(e,t){let{node:n,lineOffset:r,position:i}=t;return e.map(o=>{let{name:s,value:a,matchBy:c,sortBy:l,type:d}=o,h={label:s,filterText:ei(c,n),sortText:l,value:a,data:{lineOffset:r,position:i,node:n}};return d===1?new Os(h):new qs(h)})}async function Ny(e,t){let{node:n}=t,r=n.value??"",i=await Ry(e,r),{refDirAbsolutePath:o}=i,s=[];try{s=await pe.fs.readDir(o)}catch{return Ey(ky([],i),t)}let a=await rS(s,{supportedFiles:tS},i);return Ey(ky(a,i),t)}import{isEmptyObject as iS}from"@redocly/openapi-core";function Oy(e,t){if(t?.items)return"- "+Oy(e,t.items);if(t?.required)return Object.values(t.required).map((n,r)=>`${n}: \${${r+1}}`).join(`
|
|
76
|
-
`);if(e==="openapi"){let n="3.1.0",[r,i,o]=n.split(".");return`\${1:${r}}.\${2:${i}}.\${3:${o}}`}return""}function
|
|
74
|
+
- `)}`}function wT(e){return e.scorecardLevel?`
|
|
75
|
+
Scorecard level: ${e.scorecardLevel}`:""}function kl(e,t){e.forEach(n=>{let r;switch(n.severity){case"error":r=Fe.DiagnosticSeverity.Error;break;case"warn":r=Fe.DiagnosticSeverity.Warning;break;default:r=Fe.DiagnosticSeverity.Warning}let i=mT(n.location[0]),o=ui(i.source.absoluteRef),s=Fe.Position.create(i.start.line-1,i.start.col-1),a=i.end?Fe.Position.create(i.end.line-1,i.end.col-1):s,c=n.message+` Rule: ${n.ruleId}.`+RT(n)+wT(n),l=Fe.Diagnostic.create(Fe.Range.create(s,a),c,r,void 0,"Redocly OpenAPI");yy(o,l,t)})}function AT(e){return e.filter(({severity:t})=>t==="error").map(t=>({...t,location:t.location.map(n=>({...n,source:{...n.source,_ast:null}}))}))}var qs=Ne(tn(),1);var me=Ne(tn(),1);function Ce(e,t){return e?t?Ss[e+"_"+t]||t:Ss[e]||Ss.Default:Ss.Default}var kT=["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"],Ss=kT.reduce((e,t,n)=>(e[t]=String.fromCharCode(n),e),{});var nn="newItem",ti="propertyName",gr="newLine";function Ds(e){return!!(e?.name&&by[e.name])}function Nl(e){return by[e]||[]}var by={[gr]:[{label:"newLine",kind:me.CompletionItemKind.Constructor,data:{},sortText:Ce(gr)}],[ti]:[{label:ti,kind:me.CompletionItemKind.Constructor,data:{properties:{}},sortText:Ce(ti)}],ServerVariable_Map:[{label:"newVariableName",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("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:Ce("PathMap")}],MediaTypeMap:[{label:"mime/type",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"application/json",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"application/octet-stream",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"multipart/form-data",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"application/x-www-form-urlencoded",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"application/xml",kind:me.CompletionItemKind.Property,data:[],sortText:Ce("MediaTypeMap")}]};import{Oas2Types as ET,Oas3Types as NT,Oas3_1Types as OT,Oas3_2Types as vy,AsyncApi2Types as qT,AsyncApi3Types as jT,Arazzo1Types as MT,ConfigTypes as IT,normalizeTypes as ql,getMajorSpecVersion as LT,createEntityTypes as FT}from"@redocly/openapi-core";var pt=Ne(Nn(),1);var Ol=new Map;async function jl(e,t){let n=await Ge(e),r=n.getText(),i=pt.safeLoad(r,{filename:e}),{nodePath:o}=Rs({node:i,nodePath:[]},t,n,!0),s=await Ml(i,e),{version:a}=Ll(i),{currentType:c,parentType:l,endPath:d}=ws(s,o,i),h=ni(i),v=c?.name?c:l;return{nodePath:o,endPath:d,type:v,existingValues:h,types:s,descriptionVersion:a}}async function UT(e){let n=(await Ge(e)).getText(),r=pt.safeLoad(n,{filename:e});return Il(r)}function Py(e,t){if(!e)return null;let n=e,r=!0;return t.forEach(i=>{if(r=!1,Rl(n)&&n.items&&n.items[i])n=n.items[i],r=!0;else if(gy(n)){let o=As(n);for(let s of o)if(Dl(s)&&s.key?.value===i){n=s?.value,r=!0;break}}}),r?n:(console.warn("Cannot find node by path",t),null)}function WT(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 Rs(e,t,n,r=!1){let{node:i,nodePath:o=[]}=e,s=n.offsetAt(t),a=As(i);if(a.length===0||HT(i)||!r&&BT(i,n,t))return e;let c=zT(a,s);return Rs({nodePath:YT(o,i,a[c],c),node:a[c]},t,n,r)}function HT(e){return e?.kind===pt.Kind.MAPPING&&!e?.value}function BT(e,t,n){let r=t.getText({start:t.positionAt(t._lineOffsets[n.line]),end:n}),i=$T(e,t),o=r?.match(/^\s+/)?.[0]?.length||0;return(/^\s*[\w\-\$\/\{\}]+$/.test(r)?o:n.character)===i}function zT(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 YT(e,t,n,r){return Rl(t)?[...e,r]:Dl(n)&&n?.key?.value&&typeof n.key.value=="string"?[...e,n.key.value]:e}function $T(e,t){let n=e?.startPosition??0,r=WT(n,t._lineOffsets);if(r>=0){let i=t._lineOffsets[r];return n-i}return 0}function ws(e,t,n){let r=e,i,o=new Array(t.length).fill(null);t.forEach((a,c)=>{let l;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)l=e.items;else if(Xr(e.items)){let d=VT(n,typeof t[0]=="number"?t[0]:0);l=e.items(d,a)}}else if(e?.properties&&e.properties[a])l=e.properties[a],Xr(l)&&(l=l(null,a));else if(e?.additionalProperties&&!Xr(e?.additionalProperties))l=e.additionalProperties;else if(Xr(e?.additionalProperties)&&a){let d=e.additionalProperties(null,a);d&&(l=d)}l&&(e=l,o[c]=l)}),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 VT(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 Ml(e,t){if(await fn(t)||await fn(Ue(t)))return ql(IT).ConfigRoot;if(dn({uri:t,ast:e})||dn({uri:Ue(t),ast:e})){let o=FT(Zi,eo),s=ql(o);if(e?.kind===pt.Kind.SEQ)return s.EntityFileArray;let a=KT(e);return a&&s[a]?s[a]:s.EntityFileDefault}let{types:n,isDefault:r}=QT(e);if(!e)return n;let i=r?Al(t):n;return r&&!Al(t)&&e?null:i||n}function KT(e){let t="type";return e?.mappings?.find(n=>n.key?.value===t&&n.value?.value)?.value?.value}function GT(e){if(Ol.has(e))return Ol.get(e);let t=ql(JT(e)).Root;return Ol.set(e,t),t}function Il(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 Ll(e){let{version:t,isDefault:n}=Il(e);return{version:LT(t),isDefault:n}}function QT(e){let{version:t,isDefault:n}=Il(e);return{types:GT(t),isDefault:n}}function As(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 JT(e){switch(e){case"oas3_2":return vy;case"oas3_1":return OT;case"oas3_0":return NT;case"oas2":return ET;case"async2":return qT;case"async3":return jT;case"arazzo1":return MT;default:return vy}}function ni(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:fy(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},ni(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},ni(o?.value||o,t[o?.key?.value||i],n+1)),i++}return t}import{mapTypeToComponent as xy}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 _y(e){let t=Fl[e.name];if(t&&e.properties)for(let n of t)e.properties[n.name]=n.value;return e}var ks=Ne(tn(),1),dt=class{constructor({kind:t,label:n,value:r,textEdit:i,filterText:o,sortText:s,data:a}){this.kind=t||ks.CompletionItemKind.Value,this.label=n;let{node:c,lineOffset:l,position:d}=a;this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.textEdit=i||(c?.value&&d&&l?this.getTextEdit(c,d,l):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 ks.TextEdit.replace({start:{line:n.line,character:i},end:{line:n.line,character:s}},this.insertText)}};var mr=Ne(tn(),1),Cn=class{constructor({kind:t,label:n,insertText:r,insertTextFormat:i,filterText:o,sortText:s,data:a}){this.insertTextFormat=i||n.includes("$")?mr.InsertTextFormat.PlainText:mr.InsertTextFormat.Snippet,this.kind=t||mr.CompletionItemKind.Property,this.label=n,this.data=a||{},this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.command=this.kind===mr.CompletionItemKind.Property?{title:"Suggested values",command:"editor.action.triggerSuggest"}:void 0}};var ri={example:"example",default:"default",enum:"enum",ref:"$ref"},Es=[ri.default,ri.example];var Dy=Ne(Nn(),1);var we={};Is(we,{default:()=>Sy.default});Ls(we,Ne(Ul()));var Sy=Ne(Ul());function ZT(e,t,n){let r=t.slice(0,t.length-1),{currentType:i}=ws(e,r,n);if(i?.name){let[o]=Fl[i.name]||[];return o?.value}return null}function eS(e,t,n){let r=t[t.length-1];if(py(r))return ZT(e,t,n);let{currentType:i}=ws(e,t,n);return i?Ds(i)?i:i?.name&&(i?.name.includes("Map")||i?.name.includes("Named"))?{name:ti,properties:{}}:i:null}async function Ry(e,t){let n=await Ge(e),r=n.getText(),i=(0,Dy.safeLoad)(r,{filename:e}),{node:o,nodePath:s}=Rs({node:i,nodePath:[]},t,n),a=await Ml(i,e),c=eS(a,s,i),l=n._lineOffsets[t.line],d=n.getText({start:n.positionAt(l),end:t});return{currentAst:i,node:o,nodePath:s,position:t,lineText:d,lineOffset:l,openApiType:c}}async function wy(e,t){let n=ie.resolvePath(Le(e)),r=ie.dirname(n),i=await $l(ie.joinPath(r,t),r.path),o=ie.resolvePath(r,i.path);return{refPath:t,refDirPath:i,refDirAbsolutePath:o,isAbsolutePath:t?(0,we.isAbsolute)(t):!1,docAbsolutePath:n,docAbsoluteDirPath:r,root:"/"}}var Ay=Ne(tn(),1);var Ns=class extends dt{constructor(t){super(t),this.kind=Ay.CompletionItemKind.Folder,this.command={title:"Complete path",command:"editor.action.triggerSuggest",arguments:[]}}};var ky=Ne(tn(),1);var Os=class extends dt{constructor(t){super(t),this.kind=ky.CompletionItemKind.File}};var nS=pe.supportedLanguages.concat({languageId:"markdown",filePattern:/\.md$/});function rS(e){let{refPath:t,docAbsoluteDirPath:n,isAbsolutePath:r,root:i}=e,o=(0,we.resolve)(n.path,t,".."),s=r?o:(0,we.relative)(n.path,o),a=s&&s!==i?"/":"";return{name:"../",type:1,matchBy:t,sortBy:Ce("FolderCompletion"),value:`${s}${a}`}}async function iS(e,t,n){let r=[],{refDirAbsolutePath:i,docAbsolutePath:o}=n;for(let s of e)try{let a=ie.resolvePath(i,s),c=await pe.fs.stat(a);c.isFile()&&a.path!==o.path&&t.supportedFiles.some(l=>l.filePattern.test(s))&&r.push({name:s,type:0}),c.isDirectory()&&r.push({name:s,type:1})}catch{continue}return r}function Ey(e,t){let{docAbsoluteDirPath:n,isAbsolutePath:r,refDirAbsolutePath:i,root:o,refPath:s}=t,a=[];return i.path!==o&&a.push(rS(t)),a.concat(e.map(({name:c,type:l})=>{let d=(0,we.resolve)(i.path,c),h=(0,we.relative)(n.path,d),v=s.includes(we.sep)?s.slice(0,s.lastIndexOf(we.sep)+1):s+we.sep,y=r?d:h;if(l===0)return{type:l,name:c,value:y,sortBy:`${Ce("FileCompletion")}${c}`,matchBy:`${v}${c}`};let D=`${c}/`;return{type:l,name:D,value:`${y}${h?"/":""}`,sortBy:`${Ce("FolderCompletion")}${c}`,matchBy:`${v}${c}`}}))}function Ny(e,t){let{node:n,lineOffset:r,position:i}=t;return e.map(o=>{let{name:s,value:a,matchBy:c,sortBy:l,type:d}=o,h={label:s,filterText:Zr(c,n),sortText:l,value:a,data:{lineOffset:r,position:i,node:n}};return d===1?new Ns(h):new Os(h)})}async function Oy(e,t){let{node:n}=t,r=n.value??"",i=await wy(e,r),{refDirAbsolutePath:o}=i,s=[];try{s=await pe.fs.readDir(o)}catch{return Ny(Ey([],i),t)}let a=await iS(s,{supportedFiles:nS},i);return Ny(Ey(a,i),t)}import{isEmptyObject as oS}from"@redocly/openapi-core";function qy(e,t){if(t?.items)return"- "+qy(e,t.items);if(t?.required)return Object.values(t.required).map((n,r)=>`${n}: \${${r+1}}`).join(`
|
|
76
|
+
`);if(e==="openapi"){let n="3.1.0",[r,i,o]=n.split(".");return`\${1:${r}}.\${2:${i}}.\${3:${o}}`}return""}function sS(e,t,n,r){if(e===nn)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 aS(e){return e===nn?"":": "}function cS(e){return e?.includes(":")||e?.includes(": ")?`
|
|
80
|
+
`:e?.includes(":")&&!e?.includes(": ")?" ":""}function uS(e,t){return!t||oS(t)?"":e.includes(`
|
|
81
81
|
`)?`
|
|
82
82
|
`:`
|
|
83
|
-
`}function
|
|
84
|
-
`;let r=
|
|
83
|
+
`}function ii(e,t,n=!0){if(e===gr)return`
|
|
84
|
+
`;let r=cS(t?.lineText),i=aS(e),o=e===nn?"":e,s=qy(e,t),a=sS(e,s,r,t),c=n?uS(r,t?.properties):" ";return`${r}${o}${i}${a}${s}${c}`}function lS(e,t){let{version:n}=Ll(e),r=xy(t,n);if(!r)return[];let i=Py(e,["components",r]);return i?(As(i.value||i)||[]).map(({key:{value:s}})=>`#/components/${r}/${s}`):[]}function pS(e){let{node:t,position:n,lineOffset:r}=e,i=Es.includes(t.key?.value)?t:Es.includes(t.parent?.key?.value)?t.parent:null;return i?i?.parent?.mappings?.find(({key:s})=>s?.value===ri.enum)?.value?.items?.map(({value:s})=>new dt({label:s,data:{node:t,position:n,lineOffset:r}}))||[]:[]}async function dS(e,t){let{position:n,openApiType:r,currentAst:i,lineOffset:o,node:s}=t,a=r?.name?lS(i,r.name):[];return[...await Oy(e,t),...a.map(l=>{let d=Zr(l,s);return new dt({label:l,filterText:Zr(l,s),value:d,sortText:`${Ce("LocalComponentCompletion")}${l}`,data:{lineOffset:o,position:n,node:s}})})]}function fS(e){let{openApiType:t,node:n,position:r,lineOffset:i}=e;return t?.enum?t.enum.map(o=>new dt({label:o,kind:qs.CompletionItemKind.EnumMember,data:{node:n,position:r,lineOffset:i}})):[]}function gS(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 mS(e){let{currentAst:t,nodePath:n,node:r,openApiType:i,lineText:o}=e,s=yS(t,n,r);return bS(i,s,o)}async function hS(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&&ri.ref===o?dS(e,t):Es.includes(o)?pS(t):i?.enum?fS(t):i?.type==="boolean"?gS(t):[]}async function jy(e,t){let n=await Ry(e,t);return n.openApiType?.properties?mS(n):hS(e,n)}function yS(e,t,n){if(!e)return[];let i=ni(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 bS(e,t,n){if(!e)return[];if(_y(e),Ds(e))return Nl(e?.name).filter(r=>!t.includes(r.label)).map(r=>new Cn({...r,insertText:ii(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 Cn({label:i,kind:qs.CompletionItemKind.Property,insertText:ii(i,o,!o?.items),sortText:Ce(e?.name,i)})});return n.endsWith(":")&&r.push(...Nl(gr).map(i=>new Cn({...i,insertText:ii(i.label,{...i.data,lineText:n})}))),r}return e.items&&Object.keys(e.items).length?[new Cn({label:nn,kind:qs.CompletionItemKind.Constructor,insertText:ii(nn,{...e,lineText:n}),sortText:Ce(nn)})]:[]}var jt=Ne(xs(),1);var rn=Ne(Nn(),1);import{getAstNodeByPointer as vS}from"@redocly/openapi-core";async function PS({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 l=o?ie.joinPath(ie.dirname(wt.parse(i.uri)),o).toString():t.uri,d;try{d=await Ge(l)}catch{return}let h=(0,rn.safeLoad)(d.getText(),{filename:Ue(l)}),v=vS(h,`#/${s}`,!0),y=jt.Range.create(d.positionAt(v?.startPosition||0),d.positionAt(v?.endPosition||0));return[jt.LocationLink.create(l,jt.Range.create(0,0,d.lineCount,0),y,jt.Range.create(jt.Position.create(e.line,a),jt.Position.create(e.line,c)))]}}async function My({position:e,textDocument:t}){let n;try{n=await Ge(t.uri)}catch{return}let o=n.getText().split(/\r\n|[\n\r]/g)[e.line],s=(0,rn.safeLoad)(o,{filename:Ue(t.uri)}),a;switch(s.kind){case rn.Kind.SCALAR:{a=s.parent||{value:{value:s?.value}};break}case rn.Kind.MAP:{a=s?.mappings?.[0];break}case rn.Kind.SEQ:{let l=s?.items?.[0];a=l?.kind===rn.Kind.MAP?l?.mappings?.[0]:{value:{value:l?.value}};break}default:a=null}let c=a?.value?.value;if(c&&!vr(c))return PS({position:e,textDocument:t,value:c,line:o,document:n})}var Fy=Ne(xs(),1);function Iy({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` \u{1F4D8} ${n&&t&&n!==t?`\`type\` **${n}** \u203A \`property\` **${t}**`:`\`type\` **${t}**`}${o}
|
|
88
88
|
|
|
89
89
|
*${i}*
|
|
90
|
-
`}function
|
|
91
|
-
`)}async function
|
|
90
|
+
`}function Ly(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"?"":[Iy({nodePath:t,propertyTypeName:e.endPath?e.endPath:r,typeName:e.endPath?r:void 0,documentationLink:o?.documentationLink}),o?.description??""].join(`
|
|
91
|
+
`)}async function Uy(e){try{let t=e.textDocument.uri;if(!Ti(t)&&!Sr(t))return null;let n=e.position;if(!xS(n,t))return null;let r=await jl(t,n);if(!r)return null;let i=Ly(r);return i?{contents:{kind:Fy.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 xS(e,t){let n=pe.documents.get(t);if(!n)return!0;let i=n.getText({start:{line:e.line,character:0},end:{line:e.line+1,character:0}}).trimEnd().indexOf(":");return i===-1||e.character<=i}var _S=(t=>(t[t.FILE_TYPE_NOT_SUPPORTED=0]="FILE_TYPE_NOT_SUPPORTED",t))(_S||{});var Wy=class{async onCompletion(t){let{uri:n}=t.textDocument;return Sr(n)?[]:jy(n,t.position)}async onCompletionResolve(t){return t}async onHover(t){return Uy(t)}async validateOpenAPI(t){return El(t)}async onDidChangeWatchedFiles(t){let n=t.changes.find(async i=>await fn(i.uri));if(n)return await Si(n.uri),ei();if(t.changes.find(i=>dn({uri:i.uri})))return ei()}async onDidConfigChange(t){return await Si(t),ei()}async onDidChangeConfiguration(){return ei()}async onDefinition(t){let{uri:n}=t.textDocument;return Sr(n)?[]:await My(t)||[]}};export{_S as ContextErrorCodes,Wy as OpenapiLanguageServer,wl as bundleOpenAPI,lT as getBundles,On as getConfigData,jl as getContextData,Ge as getDocumentByURI,UT as getSpecVersion,fn as isConfigFile,dn as isEntityFile,vr as isHttpPath,GP as isIgnoreFile,Ti as isYamlFile,pe as languageServerConfig,Si as loadOpenAPIConfig,Le as parseUri,Tl as removeCirculars,ei as revalidateAllDocuments,Ue as uriToAbsFSPath};
|