@redocly/openapi-language-server 0.6.8 → 0.6.9

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.
Files changed (2) hide show
  1. package/lib/index.js +22 -22
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -2,20 +2,20 @@ var wy=Object.create;var Xr=Object.defineProperty;var ky=Object.getOwnPropertyDe
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),Nl.repeat(" ",t)+r+a+o+`
4
4
  `+Nl.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}};El.exports=ws});var ke=S(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.Type=void 0;var Ml=_n(),$y=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Vy=["scalar","sequence","mapping"];function Yy(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}var ks=class{constructor(t,n){if(n=n||{},Object.keys(n).forEach(function(r){if($y.indexOf(r)===-1)throw new Ml('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=Yy(n.styleAliases||null),Vy.indexOf(this.kind)===-1)throw new Ml('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}};ti.Type=ks});var Cn=S(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.Schema=void 0;var Ll=nn(),ni=_n(),Gy=ke();function As(e,t,n){var r=[];return e.include.forEach(function(i){n=As(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 Ky(){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 Nt=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 ni("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=As(this,"implicit",[]),this.compiledExplicit=As(this,"explicit",[]),this.compiledTypeMap=Ky(this.compiledImplicit,this.compiledExplicit)}};ri.Schema=Nt;Nt.DEFAULT=null;Nt.create=function(...t){var n,r;switch(t.length){case 1:n=Nt.DEFAULT,r=t[0];break;case 2:n=t[0],r=t[1];break;default:throw new ni("Wrong number of arguments for Schema.create function")}if(n=Ll.toArray(n),r=Ll.toArray(r),!n.every(function(i){return i instanceof Nt}))throw new ni("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(i){return i instanceof Gy.Type}))throw new ni("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Nt({include:n,explicit:r})}});var Fl=S((FS,Il)=>{"use strict";var Qy=ke();Il.exports=new Qy.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Wl=S((US,Ul)=>{"use strict";var Jy=ke();Ul.exports=new Jy.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Hl=S((WS,Bl)=>{"use strict";var Xy=ke();Bl.exports=new Xy.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var $l=S((BS,zl)=>{"use strict";var Zy=Cn();zl.exports=new Zy.Schema({explicit:[Fl(),Wl(),Hl()]})});var Gl=S((HS,Yl)=>{"use strict";var eb=ke(),Vl=_t();function tb(e){let t=Vl.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 nb(e){return Vl.isYAMLNode(e)?e:null}function rb(e){return e===null}Yl.exports=new eb.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:tb,construct:nb,predicate:rb,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var Jl=S((zS,Ql)=>{"use strict";var ib=ke(),Kl=_t();function ob(e){let t=Kl.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 sb(e){return Kl.isYAMLNode(e)?e:e==="true"||e==="True"||e==="TRUE"}function ab(e){return Object.prototype.toString.call(e)==="[object Boolean]"}Ql.exports=new ib.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:ob,construct:sb,predicate:ab,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 ep=S(($S,Zl)=>{"use strict";var cb=nn(),ub=ke(),Xl=_t();function lb(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function pb(e){return 48<=e&&e<=55}function db(e){return 48<=e&&e<=57}function fb(e){let t=Xl.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(!pb(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(o===":")break;if(!db(t.charCodeAt(r)))return!1;i=!0}return i?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(r)):!1}function gb(e){if(Xl.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 mb(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!cb.isNegativeZero(e)}Zl.exports=new ub.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:fb,construct:gb,predicate:mb,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 ip=S((VS,rp)=>{"use strict";var tp=nn(),hb=ke(),np=_t(),yb=new RegExp("-?(0|[1-9][0-9]*)(.[0-9]*)?([eE][-+]?[0-9]+)?|^0$|^[-+]?.(inf|Inf|INF)$|^.(nan|NaN|NAN)$");function bb(e){let t=np.isYAMLNode(e)?e.value:e;return!(t===null||!yb.test(t))}function vb(e){if(np.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 xb(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(tp.isNegativeZero(e))return"-0.0";return e.toString(10)}function Pb(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||tp.isNegativeZero(e))}rp.exports=new hb.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:bb,construct:vb,predicate:Pb,represent:xb,defaultStyle:"lowercase"})});var sp=S((YS,op)=>{"use strict";var _b=Cn();op.exports=new _b.Schema({include:[$l()],implicit:[Gl(),Jl(),ep(),ip()]})});var cp=S((GS,ap)=>{"use strict";var Cb=Cn();ap.exports=new Cb.Schema({include:[sp()]})});var pp=S((KS,lp)=>{"use strict";var Sb=ke(),up=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 Db(e){if(e===null)return!1;var t,n,r,i,o,s,a,c=0,l=null,d,h,v;return t=up.exec(e),t!==null}function Rb(e){var t,n,r,i,o,s,a,c=0,l=null,d,h,v;if(t=up.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 Tb(e){return e.toISOString()}lp.exports=new Sb.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Db,construct:Rb,instanceOf:Date,represent:Tb})});var fp=S((QS,dp)=>{"use strict";var wb=ke();function kb(e){return e==="<<"||e===null}dp.exports=new wb.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:kb})});var gp={};_s(gp,{default:()=>Ab});var Ab,mp=Tl(()=>{Ab={}});var yp=S((JS,hp)=>{"use strict";var ii=(mp(),Zr(gp)).Buffer,Ob=ke(),Os=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
6
- \r`;function qb(e){if(e===null)return!1;var t,n,r=0,i=0,o=e.length,s=Os;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 Nb(e){var t,n,r,i=e.replace(/[\r\n=]/g,""),o=i.length,s=Os,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),ii?new ii(c):c}function Eb(e){var t="",n=0,r,i,o=e.length,s=Os;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 jb(e){return ii&&ii.isBuffer(e)}hp.exports=new Ob.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:qb,construct:Nb,predicate:jb,represent:Eb})});var vp=S((XS,bp)=>{"use strict";var Mb=ke(),Lb=Object.prototype.hasOwnProperty,Ib=Object.prototype.toString;function Fb(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,Ib.call(i)!=="[object Object]")return!1;for(o in i)if(Lb.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 Ub(e){return e!==null?e:[]}bp.exports=new Mb.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Fb,construct:Ub})});var Pp=S((ZS,xp)=>{"use strict";var Wb=ke(),qs=_t(),Bb=Object.prototype.toString;function Hb(e){if(e===null)return!0;if(e.kind!=qs.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],Bb.call(r)!=="[object Object]"||!Array.isArray(r.mappings)||r.mappings.length!==1)return!1;return!0}function zb(e){if(e===null||!Array.isArray(e.items))return[];let t,n,r,i,o=e.items;for(i=qs.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=qs.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}xp.exports=new Wb.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Hb,construct:zb})});var Cp=S((eD,_p)=>{"use strict";var $b=ke(),Vb=_t();function Yb(e){return e===null?!0:e.kind==Vb.Kind.MAP}function Gb(e){return e!==null?e:{}}_p.exports=new $b.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:Yb,construct:Gb})});var oi=S((tD,Sp)=>{"use strict";var Kb=Cn(),Qb=new Kb.Schema({include:[cp()],implicit:[pp(),fp()],explicit:[yp(),vp(),Pp(),Cp()]});Sp.exports=Qb});var Rp=S((nD,Dp)=>{"use strict";var Jb=ke();function Xb(){return!0}function Zb(){}function ev(){return""}function tv(e){return typeof e>"u"}Dp.exports=new Jb.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:Xb,construct:Zb,predicate:tv,represent:ev})});var wp=S((rD,Tp)=>{"use strict";var nv=ke();function rv(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 iv(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 sv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}Tp.exports=new nv.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:rv,construct:iv,predicate:sv,represent:ov})});var Ns=S((iD,Op)=>{"use strict";var kp=Cn(),Ap=new kp.Schema({include:[oi()],explicit:[Rp(),wp()]});kp.Schema.DEFAULT=Ap;Op.exports=Ap});var zp=S((dt,hr)=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.safeLoad=dt.safeLoadAll=dt.load=dt.loadAll=void 0;var We=_t(),Et=nn(),Ws=_n(),Bs=jl(),jp=oi(),av=Ns(),ci=Object.prototype.hasOwnProperty,si=1,Mp=2,Lp=3,ai=4,Es=1,cv=2,qp=3,uv=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,lv=/[\x85\u2028\u2029]/,pv=/[,\[\]\{\}]/,Ip=/^(?:!|!!|![a-z\-]+!)$/i,Fp=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function st(e){return e===10||e===13}function on(e){return e===9||e===32}function Ue(e){return e===9||e===32||e===10||e===13}function Sn(e){return e===44||e===91||e===93||e===123||e===125}function dv(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function fv(e){return e===120?2:e===117?4:e===85?8:0}function gv(e){return 48<=e&&e<=57?e-48:-1}function mv(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
5
+ `+n)),r}};El.exports=ws});var ke=S(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.Type=void 0;var Ml=_n(),$y=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Vy=["scalar","sequence","mapping"];function Yy(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}var ks=class{constructor(t,n){if(n=n||{},Object.keys(n).forEach(function(r){if($y.indexOf(r)===-1)throw new Ml('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=Yy(n.styleAliases||null),Vy.indexOf(this.kind)===-1)throw new Ml('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}};ti.Type=ks});var Cn=S(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.Schema=void 0;var Ll=nn(),ni=_n(),Gy=ke();function As(e,t,n){var r=[];return e.include.forEach(function(i){n=As(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 Ky(){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 Et=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 ni("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=As(this,"implicit",[]),this.compiledExplicit=As(this,"explicit",[]),this.compiledTypeMap=Ky(this.compiledImplicit,this.compiledExplicit)}};ri.Schema=Et;Et.DEFAULT=null;Et.create=function(...t){var n,r;switch(t.length){case 1:n=Et.DEFAULT,r=t[0];break;case 2:n=t[0],r=t[1];break;default:throw new ni("Wrong number of arguments for Schema.create function")}if(n=Ll.toArray(n),r=Ll.toArray(r),!n.every(function(i){return i instanceof Et}))throw new ni("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(i){return i instanceof Gy.Type}))throw new ni("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Et({include:n,explicit:r})}});var Fl=S((FS,Il)=>{"use strict";var Qy=ke();Il.exports=new Qy.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Wl=S((US,Ul)=>{"use strict";var Jy=ke();Ul.exports=new Jy.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Hl=S((WS,Bl)=>{"use strict";var Xy=ke();Bl.exports=new Xy.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var $l=S((BS,zl)=>{"use strict";var Zy=Cn();zl.exports=new Zy.Schema({explicit:[Fl(),Wl(),Hl()]})});var Gl=S((HS,Yl)=>{"use strict";var eb=ke(),Vl=_t();function tb(e){let t=Vl.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 nb(e){return Vl.isYAMLNode(e)?e:null}function rb(e){return e===null}Yl.exports=new eb.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:tb,construct:nb,predicate:rb,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var Jl=S((zS,Ql)=>{"use strict";var ib=ke(),Kl=_t();function ob(e){let t=Kl.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 sb(e){return Kl.isYAMLNode(e)?e:e==="true"||e==="True"||e==="TRUE"}function ab(e){return Object.prototype.toString.call(e)==="[object Boolean]"}Ql.exports=new ib.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:ob,construct:sb,predicate:ab,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 ep=S(($S,Zl)=>{"use strict";var cb=nn(),ub=ke(),Xl=_t();function lb(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function pb(e){return 48<=e&&e<=55}function db(e){return 48<=e&&e<=57}function fb(e){let t=Xl.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(!pb(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(o===":")break;if(!db(t.charCodeAt(r)))return!1;i=!0}return i?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(r)):!1}function gb(e){if(Xl.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 mb(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!cb.isNegativeZero(e)}Zl.exports=new ub.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:fb,construct:gb,predicate:mb,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 ip=S((VS,rp)=>{"use strict";var tp=nn(),hb=ke(),np=_t(),yb=new RegExp("-?(0|[1-9][0-9]*)(.[0-9]*)?([eE][-+]?[0-9]+)?|^0$|^[-+]?.(inf|Inf|INF)$|^.(nan|NaN|NAN)$");function bb(e){let t=np.isYAMLNode(e)?e.value:e;return!(t===null||!yb.test(t))}function vb(e){if(np.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 xb(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(tp.isNegativeZero(e))return"-0.0";return e.toString(10)}function Pb(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||tp.isNegativeZero(e))}rp.exports=new hb.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:bb,construct:vb,predicate:Pb,represent:xb,defaultStyle:"lowercase"})});var sp=S((YS,op)=>{"use strict";var _b=Cn();op.exports=new _b.Schema({include:[$l()],implicit:[Gl(),Jl(),ep(),ip()]})});var cp=S((GS,ap)=>{"use strict";var Cb=Cn();ap.exports=new Cb.Schema({include:[sp()]})});var pp=S((KS,lp)=>{"use strict";var Sb=ke(),up=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 Db(e){if(e===null)return!1;var t,n,r,i,o,s,a,c=0,l=null,d,h,v;return t=up.exec(e),t!==null}function Rb(e){var t,n,r,i,o,s,a,c=0,l=null,d,h,v;if(t=up.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 Tb(e){return e.toISOString()}lp.exports=new Sb.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Db,construct:Rb,instanceOf:Date,represent:Tb})});var fp=S((QS,dp)=>{"use strict";var wb=ke();function kb(e){return e==="<<"||e===null}dp.exports=new wb.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:kb})});var gp={};_s(gp,{default:()=>Ab});var Ab,mp=Tl(()=>{Ab={}});var yp=S((JS,hp)=>{"use strict";var ii=(mp(),Zr(gp)).Buffer,Ob=ke(),Os=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
6
+ \r`;function qb(e){if(e===null)return!1;var t,n,r=0,i=0,o=e.length,s=Os;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 Nb(e){var t,n,r,i=e.replace(/[\r\n=]/g,""),o=i.length,s=Os,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),ii?new ii(c):c}function Eb(e){var t="",n=0,r,i,o=e.length,s=Os;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 jb(e){return ii&&ii.isBuffer(e)}hp.exports=new Ob.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:qb,construct:Nb,predicate:jb,represent:Eb})});var vp=S((XS,bp)=>{"use strict";var Mb=ke(),Lb=Object.prototype.hasOwnProperty,Ib=Object.prototype.toString;function Fb(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,Ib.call(i)!=="[object Object]")return!1;for(o in i)if(Lb.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 Ub(e){return e!==null?e:[]}bp.exports=new Mb.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Fb,construct:Ub})});var Pp=S((ZS,xp)=>{"use strict";var Wb=ke(),qs=_t(),Bb=Object.prototype.toString;function Hb(e){if(e===null)return!0;if(e.kind!=qs.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],Bb.call(r)!=="[object Object]"||!Array.isArray(r.mappings)||r.mappings.length!==1)return!1;return!0}function zb(e){if(e===null||!Array.isArray(e.items))return[];let t,n,r,i,o=e.items;for(i=qs.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=qs.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}xp.exports=new Wb.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Hb,construct:zb})});var Cp=S((eD,_p)=>{"use strict";var $b=ke(),Vb=_t();function Yb(e){return e===null?!0:e.kind==Vb.Kind.MAP}function Gb(e){return e!==null?e:{}}_p.exports=new $b.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:Yb,construct:Gb})});var oi=S((tD,Sp)=>{"use strict";var Kb=Cn(),Qb=new Kb.Schema({include:[cp()],implicit:[pp(),fp()],explicit:[yp(),vp(),Pp(),Cp()]});Sp.exports=Qb});var Rp=S((nD,Dp)=>{"use strict";var Jb=ke();function Xb(){return!0}function Zb(){}function ev(){return""}function tv(e){return typeof e>"u"}Dp.exports=new Jb.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:Xb,construct:Zb,predicate:tv,represent:ev})});var wp=S((rD,Tp)=>{"use strict";var nv=ke();function rv(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 iv(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 sv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}Tp.exports=new nv.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:rv,construct:iv,predicate:sv,represent:ov})});var Ns=S((iD,Op)=>{"use strict";var kp=Cn(),Ap=new kp.Schema({include:[oi()],explicit:[Rp(),wp()]});kp.Schema.DEFAULT=Ap;Op.exports=Ap});var zp=S((dt,hr)=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.safeLoad=dt.safeLoadAll=dt.load=dt.loadAll=void 0;var We=_t(),jt=nn(),Ws=_n(),Bs=jl(),jp=oi(),av=Ns(),ci=Object.prototype.hasOwnProperty,si=1,Mp=2,Lp=3,ai=4,Es=1,cv=2,qp=3,uv=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,lv=/[\x85\u2028\u2029]/,pv=/[,\[\]\{\}]/,Ip=/^(?:!|!!|![a-z\-]+!)$/i,Fp=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function st(e){return e===10||e===13}function on(e){return e===9||e===32}function Ue(e){return e===9||e===32||e===10||e===13}function Sn(e){return e===44||e===91||e===93||e===123||e===125}function dv(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function fv(e){return e===120?2:e===117?4:e===85?8:0}function gv(e){return 48<=e&&e<=57?e-48:-1}function mv(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
7
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 hv(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var js=new Array(256),Ms=new Array(256),Up=new Array(256),Ls=new Array(256);for(Ke=0;Ke<256;Ke++)Ls[Ke]=Ms[Ke]=mv(Ke),js[Ke]=Ms[Ke]?1:0,Up[Ke]=1,js[Ke]||(Ls[Ke]="\\"+String.fromCharCode(Ke));var Ke,Is=class{constructor(t,n){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=n.filename||null,this.schema=n.schema||av,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 Hs(e,t,n=!1){return new Ws(t,new Bs(e.filename,e.input,e.position,e.line,e.position-e.lineStart),n)}function Fs(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 Bs(e.filename,e.input,t,o.line,t-o.start);i&&(a.toLineEnd=!0);var c=new Ws(n,a,r);e.errors.push(c)}}}function W(e,t){var n=Hs(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 Us(e,t){var n=Hs(e,t);e.onWarning&&e.onWarning.call(null,n)}var Np={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],Ip.test(i)||W(t,"ill-formed tag handle (first argument) of the TAG directive"),ci.call(t.tagMap,i)&&W(t,'there is a previously declared suffix for "'+i+'" tag handle'),Fp.test(o)||W(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function jt(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 uv.test(a)&&W(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=n}}function rn(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:We.Kind.MAP,nodeIndent:o});var a=We.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=>{We.isNodesEqual(c,a)&&(Fs(e,a.key.startPosition,"duplicate key"),Fs(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=s,t}}function zs(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(;on(o);)o===9&&e.errors.push(Hs(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(st(o))for(zs(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&&Us(e,"deficient indentation"),i}function mr(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||Ue(n)))}function $s(e,t,n){n===1?t.value+=" ":n>1&&(t.value+=Et.repeat(`
9
- `,n-1))}function bv(e,t,n){var r,i,o,s,a,c,l,d,h=e.kind,v=e.result,y,R=We.newScalar("",t);if(R.plainScalar=!0,e.result=R,y=e.input.charCodeAt(e.position),Ue(y)||Sn(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),Ue(i)||n&&Sn(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),Ue(i)||n&&Sn(i))break}else if(y===35){if(r=e.input.charCodeAt(e.position-1),Ue(r))break}else{if(e.position===e.lineStart&&mr(e)||n&&Sn(y))break;if(st(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&&(jt(e,o,s,!1),$s(e,R,e.line-c),o=s=e.position,a=!1),on(y)||(s=e.position+1),y=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return jt(e,o,s,!1),e.result.startPosition!=-1?(R.rawValue=e.input.substring(R.startPosition,R.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=We.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(jt(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 st(n)?(jt(e,r,i,!0),$s(e,o,ce(e,!1,t)),r=i=e.position):e.position===e.lineStart&&mr(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 xv(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=We.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 jt(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(jt(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),st(c))ce(e,!1,t);else if(c<256&&(e.allowAnyEscape?Up[c]:js[c]))l.value+=e.allowAnyEscape?Ls[c]:Ms[c],e.position++;else if((s=fv(c))>0){for(i=s,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(s=dv(c))>=0?o=(o<<4)+s:W(e,"expected hexadecimal character");l.value+=hv(o),e.position++}else W(e,"unknown escape sequence");n=r=e.position}else st(c)?(jt(e,n,r,!0),$s(e,l,ce(e,!1,t)),n=r=e.position):e.position===e.lineStart&&mr(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 Pv(e,t){var n=!0,r,i=e.tag,o,s=e.anchor,a,c,l,d,h,v,y,R,I;if(I=e.input.charCodeAt(e.position),I===91)c=93,h=!1,o=We.newItems(),o.startPosition=e.position;else if(I===123)c=125,h=!0,o=We.newMap(null,t),o.startPosition=e.position;else return!1;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),I=e.input.charCodeAt(++e.position);I!==0;){if(ce(e,!0,t),I=e.input.charCodeAt(e.position),I===c)return e.position++,e.tag=i,e.anchor=s,e.kind=h?"mapping":"sequence",e.result=o,o.endPosition=e.position,!0;if(!n){var $=e.position;W(e,"missed comma between flow collection entries"),e.position=$+1}if(y=v=R=null,l=d=!1,I===63&&(a=e.input.charCodeAt(e.position+1),Ue(a)&&(l=d=!0,e.position++,ce(e,!0,t))),r=e.line,Dn(e,t,si,!1,!0),y=e.tag,v=e.result,ce(e,!0,t),I=e.input.charCodeAt(e.position),(d||e.line===r)&&I===58&&(l=!0,I=e.input.charCodeAt(++e.position),ce(e,!0,t),Dn(e,t,si,!1,!0),R=e.result),h)rn(e,o,y,v,R,t);else if(l){var Y=rn(e,null,y,v,R,t);Y.parent=o,o.items.push(Y)}else v&&(v.parent=o),o.items.push(v);o.endPosition=e.position+1,ce(e,!0,t),I=e.input.charCodeAt(e.position),I===44?(n=!0,I=e.input.charCodeAt(++e.position)):n=!1}W(e,"unexpected end of the stream within a flow collection")}function _v(e,t){var n,r,i=Es,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=We.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)Es===i?i=d===43?qp:cv:W(e,"repeat of a chomping mode identifier");else if((l=gv(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(on(d)){do d=e.input.charCodeAt(++e.position);while(on(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!st(d)&&d!==0)}for(;d!==0;){for(zs(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),st(d)){a++;continue}if(e.lineIndent<s){i===qp?h.value+=Et.repeat(`
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 Us(e,t){var n=Hs(e,t);e.onWarning&&e.onWarning.call(null,n)}var Np={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],Ip.test(i)||W(t,"ill-formed tag handle (first argument) of the TAG directive"),ci.call(t.tagMap,i)&&W(t,'there is a previously declared suffix for "'+i+'" tag handle'),Fp.test(o)||W(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function Mt(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 uv.test(a)&&W(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=n}}function rn(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:We.Kind.MAP,nodeIndent:o});var a=We.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=>{We.isNodesEqual(c,a)&&(Fs(e,a.key.startPosition,"duplicate key"),Fs(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=s,t}}function zs(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(;on(o);)o===9&&e.errors.push(Hs(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(st(o))for(zs(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&&Us(e,"deficient indentation"),i}function mr(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||Ue(n)))}function $s(e,t,n){n===1?t.value+=" ":n>1&&(t.value+=jt.repeat(`
9
+ `,n-1))}function bv(e,t,n){var r,i,o,s,a,c,l,d,h=e.kind,v=e.result,y,R=We.newScalar("",t);if(R.plainScalar=!0,e.result=R,y=e.input.charCodeAt(e.position),Ue(y)||Sn(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),Ue(i)||n&&Sn(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),Ue(i)||n&&Sn(i))break}else if(y===35){if(r=e.input.charCodeAt(e.position-1),Ue(r))break}else{if(e.position===e.lineStart&&mr(e)||n&&Sn(y))break;if(st(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&&(Mt(e,o,s,!1),$s(e,R,e.line-c),o=s=e.position,a=!1),on(y)||(s=e.position+1),y=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return Mt(e,o,s,!1),e.result.startPosition!=-1?(R.rawValue=e.input.substring(R.startPosition,R.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=We.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(Mt(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 st(n)?(Mt(e,r,i,!0),$s(e,o,ce(e,!1,t)),r=i=e.position):e.position===e.lineStart&&mr(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 xv(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=We.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 Mt(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(Mt(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),st(c))ce(e,!1,t);else if(c<256&&(e.allowAnyEscape?Up[c]:js[c]))l.value+=e.allowAnyEscape?Ls[c]:Ms[c],e.position++;else if((s=fv(c))>0){for(i=s,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(s=dv(c))>=0?o=(o<<4)+s:W(e,"expected hexadecimal character");l.value+=hv(o),e.position++}else W(e,"unknown escape sequence");n=r=e.position}else st(c)?(Mt(e,n,r,!0),$s(e,l,ce(e,!1,t)),n=r=e.position):e.position===e.lineStart&&mr(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 Pv(e,t){var n=!0,r,i=e.tag,o,s=e.anchor,a,c,l,d,h,v,y,R,I;if(I=e.input.charCodeAt(e.position),I===91)c=93,h=!1,o=We.newItems(),o.startPosition=e.position;else if(I===123)c=125,h=!0,o=We.newMap(null,t),o.startPosition=e.position;else return!1;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),I=e.input.charCodeAt(++e.position);I!==0;){if(ce(e,!0,t),I=e.input.charCodeAt(e.position),I===c)return e.position++,e.tag=i,e.anchor=s,e.kind=h?"mapping":"sequence",e.result=o,o.endPosition=e.position,!0;if(!n){var $=e.position;W(e,"missed comma between flow collection entries"),e.position=$+1}if(y=v=R=null,l=d=!1,I===63&&(a=e.input.charCodeAt(e.position+1),Ue(a)&&(l=d=!0,e.position++,ce(e,!0,t))),r=e.line,Dn(e,t,si,!1,!0),y=e.tag,v=e.result,ce(e,!0,t),I=e.input.charCodeAt(e.position),(d||e.line===r)&&I===58&&(l=!0,I=e.input.charCodeAt(++e.position),ce(e,!0,t),Dn(e,t,si,!1,!0),R=e.result),h)rn(e,o,y,v,R,t);else if(l){var Y=rn(e,null,y,v,R,t);Y.parent=o,o.items.push(Y)}else v&&(v.parent=o),o.items.push(v);o.endPosition=e.position+1,ce(e,!0,t),I=e.input.charCodeAt(e.position),I===44?(n=!0,I=e.input.charCodeAt(++e.position)):n=!1}W(e,"unexpected end of the stream within a flow collection")}function _v(e,t){var n,r,i=Es,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=We.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)Es===i?i=d===43?qp:cv:W(e,"repeat of a chomping mode identifier");else if((l=gv(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(on(d)){do d=e.input.charCodeAt(++e.position);while(on(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!st(d)&&d!==0)}for(;d!==0;){for(zs(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),st(d)){a++;continue}if(e.lineIndent<s){i===qp?h.value+=jt.repeat(`
10
10
  `,a):i===Es&&o&&(h.value+=`
11
- `);break}for(r?on(d)?(c=!0,h.value+=Et.repeat(`
12
- `,a+1)):c?(c=!1,h.value+=Et.repeat(`
13
- `,a+1)):a===0?o&&(h.value+=" "):h.value+=Et.repeat(`
14
- `,a):o&&(h.value+=Et.repeat(`
15
- `,a+1)),o=!0,a=0,n=e.position;!st(d)&&d!==0;)d=e.input.charCodeAt(++e.position);jt(e,n,e.position,!1)}h.endPosition=e.position;for(var v=e.position-1,y=!1;;){var R=e.input[v];if(R=="\r"||R==`
11
+ `);break}for(r?on(d)?(c=!0,h.value+=jt.repeat(`
12
+ `,a+1)):c?(c=!1,h.value+=jt.repeat(`
13
+ `,a+1)):a===0?o&&(h.value+=" "):h.value+=jt.repeat(`
14
+ `,a):o&&(h.value+=jt.repeat(`
15
+ `,a+1)),o=!0,a=0,n=e.position;!st(d)&&d!==0;)d=e.input.charCodeAt(++e.position);Mt(e,n,e.position,!1)}h.endPosition=e.position;for(var v=e.position-1,y=!1;;){var R=e.input[v];if(R=="\r"||R==`
16
16
  `){y&&v--;break}if(R!=" "&&R!=" ")break;v--}return h.endPosition=v,h.rawValue=e.input.substring(h.startPosition,h.endPosition),!0}function Ep(e,t){var n,r=e.tag,i=e.anchor,o=We.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),!Ue(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,Dn(e,t,Lp,!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 Cv(e,t,n){var r,i,o,s=e.tag,a=e.anchor,c=We.newMap(null,t),l=null,d=null,h=null,v=!1,y=!1,R;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),R=e.input.charCodeAt(e.position);R!==0;){if(r=e.input.charCodeAt(e.position+1),o=e.line,(R===63||R===58)&&Ue(r))R===63?(v&&(rn(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,R=r;else if(Dn(e,n,Mp,!1,!0))if(e.line===o){for(R=e.input.charCodeAt(e.position);on(R);)R=e.input.charCodeAt(++e.position);if(R===58)R=e.input.charCodeAt(++e.position),Ue(R)||W(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(rn(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&&mr(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(R=e.input.charCodeAt(--e.position),st(R)){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,rn(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 I=e.line;Dn(e,t,ai,!0,i)?(ce(e,!0,t),v?d=e.result:(h=e.result,h.endPosition=e.line===I?e.position:e.position-1)):d&&(d.endPosition=e.line===I?e.position:e.position-1),v||(rn(e,c,l,d,h,t),l=d=h=null),ce(e,!0,-1),R=e.input.charCodeAt(e.position)}if(e.lineIndent>t&&R!==0)W(e,"bad indentation of a mapping entry"+e.position),R=e.input.charCodeAt(++e.position),ce(e,!0,-1);else if(e.lineIndent<t)break}return v&&rn(e,c,l,d,null,t),y&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),y}function Sv(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&&!Ue(s);)s===33&&(r?W(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Ip.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),pv.test(o)&&W(e,"tag suffix cannot contain flow indicator characters")}return o&&!Fp.test(o)&&W(e,"tag name cannot contain such characters: "+o),n?e.tag=o:ci.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 Dv(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&&!Ue(n)&&!Sn(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 Rv(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&&!Ue(o)&&!Sn(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=We.newAnchorRef(n,t,e.position,e.anchorMap[n],0),ce(e,!0,-1),!0}function Dn(e,t,n,r,i){var o,s,a,c=1,l=!1,d=!1,h,v,y,R,I,$;e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=ai===n||Lp===n,r&&ce(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));let Y=e.position;if(c===1)for(;Sv(e)||Dv(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||ai===n)&&(si===n||Mp===n?R=t:R=t+1,I=e.position-e.lineStart,c===1?a&&(Ep(e,I)||Cv(e,I,R))||Pv(e,R)?d=!0:(s&&_v(e,R)||vv(e,R)||xv(e,R)?d=!0:Rv(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&W(e,"alias node should not have any properties")):bv(e,R,si===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&&Ep(e,I))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=We.newScalar("",I),e.result.startPosition=e.position,e.result.endPosition=e.position,W(e,"!include without value")),e.result.kind=We.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 ci.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")):Fs(e,Y,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||d}function Tv(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&&!Ue(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(;on(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!st(s));break}if(st(s))break;for(n=e.position;s!==0&&!Ue(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&zs(e),ci.call(Np,r)?Np[r](e,r,i):(Us(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"),Dn(e,e.lineIndent-1,ai,!1,!0),ce(e,!0,-1),e.checkLineBreaks&&lv.test(e.input.slice(t,e.position))&&Us(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&mr(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 Wp(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
17
  `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Is(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(Tv(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 Vs(e,t,n={}){var r=Wp(e,n),i,o;for(i=0,o=r.length;i<o;i+=1)t(r[i])}dt.loadAll=Vs;function Ys(e,t={}){var n=Wp(e,t),r,i;if(n.length!==0){if(n.length===1)return n[0];var o=new Ws("expected a single document in the stream, but found more");return o.mark=new Bs("","",0,0,0),o.mark.position=n[0].endPosition,n[0].errors.push(o),n[0]}}dt.load=Ys;function Bp(e,t,n={}){Vs(e,t,Et.extend({schema:jp},n))}dt.safeLoadAll=Bp;function Hp(e,t={}){return Ys(e,Et.extend({schema:jp},t))}dt.safeLoad=Hp;hr.exports.loadAll=Vs;hr.exports.load=Ys;hr.exports.safeLoadAll=Bp;hr.exports.safeLoad=Hp});var Jp=S(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.safeDump=Rn.dump=void 0;var yr=nn(),Zs=_n(),wv=Ns(),kv=oi(),ea=Object.prototype.toString,Gp=Object.prototype.hasOwnProperty,Av=9,sn=10,Ov=13,Gs=32,qv=33,Ks=34,Nv=35,Ev=37,jv=38,Qs=39,Mv=42,Lv=44,Iv=45,Fv=58,Uv=62,Wv=63,Bv=64,Hv=91,zv=93,$v=96,Vv=123,Yv=124,Gv=125,De={};De[0]="\\0";De[7]="\\a";De[8]="\\b";De[9]="\\t";De[10]="\\n";De[11]="\\v";De[12]="\\f";De[13]="\\r";De[27]="\\e";De[34]='\\"';De[92]="\\\\";De[133]="\\N";De[160]="\\_";De[8232]="\\L";De[8233]="\\P";var Kv=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Qv(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&&Gp.call(c.styleAliases,a)&&(a=c.styleAliases[a]),n[s]=a;return n}function Jv(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 Zs("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+yr.repeat("0",r-t.length)+t}function Xv(e){this.schema=e.schema||wv,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=yr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Qv(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 $p(e,t){for(var n=yr.repeat(" ",t),r=0,i=-1,o="",s,a=e.length;r<a;)i=e.indexOf(`
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 Vs(e,t,n={}){var r=Wp(e,n),i,o;for(i=0,o=r.length;i<o;i+=1)t(r[i])}dt.loadAll=Vs;function Ys(e,t={}){var n=Wp(e,t),r,i;if(n.length!==0){if(n.length===1)return n[0];var o=new Ws("expected a single document in the stream, but found more");return o.mark=new Bs("","",0,0,0),o.mark.position=n[0].endPosition,n[0].errors.push(o),n[0]}}dt.load=Ys;function Bp(e,t,n={}){Vs(e,t,jt.extend({schema:jp},n))}dt.safeLoadAll=Bp;function Hp(e,t={}){return Ys(e,jt.extend({schema:jp},t))}dt.safeLoad=Hp;hr.exports.loadAll=Vs;hr.exports.load=Ys;hr.exports.safeLoadAll=Bp;hr.exports.safeLoad=Hp});var Jp=S(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.safeDump=Rn.dump=void 0;var yr=nn(),Zs=_n(),wv=Ns(),kv=oi(),ea=Object.prototype.toString,Gp=Object.prototype.hasOwnProperty,Av=9,sn=10,Ov=13,Gs=32,qv=33,Ks=34,Nv=35,Ev=37,jv=38,Qs=39,Mv=42,Lv=44,Iv=45,Fv=58,Uv=62,Wv=63,Bv=64,Hv=91,zv=93,$v=96,Vv=123,Yv=124,Gv=125,De={};De[0]="\\0";De[7]="\\a";De[8]="\\b";De[9]="\\t";De[10]="\\n";De[11]="\\v";De[12]="\\f";De[13]="\\r";De[27]="\\e";De[34]='\\"';De[92]="\\\\";De[133]="\\N";De[160]="\\_";De[8232]="\\L";De[8233]="\\P";var Kv=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Qv(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&&Gp.call(c.styleAliases,a)&&(a=c.styleAliases[a]),n[s]=a;return n}function Jv(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 Zs("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+yr.repeat("0",r-t.length)+t}function Xv(e){this.schema=e.schema||wv,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=yr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Qv(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 $p(e,t){for(var n=yr.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
20
  `&&(o+=n),o+=s;return o}function Js(e,t){return`
21
21
  `+yr.repeat(" ",e.indent*t)}function Zv(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 ui(e){this.source=e,this.result="",this.checkpoint=0}ui.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};ui.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=De[e]||Jv(e),this.result+=t,this.checkpoint+=1,this};ui.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function ex(e,t,n){var r,i,o,s,a,c,l,d,h,v,y,R,I,$,Y,m,g,w,V,X,it;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(Kv.indexOf(t)!==-1){e.dump="'"+t+"'";return}for(r=!0,i=t.length?t.charCodeAt(0):0,o=Gs===i||Gs===t.charCodeAt(t.length-1),(Iv===i||Wv===i||Bv===i||$v===i)&&(r=!1),o?(r=!1,s=!1,a=!1):(s=!0,a=!0),c=!0,l=new ui(t),d=!1,h=0,v=0,y=e.indent*n,R=80,y<40?R-=y:R=40,$=0;$<t.length;$++){if(I=t.charCodeAt($),r)if(!nx(I))r=!1;else continue;c&&I===Qs&&(c=!1),Y=De[I],m=Kp(I),!(!Y&&!m)&&(I!==sn&&I!==Ks&&I!==Qs?(s=!1,a=!1):I===sn&&(d=!0,c=!1,$>0&&(g=t.charCodeAt($-1),g===Gs&&(a=!1,s=!1)),s&&(w=$-h,h=$,w>v&&(v=w))),I!==Ks&&(c=!1),l.takeUpTo($),l.escapeChar())}if(r&&Zv(e,t)&&(r=!1),V="",(s||a)&&(X=0,t.charCodeAt(t.length-1)===sn&&(X+=1,t.charCodeAt(t.length-2)===sn&&(X+=1)),X===0?V="-":X===2&&(V="+")),a&&v<R&&(s=!1),d||(a=!1),r)e.dump=t;else if(c)e.dump="'"+t+"'";else if(s)it=tx(t,R),e.dump=">"+V+`
@@ -36,37 +36,37 @@ var wy=Object.create;var Xr=Object.defineProperty;var ky=Object.getOwnPropertyDe
36
36
  ${JSON.stringify(Object.fromEntries(r))}`));return}let o=parseInt(i);if(isNaN(o)){this.fireError(new Error(`Content-Length value must be a number. Got ${i}`));return}this.nextMessageLength=o}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let r=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch(r=>{this.fireError(r)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,ac.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))}};Ut.ReadableStreamMessageReader=uc});var Bd=S(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.WriteableStreamMessageWriter=Wt.AbstractMessageWriter=Wt.MessageWriter=void 0;var Id=Ft(),Rr=jn(),D_=oc(),Fd=Ln(),R_="Content-Length: ",Ud=`\r
37
37
  `,Wd;(function(e){function t(n){let r=n;return r&&Rr.func(r.dispose)&&Rr.func(r.onClose)&&Rr.func(r.onError)&&Rr.func(r.write)}e.is=t})(Wd||(Wt.MessageWriter=Wd={}));var Qi=class{constructor(){this.errorEmitter=new Fd.Emitter,this.closeEmitter=new Fd.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: ${Rr.string(t.message)?t.message:"unknown"}`)}};Wt.AbstractMessageWriter=Qi;var lc;(function(e){function t(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,Id.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,Id.default)().applicationJson.encoder}}e.fromOptions=t})(lc||(lc={}));var pc=class extends Qi{constructor(t,n){super(),this.writable=t,this.options=lc.fromOptions(n),this.errorCount=0,this.writeSemaphore=new D_.Semaphore(1),this.writable.onError(r=>this.fireError(r)),this.writable.onClose(()=>this.fireClose())}async write(t){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(t,this.options).then(r=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(r):r).then(r=>{let i=[];return i.push(R_,r.byteLength.toString(),Ud),i.push(Ud),this.doWrite(t,i,r)},r=>{throw this.fireError(r),r}))}async doWrite(t,n,r){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,t),Promise.reject(i)}}handleError(t,n){this.errorCount++,this.fireError(t,n,this.errorCount)}end(){this.writable.end()}};Wt.WriteableStreamMessageWriter=pc});var Hd=S(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.AbstractMessageBuffer=void 0;var T_=13,w_=10,k_=`\r
38
38
  `,dc=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 T_:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case w_:switch(n){case 1:n=2;break;case 3:n=4,i++;break e;default:n=0}break;default:n=0}i++}o+=l.byteLength,r++}if(n!==4)return;let s=this._read(o+i),a=new Map,c=this.toString(s,"ascii").split(k_);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}};Ji.AbstractMessageBuffer=dc});var Gd=S(H=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0});H.createMessageConnection=H.ConnectionOptions=H.MessageStrategy=H.CancellationStrategy=H.CancellationSenderStrategy=H.CancellationReceiverStrategy=H.RequestCancellationReceiverStrategy=H.IdCancellationReceiverStrategy=H.ConnectionStrategy=H.ConnectionError=H.ConnectionErrors=H.LogTraceNotification=H.SetTraceNotification=H.TraceFormat=H.TraceValues=H.Trace=H.NullLogger=H.ProgressType=H.ProgressToken=void 0;var zd=Ft(),ue=jn(),U=$a(),$d=Ya(),Tr=Ln(),fc=Yi(),Ar;(function(e){e.type=new U.NotificationType("$/cancelRequest")})(Ar||(Ar={}));var gc;(function(e){function t(n){return typeof n=="string"||typeof n=="number"}e.is=t})(gc||(H.ProgressToken=gc={}));var wr;(function(e){e.type=new U.NotificationType("$/progress")})(wr||(wr={}));var mc=class{constructor(){}};H.ProgressType=mc;var hc;(function(e){function t(n){return ue.func(n)}e.is=t})(hc||(hc={}));H.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||(H.Trace=J={}));var Vd;(function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"})(Vd||(H.TraceValues=Vd={}));(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||(H.Trace=J={}));var Ye;(function(e){e.Text="text",e.JSON="json"})(Ye||(H.TraceFormat=Ye={}));(function(e){function t(n){return ue.string(n)?(n=n.toLowerCase(),n==="json"?e.JSON:e.Text):e.Text}e.fromString=t})(Ye||(H.TraceFormat=Ye={}));var yc;(function(e){e.type=new U.NotificationType("$/setTrace")})(yc||(H.SetTraceNotification=yc={}));var Xi;(function(e){e.type=new U.NotificationType("$/logTrace")})(Xi||(H.LogTraceNotification=Xi={}));var kr;(function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"})(kr||(H.ConnectionErrors=kr={}));var Wn=class e extends Error{constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};H.ConnectionError=Wn;var bc;(function(e){function t(n){let r=n;return r&&ue.func(r.cancelUndispatched)}e.is=t})(bc||(H.ConnectionStrategy=bc={}));var Zi;(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})(Zi||(H.IdCancellationReceiverStrategy=Zi={}));var vc;(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})(vc||(H.RequestCancellationReceiverStrategy=vc={}));var eo;(function(e){e.Message=Object.freeze({createCancellationTokenSource(n){return new fc.CancellationTokenSource}});function t(n){return Zi.is(n)||vc.is(n)}e.is=t})(eo||(H.CancellationReceiverStrategy=eo={}));var to;(function(e){e.Message=Object.freeze({sendCancellation(n,r){return n.sendNotification(Ar.type,{id:r})},cleanup(n){}});function t(n){let r=n;return r&&ue.func(r.sendCancellation)&&ue.func(r.cleanup)}e.is=t})(to||(H.CancellationSenderStrategy=to={}));var no;(function(e){e.Message=Object.freeze({receiver:eo.Message,sender:to.Message});function t(n){let r=n;return r&&eo.is(r.receiver)&&to.is(r.sender)}e.is=t})(no||(H.CancellationStrategy=no={}));var ro;(function(e){function t(n){let r=n;return r&&ue.func(r.handleMessage)}e.is=t})(ro||(H.MessageStrategy=ro={}));var Yd;(function(e){function t(n){let r=n;return r&&(no.is(r.cancellationStrategy)||bc.is(r.connectionStrategy)||ro.is(r.messageStrategy))}e.is=t})(Yd||(H.ConnectionOptions=Yd={}));var at;(function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"})(at||(at={}));function A_(e,t,n,r){let i=n!==void 0?n:H.NullLogger,o=0,s=0,a=0,c="2.0",l,d=new Map,h,v=new Map,y=new Map,R,I=new $d.LinkedMap,$=new Map,Y=new Set,m=new Map,g=J.Off,w=Ye.Text,V,X=at.New,it=new Tr.Emitter,At=new Tr.Emitter,en=new Tr.Emitter,vn=new Tr.Emitter,k=new Tr.Emitter,b=r&&r.cancellationStrategy?r.cancellationStrategy:no.Message;function E(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 P(){return"not-"+(++s).toString()}function C(p,_){U.Message.isRequest(_)?p.set(E(_.id),_):U.Message.isResponse(_)?p.set(j(_.id),_):p.set(P(),_)}function D(p){}function N(){return X===at.Listening}function M(){return X===at.Closed}function q(){return X===at.Disposed}function z(){(X===at.New||X===at.Listening)&&(X=at.Closed,At.fire(void 0))}function G(p){it.fire([p,void 0,void 0])}function Ce(p){it.fire(p)}e.onClose(z),e.onError(G),t.onClose(z),t.onError(Ce);function ee(){R||I.size===0||(R=(0,zd.default)().timer.setImmediate(()=>{R=void 0,tn()}))}function ot(p){U.Message.isRequest(p)?yy(p):U.Message.isNotification(p)?vy(p):U.Message.isResponse(p)?by(p):p?.type?.startsWith("redocly/")||xy(p)}function tn(){if(I.size===0)return;let p=I.shift();try{let _=r?.messageStrategy;ro.is(_)?_.handleMessage(p,ot):ot(p)}finally{ee()}}let hy=p=>{try{if(U.Message.isNotification(p)&&p.method===Ar.type.method){let _=p.params.id,A=E(_),L=I.get(A);if(U.Message.isRequest(L)){let te=r?.connectionStrategy,le=te&&te.cancelUndispatched?te.cancelUndispatched(L,D):void 0;if(le&&(le.error!==void 0||le.result!==void 0)){I.delete(A),m.delete(_),le.id=L.id,Qr(le,p.method,Date.now()),t.write(le).catch(()=>i.error("Sending response for canceled message failed."));return}}let ie=m.get(_);if(ie!==void 0){ie.cancel(),xs(p);return}else Y.add(_)}C(I,p)}finally{ee()}};function yy(p){if(q())return;function _(K,ae,Z){let Pe={jsonrpc:c,id:p.id};K instanceof U.ResponseError?Pe.error=K.toJson():Pe.result=K===void 0?null:K,Qr(Pe,ae,Z),t.write(Pe).catch(()=>i.error("Sending response failed."))}function A(K,ae,Z){let Pe={jsonrpc:c,id:p.id,error:K.toJson()};Qr(Pe,ae,Z),t.write(Pe).catch(()=>i.error("Sending response failed."))}function L(K,ae,Z){K===void 0&&(K=null);let Pe={jsonrpc:c,id:p.id,result:K};Qr(Pe,ae,Z),t.write(Pe).catch(()=>i.error("Sending response failed."))}Cy(p);let ie=d.get(p.method),te,le;ie&&(te=ie.type,le=ie.handler);let ge=Date.now();if(le||l){let K=p.id??String(Date.now()),ae=Zi.is(b.receiver)?b.receiver.createCancellationTokenSource(K):b.receiver.createCancellationTokenSource(p);p.id!==null&&Y.has(p.id)&&ae.cancel(),p.id!==null&&m.set(K,ae);try{let Z;if(le)if(p.params===void 0){if(te!==void 0&&te.numberOfParams!==0){A(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines ${te.numberOfParams} params but received none.`),p.method,ge);return}Z=le(ae.token)}else if(Array.isArray(p.params)){if(te!==void 0&&te.parameterStructures===U.ParameterStructures.byName){A(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by name but received parameters by position`),p.method,ge);return}Z=le(...p.params,ae.token)}else{if(te!==void 0&&te.parameterStructures===U.ParameterStructures.byPosition){A(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by position but received parameters by name`),p.method,ge);return}Z=le(p.params,ae.token)}else l&&(Z=l(p.method,p.params,ae.token));let Pe=Z;Z?Pe.then?Pe.then(Me=>{m.delete(K),_(Me,p.method,ge)},Me=>{m.delete(K),Me instanceof U.ResponseError?A(Me,p.method,ge):Me&&ue.string(Me.message)?A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Me.message}`),p.method,ge):A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,ge)}):(m.delete(K),_(Z,p.method,ge)):(m.delete(K),L(Z,p.method,ge))}catch(Z){m.delete(K),Z instanceof U.ResponseError?_(Z,p.method,ge):Z&&ue.string(Z.message)?A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Z.message}`),p.method,ge):A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,ge)}}else A(new U.ResponseError(U.ErrorCodes.MethodNotFound,`Unhandled method ${p.method}`),p.method,ge)}function by(p){if(!q())if(p.id===null)p.error?i.error(`Received response message without id: Error is:
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}};Ji.AbstractMessageBuffer=dc});var Gd=S(H=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0});H.createMessageConnection=H.ConnectionOptions=H.MessageStrategy=H.CancellationStrategy=H.CancellationSenderStrategy=H.CancellationReceiverStrategy=H.RequestCancellationReceiverStrategy=H.IdCancellationReceiverStrategy=H.ConnectionStrategy=H.ConnectionError=H.ConnectionErrors=H.LogTraceNotification=H.SetTraceNotification=H.TraceFormat=H.TraceValues=H.Trace=H.NullLogger=H.ProgressType=H.ProgressToken=void 0;var zd=Ft(),ue=jn(),U=$a(),$d=Ya(),Tr=Ln(),fc=Yi(),Ar;(function(e){e.type=new U.NotificationType("$/cancelRequest")})(Ar||(Ar={}));var gc;(function(e){function t(n){return typeof n=="string"||typeof n=="number"}e.is=t})(gc||(H.ProgressToken=gc={}));var wr;(function(e){e.type=new U.NotificationType("$/progress")})(wr||(wr={}));var mc=class{constructor(){}};H.ProgressType=mc;var hc;(function(e){function t(n){return ue.func(n)}e.is=t})(hc||(hc={}));H.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||(H.Trace=J={}));var Vd;(function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"})(Vd||(H.TraceValues=Vd={}));(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||(H.Trace=J={}));var Ye;(function(e){e.Text="text",e.JSON="json"})(Ye||(H.TraceFormat=Ye={}));(function(e){function t(n){return ue.string(n)?(n=n.toLowerCase(),n==="json"?e.JSON:e.Text):e.Text}e.fromString=t})(Ye||(H.TraceFormat=Ye={}));var yc;(function(e){e.type=new U.NotificationType("$/setTrace")})(yc||(H.SetTraceNotification=yc={}));var Xi;(function(e){e.type=new U.NotificationType("$/logTrace")})(Xi||(H.LogTraceNotification=Xi={}));var kr;(function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"})(kr||(H.ConnectionErrors=kr={}));var Wn=class e extends Error{constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};H.ConnectionError=Wn;var bc;(function(e){function t(n){let r=n;return r&&ue.func(r.cancelUndispatched)}e.is=t})(bc||(H.ConnectionStrategy=bc={}));var Zi;(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})(Zi||(H.IdCancellationReceiverStrategy=Zi={}));var vc;(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})(vc||(H.RequestCancellationReceiverStrategy=vc={}));var eo;(function(e){e.Message=Object.freeze({createCancellationTokenSource(n){return new fc.CancellationTokenSource}});function t(n){return Zi.is(n)||vc.is(n)}e.is=t})(eo||(H.CancellationReceiverStrategy=eo={}));var to;(function(e){e.Message=Object.freeze({sendCancellation(n,r){return n.sendNotification(Ar.type,{id:r})},cleanup(n){}});function t(n){let r=n;return r&&ue.func(r.sendCancellation)&&ue.func(r.cleanup)}e.is=t})(to||(H.CancellationSenderStrategy=to={}));var no;(function(e){e.Message=Object.freeze({receiver:eo.Message,sender:to.Message});function t(n){let r=n;return r&&eo.is(r.receiver)&&to.is(r.sender)}e.is=t})(no||(H.CancellationStrategy=no={}));var ro;(function(e){function t(n){let r=n;return r&&ue.func(r.handleMessage)}e.is=t})(ro||(H.MessageStrategy=ro={}));var Yd;(function(e){function t(n){let r=n;return r&&(no.is(r.cancellationStrategy)||bc.is(r.connectionStrategy)||ro.is(r.messageStrategy))}e.is=t})(Yd||(H.ConnectionOptions=Yd={}));var at;(function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"})(at||(at={}));function A_(e,t,n,r){let i=n!==void 0?n:H.NullLogger,o=0,s=0,a=0,c="2.0",l,d=new Map,h,v=new Map,y=new Map,R,I=new $d.LinkedMap,$=new Map,Y=new Set,m=new Map,g=J.Off,w=Ye.Text,V,X=at.New,it=new Tr.Emitter,Ot=new Tr.Emitter,en=new Tr.Emitter,vn=new Tr.Emitter,k=new Tr.Emitter,b=r&&r.cancellationStrategy?r.cancellationStrategy:no.Message;function E(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 P(){return"not-"+(++s).toString()}function C(p,_){U.Message.isRequest(_)?p.set(E(_.id),_):U.Message.isResponse(_)?p.set(j(_.id),_):p.set(P(),_)}function D(p){}function N(){return X===at.Listening}function M(){return X===at.Closed}function q(){return X===at.Disposed}function z(){(X===at.New||X===at.Listening)&&(X=at.Closed,Ot.fire(void 0))}function G(p){it.fire([p,void 0,void 0])}function Ce(p){it.fire(p)}e.onClose(z),e.onError(G),t.onClose(z),t.onError(Ce);function ee(){R||I.size===0||(R=(0,zd.default)().timer.setImmediate(()=>{R=void 0,tn()}))}function ot(p){U.Message.isRequest(p)?yy(p):U.Message.isNotification(p)?vy(p):U.Message.isResponse(p)?by(p):p?.type?.startsWith("redocly/")||xy(p)}function tn(){if(I.size===0)return;let p=I.shift();try{let _=r?.messageStrategy;ro.is(_)?_.handleMessage(p,ot):ot(p)}finally{ee()}}let hy=p=>{try{if(U.Message.isNotification(p)&&p.method===Ar.type.method){let _=p.params.id,A=E(_),L=I.get(A);if(U.Message.isRequest(L)){let te=r?.connectionStrategy,le=te&&te.cancelUndispatched?te.cancelUndispatched(L,D):void 0;if(le&&(le.error!==void 0||le.result!==void 0)){I.delete(A),m.delete(_),le.id=L.id,Qr(le,p.method,Date.now()),t.write(le).catch(()=>i.error("Sending response for canceled message failed."));return}}let ie=m.get(_);if(ie!==void 0){ie.cancel(),xs(p);return}else Y.add(_)}C(I,p)}finally{ee()}};function yy(p){if(q())return;function _(K,ae,Z){let Pe={jsonrpc:c,id:p.id};K instanceof U.ResponseError?Pe.error=K.toJson():Pe.result=K===void 0?null:K,Qr(Pe,ae,Z),t.write(Pe).catch(()=>i.error("Sending response failed."))}function A(K,ae,Z){let Pe={jsonrpc:c,id:p.id,error:K.toJson()};Qr(Pe,ae,Z),t.write(Pe).catch(()=>i.error("Sending response failed."))}function L(K,ae,Z){K===void 0&&(K=null);let Pe={jsonrpc:c,id:p.id,result:K};Qr(Pe,ae,Z),t.write(Pe).catch(()=>i.error("Sending response failed."))}Cy(p);let ie=d.get(p.method),te,le;ie&&(te=ie.type,le=ie.handler);let ge=Date.now();if(le||l){let K=p.id??String(Date.now()),ae=Zi.is(b.receiver)?b.receiver.createCancellationTokenSource(K):b.receiver.createCancellationTokenSource(p);p.id!==null&&Y.has(p.id)&&ae.cancel(),p.id!==null&&m.set(K,ae);try{let Z;if(le)if(p.params===void 0){if(te!==void 0&&te.numberOfParams!==0){A(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines ${te.numberOfParams} params but received none.`),p.method,ge);return}Z=le(ae.token)}else if(Array.isArray(p.params)){if(te!==void 0&&te.parameterStructures===U.ParameterStructures.byName){A(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by name but received parameters by position`),p.method,ge);return}Z=le(...p.params,ae.token)}else{if(te!==void 0&&te.parameterStructures===U.ParameterStructures.byPosition){A(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by position but received parameters by name`),p.method,ge);return}Z=le(p.params,ae.token)}else l&&(Z=l(p.method,p.params,ae.token));let Pe=Z;Z?Pe.then?Pe.then(Me=>{m.delete(K),_(Me,p.method,ge)},Me=>{m.delete(K),Me instanceof U.ResponseError?A(Me,p.method,ge):Me&&ue.string(Me.message)?A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Me.message}`),p.method,ge):A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,ge)}):(m.delete(K),_(Z,p.method,ge)):(m.delete(K),L(Z,p.method,ge))}catch(Z){m.delete(K),Z instanceof U.ResponseError?_(Z,p.method,ge):Z&&ue.string(Z.message)?A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Z.message}`),p.method,ge):A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,ge)}}else A(new U.ResponseError(U.ErrorCodes.MethodNotFound,`Unhandled method ${p.method}`),p.method,ge)}function by(p){if(!q())if(p.id===null)p.error?i.error(`Received response message without id: Error is:
40
40
  ${JSON.stringify(p.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{let _=p.id,A=$.get(_);if(Sy(p,A),A!==void 0){$.delete(_);try{if(p.error){let L=p.error;A.reject(new U.ResponseError(L.code,L.message,L.data))}else if(p.result!==void 0)A.resolve(p.result);else throw new Error("Should never happen.")}catch(L){L.message?i.error(`Response handler '${A.method}' failed with message: ${L.message}`):i.error(`Response handler '${A.method}' failed unexpectedly.`)}}}}function vy(p){if(q())return;let _,A;if(p.method===Ar.type.method){let L=p.params.id;Y.delete(L),xs(p);return}else{let L=v.get(p.method);L&&(A=L.handler,_=L.type)}if(A||h)try{if(xs(p),A)if(p.params===void 0)_!==void 0&&_.numberOfParams!==0&&_.parameterStructures!==U.ParameterStructures.byName&&i.error(`Notification ${p.method} defines ${_.numberOfParams} params but received none.`),A();else if(Array.isArray(p.params)){let L=p.params;p.method===wr.type.method&&L.length===2&&gc.is(L[0])?A({token:L[0],value:L[1]}):(_!==void 0&&(_.parameterStructures===U.ParameterStructures.byName&&i.error(`Notification ${p.method} defines parameters by name but received parameters by position`),_.numberOfParams!==p.params.length&&i.error(`Notification ${p.method} defines ${_.numberOfParams} params but received ${L.length} arguments`)),A(...L))}else _!==void 0&&_.parameterStructures===U.ParameterStructures.byPosition&&i.error(`Notification ${p.method} defines parameters by position but received parameters by name`),A(p.params);else h&&h(p.method,p.params)}catch(L){L.message?i.error(`Notification handler '${p.method}' failed with message: ${L.message}`):i.error(`Notification handler '${p.method}' failed unexpectedly.`)}else en.fire(p)}function xy(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 A=_.id,L=$.get(A);L&&L.reject(new Error("The received response has neither a result nor an error property."))}}function Ot(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 Py(p){if(!(g===J.Off||!V))if(w===Ye.Text){let _;(g===J.Verbose||g===J.Compact)&&p.params&&(_=`Params: ${Ot(p.params)}
41
+ ${JSON.stringify(p,null,4)}`);let _=p;if(ue.string(_.id)||ue.number(_.id)){let A=_.id,L=$.get(A);L&&L.reject(new Error("The received response has neither a result nor an error property."))}}function qt(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 Py(p){if(!(g===J.Off||!V))if(w===Ye.Text){let _;(g===J.Verbose||g===J.Compact)&&p.params&&(_=`Params: ${qt(p.params)}
42
42
 
43
- `),V.log(`Sending request '${p.method} - (${p.id})'.`,_)}else xn("send-request",p)}function _y(p){if(!(g===J.Off||!V))if(w===Ye.Text){let _;(g===J.Verbose||g===J.Compact)&&(p.params?_=`Params: ${Ot(p.params)}
43
+ `),V.log(`Sending request '${p.method} - (${p.id})'.`,_)}else xn("send-request",p)}function _y(p){if(!(g===J.Off||!V))if(w===Ye.Text){let _;(g===J.Verbose||g===J.Compact)&&(p.params?_=`Params: ${qt(p.params)}
44
44
 
45
45
  `:_=`No parameters provided.
46
46
 
47
- `),V.log(`Sending notification '${p.method}'.`,_)}else xn("send-notification",p)}function Qr(p,_,A){if(!(g===J.Off||!V))if(w===Ye.Text){let L;(g===J.Verbose||g===J.Compact)&&(p.error&&p.error.data?L=`Error data: ${Ot(p.error.data)}
47
+ `),V.log(`Sending notification '${p.method}'.`,_)}else xn("send-notification",p)}function Qr(p,_,A){if(!(g===J.Off||!V))if(w===Ye.Text){let L;(g===J.Verbose||g===J.Compact)&&(p.error&&p.error.data?L=`Error data: ${qt(p.error.data)}
48
48
 
49
- `:p.result?L=`Result: ${Ot(p.result)}
49
+ `:p.result?L=`Result: ${qt(p.result)}
50
50
 
51
51
  `:p.error===void 0&&(L=`No result returned.
52
52
 
53
- `)),V.log(`Sending response '${_} - (${p.id})'. Processing request took ${Date.now()-A}ms`,L)}else xn("send-response",p)}function Cy(p){if(!(g===J.Off||!V))if(w===Ye.Text){let _;(g===J.Verbose||g===J.Compact)&&p.params&&(_=`Params: ${Ot(p.params)}
53
+ `)),V.log(`Sending response '${_} - (${p.id})'. Processing request took ${Date.now()-A}ms`,L)}else xn("send-response",p)}function Cy(p){if(!(g===J.Off||!V))if(w===Ye.Text){let _;(g===J.Verbose||g===J.Compact)&&p.params&&(_=`Params: ${qt(p.params)}
54
54
 
55
- `),V.log(`Received request '${p.method} - (${p.id})'.`,_)}else xn("receive-request",p)}function xs(p){if(!(g===J.Off||!V||p.method===Xi.type.method))if(w===Ye.Text){let _;(g===J.Verbose||g===J.Compact)&&(p.params?_=`Params: ${Ot(p.params)}
55
+ `),V.log(`Received request '${p.method} - (${p.id})'.`,_)}else xn("receive-request",p)}function xs(p){if(!(g===J.Off||!V||p.method===Xi.type.method))if(w===Ye.Text){let _;(g===J.Verbose||g===J.Compact)&&(p.params?_=`Params: ${qt(p.params)}
56
56
 
57
57
  `:_=`No parameters provided.
58
58
 
59
- `),V.log(`Received notification '${p.method}'.`,_)}else xn("receive-notification",p)}function Sy(p,_){if(!(g===J.Off||!V))if(w===Ye.Text){let A;if((g===J.Verbose||g===J.Compact)&&(p.error&&p.error.data?A=`Error data: ${Ot(p.error.data)}
59
+ `),V.log(`Received notification '${p.method}'.`,_)}else xn("receive-notification",p)}function Sy(p,_){if(!(g===J.Off||!V))if(w===Ye.Text){let A;if((g===J.Verbose||g===J.Compact)&&(p.error&&p.error.data?A=`Error data: ${qt(p.error.data)}
60
60
 
61
- `:p.result?A=`Result: ${Ot(p.result)}
61
+ `:p.result?A=`Result: ${qt(p.result)}
62
62
 
63
63
  `:p.error===void 0&&(A=`No result returned.
64
64
 
65
- `)),_){let L=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";V.log(`Received response '${_.method} - (${p.id})' in ${Date.now()-_.timerStart}ms.${L}`,A)}else V.log(`Received response ${p.id} without active response promise.`,A)}else xn("receive-response",p)}function xn(p,_){if(!V||g===J.Off)return;let A={isLSPMessage:!0,type:p,message:_,timestamp:Date.now()};V.log(A)}function lr(){if(M())throw new Wn(kr.Closed,"Connection is closed.");if(q())throw new Wn(kr.Disposed,"Connection is disposed.")}function Dy(){if(N())throw new Wn(kr.AlreadyListening,"Connection is already listening")}function Ry(){if(!N())throw new Error("Call listen() first.")}function pr(p){return p===void 0?null:p}function Sl(p){if(p!==null)return p}function Dl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function Ps(p,_){switch(p){case U.ParameterStructures.auto:return Dl(_)?Sl(_):[pr(_)];case U.ParameterStructures.byName:if(!Dl(_))throw new Error("Received parameters by name but param is not an object literal.");return Sl(_);case U.ParameterStructures.byPosition:return[pr(_)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function Rl(p,_){let A,L=p.numberOfParams;switch(L){case 0:A=void 0;break;case 1:A=Ps(p.parameterStructures,_[0]);break;default:A=[];for(let ie=0;ie<_.length&&ie<L;ie++)A.push(pr(_[ie]));if(_.length<L)for(let ie=_.length;ie<L;ie++)A.push(null);break}return A}let Pn={sendNotification:(p,..._)=>{lr();let A,L;if(ue.string(p)){A=p;let te=_[0],le=0,ge=U.ParameterStructures.auto;U.ParameterStructures.is(te)&&(le=1,ge=te);let K=_.length,ae=K-le;switch(ae){case 0:L=void 0;break;case 1:L=Ps(ge,_[le]);break;default:if(ge===U.ParameterStructures.byName)throw new Error(`Received ${ae} parameters for 'by Name' notification parameter structure.`);L=_.slice(le,K).map(Z=>pr(Z));break}}else{let te=_;A=p.method,L=Rl(p,te)}let ie={jsonrpc:c,method:A,params:L};return _y(ie),t.write(ie).catch(te=>{throw i.error("Sending notification failed."),te})},onNotification:(p,_)=>{lr();let A;return ue.func(p)?h=p:_&&(ue.string(p)?(A=p,v.set(p,{type:void 0,handler:_})):(A=p.method,v.set(p.method,{type:p,handler:_}))),{dispose:()=>{A!==void 0?v.delete(A):h=void 0}}},onProgress:(p,_,A)=>{if(y.has(_))throw new Error(`Progress handler for token ${_} already registered`);return y.set(_,A),{dispose:()=>{y.delete(_)}}},sendProgress:(p,_,A)=>Pn.sendNotification(wr.type,{token:_,value:A}),onUnhandledProgress:vn.event,sendRequest:(p,..._)=>{lr(),Ry();let A,L,ie;if(ue.string(p)){A=p;let K=_[0],ae=_[_.length-1],Z=0,Pe=U.ParameterStructures.auto;U.ParameterStructures.is(K)&&(Z=1,Pe=K);let Me=_.length;fc.CancellationToken.is(ae)&&(Me=Me-1,ie=ae);let lt=Me-Z;switch(lt){case 0:L=void 0;break;case 1:L=Ps(Pe,_[Z]);break;default:if(Pe===U.ParameterStructures.byName)throw new Error(`Received ${lt} parameters for 'by Name' request parameter structure.`);L=_.slice(Z,Me).map(Ty=>pr(Ty));break}}else{let K=_;A=p.method,L=Rl(p,K);let ae=p.numberOfParams;ie=fc.CancellationToken.is(K[ae])?K[ae]:void 0}let te=o++,le;ie&&(le=ie.onCancellationRequested(()=>{let K=b.sender.sendCancellation(Pn,te);return K===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${te}`),Promise.resolve()):K.catch(()=>{i.log(`Sending cancellation messages for id ${te} failed`)})}));let ge={jsonrpc:c,id:te,method:A,params:L};return Py(ge),typeof b.sender.enableCancellation=="function"&&b.sender.enableCancellation(ge),new Promise(async(K,ae)=>{let Z=lt=>{K(lt),b.sender.cleanup(te),le?.dispose()},Pe=lt=>{ae(lt),b.sender.cleanup(te),le?.dispose()},Me={method:A,timerStart:Date.now(),resolve:Z,reject:Pe};try{await t.write(ge),$.set(te,Me)}catch(lt){throw i.error("Sending request failed."),Me.reject(new U.ResponseError(U.ErrorCodes.MessageWriteError,lt.message?lt.message:"Unknown reason")),lt}})},onRequest:(p,_)=>{lr();let A=null;return hc.is(p)?(A=void 0,l=p):ue.string(p)?(A=null,_!==void 0&&(A=p,d.set(p,{handler:_,type:void 0}))):_!==void 0&&(A=p.method,d.set(p.method,{type:p,handler:_})),{dispose:()=>{A!==null&&(A!==void 0?d.delete(A):l=void 0)}}},hasPendingResponse:()=>$.size>0,trace:async(p,_,A)=>{let L=!1,ie=Ye.Text;A!==void 0&&(ue.boolean(A)?L=A:(L=A.sendNotification||!1,ie=A.traceFormat||Ye.Text)),g=p,w=ie,g===J.Off?V=void 0:V=_,L&&!M()&&!q()&&await Pn.sendNotification(yc.type,{value:J.toString(p)})},onError:it.event,onClose:At.event,onUnhandledNotification:en.event,onDispose:k.event,end:()=>{t.end()},dispose:()=>{if(q())return;X=at.Disposed,k.fire(void 0);let p=new U.ResponseError(U.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let _ of $.values())_.reject(p);$=new Map,m=new Map,Y=new Set,I=new $d.LinkedMap,ue.func(t.dispose)&&t.dispose(),ue.func(e.dispose)&&e.dispose()},listen:()=>{lr(),Dy(),X=at.Listening,e.listen(hy)},inspect:()=>{(0,zd.default)().console.log("inspect")}};return Pn.onNotification(Xi.type,p=>{if(g===J.Off||!V)return;let _=g===J.Verbose||g===J.Compact;V.log(p.message,_?p.verbose:void 0)}),Pn.onNotification(wr.type,p=>{let _=y.get(p.token);_?_(p.value):vn.fire(p)}),Pn}H.createMessageConnection=A_});var io=S(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.ProgressType=x.ProgressToken=x.createMessageConnection=x.NullLogger=x.ConnectionOptions=x.ConnectionStrategy=x.AbstractMessageBuffer=x.WriteableStreamMessageWriter=x.AbstractMessageWriter=x.MessageWriter=x.ReadableStreamMessageReader=x.AbstractMessageReader=x.MessageReader=x.SharedArrayReceiverStrategy=x.SharedArraySenderStrategy=x.CancellationToken=x.CancellationTokenSource=x.Emitter=x.Event=x.Disposable=x.LRUCache=x.Touch=x.LinkedMap=x.ParameterStructures=x.NotificationType9=x.NotificationType8=x.NotificationType7=x.NotificationType6=x.NotificationType5=x.NotificationType4=x.NotificationType3=x.NotificationType2=x.NotificationType1=x.NotificationType0=x.NotificationType=x.ErrorCodes=x.ResponseError=x.RequestType9=x.RequestType8=x.RequestType7=x.RequestType6=x.RequestType5=x.RequestType4=x.RequestType3=x.RequestType2=x.RequestType1=x.RequestType0=x.RequestType=x.Message=x.RAL=void 0;x.MessageStrategy=x.CancellationStrategy=x.CancellationSenderStrategy=x.CancellationReceiverStrategy=x.ConnectionError=x.ConnectionErrors=x.LogTraceNotification=x.SetTraceNotification=x.TraceFormat=x.TraceValues=x.Trace=void 0;var re=$a();Object.defineProperty(x,"Message",{enumerable:!0,get:function(){return re.Message}});Object.defineProperty(x,"RequestType",{enumerable:!0,get:function(){return re.RequestType}});Object.defineProperty(x,"RequestType0",{enumerable:!0,get:function(){return re.RequestType0}});Object.defineProperty(x,"RequestType1",{enumerable:!0,get:function(){return re.RequestType1}});Object.defineProperty(x,"RequestType2",{enumerable:!0,get:function(){return re.RequestType2}});Object.defineProperty(x,"RequestType3",{enumerable:!0,get:function(){return re.RequestType3}});Object.defineProperty(x,"RequestType4",{enumerable:!0,get:function(){return re.RequestType4}});Object.defineProperty(x,"RequestType5",{enumerable:!0,get:function(){return re.RequestType5}});Object.defineProperty(x,"RequestType6",{enumerable:!0,get:function(){return re.RequestType6}});Object.defineProperty(x,"RequestType7",{enumerable:!0,get:function(){return re.RequestType7}});Object.defineProperty(x,"RequestType8",{enumerable:!0,get:function(){return re.RequestType8}});Object.defineProperty(x,"RequestType9",{enumerable:!0,get:function(){return re.RequestType9}});Object.defineProperty(x,"ResponseError",{enumerable:!0,get:function(){return re.ResponseError}});Object.defineProperty(x,"ErrorCodes",{enumerable:!0,get:function(){return re.ErrorCodes}});Object.defineProperty(x,"NotificationType",{enumerable:!0,get:function(){return re.NotificationType}});Object.defineProperty(x,"NotificationType0",{enumerable:!0,get:function(){return re.NotificationType0}});Object.defineProperty(x,"NotificationType1",{enumerable:!0,get:function(){return re.NotificationType1}});Object.defineProperty(x,"NotificationType2",{enumerable:!0,get:function(){return re.NotificationType2}});Object.defineProperty(x,"NotificationType3",{enumerable:!0,get:function(){return re.NotificationType3}});Object.defineProperty(x,"NotificationType4",{enumerable:!0,get:function(){return re.NotificationType4}});Object.defineProperty(x,"NotificationType5",{enumerable:!0,get:function(){return re.NotificationType5}});Object.defineProperty(x,"NotificationType6",{enumerable:!0,get:function(){return re.NotificationType6}});Object.defineProperty(x,"NotificationType7",{enumerable:!0,get:function(){return re.NotificationType7}});Object.defineProperty(x,"NotificationType8",{enumerable:!0,get:function(){return re.NotificationType8}});Object.defineProperty(x,"NotificationType9",{enumerable:!0,get:function(){return re.NotificationType9}});Object.defineProperty(x,"ParameterStructures",{enumerable:!0,get:function(){return re.ParameterStructures}});var xc=Ya();Object.defineProperty(x,"LinkedMap",{enumerable:!0,get:function(){return xc.LinkedMap}});Object.defineProperty(x,"LRUCache",{enumerable:!0,get:function(){return xc.LRUCache}});Object.defineProperty(x,"Touch",{enumerable:!0,get:function(){return xc.Touch}});var O_=Nd();Object.defineProperty(x,"Disposable",{enumerable:!0,get:function(){return O_.Disposable}});var Kd=Ln();Object.defineProperty(x,"Event",{enumerable:!0,get:function(){return Kd.Event}});Object.defineProperty(x,"Emitter",{enumerable:!0,get:function(){return Kd.Emitter}});var Qd=Yi();Object.defineProperty(x,"CancellationTokenSource",{enumerable:!0,get:function(){return Qd.CancellationTokenSource}});Object.defineProperty(x,"CancellationToken",{enumerable:!0,get:function(){return Qd.CancellationToken}});var Jd=jd();Object.defineProperty(x,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return Jd.SharedArraySenderStrategy}});Object.defineProperty(x,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return Jd.SharedArrayReceiverStrategy}});var Pc=Ld();Object.defineProperty(x,"MessageReader",{enumerable:!0,get:function(){return Pc.MessageReader}});Object.defineProperty(x,"AbstractMessageReader",{enumerable:!0,get:function(){return Pc.AbstractMessageReader}});Object.defineProperty(x,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return Pc.ReadableStreamMessageReader}});var _c=Bd();Object.defineProperty(x,"MessageWriter",{enumerable:!0,get:function(){return _c.MessageWriter}});Object.defineProperty(x,"AbstractMessageWriter",{enumerable:!0,get:function(){return _c.AbstractMessageWriter}});Object.defineProperty(x,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return _c.WriteableStreamMessageWriter}});var q_=Hd();Object.defineProperty(x,"AbstractMessageBuffer",{enumerable:!0,get:function(){return q_.AbstractMessageBuffer}});var Ae=Gd();Object.defineProperty(x,"ConnectionStrategy",{enumerable:!0,get:function(){return Ae.ConnectionStrategy}});Object.defineProperty(x,"ConnectionOptions",{enumerable:!0,get:function(){return Ae.ConnectionOptions}});Object.defineProperty(x,"NullLogger",{enumerable:!0,get:function(){return Ae.NullLogger}});Object.defineProperty(x,"createMessageConnection",{enumerable:!0,get:function(){return Ae.createMessageConnection}});Object.defineProperty(x,"ProgressToken",{enumerable:!0,get:function(){return Ae.ProgressToken}});Object.defineProperty(x,"ProgressType",{enumerable:!0,get:function(){return Ae.ProgressType}});Object.defineProperty(x,"Trace",{enumerable:!0,get:function(){return Ae.Trace}});Object.defineProperty(x,"TraceValues",{enumerable:!0,get:function(){return Ae.TraceValues}});Object.defineProperty(x,"TraceFormat",{enumerable:!0,get:function(){return Ae.TraceFormat}});Object.defineProperty(x,"SetTraceNotification",{enumerable:!0,get:function(){return Ae.SetTraceNotification}});Object.defineProperty(x,"LogTraceNotification",{enumerable:!0,get:function(){return Ae.LogTraceNotification}});Object.defineProperty(x,"ConnectionErrors",{enumerable:!0,get:function(){return Ae.ConnectionErrors}});Object.defineProperty(x,"ConnectionError",{enumerable:!0,get:function(){return Ae.ConnectionError}});Object.defineProperty(x,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Ae.CancellationReceiverStrategy}});Object.defineProperty(x,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Ae.CancellationSenderStrategy}});Object.defineProperty(x,"CancellationStrategy",{enumerable:!0,get:function(){return Ae.CancellationStrategy}});Object.defineProperty(x,"MessageStrategy",{enumerable:!0,get:function(){return Ae.MessageStrategy}});var N_=Ft();x.RAL=N_.default});var Zd=S(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});var gt=io(),oo=class e extends gt.AbstractMessageBuffer{constructor(t="utf-8"){super(t),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return e.emptyBuffer}fromString(t,n){return new TextEncoder().encode(t)}toString(t,n){return n==="ascii"?this.asciiDecoder.decode(t):new TextDecoder(n).decode(t)}asNative(t,n){return n===void 0?t:t.slice(0,n)}allocNative(t){return new Uint8Array(t)}};oo.emptyBuffer=new Uint8Array(0);var Cc=class{constructor(t){this.socket=t,this._onData=new gt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,gt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),gt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),gt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),gt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},Sc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),gt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),gt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),gt.Disposable.create(()=>this.socket.removeEventListener("end",t))}write(t,n){if(typeof t=="string"){if(n!==void 0&&n!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${n}`);this.socket.send(t)}else this.socket.send(t);return Promise.resolve()}end(){this.socket.close()}},E_=new TextEncoder,Xd=Object.freeze({messageBuffer:Object.freeze({create:e=>new oo(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(E_.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 Cc(e),asWritableStream:e=>new Sc(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 Dc(){return Xd}(function(e){function t(){gt.RAL.install(Xd)}e.install=t})(Dc||(Dc={}));Rc.default=Dc});var dn=S(Ge=>{"use strict";var j_=Ge&&Ge.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),M_=Ge&&Ge.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&j_(t,e,n)};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.createMessageConnection=Ge.BrowserMessageWriter=Ge.BrowserMessageReader=void 0;var L_=Zd();L_.default.install();var Bn=io();M_(io(),Ge);var Tc=class extends Bn.AbstractMessageReader{constructor(t){super(),this._onData=new Bn.Emitter,this._messageListener=n=>{this._onData.fire(n.data)},t.addEventListener("error",n=>this.fireError(n)),t.onmessage=this._messageListener}listen(t){return this._onData.event(t)}};Ge.BrowserMessageReader=Tc;var wc=class extends Bn.AbstractMessageWriter{constructor(t){super(),this.port=t,this.errorCount=0,t.addEventListener("error",n=>this.fireError(n))}write(t){try{return this.port.postMessage(t),Promise.resolve()}catch(n){return this.handleError(n,t),Promise.reject(n)}}handleError(t,n){this.errorCount++,this.fireError(t,n,this.errorCount)}end(){}};Ge.BrowserMessageWriter=wc;function I_(e,t,n,r){return n===void 0&&(n=Bn.NullLogger),Bn.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Bn.createMessageConnection)(e,t,n,r)}Ge.createMessageConnection=I_});var kc=S((HR,ef)=>{"use strict";ef.exports=dn()});var mo={};_s(mo,{AnnotatedTextEdit:()=>Tt,ChangeAnnotation:()=>fn,ChangeAnnotationIdentifier:()=>Oe,CodeAction:()=>lu,CodeActionContext:()=>uu,CodeActionKind:()=>cu,CodeActionTriggerKind:()=>Lr,CodeDescription:()=>Fc,CodeLens:()=>pu,Color:()=>ao,ColorInformation:()=>Nc,ColorPresentation:()=>Ec,Command:()=>gn,CompletionItem:()=>Qc,CompletionItemKind:()=>zc,CompletionItemLabelDetails:()=>Kc,CompletionItemTag:()=>Vc,CompletionList:()=>Jc,CreateFile:()=>zn,DeleteFile:()=>Vn,Diagnostic:()=>Nr,DiagnosticRelatedInformation:()=>co,DiagnosticSeverity:()=>Lc,DiagnosticTag:()=>Ic,DocumentHighlight:()=>nu,DocumentHighlightKind:()=>tu,DocumentLink:()=>fu,DocumentSymbol:()=>au,DocumentUri:()=>Ac,EOL:()=>F_,FoldingRange:()=>Mc,FoldingRangeKind:()=>jc,FormattingOptions:()=>du,Hover:()=>Xc,InlayHint:()=>_u,InlayHintKind:()=>fo,InlayHintLabelPart:()=>go,InlineCompletionContext:()=>wu,InlineCompletionItem:()=>Su,InlineCompletionList:()=>Du,InlineCompletionTriggerKind:()=>Ru,InlineValueContext:()=>Pu,InlineValueEvaluatableExpression:()=>xu,InlineValueText:()=>bu,InlineValueVariableLookup:()=>vu,InsertReplaceEdit:()=>Yc,InsertTextFormat:()=>$c,InsertTextMode:()=>Gc,Location:()=>qr,LocationLink:()=>qc,MarkedString:()=>Mr,MarkupContent:()=>Yn,MarkupKind:()=>po,OptionalVersionedTextDocumentIdentifier:()=>jr,ParameterInformation:()=>Zc,Position:()=>Xe,Range:()=>pe,RenameFile:()=>$n,SelectedCompletionInfo:()=>Tu,SelectionRange:()=>gu,SemanticTokenModifiers:()=>hu,SemanticTokenTypes:()=>mu,SemanticTokens:()=>yu,SignatureInformation:()=>eu,StringValue:()=>Cu,SymbolInformation:()=>ou,SymbolKind:()=>ru,SymbolTag:()=>iu,TextDocument:()=>Au,TextDocumentEdit:()=>Er,TextDocumentIdentifier:()=>Wc,TextDocumentItem:()=>Hc,TextEdit:()=>mt,URI:()=>so,VersionedTextDocumentIdentifier:()=>Bc,WorkspaceChange:()=>Uc,WorkspaceEdit:()=>uo,WorkspaceFolder:()=>ku,WorkspaceSymbol:()=>su,integer:()=>Oc,uinteger:()=>Or});var Ac,so,Oc,Or,Xe,pe,qr,qc,ao,Nc,Ec,jc,Mc,co,Lc,Ic,Fc,Nr,gn,mt,fn,Oe,Tt,Er,zn,$n,Vn,uo,Hn,lo,Uc,Wc,Bc,jr,Hc,po,Yn,zc,$c,Vc,Yc,Gc,Kc,Qc,Jc,Mr,Xc,Zc,eu,tu,nu,ru,iu,ou,su,au,cu,Lr,uu,lu,pu,du,fu,gu,mu,hu,yu,bu,vu,xu,Pu,fo,go,_u,Cu,Su,Du,Ru,Tu,wu,ku,F_,Au,Ou,f,ho=Tl(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})(Ac||(Ac={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(so||(so={}));(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})(Oc||(Oc={}));(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})(Or||(Or={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Or.MAX_VALUE),i===Number.MAX_VALUE&&(i=Or.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.line)&&f.uinteger(i.character)}e.is=n})(Xe||(Xe={}));(function(e){function t(r,i,o,s){if(f.uinteger(r)&&f.uinteger(i)&&f.uinteger(o)&&f.uinteger(s))return{start:Xe.create(r,i),end:Xe.create(o,s)};if(Xe.is(r)&&Xe.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${o}, ${s}]`)}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&Xe.is(i.start)&&Xe.is(i.end)}e.is=n})(pe||(pe={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&(f.string(i.uri)||f.undefined(i.uri))}e.is=n})(qr||(qr={}));(function(e){function t(r,i,o,s){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.targetRange)&&f.string(i.targetUri)&&pe.is(i.targetSelectionRange)&&(pe.is(i.originSelectionRange)||f.undefined(i.originSelectionRange))}e.is=n})(qc||(qc={}));(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})(ao||(ao={}));(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&ao.is(i.color)}e.is=n})(Nc||(Nc={}));(function(e){function t(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.undefined(i.textEdit)||mt.is(i))&&(f.undefined(i.additionalTextEdits)||f.typedArray(i.additionalTextEdits,mt.is))}e.is=n})(Ec||(Ec={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(jc||(jc={}));(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})(Mc||(Mc={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&qr.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})(Lc||(Lc={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(Ic||(Ic={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(Fc||(Fc={}));(function(e){function t(r,i,o,s,a,c){let l={range:r,message:i};return f.defined(o)&&(l.severity=o),f.defined(s)&&(l.code=s),f.defined(a)&&(l.source=a),f.defined(c)&&(l.relatedInformation=c),l}e.create=t;function n(r){var i;let o=r;return f.defined(o)&&pe.is(o.range)&&f.string(o.message)&&(f.number(o.severity)||f.undefined(o.severity))&&(f.integer(o.code)||f.string(o.code)||f.undefined(o.code))&&(f.undefined(o.codeDescription)||f.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(f.string(o.source)||f.undefined(o.source))&&(f.undefined(o.relatedInformation)||f.typedArray(o.relatedInformation,co.is))}e.is=n})(Nr||(Nr={}));(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})(gn||(gn={}));(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function n(o,s){return{range:{start:o,end:o},newText:s}}e.insert=n;function r(o){return{range:o,newText:""}}e.del=r;function i(o){let s=o;return f.objectLiteral(s)&&f.string(s.newText)&&pe.is(s.range)}e.is=i})(mt||(mt={}));(function(e){function t(r,i,o){let s={label:r};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(f.string(i.description)||i.description===void 0)}e.is=n})(fn||(fn={}));(function(e){function t(n){let r=n;return f.string(r)}e.is=t})(Oe||(Oe={}));(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function n(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=n;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function i(o){let s=o;return mt.is(s)&&(fn.is(s.annotationId)||Oe.is(s.annotationId))}e.is=i})(Tt||(Tt={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&jr.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Er||(Er={}));(function(e){function t(r,i,o){let s={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&f.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||f.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||f.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})(zn||(zn={}));(function(e){function t(r,i,o,s){let a={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&f.string(i.oldUri)&&f.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||f.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||f.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})($n||($n={}));(function(e){function t(r,i,o){let s={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&f.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||f.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||f.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})(Vn||(Vn={}));(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>f.string(i.kind)?zn.is(i)||$n.is(i)||Vn.is(i):Er.is(i)))}e.is=t})(uo||(uo={}));Hn=class{constructor(t,n){this.edits=t,this.changeAnnotations=n}insert(t,n,r){let i,o;if(r===void 0?i=mt.insert(t,n):Oe.is(r)?(o=r,i=Tt.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Tt.insert(t,n,o)),this.edits.push(i),o!==void 0)return o}replace(t,n,r){let i,o;if(r===void 0?i=mt.replace(t,n):Oe.is(r)?(o=r,i=Tt.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Tt.replace(t,n,o)),this.edits.push(i),o!==void 0)return o}delete(t,n){let r,i;if(n===void 0?r=mt.del(t):Oe.is(n)?(i=n,r=Tt.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Tt.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.")}},lo=class{constructor(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(t,n){let r;if(Oe.is(t)?r=t:(r=this.nextId(),n=t),this._annotations[r]!==void 0)throw new Error(`Id ${r} is already in use.`);if(n===void 0)throw new Error(`No annotation provided for id ${r}`);return this._annotations[r]=n,this._size++,r}nextId(){return this._counter++,this._counter.toString()}},Uc=class{constructor(t){this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new lo(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(n=>{if(Er.is(n)){let r=new Hn(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new Hn(t.changes[n]);this._textEditChanges[n]=r})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(t){if(jr.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n={uri:t.uri,version:t.version},r=this._textEditChanges[n.uri];if(!r){let i=[],o={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(o),r=new Hn(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let n=this._textEditChanges[t];if(!n){let r=[];this._workspaceEdit.changes[t]=r,n=new Hn(r),this._textEditChanges[t]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new lo,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;fn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=zn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=zn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}renameFile(t,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let o;fn.is(r)||Oe.is(r)?o=r:i=r;let s,a;if(o===void 0?s=$n.create(t,n,i):(a=Oe.is(o)?o:this._changeAnnotations.manage(o),s=$n.create(t,n,i,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a}deleteFile(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;fn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Vn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=Vn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}};(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)}e.is=n})(Wc||(Wc={}));(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})(Bc||(Bc={}));(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})(jr||(jr={}));(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})(Hc||(Hc={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(po||(po={}));(function(e){function t(n){let r=n;return f.objectLiteral(n)&&po.is(r.kind)&&f.string(r.value)}e.is=t})(Yn||(Yn={}));(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(zc||(zc={}));(function(e){e.PlainText=1,e.Snippet=2})($c||($c={}));(function(e){e.Deprecated=1})(Vc||(Vc={}));(function(e){function t(r,i,o){return{newText:r,insert:i,replace:o}}e.create=t;function n(r){let i=r;return i&&f.string(i.newText)&&pe.is(i.insert)&&pe.is(i.replace)}e.is=n})(Yc||(Yc={}));(function(e){e.asIs=1,e.adjustIndentation=2})(Gc||(Gc={}));(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})(Kc||(Kc={}));(function(e){function t(n){return{label:n}}e.create=t})(Qc||(Qc={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(Jc||(Jc={}));(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})(Mr||(Mr={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(Yn.is(r.contents)||Mr.is(r.contents)||f.typedArray(r.contents,Mr.is))&&(n.range===void 0||pe.is(n.range))}e.is=t})(Xc||(Xc={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Zc||(Zc={}));(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})(eu||(eu={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(tu||(tu={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(nu||(nu={}));(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})(ru||(ru={}));(function(e){e.Deprecated=1})(iu||(iu={}));(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})(ou||(ou={}));(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})(su||(su={}));(function(e){function t(r,i,o,s,a,c){let l={name:r,detail:i,kind:o,range:s,selectionRange:a};return c!==void 0&&(l.children=c),l}e.create=t;function n(r){let i=r;return i&&f.string(i.name)&&f.number(i.kind)&&pe.is(i.range)&&pe.is(i.selectionRange)&&(i.detail===void 0||f.string(i.detail))&&(i.deprecated===void 0||f.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(au||(au={}));(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"})(cu||(cu={}));(function(e){e.Invoked=1,e.Automatic=2})(Lr||(Lr={}));(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,Nr.is)&&(i.only===void 0||f.typedArray(i.only,f.string))&&(i.triggerKind===void 0||i.triggerKind===Lr.Invoked||i.triggerKind===Lr.Automatic)}e.is=n})(uu||(uu={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):gn.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,Nr.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||gn.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||uo.is(i.edit))}e.is=n})(lu||(lu={}));(function(e){function t(r,i){let o={range:r};return f.defined(i)&&(o.data=i),o}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(i.range)&&(f.undefined(i.command)||gn.is(i.command))}e.is=n})(pu||(pu={}));(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.uinteger(i.tabSize)&&f.boolean(i.insertSpaces)}e.is=n})(du||(du={}));(function(e){function t(r,i,o){return{range:r,target:i,data:o}}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(i.range)&&(f.undefined(i.target)||f.string(i.target))}e.is=n})(fu||(fu={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(gu||(gu={}));(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"})(mu||(mu={}));(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"})(hu||(hu={}));(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})(yu||(yu={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&f.string(i.text)}e.is=n})(bu||(bu={}));(function(e){function t(r,i,o){return{range:r,variableName:i,caseSensitiveLookup:o}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&f.boolean(i.caseSensitiveLookup)&&(f.string(i.variableName)||i.variableName===void 0)}e.is=n})(vu||(vu={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&(f.string(i.expression)||i.expression===void 0)}e.is=n})(xu||(xu={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(r.stoppedLocation)}e.is=n})(Pu||(Pu={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(fo||(fo={}));(function(e){function t(r){return{value:r}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&(i.tooltip===void 0||f.string(i.tooltip)||Yn.is(i.tooltip))&&(i.location===void 0||qr.is(i.location))&&(i.command===void 0||gn.is(i.command))}e.is=n})(go||(go={}));(function(e){function t(r,i,o){let s={position:r,label:i};return o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&Xe.is(i.position)&&(f.string(i.label)||f.typedArray(i.label,go.is))&&(i.kind===void 0||fo.is(i.kind))&&i.textEdits===void 0||f.typedArray(i.textEdits,mt.is)&&(i.tooltip===void 0||f.string(i.tooltip)||Yn.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(_u||(_u={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(Cu||(Cu={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(Su||(Su={}));(function(e){function t(n){return{items:n}}e.create=t})(Du||(Du={}));(function(e){e.Invoked=0,e.Automatic=1})(Ru||(Ru={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(Tu||(Tu={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(wu||(wu={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&so.is(r.uri)&&f.string(r.name)}e.is=t})(ku||(ku={}));F_=[`
65
+ `)),_){let L=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";V.log(`Received response '${_.method} - (${p.id})' in ${Date.now()-_.timerStart}ms.${L}`,A)}else V.log(`Received response ${p.id} without active response promise.`,A)}else xn("receive-response",p)}function xn(p,_){if(!V||g===J.Off)return;let A={isLSPMessage:!0,type:p,message:_,timestamp:Date.now()};V.log(A)}function lr(){if(M())throw new Wn(kr.Closed,"Connection is closed.");if(q())throw new Wn(kr.Disposed,"Connection is disposed.")}function Dy(){if(N())throw new Wn(kr.AlreadyListening,"Connection is already listening")}function Ry(){if(!N())throw new Error("Call listen() first.")}function pr(p){return p===void 0?null:p}function Sl(p){if(p!==null)return p}function Dl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function Ps(p,_){switch(p){case U.ParameterStructures.auto:return Dl(_)?Sl(_):[pr(_)];case U.ParameterStructures.byName:if(!Dl(_))throw new Error("Received parameters by name but param is not an object literal.");return Sl(_);case U.ParameterStructures.byPosition:return[pr(_)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function Rl(p,_){let A,L=p.numberOfParams;switch(L){case 0:A=void 0;break;case 1:A=Ps(p.parameterStructures,_[0]);break;default:A=[];for(let ie=0;ie<_.length&&ie<L;ie++)A.push(pr(_[ie]));if(_.length<L)for(let ie=_.length;ie<L;ie++)A.push(null);break}return A}let Pn={sendNotification:(p,..._)=>{lr();let A,L;if(ue.string(p)){A=p;let te=_[0],le=0,ge=U.ParameterStructures.auto;U.ParameterStructures.is(te)&&(le=1,ge=te);let K=_.length,ae=K-le;switch(ae){case 0:L=void 0;break;case 1:L=Ps(ge,_[le]);break;default:if(ge===U.ParameterStructures.byName)throw new Error(`Received ${ae} parameters for 'by Name' notification parameter structure.`);L=_.slice(le,K).map(Z=>pr(Z));break}}else{let te=_;A=p.method,L=Rl(p,te)}let ie={jsonrpc:c,method:A,params:L};return _y(ie),t.write(ie).catch(te=>{throw i.error("Sending notification failed."),te})},onNotification:(p,_)=>{lr();let A;return ue.func(p)?h=p:_&&(ue.string(p)?(A=p,v.set(p,{type:void 0,handler:_})):(A=p.method,v.set(p.method,{type:p,handler:_}))),{dispose:()=>{A!==void 0?v.delete(A):h=void 0}}},onProgress:(p,_,A)=>{if(y.has(_))throw new Error(`Progress handler for token ${_} already registered`);return y.set(_,A),{dispose:()=>{y.delete(_)}}},sendProgress:(p,_,A)=>Pn.sendNotification(wr.type,{token:_,value:A}),onUnhandledProgress:vn.event,sendRequest:(p,..._)=>{lr(),Ry();let A,L,ie;if(ue.string(p)){A=p;let K=_[0],ae=_[_.length-1],Z=0,Pe=U.ParameterStructures.auto;U.ParameterStructures.is(K)&&(Z=1,Pe=K);let Me=_.length;fc.CancellationToken.is(ae)&&(Me=Me-1,ie=ae);let lt=Me-Z;switch(lt){case 0:L=void 0;break;case 1:L=Ps(Pe,_[Z]);break;default:if(Pe===U.ParameterStructures.byName)throw new Error(`Received ${lt} parameters for 'by Name' request parameter structure.`);L=_.slice(Z,Me).map(Ty=>pr(Ty));break}}else{let K=_;A=p.method,L=Rl(p,K);let ae=p.numberOfParams;ie=fc.CancellationToken.is(K[ae])?K[ae]:void 0}let te=o++,le;ie&&(le=ie.onCancellationRequested(()=>{let K=b.sender.sendCancellation(Pn,te);return K===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${te}`),Promise.resolve()):K.catch(()=>{i.log(`Sending cancellation messages for id ${te} failed`)})}));let ge={jsonrpc:c,id:te,method:A,params:L};return Py(ge),typeof b.sender.enableCancellation=="function"&&b.sender.enableCancellation(ge),new Promise(async(K,ae)=>{let Z=lt=>{K(lt),b.sender.cleanup(te),le?.dispose()},Pe=lt=>{ae(lt),b.sender.cleanup(te),le?.dispose()},Me={method:A,timerStart:Date.now(),resolve:Z,reject:Pe};try{await t.write(ge),$.set(te,Me)}catch(lt){throw i.error("Sending request failed."),Me.reject(new U.ResponseError(U.ErrorCodes.MessageWriteError,lt.message?lt.message:"Unknown reason")),lt}})},onRequest:(p,_)=>{lr();let A=null;return hc.is(p)?(A=void 0,l=p):ue.string(p)?(A=null,_!==void 0&&(A=p,d.set(p,{handler:_,type:void 0}))):_!==void 0&&(A=p.method,d.set(p.method,{type:p,handler:_})),{dispose:()=>{A!==null&&(A!==void 0?d.delete(A):l=void 0)}}},hasPendingResponse:()=>$.size>0,trace:async(p,_,A)=>{let L=!1,ie=Ye.Text;A!==void 0&&(ue.boolean(A)?L=A:(L=A.sendNotification||!1,ie=A.traceFormat||Ye.Text)),g=p,w=ie,g===J.Off?V=void 0:V=_,L&&!M()&&!q()&&await Pn.sendNotification(yc.type,{value:J.toString(p)})},onError:it.event,onClose:Ot.event,onUnhandledNotification:en.event,onDispose:k.event,end:()=>{t.end()},dispose:()=>{if(q())return;X=at.Disposed,k.fire(void 0);let p=new U.ResponseError(U.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let _ of $.values())_.reject(p);$=new Map,m=new Map,Y=new Set,I=new $d.LinkedMap,ue.func(t.dispose)&&t.dispose(),ue.func(e.dispose)&&e.dispose()},listen:()=>{lr(),Dy(),X=at.Listening,e.listen(hy)},inspect:()=>{(0,zd.default)().console.log("inspect")}};return Pn.onNotification(Xi.type,p=>{if(g===J.Off||!V)return;let _=g===J.Verbose||g===J.Compact;V.log(p.message,_?p.verbose:void 0)}),Pn.onNotification(wr.type,p=>{let _=y.get(p.token);_?_(p.value):vn.fire(p)}),Pn}H.createMessageConnection=A_});var io=S(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.ProgressType=x.ProgressToken=x.createMessageConnection=x.NullLogger=x.ConnectionOptions=x.ConnectionStrategy=x.AbstractMessageBuffer=x.WriteableStreamMessageWriter=x.AbstractMessageWriter=x.MessageWriter=x.ReadableStreamMessageReader=x.AbstractMessageReader=x.MessageReader=x.SharedArrayReceiverStrategy=x.SharedArraySenderStrategy=x.CancellationToken=x.CancellationTokenSource=x.Emitter=x.Event=x.Disposable=x.LRUCache=x.Touch=x.LinkedMap=x.ParameterStructures=x.NotificationType9=x.NotificationType8=x.NotificationType7=x.NotificationType6=x.NotificationType5=x.NotificationType4=x.NotificationType3=x.NotificationType2=x.NotificationType1=x.NotificationType0=x.NotificationType=x.ErrorCodes=x.ResponseError=x.RequestType9=x.RequestType8=x.RequestType7=x.RequestType6=x.RequestType5=x.RequestType4=x.RequestType3=x.RequestType2=x.RequestType1=x.RequestType0=x.RequestType=x.Message=x.RAL=void 0;x.MessageStrategy=x.CancellationStrategy=x.CancellationSenderStrategy=x.CancellationReceiverStrategy=x.ConnectionError=x.ConnectionErrors=x.LogTraceNotification=x.SetTraceNotification=x.TraceFormat=x.TraceValues=x.Trace=void 0;var re=$a();Object.defineProperty(x,"Message",{enumerable:!0,get:function(){return re.Message}});Object.defineProperty(x,"RequestType",{enumerable:!0,get:function(){return re.RequestType}});Object.defineProperty(x,"RequestType0",{enumerable:!0,get:function(){return re.RequestType0}});Object.defineProperty(x,"RequestType1",{enumerable:!0,get:function(){return re.RequestType1}});Object.defineProperty(x,"RequestType2",{enumerable:!0,get:function(){return re.RequestType2}});Object.defineProperty(x,"RequestType3",{enumerable:!0,get:function(){return re.RequestType3}});Object.defineProperty(x,"RequestType4",{enumerable:!0,get:function(){return re.RequestType4}});Object.defineProperty(x,"RequestType5",{enumerable:!0,get:function(){return re.RequestType5}});Object.defineProperty(x,"RequestType6",{enumerable:!0,get:function(){return re.RequestType6}});Object.defineProperty(x,"RequestType7",{enumerable:!0,get:function(){return re.RequestType7}});Object.defineProperty(x,"RequestType8",{enumerable:!0,get:function(){return re.RequestType8}});Object.defineProperty(x,"RequestType9",{enumerable:!0,get:function(){return re.RequestType9}});Object.defineProperty(x,"ResponseError",{enumerable:!0,get:function(){return re.ResponseError}});Object.defineProperty(x,"ErrorCodes",{enumerable:!0,get:function(){return re.ErrorCodes}});Object.defineProperty(x,"NotificationType",{enumerable:!0,get:function(){return re.NotificationType}});Object.defineProperty(x,"NotificationType0",{enumerable:!0,get:function(){return re.NotificationType0}});Object.defineProperty(x,"NotificationType1",{enumerable:!0,get:function(){return re.NotificationType1}});Object.defineProperty(x,"NotificationType2",{enumerable:!0,get:function(){return re.NotificationType2}});Object.defineProperty(x,"NotificationType3",{enumerable:!0,get:function(){return re.NotificationType3}});Object.defineProperty(x,"NotificationType4",{enumerable:!0,get:function(){return re.NotificationType4}});Object.defineProperty(x,"NotificationType5",{enumerable:!0,get:function(){return re.NotificationType5}});Object.defineProperty(x,"NotificationType6",{enumerable:!0,get:function(){return re.NotificationType6}});Object.defineProperty(x,"NotificationType7",{enumerable:!0,get:function(){return re.NotificationType7}});Object.defineProperty(x,"NotificationType8",{enumerable:!0,get:function(){return re.NotificationType8}});Object.defineProperty(x,"NotificationType9",{enumerable:!0,get:function(){return re.NotificationType9}});Object.defineProperty(x,"ParameterStructures",{enumerable:!0,get:function(){return re.ParameterStructures}});var xc=Ya();Object.defineProperty(x,"LinkedMap",{enumerable:!0,get:function(){return xc.LinkedMap}});Object.defineProperty(x,"LRUCache",{enumerable:!0,get:function(){return xc.LRUCache}});Object.defineProperty(x,"Touch",{enumerable:!0,get:function(){return xc.Touch}});var O_=Nd();Object.defineProperty(x,"Disposable",{enumerable:!0,get:function(){return O_.Disposable}});var Kd=Ln();Object.defineProperty(x,"Event",{enumerable:!0,get:function(){return Kd.Event}});Object.defineProperty(x,"Emitter",{enumerable:!0,get:function(){return Kd.Emitter}});var Qd=Yi();Object.defineProperty(x,"CancellationTokenSource",{enumerable:!0,get:function(){return Qd.CancellationTokenSource}});Object.defineProperty(x,"CancellationToken",{enumerable:!0,get:function(){return Qd.CancellationToken}});var Jd=jd();Object.defineProperty(x,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return Jd.SharedArraySenderStrategy}});Object.defineProperty(x,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return Jd.SharedArrayReceiverStrategy}});var Pc=Ld();Object.defineProperty(x,"MessageReader",{enumerable:!0,get:function(){return Pc.MessageReader}});Object.defineProperty(x,"AbstractMessageReader",{enumerable:!0,get:function(){return Pc.AbstractMessageReader}});Object.defineProperty(x,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return Pc.ReadableStreamMessageReader}});var _c=Bd();Object.defineProperty(x,"MessageWriter",{enumerable:!0,get:function(){return _c.MessageWriter}});Object.defineProperty(x,"AbstractMessageWriter",{enumerable:!0,get:function(){return _c.AbstractMessageWriter}});Object.defineProperty(x,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return _c.WriteableStreamMessageWriter}});var q_=Hd();Object.defineProperty(x,"AbstractMessageBuffer",{enumerable:!0,get:function(){return q_.AbstractMessageBuffer}});var Ae=Gd();Object.defineProperty(x,"ConnectionStrategy",{enumerable:!0,get:function(){return Ae.ConnectionStrategy}});Object.defineProperty(x,"ConnectionOptions",{enumerable:!0,get:function(){return Ae.ConnectionOptions}});Object.defineProperty(x,"NullLogger",{enumerable:!0,get:function(){return Ae.NullLogger}});Object.defineProperty(x,"createMessageConnection",{enumerable:!0,get:function(){return Ae.createMessageConnection}});Object.defineProperty(x,"ProgressToken",{enumerable:!0,get:function(){return Ae.ProgressToken}});Object.defineProperty(x,"ProgressType",{enumerable:!0,get:function(){return Ae.ProgressType}});Object.defineProperty(x,"Trace",{enumerable:!0,get:function(){return Ae.Trace}});Object.defineProperty(x,"TraceValues",{enumerable:!0,get:function(){return Ae.TraceValues}});Object.defineProperty(x,"TraceFormat",{enumerable:!0,get:function(){return Ae.TraceFormat}});Object.defineProperty(x,"SetTraceNotification",{enumerable:!0,get:function(){return Ae.SetTraceNotification}});Object.defineProperty(x,"LogTraceNotification",{enumerable:!0,get:function(){return Ae.LogTraceNotification}});Object.defineProperty(x,"ConnectionErrors",{enumerable:!0,get:function(){return Ae.ConnectionErrors}});Object.defineProperty(x,"ConnectionError",{enumerable:!0,get:function(){return Ae.ConnectionError}});Object.defineProperty(x,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Ae.CancellationReceiverStrategy}});Object.defineProperty(x,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Ae.CancellationSenderStrategy}});Object.defineProperty(x,"CancellationStrategy",{enumerable:!0,get:function(){return Ae.CancellationStrategy}});Object.defineProperty(x,"MessageStrategy",{enumerable:!0,get:function(){return Ae.MessageStrategy}});var N_=Ft();x.RAL=N_.default});var Zd=S(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});var gt=io(),oo=class e extends gt.AbstractMessageBuffer{constructor(t="utf-8"){super(t),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return e.emptyBuffer}fromString(t,n){return new TextEncoder().encode(t)}toString(t,n){return n==="ascii"?this.asciiDecoder.decode(t):new TextDecoder(n).decode(t)}asNative(t,n){return n===void 0?t:t.slice(0,n)}allocNative(t){return new Uint8Array(t)}};oo.emptyBuffer=new Uint8Array(0);var Cc=class{constructor(t){this.socket=t,this._onData=new gt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,gt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),gt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),gt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),gt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},Sc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),gt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),gt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),gt.Disposable.create(()=>this.socket.removeEventListener("end",t))}write(t,n){if(typeof t=="string"){if(n!==void 0&&n!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${n}`);this.socket.send(t)}else this.socket.send(t);return Promise.resolve()}end(){this.socket.close()}},E_=new TextEncoder,Xd=Object.freeze({messageBuffer:Object.freeze({create:e=>new oo(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(E_.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 Cc(e),asWritableStream:e=>new Sc(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 Dc(){return Xd}(function(e){function t(){gt.RAL.install(Xd)}e.install=t})(Dc||(Dc={}));Rc.default=Dc});var dn=S(Ge=>{"use strict";var j_=Ge&&Ge.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),M_=Ge&&Ge.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&j_(t,e,n)};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.createMessageConnection=Ge.BrowserMessageWriter=Ge.BrowserMessageReader=void 0;var L_=Zd();L_.default.install();var Bn=io();M_(io(),Ge);var Tc=class extends Bn.AbstractMessageReader{constructor(t){super(),this._onData=new Bn.Emitter,this._messageListener=n=>{this._onData.fire(n.data)},t.addEventListener("error",n=>this.fireError(n)),t.onmessage=this._messageListener}listen(t){return this._onData.event(t)}};Ge.BrowserMessageReader=Tc;var wc=class extends Bn.AbstractMessageWriter{constructor(t){super(),this.port=t,this.errorCount=0,t.addEventListener("error",n=>this.fireError(n))}write(t){try{return this.port.postMessage(t),Promise.resolve()}catch(n){return this.handleError(n,t),Promise.reject(n)}}handleError(t,n){this.errorCount++,this.fireError(t,n,this.errorCount)}end(){}};Ge.BrowserMessageWriter=wc;function I_(e,t,n,r){return n===void 0&&(n=Bn.NullLogger),Bn.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Bn.createMessageConnection)(e,t,n,r)}Ge.createMessageConnection=I_});var kc=S((HR,ef)=>{"use strict";ef.exports=dn()});var mo={};_s(mo,{AnnotatedTextEdit:()=>wt,ChangeAnnotation:()=>fn,ChangeAnnotationIdentifier:()=>Oe,CodeAction:()=>lu,CodeActionContext:()=>uu,CodeActionKind:()=>cu,CodeActionTriggerKind:()=>Lr,CodeDescription:()=>Fc,CodeLens:()=>pu,Color:()=>ao,ColorInformation:()=>Nc,ColorPresentation:()=>Ec,Command:()=>gn,CompletionItem:()=>Qc,CompletionItemKind:()=>zc,CompletionItemLabelDetails:()=>Kc,CompletionItemTag:()=>Vc,CompletionList:()=>Jc,CreateFile:()=>zn,DeleteFile:()=>Vn,Diagnostic:()=>Nr,DiagnosticRelatedInformation:()=>co,DiagnosticSeverity:()=>Lc,DiagnosticTag:()=>Ic,DocumentHighlight:()=>nu,DocumentHighlightKind:()=>tu,DocumentLink:()=>fu,DocumentSymbol:()=>au,DocumentUri:()=>Ac,EOL:()=>F_,FoldingRange:()=>Mc,FoldingRangeKind:()=>jc,FormattingOptions:()=>du,Hover:()=>Xc,InlayHint:()=>_u,InlayHintKind:()=>fo,InlayHintLabelPart:()=>go,InlineCompletionContext:()=>wu,InlineCompletionItem:()=>Su,InlineCompletionList:()=>Du,InlineCompletionTriggerKind:()=>Ru,InlineValueContext:()=>Pu,InlineValueEvaluatableExpression:()=>xu,InlineValueText:()=>bu,InlineValueVariableLookup:()=>vu,InsertReplaceEdit:()=>Yc,InsertTextFormat:()=>$c,InsertTextMode:()=>Gc,Location:()=>qr,LocationLink:()=>qc,MarkedString:()=>Mr,MarkupContent:()=>Yn,MarkupKind:()=>po,OptionalVersionedTextDocumentIdentifier:()=>jr,ParameterInformation:()=>Zc,Position:()=>Xe,Range:()=>pe,RenameFile:()=>$n,SelectedCompletionInfo:()=>Tu,SelectionRange:()=>gu,SemanticTokenModifiers:()=>hu,SemanticTokenTypes:()=>mu,SemanticTokens:()=>yu,SignatureInformation:()=>eu,StringValue:()=>Cu,SymbolInformation:()=>ou,SymbolKind:()=>ru,SymbolTag:()=>iu,TextDocument:()=>Au,TextDocumentEdit:()=>Er,TextDocumentIdentifier:()=>Wc,TextDocumentItem:()=>Hc,TextEdit:()=>mt,URI:()=>so,VersionedTextDocumentIdentifier:()=>Bc,WorkspaceChange:()=>Uc,WorkspaceEdit:()=>uo,WorkspaceFolder:()=>ku,WorkspaceSymbol:()=>su,integer:()=>Oc,uinteger:()=>Or});var Ac,so,Oc,Or,Xe,pe,qr,qc,ao,Nc,Ec,jc,Mc,co,Lc,Ic,Fc,Nr,gn,mt,fn,Oe,wt,Er,zn,$n,Vn,uo,Hn,lo,Uc,Wc,Bc,jr,Hc,po,Yn,zc,$c,Vc,Yc,Gc,Kc,Qc,Jc,Mr,Xc,Zc,eu,tu,nu,ru,iu,ou,su,au,cu,Lr,uu,lu,pu,du,fu,gu,mu,hu,yu,bu,vu,xu,Pu,fo,go,_u,Cu,Su,Du,Ru,Tu,wu,ku,F_,Au,Ou,f,ho=Tl(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})(Ac||(Ac={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(so||(so={}));(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})(Oc||(Oc={}));(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})(Or||(Or={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Or.MAX_VALUE),i===Number.MAX_VALUE&&(i=Or.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.line)&&f.uinteger(i.character)}e.is=n})(Xe||(Xe={}));(function(e){function t(r,i,o,s){if(f.uinteger(r)&&f.uinteger(i)&&f.uinteger(o)&&f.uinteger(s))return{start:Xe.create(r,i),end:Xe.create(o,s)};if(Xe.is(r)&&Xe.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${o}, ${s}]`)}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&Xe.is(i.start)&&Xe.is(i.end)}e.is=n})(pe||(pe={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&(f.string(i.uri)||f.undefined(i.uri))}e.is=n})(qr||(qr={}));(function(e){function t(r,i,o,s){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.targetRange)&&f.string(i.targetUri)&&pe.is(i.targetSelectionRange)&&(pe.is(i.originSelectionRange)||f.undefined(i.originSelectionRange))}e.is=n})(qc||(qc={}));(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})(ao||(ao={}));(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&ao.is(i.color)}e.is=n})(Nc||(Nc={}));(function(e){function t(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.undefined(i.textEdit)||mt.is(i))&&(f.undefined(i.additionalTextEdits)||f.typedArray(i.additionalTextEdits,mt.is))}e.is=n})(Ec||(Ec={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(jc||(jc={}));(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})(Mc||(Mc={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&qr.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})(Lc||(Lc={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(Ic||(Ic={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(Fc||(Fc={}));(function(e){function t(r,i,o,s,a,c){let l={range:r,message:i};return f.defined(o)&&(l.severity=o),f.defined(s)&&(l.code=s),f.defined(a)&&(l.source=a),f.defined(c)&&(l.relatedInformation=c),l}e.create=t;function n(r){var i;let o=r;return f.defined(o)&&pe.is(o.range)&&f.string(o.message)&&(f.number(o.severity)||f.undefined(o.severity))&&(f.integer(o.code)||f.string(o.code)||f.undefined(o.code))&&(f.undefined(o.codeDescription)||f.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(f.string(o.source)||f.undefined(o.source))&&(f.undefined(o.relatedInformation)||f.typedArray(o.relatedInformation,co.is))}e.is=n})(Nr||(Nr={}));(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})(gn||(gn={}));(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function n(o,s){return{range:{start:o,end:o},newText:s}}e.insert=n;function r(o){return{range:o,newText:""}}e.del=r;function i(o){let s=o;return f.objectLiteral(s)&&f.string(s.newText)&&pe.is(s.range)}e.is=i})(mt||(mt={}));(function(e){function t(r,i,o){let s={label:r};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(f.string(i.description)||i.description===void 0)}e.is=n})(fn||(fn={}));(function(e){function t(n){let r=n;return f.string(r)}e.is=t})(Oe||(Oe={}));(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function n(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=n;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function i(o){let s=o;return mt.is(s)&&(fn.is(s.annotationId)||Oe.is(s.annotationId))}e.is=i})(wt||(wt={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&jr.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Er||(Er={}));(function(e){function t(r,i,o){let s={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&f.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||f.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||f.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})(zn||(zn={}));(function(e){function t(r,i,o,s){let a={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&f.string(i.oldUri)&&f.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||f.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||f.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})($n||($n={}));(function(e){function t(r,i,o){let s={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&f.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||f.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||f.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})(Vn||(Vn={}));(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>f.string(i.kind)?zn.is(i)||$n.is(i)||Vn.is(i):Er.is(i)))}e.is=t})(uo||(uo={}));Hn=class{constructor(t,n){this.edits=t,this.changeAnnotations=n}insert(t,n,r){let i,o;if(r===void 0?i=mt.insert(t,n):Oe.is(r)?(o=r,i=wt.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=wt.insert(t,n,o)),this.edits.push(i),o!==void 0)return o}replace(t,n,r){let i,o;if(r===void 0?i=mt.replace(t,n):Oe.is(r)?(o=r,i=wt.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=wt.replace(t,n,o)),this.edits.push(i),o!==void 0)return o}delete(t,n){let r,i;if(n===void 0?r=mt.del(t):Oe.is(n)?(i=n,r=wt.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=wt.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.")}},lo=class{constructor(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(t,n){let r;if(Oe.is(t)?r=t:(r=this.nextId(),n=t),this._annotations[r]!==void 0)throw new Error(`Id ${r} is already in use.`);if(n===void 0)throw new Error(`No annotation provided for id ${r}`);return this._annotations[r]=n,this._size++,r}nextId(){return this._counter++,this._counter.toString()}},Uc=class{constructor(t){this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new lo(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(n=>{if(Er.is(n)){let r=new Hn(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new Hn(t.changes[n]);this._textEditChanges[n]=r})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(t){if(jr.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n={uri:t.uri,version:t.version},r=this._textEditChanges[n.uri];if(!r){let i=[],o={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(o),r=new Hn(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let n=this._textEditChanges[t];if(!n){let r=[];this._workspaceEdit.changes[t]=r,n=new Hn(r),this._textEditChanges[t]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new lo,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;fn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=zn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=zn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}renameFile(t,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let o;fn.is(r)||Oe.is(r)?o=r:i=r;let s,a;if(o===void 0?s=$n.create(t,n,i):(a=Oe.is(o)?o:this._changeAnnotations.manage(o),s=$n.create(t,n,i,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a}deleteFile(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;fn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Vn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=Vn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}};(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)}e.is=n})(Wc||(Wc={}));(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})(Bc||(Bc={}));(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})(jr||(jr={}));(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})(Hc||(Hc={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(po||(po={}));(function(e){function t(n){let r=n;return f.objectLiteral(n)&&po.is(r.kind)&&f.string(r.value)}e.is=t})(Yn||(Yn={}));(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(zc||(zc={}));(function(e){e.PlainText=1,e.Snippet=2})($c||($c={}));(function(e){e.Deprecated=1})(Vc||(Vc={}));(function(e){function t(r,i,o){return{newText:r,insert:i,replace:o}}e.create=t;function n(r){let i=r;return i&&f.string(i.newText)&&pe.is(i.insert)&&pe.is(i.replace)}e.is=n})(Yc||(Yc={}));(function(e){e.asIs=1,e.adjustIndentation=2})(Gc||(Gc={}));(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})(Kc||(Kc={}));(function(e){function t(n){return{label:n}}e.create=t})(Qc||(Qc={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(Jc||(Jc={}));(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})(Mr||(Mr={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(Yn.is(r.contents)||Mr.is(r.contents)||f.typedArray(r.contents,Mr.is))&&(n.range===void 0||pe.is(n.range))}e.is=t})(Xc||(Xc={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Zc||(Zc={}));(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})(eu||(eu={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(tu||(tu={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(nu||(nu={}));(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})(ru||(ru={}));(function(e){e.Deprecated=1})(iu||(iu={}));(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})(ou||(ou={}));(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})(su||(su={}));(function(e){function t(r,i,o,s,a,c){let l={name:r,detail:i,kind:o,range:s,selectionRange:a};return c!==void 0&&(l.children=c),l}e.create=t;function n(r){let i=r;return i&&f.string(i.name)&&f.number(i.kind)&&pe.is(i.range)&&pe.is(i.selectionRange)&&(i.detail===void 0||f.string(i.detail))&&(i.deprecated===void 0||f.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(au||(au={}));(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"})(cu||(cu={}));(function(e){e.Invoked=1,e.Automatic=2})(Lr||(Lr={}));(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,Nr.is)&&(i.only===void 0||f.typedArray(i.only,f.string))&&(i.triggerKind===void 0||i.triggerKind===Lr.Invoked||i.triggerKind===Lr.Automatic)}e.is=n})(uu||(uu={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):gn.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,Nr.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||gn.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||uo.is(i.edit))}e.is=n})(lu||(lu={}));(function(e){function t(r,i){let o={range:r};return f.defined(i)&&(o.data=i),o}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(i.range)&&(f.undefined(i.command)||gn.is(i.command))}e.is=n})(pu||(pu={}));(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.uinteger(i.tabSize)&&f.boolean(i.insertSpaces)}e.is=n})(du||(du={}));(function(e){function t(r,i,o){return{range:r,target:i,data:o}}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(i.range)&&(f.undefined(i.target)||f.string(i.target))}e.is=n})(fu||(fu={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(gu||(gu={}));(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"})(mu||(mu={}));(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"})(hu||(hu={}));(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})(yu||(yu={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&f.string(i.text)}e.is=n})(bu||(bu={}));(function(e){function t(r,i,o){return{range:r,variableName:i,caseSensitiveLookup:o}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&f.boolean(i.caseSensitiveLookup)&&(f.string(i.variableName)||i.variableName===void 0)}e.is=n})(vu||(vu={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&(f.string(i.expression)||i.expression===void 0)}e.is=n})(xu||(xu={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(r.stoppedLocation)}e.is=n})(Pu||(Pu={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(fo||(fo={}));(function(e){function t(r){return{value:r}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&(i.tooltip===void 0||f.string(i.tooltip)||Yn.is(i.tooltip))&&(i.location===void 0||qr.is(i.location))&&(i.command===void 0||gn.is(i.command))}e.is=n})(go||(go={}));(function(e){function t(r,i,o){let s={position:r,label:i};return o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&Xe.is(i.position)&&(f.string(i.label)||f.typedArray(i.label,go.is))&&(i.kind===void 0||fo.is(i.kind))&&i.textEdits===void 0||f.typedArray(i.textEdits,mt.is)&&(i.tooltip===void 0||f.string(i.tooltip)||Yn.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(_u||(_u={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(Cu||(Cu={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(Su||(Su={}));(function(e){function t(n){return{items:n}}e.create=t})(Du||(Du={}));(function(e){e.Invoked=0,e.Automatic=1})(Ru||(Ru={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(Tu||(Tu={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(wu||(wu={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&so.is(r.uri)&&f.string(r.name)}e.is=t})(ku||(ku={}));F_=[`
66
66
  `,`\r
67
67
  `,"\r"];(function(e){function t(o,s,a,c){return new Ou(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}})(Au||(Au={}));Ou=class{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,r=!0;for(let i=0;i<n.length;i++){r&&(t.push(i),r=!1);let o=n.charAt(i);r=o==="\r"||o===`
68
68
  `,o==="\r"&&i+1<n.length&&n.charAt(i+1)===`
69
- `&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Xe.create(0,t);for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return Xe.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function a(y,R,I){return t.call(y)==="[object Number]"&&R<=y&&y<=I}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function l(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=l;function d(y){return t.call(y)==="[object Function]"}e.func=d;function h(y){return y!==null&&typeof y=="object"}e.objectLiteral=h;function v(y,R){return Array.isArray(y)&&y.every(R)}e.typedArray=v})(f||(f={}))});var se=S(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.ProtocolNotificationType=He.ProtocolNotificationType0=He.ProtocolRequestType=He.ProtocolRequestType0=He.RegistrationType=He.MessageDirection=void 0;var Gn=dn(),tf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(tf||(He.MessageDirection=tf={}));var qu=class{constructor(t){this.method=t}};He.RegistrationType=qu;var Nu=class extends Gn.RequestType0{constructor(t){super(t)}};He.ProtocolRequestType0=Nu;var Eu=class extends Gn.RequestType{constructor(t){super(t,Gn.ParameterStructures.byName)}};He.ProtocolRequestType=Eu;var ju=class extends Gn.NotificationType0{constructor(t){super(t)}};He.ProtocolNotificationType0=ju;var Mu=class extends Gn.NotificationType{constructor(t){super(t,Gn.ParameterStructures.byName)}};He.ProtocolNotificationType=Mu});var yo=S(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.objectLiteral=ve.typedArray=ve.stringArray=ve.array=ve.func=ve.error=ve.number=ve.string=ve.boolean=void 0;function U_(e){return e===!0||e===!1}ve.boolean=U_;function nf(e){return typeof e=="string"||e instanceof String}ve.string=nf;function W_(e){return typeof e=="number"||e instanceof Number}ve.number=W_;function B_(e){return e instanceof Error}ve.error=B_;function H_(e){return typeof e=="function"}ve.func=H_;function rf(e){return Array.isArray(e)}ve.array=rf;function z_(e){return rf(e)&&e.every(t=>nf(t))}ve.stringArray=z_;function $_(e,t){return Array.isArray(e)&&e.every(t)}ve.typedArray=$_;function V_(e){return e!==null&&typeof e=="object"}ve.objectLiteral=V_});var af=S(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.ImplementationRequest=void 0;var of=se(),sf;(function(e){e.method="textDocument/implementation",e.messageDirection=of.MessageDirection.clientToServer,e.type=new of.ProtocolRequestType(e.method)})(sf||(bo.ImplementationRequest=sf={}))});var lf=S(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.TypeDefinitionRequest=void 0;var cf=se(),uf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=cf.MessageDirection.clientToServer,e.type=new cf.ProtocolRequestType(e.method)})(uf||(vo.TypeDefinitionRequest=uf={}))});var ff=S(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.DidChangeWorkspaceFoldersNotification=Kn.WorkspaceFoldersRequest=void 0;var xo=se(),pf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=xo.MessageDirection.serverToClient,e.type=new xo.ProtocolRequestType0(e.method)})(pf||(Kn.WorkspaceFoldersRequest=pf={}));var df;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=xo.MessageDirection.clientToServer,e.type=new xo.ProtocolNotificationType(e.method)})(df||(Kn.DidChangeWorkspaceFoldersNotification=df={}))});var hf=S(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.ConfigurationRequest=void 0;var gf=se(),mf;(function(e){e.method="workspace/configuration",e.messageDirection=gf.MessageDirection.serverToClient,e.type=new gf.ProtocolRequestType(e.method)})(mf||(Po.ConfigurationRequest=mf={}))});var vf=S(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.ColorPresentationRequest=Qn.DocumentColorRequest=void 0;var _o=se(),yf;(function(e){e.method="textDocument/documentColor",e.messageDirection=_o.MessageDirection.clientToServer,e.type=new _o.ProtocolRequestType(e.method)})(yf||(Qn.DocumentColorRequest=yf={}));var bf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=_o.MessageDirection.clientToServer,e.type=new _o.ProtocolRequestType(e.method)})(bf||(Qn.ColorPresentationRequest=bf={}))});var _f=S(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.FoldingRangeRefreshRequest=Jn.FoldingRangeRequest=void 0;var Co=se(),xf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=Co.MessageDirection.clientToServer,e.type=new Co.ProtocolRequestType(e.method)})(xf||(Jn.FoldingRangeRequest=xf={}));var Pf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=Co.MessageDirection.serverToClient,e.type=new Co.ProtocolRequestType0(e.method)})(Pf||(Jn.FoldingRangeRefreshRequest=Pf={}))});var Df=S(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.DeclarationRequest=void 0;var Cf=se(),Sf;(function(e){e.method="textDocument/declaration",e.messageDirection=Cf.MessageDirection.clientToServer,e.type=new Cf.ProtocolRequestType(e.method)})(Sf||(So.DeclarationRequest=Sf={}))});var wf=S(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.SelectionRangeRequest=void 0;var Rf=se(),Tf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Rf.MessageDirection.clientToServer,e.type=new Rf.ProtocolRequestType(e.method)})(Tf||(Do.SelectionRangeRequest=Tf={}))});var qf=S(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.WorkDoneProgressCancelNotification=Bt.WorkDoneProgressCreateRequest=Bt.WorkDoneProgress=void 0;var Y_=dn(),Ro=se(),kf;(function(e){e.type=new Y_.ProgressType;function t(n){return n===e.type}e.is=t})(kf||(Bt.WorkDoneProgress=kf={}));var Af;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Ro.MessageDirection.serverToClient,e.type=new Ro.ProtocolRequestType(e.method)})(Af||(Bt.WorkDoneProgressCreateRequest=Af={}));var Of;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Ro.MessageDirection.clientToServer,e.type=new Ro.ProtocolNotificationType(e.method)})(Of||(Bt.WorkDoneProgressCancelNotification=Of={}))});var Mf=S(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.CallHierarchyOutgoingCallsRequest=Ht.CallHierarchyIncomingCallsRequest=Ht.CallHierarchyPrepareRequest=void 0;var Xn=se(),Nf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(Nf||(Ht.CallHierarchyPrepareRequest=Nf={}));var Ef;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(Ef||(Ht.CallHierarchyIncomingCallsRequest=Ef={}));var jf;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(jf||(Ht.CallHierarchyOutgoingCallsRequest=jf={}))});var Bf=S(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.SemanticTokensRefreshRequest=ze.SemanticTokensRangeRequest=ze.SemanticTokensDeltaRequest=ze.SemanticTokensRequest=ze.SemanticTokensRegistrationType=ze.TokenFormat=void 0;var wt=se(),Lf;(function(e){e.Relative="relative"})(Lf||(ze.TokenFormat=Lf={}));var Ir;(function(e){e.method="textDocument/semanticTokens",e.type=new wt.RegistrationType(e.method)})(Ir||(ze.SemanticTokensRegistrationType=Ir={}));var If;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=wt.MessageDirection.clientToServer,e.type=new wt.ProtocolRequestType(e.method),e.registrationMethod=Ir.method})(If||(ze.SemanticTokensRequest=If={}));var Ff;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=wt.MessageDirection.clientToServer,e.type=new wt.ProtocolRequestType(e.method),e.registrationMethod=Ir.method})(Ff||(ze.SemanticTokensDeltaRequest=Ff={}));var Uf;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=wt.MessageDirection.clientToServer,e.type=new wt.ProtocolRequestType(e.method),e.registrationMethod=Ir.method})(Uf||(ze.SemanticTokensRangeRequest=Uf={}));var Wf;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=wt.MessageDirection.serverToClient,e.type=new wt.ProtocolRequestType0(e.method)})(Wf||(ze.SemanticTokensRefreshRequest=Wf={}))});var $f=S(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.ShowDocumentRequest=void 0;var Hf=se(),zf;(function(e){e.method="window/showDocument",e.messageDirection=Hf.MessageDirection.serverToClient,e.type=new Hf.ProtocolRequestType(e.method)})(zf||(To.ShowDocumentRequest=zf={}))});var Gf=S(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.LinkedEditingRangeRequest=void 0;var Vf=se(),Yf;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=Vf.MessageDirection.clientToServer,e.type=new Vf.ProtocolRequestType(e.method)})(Yf||(wo.LinkedEditingRangeRequest=Yf={}))});var ng=S(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.WillDeleteFilesRequest=Ee.DidDeleteFilesNotification=Ee.DidRenameFilesNotification=Ee.WillRenameFilesRequest=Ee.DidCreateFilesNotification=Ee.WillCreateFilesRequest=Ee.FileOperationPatternKind=void 0;var Ze=se(),Kf;(function(e){e.file="file",e.folder="folder"})(Kf||(Ee.FileOperationPatternKind=Kf={}));var Qf;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(Qf||(Ee.WillCreateFilesRequest=Qf={}));var Jf;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Jf||(Ee.DidCreateFilesNotification=Jf={}));var Xf;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(Xf||(Ee.WillRenameFilesRequest=Xf={}));var Zf;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Zf||(Ee.DidRenameFilesNotification=Zf={}));var eg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(eg||(Ee.DidDeleteFilesNotification=eg={}));var tg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(tg||(Ee.WillDeleteFilesRequest=tg={}))});var ag=S(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.MonikerRequest=zt.MonikerKind=zt.UniquenessLevel=void 0;var rg=se(),ig;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(ig||(zt.UniquenessLevel=ig={}));var og;(function(e){e.$import="import",e.$export="export",e.local="local"})(og||(zt.MonikerKind=og={}));var sg;(function(e){e.method="textDocument/moniker",e.messageDirection=rg.MessageDirection.clientToServer,e.type=new rg.ProtocolRequestType(e.method)})(sg||(zt.MonikerRequest=sg={}))});var pg=S($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.TypeHierarchySubtypesRequest=$t.TypeHierarchySupertypesRequest=$t.TypeHierarchyPrepareRequest=void 0;var Zn=se(),cg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(cg||($t.TypeHierarchyPrepareRequest=cg={}));var ug;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(ug||($t.TypeHierarchySupertypesRequest=ug={}));var lg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(lg||($t.TypeHierarchySubtypesRequest=lg={}))});var gg=S(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.InlineValueRefreshRequest=er.InlineValueRequest=void 0;var ko=se(),dg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=ko.MessageDirection.clientToServer,e.type=new ko.ProtocolRequestType(e.method)})(dg||(er.InlineValueRequest=dg={}));var fg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=ko.MessageDirection.serverToClient,e.type=new ko.ProtocolRequestType0(e.method)})(fg||(er.InlineValueRefreshRequest=fg={}))});var bg=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.InlayHintRefreshRequest=Vt.InlayHintResolveRequest=Vt.InlayHintRequest=void 0;var tr=se(),mg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(mg||(Vt.InlayHintRequest=mg={}));var hg;(function(e){e.method="inlayHint/resolve",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(hg||(Vt.InlayHintResolveRequest=hg={}));var yg;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=tr.MessageDirection.serverToClient,e.type=new tr.ProtocolRequestType0(e.method)})(yg||(Vt.InlayHintRefreshRequest=yg={}))});var Dg=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DiagnosticRefreshRequest=et.WorkspaceDiagnosticRequest=et.DocumentDiagnosticRequest=et.DocumentDiagnosticReportKind=et.DiagnosticServerCancellationData=void 0;var Sg=dn(),G_=yo(),nr=se(),vg;(function(e){function t(n){let r=n;return r&&G_.boolean(r.retriggerRequest)}e.is=t})(vg||(et.DiagnosticServerCancellationData=vg={}));var xg;(function(e){e.Full="full",e.Unchanged="unchanged"})(xg||(et.DocumentDiagnosticReportKind=xg={}));var Pg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method),e.partialResult=new Sg.ProgressType})(Pg||(et.DocumentDiagnosticRequest=Pg={}));var _g;(function(e){e.method="workspace/diagnostic",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method),e.partialResult=new Sg.ProgressType})(_g||(et.WorkspaceDiagnosticRequest=_g={}));var Cg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=nr.MessageDirection.serverToClient,e.type=new nr.ProtocolRequestType0(e.method)})(Cg||(et.DiagnosticRefreshRequest=Cg={}))});var qg=S(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.DidCloseNotebookDocumentNotification=de.DidSaveNotebookDocumentNotification=de.DidChangeNotebookDocumentNotification=de.NotebookCellArrayChange=de.DidOpenNotebookDocumentNotification=de.NotebookDocumentSyncRegistrationType=de.NotebookDocument=de.NotebookCell=de.ExecutionSummary=de.NotebookCellKind=void 0;var Fr=(ho(),Zr(mo)),ct=yo(),ht=se(),Lu;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Lu||(de.NotebookCellKind=Lu={}));var Iu;(function(e){function t(i,o){let s={executionOrder:i};return(o===!0||o===!1)&&(s.success=o),s}e.create=t;function n(i){let o=i;return ct.objectLiteral(o)&&Fr.uinteger.is(o.executionOrder)&&(o.success===void 0||ct.boolean(o.success))}e.is=n;function r(i,o){return i===o?!0:i==null||o===null||o===void 0?!1:i.executionOrder===o.executionOrder&&i.success===o.success}e.equals=r})(Iu||(de.ExecutionSummary=Iu={}));var Ao;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ct.objectLiteral(s)&&Lu.is(s.kind)&&Fr.DocumentUri.is(s.document)&&(s.metadata===void 0||ct.objectLiteral(s.metadata))}e.is=n;function r(o,s){let a=new Set;return o.document!==s.document&&a.add("document"),o.kind!==s.kind&&a.add("kind"),o.executionSummary!==s.executionSummary&&a.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!i(o.metadata,s.metadata)&&a.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!Iu.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}e.diff=r;function i(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let a=Array.isArray(o),c=Array.isArray(s);if(a!==c)return!1;if(a&&c){if(o.length!==s.length)return!1;for(let l=0;l<o.length;l++)if(!i(o[l],s[l]))return!1}if(ct.objectLiteral(o)&&ct.objectLiteral(s)){let l=Object.keys(o),d=Object.keys(s);if(l.length!==d.length||(l.sort(),d.sort(),!i(l,d)))return!1;for(let h=0;h<l.length;h++){let v=l[h];if(!i(o[v],s[v]))return!1}}return!0}})(Ao||(de.NotebookCell=Ao={}));var Rg;(function(e){function t(r,i,o,s){return{uri:r,notebookType:i,version:o,cells:s}}e.create=t;function n(r){let i=r;return ct.objectLiteral(i)&&ct.string(i.uri)&&Fr.integer.is(i.version)&&ct.typedArray(i.cells,Ao.is)}e.is=n})(Rg||(de.NotebookDocument=Rg={}));var rr;(function(e){e.method="notebookDocument/sync",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.RegistrationType(e.method)})(rr||(de.NotebookDocumentSyncRegistrationType=rr={}));var Tg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Tg||(de.DidOpenNotebookDocumentNotification=Tg={}));var wg;(function(e){function t(r){let i=r;return ct.objectLiteral(i)&&Fr.uinteger.is(i.start)&&Fr.uinteger.is(i.deleteCount)&&(i.cells===void 0||ct.typedArray(i.cells,Ao.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})(wg||(de.NotebookCellArrayChange=wg={}));var kg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(kg||(de.DidChangeNotebookDocumentNotification=kg={}));var Ag;(function(e){e.method="notebookDocument/didSave",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Ag||(de.DidSaveNotebookDocumentNotification=Ag={}));var Og;(function(e){e.method="notebookDocument/didClose",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Og||(de.DidCloseNotebookDocumentNotification=Og={}))});var jg=S(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.InlineCompletionRequest=void 0;var Ng=se(),Eg;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=Ng.MessageDirection.clientToServer,e.type=new Ng.ProtocolRequestType(e.method)})(Eg||(Oo.InlineCompletionRequest=Eg={}))});var Gm=S(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.WorkspaceSymbolRequest=u.CodeActionResolveRequest=u.CodeActionRequest=u.DocumentSymbolRequest=u.DocumentHighlightRequest=u.ReferencesRequest=u.DefinitionRequest=u.SignatureHelpRequest=u.SignatureHelpTriggerKind=u.HoverRequest=u.CompletionResolveRequest=u.CompletionRequest=u.CompletionTriggerKind=u.PublishDiagnosticsNotification=u.WatchKind=u.RelativePattern=u.FileChangeType=u.DidChangeWatchedFilesNotification=u.WillSaveTextDocumentWaitUntilRequest=u.WillSaveTextDocumentNotification=u.TextDocumentSaveReason=u.DidSaveTextDocumentNotification=u.DidCloseTextDocumentNotification=u.DidChangeTextDocumentNotification=u.TextDocumentContentChangeEvent=u.DidOpenTextDocumentNotification=u.TextDocumentSyncKind=u.TelemetryEventNotification=u.LogMessageNotification=u.ShowMessageRequest=u.ShowMessageNotification=u.MessageType=u.DidChangeConfigurationNotification=u.ExitNotification=u.ShutdownRequest=u.InitializedNotification=u.InitializeErrorCodes=u.InitializeRequest=u.WorkDoneProgressOptions=u.TextDocumentRegistrationOptions=u.StaticRegistrationOptions=u.PositionEncodingKind=u.FailureHandlingKind=u.ResourceOperationKind=u.UnregistrationRequest=u.RegistrationRequest=u.DocumentSelector=u.NotebookCellTextDocumentFilter=u.NotebookDocumentFilter=u.TextDocumentFilter=void 0;u.MonikerRequest=u.MonikerKind=u.UniquenessLevel=u.WillDeleteFilesRequest=u.DidDeleteFilesNotification=u.WillRenameFilesRequest=u.DidRenameFilesNotification=u.WillCreateFilesRequest=u.DidCreateFilesNotification=u.FileOperationPatternKind=u.LinkedEditingRangeRequest=u.ShowDocumentRequest=u.SemanticTokensRegistrationType=u.SemanticTokensRefreshRequest=u.SemanticTokensRangeRequest=u.SemanticTokensDeltaRequest=u.SemanticTokensRequest=u.TokenFormat=u.CallHierarchyPrepareRequest=u.CallHierarchyOutgoingCallsRequest=u.CallHierarchyIncomingCallsRequest=u.WorkDoneProgressCancelNotification=u.WorkDoneProgressCreateRequest=u.WorkDoneProgress=u.SelectionRangeRequest=u.DeclarationRequest=u.FoldingRangeRefreshRequest=u.FoldingRangeRequest=u.ColorPresentationRequest=u.DocumentColorRequest=u.ConfigurationRequest=u.DidChangeWorkspaceFoldersNotification=u.WorkspaceFoldersRequest=u.TypeDefinitionRequest=u.ImplementationRequest=u.ApplyWorkspaceEditRequest=u.ExecuteCommandRequest=u.PrepareRenameRequest=u.RenameRequest=u.PrepareSupportDefaultBehavior=u.DocumentOnTypeFormattingRequest=u.DocumentRangesFormattingRequest=u.DocumentRangeFormattingRequest=u.DocumentFormattingRequest=u.DocumentLinkResolveRequest=u.DocumentLinkRequest=u.CodeLensRefreshRequest=u.CodeLensResolveRequest=u.CodeLensRequest=u.WorkspaceSymbolResolveRequest=void 0;u.InlineCompletionRequest=u.DidCloseNotebookDocumentNotification=u.DidSaveNotebookDocumentNotification=u.DidChangeNotebookDocumentNotification=u.NotebookCellArrayChange=u.DidOpenNotebookDocumentNotification=u.NotebookDocumentSyncRegistrationType=u.NotebookDocument=u.NotebookCell=u.ExecutionSummary=u.NotebookCellKind=u.DiagnosticRefreshRequest=u.WorkspaceDiagnosticRequest=u.DocumentDiagnosticRequest=u.DocumentDiagnosticReportKind=u.DiagnosticServerCancellationData=u.InlayHintRefreshRequest=u.InlayHintResolveRequest=u.InlayHintRequest=u.InlineValueRefreshRequest=u.InlineValueRequest=u.TypeHierarchySupertypesRequest=u.TypeHierarchySubtypesRequest=u.TypeHierarchyPrepareRequest=void 0;var T=se(),Mg=(ho(),Zr(mo)),Te=yo(),K_=af();Object.defineProperty(u,"ImplementationRequest",{enumerable:!0,get:function(){return K_.ImplementationRequest}});var Q_=lf();Object.defineProperty(u,"TypeDefinitionRequest",{enumerable:!0,get:function(){return Q_.TypeDefinitionRequest}});var zm=ff();Object.defineProperty(u,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return zm.WorkspaceFoldersRequest}});Object.defineProperty(u,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return zm.DidChangeWorkspaceFoldersNotification}});var J_=hf();Object.defineProperty(u,"ConfigurationRequest",{enumerable:!0,get:function(){return J_.ConfigurationRequest}});var $m=vf();Object.defineProperty(u,"DocumentColorRequest",{enumerable:!0,get:function(){return $m.DocumentColorRequest}});Object.defineProperty(u,"ColorPresentationRequest",{enumerable:!0,get:function(){return $m.ColorPresentationRequest}});var Vm=_f();Object.defineProperty(u,"FoldingRangeRequest",{enumerable:!0,get:function(){return Vm.FoldingRangeRequest}});Object.defineProperty(u,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return Vm.FoldingRangeRefreshRequest}});var X_=Df();Object.defineProperty(u,"DeclarationRequest",{enumerable:!0,get:function(){return X_.DeclarationRequest}});var Z_=wf();Object.defineProperty(u,"SelectionRangeRequest",{enumerable:!0,get:function(){return Z_.SelectionRangeRequest}});var Hu=qf();Object.defineProperty(u,"WorkDoneProgress",{enumerable:!0,get:function(){return Hu.WorkDoneProgress}});Object.defineProperty(u,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Hu.WorkDoneProgressCreateRequest}});Object.defineProperty(u,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Hu.WorkDoneProgressCancelNotification}});var zu=Mf();Object.defineProperty(u,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return zu.CallHierarchyIncomingCallsRequest}});Object.defineProperty(u,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return zu.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(u,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return zu.CallHierarchyPrepareRequest}});var ir=Bf();Object.defineProperty(u,"TokenFormat",{enumerable:!0,get:function(){return ir.TokenFormat}});Object.defineProperty(u,"SemanticTokensRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRequest}});Object.defineProperty(u,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ir.SemanticTokensDeltaRequest}});Object.defineProperty(u,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRangeRequest}});Object.defineProperty(u,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRefreshRequest}});Object.defineProperty(u,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ir.SemanticTokensRegistrationType}});var eC=$f();Object.defineProperty(u,"ShowDocumentRequest",{enumerable:!0,get:function(){return eC.ShowDocumentRequest}});var tC=Gf();Object.defineProperty(u,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return tC.LinkedEditingRangeRequest}});var mn=ng();Object.defineProperty(u,"FileOperationPatternKind",{enumerable:!0,get:function(){return mn.FileOperationPatternKind}});Object.defineProperty(u,"DidCreateFilesNotification",{enumerable:!0,get:function(){return mn.DidCreateFilesNotification}});Object.defineProperty(u,"WillCreateFilesRequest",{enumerable:!0,get:function(){return mn.WillCreateFilesRequest}});Object.defineProperty(u,"DidRenameFilesNotification",{enumerable:!0,get:function(){return mn.DidRenameFilesNotification}});Object.defineProperty(u,"WillRenameFilesRequest",{enumerable:!0,get:function(){return mn.WillRenameFilesRequest}});Object.defineProperty(u,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return mn.DidDeleteFilesNotification}});Object.defineProperty(u,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return mn.WillDeleteFilesRequest}});var $u=ag();Object.defineProperty(u,"UniquenessLevel",{enumerable:!0,get:function(){return $u.UniquenessLevel}});Object.defineProperty(u,"MonikerKind",{enumerable:!0,get:function(){return $u.MonikerKind}});Object.defineProperty(u,"MonikerRequest",{enumerable:!0,get:function(){return $u.MonikerRequest}});var Vu=pg();Object.defineProperty(u,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Vu.TypeHierarchyPrepareRequest}});Object.defineProperty(u,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Vu.TypeHierarchySubtypesRequest}});Object.defineProperty(u,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Vu.TypeHierarchySupertypesRequest}});var Ym=gg();Object.defineProperty(u,"InlineValueRequest",{enumerable:!0,get:function(){return Ym.InlineValueRequest}});Object.defineProperty(u,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return Ym.InlineValueRefreshRequest}});var Yu=bg();Object.defineProperty(u,"InlayHintRequest",{enumerable:!0,get:function(){return Yu.InlayHintRequest}});Object.defineProperty(u,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Yu.InlayHintResolveRequest}});Object.defineProperty(u,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Yu.InlayHintRefreshRequest}});var Ur=Dg();Object.defineProperty(u,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Ur.DiagnosticServerCancellationData}});Object.defineProperty(u,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Ur.DocumentDiagnosticReportKind}});Object.defineProperty(u,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Ur.DocumentDiagnosticRequest}});Object.defineProperty(u,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Ur.WorkspaceDiagnosticRequest}});Object.defineProperty(u,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Ur.DiagnosticRefreshRequest}});var yt=qg();Object.defineProperty(u,"NotebookCellKind",{enumerable:!0,get:function(){return yt.NotebookCellKind}});Object.defineProperty(u,"ExecutionSummary",{enumerable:!0,get:function(){return yt.ExecutionSummary}});Object.defineProperty(u,"NotebookCell",{enumerable:!0,get:function(){return yt.NotebookCell}});Object.defineProperty(u,"NotebookDocument",{enumerable:!0,get:function(){return yt.NotebookDocument}});Object.defineProperty(u,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return yt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(u,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidOpenNotebookDocumentNotification}});Object.defineProperty(u,"NotebookCellArrayChange",{enumerable:!0,get:function(){return yt.NotebookCellArrayChange}});Object.defineProperty(u,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidChangeNotebookDocumentNotification}});Object.defineProperty(u,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidSaveNotebookDocumentNotification}});Object.defineProperty(u,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidCloseNotebookDocumentNotification}});var nC=jg();Object.defineProperty(u,"InlineCompletionRequest",{enumerable:!0,get:function(){return nC.InlineCompletionRequest}});var Fu;(function(e){function t(n){let r=n;return Te.string(r)||Te.string(r.language)||Te.string(r.scheme)||Te.string(r.pattern)}e.is=t})(Fu||(u.TextDocumentFilter=Fu={}));var Uu;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebookType)||Te.string(r.scheme)||Te.string(r.pattern))}e.is=t})(Uu||(u.NotebookDocumentFilter=Uu={}));var Wu;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebook)||Uu.is(r.notebook))&&(r.language===void 0||Te.string(r.language))}e.is=t})(Wu||(u.NotebookCellTextDocumentFilter=Wu={}));var Bu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Te.string(r)&&!Fu.is(r)&&!Wu.is(r))return!1;return!0}e.is=t})(Bu||(u.DocumentSelector=Bu={}));var Lg;(function(e){e.method="client/registerCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(Lg||(u.RegistrationRequest=Lg={}));var Ig;(function(e){e.method="client/unregisterCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(Ig||(u.UnregistrationRequest=Ig={}));var Fg;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(Fg||(u.ResourceOperationKind=Fg={}));var Ug;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(Ug||(u.FailureHandlingKind=Ug={}));var Wg;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(Wg||(u.PositionEncodingKind=Wg={}));var Bg;(function(e){function t(n){let r=n;return r&&Te.string(r.id)&&r.id.length>0}e.hasId=t})(Bg||(u.StaticRegistrationOptions=Bg={}));var Hg;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||Bu.is(r.documentSelector))}e.is=t})(Hg||(u.TextDocumentRegistrationOptions=Hg={}));var zg;(function(e){function t(r){let i=r;return Te.objectLiteral(i)&&(i.workDoneProgress===void 0||Te.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&Te.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(zg||(u.WorkDoneProgressOptions=zg={}));var $g;(function(e){e.method="initialize",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})($g||(u.InitializeRequest=$g={}));var Vg;(function(e){e.unknownProtocolVersion=1})(Vg||(u.InitializeErrorCodes=Vg={}));var Yg;(function(e){e.method="initialized",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Yg||(u.InitializedNotification=Yg={}));var Gg;(function(e){e.method="shutdown",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType0(e.method)})(Gg||(u.ShutdownRequest=Gg={}));var Kg;(function(e){e.method="exit",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType0(e.method)})(Kg||(u.ExitNotification=Kg={}));var Qg;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Qg||(u.DidChangeConfigurationNotification=Qg={}));var Jg;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(Jg||(u.MessageType=Jg={}));var Xg;(function(e){e.method="window/showMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(Xg||(u.ShowMessageNotification=Xg={}));var Zg;(function(e){e.method="window/showMessageRequest",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(Zg||(u.ShowMessageRequest=Zg={}));var em;(function(e){e.method="window/logMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(em||(u.LogMessageNotification=em={}));var tm;(function(e){e.method="telemetry/event",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(tm||(u.TelemetryEventNotification=tm={}));var nm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(nm||(u.TextDocumentSyncKind=nm={}));var rm;(function(e){e.method="textDocument/didOpen",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(rm||(u.DidOpenTextDocumentNotification=rm={}));var im;(function(e){function t(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}e.isIncremental=t;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}e.isFull=n})(im||(u.TextDocumentContentChangeEvent=im={}));var om;(function(e){e.method="textDocument/didChange",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(om||(u.DidChangeTextDocumentNotification=om={}));var sm;(function(e){e.method="textDocument/didClose",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(sm||(u.DidCloseTextDocumentNotification=sm={}));var am;(function(e){e.method="textDocument/didSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(am||(u.DidSaveTextDocumentNotification=am={}));var cm;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(cm||(u.TextDocumentSaveReason=cm={}));var um;(function(e){e.method="textDocument/willSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(um||(u.WillSaveTextDocumentNotification=um={}));var lm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(lm||(u.WillSaveTextDocumentWaitUntilRequest=lm={}));var pm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(pm||(u.DidChangeWatchedFilesNotification=pm={}));var dm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(dm||(u.FileChangeType=dm={}));var fm;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Mg.URI.is(r.baseUri)||Mg.WorkspaceFolder.is(r.baseUri))&&Te.string(r.pattern)}e.is=t})(fm||(u.RelativePattern=fm={}));var gm;(function(e){e.Create=1,e.Change=2,e.Delete=4})(gm||(u.WatchKind=gm={}));var mm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(mm||(u.PublishDiagnosticsNotification=mm={}));var hm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(hm||(u.CompletionTriggerKind=hm={}));var ym;(function(e){e.method="textDocument/completion",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(ym||(u.CompletionRequest=ym={}));var bm;(function(e){e.method="completionItem/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(bm||(u.CompletionResolveRequest=bm={}));var vm;(function(e){e.method="textDocument/hover",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(vm||(u.HoverRequest=vm={}));var xm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(xm||(u.SignatureHelpTriggerKind=xm={}));var Pm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Pm||(u.SignatureHelpRequest=Pm={}));var _m;(function(e){e.method="textDocument/definition",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(_m||(u.DefinitionRequest=_m={}));var Cm;(function(e){e.method="textDocument/references",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Cm||(u.ReferencesRequest=Cm={}));var Sm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Sm||(u.DocumentHighlightRequest=Sm={}));var Dm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Dm||(u.DocumentSymbolRequest=Dm={}));var Rm;(function(e){e.method="textDocument/codeAction",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Rm||(u.CodeActionRequest=Rm={}));var Tm;(function(e){e.method="codeAction/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Tm||(u.CodeActionResolveRequest=Tm={}));var wm;(function(e){e.method="workspace/symbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(wm||(u.WorkspaceSymbolRequest=wm={}));var km;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(km||(u.WorkspaceSymbolResolveRequest=km={}));var Am;(function(e){e.method="textDocument/codeLens",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Am||(u.CodeLensRequest=Am={}));var Om;(function(e){e.method="codeLens/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Om||(u.CodeLensResolveRequest=Om={}));var qm;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType0(e.method)})(qm||(u.CodeLensRefreshRequest=qm={}));var Nm;(function(e){e.method="textDocument/documentLink",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Nm||(u.DocumentLinkRequest=Nm={}));var Em;(function(e){e.method="documentLink/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Em||(u.DocumentLinkResolveRequest=Em={}));var jm;(function(e){e.method="textDocument/formatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(jm||(u.DocumentFormattingRequest=jm={}));var Mm;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Mm||(u.DocumentRangeFormattingRequest=Mm={}));var Lm;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Lm||(u.DocumentRangesFormattingRequest=Lm={}));var Im;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Im||(u.DocumentOnTypeFormattingRequest=Im={}));var Fm;(function(e){e.Identifier=1})(Fm||(u.PrepareSupportDefaultBehavior=Fm={}));var Um;(function(e){e.method="textDocument/rename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Um||(u.RenameRequest=Um={}));var Wm;(function(e){e.method="textDocument/prepareRename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Wm||(u.PrepareRenameRequest=Wm={}));var Bm;(function(e){e.method="workspace/executeCommand",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Bm||(u.ExecuteCommandRequest=Bm={}));var Hm;(function(e){e.method="workspace/applyEdit",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType("workspace/applyEdit")})(Hm||(u.ApplyWorkspaceEditRequest=Hm={}))});var Qm=S(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.createProtocolConnection=void 0;var Km=dn();function rC(e,t,n,r){return Km.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Km.createMessageConnection)(e,t,n,r)}qo.createProtocolConnection=rC});var Xm=S($e=>{"use strict";var iC=$e&&$e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),No=$e&&$e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&iC(t,e,n)};Object.defineProperty($e,"__esModule",{value:!0});$e.LSPErrorCodes=$e.createProtocolConnection=void 0;No(dn(),$e);No((ho(),Zr(mo)),$e);No(se(),$e);No(Gm(),$e);var oC=Qm();Object.defineProperty($e,"createProtocolConnection",{enumerable:!0,get:function(){return oC.createProtocolConnection}});var Jm;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(Jm||($e.LSPErrorCodes=Jm={}))});var ye=S(bt=>{"use strict";var sC=bt&&bt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Zm=bt&&bt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&sC(t,e,n)};Object.defineProperty(bt,"__esModule",{value:!0});bt.createProtocolConnection=void 0;var aC=kc();Zm(kc(),bt);Zm(Xm(),bt);function cC(e,t,n,r){return(0,aC.createMessageConnection)(e,t,n,r)}bt.createProtocolConnection=cC});var Ku=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.SemanticTokensBuilder=Yt.SemanticTokensDiff=Yt.SemanticTokensFeature=void 0;var Eo=ye(),uC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(Eo.SemanticTokensRefreshRequest.type),on:t=>{let n=Eo.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=Eo.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=Eo.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Yt.SemanticTokensFeature=uC;var jo=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}]:[]}};Yt.SemanticTokensDiff=jo;var Gu=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 jo(this._prevData,this._data).computeDiff()}:this.build()}};Yt.SemanticTokensBuilder=Gu});var eh=S(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.InlineCompletionFeature=void 0;var lC=ye(),pC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(lC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Mo.InlineCompletionFeature=pC});var Ju=S(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.TextDocuments=void 0;var hn=ye(),Qu=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new hn.Emitter,this._onDidOpen=new hn.Emitter,this._onDidClose=new hn.Emitter,this._onDidSave=new hn.Emitter,this._onWillSave=new hn.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=hn.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}))})),hn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Lo.TextDocuments=Qu});var Zu=S(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.NotebookDocuments=or.NotebookSyncFeature=void 0;var tt=ye(),th=Ju(),dC=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(tt.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(tt.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(tt.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(tt.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};or.NotebookSyncFeature=dC;var Io=class e{onDidOpenTextDocument(t){return this.openHandler=t,tt.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,tt.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,tt.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(t){this.closeHandler&&this.closeHandler(t)}onWillSaveTextDocument(){return e.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return e.NULL_DISPOSE}onDidSaveTextDocument(){return e.NULL_DISPOSE}};Io.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var Xu=class{constructor(t){t instanceof th.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new th.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new tt.Emitter,this._onDidChange=new tt.Emitter,this._onDidSave=new tt.Emitter,this._onDidClose=new tt.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(t){return this._cellTextDocuments.get(t.document)}getNotebookDocument(t){return this.notebookDocuments.get(t)}getNotebookCell(t){let n=this.notebookCellMap.get(t);return n&&n[0]}findNotebookDocumentForCell(t){let n=typeof t=="string"?t:t.document,r=this.notebookCellMap.get(n);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(t){let n=new Io,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let l=[],d=[],h=[],v=[];if(c.cells!==void 0){let Y=c.cells;if(Y.structure!==void 0){let m=Y.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),Y.structure.didOpen!==void 0)for(let g of Y.structure.didOpen)n.openTextDocument({textDocument:g}),l.push(g.uri);if(Y.structure.didClose)for(let g of Y.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(Y.data!==void 0){let m=new Map(Y.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let w=m.get(o.cells[g].document);if(w!==void 0){let V=o.cells.splice(g,1,w);if(h.push({old:V[0],new:w}),m.delete(w.document),m.size===0)break}}}if(Y.textContent!==void 0)for(let m of Y.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),v.push(m.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let R=[];for(let Y of l)R.push(this.getNotebookCell(Y));let I=[];for(let Y of d)I.push(this.getNotebookCell(Y));let $=[];for(let Y of v)$.push(this.getNotebookCell(Y));(R.length>0||I.length>0||h.length>0||$.length>0)&&(y.cells={added:R,removed:I,changed:{data:h,textContent:$}}),(y.metadata!==void 0||y.cells!==void 0)&&this._onDidChange.fire(y)})),r.push(t.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(t.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),tt.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};or.NotebookDocuments=Xu});var el=S(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 fC(e){return e===!0||e===!1}xe.boolean=fC;function nh(e){return typeof e=="string"||e instanceof String}xe.string=nh;function gC(e){return typeof e=="number"||e instanceof Number}xe.number=gC;function mC(e){return e instanceof Error}xe.error=mC;function rh(e){return typeof e=="function"}xe.func=rh;function ih(e){return Array.isArray(e)}xe.array=ih;function hC(e){return ih(e)&&e.every(t=>nh(t))}xe.stringArray=hC;function yC(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=yC;function bC(e){return e&&rh(e.then)}xe.thenable=bC});var tl=S(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.generateUuid=nt.parse=nt.isUUID=nt.v4=nt.empty=void 0;var Wr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Br=class e extends Wr{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(""))}};Br._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Br._timeHighBits=["8","9","a","b"];nt.empty=new Wr("00000000-0000-0000-0000-000000000000");function oh(){return new Br}nt.v4=oh;var vC=/^[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 vC.test(e)}nt.isUUID=sh;function xC(e){if(!sh(e))throw new Error("invalid uuid");return new Wr(e)}nt.parse=xC;function PC(){return oh().asHex()}nt.generateUuid=PC});var ah=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.attachPartialResult=Kt.ProgressFeature=Kt.attachWorkDone=void 0;var Gt=ye(),_C=tl(),yn=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(Gt.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(Gt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Gt.WorkDoneProgress.type,this._token,{kind:"end"})}};yn.Instances=new Map;var Fo=class extends yn{constructor(t,n){super(t,n),this._source=new Gt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Hr=class{constructor(){}begin(){}report(){}done(){}},Uo=class extends Hr{constructor(){super(),this._source=new Gt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function CC(e,t){if(t===void 0||t.workDoneToken===void 0)return new Hr;let n=t.workDoneToken;return delete t.workDoneToken,new yn(e,n)}Kt.attachWorkDone=CC;var SC=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Gt.WorkDoneProgressCancelNotification.type,n=>{let r=yn.Instances.get(n.token);(r instanceof Fo||r instanceof Uo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Hr:new yn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,_C.generateUuid)();return this.connection.sendRequest(Gt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Fo(this.connection,t))}else return Promise.resolve(new Uo)}};Kt.ProgressFeature=SC;var nl;(function(e){e.type=new Gt.ProgressType})(nl||(nl={}));var rl=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(nl.type,this._token,t)}};function DC(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new rl(e,n)}Kt.attachPartialResult=DC});var ch=S(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.ConfigurationFeature=void 0;var RC=ye(),TC=el(),wC=e=>class extends e{getConfiguration(t){return t?TC.string(t)?this._getConfiguration({section:t}):this._getConfiguration(t):this._getConfiguration({})}_getConfiguration(t){let n={items:Array.isArray(t)?t:[t]};return this.connection.sendRequest(RC.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};Wo.ConfigurationFeature=wC});var uh=S(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.WorkspaceFoldersFeature=void 0;var Bo=ye(),kC=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Bo.Emitter,this.connection.onNotification(Bo.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(Bo.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(Bo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Ho.WorkspaceFoldersFeature=kC});var lh=S(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.CallHierarchyFeature=void 0;var il=ye(),AC=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(il.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=il.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=il.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};zo.CallHierarchyFeature=AC});var ph=S($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.ShowDocumentFeature=void 0;var OC=ye(),qC=e=>class extends e{showDocument(t){return this.connection.sendRequest(OC.ShowDocumentRequest.type,t)}};$o.ShowDocumentFeature=qC});var dh=S(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.FileOperationsFeature=void 0;var sr=ye(),NC=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(sr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(sr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(sr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(sr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(sr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(sr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};Vo.FileOperationsFeature=NC});var fh=S(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.LinkedEditingRangeFeature=void 0;var EC=ye(),jC=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(EC.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};Yo.LinkedEditingRangeFeature=jC});var gh=S(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.TypeHierarchyFeature=void 0;var ol=ye(),MC=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(ol.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=ol.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=ol.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Go.TypeHierarchyFeature=MC});var hh=S(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.InlineValueFeature=void 0;var mh=ye(),LC=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(mh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(mh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Ko.InlineValueFeature=LC});var bh=S(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.FoldingRangeFeature=void 0;var yh=ye(),IC=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(yh.FoldingRangeRefreshRequest.type),on:t=>{let n=yh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Qo.FoldingRangeFeature=IC});var vh=S(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.InlayHintFeature=void 0;var sl=ye(),FC=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(sl.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(sl.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(sl.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};Jo.InlayHintFeature=FC});var xh=S(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.DiagnosticFeature=void 0;var zr=ye(),UC=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(zr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(zr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(zr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(zr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(zr.WorkspaceDiagnosticRequest.partialResult,n)))}}};Xo.DiagnosticFeature=UC});var Ph=S(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.MonikerFeature=void 0;var WC=ye(),BC=e=>class extends e{get moniker(){return{on:t=>{let n=WC.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Zo.MonikerFeature=BC});var Mh=S(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.createConnection=Q.combineFeatures=Q.combineNotebooksFeatures=Q.combineLanguagesFeatures=Q.combineWorkspaceFeatures=Q.combineWindowFeatures=Q.combineClientFeatures=Q.combineTracerFeatures=Q.combineTelemetryFeatures=Q.combineConsoleFeatures=Q._NotebooksImpl=Q._LanguagesImpl=Q.BulkUnregistration=Q.BulkRegistration=Q.ErrorMessageTracker=void 0;var O=ye(),rt=el(),cl=tl(),B=ah(),HC=ch(),zC=uh(),$C=lh(),VC=Ku(),YC=ph(),GC=dh(),KC=fh(),QC=gh(),JC=hh(),XC=bh(),ZC=vh(),e0=xh(),t0=Zu(),n0=Ph();function al(e){if(e!==null)return e}var ul=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=ul;var es=class{constructor(){}rawAttach(t){this._rawConnection=t}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(t){}initialize(t){}error(t){this.send(O.MessageType.Error,t)}warn(t){this.send(O.MessageType.Warning,t)}info(t){this.send(O.MessageType.Info,t)}log(t){this.send(O.MessageType.Log,t)}debug(t){this.send(O.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(O.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,O.RAL)().console.error("Sending log message failed")})}},ll=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}showErrorMessage(t,...n){let r={type:O.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(al)}showWarningMessage(t,...n){let r={type:O.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(al)}showInformationMessage(t,...n){let r={type:O.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(al)}},_h=(0,YC.ShowDocumentFeature)((0,B.ProgressFeature)(ll)),Ch;(function(e){function t(){return new ts}e.create=t})(Ch||(Q.BulkRegistration=Ch={}));var ts=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=rt.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=cl.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Sh;(function(e){function t(){return new $r(void 0,[])}e.create=t})(Sh||(Q.BulkUnregistration=Sh={}));var $r=class{constructor(t,n){this._connection=t,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(t){this._connection=t}add(t){this._unregistrations.set(t.method,t)}dispose(){let t=[];for(let r of this._unregistrations.values())t.push(r);let n={unregisterations:t};this._connection.sendRequest(O.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=rt.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(O.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},ns=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 ts?this.registerMany(t):t instanceof $r?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=rt.string(n)?n:n.method,o=cl.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(O.RegistrationRequest.type,s).then(a=>(t.add({id:o,method:i}),t),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(t,n){let r=rt.string(t)?t:t.method,i=cl.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(O.RegistrationRequest.type,o).then(s=>O.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),s=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(s)))}unregisterSingle(t,n){let r={unregisterations:[{id:t,method:n}]};return this.connection.sendRequest(O.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${t} failed.`)})}registerMany(t){let n=t.asRegistrationParams();return this.connection.sendRequest(O.RegistrationRequest.type,n).then(()=>new $r(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},pl=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}applyEdit(t){function n(i){return i&&!!i.edit}let r=n(t)?t:{edit:t};return this.connection.sendRequest(O.ApplyWorkspaceEditRequest.type,r)}},Dh=(0,GC.FileOperationsFeature)((0,zC.WorkspaceFoldersFeature)((0,HC.ConfigurationFeature)(pl))),rs=class{constructor(){this._trace=O.Trace.Off}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}set trace(t){this._trace=t}log(t,n){this._trace!==O.Trace.Off&&this.connection.sendNotification(O.LogTraceNotification.type,{message:t,verbose:this._trace===O.Trace.Verbose?n:void 0}).catch(()=>{})}},is=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}logEvent(t){this.connection.sendNotification(O.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},os=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._LanguagesImpl=os;var Rh=(0,XC.FoldingRangeFeature)((0,n0.MonikerFeature)((0,e0.DiagnosticFeature)((0,ZC.InlayHintFeature)((0,JC.InlineValueFeature)((0,QC.TypeHierarchyFeature)((0,KC.LinkedEditingRangeFeature)((0,VC.SemanticTokensFeature)((0,$C.CallHierarchyFeature)(os))))))))),ss=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._NotebooksImpl=ss;var Th=(0,t0.NotebookSyncFeature)(ss);function wh(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=wh;function kh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=kh;function Ah(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Ah;function Oh(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Oh;function qh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=qh;function Nh(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=Nh;function Eh(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=Eh;function jh(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=jh;function r0(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,wh),tracer:n(e.tracer,t.tracer,Ah),telemetry:n(e.telemetry,t.telemetry,kh),client:n(e.client,t.client,Oh),window:n(e.window,t.window,qh),workspace:n(e.workspace,t.workspace,Nh),languages:n(e.languages,t.languages,Eh),notebooks:n(e.notebooks,t.notebooks,jh)}}Q.combineFeatures=r0;function i0(e,t,n){let r=n&&n.console?new(n.console(es)):new es,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(rs)):new rs,s=n&&n.telemetry?new(n.telemetry(is)):new is,a=n&&n.client?new(n.client(ns)):new ns,c=n&&n.window?new(n.window(_h)):new _h,l=n&&n.workspace?new(n.workspace(Dh)):new Dh,d=n&&n.languages?new(n.languages(Rh)):new Rh,h=n&&n.notebooks?new(n.notebooks(Th)):new Th,v=[r,o,s,a,c,l,d,h];function y(m){return m instanceof Promise?m:rt.thenable(m)?new Promise((g,w)=>{m.then(V=>g(V),V=>w(V))}):Promise.resolve(m)}let R,I,$,Y={listen:()=>i.listen(),sendRequest:(m,...g)=>i.sendRequest(rt.string(m)?m:m.method,...g),onRequest:(m,g)=>i.onRequest(m,g),sendNotification:(m,g)=>{let w=rt.string(m)?m:m.method;return i.sendNotification(w,g)},onNotification:(m,g)=>i.onNotification(m,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(I=m,{dispose:()=>{I=void 0}}),onInitialized:m=>i.onNotification(O.InitializedNotification.type,m),onShutdown:m=>(R=m,{dispose:()=>{R=void 0}}),onExit:m=>($=m,{dispose:()=>{$=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return c},get workspace(){return l},get languages(){return d},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(O.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(O.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(O.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(O.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(O.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(O.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(O.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(O.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(O.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(O.HoverRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:m=>i.onRequest(O.CompletionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:m=>i.onRequest(O.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(O.SignatureHelpRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:m=>i.onRequest(O.DeclarationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:m=>i.onRequest(O.DefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:m=>i.onRequest(O.TypeDefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:m=>i.onRequest(O.ImplementationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:m=>i.onRequest(O.ReferencesRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:m=>i.onRequest(O.DocumentHighlightRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:m=>i.onRequest(O.DocumentSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:m=>i.onRequest(O.WorkspaceSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:m=>i.onRequest(O.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(O.CodeActionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:m=>i.onRequest(O.CodeActionResolveRequest.type,(g,w)=>m(g,w)),onCodeLens:m=>i.onRequest(O.CodeLensRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:m=>i.onRequest(O.CodeLensResolveRequest.type,(g,w)=>m(g,w)),onDocumentFormatting:m=>i.onRequest(O.DocumentFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:m=>i.onRequest(O.DocumentRangeFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(O.DocumentOnTypeFormattingRequest.type,(g,w)=>m(g,w)),onRenameRequest:m=>i.onRequest(O.RenameRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:m=>i.onRequest(O.PrepareRenameRequest.type,(g,w)=>m(g,w)),onDocumentLinks:m=>i.onRequest(O.DocumentLinkRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:m=>i.onRequest(O.DocumentLinkResolveRequest.type,(g,w)=>m(g,w)),onDocumentColor:m=>i.onRequest(O.DocumentColorRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:m=>i.onRequest(O.ColorPresentationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:m=>i.onRequest(O.FoldingRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:m=>i.onRequest(O.SelectionRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:m=>i.onRequest(O.ExecuteCommandRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let m of v)m.attach(Y);return i.onRequest(O.InitializeRequest.type,m=>{t.initialize(m),rt.string(m.trace)&&(o.trace=O.Trace.fromString(m.trace));for(let g of v)g.initialize(m.capabilities);if(I){let g=I(m,new O.CancellationTokenSource().token,(0,B.attachWorkDone)(i,m),void 0);return y(g).then(w=>{if(w instanceof O.ResponseError)return w;let V=w;V||(V={capabilities:{}});let X=V.capabilities;X||(X={},V.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None:!rt.number(X.textDocumentSync)&&!rt.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None);for(let it of v)it.fillServerCapabilities(X);return V})}else{let g={capabilities:{textDocumentSync:O.TextDocumentSyncKind.None}};for(let w of v)w.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(O.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,R)return R(new O.CancellationTokenSource().token)}),i.onNotification(O.ExitNotification.type,()=>{try{$&&$()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(O.SetTraceNotification.type,m=>{o.trace=O.Trace.fromString(m.value)}),Y}Q.createConnection=i0});var dl=S(je=>{"use strict";var o0=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]})),Ih=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&o0(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});je.ProposedFeatures=je.NotebookDocuments=je.TextDocuments=je.SemanticTokensBuilder=void 0;var s0=Ku();Object.defineProperty(je,"SemanticTokensBuilder",{enumerable:!0,get:function(){return s0.SemanticTokensBuilder}});var a0=eh();Ih(ye(),je);var c0=Ju();Object.defineProperty(je,"TextDocuments",{enumerable:!0,get:function(){return c0.TextDocuments}});var u0=Zu();Object.defineProperty(je,"NotebookDocuments",{enumerable:!0,get:function(){return u0.NotebookDocuments}});Ih(Mh(),je);var Lh;(function(e){e.all={__brand:"features",languages:a0.InlineCompletionFeature}})(Lh||(je.ProposedFeatures=Lh={}))});var Uh=S((ew,Fh)=>{"use strict";Fh.exports=ye()});var fl=S(vt=>{"use strict";var l0=vt&&vt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Bh=vt&&vt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&l0(t,e,n)};Object.defineProperty(vt,"__esModule",{value:!0});vt.createConnection=void 0;var as=dl();Bh(Uh(),vt);Bh(dl(),vt);var Wh=!1,p0={initialize:e=>{},get shutdownReceived(){return Wh},set shutdownReceived(e){Wh=e},exit:e=>{}};function d0(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),as.ConnectionStrategy.is(e)||as.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=l=>(0,as.createProtocolConnection)(o,s,l,a);return(0,as.createConnection)(c,p0,i)}vt.createConnection=d0});var Qt=S((nw,Hh)=>{"use strict";Hh.exports=fl()});var Cl=S((Vw,ny)=>{"use strict";function xt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ty(e,t){for(var n="",r=0,i=-1,o=0,s,a=0;a<=e.length;++a){if(a<e.length)s=e.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,o=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return n}function Z0(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var ur={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),xt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=ty(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(xt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=ty(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return xt(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var r=arguments[n];xt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":ur.normalize(t)},relative:function(t,n){if(xt(t),xt(n),t===n||(t=ur.resolve(t),n=ur.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,l=o<c?o:c,d=-1,h=0;h<=l;++h){if(h===l){if(c>l){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>l&&(t.charCodeAt(r+h)===47?d=h:h===0&&(d=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(d=h)}var R="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(R.length===0?R+="..":R+="/..");return R.length>0?R+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(xt(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,o=!0,s=t.length-1;s>=1;--s)if(n=t.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');xt(t);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,c=-1;for(s=t.length-1;s>=0;--s){var l=t.charCodeAt(s);if(l===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(l===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=c))}return r===i?i=c:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){xt(t);for(var n=-1,r=0,i=-1,o=!0,s=0,a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(c===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),c===46?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return Z0("/",t)},parse:function(t){xt(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,c=-1,l=!0,d=t.length-1,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!l){a=d+1;break}continue}c===-1&&(l=!1,c=d+1),r===46?s===-1?s=d:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||c===-1||h===0||h===1&&s===c-1&&s===a+1?c!==-1&&(a===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(a,c)):(a===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(a,s),n.base=t.slice(a,c)),n.ext=t.slice(s,c)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};ur.posix=ur;ny.exports=ur});import{createConfig as fd,loadConfig as xx,DEFAULT_CONFIG as Px}from"@redocly/openapi-core";var wl;(()=>{"use strict";var e={975:k=>{function b(P){if(typeof P!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(P))}function E(P,C){for(var D,N="",M=0,q=-1,z=0,G=0;G<=P.length;++G){if(G<P.length)D=P.charCodeAt(G);else{if(D===47)break;D=47}if(D===47){if(!(q===G-1||z===1))if(q!==G-1&&z===2){if(N.length<2||M!==2||N.charCodeAt(N.length-1)!==46||N.charCodeAt(N.length-2)!==46){if(N.length>2){var Ce=N.lastIndexOf("/");if(Ce!==N.length-1){Ce===-1?(N="",M=0):M=(N=N.slice(0,Ce)).length-1-N.lastIndexOf("/"),q=G,z=0;continue}}else if(N.length===2||N.length===1){N="",M=0,q=G,z=0;continue}}C&&(N.length>0?N+="/..":N="..",M=2)}else N.length>0?N+="/"+P.slice(q+1,G):N=P.slice(q+1,G),M=G-q-1;q=G,z=0}else D===46&&z!==-1?++z:z=-1}return N}var j={resolve:function(){for(var P,C="",D=!1,N=arguments.length-1;N>=-1&&!D;N--){var M;N>=0?M=arguments[N]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(C=M+"/"+C,D=M.charCodeAt(0)===47)}return C=E(C,!D),D?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(P){if(b(P),P.length===0)return".";var C=P.charCodeAt(0)===47,D=P.charCodeAt(P.length-1)===47;return(P=E(P,!C)).length!==0||C||(P="."),P.length>0&&D&&(P+="/"),C?"/"+P:P},isAbsolute:function(P){return b(P),P.length>0&&P.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var P,C=0;C<arguments.length;++C){var D=arguments[C];b(D),D.length>0&&(P===void 0?P=D:P+="/"+D)}return P===void 0?".":j.normalize(P)},relative:function(P,C){if(b(P),b(C),P===C||(P=j.resolve(P))===(C=j.resolve(C)))return"";for(var D=1;D<P.length&&P.charCodeAt(D)===47;++D);for(var N=P.length,M=N-D,q=1;q<C.length&&C.charCodeAt(q)===47;++q);for(var z=C.length-q,G=M<z?M:z,Ce=-1,ee=0;ee<=G;++ee){if(ee===G){if(z>G){if(C.charCodeAt(q+ee)===47)return C.slice(q+ee+1);if(ee===0)return C.slice(q+ee)}else M>G&&(P.charCodeAt(D+ee)===47?Ce=ee:ee===0&&(Ce=0));break}var ot=P.charCodeAt(D+ee);if(ot!==C.charCodeAt(q+ee))break;ot===47&&(Ce=ee)}var tn="";for(ee=D+Ce+1;ee<=N;++ee)ee!==N&&P.charCodeAt(ee)!==47||(tn.length===0?tn+="..":tn+="/..");return tn.length>0?tn+C.slice(q+Ce):(q+=Ce,C.charCodeAt(q)===47&&++q,C.slice(q))},_makeLong:function(P){return P},dirname:function(P){if(b(P),P.length===0)return".";for(var C=P.charCodeAt(0),D=C===47,N=-1,M=!0,q=P.length-1;q>=1;--q)if((C=P.charCodeAt(q))===47){if(!M){N=q;break}}else M=!1;return N===-1?D?"/":".":D&&N===1?"//":P.slice(0,N)},basename:function(P,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(P);var D,N=0,M=-1,q=!0;if(C!==void 0&&C.length>0&&C.length<=P.length){if(C.length===P.length&&C===P)return"";var z=C.length-1,G=-1;for(D=P.length-1;D>=0;--D){var Ce=P.charCodeAt(D);if(Ce===47){if(!q){N=D+1;break}}else G===-1&&(q=!1,G=D+1),z>=0&&(Ce===C.charCodeAt(z)?--z==-1&&(M=D):(z=-1,M=G))}return N===M?M=G:M===-1&&(M=P.length),P.slice(N,M)}for(D=P.length-1;D>=0;--D)if(P.charCodeAt(D)===47){if(!q){N=D+1;break}}else M===-1&&(q=!1,M=D+1);return M===-1?"":P.slice(N,M)},extname:function(P){b(P);for(var C=-1,D=0,N=-1,M=!0,q=0,z=P.length-1;z>=0;--z){var G=P.charCodeAt(z);if(G!==47)N===-1&&(M=!1,N=z+1),G===46?C===-1?C=z:q!==1&&(q=1):C!==-1&&(q=-1);else if(!M){D=z+1;break}}return C===-1||N===-1||q===0||q===1&&C===N-1&&C===D+1?"":P.slice(C,N)},format:function(P){if(P===null||typeof P!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof P);return(function(C,D){var N=D.dir||D.root,M=D.base||(D.name||"")+(D.ext||"");return N?N===D.root?N+M:N+"/"+M:M})(0,P)},parse:function(P){b(P);var C={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return C;var D,N=P.charCodeAt(0),M=N===47;M?(C.root="/",D=1):D=0;for(var q=-1,z=0,G=-1,Ce=!0,ee=P.length-1,ot=0;ee>=D;--ee)if((N=P.charCodeAt(ee))!==47)G===-1&&(Ce=!1,G=ee+1),N===46?q===-1?q=ee:ot!==1&&(ot=1):q!==-1&&(ot=-1);else if(!Ce){z=ee+1;break}return q===-1||G===-1||ot===0||ot===1&&q===G-1&&q===z+1?G!==-1&&(C.base=C.name=z===0&&M?P.slice(1,G):P.slice(z,G)):(z===0&&M?(C.name=P.slice(1,q),C.base=P.slice(1,G)):(C.name=P.slice(z,q),C.base=P.slice(z,G)),C.ext=P.slice(q,G)),z>0?C.dir=P.slice(0,z-1):M&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var E=t[k]={exports:{}};return e[k](E,E.exports,n),E.exports}n.d=(k,b)=>{for(var E in b)n.o(b,E)&&!n.o(k,E)&&Object.defineProperty(k,E,{enumerable:!0,get:b[E]})},n.o=(k,b)=>Object.prototype.hasOwnProperty.call(k,b),n.r=k=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>v,Utils:()=>vn}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function c(k,b){if(!k.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${k.authority}", path: "${k.path}", query: "${k.query}", fragment: "${k.fragment}"}`);if(k.scheme&&!o.test(k.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(k.path){if(k.authority){if(!s.test(k.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(k.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let l="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class v{static isUri(b){return b instanceof v||!!b&&typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function"}scheme;authority;path;query;fragment;constructor(b,E,j,P,C,D=!1){typeof b=="object"?(this.scheme=b.scheme||l,this.authority=b.authority||l,this.path=b.path||l,this.query=b.query||l,this.fragment=b.fragment||l):(this.scheme=(function(N,M){return N||M?N:"file"})(b,D),this.authority=E||l,this.path=(function(N,M){switch(N){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M})(this.scheme,j||l),this.query=P||l,this.fragment=C||l,c(this,D))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:E,authority:j,path:P,query:C,fragment:D}=b;return E===void 0?E=this.scheme:E===null&&(E=l),j===void 0?j=this.authority:j===null&&(j=l),P===void 0?P=this.path:P===null&&(P=l),C===void 0?C=this.query:C===null&&(C=l),D===void 0?D=this.fragment:D===null&&(D=l),E===this.scheme&&j===this.authority&&P===this.path&&C===this.query&&D===this.fragment?this:new R(E,j,P,C,D)}static parse(b,E=!1){let j=h.exec(b);return j?new R(j[2]||l,X(j[4]||l),X(j[5]||l),X(j[7]||l),X(j[9]||l),E):new R(l,l,l,l,l)}static file(b){let E=l;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let j=b.indexOf(d,2);j===-1?(E=b.substring(2),b=d):(E=b.substring(2,j),b=b.substring(j)||d)}return new R("file",E,b,l,l)}static from(b){let E=new R(b.scheme,b.authority,b.path,b.query,b.fragment);return c(E,!0),E}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let E=new R(b);return E._formatted=b.external,E._fsPath=b._sep===y?b.fsPath:null,E}}return b}}let y=i?1:void 0;class R extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=m(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let I={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function $(k,b,E){let j,P=-1;for(let C=0;C<k.length;C++){let D=k.charCodeAt(C);if(D>=97&&D<=122||D>=65&&D<=90||D>=48&&D<=57||D===45||D===46||D===95||D===126||b&&D===47||E&&D===91||E&&D===93||E&&D===58)P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j!==void 0&&(j+=k.charAt(C));else{j===void 0&&(j=k.substr(0,C));let N=I[D];N!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j+=N):P===-1&&(P=C)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function Y(k){let b;for(let E=0;E<k.length;E++){let j=k.charCodeAt(E);j===35||j===63?(b===void 0&&(b=k.substr(0,E)),b+=I[j]):b!==void 0&&(b+=k[E])}return b!==void 0?b:k}function m(k,b){let E;return E=k.authority&&k.path.length>1&&k.scheme==="file"?`//${k.authority}${k.path}`:k.path.charCodeAt(0)===47&&(k.path.charCodeAt(1)>=65&&k.path.charCodeAt(1)<=90||k.path.charCodeAt(1)>=97&&k.path.charCodeAt(1)<=122)&&k.path.charCodeAt(2)===58?b?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(E=E.replace(/\//g,"\\")),E}function g(k,b){let E=b?Y:$,j="",{scheme:P,authority:C,path:D,query:N,fragment:M}=k;if(P&&(j+=P,j+=":"),(C||P==="file")&&(j+=d,j+=d),C){let q=C.indexOf("@");if(q!==-1){let z=C.substr(0,q);C=C.substr(q+1),q=z.lastIndexOf(":"),q===-1?j+=E(z,!1,!1):(j+=E(z.substr(0,q),!1,!1),j+=":",j+=E(z.substr(q+1),!1,!0)),j+="@"}C=C.toLowerCase(),q=C.lastIndexOf(":"),q===-1?j+=E(C,!1,!0):(j+=E(C.substr(0,q),!1,!0),j+=C.substr(q))}if(D){if(D.length>=3&&D.charCodeAt(0)===47&&D.charCodeAt(2)===58){let q=D.charCodeAt(1);q>=65&&q<=90&&(D=`/${String.fromCharCode(q+32)}:${D.substr(3)}`)}else if(D.length>=2&&D.charCodeAt(1)===58){let q=D.charCodeAt(0);q>=65&&q<=90&&(D=`${String.fromCharCode(q+32)}:${D.substr(2)}`)}j+=E(D,!0,!1)}return N&&(j+="?",j+=E(N,!1,!1)),M&&(j+="#",j+=b?M:$(M,!1,!1)),j}function w(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+w(k.substr(3)):k}}let V=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(V)?k.replace(V,(b=>w(b))):k}var it=n(975);let At=it.posix||it,en="/";var vn;(function(k){k.joinPath=function(b,...E){return b.with({path:At.join(b.path,...E)})},k.resolvePath=function(b,...E){let j=b.path,P=!1;j[0]!==en&&(j=en+j,P=!0);let C=At.resolve(j,...E);return P&&C[0]===en&&!b.authority&&(C=C.substring(1)),b.with({path:C})},k.dirname=function(b){if(b.path.length===0||b.path===en)return b;let E=At.dirname(b.path);return E.length===1&&E.charCodeAt(0)===46&&(E=""),b.with({path:E})},k.basename=function(b){return At.basename(b.path)},k.extname=function(b){return At.extname(b.path)}})(vn||(vn={})),wl=r})();var{URI:qt,Utils:ne}=wl;import{CONFIG_FILE_NAME as Ny}from"@redocly/openapi-core";var Ds={languageId:"yaml",filePattern:/\.ya?ml$/i},Rs={languageId:"json",filePattern:/\.json$/i},Ss=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Ds,Rs];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ne.resolvePath(ne.dirname(Se(t)),Ny);return await this._fs.exists(n)?n.toString():void 0}catch{return}}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}registerRemoteScorecardAndPlugins(t){this._remoteScorecardAndPlugins=t}get remoteScorecardAndPlugins(){return this._remoteScorecardAndPlugins}get fs(){if(!this._fs)throw new Error("FileSystemProvider not registered.");return this._fs}get documents(){if(!this._documentManager)throw new Error("DocumentsProvider not registered.");return this._documentManager}get findConfig(){if(!this._findConfig)throw new Error("ConfigFinder not registered.");return this._findConfig}get getRootWorkspaceFolderURI(){if(!this._getRootWorkspaceFolderURI)throw new Error("RootWorkspaceFolderURIGetter not registered.");return this._getRootWorkspaceFolderURI}setScorecardStatus(t){this._scorecardStatus=t}get scorecardStatus(){return this._scorecardStatus}},be=new Ss;function Ts(e,t){return ne.resolvePath(Se(e)).toString()===ne.resolvePath(Se(t)).toString()}function Se(e){return qt.parse(e)}function Pt(e){return qt.parse(e).fsPath}function dr(e){let t=["https","http"],{scheme:n}=qt.parse(e);return t.includes(n)}function fr(e){return ne.basename(Se(e))}async function kl(e,t="/"){let n=ne.resolvePath(Se(t));for(;e.path!=="/";)try{(await be.fs.stat(ne.resolvePath(n,e.path))).isDirectory()||(e=ne.dirname(e));break}catch{e=ne.dirname(e)}return e}import{BaseResolver as bx,Source as dd,readFileFromUrl as vx}from"@redocly/openapi-core";var pi=Ie(br(),1);import{isAbsoluteUrl as mx}from"@redocly/openapi-core";function td(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(l){let d=i.get(l.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(l.uri,setTimeout(()=>a(l),t-h));else if(r.delete(l.uri),i.delete(l.uri),!n){let v=s.get(l.uri),y=e(o.get(l.uri));v&&v.forEach(({resolve:R})=>R(y)),s.delete(l.uri)}}catch(v){let y=s.get(l.uri);y&&y.forEach(({reject:R})=>R(v)),s.delete(l.uri)}}function c(l){let d=r.get(l.uri),h=n&&!d;return i.set(l.uri,Date.now()),o.set(l.uri,l),new Promise((v,y)=>{let R=s.get(l.uri)||[];d||(s.set(l.uri,[...R,{resolve:v,reject:y}]),r.set(l.uri,setTimeout(()=>a(l),t))),h?v(e(o.get(l.uri))):s.set(l.uri,[...R,{resolve:v,reject:y}])})}return c}function ta(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 nd(e){return e==="$ref"}async function na(e,t){let n=qt.parse(t);return ne.joinPath(n,e).toString()}async function rd(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await na(i,n)===t)return r}function id(e){return typeof e=="string"}function di(e){return typeof e=="function"}function od(e){return e?.kind===pi.Kind.MAP}function ra(e){return e?.kind===pi.Kind.MAPPING}function ia(e){return e?.kind===pi.Kind.SEQ}function vr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}function oa(e){return mx(e)||e.startsWith("file://")}var fi=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=cd(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=sd(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=sd(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&&ad(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}},gi;(function(e){function t(i,o,s,a){return new fi(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof fi)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=sa(o.map(hx),(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),c=0,l=[];for(let d of a){let h=i.offsetAt(d.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&l.push(s.substring(c,h)),d.newText.length&&l.push(d.newText),c=i.offsetAt(d.range.end)}return l.push(s.substr(c)),l.join("")}e.applyEdits=r})(gi||(gi={}));function sa(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);sa(r,t),sa(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 sd(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);ad(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function ad(e){return e===13||e===10}function cd(e){let t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function hx(e){let t=cd(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var ud=new Map;function ld(e,t){return ud.set(e,t)}function pd(e){let t=[];for(let[n,r]of ud.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Qe(e){let t=be.documents.get(e);if(t)return t;let n=await be.fs.readFile(Se(e),"utf-8");return gi.create(e,"yaml",1,n)}function aa(e){return Rs.filePattern.test(e)}function yx(e){return Ds.filePattern.test(e)}var St=class extends bx{resolveExternalRef(t,n){return oa(n)?n:t&&oa(t)?new URL(n,t).href:t?ne.resolvePath(ne.dirname(Se(t)),n).toString():n}async loadExternalRef(t){if(dr(t)){let{body:n,mimeType:r}=await vx(t,{...this.config.http,customFetch:fetch});return new dd(t,n,r)}return new dd(t,(await Qe(t)).getText())}};var Dt;async function mi(e,t){try{let n=new St,r=e?await be.findConfig(e):void 0;if(r===void 0)return Dt=await fd(Px),Dt;Dt=await xx({configPath:r,externalRefResolver:n})}catch(n){t?.createEventHandleLoadConfigError?.(n?.message),Dt=await fd({})}return Dt}async function Tn(e){return Dt||await mi(e)}async function cn(e){return await ca(e)?!0:!!Dt?.resolvedRefMap&&[...Dt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Ts(fr(e),n))}async function ca(e){let t=await be.findConfig(e);return t?Ts(e,t):!1}var gd={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},xr={type:"object",properties:gd,additionalProperties:!1},_x={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Mt={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},gd),{like:xr,dislike:xr,satisfied:xr,neutral:xr,dissatisfied:xr}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:_x},additionalProperties:!1}},additionalProperties:!1};var Cx={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},ua={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},hi={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Mt,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ua,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:Cx,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1};var wn={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Sx={type:"object",properties:{name:{type:"string"},items:wn,queries:wn,mutations:wn,subscriptions:wn,types:wn,directives:wn},required:["name"],additionalProperties:!1},Dx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Sx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},kn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Dx.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:ua,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:Mt,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"}},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"]},Tx={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},md={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},wx={type:"object",properties:{beforeInfo:{type:"array",items:md},end:{type:"array",items:md}}},un={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},yi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},kx={type:"object",properties:Pi(un.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"}}},Ox={type:"object",properties:{error:yi,info:yi,redirect:yi,success:yi}},qx={type:"object",properties:An(un.properties,["dark"])},Nx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Ex={type:"object",properties:{accent:un,border:kx,error:un,http:Ax,primary:un,responses:Ox,secondary:qx,success:un,text:Nx,tonalOffset:{type:"number"},warning:un}},bi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},jx={type:"object",properties:{small:bi,medium:bi,large:bi,xlarge:bi}},ft={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Mx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:jx})},hd={type:"object",properties:Pi(ft.properties,["fontSize","lineHeight"])},Lx={type:"object",properties:{medium:hd,small:hd}},Ix={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Lx})},Fx={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Ux={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},yd={type:"object",properties:{fullWidth:{type:"boolean"}}},Wx={type:"object",properties:{buttons:Mx,httpBadges:Ix,layoutControls:Fx,panels:Ux,tryItButton:yd,tryItSendButton:yd}},xi={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Bx={type:"object",properties:{maxWidth:xi}},Hx={type:"object",properties:{maxWidth:xi,middlePanelMaxWidth:xi}},zx={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Bx,"three-panel":Hx}},bd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},$x={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:bd,defaultDetailsWidth:{type:"string"},examples:bd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},xd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Vx={type:"object",properties:Pi(xd.properties,["textTransform"])},Yx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Gx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:xd,level1items:Vx,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Yx,textColor:{type:"string"},width:{type:"string"}})},vi={type:"object",properties:Object.assign(Object.assign({},ft.properties),{color:{type:"string"},transform:{type:"string"}})},Kx={type:"object",properties:Object.assign(Object.assign({},ft.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},Qx={type:"object",properties:An(ft.properties,["fontSize"])},Jx={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Xx={type:"object",properties:Object.assign(Object.assign({code:Kx,fieldName:ft},Pi(ft.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:vi,heading2:vi,heading3:vi,headings:Qx,lineHeight:{type:"string"},links:Jx,optimizeSpeed:{type:"boolean"},rightPanelHeading:vi,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},Zx={type:"object",properties:Object.assign({color:{type:"string"}},An(ft.properties,["fontWeight"]))},eP={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:Zx}},tP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},nP={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},vd={type:"object",properties:{custom:{type:"string"}}},rP={type:"object",properties:{DownloadButton:vd,NextSectionButton:vd}},iP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},oP={type:"object",properties:{borderRadius:{type:"string"}}},sP={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},aP={type:"object",properties:{breakpoints:xi,codeBlock:eP,colors:Ex,components:Wx,layout:zx,logo:tP,fab:nP,overrides:rP,rightPanel:iP,schema:$x,shape:oP,sidebar:Gx,spacing:sP,typography:Xx,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},cP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Rx}},required:["languages"]},Pd={type:"object",properties:{theme:aP,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:cP,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:Tx,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:wx,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function Pi(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function An(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var Lt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},Pr={rules:Lt,oas2Rules:Lt,oas3_0Rules:Lt,oas3_1Rules:Lt,async2Rules:Lt,async3Rules:Lt,arazzo1Rules:Lt,overlay1Rules:Lt},_r={preprocessors:{type:"object",additionalProperties:!0},oas2Preprocessors:{type:"object",additionalProperties:!0},oas3_0Preprocessors:{type:"object",additionalProperties:!0},oas3_1Preprocessors:{type:"object",additionalProperties:!0},async2Preprocessors:{type:"object",additionalProperties:!0},async3Preprocessors:{type:"object",additionalProperties:!0},arazzo1Preprocessors:{type:"object",additionalProperties:!0},overlay1Preprocessors:{type:"object",additionalProperties:!0}},Cr={decorators:{type:"object",additionalProperties:!0},oas2Decorators:{type:"object",additionalProperties:!0},oas3_0Decorators:{type:"object",additionalProperties:!0},oas3_1Decorators:{type:"object",additionalProperties:!0},async2Decorators:{type:"object",additionalProperties:!0},async3Decorators:{type:"object",additionalProperties:!0},arazzo1Decorators:{type:"object",additionalProperties:!0},overlay1Decorators:{type:"object",additionalProperties:!0}};var Re={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},_d={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},la={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"}}}},pa={type:"array",items:Object.assign(Object.assign({},la),{properties:Object.assign(Object.assign({},la.properties),{items:{type:"array",items:la}})})},uP={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},lP={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},pP={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}},dP={type:"object",properties:Object.assign({facets:pP},Re.properties),additionalProperties:!1},fP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},_i={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Ci={type:"object",properties:Object.assign({items:pa},Re.properties),additionalProperties:!1},Si={type:"object",additionalProperties:uP},Di={type:"object",properties:Object.assign({items:pa,copyrightText:{type:"string"},logo:Re},Re.properties),additionalProperties:!1},Ri={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Re.properties),additionalProperties:!1},Ti={type:"object",properties:{head:{type:"array",items:_d},body:{type:"array",items:_d}},additionalProperties:!1},wi={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}},ki={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:lP,filters:dP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:fP}},Re.properties),additionalProperties:!1},Ai={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Re.properties),additionalProperties:!1},gP={type:"object",properties:Object.assign(Object.assign({},Re.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1},Oi={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},actions:gP},additionalProperties:!1},qi={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Re.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},Ni={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["**/_partials/**"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Re.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Re.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},On=Object.assign(Object.assign({},hi),{properties:Object.assign(Object.assign({},hi.properties),Pd.properties)}),mP={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},hP={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"]},yP={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},bP={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},vP={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"]},xP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},PP={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"]},da={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"]},_P={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:da}},additionalProperties:!1,required:["trackingId"]},Ei={type:"object",properties:{adobe:mP,amplitude:hP,fullstory:yP,heap:bP,rudderstack:vP,segment:xP,gtm:PP,ga:_P}},ji={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},Re.properties),additionalProperties:!1},Mi={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Li={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},CP={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"}}}},SP={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:CP},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"}}},qn={type:"object",patternProperties:{".*":SP}},Ii={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},Pr),_r),Cr),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}};var DP={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},RP={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},TP={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},Rt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:RP},excludes:{type:"array",items:DP},filters:{type:"array",items:TP},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},wP={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},kP={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:wP},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},AP={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:kP,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},OP={type:"object",additionalProperties:AP},Fi={type:"object",properties:{entityTypes:OP,catalogs:{type:"object",properties:{all:Rt,services:Rt,domains:Rt,teams:Rt,users:Rt,apiDescriptions:Rt,dataSchemas:Rt,apiOperations:Rt},additionalProperties:Rt}},additionalProperties:!1};var Je={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:_i,navbar:Ci,products:Si,footer:Di,sidebar:Ri,scripts:Ti,links:wi,feedback:Mt,search:ki,colorMode:Ai,navigation:Oi,codeSnippet:qi,markdown:Ni,openapi:On,graphql:kn,analytics:Ei,userMenu:ji,versionPicker:Mi,breadcrumbs:Li,catalog:qn,entitiesCatalog:Fi,catalogClassic:qn,scorecard:Ii},additionalProperties:!0};var ga="https://redocly.com/sso/teams",Nn;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(Nn||(Nn={}));var En;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(En||(En={}));var fa;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(fa||(fa={}));var ma=["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"];function Ui(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"?Ui(i,t):i)]:[n,Ui(r,t)]}).filter(Boolean))}var qP={type:"object",additionalProperties:{type:"string"}},NP={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Wi={type:"string",enum:["error","warn","off"]},EP={type:"object",additionalProperties:!1,properties:{schemaCheck:Wi,statusCodeCheck:Wi,contentTypeCheck:Wi,successCriteriaCheck:Wi}},jP={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},MP={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},Cd={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[jP,MP]},inputs:qP,servers:NP,severity:EP},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var LP={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},IP={type:"object",properties:{type:{type:"string",const:Nn.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:LP,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},FP={type:"object",properties:{type:{type:"string",const:Nn.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:ga},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},UP={oneOf:[IP,FP],discriminator:{propertyName:"type"}},WP={type:"object",additionalProperties:UP},BP={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},HP={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},zP={type:"object",additionalProperties:HP,default:{}},ba={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:On,graphql:kn,theme:{type:"object",properties:{openapi:On,graphql:kn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Pr),_r),Cr),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},$P={type:"object",additionalProperties:!0},VP={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Sd={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},Dd={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:Sd},default:{llmstxt:Sd.default},additionalProperties:!1},YP={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},ln={type:"object",additionalProperties:{type:"string"}},Td={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:ln,cms:ln,reunite:ln,features:{type:"object",properties:{aiSearch:ln},additionalProperties:!1},content:{type:"object",properties:{"**":ln},additionalProperties:ln}},additionalProperties:ln},GP={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},KP={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},QP={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:[GP,KP]}},additionalProperties:!1,required:["type","apiBaseUrl"]},JP={type:"object",properties:{type:{type:"string",const:En.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},XP={type:"object",properties:{type:{type:"string",const:En.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},ha={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:[JP,XP],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},ZP=Object.assign(Object.assign({},ha),{properties:Object.assign(Object.assign({},ha.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),e_={type:"object",oneOf:[ha,ZP,QP],discriminator:{propertyName:"type"}},t_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:e_}}},Rd={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},n_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},r_={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:[]}}},ya={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:zP,seo:Dd,rbac:Td,apiFunctions:YP,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:n_}},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:ba},extends:{type:"array",items:{type:"string"}}},Pr),Cr),_r),{ssoDirect:WP,sso:BP,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:t_,removeAttribution:{type:"boolean"},i18n:Rd,l10n:Rd,metadata:$P,metadataGlobs:VP,ignore:{type:"array",items:{type:"string"}},theme:Je,reunite:Cd,logo:_i,navbar:Ci,products:Si,footer:Di,sidebar:Ri,scripts:Ti,links:wi,feedback:Mt,search:ki,colorMode:Ai,navigation:Oi,codeSnippet:qi,markdown:Ni,openapi:On,graphql:kn,analytics:Ei,userMenu:ji,versionPicker:Mi,breadcrumbs:Li,catalog:qn,entitiesCatalog:Fi,catalogClassic:qn,scorecard:Ii,mcp:r_}),default:{redirects:{},seo:Dd.default},additionalProperties:!0},i_=Object.assign(Object.assign({},Ui(ya,"default")),{additionalProperties:!1}),va=Object.assign(Object.assign({$id:"root-redocly-config"},ya),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},ya.properties),{env:{type:"object",additionalProperties:i_}}),default:{},additionalProperties:!1});var xa={type:"object",properties:{logo:Je.properties.logo,navbar:Je.properties.navbar,footer:Je.properties.footer,sidebar:Je.properties.sidebar,search:Je.properties.search,codeSnippet:Je.properties.codeSnippet,breadcrumbs:Je.properties.breadcrumbs,openapi:Je.properties.openapi,feedback:Je.properties.feedback,analytics:{type:"object",properties:{ga:da}}},additionalProperties:!0,default:{}},o_={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},xa.properties),{apis:{type:"object",additionalProperties:ba},theme:xa}),additionalProperties:!1};var s_={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},a_={type:"object",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},c_={type:"object",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},u_={type:"object",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"}},required:["specType","schema"],additionalProperties:!0};var l_={type:"object",properties:{slack:{type:"object",properties:{channels:{type:"array",items:{type:"object",properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1}}},required:["channels"],additionalProperties:!1}},additionalProperties:!1},p_={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},d_={type:"object",properties:{type:{type:"string",enum:ma},key:{type:"string",minLength:2,maxLength:100}},required:["type","key"],additionalProperties:!1},Sr={key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},title:{type:"string",minLength:2,maxLength:200},summary:{type:["string","null"],minLength:1,maxLength:500},tags:{type:["array","null"],items:{type:"string",minLength:1,maxLength:50}},git:{type:["array","null"],items:{type:"string"}},contact:{anyOf:[{type:"null"},l_]},links:{anyOf:[{type:"null"},{type:"array",items:p_}]},relations:{anyOf:[{type:"null"},{type:"array",items:d_}]}},hR={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{const:"user"},metadata:s_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{const:"api-operation"},metadata:c_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{const:"data-schema"},metadata:u_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{const:"api-description"},metadata:a_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{enum:["service","domain","team"]},metadata:{type:["object","null"],additionalProperties:!0}}),required:["key","title","type"],additionalProperties:!1}]};var Le=Ie(Qt(),1);import{getLineColLocation as P0,lintDocument as _0,makeDocumentFromString as hl,lintConfig as C0,detectSpec as S0,createConfigTypes as D0}from"@redocly/openapi-core";import{bundleDocument as f0,isPlainObject as g0,makeDocumentFromString as m0}from"@redocly/openapi-core";var zh=new Map,cs=new Map;function h0(e){return e?Array.from(e).map(([t,n])=>[t,ta(n)]):[]}async function gl(e,t){let n=await Tn(),r=new St(n.resolve),i=m0(e.getText(),e.uri),{bundle:o,problems:s,fileDependencies:a,rootType:c,refTypes:l}=await f0({document:i,config:n,externalRefResolver:r}),d=h0(l);l&&(cs=new Map([...cs,...l])),zh.set(e.uri,{uri:e.uri,name:fr(e.uri),definition:g0(o.parsed)?o.parsed:{},rootType:c,refTypes:d,errors:t})}function y0(){return Array.from(zh).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:fr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function ml(e){return cs.has(e)?cs.get(e):null}import{createConfig as b0,lintDocument as v0}from"@redocly/openapi-core";async function $h(e,t,n,r,i){let o=[];for(let s of n?.levels||[]){let a=typeof i=="string"?await x0(i):i,c=await b0({...s,plugins:a},{configPath:r}),l=await v0({document:e,externalRefResolver:t,config:c});o.push(...l.filter(({ignored:d})=>!d).map(d=>({...d,scorecardLevel:s.name})))}return o}async function x0(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(`
69
+ `&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Xe.create(0,t);for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return Xe.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function a(y,R,I){return t.call(y)==="[object Number]"&&R<=y&&y<=I}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function l(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=l;function d(y){return t.call(y)==="[object Function]"}e.func=d;function h(y){return y!==null&&typeof y=="object"}e.objectLiteral=h;function v(y,R){return Array.isArray(y)&&y.every(R)}e.typedArray=v})(f||(f={}))});var se=S(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.ProtocolNotificationType=He.ProtocolNotificationType0=He.ProtocolRequestType=He.ProtocolRequestType0=He.RegistrationType=He.MessageDirection=void 0;var Gn=dn(),tf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(tf||(He.MessageDirection=tf={}));var qu=class{constructor(t){this.method=t}};He.RegistrationType=qu;var Nu=class extends Gn.RequestType0{constructor(t){super(t)}};He.ProtocolRequestType0=Nu;var Eu=class extends Gn.RequestType{constructor(t){super(t,Gn.ParameterStructures.byName)}};He.ProtocolRequestType=Eu;var ju=class extends Gn.NotificationType0{constructor(t){super(t)}};He.ProtocolNotificationType0=ju;var Mu=class extends Gn.NotificationType{constructor(t){super(t,Gn.ParameterStructures.byName)}};He.ProtocolNotificationType=Mu});var yo=S(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.objectLiteral=ve.typedArray=ve.stringArray=ve.array=ve.func=ve.error=ve.number=ve.string=ve.boolean=void 0;function U_(e){return e===!0||e===!1}ve.boolean=U_;function nf(e){return typeof e=="string"||e instanceof String}ve.string=nf;function W_(e){return typeof e=="number"||e instanceof Number}ve.number=W_;function B_(e){return e instanceof Error}ve.error=B_;function H_(e){return typeof e=="function"}ve.func=H_;function rf(e){return Array.isArray(e)}ve.array=rf;function z_(e){return rf(e)&&e.every(t=>nf(t))}ve.stringArray=z_;function $_(e,t){return Array.isArray(e)&&e.every(t)}ve.typedArray=$_;function V_(e){return e!==null&&typeof e=="object"}ve.objectLiteral=V_});var af=S(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.ImplementationRequest=void 0;var of=se(),sf;(function(e){e.method="textDocument/implementation",e.messageDirection=of.MessageDirection.clientToServer,e.type=new of.ProtocolRequestType(e.method)})(sf||(bo.ImplementationRequest=sf={}))});var lf=S(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.TypeDefinitionRequest=void 0;var cf=se(),uf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=cf.MessageDirection.clientToServer,e.type=new cf.ProtocolRequestType(e.method)})(uf||(vo.TypeDefinitionRequest=uf={}))});var ff=S(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.DidChangeWorkspaceFoldersNotification=Kn.WorkspaceFoldersRequest=void 0;var xo=se(),pf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=xo.MessageDirection.serverToClient,e.type=new xo.ProtocolRequestType0(e.method)})(pf||(Kn.WorkspaceFoldersRequest=pf={}));var df;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=xo.MessageDirection.clientToServer,e.type=new xo.ProtocolNotificationType(e.method)})(df||(Kn.DidChangeWorkspaceFoldersNotification=df={}))});var hf=S(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.ConfigurationRequest=void 0;var gf=se(),mf;(function(e){e.method="workspace/configuration",e.messageDirection=gf.MessageDirection.serverToClient,e.type=new gf.ProtocolRequestType(e.method)})(mf||(Po.ConfigurationRequest=mf={}))});var vf=S(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.ColorPresentationRequest=Qn.DocumentColorRequest=void 0;var _o=se(),yf;(function(e){e.method="textDocument/documentColor",e.messageDirection=_o.MessageDirection.clientToServer,e.type=new _o.ProtocolRequestType(e.method)})(yf||(Qn.DocumentColorRequest=yf={}));var bf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=_o.MessageDirection.clientToServer,e.type=new _o.ProtocolRequestType(e.method)})(bf||(Qn.ColorPresentationRequest=bf={}))});var _f=S(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.FoldingRangeRefreshRequest=Jn.FoldingRangeRequest=void 0;var Co=se(),xf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=Co.MessageDirection.clientToServer,e.type=new Co.ProtocolRequestType(e.method)})(xf||(Jn.FoldingRangeRequest=xf={}));var Pf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=Co.MessageDirection.serverToClient,e.type=new Co.ProtocolRequestType0(e.method)})(Pf||(Jn.FoldingRangeRefreshRequest=Pf={}))});var Df=S(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.DeclarationRequest=void 0;var Cf=se(),Sf;(function(e){e.method="textDocument/declaration",e.messageDirection=Cf.MessageDirection.clientToServer,e.type=new Cf.ProtocolRequestType(e.method)})(Sf||(So.DeclarationRequest=Sf={}))});var wf=S(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.SelectionRangeRequest=void 0;var Rf=se(),Tf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Rf.MessageDirection.clientToServer,e.type=new Rf.ProtocolRequestType(e.method)})(Tf||(Do.SelectionRangeRequest=Tf={}))});var qf=S(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.WorkDoneProgressCancelNotification=Bt.WorkDoneProgressCreateRequest=Bt.WorkDoneProgress=void 0;var Y_=dn(),Ro=se(),kf;(function(e){e.type=new Y_.ProgressType;function t(n){return n===e.type}e.is=t})(kf||(Bt.WorkDoneProgress=kf={}));var Af;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Ro.MessageDirection.serverToClient,e.type=new Ro.ProtocolRequestType(e.method)})(Af||(Bt.WorkDoneProgressCreateRequest=Af={}));var Of;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Ro.MessageDirection.clientToServer,e.type=new Ro.ProtocolNotificationType(e.method)})(Of||(Bt.WorkDoneProgressCancelNotification=Of={}))});var Mf=S(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.CallHierarchyOutgoingCallsRequest=Ht.CallHierarchyIncomingCallsRequest=Ht.CallHierarchyPrepareRequest=void 0;var Xn=se(),Nf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(Nf||(Ht.CallHierarchyPrepareRequest=Nf={}));var Ef;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(Ef||(Ht.CallHierarchyIncomingCallsRequest=Ef={}));var jf;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(jf||(Ht.CallHierarchyOutgoingCallsRequest=jf={}))});var Bf=S(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.SemanticTokensRefreshRequest=ze.SemanticTokensRangeRequest=ze.SemanticTokensDeltaRequest=ze.SemanticTokensRequest=ze.SemanticTokensRegistrationType=ze.TokenFormat=void 0;var kt=se(),Lf;(function(e){e.Relative="relative"})(Lf||(ze.TokenFormat=Lf={}));var Ir;(function(e){e.method="textDocument/semanticTokens",e.type=new kt.RegistrationType(e.method)})(Ir||(ze.SemanticTokensRegistrationType=Ir={}));var If;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=kt.MessageDirection.clientToServer,e.type=new kt.ProtocolRequestType(e.method),e.registrationMethod=Ir.method})(If||(ze.SemanticTokensRequest=If={}));var Ff;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=kt.MessageDirection.clientToServer,e.type=new kt.ProtocolRequestType(e.method),e.registrationMethod=Ir.method})(Ff||(ze.SemanticTokensDeltaRequest=Ff={}));var Uf;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=kt.MessageDirection.clientToServer,e.type=new kt.ProtocolRequestType(e.method),e.registrationMethod=Ir.method})(Uf||(ze.SemanticTokensRangeRequest=Uf={}));var Wf;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=kt.MessageDirection.serverToClient,e.type=new kt.ProtocolRequestType0(e.method)})(Wf||(ze.SemanticTokensRefreshRequest=Wf={}))});var $f=S(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.ShowDocumentRequest=void 0;var Hf=se(),zf;(function(e){e.method="window/showDocument",e.messageDirection=Hf.MessageDirection.serverToClient,e.type=new Hf.ProtocolRequestType(e.method)})(zf||(To.ShowDocumentRequest=zf={}))});var Gf=S(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.LinkedEditingRangeRequest=void 0;var Vf=se(),Yf;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=Vf.MessageDirection.clientToServer,e.type=new Vf.ProtocolRequestType(e.method)})(Yf||(wo.LinkedEditingRangeRequest=Yf={}))});var ng=S(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.WillDeleteFilesRequest=Ee.DidDeleteFilesNotification=Ee.DidRenameFilesNotification=Ee.WillRenameFilesRequest=Ee.DidCreateFilesNotification=Ee.WillCreateFilesRequest=Ee.FileOperationPatternKind=void 0;var Ze=se(),Kf;(function(e){e.file="file",e.folder="folder"})(Kf||(Ee.FileOperationPatternKind=Kf={}));var Qf;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(Qf||(Ee.WillCreateFilesRequest=Qf={}));var Jf;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Jf||(Ee.DidCreateFilesNotification=Jf={}));var Xf;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(Xf||(Ee.WillRenameFilesRequest=Xf={}));var Zf;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Zf||(Ee.DidRenameFilesNotification=Zf={}));var eg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(eg||(Ee.DidDeleteFilesNotification=eg={}));var tg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(tg||(Ee.WillDeleteFilesRequest=tg={}))});var ag=S(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.MonikerRequest=zt.MonikerKind=zt.UniquenessLevel=void 0;var rg=se(),ig;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(ig||(zt.UniquenessLevel=ig={}));var og;(function(e){e.$import="import",e.$export="export",e.local="local"})(og||(zt.MonikerKind=og={}));var sg;(function(e){e.method="textDocument/moniker",e.messageDirection=rg.MessageDirection.clientToServer,e.type=new rg.ProtocolRequestType(e.method)})(sg||(zt.MonikerRequest=sg={}))});var pg=S($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.TypeHierarchySubtypesRequest=$t.TypeHierarchySupertypesRequest=$t.TypeHierarchyPrepareRequest=void 0;var Zn=se(),cg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(cg||($t.TypeHierarchyPrepareRequest=cg={}));var ug;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(ug||($t.TypeHierarchySupertypesRequest=ug={}));var lg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(lg||($t.TypeHierarchySubtypesRequest=lg={}))});var gg=S(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.InlineValueRefreshRequest=er.InlineValueRequest=void 0;var ko=se(),dg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=ko.MessageDirection.clientToServer,e.type=new ko.ProtocolRequestType(e.method)})(dg||(er.InlineValueRequest=dg={}));var fg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=ko.MessageDirection.serverToClient,e.type=new ko.ProtocolRequestType0(e.method)})(fg||(er.InlineValueRefreshRequest=fg={}))});var bg=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.InlayHintRefreshRequest=Vt.InlayHintResolveRequest=Vt.InlayHintRequest=void 0;var tr=se(),mg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(mg||(Vt.InlayHintRequest=mg={}));var hg;(function(e){e.method="inlayHint/resolve",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(hg||(Vt.InlayHintResolveRequest=hg={}));var yg;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=tr.MessageDirection.serverToClient,e.type=new tr.ProtocolRequestType0(e.method)})(yg||(Vt.InlayHintRefreshRequest=yg={}))});var Dg=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DiagnosticRefreshRequest=et.WorkspaceDiagnosticRequest=et.DocumentDiagnosticRequest=et.DocumentDiagnosticReportKind=et.DiagnosticServerCancellationData=void 0;var Sg=dn(),G_=yo(),nr=se(),vg;(function(e){function t(n){let r=n;return r&&G_.boolean(r.retriggerRequest)}e.is=t})(vg||(et.DiagnosticServerCancellationData=vg={}));var xg;(function(e){e.Full="full",e.Unchanged="unchanged"})(xg||(et.DocumentDiagnosticReportKind=xg={}));var Pg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method),e.partialResult=new Sg.ProgressType})(Pg||(et.DocumentDiagnosticRequest=Pg={}));var _g;(function(e){e.method="workspace/diagnostic",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method),e.partialResult=new Sg.ProgressType})(_g||(et.WorkspaceDiagnosticRequest=_g={}));var Cg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=nr.MessageDirection.serverToClient,e.type=new nr.ProtocolRequestType0(e.method)})(Cg||(et.DiagnosticRefreshRequest=Cg={}))});var qg=S(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.DidCloseNotebookDocumentNotification=de.DidSaveNotebookDocumentNotification=de.DidChangeNotebookDocumentNotification=de.NotebookCellArrayChange=de.DidOpenNotebookDocumentNotification=de.NotebookDocumentSyncRegistrationType=de.NotebookDocument=de.NotebookCell=de.ExecutionSummary=de.NotebookCellKind=void 0;var Fr=(ho(),Zr(mo)),ct=yo(),ht=se(),Lu;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Lu||(de.NotebookCellKind=Lu={}));var Iu;(function(e){function t(i,o){let s={executionOrder:i};return(o===!0||o===!1)&&(s.success=o),s}e.create=t;function n(i){let o=i;return ct.objectLiteral(o)&&Fr.uinteger.is(o.executionOrder)&&(o.success===void 0||ct.boolean(o.success))}e.is=n;function r(i,o){return i===o?!0:i==null||o===null||o===void 0?!1:i.executionOrder===o.executionOrder&&i.success===o.success}e.equals=r})(Iu||(de.ExecutionSummary=Iu={}));var Ao;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ct.objectLiteral(s)&&Lu.is(s.kind)&&Fr.DocumentUri.is(s.document)&&(s.metadata===void 0||ct.objectLiteral(s.metadata))}e.is=n;function r(o,s){let a=new Set;return o.document!==s.document&&a.add("document"),o.kind!==s.kind&&a.add("kind"),o.executionSummary!==s.executionSummary&&a.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!i(o.metadata,s.metadata)&&a.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!Iu.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}e.diff=r;function i(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let a=Array.isArray(o),c=Array.isArray(s);if(a!==c)return!1;if(a&&c){if(o.length!==s.length)return!1;for(let l=0;l<o.length;l++)if(!i(o[l],s[l]))return!1}if(ct.objectLiteral(o)&&ct.objectLiteral(s)){let l=Object.keys(o),d=Object.keys(s);if(l.length!==d.length||(l.sort(),d.sort(),!i(l,d)))return!1;for(let h=0;h<l.length;h++){let v=l[h];if(!i(o[v],s[v]))return!1}}return!0}})(Ao||(de.NotebookCell=Ao={}));var Rg;(function(e){function t(r,i,o,s){return{uri:r,notebookType:i,version:o,cells:s}}e.create=t;function n(r){let i=r;return ct.objectLiteral(i)&&ct.string(i.uri)&&Fr.integer.is(i.version)&&ct.typedArray(i.cells,Ao.is)}e.is=n})(Rg||(de.NotebookDocument=Rg={}));var rr;(function(e){e.method="notebookDocument/sync",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.RegistrationType(e.method)})(rr||(de.NotebookDocumentSyncRegistrationType=rr={}));var Tg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Tg||(de.DidOpenNotebookDocumentNotification=Tg={}));var wg;(function(e){function t(r){let i=r;return ct.objectLiteral(i)&&Fr.uinteger.is(i.start)&&Fr.uinteger.is(i.deleteCount)&&(i.cells===void 0||ct.typedArray(i.cells,Ao.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})(wg||(de.NotebookCellArrayChange=wg={}));var kg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(kg||(de.DidChangeNotebookDocumentNotification=kg={}));var Ag;(function(e){e.method="notebookDocument/didSave",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Ag||(de.DidSaveNotebookDocumentNotification=Ag={}));var Og;(function(e){e.method="notebookDocument/didClose",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Og||(de.DidCloseNotebookDocumentNotification=Og={}))});var jg=S(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.InlineCompletionRequest=void 0;var Ng=se(),Eg;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=Ng.MessageDirection.clientToServer,e.type=new Ng.ProtocolRequestType(e.method)})(Eg||(Oo.InlineCompletionRequest=Eg={}))});var Gm=S(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.WorkspaceSymbolRequest=u.CodeActionResolveRequest=u.CodeActionRequest=u.DocumentSymbolRequest=u.DocumentHighlightRequest=u.ReferencesRequest=u.DefinitionRequest=u.SignatureHelpRequest=u.SignatureHelpTriggerKind=u.HoverRequest=u.CompletionResolveRequest=u.CompletionRequest=u.CompletionTriggerKind=u.PublishDiagnosticsNotification=u.WatchKind=u.RelativePattern=u.FileChangeType=u.DidChangeWatchedFilesNotification=u.WillSaveTextDocumentWaitUntilRequest=u.WillSaveTextDocumentNotification=u.TextDocumentSaveReason=u.DidSaveTextDocumentNotification=u.DidCloseTextDocumentNotification=u.DidChangeTextDocumentNotification=u.TextDocumentContentChangeEvent=u.DidOpenTextDocumentNotification=u.TextDocumentSyncKind=u.TelemetryEventNotification=u.LogMessageNotification=u.ShowMessageRequest=u.ShowMessageNotification=u.MessageType=u.DidChangeConfigurationNotification=u.ExitNotification=u.ShutdownRequest=u.InitializedNotification=u.InitializeErrorCodes=u.InitializeRequest=u.WorkDoneProgressOptions=u.TextDocumentRegistrationOptions=u.StaticRegistrationOptions=u.PositionEncodingKind=u.FailureHandlingKind=u.ResourceOperationKind=u.UnregistrationRequest=u.RegistrationRequest=u.DocumentSelector=u.NotebookCellTextDocumentFilter=u.NotebookDocumentFilter=u.TextDocumentFilter=void 0;u.MonikerRequest=u.MonikerKind=u.UniquenessLevel=u.WillDeleteFilesRequest=u.DidDeleteFilesNotification=u.WillRenameFilesRequest=u.DidRenameFilesNotification=u.WillCreateFilesRequest=u.DidCreateFilesNotification=u.FileOperationPatternKind=u.LinkedEditingRangeRequest=u.ShowDocumentRequest=u.SemanticTokensRegistrationType=u.SemanticTokensRefreshRequest=u.SemanticTokensRangeRequest=u.SemanticTokensDeltaRequest=u.SemanticTokensRequest=u.TokenFormat=u.CallHierarchyPrepareRequest=u.CallHierarchyOutgoingCallsRequest=u.CallHierarchyIncomingCallsRequest=u.WorkDoneProgressCancelNotification=u.WorkDoneProgressCreateRequest=u.WorkDoneProgress=u.SelectionRangeRequest=u.DeclarationRequest=u.FoldingRangeRefreshRequest=u.FoldingRangeRequest=u.ColorPresentationRequest=u.DocumentColorRequest=u.ConfigurationRequest=u.DidChangeWorkspaceFoldersNotification=u.WorkspaceFoldersRequest=u.TypeDefinitionRequest=u.ImplementationRequest=u.ApplyWorkspaceEditRequest=u.ExecuteCommandRequest=u.PrepareRenameRequest=u.RenameRequest=u.PrepareSupportDefaultBehavior=u.DocumentOnTypeFormattingRequest=u.DocumentRangesFormattingRequest=u.DocumentRangeFormattingRequest=u.DocumentFormattingRequest=u.DocumentLinkResolveRequest=u.DocumentLinkRequest=u.CodeLensRefreshRequest=u.CodeLensResolveRequest=u.CodeLensRequest=u.WorkspaceSymbolResolveRequest=void 0;u.InlineCompletionRequest=u.DidCloseNotebookDocumentNotification=u.DidSaveNotebookDocumentNotification=u.DidChangeNotebookDocumentNotification=u.NotebookCellArrayChange=u.DidOpenNotebookDocumentNotification=u.NotebookDocumentSyncRegistrationType=u.NotebookDocument=u.NotebookCell=u.ExecutionSummary=u.NotebookCellKind=u.DiagnosticRefreshRequest=u.WorkspaceDiagnosticRequest=u.DocumentDiagnosticRequest=u.DocumentDiagnosticReportKind=u.DiagnosticServerCancellationData=u.InlayHintRefreshRequest=u.InlayHintResolveRequest=u.InlayHintRequest=u.InlineValueRefreshRequest=u.InlineValueRequest=u.TypeHierarchySupertypesRequest=u.TypeHierarchySubtypesRequest=u.TypeHierarchyPrepareRequest=void 0;var T=se(),Mg=(ho(),Zr(mo)),Te=yo(),K_=af();Object.defineProperty(u,"ImplementationRequest",{enumerable:!0,get:function(){return K_.ImplementationRequest}});var Q_=lf();Object.defineProperty(u,"TypeDefinitionRequest",{enumerable:!0,get:function(){return Q_.TypeDefinitionRequest}});var zm=ff();Object.defineProperty(u,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return zm.WorkspaceFoldersRequest}});Object.defineProperty(u,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return zm.DidChangeWorkspaceFoldersNotification}});var J_=hf();Object.defineProperty(u,"ConfigurationRequest",{enumerable:!0,get:function(){return J_.ConfigurationRequest}});var $m=vf();Object.defineProperty(u,"DocumentColorRequest",{enumerable:!0,get:function(){return $m.DocumentColorRequest}});Object.defineProperty(u,"ColorPresentationRequest",{enumerable:!0,get:function(){return $m.ColorPresentationRequest}});var Vm=_f();Object.defineProperty(u,"FoldingRangeRequest",{enumerable:!0,get:function(){return Vm.FoldingRangeRequest}});Object.defineProperty(u,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return Vm.FoldingRangeRefreshRequest}});var X_=Df();Object.defineProperty(u,"DeclarationRequest",{enumerable:!0,get:function(){return X_.DeclarationRequest}});var Z_=wf();Object.defineProperty(u,"SelectionRangeRequest",{enumerable:!0,get:function(){return Z_.SelectionRangeRequest}});var Hu=qf();Object.defineProperty(u,"WorkDoneProgress",{enumerable:!0,get:function(){return Hu.WorkDoneProgress}});Object.defineProperty(u,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Hu.WorkDoneProgressCreateRequest}});Object.defineProperty(u,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Hu.WorkDoneProgressCancelNotification}});var zu=Mf();Object.defineProperty(u,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return zu.CallHierarchyIncomingCallsRequest}});Object.defineProperty(u,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return zu.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(u,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return zu.CallHierarchyPrepareRequest}});var ir=Bf();Object.defineProperty(u,"TokenFormat",{enumerable:!0,get:function(){return ir.TokenFormat}});Object.defineProperty(u,"SemanticTokensRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRequest}});Object.defineProperty(u,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ir.SemanticTokensDeltaRequest}});Object.defineProperty(u,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRangeRequest}});Object.defineProperty(u,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRefreshRequest}});Object.defineProperty(u,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ir.SemanticTokensRegistrationType}});var eC=$f();Object.defineProperty(u,"ShowDocumentRequest",{enumerable:!0,get:function(){return eC.ShowDocumentRequest}});var tC=Gf();Object.defineProperty(u,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return tC.LinkedEditingRangeRequest}});var mn=ng();Object.defineProperty(u,"FileOperationPatternKind",{enumerable:!0,get:function(){return mn.FileOperationPatternKind}});Object.defineProperty(u,"DidCreateFilesNotification",{enumerable:!0,get:function(){return mn.DidCreateFilesNotification}});Object.defineProperty(u,"WillCreateFilesRequest",{enumerable:!0,get:function(){return mn.WillCreateFilesRequest}});Object.defineProperty(u,"DidRenameFilesNotification",{enumerable:!0,get:function(){return mn.DidRenameFilesNotification}});Object.defineProperty(u,"WillRenameFilesRequest",{enumerable:!0,get:function(){return mn.WillRenameFilesRequest}});Object.defineProperty(u,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return mn.DidDeleteFilesNotification}});Object.defineProperty(u,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return mn.WillDeleteFilesRequest}});var $u=ag();Object.defineProperty(u,"UniquenessLevel",{enumerable:!0,get:function(){return $u.UniquenessLevel}});Object.defineProperty(u,"MonikerKind",{enumerable:!0,get:function(){return $u.MonikerKind}});Object.defineProperty(u,"MonikerRequest",{enumerable:!0,get:function(){return $u.MonikerRequest}});var Vu=pg();Object.defineProperty(u,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Vu.TypeHierarchyPrepareRequest}});Object.defineProperty(u,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Vu.TypeHierarchySubtypesRequest}});Object.defineProperty(u,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Vu.TypeHierarchySupertypesRequest}});var Ym=gg();Object.defineProperty(u,"InlineValueRequest",{enumerable:!0,get:function(){return Ym.InlineValueRequest}});Object.defineProperty(u,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return Ym.InlineValueRefreshRequest}});var Yu=bg();Object.defineProperty(u,"InlayHintRequest",{enumerable:!0,get:function(){return Yu.InlayHintRequest}});Object.defineProperty(u,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Yu.InlayHintResolveRequest}});Object.defineProperty(u,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Yu.InlayHintRefreshRequest}});var Ur=Dg();Object.defineProperty(u,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Ur.DiagnosticServerCancellationData}});Object.defineProperty(u,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Ur.DocumentDiagnosticReportKind}});Object.defineProperty(u,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Ur.DocumentDiagnosticRequest}});Object.defineProperty(u,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Ur.WorkspaceDiagnosticRequest}});Object.defineProperty(u,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Ur.DiagnosticRefreshRequest}});var yt=qg();Object.defineProperty(u,"NotebookCellKind",{enumerable:!0,get:function(){return yt.NotebookCellKind}});Object.defineProperty(u,"ExecutionSummary",{enumerable:!0,get:function(){return yt.ExecutionSummary}});Object.defineProperty(u,"NotebookCell",{enumerable:!0,get:function(){return yt.NotebookCell}});Object.defineProperty(u,"NotebookDocument",{enumerable:!0,get:function(){return yt.NotebookDocument}});Object.defineProperty(u,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return yt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(u,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidOpenNotebookDocumentNotification}});Object.defineProperty(u,"NotebookCellArrayChange",{enumerable:!0,get:function(){return yt.NotebookCellArrayChange}});Object.defineProperty(u,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidChangeNotebookDocumentNotification}});Object.defineProperty(u,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidSaveNotebookDocumentNotification}});Object.defineProperty(u,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidCloseNotebookDocumentNotification}});var nC=jg();Object.defineProperty(u,"InlineCompletionRequest",{enumerable:!0,get:function(){return nC.InlineCompletionRequest}});var Fu;(function(e){function t(n){let r=n;return Te.string(r)||Te.string(r.language)||Te.string(r.scheme)||Te.string(r.pattern)}e.is=t})(Fu||(u.TextDocumentFilter=Fu={}));var Uu;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebookType)||Te.string(r.scheme)||Te.string(r.pattern))}e.is=t})(Uu||(u.NotebookDocumentFilter=Uu={}));var Wu;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebook)||Uu.is(r.notebook))&&(r.language===void 0||Te.string(r.language))}e.is=t})(Wu||(u.NotebookCellTextDocumentFilter=Wu={}));var Bu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Te.string(r)&&!Fu.is(r)&&!Wu.is(r))return!1;return!0}e.is=t})(Bu||(u.DocumentSelector=Bu={}));var Lg;(function(e){e.method="client/registerCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(Lg||(u.RegistrationRequest=Lg={}));var Ig;(function(e){e.method="client/unregisterCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(Ig||(u.UnregistrationRequest=Ig={}));var Fg;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(Fg||(u.ResourceOperationKind=Fg={}));var Ug;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(Ug||(u.FailureHandlingKind=Ug={}));var Wg;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(Wg||(u.PositionEncodingKind=Wg={}));var Bg;(function(e){function t(n){let r=n;return r&&Te.string(r.id)&&r.id.length>0}e.hasId=t})(Bg||(u.StaticRegistrationOptions=Bg={}));var Hg;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||Bu.is(r.documentSelector))}e.is=t})(Hg||(u.TextDocumentRegistrationOptions=Hg={}));var zg;(function(e){function t(r){let i=r;return Te.objectLiteral(i)&&(i.workDoneProgress===void 0||Te.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&Te.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(zg||(u.WorkDoneProgressOptions=zg={}));var $g;(function(e){e.method="initialize",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})($g||(u.InitializeRequest=$g={}));var Vg;(function(e){e.unknownProtocolVersion=1})(Vg||(u.InitializeErrorCodes=Vg={}));var Yg;(function(e){e.method="initialized",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Yg||(u.InitializedNotification=Yg={}));var Gg;(function(e){e.method="shutdown",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType0(e.method)})(Gg||(u.ShutdownRequest=Gg={}));var Kg;(function(e){e.method="exit",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType0(e.method)})(Kg||(u.ExitNotification=Kg={}));var Qg;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Qg||(u.DidChangeConfigurationNotification=Qg={}));var Jg;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(Jg||(u.MessageType=Jg={}));var Xg;(function(e){e.method="window/showMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(Xg||(u.ShowMessageNotification=Xg={}));var Zg;(function(e){e.method="window/showMessageRequest",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(Zg||(u.ShowMessageRequest=Zg={}));var em;(function(e){e.method="window/logMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(em||(u.LogMessageNotification=em={}));var tm;(function(e){e.method="telemetry/event",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(tm||(u.TelemetryEventNotification=tm={}));var nm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(nm||(u.TextDocumentSyncKind=nm={}));var rm;(function(e){e.method="textDocument/didOpen",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(rm||(u.DidOpenTextDocumentNotification=rm={}));var im;(function(e){function t(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}e.isIncremental=t;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}e.isFull=n})(im||(u.TextDocumentContentChangeEvent=im={}));var om;(function(e){e.method="textDocument/didChange",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(om||(u.DidChangeTextDocumentNotification=om={}));var sm;(function(e){e.method="textDocument/didClose",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(sm||(u.DidCloseTextDocumentNotification=sm={}));var am;(function(e){e.method="textDocument/didSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(am||(u.DidSaveTextDocumentNotification=am={}));var cm;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(cm||(u.TextDocumentSaveReason=cm={}));var um;(function(e){e.method="textDocument/willSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(um||(u.WillSaveTextDocumentNotification=um={}));var lm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(lm||(u.WillSaveTextDocumentWaitUntilRequest=lm={}));var pm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(pm||(u.DidChangeWatchedFilesNotification=pm={}));var dm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(dm||(u.FileChangeType=dm={}));var fm;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Mg.URI.is(r.baseUri)||Mg.WorkspaceFolder.is(r.baseUri))&&Te.string(r.pattern)}e.is=t})(fm||(u.RelativePattern=fm={}));var gm;(function(e){e.Create=1,e.Change=2,e.Delete=4})(gm||(u.WatchKind=gm={}));var mm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(mm||(u.PublishDiagnosticsNotification=mm={}));var hm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(hm||(u.CompletionTriggerKind=hm={}));var ym;(function(e){e.method="textDocument/completion",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(ym||(u.CompletionRequest=ym={}));var bm;(function(e){e.method="completionItem/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(bm||(u.CompletionResolveRequest=bm={}));var vm;(function(e){e.method="textDocument/hover",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(vm||(u.HoverRequest=vm={}));var xm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(xm||(u.SignatureHelpTriggerKind=xm={}));var Pm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Pm||(u.SignatureHelpRequest=Pm={}));var _m;(function(e){e.method="textDocument/definition",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(_m||(u.DefinitionRequest=_m={}));var Cm;(function(e){e.method="textDocument/references",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Cm||(u.ReferencesRequest=Cm={}));var Sm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Sm||(u.DocumentHighlightRequest=Sm={}));var Dm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Dm||(u.DocumentSymbolRequest=Dm={}));var Rm;(function(e){e.method="textDocument/codeAction",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Rm||(u.CodeActionRequest=Rm={}));var Tm;(function(e){e.method="codeAction/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Tm||(u.CodeActionResolveRequest=Tm={}));var wm;(function(e){e.method="workspace/symbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(wm||(u.WorkspaceSymbolRequest=wm={}));var km;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(km||(u.WorkspaceSymbolResolveRequest=km={}));var Am;(function(e){e.method="textDocument/codeLens",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Am||(u.CodeLensRequest=Am={}));var Om;(function(e){e.method="codeLens/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Om||(u.CodeLensResolveRequest=Om={}));var qm;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType0(e.method)})(qm||(u.CodeLensRefreshRequest=qm={}));var Nm;(function(e){e.method="textDocument/documentLink",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Nm||(u.DocumentLinkRequest=Nm={}));var Em;(function(e){e.method="documentLink/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Em||(u.DocumentLinkResolveRequest=Em={}));var jm;(function(e){e.method="textDocument/formatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(jm||(u.DocumentFormattingRequest=jm={}));var Mm;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Mm||(u.DocumentRangeFormattingRequest=Mm={}));var Lm;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Lm||(u.DocumentRangesFormattingRequest=Lm={}));var Im;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Im||(u.DocumentOnTypeFormattingRequest=Im={}));var Fm;(function(e){e.Identifier=1})(Fm||(u.PrepareSupportDefaultBehavior=Fm={}));var Um;(function(e){e.method="textDocument/rename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Um||(u.RenameRequest=Um={}));var Wm;(function(e){e.method="textDocument/prepareRename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Wm||(u.PrepareRenameRequest=Wm={}));var Bm;(function(e){e.method="workspace/executeCommand",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Bm||(u.ExecuteCommandRequest=Bm={}));var Hm;(function(e){e.method="workspace/applyEdit",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType("workspace/applyEdit")})(Hm||(u.ApplyWorkspaceEditRequest=Hm={}))});var Qm=S(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.createProtocolConnection=void 0;var Km=dn();function rC(e,t,n,r){return Km.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Km.createMessageConnection)(e,t,n,r)}qo.createProtocolConnection=rC});var Xm=S($e=>{"use strict";var iC=$e&&$e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),No=$e&&$e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&iC(t,e,n)};Object.defineProperty($e,"__esModule",{value:!0});$e.LSPErrorCodes=$e.createProtocolConnection=void 0;No(dn(),$e);No((ho(),Zr(mo)),$e);No(se(),$e);No(Gm(),$e);var oC=Qm();Object.defineProperty($e,"createProtocolConnection",{enumerable:!0,get:function(){return oC.createProtocolConnection}});var Jm;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(Jm||($e.LSPErrorCodes=Jm={}))});var ye=S(bt=>{"use strict";var sC=bt&&bt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Zm=bt&&bt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&sC(t,e,n)};Object.defineProperty(bt,"__esModule",{value:!0});bt.createProtocolConnection=void 0;var aC=kc();Zm(kc(),bt);Zm(Xm(),bt);function cC(e,t,n,r){return(0,aC.createMessageConnection)(e,t,n,r)}bt.createProtocolConnection=cC});var Ku=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.SemanticTokensBuilder=Yt.SemanticTokensDiff=Yt.SemanticTokensFeature=void 0;var Eo=ye(),uC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(Eo.SemanticTokensRefreshRequest.type),on:t=>{let n=Eo.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=Eo.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=Eo.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Yt.SemanticTokensFeature=uC;var jo=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}]:[]}};Yt.SemanticTokensDiff=jo;var Gu=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 jo(this._prevData,this._data).computeDiff()}:this.build()}};Yt.SemanticTokensBuilder=Gu});var eh=S(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.InlineCompletionFeature=void 0;var lC=ye(),pC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(lC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Mo.InlineCompletionFeature=pC});var Ju=S(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.TextDocuments=void 0;var hn=ye(),Qu=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new hn.Emitter,this._onDidOpen=new hn.Emitter,this._onDidClose=new hn.Emitter,this._onDidSave=new hn.Emitter,this._onWillSave=new hn.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=hn.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}))})),hn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Lo.TextDocuments=Qu});var Zu=S(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.NotebookDocuments=or.NotebookSyncFeature=void 0;var tt=ye(),th=Ju(),dC=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(tt.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(tt.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(tt.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(tt.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};or.NotebookSyncFeature=dC;var Io=class e{onDidOpenTextDocument(t){return this.openHandler=t,tt.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,tt.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,tt.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(t){this.closeHandler&&this.closeHandler(t)}onWillSaveTextDocument(){return e.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return e.NULL_DISPOSE}onDidSaveTextDocument(){return e.NULL_DISPOSE}};Io.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var Xu=class{constructor(t){t instanceof th.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new th.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new tt.Emitter,this._onDidChange=new tt.Emitter,this._onDidSave=new tt.Emitter,this._onDidClose=new tt.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(t){return this._cellTextDocuments.get(t.document)}getNotebookDocument(t){return this.notebookDocuments.get(t)}getNotebookCell(t){let n=this.notebookCellMap.get(t);return n&&n[0]}findNotebookDocumentForCell(t){let n=typeof t=="string"?t:t.document,r=this.notebookCellMap.get(n);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(t){let n=new Io,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let l=[],d=[],h=[],v=[];if(c.cells!==void 0){let Y=c.cells;if(Y.structure!==void 0){let m=Y.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),Y.structure.didOpen!==void 0)for(let g of Y.structure.didOpen)n.openTextDocument({textDocument:g}),l.push(g.uri);if(Y.structure.didClose)for(let g of Y.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(Y.data!==void 0){let m=new Map(Y.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let w=m.get(o.cells[g].document);if(w!==void 0){let V=o.cells.splice(g,1,w);if(h.push({old:V[0],new:w}),m.delete(w.document),m.size===0)break}}}if(Y.textContent!==void 0)for(let m of Y.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),v.push(m.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let R=[];for(let Y of l)R.push(this.getNotebookCell(Y));let I=[];for(let Y of d)I.push(this.getNotebookCell(Y));let $=[];for(let Y of v)$.push(this.getNotebookCell(Y));(R.length>0||I.length>0||h.length>0||$.length>0)&&(y.cells={added:R,removed:I,changed:{data:h,textContent:$}}),(y.metadata!==void 0||y.cells!==void 0)&&this._onDidChange.fire(y)})),r.push(t.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(t.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),tt.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};or.NotebookDocuments=Xu});var el=S(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 fC(e){return e===!0||e===!1}xe.boolean=fC;function nh(e){return typeof e=="string"||e instanceof String}xe.string=nh;function gC(e){return typeof e=="number"||e instanceof Number}xe.number=gC;function mC(e){return e instanceof Error}xe.error=mC;function rh(e){return typeof e=="function"}xe.func=rh;function ih(e){return Array.isArray(e)}xe.array=ih;function hC(e){return ih(e)&&e.every(t=>nh(t))}xe.stringArray=hC;function yC(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=yC;function bC(e){return e&&rh(e.then)}xe.thenable=bC});var tl=S(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.generateUuid=nt.parse=nt.isUUID=nt.v4=nt.empty=void 0;var Wr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Br=class e extends Wr{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(""))}};Br._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Br._timeHighBits=["8","9","a","b"];nt.empty=new Wr("00000000-0000-0000-0000-000000000000");function oh(){return new Br}nt.v4=oh;var vC=/^[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 vC.test(e)}nt.isUUID=sh;function xC(e){if(!sh(e))throw new Error("invalid uuid");return new Wr(e)}nt.parse=xC;function PC(){return oh().asHex()}nt.generateUuid=PC});var ah=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.attachPartialResult=Kt.ProgressFeature=Kt.attachWorkDone=void 0;var Gt=ye(),_C=tl(),yn=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(Gt.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(Gt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Gt.WorkDoneProgress.type,this._token,{kind:"end"})}};yn.Instances=new Map;var Fo=class extends yn{constructor(t,n){super(t,n),this._source=new Gt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Hr=class{constructor(){}begin(){}report(){}done(){}},Uo=class extends Hr{constructor(){super(),this._source=new Gt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function CC(e,t){if(t===void 0||t.workDoneToken===void 0)return new Hr;let n=t.workDoneToken;return delete t.workDoneToken,new yn(e,n)}Kt.attachWorkDone=CC;var SC=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Gt.WorkDoneProgressCancelNotification.type,n=>{let r=yn.Instances.get(n.token);(r instanceof Fo||r instanceof Uo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Hr:new yn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,_C.generateUuid)();return this.connection.sendRequest(Gt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Fo(this.connection,t))}else return Promise.resolve(new Uo)}};Kt.ProgressFeature=SC;var nl;(function(e){e.type=new Gt.ProgressType})(nl||(nl={}));var rl=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(nl.type,this._token,t)}};function DC(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new rl(e,n)}Kt.attachPartialResult=DC});var ch=S(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.ConfigurationFeature=void 0;var RC=ye(),TC=el(),wC=e=>class extends e{getConfiguration(t){return t?TC.string(t)?this._getConfiguration({section:t}):this._getConfiguration(t):this._getConfiguration({})}_getConfiguration(t){let n={items:Array.isArray(t)?t:[t]};return this.connection.sendRequest(RC.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};Wo.ConfigurationFeature=wC});var uh=S(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.WorkspaceFoldersFeature=void 0;var Bo=ye(),kC=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Bo.Emitter,this.connection.onNotification(Bo.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(Bo.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(Bo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Ho.WorkspaceFoldersFeature=kC});var lh=S(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.CallHierarchyFeature=void 0;var il=ye(),AC=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(il.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=il.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=il.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};zo.CallHierarchyFeature=AC});var ph=S($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.ShowDocumentFeature=void 0;var OC=ye(),qC=e=>class extends e{showDocument(t){return this.connection.sendRequest(OC.ShowDocumentRequest.type,t)}};$o.ShowDocumentFeature=qC});var dh=S(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.FileOperationsFeature=void 0;var sr=ye(),NC=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(sr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(sr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(sr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(sr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(sr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(sr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};Vo.FileOperationsFeature=NC});var fh=S(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.LinkedEditingRangeFeature=void 0;var EC=ye(),jC=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(EC.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};Yo.LinkedEditingRangeFeature=jC});var gh=S(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.TypeHierarchyFeature=void 0;var ol=ye(),MC=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(ol.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=ol.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=ol.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Go.TypeHierarchyFeature=MC});var hh=S(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.InlineValueFeature=void 0;var mh=ye(),LC=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(mh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(mh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Ko.InlineValueFeature=LC});var bh=S(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.FoldingRangeFeature=void 0;var yh=ye(),IC=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(yh.FoldingRangeRefreshRequest.type),on:t=>{let n=yh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Qo.FoldingRangeFeature=IC});var vh=S(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.InlayHintFeature=void 0;var sl=ye(),FC=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(sl.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(sl.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(sl.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};Jo.InlayHintFeature=FC});var xh=S(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.DiagnosticFeature=void 0;var zr=ye(),UC=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(zr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(zr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(zr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(zr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(zr.WorkspaceDiagnosticRequest.partialResult,n)))}}};Xo.DiagnosticFeature=UC});var Ph=S(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.MonikerFeature=void 0;var WC=ye(),BC=e=>class extends e{get moniker(){return{on:t=>{let n=WC.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Zo.MonikerFeature=BC});var Mh=S(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.createConnection=Q.combineFeatures=Q.combineNotebooksFeatures=Q.combineLanguagesFeatures=Q.combineWorkspaceFeatures=Q.combineWindowFeatures=Q.combineClientFeatures=Q.combineTracerFeatures=Q.combineTelemetryFeatures=Q.combineConsoleFeatures=Q._NotebooksImpl=Q._LanguagesImpl=Q.BulkUnregistration=Q.BulkRegistration=Q.ErrorMessageTracker=void 0;var O=ye(),rt=el(),cl=tl(),B=ah(),HC=ch(),zC=uh(),$C=lh(),VC=Ku(),YC=ph(),GC=dh(),KC=fh(),QC=gh(),JC=hh(),XC=bh(),ZC=vh(),e0=xh(),t0=Zu(),n0=Ph();function al(e){if(e!==null)return e}var ul=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=ul;var es=class{constructor(){}rawAttach(t){this._rawConnection=t}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(t){}initialize(t){}error(t){this.send(O.MessageType.Error,t)}warn(t){this.send(O.MessageType.Warning,t)}info(t){this.send(O.MessageType.Info,t)}log(t){this.send(O.MessageType.Log,t)}debug(t){this.send(O.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(O.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,O.RAL)().console.error("Sending log message failed")})}},ll=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}showErrorMessage(t,...n){let r={type:O.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(al)}showWarningMessage(t,...n){let r={type:O.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(al)}showInformationMessage(t,...n){let r={type:O.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(al)}},_h=(0,YC.ShowDocumentFeature)((0,B.ProgressFeature)(ll)),Ch;(function(e){function t(){return new ts}e.create=t})(Ch||(Q.BulkRegistration=Ch={}));var ts=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=rt.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=cl.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Sh;(function(e){function t(){return new $r(void 0,[])}e.create=t})(Sh||(Q.BulkUnregistration=Sh={}));var $r=class{constructor(t,n){this._connection=t,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(t){this._connection=t}add(t){this._unregistrations.set(t.method,t)}dispose(){let t=[];for(let r of this._unregistrations.values())t.push(r);let n={unregisterations:t};this._connection.sendRequest(O.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=rt.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(O.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},ns=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 ts?this.registerMany(t):t instanceof $r?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=rt.string(n)?n:n.method,o=cl.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(O.RegistrationRequest.type,s).then(a=>(t.add({id:o,method:i}),t),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(t,n){let r=rt.string(t)?t:t.method,i=cl.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(O.RegistrationRequest.type,o).then(s=>O.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),s=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(s)))}unregisterSingle(t,n){let r={unregisterations:[{id:t,method:n}]};return this.connection.sendRequest(O.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${t} failed.`)})}registerMany(t){let n=t.asRegistrationParams();return this.connection.sendRequest(O.RegistrationRequest.type,n).then(()=>new $r(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},pl=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}applyEdit(t){function n(i){return i&&!!i.edit}let r=n(t)?t:{edit:t};return this.connection.sendRequest(O.ApplyWorkspaceEditRequest.type,r)}},Dh=(0,GC.FileOperationsFeature)((0,zC.WorkspaceFoldersFeature)((0,HC.ConfigurationFeature)(pl))),rs=class{constructor(){this._trace=O.Trace.Off}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}set trace(t){this._trace=t}log(t,n){this._trace!==O.Trace.Off&&this.connection.sendNotification(O.LogTraceNotification.type,{message:t,verbose:this._trace===O.Trace.Verbose?n:void 0}).catch(()=>{})}},is=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}logEvent(t){this.connection.sendNotification(O.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},os=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._LanguagesImpl=os;var Rh=(0,XC.FoldingRangeFeature)((0,n0.MonikerFeature)((0,e0.DiagnosticFeature)((0,ZC.InlayHintFeature)((0,JC.InlineValueFeature)((0,QC.TypeHierarchyFeature)((0,KC.LinkedEditingRangeFeature)((0,VC.SemanticTokensFeature)((0,$C.CallHierarchyFeature)(os))))))))),ss=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._NotebooksImpl=ss;var Th=(0,t0.NotebookSyncFeature)(ss);function wh(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=wh;function kh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=kh;function Ah(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Ah;function Oh(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Oh;function qh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=qh;function Nh(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=Nh;function Eh(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=Eh;function jh(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=jh;function r0(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,wh),tracer:n(e.tracer,t.tracer,Ah),telemetry:n(e.telemetry,t.telemetry,kh),client:n(e.client,t.client,Oh),window:n(e.window,t.window,qh),workspace:n(e.workspace,t.workspace,Nh),languages:n(e.languages,t.languages,Eh),notebooks:n(e.notebooks,t.notebooks,jh)}}Q.combineFeatures=r0;function i0(e,t,n){let r=n&&n.console?new(n.console(es)):new es,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(rs)):new rs,s=n&&n.telemetry?new(n.telemetry(is)):new is,a=n&&n.client?new(n.client(ns)):new ns,c=n&&n.window?new(n.window(_h)):new _h,l=n&&n.workspace?new(n.workspace(Dh)):new Dh,d=n&&n.languages?new(n.languages(Rh)):new Rh,h=n&&n.notebooks?new(n.notebooks(Th)):new Th,v=[r,o,s,a,c,l,d,h];function y(m){return m instanceof Promise?m:rt.thenable(m)?new Promise((g,w)=>{m.then(V=>g(V),V=>w(V))}):Promise.resolve(m)}let R,I,$,Y={listen:()=>i.listen(),sendRequest:(m,...g)=>i.sendRequest(rt.string(m)?m:m.method,...g),onRequest:(m,g)=>i.onRequest(m,g),sendNotification:(m,g)=>{let w=rt.string(m)?m:m.method;return i.sendNotification(w,g)},onNotification:(m,g)=>i.onNotification(m,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(I=m,{dispose:()=>{I=void 0}}),onInitialized:m=>i.onNotification(O.InitializedNotification.type,m),onShutdown:m=>(R=m,{dispose:()=>{R=void 0}}),onExit:m=>($=m,{dispose:()=>{$=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return c},get workspace(){return l},get languages(){return d},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(O.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(O.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(O.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(O.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(O.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(O.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(O.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(O.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(O.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(O.HoverRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:m=>i.onRequest(O.CompletionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:m=>i.onRequest(O.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(O.SignatureHelpRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:m=>i.onRequest(O.DeclarationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:m=>i.onRequest(O.DefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:m=>i.onRequest(O.TypeDefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:m=>i.onRequest(O.ImplementationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:m=>i.onRequest(O.ReferencesRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:m=>i.onRequest(O.DocumentHighlightRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:m=>i.onRequest(O.DocumentSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:m=>i.onRequest(O.WorkspaceSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:m=>i.onRequest(O.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(O.CodeActionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:m=>i.onRequest(O.CodeActionResolveRequest.type,(g,w)=>m(g,w)),onCodeLens:m=>i.onRequest(O.CodeLensRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:m=>i.onRequest(O.CodeLensResolveRequest.type,(g,w)=>m(g,w)),onDocumentFormatting:m=>i.onRequest(O.DocumentFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:m=>i.onRequest(O.DocumentRangeFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(O.DocumentOnTypeFormattingRequest.type,(g,w)=>m(g,w)),onRenameRequest:m=>i.onRequest(O.RenameRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:m=>i.onRequest(O.PrepareRenameRequest.type,(g,w)=>m(g,w)),onDocumentLinks:m=>i.onRequest(O.DocumentLinkRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:m=>i.onRequest(O.DocumentLinkResolveRequest.type,(g,w)=>m(g,w)),onDocumentColor:m=>i.onRequest(O.DocumentColorRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:m=>i.onRequest(O.ColorPresentationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:m=>i.onRequest(O.FoldingRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:m=>i.onRequest(O.SelectionRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:m=>i.onRequest(O.ExecuteCommandRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let m of v)m.attach(Y);return i.onRequest(O.InitializeRequest.type,m=>{t.initialize(m),rt.string(m.trace)&&(o.trace=O.Trace.fromString(m.trace));for(let g of v)g.initialize(m.capabilities);if(I){let g=I(m,new O.CancellationTokenSource().token,(0,B.attachWorkDone)(i,m),void 0);return y(g).then(w=>{if(w instanceof O.ResponseError)return w;let V=w;V||(V={capabilities:{}});let X=V.capabilities;X||(X={},V.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None:!rt.number(X.textDocumentSync)&&!rt.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None);for(let it of v)it.fillServerCapabilities(X);return V})}else{let g={capabilities:{textDocumentSync:O.TextDocumentSyncKind.None}};for(let w of v)w.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(O.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,R)return R(new O.CancellationTokenSource().token)}),i.onNotification(O.ExitNotification.type,()=>{try{$&&$()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(O.SetTraceNotification.type,m=>{o.trace=O.Trace.fromString(m.value)}),Y}Q.createConnection=i0});var dl=S(je=>{"use strict";var o0=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]})),Ih=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&o0(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});je.ProposedFeatures=je.NotebookDocuments=je.TextDocuments=je.SemanticTokensBuilder=void 0;var s0=Ku();Object.defineProperty(je,"SemanticTokensBuilder",{enumerable:!0,get:function(){return s0.SemanticTokensBuilder}});var a0=eh();Ih(ye(),je);var c0=Ju();Object.defineProperty(je,"TextDocuments",{enumerable:!0,get:function(){return c0.TextDocuments}});var u0=Zu();Object.defineProperty(je,"NotebookDocuments",{enumerable:!0,get:function(){return u0.NotebookDocuments}});Ih(Mh(),je);var Lh;(function(e){e.all={__brand:"features",languages:a0.InlineCompletionFeature}})(Lh||(je.ProposedFeatures=Lh={}))});var Uh=S((ew,Fh)=>{"use strict";Fh.exports=ye()});var fl=S(vt=>{"use strict";var l0=vt&&vt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Bh=vt&&vt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&l0(t,e,n)};Object.defineProperty(vt,"__esModule",{value:!0});vt.createConnection=void 0;var as=dl();Bh(Uh(),vt);Bh(dl(),vt);var Wh=!1,p0={initialize:e=>{},get shutdownReceived(){return Wh},set shutdownReceived(e){Wh=e},exit:e=>{}};function d0(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),as.ConnectionStrategy.is(e)||as.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=l=>(0,as.createProtocolConnection)(o,s,l,a);return(0,as.createConnection)(c,p0,i)}vt.createConnection=d0});var Qt=S((nw,Hh)=>{"use strict";Hh.exports=fl()});var Cl=S((Vw,ny)=>{"use strict";function xt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ty(e,t){for(var n="",r=0,i=-1,o=0,s,a=0;a<=e.length;++a){if(a<e.length)s=e.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,o=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return n}function Z0(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var ur={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),xt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=ty(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(xt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=ty(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return xt(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var r=arguments[n];xt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":ur.normalize(t)},relative:function(t,n){if(xt(t),xt(n),t===n||(t=ur.resolve(t),n=ur.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,l=o<c?o:c,d=-1,h=0;h<=l;++h){if(h===l){if(c>l){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>l&&(t.charCodeAt(r+h)===47?d=h:h===0&&(d=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(d=h)}var R="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(R.length===0?R+="..":R+="/..");return R.length>0?R+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(xt(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,o=!0,s=t.length-1;s>=1;--s)if(n=t.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');xt(t);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,c=-1;for(s=t.length-1;s>=0;--s){var l=t.charCodeAt(s);if(l===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(l===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=c))}return r===i?i=c:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){xt(t);for(var n=-1,r=0,i=-1,o=!0,s=0,a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(c===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),c===46?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return Z0("/",t)},parse:function(t){xt(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,c=-1,l=!0,d=t.length-1,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!l){a=d+1;break}continue}c===-1&&(l=!1,c=d+1),r===46?s===-1?s=d:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||c===-1||h===0||h===1&&s===c-1&&s===a+1?c!==-1&&(a===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(a,c)):(a===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(a,s),n.base=t.slice(a,c)),n.ext=t.slice(s,c)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};ur.posix=ur;ny.exports=ur});import{createConfig as fd,loadConfig as xx,DEFAULT_CONFIG as Px}from"@redocly/openapi-core";var wl;(()=>{"use strict";var e={975:k=>{function b(P){if(typeof P!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(P))}function E(P,C){for(var D,N="",M=0,q=-1,z=0,G=0;G<=P.length;++G){if(G<P.length)D=P.charCodeAt(G);else{if(D===47)break;D=47}if(D===47){if(!(q===G-1||z===1))if(q!==G-1&&z===2){if(N.length<2||M!==2||N.charCodeAt(N.length-1)!==46||N.charCodeAt(N.length-2)!==46){if(N.length>2){var Ce=N.lastIndexOf("/");if(Ce!==N.length-1){Ce===-1?(N="",M=0):M=(N=N.slice(0,Ce)).length-1-N.lastIndexOf("/"),q=G,z=0;continue}}else if(N.length===2||N.length===1){N="",M=0,q=G,z=0;continue}}C&&(N.length>0?N+="/..":N="..",M=2)}else N.length>0?N+="/"+P.slice(q+1,G):N=P.slice(q+1,G),M=G-q-1;q=G,z=0}else D===46&&z!==-1?++z:z=-1}return N}var j={resolve:function(){for(var P,C="",D=!1,N=arguments.length-1;N>=-1&&!D;N--){var M;N>=0?M=arguments[N]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(C=M+"/"+C,D=M.charCodeAt(0)===47)}return C=E(C,!D),D?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(P){if(b(P),P.length===0)return".";var C=P.charCodeAt(0)===47,D=P.charCodeAt(P.length-1)===47;return(P=E(P,!C)).length!==0||C||(P="."),P.length>0&&D&&(P+="/"),C?"/"+P:P},isAbsolute:function(P){return b(P),P.length>0&&P.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var P,C=0;C<arguments.length;++C){var D=arguments[C];b(D),D.length>0&&(P===void 0?P=D:P+="/"+D)}return P===void 0?".":j.normalize(P)},relative:function(P,C){if(b(P),b(C),P===C||(P=j.resolve(P))===(C=j.resolve(C)))return"";for(var D=1;D<P.length&&P.charCodeAt(D)===47;++D);for(var N=P.length,M=N-D,q=1;q<C.length&&C.charCodeAt(q)===47;++q);for(var z=C.length-q,G=M<z?M:z,Ce=-1,ee=0;ee<=G;++ee){if(ee===G){if(z>G){if(C.charCodeAt(q+ee)===47)return C.slice(q+ee+1);if(ee===0)return C.slice(q+ee)}else M>G&&(P.charCodeAt(D+ee)===47?Ce=ee:ee===0&&(Ce=0));break}var ot=P.charCodeAt(D+ee);if(ot!==C.charCodeAt(q+ee))break;ot===47&&(Ce=ee)}var tn="";for(ee=D+Ce+1;ee<=N;++ee)ee!==N&&P.charCodeAt(ee)!==47||(tn.length===0?tn+="..":tn+="/..");return tn.length>0?tn+C.slice(q+Ce):(q+=Ce,C.charCodeAt(q)===47&&++q,C.slice(q))},_makeLong:function(P){return P},dirname:function(P){if(b(P),P.length===0)return".";for(var C=P.charCodeAt(0),D=C===47,N=-1,M=!0,q=P.length-1;q>=1;--q)if((C=P.charCodeAt(q))===47){if(!M){N=q;break}}else M=!1;return N===-1?D?"/":".":D&&N===1?"//":P.slice(0,N)},basename:function(P,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(P);var D,N=0,M=-1,q=!0;if(C!==void 0&&C.length>0&&C.length<=P.length){if(C.length===P.length&&C===P)return"";var z=C.length-1,G=-1;for(D=P.length-1;D>=0;--D){var Ce=P.charCodeAt(D);if(Ce===47){if(!q){N=D+1;break}}else G===-1&&(q=!1,G=D+1),z>=0&&(Ce===C.charCodeAt(z)?--z==-1&&(M=D):(z=-1,M=G))}return N===M?M=G:M===-1&&(M=P.length),P.slice(N,M)}for(D=P.length-1;D>=0;--D)if(P.charCodeAt(D)===47){if(!q){N=D+1;break}}else M===-1&&(q=!1,M=D+1);return M===-1?"":P.slice(N,M)},extname:function(P){b(P);for(var C=-1,D=0,N=-1,M=!0,q=0,z=P.length-1;z>=0;--z){var G=P.charCodeAt(z);if(G!==47)N===-1&&(M=!1,N=z+1),G===46?C===-1?C=z:q!==1&&(q=1):C!==-1&&(q=-1);else if(!M){D=z+1;break}}return C===-1||N===-1||q===0||q===1&&C===N-1&&C===D+1?"":P.slice(C,N)},format:function(P){if(P===null||typeof P!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof P);return(function(C,D){var N=D.dir||D.root,M=D.base||(D.name||"")+(D.ext||"");return N?N===D.root?N+M:N+"/"+M:M})(0,P)},parse:function(P){b(P);var C={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return C;var D,N=P.charCodeAt(0),M=N===47;M?(C.root="/",D=1):D=0;for(var q=-1,z=0,G=-1,Ce=!0,ee=P.length-1,ot=0;ee>=D;--ee)if((N=P.charCodeAt(ee))!==47)G===-1&&(Ce=!1,G=ee+1),N===46?q===-1?q=ee:ot!==1&&(ot=1):q!==-1&&(ot=-1);else if(!Ce){z=ee+1;break}return q===-1||G===-1||ot===0||ot===1&&q===G-1&&q===z+1?G!==-1&&(C.base=C.name=z===0&&M?P.slice(1,G):P.slice(z,G)):(z===0&&M?(C.name=P.slice(1,q),C.base=P.slice(1,G)):(C.name=P.slice(z,q),C.base=P.slice(z,G)),C.ext=P.slice(q,G)),z>0?C.dir=P.slice(0,z-1):M&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var E=t[k]={exports:{}};return e[k](E,E.exports,n),E.exports}n.d=(k,b)=>{for(var E in b)n.o(b,E)&&!n.o(k,E)&&Object.defineProperty(k,E,{enumerable:!0,get:b[E]})},n.o=(k,b)=>Object.prototype.hasOwnProperty.call(k,b),n.r=k=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>v,Utils:()=>vn}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function c(k,b){if(!k.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${k.authority}", path: "${k.path}", query: "${k.query}", fragment: "${k.fragment}"}`);if(k.scheme&&!o.test(k.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(k.path){if(k.authority){if(!s.test(k.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(k.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let l="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class v{static isUri(b){return b instanceof v||!!b&&typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function"}scheme;authority;path;query;fragment;constructor(b,E,j,P,C,D=!1){typeof b=="object"?(this.scheme=b.scheme||l,this.authority=b.authority||l,this.path=b.path||l,this.query=b.query||l,this.fragment=b.fragment||l):(this.scheme=(function(N,M){return N||M?N:"file"})(b,D),this.authority=E||l,this.path=(function(N,M){switch(N){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M})(this.scheme,j||l),this.query=P||l,this.fragment=C||l,c(this,D))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:E,authority:j,path:P,query:C,fragment:D}=b;return E===void 0?E=this.scheme:E===null&&(E=l),j===void 0?j=this.authority:j===null&&(j=l),P===void 0?P=this.path:P===null&&(P=l),C===void 0?C=this.query:C===null&&(C=l),D===void 0?D=this.fragment:D===null&&(D=l),E===this.scheme&&j===this.authority&&P===this.path&&C===this.query&&D===this.fragment?this:new R(E,j,P,C,D)}static parse(b,E=!1){let j=h.exec(b);return j?new R(j[2]||l,X(j[4]||l),X(j[5]||l),X(j[7]||l),X(j[9]||l),E):new R(l,l,l,l,l)}static file(b){let E=l;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let j=b.indexOf(d,2);j===-1?(E=b.substring(2),b=d):(E=b.substring(2,j),b=b.substring(j)||d)}return new R("file",E,b,l,l)}static from(b){let E=new R(b.scheme,b.authority,b.path,b.query,b.fragment);return c(E,!0),E}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let E=new R(b);return E._formatted=b.external,E._fsPath=b._sep===y?b.fsPath:null,E}}return b}}let y=i?1:void 0;class R extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=m(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let I={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function $(k,b,E){let j,P=-1;for(let C=0;C<k.length;C++){let D=k.charCodeAt(C);if(D>=97&&D<=122||D>=65&&D<=90||D>=48&&D<=57||D===45||D===46||D===95||D===126||b&&D===47||E&&D===91||E&&D===93||E&&D===58)P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j!==void 0&&(j+=k.charAt(C));else{j===void 0&&(j=k.substr(0,C));let N=I[D];N!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j+=N):P===-1&&(P=C)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function Y(k){let b;for(let E=0;E<k.length;E++){let j=k.charCodeAt(E);j===35||j===63?(b===void 0&&(b=k.substr(0,E)),b+=I[j]):b!==void 0&&(b+=k[E])}return b!==void 0?b:k}function m(k,b){let E;return E=k.authority&&k.path.length>1&&k.scheme==="file"?`//${k.authority}${k.path}`:k.path.charCodeAt(0)===47&&(k.path.charCodeAt(1)>=65&&k.path.charCodeAt(1)<=90||k.path.charCodeAt(1)>=97&&k.path.charCodeAt(1)<=122)&&k.path.charCodeAt(2)===58?b?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(E=E.replace(/\//g,"\\")),E}function g(k,b){let E=b?Y:$,j="",{scheme:P,authority:C,path:D,query:N,fragment:M}=k;if(P&&(j+=P,j+=":"),(C||P==="file")&&(j+=d,j+=d),C){let q=C.indexOf("@");if(q!==-1){let z=C.substr(0,q);C=C.substr(q+1),q=z.lastIndexOf(":"),q===-1?j+=E(z,!1,!1):(j+=E(z.substr(0,q),!1,!1),j+=":",j+=E(z.substr(q+1),!1,!0)),j+="@"}C=C.toLowerCase(),q=C.lastIndexOf(":"),q===-1?j+=E(C,!1,!0):(j+=E(C.substr(0,q),!1,!0),j+=C.substr(q))}if(D){if(D.length>=3&&D.charCodeAt(0)===47&&D.charCodeAt(2)===58){let q=D.charCodeAt(1);q>=65&&q<=90&&(D=`/${String.fromCharCode(q+32)}:${D.substr(3)}`)}else if(D.length>=2&&D.charCodeAt(1)===58){let q=D.charCodeAt(0);q>=65&&q<=90&&(D=`${String.fromCharCode(q+32)}:${D.substr(2)}`)}j+=E(D,!0,!1)}return N&&(j+="?",j+=E(N,!1,!1)),M&&(j+="#",j+=b?M:$(M,!1,!1)),j}function w(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+w(k.substr(3)):k}}let V=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(V)?k.replace(V,(b=>w(b))):k}var it=n(975);let Ot=it.posix||it,en="/";var vn;(function(k){k.joinPath=function(b,...E){return b.with({path:Ot.join(b.path,...E)})},k.resolvePath=function(b,...E){let j=b.path,P=!1;j[0]!==en&&(j=en+j,P=!0);let C=Ot.resolve(j,...E);return P&&C[0]===en&&!b.authority&&(C=C.substring(1)),b.with({path:C})},k.dirname=function(b){if(b.path.length===0||b.path===en)return b;let E=Ot.dirname(b.path);return E.length===1&&E.charCodeAt(0)===46&&(E=""),b.with({path:E})},k.basename=function(b){return Ot.basename(b.path)},k.extname=function(b){return Ot.extname(b.path)}})(vn||(vn={})),wl=r})();var{URI:Nt,Utils:ne}=wl;import{CONFIG_FILE_NAME as Ny}from"@redocly/openapi-core";var Ds={languageId:"yaml",filePattern:/\.ya?ml$/i},Rs={languageId:"json",filePattern:/\.json$/i},Ss=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Ds,Rs];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ne.resolvePath(ne.dirname(Se(t)),Ny);return await this._fs.exists(n)?n.toString():void 0}catch{return}}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}registerRemoteScorecardAndPlugins(t){this._remoteScorecardAndPlugins=t}get remoteScorecardAndPlugins(){return this._remoteScorecardAndPlugins}get fs(){if(!this._fs)throw new Error("FileSystemProvider not registered.");return this._fs}get documents(){if(!this._documentManager)throw new Error("DocumentsProvider not registered.");return this._documentManager}get findConfig(){if(!this._findConfig)throw new Error("ConfigFinder not registered.");return this._findConfig}get getRootWorkspaceFolderURI(){if(!this._getRootWorkspaceFolderURI)throw new Error("RootWorkspaceFolderURIGetter not registered.");return this._getRootWorkspaceFolderURI}setScorecardStatus(t){this._scorecardStatus=t}get scorecardStatus(){return this._scorecardStatus}},be=new Ss;function Ts(e,t){return ne.resolvePath(Se(e)).toString()===ne.resolvePath(Se(t)).toString()}function Se(e){return Nt.parse(e)}function Pt(e){return Nt.parse(e).fsPath}function dr(e){let t=["https","http"],{scheme:n}=Nt.parse(e);return t.includes(n)}function fr(e){return ne.basename(Se(e))}async function kl(e,t="/"){let n=ne.resolvePath(Se(t));for(;e.path!=="/";)try{(await be.fs.stat(ne.resolvePath(n,e.path))).isDirectory()||(e=ne.dirname(e));break}catch{e=ne.dirname(e)}return e}import{BaseResolver as bx,Source as dd,readFileFromUrl as vx}from"@redocly/openapi-core";var pi=Ie(br(),1);import{isAbsoluteUrl as mx}from"@redocly/openapi-core";function td(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(l){let d=i.get(l.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(l.uri,setTimeout(()=>a(l),t-h));else if(r.delete(l.uri),i.delete(l.uri),!n){let v=s.get(l.uri),y=e(o.get(l.uri));v&&v.forEach(({resolve:R})=>R(y)),s.delete(l.uri)}}catch(v){let y=s.get(l.uri);y&&y.forEach(({reject:R})=>R(v)),s.delete(l.uri)}}function c(l){let d=r.get(l.uri),h=n&&!d;return i.set(l.uri,Date.now()),o.set(l.uri,l),new Promise((v,y)=>{let R=s.get(l.uri)||[];d||(s.set(l.uri,[...R,{resolve:v,reject:y}]),r.set(l.uri,setTimeout(()=>a(l),t))),h?v(e(o.get(l.uri))):s.set(l.uri,[...R,{resolve:v,reject:y}])})}return c}function ta(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 nd(e){return e==="$ref"}async function na(e,t){let n=Nt.parse(t);return ne.joinPath(n,e).toString()}async function rd(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await na(i,n)===t)return r}function id(e){return typeof e=="string"}function di(e){return typeof e=="function"}function od(e){return e?.kind===pi.Kind.MAP}function ra(e){return e?.kind===pi.Kind.MAPPING}function ia(e){return e?.kind===pi.Kind.SEQ}function vr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}function oa(e){return mx(e)||e.startsWith("file://")}var fi=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=cd(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=sd(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=sd(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&&ad(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}},gi;(function(e){function t(i,o,s,a){return new fi(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof fi)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=sa(o.map(hx),(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),c=0,l=[];for(let d of a){let h=i.offsetAt(d.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&l.push(s.substring(c,h)),d.newText.length&&l.push(d.newText),c=i.offsetAt(d.range.end)}return l.push(s.substr(c)),l.join("")}e.applyEdits=r})(gi||(gi={}));function sa(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);sa(r,t),sa(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 sd(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);ad(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function ad(e){return e===13||e===10}function cd(e){let t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function hx(e){let t=cd(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var ud=new Map;function ld(e,t){return ud.set(e,t)}function pd(e){let t=[];for(let[n,r]of ud.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Qe(e){let t=be.documents.get(e);if(t)return t;let n=await be.fs.readFile(Se(e),"utf-8");return gi.create(e,"yaml",1,n)}function aa(e){return Rs.filePattern.test(e)}function yx(e){return Ds.filePattern.test(e)}var St=class extends bx{resolveExternalRef(t,n){return oa(n)?n:t&&oa(t)?new URL(n,t).href:t?ne.resolvePath(ne.dirname(Se(t)),n).toString():n}async loadExternalRef(t){if(dr(t)){let{body:n,mimeType:r}=await vx(t,{...this.config.http,customFetch:fetch});return new dd(t,n,r)}return new dd(t,(await Qe(t)).getText())}};var Dt;async function mi(e,t){try{let n=new St,r=e?await be.findConfig(e):void 0;if(r===void 0)return Dt=await fd(Px),Dt;Dt=await xx({configPath:r,externalRefResolver:n})}catch(n){t?.createEventHandleLoadConfigError?.(n?.message),Dt=await fd({})}return Dt}async function Tn(e){return Dt||await mi(e)}async function cn(e){return await ca(e)?!0:!!Dt?.resolvedRefMap&&[...Dt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Ts(fr(e),n))}async function ca(e){let t=await be.findConfig(e);return t?Ts(e,t):!1}var gd={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},xr={type:"object",properties:gd,additionalProperties:!1},_x={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Lt={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},gd),{like:xr,dislike:xr,satisfied:xr,neutral:xr,dissatisfied:xr}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:_x},additionalProperties:!1}},additionalProperties:!1};var Cx={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},ua={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},hi={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Lt,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ua,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:Cx,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1};var wn={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Sx={type:"object",properties:{name:{type:"string"},items:wn,queries:wn,mutations:wn,subscriptions:wn,types:wn,directives:wn},required:["name"],additionalProperties:!1},Dx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Sx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},kn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Dx.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:ua,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:Lt,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"}},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"]},Tx={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},md={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},wx={type:"object",properties:{beforeInfo:{type:"array",items:md},end:{type:"array",items:md}}},un={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},yi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},kx={type:"object",properties:Pi(un.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"}}},Ox={type:"object",properties:{error:yi,info:yi,redirect:yi,success:yi}},qx={type:"object",properties:An(un.properties,["dark"])},Nx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Ex={type:"object",properties:{accent:un,border:kx,error:un,http:Ax,primary:un,responses:Ox,secondary:qx,success:un,text:Nx,tonalOffset:{type:"number"},warning:un}},bi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},jx={type:"object",properties:{small:bi,medium:bi,large:bi,xlarge:bi}},ft={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Mx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:jx})},hd={type:"object",properties:Pi(ft.properties,["fontSize","lineHeight"])},Lx={type:"object",properties:{medium:hd,small:hd}},Ix={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Lx})},Fx={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Ux={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},yd={type:"object",properties:{fullWidth:{type:"boolean"}}},Wx={type:"object",properties:{buttons:Mx,httpBadges:Ix,layoutControls:Fx,panels:Ux,tryItButton:yd,tryItSendButton:yd}},xi={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Bx={type:"object",properties:{maxWidth:xi}},Hx={type:"object",properties:{maxWidth:xi,middlePanelMaxWidth:xi}},zx={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Bx,"three-panel":Hx}},bd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},$x={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:bd,defaultDetailsWidth:{type:"string"},examples:bd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},xd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Vx={type:"object",properties:Pi(xd.properties,["textTransform"])},Yx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Gx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:xd,level1items:Vx,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Yx,textColor:{type:"string"},width:{type:"string"}})},vi={type:"object",properties:Object.assign(Object.assign({},ft.properties),{color:{type:"string"},transform:{type:"string"}})},Kx={type:"object",properties:Object.assign(Object.assign({},ft.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},Qx={type:"object",properties:An(ft.properties,["fontSize"])},Jx={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Xx={type:"object",properties:Object.assign(Object.assign({code:Kx,fieldName:ft},Pi(ft.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:vi,heading2:vi,heading3:vi,headings:Qx,lineHeight:{type:"string"},links:Jx,optimizeSpeed:{type:"boolean"},rightPanelHeading:vi,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},Zx={type:"object",properties:Object.assign({color:{type:"string"}},An(ft.properties,["fontWeight"]))},eP={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:Zx}},tP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},nP={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},vd={type:"object",properties:{custom:{type:"string"}}},rP={type:"object",properties:{DownloadButton:vd,NextSectionButton:vd}},iP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},oP={type:"object",properties:{borderRadius:{type:"string"}}},sP={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},aP={type:"object",properties:{breakpoints:xi,codeBlock:eP,colors:Ex,components:Wx,layout:zx,logo:tP,fab:nP,overrides:rP,rightPanel:iP,schema:$x,shape:oP,sidebar:Gx,spacing:sP,typography:Xx,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},cP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Rx}},required:["languages"]},Pd={type:"object",properties:{theme:aP,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:cP,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:Tx,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:wx,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function Pi(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function An(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var Rt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},Pr={rules:Rt,oas2Rules:Rt,oas3_0Rules:Rt,oas3_1Rules:Rt,oas3_2Rules:Rt,async2Rules:Rt,async3Rules:Rt,arazzo1Rules:Rt,overlay1Rules:Rt},_r={preprocessors:{type:"object",additionalProperties:!0},oas2Preprocessors:{type:"object",additionalProperties:!0},oas3_0Preprocessors:{type:"object",additionalProperties:!0},oas3_1Preprocessors:{type:"object",additionalProperties:!0},oas3_2Preprocessors:{type:"object",additionalProperties:!0},async2Preprocessors:{type:"object",additionalProperties:!0},async3Preprocessors:{type:"object",additionalProperties:!0},arazzo1Preprocessors:{type:"object",additionalProperties:!0},overlay1Preprocessors:{type:"object",additionalProperties:!0}},Cr={decorators:{type:"object",additionalProperties:!0},oas2Decorators:{type:"object",additionalProperties:!0},oas3_0Decorators:{type:"object",additionalProperties:!0},oas3_1Decorators:{type:"object",additionalProperties:!0},oas3_2Decorators:{type:"object",additionalProperties:!0},async2Decorators:{type:"object",additionalProperties:!0},async3Decorators:{type:"object",additionalProperties:!0},arazzo1Decorators:{type:"object",additionalProperties:!0},overlay1Decorators:{type:"object",additionalProperties:!0}};var Re={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},_d={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},la={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"}}}},pa={type:"array",items:Object.assign(Object.assign({},la),{properties:Object.assign(Object.assign({},la.properties),{items:{type:"array",items:la}})})},uP={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},lP={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},pP={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}},dP={type:"object",properties:Object.assign({facets:pP},Re.properties),additionalProperties:!1},fP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},_i={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Ci={type:"object",properties:Object.assign({items:pa},Re.properties),additionalProperties:!1},Si={type:"object",additionalProperties:uP},Di={type:"object",properties:Object.assign({items:pa,copyrightText:{type:"string"},logo:Re},Re.properties),additionalProperties:!1},Ri={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Re.properties),additionalProperties:!1},Ti={type:"object",properties:{head:{type:"array",items:_d},body:{type:"array",items:_d}},additionalProperties:!1},wi={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}},ki={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:lP,filters:dP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:fP}},Re.properties),additionalProperties:!1},Ai={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Re.properties),additionalProperties:!1},gP={type:"object",properties:Object.assign(Object.assign({},Re.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1},Oi={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},actions:gP},additionalProperties:!1},qi={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Re.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},Ni={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["**/_partials/**"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Re.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Re.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},On=Object.assign(Object.assign({},hi),{properties:Object.assign(Object.assign({},hi.properties),Pd.properties)}),mP={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},hP={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"]},yP={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},bP={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},vP={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"]},xP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},PP={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"]},da={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"]},_P={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:da}},additionalProperties:!1,required:["trackingId"]},Ei={type:"object",properties:{adobe:mP,amplitude:hP,fullstory:yP,heap:bP,rudderstack:vP,segment:xP,gtm:PP,ga:_P}},ji={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},Re.properties),additionalProperties:!1},Mi={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Li={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},CP={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"}}}},SP={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:CP},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"}}},qn={type:"object",patternProperties:{".*":SP}},Ii={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},Pr),_r),Cr),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}};var DP={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},RP={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},TP={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},Tt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:RP},excludes:{type:"array",items:DP},filters:{type:"array",items:TP},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},wP={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},kP={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:wP},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},AP={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:kP,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},OP={type:"object",additionalProperties:AP},Fi={type:"object",properties:{entityTypes:OP,catalogs:{type:"object",properties:{all:Tt,services:Tt,domains:Tt,teams:Tt,users:Tt,apiDescriptions:Tt,dataSchemas:Tt,apiOperations:Tt},additionalProperties:Tt}},additionalProperties:!1};var Je={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:_i,navbar:Ci,products:Si,footer:Di,sidebar:Ri,scripts:Ti,links:wi,feedback:Lt,search:ki,colorMode:Ai,navigation:Oi,codeSnippet:qi,markdown:Ni,openapi:On,graphql:kn,analytics:Ei,userMenu:ji,versionPicker:Mi,breadcrumbs:Li,catalog:qn,entitiesCatalog:Fi,catalogClassic:qn,scorecard:Ii},additionalProperties:!0};var ga="https://redocly.com/sso/teams",Nn;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(Nn||(Nn={}));var En;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(En||(En={}));var fa;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(fa||(fa={}));var ma=["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"];function Ui(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"?Ui(i,t):i)]:[n,Ui(r,t)]}).filter(Boolean))}var qP={type:"object",additionalProperties:{type:"string"}},NP={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Wi={type:"string",enum:["error","warn","off"]},EP={type:"object",additionalProperties:!1,properties:{schemaCheck:Wi,statusCodeCheck:Wi,contentTypeCheck:Wi,successCriteriaCheck:Wi}},jP={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},MP={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},Cd={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[jP,MP]},inputs:qP,servers:NP,severity:EP},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var LP={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},IP={type:"object",properties:{type:{type:"string",const:Nn.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:LP,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},FP={type:"object",properties:{type:{type:"string",const:Nn.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:ga},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},UP={oneOf:[IP,FP],discriminator:{propertyName:"type"}},WP={type:"object",additionalProperties:UP},BP={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},HP={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},zP={type:"object",additionalProperties:HP,default:{}},ba={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:On,graphql:kn,theme:{type:"object",properties:{openapi:On,graphql:kn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Pr),_r),Cr),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},$P={type:"object",additionalProperties:!0},VP={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Sd={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},Dd={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:Sd},default:{llmstxt:Sd.default},additionalProperties:!1},YP={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},ln={type:"object",additionalProperties:{type:"string"}},Td={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:ln,cms:ln,reunite:ln,features:{type:"object",properties:{aiSearch:ln},additionalProperties:!1},content:{type:"object",properties:{"**":ln},additionalProperties:ln}},additionalProperties:ln},GP={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},KP={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},QP={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:[GP,KP]}},additionalProperties:!1,required:["type","apiBaseUrl"]},JP={type:"object",properties:{type:{type:"string",const:En.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},XP={type:"object",properties:{type:{type:"string",const:En.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},ha={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:[JP,XP],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},ZP=Object.assign(Object.assign({},ha),{properties:Object.assign(Object.assign({},ha.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),e_={type:"object",oneOf:[ha,ZP,QP],discriminator:{propertyName:"type"}},t_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:e_}}},Rd={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},n_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},r_={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:[]}}},ya={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:zP,seo:Dd,rbac:Td,apiFunctions:YP,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:n_}},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:ba},extends:{type:"array",items:{type:"string"}}},Pr),Cr),_r),{ssoDirect:WP,sso:BP,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:t_,removeAttribution:{type:"boolean"},i18n:Rd,l10n:Rd,metadata:$P,metadataGlobs:VP,ignore:{type:"array",items:{type:"string"}},theme:Je,reunite:Cd,logo:_i,navbar:Ci,products:Si,footer:Di,sidebar:Ri,scripts:Ti,links:wi,feedback:Lt,search:ki,colorMode:Ai,navigation:Oi,codeSnippet:qi,markdown:Ni,openapi:On,graphql:kn,analytics:Ei,userMenu:ji,versionPicker:Mi,breadcrumbs:Li,catalog:qn,entitiesCatalog:Fi,catalogClassic:qn,scorecard:Ii,mcp:r_}),default:{redirects:{},seo:Dd.default},additionalProperties:!0},i_=Object.assign(Object.assign({},Ui(ya,"default")),{additionalProperties:!1}),va=Object.assign(Object.assign({$id:"root-redocly-config"},ya),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},ya.properties),{env:{type:"object",additionalProperties:i_}}),default:{},additionalProperties:!1});var xa={type:"object",properties:{logo:Je.properties.logo,navbar:Je.properties.navbar,footer:Je.properties.footer,sidebar:Je.properties.sidebar,search:Je.properties.search,codeSnippet:Je.properties.codeSnippet,breadcrumbs:Je.properties.breadcrumbs,openapi:Je.properties.openapi,feedback:Je.properties.feedback,analytics:{type:"object",properties:{ga:da}}},additionalProperties:!0,default:{}},o_={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},xa.properties),{apis:{type:"object",additionalProperties:ba},theme:xa}),additionalProperties:!1};var s_={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},a_={type:"object",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},c_={type:"object",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},u_={type:"object",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"}},anyOf:[{required:["schema"]},{required:["sdl"]}],required:["specType"],additionalProperties:!0};var l_={type:"object",properties:{slack:{type:"object",properties:{channels:{type:"array",items:{type:"object",properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1}}},required:["channels"],additionalProperties:!1}},additionalProperties:!1},p_={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},d_={type:"object",properties:{type:{type:"string",enum:ma},key:{type:"string",minLength:2,maxLength:100}},required:["type","key"],additionalProperties:!1},Sr={key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},title:{type:"string",minLength:2,maxLength:200},summary:{type:["string","null"],minLength:1,maxLength:500},tags:{type:["array","null"],items:{type:"string",minLength:1,maxLength:50}},git:{type:["array","null"],items:{type:"string"}},contact:{anyOf:[{type:"null"},l_]},links:{anyOf:[{type:"null"},{type:"array",items:p_}]},relations:{anyOf:[{type:"null"},{type:"array",items:d_}]}},hR={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{const:"user"},metadata:s_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{const:"api-operation"},metadata:c_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{const:"data-schema"},metadata:u_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{const:"api-description"},metadata:a_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{enum:["service","domain","team"]},metadata:{type:["object","null"],additionalProperties:!0}}),required:["key","title","type"],additionalProperties:!1}]};var Le=Ie(Qt(),1);import{getLineColLocation as P0,lintDocument as _0,makeDocumentFromString as hl,lintConfig as C0,detectSpec as S0,createConfigTypes as D0}from"@redocly/openapi-core";import{bundleDocument as f0,isPlainObject as g0,makeDocumentFromString as m0}from"@redocly/openapi-core";var zh=new Map,cs=new Map;function h0(e){return e?Array.from(e).map(([t,n])=>[t,ta(n)]):[]}async function gl(e,t){let n=await Tn(),r=new St(n.resolve),i=m0(e.getText(),e.uri),{bundle:o,problems:s,fileDependencies:a,rootType:c,refTypes:l}=await f0({document:i,config:n,externalRefResolver:r}),d=h0(l);l&&(cs=new Map([...cs,...l])),zh.set(e.uri,{uri:e.uri,name:fr(e.uri),definition:g0(o.parsed)?o.parsed:{},rootType:c,refTypes:d,errors:t})}function y0(){return Array.from(zh).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:fr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function ml(e){return cs.has(e)?cs.get(e):null}import{createConfig as b0,lintDocument as v0}from"@redocly/openapi-core";async function $h(e,t,n,r,i){let o=[];for(let s of n?.levels||[]){let a=typeof i=="string"?await x0(i):i,c=await b0({...s,plugins:a},{configPath:r}),l=await v0({document:e,externalRefResolver:t,config:c});o.push(...l.filter(({ignored:d})=>!d).map(d=>({...d,scorecardLevel:s.name})))}return o}async function x0(e){if(!e)return[];try{let t=typeof __dirname>"u"?"":__dirname.replaceAll(/\\/g,"/"),n=e.replaceAll("__redocly_dirname",`"${t}"`);return(await import(`data:text/javascript;base64,${btoa(n)}`)).default.map(a=>a())}catch(t){return console.error("Failed to load plugins module:",t.message),console.error(`
70
70
  Plugins code preview:`,e.substring(0,500)+"..."),[]}}var R0=800,T0=5,yl=td(A0,R0);async function w0(e){let t=e.map(({documentPath:i})=>Se(i).toString()),n=await Tn(),r=await be.getRootWorkspaceFolderURI();for(let{root:i}of Object.values(n.resolvedConfig.apis??{})){let o=await na(i,r);if(t.includes(o))return o}return t[0]}function k0(e){try{return S0(e),!0}catch{return!1}}async function A0(e){let t=e.uri,n=await Tn();if(await cn(Pt(t)))try{let r=await ca(Pt(t))?hl(e.getText(),t):hl(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new St,o=await C0({config:{document:r},externalRefResolver:i,externalConfigTypes:D0(va,n)}),s=[{uri:e.uri,diagnostics:[]}];return Vh(o,s),s}catch{return[{uri:e.uri,diagnostics:[]}]}else{let r=pd(t),i=await w0(r||[]);i&&(e=await Qe(i),t=i);let o;try{o=hl(e.getText(),t)}catch{return[{uri:e.uri,diagnostics:[]}]}if(!k0(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new St(n.resolve),c=await be.getRootWorkspaceFolderURI(),l=await rd(n.resolvedConfig.apis??{},e.uri,c),d=Date.now(),h=[],v=[];try{v=(await _0({document:o,config:n.forAlias(l),externalRefResolver:a})).filter(({ignored:m})=>!m);let $=be.remoteScorecardAndPlugins?.scorecard||n.resolvedConfig.scorecard,Y=$&&be.scorecardStatus==="enabled"?await $h(o,a,$,n.configPath,be.remoteScorecardAndPlugins?.plugins):[];h=[...v,...Y]}catch($){h.push({ruleId:"struct",suggest:[],severity:"error",message:`Error linting document: ${$.message}`,location:[{start:{line:1,col:1},end:{line:1,col:1},source:o.source}]})}let y=E0(v);gl(e,y);let R=Date.now()-d;s=[...new Set([e.uri,...[...a.getFiles()].map($=>Se($).toString())])].map($=>({uri:$,diagnostics:[]})),ld(t,{dependencyPaths:a.getFiles(),durationMS:R}),Vh(h,s)}catch(a){O0(e.uri,a,s)}return s}}function us(){return be.documents.all().map(yl)}function O0(e,t,n){let r=n||[{uri:e,diagnostics:[]}];if(t.line&&t.col&&t.message){let i=t.source?.absoluteRef?Se(t.source.absoluteRef).toString():e,o=t.line-1,s=t.col-1,a=Le.Position.create(o,s),c=Le.Diagnostic.create(Le.Range.create(a,a),t.message,Le.DiagnosticSeverity.Error);Yh(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function Yh(e,t,n){let r=n.find(i=>i.uri===e);return r||(r={uri:e,diagnostics:[]},n.push(r)),r.diagnostics.push(t),n}function q0(e){return e.suggest.length===0?"":e.suggest.length===1?`
71
71
  Did you mean: ${e.suggest[0]} ?`:`
72
72
  Did you mean:
@@ -81,4 +81,4 @@ Scorecard level: ${e.scorecardLevel}`:""}function Vh(e,t){e.forEach(n=>{let r;sw
81
81
  `)?`
82
82
  `:`
83
83
  `}function Kr(e,t,n=!0){if(e===ar)return`
84
- `;let r=uS(t?.lineText),i=cS(e),o=e===Jt?"":e,s=dy(e,t),a=aS(e,s,r,t),c=n?lS(r,t?.properties):" ";return`${r}${o}${i}${a}${s}${c}`}function pS(e,t){let{version:n}=Pl(e),r=Zh(t,n);if(!r)return[];let i=Jh(e,["components",r]);return i?(gs(i.value||i)||[]).map(({key:{value:s}})=>`#/components/${r}/${s}`):[]}function dS(e){let{node:t,position:n,lineOffset:r}=e,i=hs.includes(t.key?.value)?t:hs.includes(t.parent?.key?.value)?t.parent:null;return i?i?.parent?.mappings?.find(({key:s})=>s?.value===Gr.enum)?.value?.items?.map(({value:s})=>new ut({label:s,data:{node:t,position:n,lineOffset:r}}))||[]:[]}async function fS(e,t){let{position:n,openApiType:r,currentAst:i,lineOffset:o,node:s}=t,a=r?.name?pS(i,r.name):[];return[...await py(e,t),...a.map(l=>{let d=vr(l,s);return new ut({label:l,filterText:vr(l,s),value:d,sortText:`${_e("LocalComponentCompletion")}${l}`,data:{lineOffset:o,position:n,node:s}})})]}function gS(e){let{openApiType:t,node:n,position:r,lineOffset:i}=e;return t?.enum?t.enum.map(o=>new ut({label:o,kind:vs.CompletionItemKind.EnumMember,data:{node:n,position:r,lineOffset:i}})):[]}function mS(e,t){let{node:n,position:r,lineOffset:i}=t;return["true","false"].map(o=>new ut({label:o,data:{node:n,position:r,lineOffset:i}}))}function hS(e){let{currentAst:t,nodePath:n,node:r,openApiType:i,lineText:o}=e,s=bS(t,n,r);return vS(i,s,o)}async function yS(e,t){let{node:n,nodePath:r,openApiType:i}=t;if(!n)return[];let o=n.key?.value||(r.length?r[r.length-1]:null);return o&&i?.name&&Gr.ref===o?fS(e,t):hs.includes(o)?dS(t):i?.enum?gS(t):i?.type==="boolean"?mS(e,t):[]}async function fy(e,t){let n=await oy(e,t);return n.openApiType?.properties?hS(n):yS(e,n)}function bS(e,t,n){if(!e)return[];let i=Yr(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||null);o.push(...a)}return!o.length&&n?.value&&o.push(n.value),o}function vS(e,t,n){if(!e)return[];if(ey(e),ps(e))return bl(e?.name).filter(r=>!t.includes(r.label)).map(r=>new bn({...r,insertText:Kr(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 bn({label:i,kind:vs.CompletionItemKind.Property,insertText:Kr(i,o,!o?.items),sortText:_e(e?.name,i)})});return n.endsWith(":")&&r.push(...bl(ar).map(i=>new bn({...i,insertText:Kr(i.label,{...i.data,lineText:n})}))),r}return e.items&&Object.keys(e.items).length?[new bn({label:Jt,kind:vs.CompletionItemKind.Constructor,insertText:Kr(Jt,{...e,lineText:n}),sortText:_e(Jt)})]:[]}var kt=Ie(fl(),1);var Zt=Ie(br(),1);import{getAstNodeByPointer as xS}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?ne.joinPath(ne.dirname(qt.parse(i.uri)),o).toString():t.uri,d;try{d=await Qe(l)}catch{return}let h=(0,Zt.safeLoad)(d.getText(),{filename:Pt(l)}),v=xS(h,`#/${s}`,!0),y=kt.Range.create(d.positionAt(v?.startPosition||0),d.positionAt(v?.endPosition||0));return[kt.LocationLink.create(l,kt.Range.create(0,0,d.lineCount,0),y,kt.Range.create(kt.Position.create(e.line,a),kt.Position.create(e.line,c)))]}}async function gy({position:e,textDocument:t}){let n;try{n=await Qe(t.uri)}catch{return}let o=n.getText().split(/\r\n|[\n\r]/g)[e.line],s=(0,Zt.safeLoad)(o,{filename:Pt(t.uri)}),a;switch(s.kind){case Zt.Kind.SCALAR:{a=s.parent||{value:{value:s?.value}};break}case Zt.Kind.MAP:{a=s?.mappings?.[0];break}case Zt.Kind.SEQ:{let l=s?.items?.[0];a=l?.kind===Zt.Kind.MAP?l?.mappings?.[0]:{value:{value:l?.value}};break}default:a=null}let c=a?.value?.value;if(c&&!dr(c))return PS({position:e,textDocument:t,value:c,line:o,document:n})}var _S=(t=>(t[t.FILE_TYPE_NOT_SUPPORTED=0]="FILE_TYPE_NOT_SUPPORTED",t))(_S||{});var my=class{async onCompletion(t){let{uri:n}=t.textDocument;return aa(n)?[]:fy(n,t.position)}async onCompletionResolve(t){return t}async validateOpenAPI(t){return yl(t)}async onDidChangeWatchedFiles(t){let n=t.changes.find(async r=>await cn(r.uri));if(n)return await mi(n.uri),us()}async onDidConfigChange(t){return await mi(t),us()}async onDidChangeConfiguration(){return us()}async onDefinition(t){let{uri:n}=t.textDocument;return aa(n)?[]:await gy(t)||[]}};export{_S as ContextErrorCodes,my as OpenapiLanguageServer,gl as bundleOpenAPI,y0 as getBundles,Tn as getConfigData,H0 as getContextData,Qe as getDocumentByURI,cn as isConfigFile,dr as isHttpPath,yx as isYamlFile,be as languageServerConfig,mi as loadOpenAPIConfig,Se as parseUri,ta as removeCirculars,us as revalidateAllDocuments,Pt as uriToAbsFSPath};
84
+ `;let r=uS(t?.lineText),i=cS(e),o=e===Jt?"":e,s=dy(e,t),a=aS(e,s,r,t),c=n?lS(r,t?.properties):" ";return`${r}${o}${i}${a}${s}${c}`}function pS(e,t){let{version:n}=Pl(e),r=Zh(t,n);if(!r)return[];let i=Jh(e,["components",r]);return i?(gs(i.value||i)||[]).map(({key:{value:s}})=>`#/components/${r}/${s}`):[]}function dS(e){let{node:t,position:n,lineOffset:r}=e,i=hs.includes(t.key?.value)?t:hs.includes(t.parent?.key?.value)?t.parent:null;return i?i?.parent?.mappings?.find(({key:s})=>s?.value===Gr.enum)?.value?.items?.map(({value:s})=>new ut({label:s,data:{node:t,position:n,lineOffset:r}}))||[]:[]}async function fS(e,t){let{position:n,openApiType:r,currentAst:i,lineOffset:o,node:s}=t,a=r?.name?pS(i,r.name):[];return[...await py(e,t),...a.map(l=>{let d=vr(l,s);return new ut({label:l,filterText:vr(l,s),value:d,sortText:`${_e("LocalComponentCompletion")}${l}`,data:{lineOffset:o,position:n,node:s}})})]}function gS(e){let{openApiType:t,node:n,position:r,lineOffset:i}=e;return t?.enum?t.enum.map(o=>new ut({label:o,kind:vs.CompletionItemKind.EnumMember,data:{node:n,position:r,lineOffset:i}})):[]}function mS(e,t){let{node:n,position:r,lineOffset:i}=t;return["true","false"].map(o=>new ut({label:o,data:{node:n,position:r,lineOffset:i}}))}function hS(e){let{currentAst:t,nodePath:n,node:r,openApiType:i,lineText:o}=e,s=bS(t,n,r);return vS(i,s,o)}async function yS(e,t){let{node:n,nodePath:r,openApiType:i}=t;if(!n)return[];let o=n.key?.value||(r.length?r[r.length-1]:null);return o&&i?.name&&Gr.ref===o?fS(e,t):hs.includes(o)?dS(t):i?.enum?gS(t):i?.type==="boolean"?mS(e,t):[]}async function fy(e,t){let n=await oy(e,t);return n.openApiType?.properties?hS(n):yS(e,n)}function bS(e,t,n){if(!e)return[];let i=Yr(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||null);o.push(...a)}return!o.length&&n?.value&&o.push(n.value),o}function vS(e,t,n){if(!e)return[];if(ey(e),ps(e))return bl(e?.name).filter(r=>!t.includes(r.label)).map(r=>new bn({...r,insertText:Kr(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 bn({label:i,kind:vs.CompletionItemKind.Property,insertText:Kr(i,o,!o?.items),sortText:_e(e?.name,i)})});return n.endsWith(":")&&r.push(...bl(ar).map(i=>new bn({...i,insertText:Kr(i.label,{...i.data,lineText:n})}))),r}return e.items&&Object.keys(e.items).length?[new bn({label:Jt,kind:vs.CompletionItemKind.Constructor,insertText:Kr(Jt,{...e,lineText:n}),sortText:_e(Jt)})]:[]}var At=Ie(fl(),1);var Zt=Ie(br(),1);import{getAstNodeByPointer as xS}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?ne.joinPath(ne.dirname(Nt.parse(i.uri)),o).toString():t.uri,d;try{d=await Qe(l)}catch{return}let h=(0,Zt.safeLoad)(d.getText(),{filename:Pt(l)}),v=xS(h,`#/${s}`,!0),y=At.Range.create(d.positionAt(v?.startPosition||0),d.positionAt(v?.endPosition||0));return[At.LocationLink.create(l,At.Range.create(0,0,d.lineCount,0),y,At.Range.create(At.Position.create(e.line,a),At.Position.create(e.line,c)))]}}async function gy({position:e,textDocument:t}){let n;try{n=await Qe(t.uri)}catch{return}let o=n.getText().split(/\r\n|[\n\r]/g)[e.line],s=(0,Zt.safeLoad)(o,{filename:Pt(t.uri)}),a;switch(s.kind){case Zt.Kind.SCALAR:{a=s.parent||{value:{value:s?.value}};break}case Zt.Kind.MAP:{a=s?.mappings?.[0];break}case Zt.Kind.SEQ:{let l=s?.items?.[0];a=l?.kind===Zt.Kind.MAP?l?.mappings?.[0]:{value:{value:l?.value}};break}default:a=null}let c=a?.value?.value;if(c&&!dr(c))return PS({position:e,textDocument:t,value:c,line:o,document:n})}var _S=(t=>(t[t.FILE_TYPE_NOT_SUPPORTED=0]="FILE_TYPE_NOT_SUPPORTED",t))(_S||{});var my=class{async onCompletion(t){let{uri:n}=t.textDocument;return aa(n)?[]:fy(n,t.position)}async onCompletionResolve(t){return t}async validateOpenAPI(t){return yl(t)}async onDidChangeWatchedFiles(t){let n=t.changes.find(async r=>await cn(r.uri));if(n)return await mi(n.uri),us()}async onDidConfigChange(t){return await mi(t),us()}async onDidChangeConfiguration(){return us()}async onDefinition(t){let{uri:n}=t.textDocument;return aa(n)?[]:await gy(t)||[]}};export{_S as ContextErrorCodes,my as OpenapiLanguageServer,gl as bundleOpenAPI,y0 as getBundles,Tn as getConfigData,H0 as getContextData,Qe as getDocumentByURI,cn as isConfigFile,dr as isHttpPath,yx as isYamlFile,be as languageServerConfig,mi as loadOpenAPIConfig,Se as parseUri,ta as removeCirculars,us as revalidateAllDocuments,Pt as uriToAbsFSPath};