@redocly/openapi-language-server 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1,91 +1,91 @@
1
- var Jy=Object.create;var ai=Object.defineProperty;var Xy=Object.getOwnPropertyDescriptor;var Zy=Object.getOwnPropertyNames;var eb=Object.getPrototypeOf,tb=Object.prototype.hasOwnProperty;var Hl=(e,t)=>()=>(e&&(t=e(e=0)),t);var S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ms=(e,t)=>{for(var n in t)ai(e,n,{get:t[n],enumerable:!0})},si=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Zy(t))!tb.call(e,i)&&i!==n&&ai(e,i,{get:()=>t[i],enumerable:!(r=Xy(t,i))||r.enumerable});return e},Ls=(e,t,n)=>(si(e,t,"default"),n&&si(n,t,"default")),qe=(e,t,n)=>(n=e!=null?Jy(eb(e)):{},si(t||!e||!e.__esModule?ai(n,"default",{value:e,enumerable:!0}):n,e)),ci=e=>si(ai({},"__esModule",{value:!0}),e);var Tt=S(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.isYAMLNode=he.isNodesEqual=he.newMap=he.newSeq=he.newItems=he.newScalar=he.newAnchorRef=he.newMapping=he.Kind=void 0;var ft;(function(e){e[e.SCALAR=0]="SCALAR",e[e.MAPPING=1]="MAPPING",e[e.MAP=2]="MAP",e[e.SEQ=3]="SEQ",e[e.ANCHOR_REF=4]="ANCHOR_REF",e[e.INCLUDE_REF=5]="INCLUDE_REF"})(ft=he.Kind||(he.Kind={}));function rb(e,t,n=2){var r=t?t.endPosition:e.endPosition+1,i={key:e,value:t,nodeIndent:n,startPosition:e.startPosition,endPosition:r,kind:ft.MAPPING,parent:null,errors:[]};return i}he.newMapping=rb;function ib(e,t,n,r,i=2){return{errors:[],referencesAnchor:e,value:r,nodeIndent:i,startPosition:t,endPosition:n,kind:ft.ANCHOR_REF,parent:null}}he.newAnchorRef=ib;function ob(e="",t=2){let n={errors:[],startPosition:-1,endPosition:-1,value:""+e,nodeIndent:t,kind:ft.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(n.valueObject=e),n}he.newScalar=ob;function Yl(){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:2,items:[],kind:ft.SEQ,parent:null}}he.newItems=Yl;function sb(){return Yl()}he.newSeq=sb;function ab(e,t=2){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:t,mappings:e||[],kind:ft.MAP,parent:null}}he.newMap=ab;function xr(e,t){if(!e||!t||e.kind!==t.kind)return!1;if(e.kind===ft.SCALAR)return e.value===t.value;if(e.kind===ft.SEQ){let n=e,r=t;if(n.items.length!==r.items.length)return!1;for(let i=0;i<n.items.length;i++){let o=n.items[i],s=r.items[i];if(!xr(o,s))return!1}return!0}if(e.kind===ft.MAP){let n=e,r=t;if(n.mappings.length!==r.mappings.length)return!1;for(let i of n.mappings){let o=i.key,s=i.value,a=r.mappings.find(c=>xr(o,c.key));if(a){if(!xr(s,a.value))return!1}else return!1}return!0}if(ft.MAPPING===e.kind){let n=e,r=t;return xr(n.key,r.key)}return!1}he.isNodesEqual=xr;function cb(e){return e.startPosition!==void 0&&e.endPosition!==void 0&&e.kind!==void 0}he.isYAMLNode=cb});var sn=S(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.isNegativeZero=Ie.repeat=Ie.extend=Ie.toArray=Ie.isObject=Ie.isNothing=void 0;function Vl(e){return typeof e>"u"||e===null}Ie.isNothing=Vl;function ub(e){return typeof e=="object"&&e!==null}Ie.isObject=ub;function lb(e){return Array.isArray(e)?e:Vl(e)?[]:[e]}Ie.toArray=lb;function pb(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n<r;n+=1)i=o[n],e[i]=t[i];return e}Ie.extend=pb;function db(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}Ie.repeat=db;function fb(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Ie.isNegativeZero=fb});var Dn=S((RR,Kl)=>{"use strict";var ui=class e{constructor(t,n=null,r=!1){this.name="YAMLException",this.reason=t,this.mark=n,this.message=this.toString(!1),this.isWarning=r}static isInstance(t){if(t!=null&&t.getClassIdentifier&&typeof t.getClassIdentifier=="function"){for(let n of t.getClassIdentifier())if(n==e.CLASS_IDENTIFIER)return!0}return!1}getClassIdentifier(){var t=[];return t.concat(e.CLASS_IDENTIFIER)}toString(t=!1){var n;return n="JS-YAML: "+(this.reason||"(unknown reason)"),!t&&this.mark&&(n+=" "+this.mark.toString()),n}};ui.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException";Kl.exports=ui});var Jl=S((DR,Ql)=>{"use strict";var Gl=sn(),Bs=class{constructor(t,n,r,i,o){this.name=t,this.buffer=n,this.position=r,this.line=i,this.column=o}getSnippet(t=0,n=75){var r,i,o,s,a;if(!this.buffer)return null;for(t=t||4,n=n||75,r="",i=this.position;i>0&&`\0\r
1
+ var Xy=Object.create;var ai=Object.defineProperty;var Zy=Object.getOwnPropertyDescriptor;var eb=Object.getOwnPropertyNames;var tb=Object.getPrototypeOf,nb=Object.prototype.hasOwnProperty;var Hl=(e,t)=>()=>(e&&(t=e(e=0)),t);var S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ls=(e,t)=>{for(var n in t)ai(e,n,{get:t[n],enumerable:!0})},si=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of eb(t))!nb.call(e,i)&&i!==n&&ai(e,i,{get:()=>t[i],enumerable:!(r=Zy(t,i))||r.enumerable});return e},Is=(e,t,n)=>(si(e,t,"default"),n&&si(n,t,"default")),Oe=(e,t,n)=>(n=e!=null?Xy(tb(e)):{},si(t||!e||!e.__esModule?ai(n,"default",{value:e,enumerable:!0}):n,e)),ci=e=>si(ai({},"__esModule",{value:!0}),e);var wt=S(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.isYAMLNode=he.isNodesEqual=he.newMap=he.newSeq=he.newItems=he.newScalar=he.newAnchorRef=he.newMapping=he.Kind=void 0;var ft;(function(e){e[e.SCALAR=0]="SCALAR",e[e.MAPPING=1]="MAPPING",e[e.MAP=2]="MAP",e[e.SEQ=3]="SEQ",e[e.ANCHOR_REF=4]="ANCHOR_REF",e[e.INCLUDE_REF=5]="INCLUDE_REF"})(ft=he.Kind||(he.Kind={}));function sb(e,t,n=2){var r=t?t.endPosition:e.endPosition+1,i={key:e,value:t,nodeIndent:n,startPosition:e.startPosition,endPosition:r,kind:ft.MAPPING,parent:null,errors:[]};return i}he.newMapping=sb;function ab(e,t,n,r,i=2){return{errors:[],referencesAnchor:e,value:r,nodeIndent:i,startPosition:t,endPosition:n,kind:ft.ANCHOR_REF,parent:null}}he.newAnchorRef=ab;function cb(e="",t=2){let n={errors:[],startPosition:-1,endPosition:-1,value:""+e,nodeIndent:t,kind:ft.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(n.valueObject=e),n}he.newScalar=cb;function Gl(){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:2,items:[],kind:ft.SEQ,parent:null}}he.newItems=Gl;function ub(){return Gl()}he.newSeq=ub;function lb(e,t=2){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:t,mappings:e||[],kind:ft.MAP,parent:null}}he.newMap=lb;function xr(e,t){if(!e||!t||e.kind!==t.kind)return!1;if(e.kind===ft.SCALAR)return e.value===t.value;if(e.kind===ft.SEQ){let n=e,r=t;if(n.items.length!==r.items.length)return!1;for(let i=0;i<n.items.length;i++){let o=n.items[i],s=r.items[i];if(!xr(o,s))return!1}return!0}if(e.kind===ft.MAP){let n=e,r=t;if(n.mappings.length!==r.mappings.length)return!1;for(let i of n.mappings){let o=i.key,s=i.value,a=r.mappings.find(c=>xr(o,c.key));if(a){if(!xr(s,a.value))return!1}else return!1}return!0}if(ft.MAPPING===e.kind){let n=e,r=t;return xr(n.key,r.key)}return!1}he.isNodesEqual=xr;function pb(e){return e.startPosition!==void 0&&e.endPosition!==void 0&&e.kind!==void 0}he.isYAMLNode=pb});var sn=S(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.isNegativeZero=Ue.repeat=Ue.extend=Ue.toArray=Ue.isObject=Ue.isNothing=void 0;function Ql(e){return typeof e>"u"||e===null}Ue.isNothing=Ql;function db(e){return typeof e=="object"&&e!==null}Ue.isObject=db;function fb(e){return Array.isArray(e)?e:Ql(e)?[]:[e]}Ue.toArray=fb;function gb(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n<r;n+=1)i=o[n],e[i]=t[i];return e}Ue.extend=gb;function mb(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}Ue.repeat=mb;function hb(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Ue.isNegativeZero=hb});var Dn=S((qR,Jl)=>{"use strict";var di=class e{constructor(t,n=null,r=!1){this.name="YAMLException",this.reason=t,this.mark=n,this.message=this.toString(!1),this.isWarning=r}static isInstance(t){if(t!=null&&t.getClassIdentifier&&typeof t.getClassIdentifier=="function"){for(let n of t.getClassIdentifier())if(n==e.CLASS_IDENTIFIER)return!0}return!1}getClassIdentifier(){var t=[];return t.concat(e.CLASS_IDENTIFIER)}toString(t=!1){var n;return n="JS-YAML: "+(this.reason||"(unknown reason)"),!t&&this.mark&&(n+=" "+this.mark.toString()),n}};di.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException";Jl.exports=di});var ep=S((ER,Zl)=>{"use strict";var Xl=sn(),zs=class{constructor(t,n,r,i,o){this.name=t,this.buffer=n,this.position=r,this.line=i,this.column=o}getSnippet(t=0,n=75){var r,i,o,s,a;if(!this.buffer)return null;for(t=t||4,n=n||75,r="",i=this.position;i>0&&`\0\r
2
2
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>n/2-1){r=" ... ",i+=5;break}for(o="",s=this.position;s<this.buffer.length&&`\0\r
3
- \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),Gl.repeat(" ",t)+r+a+o+`
4
- `+Gl.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}};Ql.exports=Bs});var ke=S(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.Type=void 0;var Xl=Dn(),gb=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],mb=["scalar","sequence","mapping"];function hb(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}var Hs=class{constructor(t,n){if(n=n||{},Object.keys(n).forEach(function(r){if(gb.indexOf(r)===-1)throw new Xl('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=hb(n.styleAliases||null),mb.indexOf(this.kind)===-1)throw new Xl('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}};li.Type=Hs});var Tn=S(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.Schema=void 0;var Zl=sn(),pi=Dn(),yb=ke();function zs(e,t,n){var r=[];return e.include.forEach(function(i){n=zs(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 bb(){var e={},t,n;function r(i){e[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}var Lt=class{constructor(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(n){if(n.loadKind&&n.loadKind!=="scalar")throw new pi("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=zs(this,"implicit",[]),this.compiledExplicit=zs(this,"explicit",[]),this.compiledTypeMap=bb(this.compiledImplicit,this.compiledExplicit)}};di.Schema=Lt;Lt.DEFAULT=null;Lt.create=function(...t){var n,r;switch(t.length){case 1:n=Lt.DEFAULT,r=t[0];break;case 2:n=t[0],r=t[1];break;default:throw new pi("Wrong number of arguments for Schema.create function")}if(n=Zl.toArray(n),r=Zl.toArray(r),!n.every(function(i){return i instanceof Lt}))throw new pi("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(i){return i instanceof yb.Type}))throw new pi("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Lt({include:n,explicit:r})}});var tp=S((kR,ep)=>{"use strict";var vb=ke();ep.exports=new vb.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var rp=S((AR,np)=>{"use strict";var xb=ke();np.exports=new xb.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var op=S((OR,ip)=>{"use strict";var Pb=ke();ip.exports=new Pb.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var ap=S((qR,sp)=>{"use strict";var Cb=Tn();sp.exports=new Cb.Schema({explicit:[tp(),rp(),op()]})});var lp=S((ER,up)=>{"use strict";var _b=ke(),cp=Tt();function Sb(e){let t=cp.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 Rb(e){return cp.isYAMLNode(e)?e:null}function Db(e){return e===null}up.exports=new _b.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:Sb,construct:Rb,predicate:Db,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var fp=S((NR,dp)=>{"use strict";var Tb=ke(),pp=Tt();function wb(e){let t=pp.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 kb(e){return pp.isYAMLNode(e)?e:e==="true"||e==="True"||e==="TRUE"}function Ab(e){return Object.prototype.toString.call(e)==="[object Boolean]"}dp.exports=new Tb.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:wb,construct:kb,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 hp=S((jR,mp)=>{"use strict";var Ob=sn(),qb=ke(),gp=Tt();function Eb(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Nb(e){return 48<=e&&e<=55}function jb(e){return 48<=e&&e<=57}function Mb(e){let t=gp.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(!Eb(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(!Nb(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(o===":")break;if(!jb(t.charCodeAt(r)))return!1;i=!0}return i?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(r)):!1}function Lb(e){if(gp.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 Fb(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ob.isNegativeZero(e)}mp.exports=new qb.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:Mb,construct:Lb,predicate:Fb,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 xp=S((MR,vp)=>{"use strict";var yp=sn(),Ib=ke(),bp=Tt(),Ub=new RegExp("-?(0|[1-9][0-9]*)(.[0-9]*)?([eE][-+]?[0-9]+)?|^0$|^[-+]?.(inf|Inf|INF)$|^.(nan|NaN|NAN)$");function Wb(e){let t=bp.isYAMLNode(e)?e.value:e;return!(t===null||!Ub.test(t))}function Bb(e){if(bp.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 Hb(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(yp.isNegativeZero(e))return"-0.0";return e.toString(10)}function zb(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||yp.isNegativeZero(e))}vp.exports=new Ib.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:Wb,construct:Bb,predicate:zb,represent:Hb,defaultStyle:"lowercase"})});var Cp=S((LR,Pp)=>{"use strict";var $b=Tn();Pp.exports=new $b.Schema({include:[ap()],implicit:[lp(),fp(),hp(),xp()]})});var Sp=S((FR,_p)=>{"use strict";var Yb=Tn();_p.exports=new Yb.Schema({include:[Cp()]})});var Tp=S((IR,Dp)=>{"use strict";var Vb=ke(),Rp=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");function Kb(e){if(e===null)return!1;var t,n,r,i,o,s,a,c=0,l=null,d,h,v;return t=Rp.exec(e),t!==null}function Gb(e){var t,n,r,i,o,s,a,c=0,l=null,d,h,v;if(t=Rp.exec(e),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c=c+"0";c=+c}return t[9]&&(d=+t[10],h=+(t[11]||0),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 Qb(e){return e.toISOString()}Dp.exports=new Vb.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Kb,construct:Gb,instanceOf:Date,represent:Qb})});var kp=S((UR,wp)=>{"use strict";var Jb=ke();function Xb(e){return e==="<<"||e===null}wp.exports=new Jb.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Xb})});var Ap={};Ms(Ap,{default:()=>Zb});var Zb,Op=Hl(()=>{Zb={}});var Ep=S((WR,qp)=>{"use strict";var fi=(Op(),ci(Ap)).Buffer,ev=ke(),$s=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
6
- \r`;function tv(e){if(e===null)return!1;var t,n,r=0,i=0,o=e.length,s=$s;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 nv(e){var t,n,r,i=e.replace(/[\r\n=]/g,""),o=i.length,s=$s,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),fi?new fi(c):c}function rv(e){var t="",n=0,r,i,o=e.length,s=$s;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 iv(e){return fi&&fi.isBuffer(e)}qp.exports=new ev.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:tv,construct:nv,predicate:iv,represent:rv})});var jp=S((BR,Np)=>{"use strict";var ov=ke(),sv=Object.prototype.hasOwnProperty,av=Object.prototype.toString;function cv(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,av.call(i)!=="[object Object]")return!1;for(o in i)if(sv.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 uv(e){return e!==null?e:[]}Np.exports=new ov.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:cv,construct:uv})});var Lp=S((HR,Mp)=>{"use strict";var lv=ke(),Ys=Tt(),pv=Object.prototype.toString;function dv(e){if(e===null)return!0;if(e.kind!=Ys.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],pv.call(r)!=="[object Object]"||!Array.isArray(r.mappings)||r.mappings.length!==1)return!1;return!0}function fv(e){if(e===null||!Array.isArray(e.items))return[];let t,n,r,i,o=e.items;for(i=Ys.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=Ys.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}Mp.exports=new lv.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:dv,construct:fv})});var Ip=S((zR,Fp)=>{"use strict";var gv=ke(),mv=Tt();function hv(e){return e===null?!0:e.kind==mv.Kind.MAP}function yv(e){return e!==null?e:{}}Fp.exports=new gv.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:hv,construct:yv})});var gi=S(($R,Up)=>{"use strict";var bv=Tn(),vv=new bv.Schema({include:[Sp()],implicit:[Tp(),kp()],explicit:[Ep(),jp(),Lp(),Ip()]});Up.exports=vv});var Bp=S((YR,Wp)=>{"use strict";var xv=ke();function Pv(){return!0}function Cv(){}function _v(){return""}function Sv(e){return typeof e>"u"}Wp.exports=new xv.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:Pv,construct:Cv,predicate:Sv,represent:_v})});var zp=S((VR,Hp)=>{"use strict";var Rv=ke();function Dv(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 Tv(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 wv(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function kv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}Hp.exports=new Rv.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:Dv,construct:Tv,predicate:kv,represent:wv})});var Vs=S((KR,Vp)=>{"use strict";var $p=Tn(),Yp=new $p.Schema({include:[gi()],explicit:[Bp(),zp()]});$p.Schema.DEFAULT=Yp;Vp.exports=Yp});var sd=S((gt,Cr)=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.safeLoad=gt.safeLoadAll=gt.load=gt.loadAll=void 0;var We=Tt(),Ft=sn(),ta=Dn(),na=Jl(),Jp=gi(),Av=Vs(),yi=Object.prototype.hasOwnProperty,mi=1,Xp=2,Zp=3,hi=4,Ks=1,Ov=2,Kp=3,qv=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ev=/[\x85\u2028\u2029]/,Nv=/[,\[\]\{\}]/,ed=/^(?:!|!!|![a-z\-]+!)$/i,td=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function at(e){return e===10||e===13}function cn(e){return e===9||e===32}function Ue(e){return e===9||e===32||e===10||e===13}function wn(e){return e===44||e===91||e===93||e===123||e===125}function jv(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Mv(e){return e===120?2:e===117?4:e===85?8:0}function Lv(e){return 48<=e&&e<=57?e-48:-1}function Fv(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
7
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Iv(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Gs=new Array(256),Qs=new Array(256),nd=new Array(256),Js=new Array(256);for(Qe=0;Qe<256;Qe++)Js[Qe]=Qs[Qe]=Fv(Qe),Gs[Qe]=Qs[Qe]?1:0,nd[Qe]=1,Gs[Qe]||(Js[Qe]="\\"+String.fromCharCode(Qe));var Qe,Xs=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 ra(e,t,n=!1){return new ta(t,new na(e.filename,e.input,e.position,e.line,e.position-e.lineStart),n)}function Zs(e,t,n,r=!1,i=!1){var o=Uv(e,t);if(o){var s=n+t;if(!e.errorMap[s]){var a=new na(e.filename,e.input,t,o.line,t-o.start);i&&(a.toLineEnd=!0);var c=new ta(n,a,r);e.errors.push(c)}}}function W(e,t){var n=ra(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 ea(e,t){var n=ra(e,t);e.onWarning&&e.onWarning.call(null,n)}var Gp={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],ed.test(i)||W(t,"ill-formed tag handle (first argument) of the TAG directive"),yi.call(t.tagMap,i)&&W(t,'there is a previously declared suffix for "'+i+'" tag handle'),td.test(o)||W(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function It(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 qv.test(a)&&W(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=n}}function an(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)&&(Zs(e,a.key.startPosition,"duplicate key"),Zs(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=s,t}}function ia(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 Uv(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(;cn(o);)o===9&&e.errors.push(ra(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(at(o))for(ia(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&&ea(e,"deficient indentation"),i}function Pr(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 oa(e,t,n){n===1?t.value+=" ":n>1&&(t.value+=Ft.repeat(`
9
- `,n-1))}function Wv(e,t,n){var r,i,o,s,a,c,l,d,h=e.kind,v=e.result,y,D=We.newScalar("",t);if(D.plainScalar=!0,e.result=D,y=e.input.charCodeAt(e.position),Ue(y)||wn(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&&wn(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&&wn(i))break}else if(y===35){if(r=e.input.charCodeAt(e.position-1),Ue(r))break}else{if(e.position===e.lineStart&&Pr(e)||n&&wn(y))break;if(at(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&&(It(e,o,s,!1),oa(e,D,e.line-c),o=s=e.position,a=!1),cn(y)||(s=e.position+1),y=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return It(e,o,s,!1),e.result.startPosition!=-1?(D.rawValue=e.input.substring(D.startPosition,D.endPosition),e.result.endPosition=ce(e,!1,-1)?e.position-1:e.position,!0):(e.kind=h,e.result=v,!1)}function Bv(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(It(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 at(n)?(It(e,r,i,!0),oa(e,o,ce(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Pr(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 Hv(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 It(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(It(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),at(c))ce(e,!1,t);else if(c<256&&(e.allowAnyEscape?nd[c]:Gs[c]))l.value+=e.allowAnyEscape?Js[c]:Qs[c],e.position++;else if((s=Mv(c))>0){for(i=s,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(s=jv(c))>=0?o=(o<<4)+s:W(e,"expected hexadecimal character");l.value+=Iv(o),e.position++}else W(e,"unknown escape sequence");n=r=e.position}else at(c)?(It(e,n,r,!0),oa(e,l,ce(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Pr(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 zv(e,t){var n=!0,r,i=e.tag,o,s=e.anchor,a,c,l,d,h,v,y,D,F;if(F=e.input.charCodeAt(e.position),F===91)c=93,h=!1,o=We.newItems(),o.startPosition=e.position;else if(F===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),F=e.input.charCodeAt(++e.position);F!==0;){if(ce(e,!0,t),F=e.input.charCodeAt(e.position),F===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=D=null,l=d=!1,F===63&&(a=e.input.charCodeAt(e.position+1),Ue(a)&&(l=d=!0,e.position++,ce(e,!0,t))),r=e.line,kn(e,t,mi,!1,!0),y=e.tag,v=e.result,ce(e,!0,t),F=e.input.charCodeAt(e.position),(d||e.line===r)&&F===58&&(l=!0,F=e.input.charCodeAt(++e.position),ce(e,!0,t),kn(e,t,mi,!1,!0),D=e.result),h)an(e,o,y,v,D,t);else if(l){var V=an(e,null,y,v,D,t);V.parent=o,o.items.push(V)}else v&&(v.parent=o),o.items.push(v);o.endPosition=e.position+1,ce(e,!0,t),F=e.input.charCodeAt(e.position),F===44?(n=!0,F=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=Ks,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)Ks===i?i=d===43?Kp:Ov:W(e,"repeat of a chomping mode identifier");else if((l=Lv(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(cn(d)){do d=e.input.charCodeAt(++e.position);while(cn(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!at(d)&&d!==0)}for(;d!==0;){for(ia(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),at(d)){a++;continue}if(e.lineIndent<s){i===Kp?h.value+=Ft.repeat(`
10
- `,a):i===Ks&&o&&(h.value+=`
11
- `);break}for(r?cn(d)?(c=!0,h.value+=Ft.repeat(`
12
- `,a+1)):c?(c=!1,h.value+=Ft.repeat(`
13
- `,a+1)):a===0?o&&(h.value+=" "):h.value+=Ft.repeat(`
14
- `,a):o&&(h.value+=Ft.repeat(`
15
- `,a+1)),o=!0,a=0,n=e.position;!at(d)&&d!==0;)d=e.input.charCodeAt(++e.position);It(e,n,e.position,!1)}h.endPosition=e.position;for(var v=e.position-1,y=!1;;){var D=e.input[v];if(D=="\r"||D==`
16
- `){y&&v--;break}if(D!=" "&&D!=" ")break;v--}return h.endPosition=v,h.rawValue=e.input.substring(h.startPosition,h.endPosition),!0}function Qp(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,kn(e,t,Zp,!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 Yv(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,D;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),D=e.input.charCodeAt(e.position);D!==0;){if(r=e.input.charCodeAt(e.position+1),o=e.line,(D===63||D===58)&&Ue(r))D===63?(v&&(an(e,c,l,d,null,t),l=d=h=null),y=!0,v=!0,i=!0):v?(v=!1,i=!0):W(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,D=r;else if(kn(e,n,Xp,!1,!0))if(e.line===o){for(D=e.input.charCodeAt(e.position);cn(D);)D=e.input.charCodeAt(++e.position);if(D===58)D=e.input.charCodeAt(++e.position),Ue(D)||W(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(an(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&&Pr(e))break;if(y)W(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=a,!0}}else if(y){for(W(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(D=e.input.charCodeAt(--e.position),at(D)){e.position++;break}d=e.result,d.value=e.input.substring(e.result.startPosition,e.position-1),d.rawValue=d.value,d.endPosition=e.position-1,an(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 F=e.line;kn(e,t,hi,!0,i)?(ce(e,!0,t),v?d=e.result:(h=e.result,h.endPosition=e.line===F?e.position:e.position-1)):d&&(d.endPosition=e.line===F?e.position:e.position-1),v||(an(e,c,l,d,h,t),l=d=h=null),ce(e,!0,-1),D=e.input.charCodeAt(e.position)}if(e.lineIndent>t&&D!==0)W(e,"bad indentation of a mapping entry"+e.position),D=e.input.charCodeAt(++e.position),ce(e,!0,-1);else if(e.lineIndent<t)break}return v&&an(e,c,l,d,null,t),y&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),y}function Vv(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),ed.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),Nv.test(o)&&W(e,"tag suffix cannot contain flow indicator characters")}return o&&!td.test(o)&&W(e,"tag name cannot contain such characters: "+o),n?e.tag=o:yi.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 Kv(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)&&!wn(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 Gv(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)&&!wn(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 kn(e,t,n,r,i){var o,s,a,c=1,l=!1,d=!1,h,v,y,D,F,$;e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=hi===n||Zp===n,r&&ce(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));let V=e.position;if(c===1)for(;Vv(e)||Kv(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||hi===n)&&(mi===n||Xp===n?D=t:D=t+1,F=e.position-e.lineStart,c===1?a&&(Qp(e,F)||Yv(e,F,D))||zv(e,D)?d=!0:(s&&$v(e,D)||Bv(e,D)||Hv(e,D)?d=!0:Gv(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&W(e,"alias node should not have any properties")):Wv(e,D,mi===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&&Qp(e,F))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=We.newScalar("",F),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 yi.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")):Zs(e,V,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||d}function Qv(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(;cn(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!at(s));break}if(at(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&&ia(e),yi.call(Gp,r)?Gp[r](e,r,i):(ea(e,'unknown document directive "'+r+'"'),e.position++)}if(ce(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ce(e,!0,-1)):o&&W(e,"directives end mark is expected"),kn(e,e.lineIndent-1,hi,!1,!0),ce(e,!0,-1),e.checkLineBreaks&&Ev.test(e.input.slice(t,e.position))&&ea(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Pr(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 rd(e,t){e=String(e),t=t||{};let n=e.length;n!==0&&(e.charCodeAt(n-1)!==10&&e.charCodeAt(n-1)!==13&&(e+=`
17
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Xs(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(Qv(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 sa(e,t,n={}){var r=rd(e,n),i,o;for(i=0,o=r.length;i<o;i+=1)t(r[i])}gt.loadAll=sa;function aa(e,t={}){var n=rd(e,t),r,i;if(n.length!==0){if(n.length===1)return n[0];var o=new ta("expected a single document in the stream, but found more");return o.mark=new na("","",0,0,0),o.mark.position=n[0].endPosition,n[0].errors.push(o),n[0]}}gt.load=aa;function id(e,t,n={}){sa(e,t,Ft.extend({schema:Jp},n))}gt.safeLoadAll=id;function od(e,t={}){return aa(e,Ft.extend({schema:Jp},t))}gt.safeLoad=od;Cr.exports.loadAll=sa;Cr.exports.load=aa;Cr.exports.safeLoadAll=id;Cr.exports.safeLoad=od});var fd=S(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.safeDump=An.dump=void 0;var _r=sn(),fa=Dn(),Jv=Vs(),Xv=gi(),ga=Object.prototype.toString,ld=Object.prototype.hasOwnProperty,Zv=9,un=10,ex=13,ca=32,tx=33,ua=34,nx=35,rx=37,ix=38,la=39,ox=42,sx=44,ax=45,cx=58,ux=62,lx=63,px=64,dx=91,fx=93,gx=96,mx=123,hx=124,yx=125,Re={};Re[0]="\\0";Re[7]="\\a";Re[8]="\\b";Re[9]="\\t";Re[10]="\\n";Re[11]="\\v";Re[12]="\\f";Re[13]="\\r";Re[27]="\\e";Re[34]='\\"';Re[92]="\\\\";Re[133]="\\N";Re[160]="\\_";Re[8232]="\\L";Re[8233]="\\P";var bx=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function vx(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&&ld.call(c.styleAliases,a)&&(a=c.styleAliases[a]),n[s]=a;return n}function xx(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 fa("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+_r.repeat("0",r-t.length)+t}function Px(e){this.schema=e.schema||Jv,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=_r.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=vx(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 ad(e,t){for(var n=_r.repeat(" ",t),r=0,i=-1,o="",s,a=e.length;r<a;)i=e.indexOf(`
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),Xl.repeat(" ",t)+r+a+o+`
4
+ `+Xl.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}};Zl.exports=zs});var we=S(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.Type=void 0;var tp=Dn(),yb=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],bb=["scalar","sequence","mapping"];function vb(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}var $s=class{constructor(t,n){if(n=n||{},Object.keys(n).forEach(function(r){if(yb.indexOf(r)===-1)throw new tp('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=vb(n.styleAliases||null),bb.indexOf(this.kind)===-1)throw new tp('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}};fi.Type=$s});var Tn=S(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.Schema=void 0;var np=sn(),gi=Dn(),xb=we();function Ys(e,t,n){var r=[];return e.include.forEach(function(i){n=Ys(i,t,n)}),e[t].forEach(function(i){n.forEach(function(o,s){o.tag===i.tag&&r.push(s)}),n.push(i)}),n.filter(function(i,o){return r.indexOf(o)===-1})}function Pb(){var e={},t,n;function r(i){e[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}var Lt=class{constructor(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(n){if(n.loadKind&&n.loadKind!=="scalar")throw new gi("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Ys(this,"implicit",[]),this.compiledExplicit=Ys(this,"explicit",[]),this.compiledTypeMap=Pb(this.compiledImplicit,this.compiledExplicit)}};mi.Schema=Lt;Lt.DEFAULT=null;Lt.create=function(...t){var n,r;switch(t.length){case 1:n=Lt.DEFAULT,r=t[0];break;case 2:n=t[0],r=t[1];break;default:throw new gi("Wrong number of arguments for Schema.create function")}if(n=np.toArray(n),r=np.toArray(r),!n.every(function(i){return i instanceof Lt}))throw new gi("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(i){return i instanceof xb.Type}))throw new gi("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Lt({include:n,explicit:r})}});var ip=S((MR,rp)=>{"use strict";var Cb=we();rp.exports=new Cb.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var sp=S((LR,op)=>{"use strict";var _b=we();op.exports=new _b.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var cp=S((IR,ap)=>{"use strict";var Sb=we();ap.exports=new Sb.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var lp=S((FR,up)=>{"use strict";var Rb=Tn();up.exports=new Rb.Schema({explicit:[ip(),sp(),cp()]})});var fp=S((UR,dp)=>{"use strict";var Db=we(),pp=wt();function Tb(e){let t=pp.isYAMLNode(e)?e.value:e;if(t===null)return!0;var n=t.length;return n===1&&t==="~"||n===4&&(t==="null"||t==="Null"||t==="NULL")}function wb(e){return pp.isYAMLNode(e)?e:null}function kb(e){return e===null}dp.exports=new Db.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:Tb,construct:wb,predicate:kb,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var hp=S((WR,mp)=>{"use strict";var Ab=we(),gp=wt();function Ob(e){let t=gp.isYAMLNode(e)?e.value:e;if(t===null)return!1;var n=t.length;return n===4&&(t==="true"||t==="True"||t==="TRUE")||n===5&&(t==="false"||t==="False"||t==="FALSE")}function qb(e){return gp.isYAMLNode(e)?e:e==="true"||e==="True"||e==="TRUE"}function Eb(e){return Object.prototype.toString.call(e)==="[object Boolean]"}mp.exports=new Ab.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Ob,construct:qb,predicate:Eb,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 vp=S((BR,bp)=>{"use strict";var Nb=sn(),jb=we(),yp=wt();function Mb(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Lb(e){return 48<=e&&e<=55}function Ib(e){return 48<=e&&e<=57}function Fb(e){let t=yp.isYAMLNode(e)?e.value:e;if(t===null)return!1;var n=t.length,r=0,i=!1,o;if(!n)return!1;if(o=t[r],(o==="-"||o==="+")&&(o=t[++r]),o==="0"){if(r+1===n)return!0;if(o=t[++r],o==="b"){for(r++;r<n;r++)if(o=t[r],o!=="_"){if(o!=="0"&&o!=="1")return!1;i=!0}return i}if(o==="x"){for(r++;r<n;r++)if(o=t[r],o!=="_"){if(!Mb(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(!Lb(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(o===":")break;if(!Ib(t.charCodeAt(r)))return!1;i=!0}return i?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(r)):!1}function Ub(e){if(yp.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 Wb(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Nb.isNegativeZero(e)}bp.exports=new jb.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:Fb,construct:Ub,predicate:Wb,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 _p=S((HR,Cp)=>{"use strict";var xp=sn(),Bb=we(),Pp=wt(),Hb=new RegExp("-?(0|[1-9][0-9]*)(.[0-9]*)?([eE][-+]?[0-9]+)?|^0$|^[-+]?.(inf|Inf|INF)$|^.(nan|NaN|NAN)$");function zb(e){let t=Pp.isYAMLNode(e)?e.value:e;return!(t===null||!Hb.test(t))}function $b(e){if(Pp.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 Yb(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(xp.isNegativeZero(e))return"-0.0";return e.toString(10)}function Vb(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||xp.isNegativeZero(e))}Cp.exports=new Bb.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:zb,construct:$b,predicate:Vb,represent:Yb,defaultStyle:"lowercase"})});var Rp=S((zR,Sp)=>{"use strict";var Kb=Tn();Sp.exports=new Kb.Schema({include:[lp()],implicit:[fp(),hp(),vp(),_p()]})});var Tp=S(($R,Dp)=>{"use strict";var Gb=Tn();Dp.exports=new Gb.Schema({include:[Rp()]})});var Ap=S((YR,kp)=>{"use strict";var Qb=we(),wp=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 Jb(e){if(e===null)return!1;var t,n,r,i,o,s,a,c=0,l=null,d,h,v;return t=wp.exec(e),t!==null}function Xb(e){var t,n,r,i,o,s,a,c=0,l=null,d,h,v;if(t=wp.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 Zb(e){return e.toISOString()}kp.exports=new Qb.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Jb,construct:Xb,instanceOf:Date,represent:Zb})});var qp=S((VR,Op)=>{"use strict";var ev=we();function tv(e){return e==="<<"||e===null}Op.exports=new ev.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:tv})});var Ep={};Ls(Ep,{default:()=>nv});var nv,Np=Hl(()=>{nv={}});var Mp=S((KR,jp)=>{"use strict";var hi=(Np(),ci(Ep)).Buffer,rv=we(),Vs=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
6
+ \r`;function iv(e){if(e===null)return!1;var t,n,r=0,i=0,o=e.length,s=Vs;for(n=0;n<o;n++)if(t=s.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function ov(e){var t,n,r,i=e.replace(/[\r\n=]/g,""),o=i.length,s=Vs,a=0,c=[];for(n=0;n<o;n++)n%4===0&&n&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(i.charAt(n));return r=o%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),hi?new hi(c):c}function sv(e){var t="",n=0,r,i,o=e.length,s=Vs;for(r=0;r<o;r++)r%3===0&&r&&(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[r];return i=o%3,i===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):i===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):i===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}function av(e){return hi&&hi.isBuffer(e)}jp.exports=new rv.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:iv,construct:ov,predicate:av,represent:sv})});var Ip=S((GR,Lp)=>{"use strict";var cv=we(),uv=Object.prototype.hasOwnProperty,lv=Object.prototype.toString;function pv(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,lv.call(i)!=="[object Object]")return!1;for(o in i)if(uv.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 dv(e){return e!==null?e:[]}Lp.exports=new cv.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:pv,construct:dv})});var Up=S((QR,Fp)=>{"use strict";var fv=we(),Ks=wt(),gv=Object.prototype.toString;function mv(e){if(e===null)return!0;if(e.kind!=Ks.Kind.SEQ)return!1;var t,n,r,i,o,s=e.items;for(t=0,n=s.length;t<n;t+=1)if(r=s[t],gv.call(r)!=="[object Object]"||!Array.isArray(r.mappings)||r.mappings.length!==1)return!1;return!0}function hv(e){if(e===null||!Array.isArray(e.items))return[];let t,n,r,i,o=e.items;for(i=Ks.newItems(),i.parent=e.parent,i.startPosition=e.startPosition,i.endPosition=e.endPosition,t=0,n=o.length;t<n;t+=1){let a=o[t].mappings[0],c=Ks.newItems();c.parent=i,c.startPosition=a.key.startPosition,c.endPosition=a.value.startPosition,a.key.parent=c,a.value.parent=c,c.items=[a.key,a.value],i.items.push(c)}return i}Fp.exports=new fv.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:mv,construct:hv})});var Bp=S((JR,Wp)=>{"use strict";var yv=we(),bv=wt();function vv(e){return e===null?!0:e.kind==bv.Kind.MAP}function xv(e){return e!==null?e:{}}Wp.exports=new yv.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:vv,construct:xv})});var yi=S((XR,Hp)=>{"use strict";var Pv=Tn(),Cv=new Pv.Schema({include:[Tp()],implicit:[Ap(),qp()],explicit:[Mp(),Ip(),Up(),Bp()]});Hp.exports=Cv});var $p=S((ZR,zp)=>{"use strict";var _v=we();function Sv(){return!0}function Rv(){}function Dv(){return""}function Tv(e){return typeof e>"u"}zp.exports=new _v.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:Sv,construct:Rv,predicate:Tv,represent:Dv})});var Vp=S((eD,Yp)=>{"use strict";var wv=we();function kv(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 Av(e){var t=e,n=/\/([gim]*)$/.exec(e),r="";return t[0]==="/"&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)}function Ov(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function qv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}Yp.exports=new wv.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:kv,construct:Av,predicate:qv,represent:Ov})});var Gs=S((tD,Qp)=>{"use strict";var Kp=Tn(),Gp=new Kp.Schema({include:[yi()],explicit:[$p(),Vp()]});Kp.Schema.DEFAULT=Gp;Qp.exports=Gp});var ud=S((gt,Cr)=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.safeLoad=gt.safeLoadAll=gt.load=gt.loadAll=void 0;var Be=wt(),It=sn(),ra=Dn(),ia=ep(),ed=yi(),Ev=Gs(),xi=Object.prototype.hasOwnProperty,bi=1,td=2,nd=3,vi=4,Qs=1,Nv=2,Jp=3,jv=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Mv=/[\x85\u2028\u2029]/,Lv=/[,\[\]\{\}]/,rd=/^(?:!|!!|![a-z\-]+!)$/i,id=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function at(e){return e===10||e===13}function cn(e){return e===9||e===32}function We(e){return e===9||e===32||e===10||e===13}function wn(e){return e===44||e===91||e===93||e===123||e===125}function Iv(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 Uv(e){return 48<=e&&e<=57?e-48:-1}function Wv(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
7
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Bv(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Js=new Array(256),Xs=new Array(256),od=new Array(256),Zs=new Array(256);for(Je=0;Je<256;Je++)Zs[Je]=Xs[Je]=Wv(Je),Js[Je]=Xs[Je]?1:0,od[Je]=1,Js[Je]||(Zs[Je]="\\"+String.fromCharCode(Je));var Je,ea=class{constructor(t,n){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=n.filename||null,this.schema=n.schema||Ev,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.allowAnyEscape=n.allowAnyEscape||!1,this.ignoreDuplicateKeys=n.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}};function oa(e,t,n=!1){return new ra(t,new ia(e.filename,e.input,e.position,e.line,e.position-e.lineStart),n)}function ta(e,t,n,r=!1,i=!1){var o=Hv(e,t);if(o){var s=n+t;if(!e.errorMap[s]){var a=new ia(e.filename,e.input,t,o.line,t-o.start);i&&(a.toLineEnd=!0);var c=new ra(n,a,r);e.errors.push(c)}}}function W(e,t){var n=oa(e,t),r=n.message+n.mark.position;if(!e.errorMap[r]){e.errors.push(n),e.errorMap[r]=1;for(var i=e.position;;){if(e.position>=e.input.length-1)return;var o=e.input.charAt(e.position);if(o==`
8
+ `){e.position--,e.position==i&&(e.position+=1);return}if(o=="\r"){e.position--,e.position==i&&(e.position+=1);return}e.position++}}}function na(e,t){var n=oa(e,t);e.onWarning&&e.onWarning.call(null,n)}var Xp={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],rd.test(i)||W(t,"ill-formed tag handle (first argument) of the TAG directive"),xi.call(t.tagMap,i)&&W(t,'there is a previously declared suffix for "'+i+'" tag handle'),id.test(o)||W(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function Ft(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 jv.test(a)&&W(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=n}}function an(e,t,n,r,i,o){if(r!=null){var s=i?i.endPosition:r.endPosition;!i&&e.input.charAt(s)===":"&&s++,t===null&&(t={startPosition:r.startPosition,endPosition:s,parent:null,errors:[],mappings:[],kind:Be.Kind.MAP,nodeIndent:o});var a=Be.newMapping(r,i,o);return a.parent=t,r.parent=a,i==null?a.endPosition=r.endPosition:i.parent=a,!e.ignoreDuplicateKeys&&t.mappings.forEach(c=>{Be.isNodesEqual(c,a)&&(ta(e,a.key.startPosition,"duplicate key"),ta(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=s,t}}function sa(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):W(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function Hv(e,t){for(var n,r=0;r<e.lines.length&&!(e.lines[r].start>t);r++)n=e.lines[r];return n||{start:0,line:0}}function ce(e,t,n,r=!1){for(var i=0,o=e.input.charCodeAt(e.position);o!==0;){for(;cn(o);)o===9&&e.errors.push(oa(e,"Using tabs can lead to unpredictable results",!0)),o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(at(o))for(sa(e),o=e.input.charCodeAt(e.position),i++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return n!==-1&&i!==0&&e.lineIndent<n&&na(e,"deficient indentation"),i}function Pr(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||We(n)))}function aa(e,t,n){n===1?t.value+=" ":n>1&&(t.value+=It.repeat(`
9
+ `,n-1))}function zv(e,t,n){var r,i,o,s,a,c,l,d,h=e.kind,v=e.result,y,D=Be.newScalar("",t);if(D.plainScalar=!0,e.result=D,y=e.input.charCodeAt(e.position),We(y)||wn(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),We(i)||n&&wn(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),We(i)||n&&wn(i))break}else if(y===35){if(r=e.input.charCodeAt(e.position-1),We(r))break}else{if(e.position===e.lineStart&&Pr(e)||n&&wn(y))break;if(at(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&&(Ft(e,o,s,!1),aa(e,D,e.line-c),o=s=e.position,a=!1),cn(y)||(s=e.position+1),y=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return Ft(e,o,s,!1),e.result.startPosition!=-1?(D.rawValue=e.input.substring(D.startPosition,D.endPosition),e.result.endPosition=ce(e,!1,-1)?e.position-1:e.position,!0):(e.kind=h,e.result=v,!1)}function $v(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;var o=Be.newScalar("",t);for(o.singleQuoted=!0,e.kind="scalar",e.result=o,o.startPosition=e.position,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Ft(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 at(n)?(Ft(e,r,i,!0),aa(e,o,ce(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Pr(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 Yv(e,t){var n,r,i,o,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;e.kind="scalar";var l=Be.newScalar("",t);for(l.doubleQuoted=!0,e.result=l,l.startPosition=e.position,e.position++,n=r=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Ft(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(Ft(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),at(c))ce(e,!1,t);else if(c<256&&(e.allowAnyEscape?od[c]:Js[c]))l.value+=e.allowAnyEscape?Zs[c]:Xs[c],e.position++;else if((s=Fv(c))>0){for(i=s,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(s=Iv(c))>=0?o=(o<<4)+s:W(e,"expected hexadecimal character");l.value+=Bv(o),e.position++}else W(e,"unknown escape sequence");n=r=e.position}else at(c)?(Ft(e,n,r,!0),aa(e,l,ce(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Pr(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 Vv(e,t){var n=!0,r,i=e.tag,o,s=e.anchor,a,c,l,d,h,v,y,D,I;if(I=e.input.charCodeAt(e.position),I===91)c=93,h=!1,o=Be.newItems(),o.startPosition=e.position;else if(I===123)c=125,h=!0,o=Be.newMap(null,t),o.startPosition=e.position;else return!1;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),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=D=null,l=d=!1,I===63&&(a=e.input.charCodeAt(e.position+1),We(a)&&(l=d=!0,e.position++,ce(e,!0,t))),r=e.line,kn(e,t,bi,!1,!0),y=e.tag,v=e.result,ce(e,!0,t),I=e.input.charCodeAt(e.position),(d||e.line===r)&&I===58&&(l=!0,I=e.input.charCodeAt(++e.position),ce(e,!0,t),kn(e,t,bi,!1,!0),D=e.result),h)an(e,o,y,v,D,t);else if(l){var V=an(e,null,y,v,D,t);V.parent=o,o.items.push(V)}else v&&(v.parent=o),o.items.push(v);o.endPosition=e.position+1,ce(e,!0,t),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 Kv(e,t){var n,r,i=Qs,o=!1,s=t,a=0,c=!1,l,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;var h=Be.newScalar("",t);for(e.kind="scalar",e.result=h,h.startPosition=e.position;d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)Qs===i?i=d===43?Jp:Nv:W(e,"repeat of a chomping mode identifier");else if((l=Uv(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(cn(d)){do d=e.input.charCodeAt(++e.position);while(cn(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!at(d)&&d!==0)}for(;d!==0;){for(sa(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),at(d)){a++;continue}if(e.lineIndent<s){i===Jp?h.value+=It.repeat(`
10
+ `,a):i===Qs&&o&&(h.value+=`
11
+ `);break}for(r?cn(d)?(c=!0,h.value+=It.repeat(`
12
+ `,a+1)):c?(c=!1,h.value+=It.repeat(`
13
+ `,a+1)):a===0?o&&(h.value+=" "):h.value+=It.repeat(`
14
+ `,a):o&&(h.value+=It.repeat(`
15
+ `,a+1)),o=!0,a=0,n=e.position;!at(d)&&d!==0;)d=e.input.charCodeAt(++e.position);Ft(e,n,e.position,!1)}h.endPosition=e.position;for(var v=e.position-1,y=!1;;){var D=e.input[v];if(D=="\r"||D==`
16
+ `){y&&v--;break}if(D!=" "&&D!=" ")break;v--}return h.endPosition=v,h.rawValue=e.input.substring(h.startPosition,h.endPosition),!0}function Zp(e,t){var n,r=e.tag,i=e.anchor,o=Be.newItems(),s,a=!1,c;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),o.startPosition=e.position,c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(s=e.input.charCodeAt(e.position+1),!We(s)));){if(a=!0,e.position++,ce(e,!0,-1)&&e.lineIndent<=t){o.items.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,kn(e,t,nd,!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 Gv(e,t,n){var r,i,o,s=e.tag,a=e.anchor,c=Be.newMap(null,t),l=null,d=null,h=null,v=!1,y=!1,D;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),D=e.input.charCodeAt(e.position);D!==0;){if(r=e.input.charCodeAt(e.position+1),o=e.line,(D===63||D===58)&&We(r))D===63?(v&&(an(e,c,l,d,null,t),l=d=h=null),y=!0,v=!0,i=!0):v?(v=!1,i=!0):W(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,D=r;else if(kn(e,n,td,!1,!0))if(e.line===o){for(D=e.input.charCodeAt(e.position);cn(D);)D=e.input.charCodeAt(++e.position);if(D===58)D=e.input.charCodeAt(++e.position),We(D)||W(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(an(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&&Pr(e))break;if(y)W(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=a,!0}}else if(y){for(W(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(D=e.input.charCodeAt(--e.position),at(D)){e.position++;break}d=e.result,d.value=e.input.substring(e.result.startPosition,e.position-1),d.rawValue=d.value,d.endPosition=e.position-1,an(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;kn(e,t,vi,!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||(an(e,c,l,d,h,t),l=d=h=null),ce(e,!0,-1),D=e.input.charCodeAt(e.position)}if(e.lineIndent>t&&D!==0)W(e,"bad indentation of a mapping entry"+e.position),D=e.input.charCodeAt(++e.position),ce(e,!0,-1);else if(e.lineIndent<t)break}return v&&an(e,c,l,d,null,t),y&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),y}function Qv(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&&!We(s);)s===33&&(r?W(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),rd.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),Lv.test(o)&&W(e,"tag suffix cannot contain flow indicator characters")}return o&&!id.test(o)&&W(e,"tag name cannot contain such characters: "+o),n?e.tag=o:xi.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 Jv(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&&!We(n)&&!wn(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 Xv(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&&!We(o)&&!wn(o);)o=e.input.charCodeAt(++e.position);return e.position<=t&&(W(e,"name of an alias node must contain at least one character"),e.position=t+1),n=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(n)||(W(e,'unidentified alias "'+n+'"'),e.position<=t&&(e.position=t+1)),e.result=Be.newAnchorRef(n,t,e.position,e.anchorMap[n],0),ce(e,!0,-1),!0}function kn(e,t,n,r,i){var o,s,a,c=1,l=!1,d=!1,h,v,y,D,I,$;e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=vi===n||nd===n,r&&ce(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));let V=e.position;if(c===1)for(;Qv(e)||Jv(e);)ce(e,!0,-1)?(l=!0,a=o,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=l||i),(c===1||vi===n)&&(bi===n||td===n?D=t:D=t+1,I=e.position-e.lineStart,c===1?a&&(Zp(e,I)||Gv(e,I,D))||Vv(e,D)?d=!0:(s&&Kv(e,D)||$v(e,D)||Yv(e,D)?d=!0:Xv(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&W(e,"alias node should not have any properties")):zv(e,D,bi===n)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result,e.result.anchorId=e.anchor)):c===0&&(d=a&&Zp(e,I))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=Be.newScalar("",I),e.result.startPosition=e.position,e.result.endPosition=e.position,W(e,"!include without value")),e.result.kind=Be.Kind.INCLUDE_REF;else if(e.tag==="?")for(h=0,v=e.implicitTypes.length;h<v;h+=1){y=e.implicitTypes[h];var m=e.result.value;if(y.resolve(m)){e.result.valueObject=y.construct(e.result.value),e.tag=y.tag,e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result);break}}else xi.call(e.typeMap,e.tag)?(y=e.typeMap[e.tag],e.result!==null&&y.kind!==e.kind&&(!y.additionalKinds||y.additionalKinds&&y.additionalKinds.indexOf(e.kind)===-1)&&W(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+y.kind+'", not "'+e.kind+'"'),y.resolve(e.result)?(e.result=y.construct(e.result),e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result)):W(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):ta(e,V,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||d}function Zv(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&&!We(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(;cn(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!at(s));break}if(at(s))break;for(n=e.position;s!==0&&!We(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&sa(e),xi.call(Xp,r)?Xp[r](e,r,i):(na(e,'unknown document directive "'+r+'"'),e.position++)}if(ce(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ce(e,!0,-1)):o&&W(e,"directives end mark is expected"),kn(e,e.lineIndent-1,vi,!1,!0),ce(e,!0,-1),e.checkLineBreaks&&Mv.test(e.input.slice(t,e.position))&&na(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Pr(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 sd(e,t){e=String(e),t=t||{};let n=e.length;n!==0&&(e.charCodeAt(n-1)!==10&&e.charCodeAt(n-1)!==13&&(e+=`
17
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new ea(e,t);for(r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;){var i=r.position;if(Zv(r),r.position<=i)for(;r.position<r.length-1;r.position++){var o=r.input.charAt(r.position);if(o==`
18
+ `)break}}let s=r.documents,a=s.length;a>0&&(s[a-1].endPosition=n);for(let c of s)c.errors=r.errors,c.startPosition>c.endPosition&&(c.startPosition=c.endPosition);return s}function ca(e,t,n={}){var r=sd(e,n),i,o;for(i=0,o=r.length;i<o;i+=1)t(r[i])}gt.loadAll=ca;function ua(e,t={}){var n=sd(e,t),r,i;if(n.length!==0){if(n.length===1)return n[0];var o=new ra("expected a single document in the stream, but found more");return o.mark=new ia("","",0,0,0),o.mark.position=n[0].endPosition,n[0].errors.push(o),n[0]}}gt.load=ua;function ad(e,t,n={}){ca(e,t,It.extend({schema:ed},n))}gt.safeLoadAll=ad;function cd(e,t={}){return ua(e,It.extend({schema:ed},t))}gt.safeLoad=cd;Cr.exports.loadAll=ca;Cr.exports.load=ua;Cr.exports.safeLoadAll=ad;Cr.exports.safeLoad=cd});var hd=S(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.safeDump=An.dump=void 0;var _r=sn(),ma=Dn(),ex=Gs(),tx=yi(),ha=Object.prototype.toString,fd=Object.prototype.hasOwnProperty,nx=9,un=10,rx=13,la=32,ix=33,pa=34,ox=35,sx=37,ax=38,da=39,cx=42,ux=44,lx=45,px=58,dx=62,fx=63,gx=64,mx=91,hx=93,yx=96,bx=123,vx=124,xx=125,Se={};Se[0]="\\0";Se[7]="\\a";Se[8]="\\b";Se[9]="\\t";Se[10]="\\n";Se[11]="\\v";Se[12]="\\f";Se[13]="\\r";Se[27]="\\e";Se[34]='\\"';Se[92]="\\\\";Se[133]="\\N";Se[160]="\\_";Se[8232]="\\L";Se[8233]="\\P";var Px=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Cx(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&&fd.call(c.styleAliases,a)&&(a=c.styleAliases[a]),n[s]=a;return n}function _x(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new ma("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+_r.repeat("0",r-t.length)+t}function Sx(e){this.schema=e.schema||ex,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=_r.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Cx(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 ld(e,t){for(var n=_r.repeat(" ",t),r=0,i=-1,o="",s,a=e.length;r<a;)i=e.indexOf(`
19
19
  `,r),i===-1?(s=e.slice(r),r=a):(s=e.slice(r,i+1),r=i+1),s.length&&s!==`
20
- `&&(o+=n),o+=s;return o}function pa(e,t){return`
21
- `+_r.repeat(" ",e.indent*t)}function Cx(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 bi(e){this.source=e,this.result="",this.checkpoint=0}bi.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};bi.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=Re[e]||xx(e),this.result+=t,this.checkpoint+=1,this};bi.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function _x(e,t,n){var r,i,o,s,a,c,l,d,h,v,y,D,F,$,V,m,g,w,Y,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(bx.indexOf(t)!==-1){e.dump="'"+t+"'";return}for(r=!0,i=t.length?t.charCodeAt(0):0,o=ca===i||ca===t.charCodeAt(t.length-1),(ax===i||lx===i||px===i||gx===i)&&(r=!1),o?(r=!1,s=!1,a=!1):(s=!0,a=!0),c=!0,l=new bi(t),d=!1,h=0,v=0,y=e.indent*n,D=80,y<40?D-=y:D=40,$=0;$<t.length;$++){if(F=t.charCodeAt($),r)if(!Rx(F))r=!1;else continue;c&&F===la&&(c=!1),V=Re[F],m=pd(F),!(!V&&!m)&&(F!==un&&F!==ua&&F!==la?(s=!1,a=!1):F===un&&(d=!0,c=!1,$>0&&(g=t.charCodeAt($-1),g===ca&&(a=!1,s=!1)),s&&(w=$-h,h=$,w>v&&(v=w))),F!==ua&&(c=!1),l.takeUpTo($),l.escapeChar())}if(r&&Cx(e,t)&&(r=!1),Y="",(s||a)&&(X=0,t.charCodeAt(t.length-1)===un&&(X+=1,t.charCodeAt(t.length-2)===un&&(X+=1)),X===0?Y="-":X===2&&(Y="+")),a&&v<D&&(s=!1),d||(a=!1),r)e.dump=t;else if(c)e.dump="'"+t+"'";else if(s)it=Sx(t,D),e.dump=">"+Y+`
22
- `+ad(it,y);else if(a)Y||(t=t.replace(/\n$/,"")),e.dump="|"+Y+`
23
- `+ad(t,y);else if(l)l.finish(),e.dump='"'+l.result+'"';else throw new Error("Failed to dump scalar value")}function Sx(e,t){var n="",r=0,i=e.length,o=/\n+$/.exec(e),s;for(o&&(i=o.index+1);r<i;)s=e.indexOf(`
20
+ `&&(o+=n),o+=s;return o}function fa(e,t){return`
21
+ `+_r.repeat(" ",e.indent*t)}function Rx(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 Pi(e){this.source=e,this.result="",this.checkpoint=0}Pi.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};Pi.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=Se[e]||_x(e),this.result+=t,this.checkpoint+=1,this};Pi.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function Dx(e,t,n){var r,i,o,s,a,c,l,d,h,v,y,D,I,$,V,m,g,w,Y,X,ot;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(Px.indexOf(t)!==-1){e.dump="'"+t+"'";return}for(r=!0,i=t.length?t.charCodeAt(0):0,o=la===i||la===t.charCodeAt(t.length-1),(lx===i||fx===i||gx===i||yx===i)&&(r=!1),o?(r=!1,s=!1,a=!1):(s=!0,a=!0),c=!0,l=new Pi(t),d=!1,h=0,v=0,y=e.indent*n,D=80,y<40?D-=y:D=40,$=0;$<t.length;$++){if(I=t.charCodeAt($),r)if(!wx(I))r=!1;else continue;c&&I===da&&(c=!1),V=Se[I],m=gd(I),!(!V&&!m)&&(I!==un&&I!==pa&&I!==da?(s=!1,a=!1):I===un&&(d=!0,c=!1,$>0&&(g=t.charCodeAt($-1),g===la&&(a=!1,s=!1)),s&&(w=$-h,h=$,w>v&&(v=w))),I!==pa&&(c=!1),l.takeUpTo($),l.escapeChar())}if(r&&Rx(e,t)&&(r=!1),Y="",(s||a)&&(X=0,t.charCodeAt(t.length-1)===un&&(X+=1,t.charCodeAt(t.length-2)===un&&(X+=1)),X===0?Y="-":X===2&&(Y="+")),a&&v<D&&(s=!1),d||(a=!1),r)e.dump=t;else if(c)e.dump="'"+t+"'";else if(s)ot=Tx(t,D),e.dump=">"+Y+`
22
+ `+ld(ot,y);else if(a)Y||(t=t.replace(/\n$/,"")),e.dump="|"+Y+`
23
+ `+ld(t,y);else if(l)l.finish(),e.dump='"'+l.result+'"';else throw new Error("Failed to dump scalar value")}function Tx(e,t){var n="",r=0,i=e.length,o=/\n+$/.exec(e),s;for(o&&(i=o.index+1);r<i;)s=e.indexOf(`
24
24
  `,r),s>i||s===-1?(n&&(n+=`
25
25
 
26
- `),n+=cd(e.slice(r,i),t),r=i):(n&&(n+=`
26
+ `),n+=pd(e.slice(r,i),t),r=i):(n&&(n+=`
27
27
 
28
- `),n+=cd(e.slice(r,s),t),r=s+1);return o&&o[0]!==`
29
- `&&(n+=o[0]),n}function cd(e,t){if(e==="")return e;for(var n=/[^\s] [^\s]/g,r="",i=0,o=0,s=n.exec(e),a,c,l;s;)a=s.index,a-o>t&&(i!==o?c=i:c=a,r&&(r+=`
28
+ `),n+=pd(e.slice(r,s),t),r=s+1);return o&&o[0]!==`
29
+ `&&(n+=o[0]),n}function pd(e,t){if(e==="")return e;for(var n=/[^\s] [^\s]/g,r="",i=0,o=0,s=n.exec(e),a,c,l;s;)a=s.index,a-o>t&&(i!==o?c=i:c=a,r&&(r+=`
30
30
  `),l=e.slice(o,c),r+=l,o=c+1),i=a+1,s=n.exec(e);return r&&(r+=`
31
31
  `),o!==i&&e.length-o>t?r+=e.slice(o,i)+`
32
- `+e.slice(i+1):r+=e.slice(o),r}function Rx(e){return Zv!==e&&un!==e&&ex!==e&&sx!==e&&dx!==e&&fx!==e&&mx!==e&&yx!==e&&nx!==e&&ix!==e&&ox!==e&&tx!==e&&hx!==e&&ux!==e&&la!==e&&ua!==e&&rx!==e&&cx!==e&&!Re[e]&&!pd(e)}function pd(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function Dx(e,t,n){var r="",i=e.tag,o,s;for(o=0,s=n.length;o<s;o+=1)ln(e,t,n[o],!1,!1)&&(o!==0&&(r+=", "),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function Tx(e,t,n,r){var i="",o=e.tag,s,a;for(s=0,a=n.length;s<a;s+=1)ln(e,t+1,n[s],!0,!0)&&((!r||s!==0)&&(i+=pa(e,t)),i+="- "+e.dump);e.tag=o,e.dump=i||"[]"}function wx(e,t,n){var r="",i=e.tag,o=Object.keys(n),s,a,c,l,d;for(s=0,a=o.length;s<a;s+=1)d="",s!==0&&(d+=", "),c=o[s],l=n[c],ln(e,t,c,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+": ",ln(e,t,l,!1,!1)&&(d+=e.dump,r+=d));e.tag=i,e.dump="{"+r+"}"}function kx(e,t,n,r){var i="",o=e.tag,s=Object.keys(n),a,c,l,d,h,v;for(a=0,c=s.length;a<c;a+=1)v="",(!r||a!==0)&&(v+=pa(e,t)),l=s[a],d=n[l],ln(e,t+1,l,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&un===e.dump.charCodeAt(0)?v+="?":v+="? "),v+=e.dump,h&&(v+=pa(e,t)),ln(e,t+1,d,!0,h)&&(e.dump&&un===e.dump.charCodeAt(0)?v+=":":v+=": ",v+=e.dump,i+=v));e.tag=o,e.dump=i||"{}"}function ud(e,t,n){var r,i,o,s,a,c;for(i=n?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(e.tag=n?a.tag:"?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,ga.call(a.represent)==="[object Function]")r=a.represent(t,c);else if(ld.call(a.represent,c))r=a.represent[c](t,c);else throw new fa("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function ln(e,t,n,r,i){e.tag=null,e.dump=n,ud(e,n,!1)||ud(e,n,!0);var o=ga.call(e.dump);r&&(r=0>e.flowLevel||e.flowLevel>t),(e.tag!==null&&e.tag!=="?"||e.indent!==2&&t>0)&&(i=!1);var s=o==="[object Object]"||o==="[object Array]",a,c;if(s&&(a=e.duplicates.indexOf(n),c=a!==-1),c&&e.usedDuplicates[a])e.dump="*ref_"+a;else{if(s&&c&&!e.usedDuplicates[a]&&(e.usedDuplicates[a]=!0),o==="[object Object]")r&&Object.keys(e.dump).length!==0?(kx(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
33
- `:"")+e.dump)):(wx(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object Array]")r&&e.dump.length!==0?(Tx(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
34
- `:"")+e.dump)):(Dx(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&_x(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new fa("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function Ax(e,t){var n=[],r=[],i,o;for(da(e,n,r),i=0,o=r.length;i<o;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(o)}function da(e,t,n){var r=ga.call(e),i,o,s;if(e!==null&&typeof e=="object")if(o=t.indexOf(e),o!==-1)n.indexOf(o)===-1&&n.push(o);else if(t.push(e),Array.isArray(e))for(o=0,s=e.length;o<s;o+=1)da(e[o],t,n);else for(i=Object.keys(e),o=0,s=i.length;o<s;o+=1)da(e[i[o]],t,n)}function dd(e,t){t=t||{};var n=new Px(t);return Ax(e,n),ln(n,0,e,!0,!0)?n.dump+`
35
- `:""}An.dump=dd;function Ox(e,t){return dd(e,_r.extend({schema:Xv},t))}An.safeDump=Ox});var gd=S(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.determineScalarType=Ye.ScalarType=Ye.parseYamlFloat=Ye.parseYamlInteger=Ye.parseYamlBoolean=void 0;function qx(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`}Ye.parseYamlBoolean=qx;function Ex(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function Nx(e){let t=Ex(e);if(isNaN(t))throw`Invalid integer "${e}"`;return t}Ye.parseYamlInteger=Nx;function jx(e){if([".nan",".NaN",".NAN"].lastIndexOf(e)>=0)return NaN;let n=/^([-+])?(?:\.inf|\.Inf|\.INF)$/.exec(e);if(n)return n[1]==="-"?-1/0:1/0;let r=parseFloat(e);if(!isNaN(r))return r;throw`Invalid float "${e}"`}Ye.parseYamlFloat=jx;var wt;(function(e){e[e.null=0]="null",e[e.bool=1]="bool",e[e.int=2]="int",e[e.float=3]="float",e[e.string=4]="string"})(wt=Ye.ScalarType||(Ye.ScalarType={}));function Mx(e){if(e===void 0)return wt.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return wt.string;let t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return wt.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return wt.bool;let n=/^[-+]?[0-9]+$/,r=/^0o[0-7]+$/,i=/^0x[0-9a-fA-F]+$/;if(n.test(t)||r.test(t)||i.test(t))return wt.int;let o=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,s=/^[-+]?(\.inf|\.Inf|\.INF)$/;return o.test(t)||s.test(t)||[".nan",".NaN",".NAN"].indexOf(t)>=0?wt.float:wt.string}Ye.determineScalarType=Mx});var On=S(ye=>{"use strict";var Lx=ye&&ye.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),md=ye&&ye.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Lx(t,e,n)};Object.defineProperty(ye,"__esModule",{value:!0});ye.safeDump=ye.dump=ye.safeLoadAll=ye.safeLoad=ye.loadAll=ye.load=void 0;var vi=sd();Object.defineProperty(ye,"load",{enumerable:!0,get:function(){return vi.load}});Object.defineProperty(ye,"loadAll",{enumerable:!0,get:function(){return vi.loadAll}});Object.defineProperty(ye,"safeLoad",{enumerable:!0,get:function(){return vi.safeLoad}});Object.defineProperty(ye,"safeLoadAll",{enumerable:!0,get:function(){return vi.safeLoadAll}});var hd=fd();Object.defineProperty(ye,"dump",{enumerable:!0,get:function(){return hd.dump}});Object.defineProperty(ye,"safeDump",{enumerable:!0,get:function(){return hd.safeDump}});ye.YAMLException=Dn();md(Tt(),ye);md(gd(),ye)});var Wn=S(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.stringArray=Ee.array=Ee.func=Ee.error=Ee.number=Ee.string=Ee.boolean=void 0;function GC(e){return e===!0||e===!1}Ee.boolean=GC;function Qd(e){return typeof e=="string"||e instanceof String}Ee.string=Qd;function QC(e){return typeof e=="number"||e instanceof Number}Ee.number=QC;function JC(e){return e instanceof Error}Ee.error=JC;function XC(e){return typeof e=="function"}Ee.func=XC;function Jd(e){return Array.isArray(e)}Ee.array=Jd;function ZC(e){return Jd(e)&&e.every(t=>Qd(t))}Ee.stringArray=ZC});var oc=S(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.Message=I.NotificationType9=I.NotificationType8=I.NotificationType7=I.NotificationType6=I.NotificationType5=I.NotificationType4=I.NotificationType3=I.NotificationType2=I.NotificationType1=I.NotificationType0=I.NotificationType=I.RequestType9=I.RequestType8=I.RequestType7=I.RequestType6=I.RequestType5=I.RequestType4=I.RequestType3=I.RequestType2=I.RequestType1=I.RequestType=I.RequestType0=I.AbstractMessageSignature=I.ParameterStructures=I.ResponseError=I.ErrorCodes=void 0;var mn=Wn(),ja;(function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3})(ja||(I.ErrorCodes=ja={}));var Ma=class e extends Error{constructor(t,n,r){super(n),this.code=mn.number(t)?t:ja.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,e.prototype)}toJson(){let t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),t}};I.ResponseError=Ma;var Be=class e{constructor(t){this.kind=t}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};I.ParameterStructures=Be;Be.auto=new Be("auto");Be.byPosition=new Be("byPosition");Be.byName=new Be("byName");var oe=class{constructor(t,n){this.method=t,this.numberOfParams=n}get parameterStructures(){return Be.auto}};I.AbstractMessageSignature=oe;var La=class extends oe{constructor(t){super(t,0)}};I.RequestType0=La;var Fa=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.RequestType=Fa;var Ia=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.RequestType1=Ia;var Ua=class extends oe{constructor(t){super(t,2)}};I.RequestType2=Ua;var Wa=class extends oe{constructor(t){super(t,3)}};I.RequestType3=Wa;var Ba=class extends oe{constructor(t){super(t,4)}};I.RequestType4=Ba;var Ha=class extends oe{constructor(t){super(t,5)}};I.RequestType5=Ha;var za=class extends oe{constructor(t){super(t,6)}};I.RequestType6=za;var $a=class extends oe{constructor(t){super(t,7)}};I.RequestType7=$a;var Ya=class extends oe{constructor(t){super(t,8)}};I.RequestType8=Ya;var Va=class extends oe{constructor(t){super(t,9)}};I.RequestType9=Va;var Ka=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.NotificationType=Ka;var Ga=class extends oe{constructor(t){super(t,0)}};I.NotificationType0=Ga;var Qa=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.NotificationType1=Qa;var Ja=class extends oe{constructor(t){super(t,2)}};I.NotificationType2=Ja;var Xa=class extends oe{constructor(t){super(t,3)}};I.NotificationType3=Xa;var Za=class extends oe{constructor(t){super(t,4)}};I.NotificationType4=Za;var ec=class extends oe{constructor(t){super(t,5)}};I.NotificationType5=ec;var tc=class extends oe{constructor(t){super(t,6)}};I.NotificationType6=tc;var nc=class extends oe{constructor(t){super(t,7)}};I.NotificationType7=nc;var rc=class extends oe{constructor(t){super(t,8)}};I.NotificationType8=rc;var ic=class extends oe{constructor(t){super(t,9)}};I.NotificationType9=ic;var Xd;(function(e){function t(i){let o=i;return o&&mn.string(o.method)&&(mn.string(o.id)||mn.number(o.id))}e.isRequest=t;function n(i){let o=i;return o&&mn.string(o.method)&&i.id===void 0}e.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(mn.string(o.id)||mn.number(o.id)||o.id===null)}e.isResponse=r})(Xd||(I.Message=Xd={}))});var ac=S(Bt=>{"use strict";var Zd;Object.defineProperty(Bt,"__esModule",{value:!0});Bt.LRUCache=Bt.LinkedMap=Bt.Touch=void 0;var Ne;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(Ne||(Bt.Touch=Ne={}));var to=class{constructor(){this[Zd]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(t){return this._map.has(t)}get(t,n=Ne.None){let r=this._map.get(t);if(r)return n!==Ne.None&&this.touch(r,n),r.value}set(t,n,r=Ne.None){let i=this._map.get(t);if(i)i.value=n,r!==Ne.None&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case Ne.None:this.addItemLast(i);break;case Ne.First:this.addItemFirst(i);break;case Ne.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){let r=this._state,i=this._head;for(;i;){if(n?t.bind(n)(i.value,i.key,this):t(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(Zd=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==Ne.First&&n!==Ne.Last)){if(n===Ne.First){if(t===this._head)return;let r=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===Ne.Last){if(t===this._tail)return;let r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(let[n,r]of t)this.set(n,r)}};Bt.LinkedMap=to;var sc=class extends to{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get ratio(){return this._ratio}set ratio(t){this._ratio=Math.min(Math.max(0,t),1),this.checkTrim()}get(t,n=Ne.AsNew){return super.get(t,n)}peek(t){return super.get(t,Ne.None)}set(t,n){return super.set(t,n,Ne.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Bt.LRUCache=sc});var tf=S(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.Disposable=void 0;var ef;(function(e){function t(n){return{dispose:n}}e.create=t})(ef||(no.Disposable=ef={}))});var Ht=S(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});var cc;function uc(){if(cc===void 0)throw new Error("No runtime abstraction layer installed");return cc}(function(e){function t(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");cc=n}e.install=t})(uc||(uc={}));lc.default=uc});var Hn=S(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.Emitter=Bn.Event=void 0;var e_=Ht(),nf;(function(e){let t={dispose(){}};e.None=function(){return t}})(nf||(Bn.Event=nf={}));var pc=class{add(t,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(t),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(t,n)})}remove(t,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,o=this._callbacks.length;i<o;i++)if(this._callbacks[i]===t)if(this._contexts[i]===n){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...t){if(!this._callbacks)return[];let n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let o=0,s=r.length;o<s;o++)try{n.push(r[o].apply(i[o],t))}catch(a){(0,e_.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},ro=class e{constructor(t){this._options=t}get event(){return this._event||(this._event=(t,n,r)=>{this._callbacks||(this._callbacks=new pc),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(t,n),i.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(t){this._callbacks&&this._callbacks.invoke.call(this._callbacks,t)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Bn.Emitter=ro;ro._noop=function(){}});var so=S(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.CancellationTokenSource=zn.CancellationToken=void 0;var t_=Ht(),n_=Wn(),dc=Hn(),io;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:dc.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:dc.Event.None});function t(n){let r=n;return r&&(r===e.None||r===e.Cancelled||n_.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(io||(zn.CancellationToken=io={}));var r_=Object.freeze(function(e,t){let n=(0,t_.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),oo=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?r_:(this._emitter||(this._emitter=new dc.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},fc=class{get token(){return this._token||(this._token=new oo),this._token}cancel(){this._token?this._token.cancel():this._token=io.Cancelled}dispose(){this._token?this._token instanceof oo&&this._token.dispose():this._token=io.None}};zn.CancellationTokenSource=fc});var rf=S($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.SharedArrayReceiverStrategy=$n.SharedArraySenderStrategy=void 0;var i_=so(),Er;(function(e){e.Continue=0,e.Cancelled=1})(Er||(Er={}));var gc=class{constructor(){this.buffers=new Map}enableCancellation(t){if(t.id===null)return;let n=new SharedArrayBuffer(4),r=new Int32Array(n,0,1);r[0]=Er.Continue,this.buffers.set(t.id,n),t.$cancellationData=n}async sendCancellation(t,n){let r=this.buffers.get(n);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,Er.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};$n.SharedArraySenderStrategy=gc;var mc=class{constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Er.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},hc=class{constructor(t){this.token=new mc(t)}cancel(){}dispose(){}},yc=class{constructor(){this.kind="request"}createCancellationTokenSource(t){let n=t.$cancellationData;return n===void 0?new i_.CancellationTokenSource:new hc(n)}};$n.SharedArrayReceiverStrategy=yc});var vc=S(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.Semaphore=void 0;var o_=Ht(),bc=class{constructor(t=1){if(t<=0)throw new Error("Capacity must be greater than 0");this._capacity=t,this._active=0,this._waiting=[]}lock(t){return new Promise((n,r)=>{this._waiting.push({thunk:t,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,o_.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let t=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let n=t.thunk();n instanceof Promise?n.then(r=>{this._active--,t.resolve(r),this.runNext()},r=>{this._active--,t.reject(r),this.runNext()}):(this._active--,t.resolve(n),this.runNext())}catch(n){this._active--,t.reject(n),this.runNext()}}};ao.Semaphore=bc});var sf=S(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.ReadableStreamMessageReader=zt.AbstractMessageReader=zt.MessageReader=void 0;var Pc=Ht(),Yn=Wn(),xc=Hn(),s_=vc(),of;(function(e){function t(n){let r=n;return r&&Yn.func(r.listen)&&Yn.func(r.dispose)&&Yn.func(r.onError)&&Yn.func(r.onClose)&&Yn.func(r.onPartialMessage)}e.is=t})(of||(zt.MessageReader=of={}));var co=class{constructor(){this.errorEmitter=new xc.Emitter,this.closeEmitter=new xc.Emitter,this.partialMessageEmitter=new xc.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(t){this.errorEmitter.fire(this.asError(t))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(t){this.partialMessageEmitter.fire(t)}asError(t){return t instanceof Error?t:new Error(`Reader received error. Reason: ${Yn.string(t.message)?t.message:"unknown"}`)}};zt.AbstractMessageReader=co;var Cc;(function(e){function t(n){let r,i,o,s=new Map,a,c=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(o=n.contentDecoder,s.set(o.name,o)),n.contentDecoders!==void 0)for(let l of n.contentDecoders)s.set(l.name,l);if(n.contentTypeDecoder!==void 0&&(a=n.contentTypeDecoder,c.set(a.name,a)),n.contentTypeDecoders!==void 0)for(let l of n.contentTypeDecoders)c.set(l.name,l)}return a===void 0&&(a=(0,Pc.default)().applicationJson.decoder,c.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:c}}e.fromOptions=t})(Cc||(Cc={}));var _c=class extends co{constructor(t,n){super(),this.readable=t,this.options=Cc.fromOptions(n),this.buffer=(0,Pc.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new s_.Semaphore(1)}set partialMessageTimeout(t){this._partialMessageTimeout=t}get partialMessageTimeout(){return this._partialMessageTimeout}listen(t){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=t;let n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(t){try{for(this.buffer.append(t);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
36
- ${JSON.stringify(Object.fromEntries(r))}`));return}let o=parseInt(i);if(isNaN(o)){this.fireError(new Error(`Content-Length value must be a number. Got ${i}`));return}this.nextMessageLength=o}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let r=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch(r=>{this.fireError(r)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,Pc.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))}};zt.ReadableStreamMessageReader=_c});var pf=S($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.WriteableStreamMessageWriter=$t.AbstractMessageWriter=$t.MessageWriter=void 0;var af=Ht(),Nr=Wn(),a_=vc(),cf=Hn(),c_="Content-Length: ",uf=`\r
37
- `,lf;(function(e){function t(n){let r=n;return r&&Nr.func(r.dispose)&&Nr.func(r.onClose)&&Nr.func(r.onError)&&Nr.func(r.write)}e.is=t})(lf||($t.MessageWriter=lf={}));var uo=class{constructor(){this.errorEmitter=new cf.Emitter,this.closeEmitter=new cf.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(t,n,r){this.errorEmitter.fire([this.asError(t),n,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(t){return t instanceof Error?t:new Error(`Writer received error. Reason: ${Nr.string(t.message)?t.message:"unknown"}`)}};$t.AbstractMessageWriter=uo;var Sc;(function(e){function t(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,af.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,af.default)().applicationJson.encoder}}e.fromOptions=t})(Sc||(Sc={}));var Rc=class extends uo{constructor(t,n){super(),this.writable=t,this.options=Sc.fromOptions(n),this.errorCount=0,this.writeSemaphore=new a_.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(c_,r.byteLength.toString(),uf),i.push(uf),this.doWrite(t,i,r)},r=>{throw this.fireError(r),r}))}async doWrite(t,n,r){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,t),Promise.reject(i)}}handleError(t,n){this.errorCount++,this.fireError(t,n,this.errorCount)}end(){this.writable.end()}};$t.WriteableStreamMessageWriter=Rc});var df=S(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.AbstractMessageBuffer=void 0;var u_=13,l_=10,p_=`\r
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 u_:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case l_: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(p_);if(c.length<2)return a;for(let l=0;l<c.length-2;l++){let d=c[l],h=d.indexOf(":");if(h===-1)throw new Error(`Message header must separate key and value using ':'
39
- ${d}`);let v=d.substr(0,h),y=d.substr(h+1).trim();a.set(t?v.toLowerCase():v,y)}return a}tryReadBody(t){if(!(this._totalLength<t))return this._read(t)}get numberOfBytes(){return this._totalLength}_read(t){if(t===0)return this.emptyBuffer();if(t>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===t){let o=this._chunks[0];return this._chunks.shift(),this._totalLength-=t,this.asNative(o)}if(this._chunks[0].byteLength>t){let o=this._chunks[0],s=this.asNative(o,t);return this._chunks[0]=o.slice(t),this._totalLength-=t,s}let n=this.allocNative(t),r=0,i=0;for(;t>0;){let o=this._chunks[i];if(o.byteLength>t){let s=o.slice(0,t);n.set(s,r),r+=t,this._chunks[i]=o.slice(t),this._totalLength-=t,t-=t}else n.set(o,r),r+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,t-=o.byteLength}return n}};lo.AbstractMessageBuffer=Dc});var yf=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 ff=Ht(),ue=Wn(),U=oc(),gf=ac(),jr=Hn(),Tc=so(),Fr;(function(e){e.type=new U.NotificationType("$/cancelRequest")})(Fr||(Fr={}));var wc;(function(e){function t(n){return typeof n=="string"||typeof n=="number"}e.is=t})(wc||(H.ProgressToken=wc={}));var Mr;(function(e){e.type=new U.NotificationType("$/progress")})(Mr||(Mr={}));var kc=class{constructor(){}};H.ProgressType=kc;var Ac;(function(e){function t(n){return ue.func(n)}e.is=t})(Ac||(Ac={}));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 mf;(function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"})(mf||(H.TraceValues=mf={}));(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 Ke;(function(e){e.Text="text",e.JSON="json"})(Ke||(H.TraceFormat=Ke={}));(function(e){function t(n){return ue.string(n)?(n=n.toLowerCase(),n==="json"?e.JSON:e.Text):e.Text}e.fromString=t})(Ke||(H.TraceFormat=Ke={}));var Oc;(function(e){e.type=new U.NotificationType("$/setTrace")})(Oc||(H.SetTraceNotification=Oc={}));var po;(function(e){e.type=new U.NotificationType("$/logTrace")})(po||(H.LogTraceNotification=po={}));var Lr;(function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"})(Lr||(H.ConnectionErrors=Lr={}));var Vn=class e extends Error{constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};H.ConnectionError=Vn;var qc;(function(e){function t(n){let r=n;return r&&ue.func(r.cancelUndispatched)}e.is=t})(qc||(H.ConnectionStrategy=qc={}));var fo;(function(e){function t(n){let r=n;return r&&(r.kind===void 0||r.kind==="id")&&ue.func(r.createCancellationTokenSource)&&(r.dispose===void 0||ue.func(r.dispose))}e.is=t})(fo||(H.IdCancellationReceiverStrategy=fo={}));var Ec;(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})(Ec||(H.RequestCancellationReceiverStrategy=Ec={}));var go;(function(e){e.Message=Object.freeze({createCancellationTokenSource(n){return new Tc.CancellationTokenSource}});function t(n){return fo.is(n)||Ec.is(n)}e.is=t})(go||(H.CancellationReceiverStrategy=go={}));var mo;(function(e){e.Message=Object.freeze({sendCancellation(n,r){return n.sendNotification(Fr.type,{id:r})},cleanup(n){}});function t(n){let r=n;return r&&ue.func(r.sendCancellation)&&ue.func(r.cleanup)}e.is=t})(mo||(H.CancellationSenderStrategy=mo={}));var ho;(function(e){e.Message=Object.freeze({receiver:go.Message,sender:mo.Message});function t(n){let r=n;return r&&go.is(r.receiver)&&mo.is(r.sender)}e.is=t})(ho||(H.CancellationStrategy=ho={}));var yo;(function(e){function t(n){let r=n;return r&&ue.func(r.handleMessage)}e.is=t})(yo||(H.MessageStrategy=yo={}));var hf;(function(e){function t(n){let r=n;return r&&(ho.is(r.cancellationStrategy)||qc.is(r.connectionStrategy)||yo.is(r.messageStrategy))}e.is=t})(hf||(H.ConnectionOptions=hf={}));var ct;(function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"})(ct||(ct={}));function d_(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,D,F=new gf.LinkedMap,$=new Map,V=new Set,m=new Map,g=J.Off,w=Ke.Text,Y,X=ct.New,it=new jr.Emitter,Nt=new jr.Emitter,rn=new jr.Emitter,_n=new jr.Emitter,k=new jr.Emitter,b=r&&r.cancellationStrategy?r.cancellationStrategy:ho.Message;function N(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 _(p,C){U.Message.isRequest(C)?p.set(N(C.id),C):U.Message.isResponse(C)?p.set(j(C.id),C):p.set(P(),C)}function R(p){}function E(){return X===ct.Listening}function M(){return X===ct.Closed}function q(){return X===ct.Disposed}function z(){(X===ct.New||X===ct.Listening)&&(X=ct.Closed,Nt.fire(void 0))}function K(p){it.fire([p,void 0,void 0])}function _e(p){it.fire(p)}e.onClose(z),e.onError(K),t.onClose(z),t.onError(_e);function ee(){D||F.size===0||(D=(0,ff.default)().timer.setImmediate(()=>{D=void 0,on()}))}function ot(p){U.Message.isRequest(p)?Uy(p):U.Message.isNotification(p)?By(p):U.Message.isResponse(p)?Wy(p):p?.type?.startsWith("redocly/")||Hy(p)}function on(){if(F.size===0)return;let p=F.shift();try{let C=r?.messageStrategy;yo.is(C)?C.handleMessage(p,ot):ot(p)}finally{ee()}}let Iy=p=>{try{if(U.Message.isNotification(p)&&p.method===Fr.type.method){let C=p.params.id,A=N(C),L=F.get(A);if(U.Message.isRequest(L)){let te=r?.connectionStrategy,le=te&&te.cancelUndispatched?te.cancelUndispatched(L,R):void 0;if(le&&(le.error!==void 0||le.result!==void 0)){F.delete(A),m.delete(C),le.id=L.id,oi(le,p.method,Date.now()),t.write(le).catch(()=>i.error("Sending response for canceled message failed."));return}}let ie=m.get(C);if(ie!==void 0){ie.cancel(),Ns(p);return}else V.add(C)}_(F,p)}finally{ee()}};function Uy(p){if(q())return;function C(G,ae,Z){let Pe={jsonrpc:c,id:p.id};G instanceof U.ResponseError?Pe.error=G.toJson():Pe.result=G===void 0?null:G,oi(Pe,ae,Z),t.write(Pe).catch(()=>i.error("Sending response failed."))}function A(G,ae,Z){let Pe={jsonrpc:c,id:p.id,error:G.toJson()};oi(Pe,ae,Z),t.write(Pe).catch(()=>i.error("Sending response failed."))}function L(G,ae,Z){G===void 0&&(G=null);let Pe={jsonrpc:c,id:p.id,result:G};oi(Pe,ae,Z),t.write(Pe).catch(()=>i.error("Sending response failed."))}Yy(p);let ie=d.get(p.method),te,le;ie&&(te=ie.type,le=ie.handler);let me=Date.now();if(le||l){let G=p.id??String(Date.now()),ae=fo.is(b.receiver)?b.receiver.createCancellationTokenSource(G):b.receiver.createCancellationTokenSource(p);p.id!==null&&V.has(p.id)&&ae.cancel(),p.id!==null&&m.set(G,ae);try{let Z;if(le)if(p.params===void 0){if(te!==void 0&&te.numberOfParams!==0){A(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines ${te.numberOfParams} params but received none.`),p.method,me);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,me);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,me);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(Le=>{m.delete(G),C(Le,p.method,me)},Le=>{m.delete(G),Le instanceof U.ResponseError?A(Le,p.method,me):Le&&ue.string(Le.message)?A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Le.message}`),p.method,me):A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,me)}):(m.delete(G),C(Z,p.method,me)):(m.delete(G),L(Z,p.method,me))}catch(Z){m.delete(G),Z instanceof U.ResponseError?C(Z,p.method,me):Z&&ue.string(Z.message)?A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Z.message}`),p.method,me):A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,me)}}else A(new U.ResponseError(U.ErrorCodes.MethodNotFound,`Unhandled method ${p.method}`),p.method,me)}function Wy(p){if(!q())if(p.id===null)p.error?i.error(`Received response message without id: Error is:
40
- ${JSON.stringify(p.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{let C=p.id,A=$.get(C);if(Vy(p,A),A!==void 0){$.delete(C);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 By(p){if(q())return;let C,A;if(p.method===Fr.type.method){let L=p.params.id;V.delete(L),Ns(p);return}else{let L=v.get(p.method);L&&(A=L.handler,C=L.type)}if(A||h)try{if(Ns(p),A)if(p.params===void 0)C!==void 0&&C.numberOfParams!==0&&C.parameterStructures!==U.ParameterStructures.byName&&i.error(`Notification ${p.method} defines ${C.numberOfParams} params but received none.`),A();else if(Array.isArray(p.params)){let L=p.params;p.method===Mr.type.method&&L.length===2&&wc.is(L[0])?A({token:L[0],value:L[1]}):(C!==void 0&&(C.parameterStructures===U.ParameterStructures.byName&&i.error(`Notification ${p.method} defines parameters by name but received parameters by position`),C.numberOfParams!==p.params.length&&i.error(`Notification ${p.method} defines ${C.numberOfParams} params but received ${L.length} arguments`)),A(...L))}else C!==void 0&&C.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 rn.fire(p)}function Hy(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 C=p;if(ue.string(C.id)||ue.number(C.id)){let A=C.id,L=$.get(A);L&&L.reject(new Error("The received response has neither a result nor an error property."))}}function jt(p){if(p!=null)switch(g){case J.Verbose:return JSON.stringify(p,null,4);case J.Compact:return JSON.stringify(p);default:return}}function zy(p){if(!(g===J.Off||!Y))if(w===Ke.Text){let C;(g===J.Verbose||g===J.Compact)&&p.params&&(C=`Params: ${jt(p.params)}
42
-
43
- `),Y.log(`Sending request '${p.method} - (${p.id})'.`,C)}else Sn("send-request",p)}function $y(p){if(!(g===J.Off||!Y))if(w===Ke.Text){let C;(g===J.Verbose||g===J.Compact)&&(p.params?C=`Params: ${jt(p.params)}
32
+ `+e.slice(i+1):r+=e.slice(o),r}function wx(e){return nx!==e&&un!==e&&rx!==e&&ux!==e&&mx!==e&&hx!==e&&bx!==e&&xx!==e&&ox!==e&&ax!==e&&cx!==e&&ix!==e&&vx!==e&&dx!==e&&da!==e&&pa!==e&&sx!==e&&px!==e&&!Se[e]&&!gd(e)}function gd(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function kx(e,t,n){var r="",i=e.tag,o,s;for(o=0,s=n.length;o<s;o+=1)ln(e,t,n[o],!1,!1)&&(o!==0&&(r+=", "),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function Ax(e,t,n,r){var i="",o=e.tag,s,a;for(s=0,a=n.length;s<a;s+=1)ln(e,t+1,n[s],!0,!0)&&((!r||s!==0)&&(i+=fa(e,t)),i+="- "+e.dump);e.tag=o,e.dump=i||"[]"}function Ox(e,t,n){var r="",i=e.tag,o=Object.keys(n),s,a,c,l,d;for(s=0,a=o.length;s<a;s+=1)d="",s!==0&&(d+=", "),c=o[s],l=n[c],ln(e,t,c,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+": ",ln(e,t,l,!1,!1)&&(d+=e.dump,r+=d));e.tag=i,e.dump="{"+r+"}"}function qx(e,t,n,r){var i="",o=e.tag,s=Object.keys(n),a,c,l,d,h,v;for(a=0,c=s.length;a<c;a+=1)v="",(!r||a!==0)&&(v+=fa(e,t)),l=s[a],d=n[l],ln(e,t+1,l,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&un===e.dump.charCodeAt(0)?v+="?":v+="? "),v+=e.dump,h&&(v+=fa(e,t)),ln(e,t+1,d,!0,h)&&(e.dump&&un===e.dump.charCodeAt(0)?v+=":":v+=": ",v+=e.dump,i+=v));e.tag=o,e.dump=i||"{}"}function dd(e,t,n){var r,i,o,s,a,c;for(i=n?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(e.tag=n?a.tag:"?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,ha.call(a.represent)==="[object Function]")r=a.represent(t,c);else if(fd.call(a.represent,c))r=a.represent[c](t,c);else throw new ma("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function ln(e,t,n,r,i){e.tag=null,e.dump=n,dd(e,n,!1)||dd(e,n,!0);var o=ha.call(e.dump);r&&(r=0>e.flowLevel||e.flowLevel>t),(e.tag!==null&&e.tag!=="?"||e.indent!==2&&t>0)&&(i=!1);var s=o==="[object Object]"||o==="[object Array]",a,c;if(s&&(a=e.duplicates.indexOf(n),c=a!==-1),c&&e.usedDuplicates[a])e.dump="*ref_"+a;else{if(s&&c&&!e.usedDuplicates[a]&&(e.usedDuplicates[a]=!0),o==="[object Object]")r&&Object.keys(e.dump).length!==0?(qx(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
33
+ `:"")+e.dump)):(Ox(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object Array]")r&&e.dump.length!==0?(Ax(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
34
+ `:"")+e.dump)):(kx(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&Dx(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new ma("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function Ex(e,t){var n=[],r=[],i,o;for(ga(e,n,r),i=0,o=r.length;i<o;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(o)}function ga(e,t,n){var r=ha.call(e),i,o,s;if(e!==null&&typeof e=="object")if(o=t.indexOf(e),o!==-1)n.indexOf(o)===-1&&n.push(o);else if(t.push(e),Array.isArray(e))for(o=0,s=e.length;o<s;o+=1)ga(e[o],t,n);else for(i=Object.keys(e),o=0,s=i.length;o<s;o+=1)ga(e[i[o]],t,n)}function md(e,t){t=t||{};var n=new Sx(t);return Ex(e,n),ln(n,0,e,!0,!0)?n.dump+`
35
+ `:""}An.dump=md;function Nx(e,t){return md(e,_r.extend({schema:tx},t))}An.safeDump=Nx});var yd=S(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.determineScalarType=Ve.ScalarType=Ve.parseYamlFloat=Ve.parseYamlInteger=Ve.parseYamlBoolean=void 0;function jx(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`}Ve.parseYamlBoolean=jx;function Mx(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function Lx(e){let t=Mx(e);if(isNaN(t))throw`Invalid integer "${e}"`;return t}Ve.parseYamlInteger=Lx;function Ix(e){if([".nan",".NaN",".NAN"].lastIndexOf(e)>=0)return NaN;let n=/^([-+])?(?:\.inf|\.Inf|\.INF)$/.exec(e);if(n)return n[1]==="-"?-1/0:1/0;let r=parseFloat(e);if(!isNaN(r))return r;throw`Invalid float "${e}"`}Ve.parseYamlFloat=Ix;var kt;(function(e){e[e.null=0]="null",e[e.bool=1]="bool",e[e.int=2]="int",e[e.float=3]="float",e[e.string=4]="string"})(kt=Ve.ScalarType||(Ve.ScalarType={}));function Fx(e){if(e===void 0)return kt.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return kt.string;let t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return kt.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return kt.bool;let n=/^[-+]?[0-9]+$/,r=/^0o[0-7]+$/,i=/^0x[0-9a-fA-F]+$/;if(n.test(t)||r.test(t)||i.test(t))return kt.int;let o=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,s=/^[-+]?(\.inf|\.Inf|\.INF)$/;return o.test(t)||s.test(t)||[".nan",".NaN",".NAN"].indexOf(t)>=0?kt.float:kt.string}Ve.determineScalarType=Fx});var On=S(ye=>{"use strict";var Ux=ye&&ye.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),bd=ye&&ye.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Ux(t,e,n)};Object.defineProperty(ye,"__esModule",{value:!0});ye.safeDump=ye.dump=ye.safeLoadAll=ye.safeLoad=ye.loadAll=ye.load=void 0;var Ci=ud();Object.defineProperty(ye,"load",{enumerable:!0,get:function(){return Ci.load}});Object.defineProperty(ye,"loadAll",{enumerable:!0,get:function(){return Ci.loadAll}});Object.defineProperty(ye,"safeLoad",{enumerable:!0,get:function(){return Ci.safeLoad}});Object.defineProperty(ye,"safeLoadAll",{enumerable:!0,get:function(){return Ci.safeLoadAll}});var vd=hd();Object.defineProperty(ye,"dump",{enumerable:!0,get:function(){return vd.dump}});Object.defineProperty(ye,"safeDump",{enumerable:!0,get:function(){return vd.safeDump}});ye.YAMLException=Dn();bd(wt(),ye);bd(yd(),ye)});var Wn=S(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.stringArray=qe.array=qe.func=qe.error=qe.number=qe.string=qe.boolean=void 0;function ZC(e){return e===!0||e===!1}qe.boolean=ZC;function Yd(e){return typeof e=="string"||e instanceof String}qe.string=Yd;function e_(e){return typeof e=="number"||e instanceof Number}qe.number=e_;function t_(e){return e instanceof Error}qe.error=t_;function n_(e){return typeof e=="function"}qe.func=n_;function Vd(e){return Array.isArray(e)}qe.array=Vd;function r_(e){return Vd(e)&&e.every(t=>Yd(t))}qe.stringArray=r_});var tc=S(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.Message=F.NotificationType9=F.NotificationType8=F.NotificationType7=F.NotificationType6=F.NotificationType5=F.NotificationType4=F.NotificationType3=F.NotificationType2=F.NotificationType1=F.NotificationType0=F.NotificationType=F.RequestType9=F.RequestType8=F.RequestType7=F.RequestType6=F.RequestType5=F.RequestType4=F.RequestType3=F.RequestType2=F.RequestType1=F.RequestType=F.RequestType0=F.AbstractMessageSignature=F.ParameterStructures=F.ResponseError=F.ErrorCodes=void 0;var mn=Wn(),Oa;(function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3})(Oa||(F.ErrorCodes=Oa={}));var qa=class e extends Error{constructor(t,n,r){super(n),this.code=mn.number(t)?t:Oa.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,e.prototype)}toJson(){let t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),t}};F.ResponseError=qa;var He=class e{constructor(t){this.kind=t}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};F.ParameterStructures=He;He.auto=new He("auto");He.byPosition=new He("byPosition");He.byName=new He("byName");var oe=class{constructor(t,n){this.method=t,this.numberOfParams=n}get parameterStructures(){return He.auto}};F.AbstractMessageSignature=oe;var Ea=class extends oe{constructor(t){super(t,0)}};F.RequestType0=Ea;var Na=class extends oe{constructor(t,n=He.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType=Na;var ja=class extends oe{constructor(t,n=He.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType1=ja;var Ma=class extends oe{constructor(t){super(t,2)}};F.RequestType2=Ma;var La=class extends oe{constructor(t){super(t,3)}};F.RequestType3=La;var Ia=class extends oe{constructor(t){super(t,4)}};F.RequestType4=Ia;var Fa=class extends oe{constructor(t){super(t,5)}};F.RequestType5=Fa;var Ua=class extends oe{constructor(t){super(t,6)}};F.RequestType6=Ua;var Wa=class extends oe{constructor(t){super(t,7)}};F.RequestType7=Wa;var Ba=class extends oe{constructor(t){super(t,8)}};F.RequestType8=Ba;var Ha=class extends oe{constructor(t){super(t,9)}};F.RequestType9=Ha;var za=class extends oe{constructor(t,n=He.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType=za;var $a=class extends oe{constructor(t){super(t,0)}};F.NotificationType0=$a;var Ya=class extends oe{constructor(t,n=He.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType1=Ya;var Va=class extends oe{constructor(t){super(t,2)}};F.NotificationType2=Va;var Ka=class extends oe{constructor(t){super(t,3)}};F.NotificationType3=Ka;var Ga=class extends oe{constructor(t){super(t,4)}};F.NotificationType4=Ga;var Qa=class extends oe{constructor(t){super(t,5)}};F.NotificationType5=Qa;var Ja=class extends oe{constructor(t){super(t,6)}};F.NotificationType6=Ja;var Xa=class extends oe{constructor(t){super(t,7)}};F.NotificationType7=Xa;var Za=class extends oe{constructor(t){super(t,8)}};F.NotificationType8=Za;var ec=class extends oe{constructor(t){super(t,9)}};F.NotificationType9=ec;var Kd;(function(e){function t(i){let o=i;return o&&mn.string(o.method)&&(mn.string(o.id)||mn.number(o.id))}e.isRequest=t;function n(i){let o=i;return o&&mn.string(o.method)&&i.id===void 0}e.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(mn.string(o.id)||mn.number(o.id)||o.id===null)}e.isResponse=r})(Kd||(F.Message=Kd={}))});var rc=S(Bt=>{"use strict";var Gd;Object.defineProperty(Bt,"__esModule",{value:!0});Bt.LRUCache=Bt.LinkedMap=Bt.Touch=void 0;var Ee;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(Ee||(Bt.Touch=Ee={}));var to=class{constructor(){this[Gd]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(t){return this._map.has(t)}get(t,n=Ee.None){let r=this._map.get(t);if(r)return n!==Ee.None&&this.touch(r,n),r.value}set(t,n,r=Ee.None){let i=this._map.get(t);if(i)i.value=n,r!==Ee.None&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case Ee.None:this.addItemLast(i);break;case Ee.First:this.addItemFirst(i);break;case Ee.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){let r=this._state,i=this._head;for(;i;){if(n?t.bind(n)(i.value,i.key,this):t(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(Gd=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==Ee.First&&n!==Ee.Last)){if(n===Ee.First){if(t===this._head)return;let r=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===Ee.Last){if(t===this._tail)return;let r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(let[n,r]of t)this.set(n,r)}};Bt.LinkedMap=to;var nc=class extends to{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get ratio(){return this._ratio}set ratio(t){this._ratio=Math.min(Math.max(0,t),1),this.checkTrim()}get(t,n=Ee.AsNew){return super.get(t,n)}peek(t){return super.get(t,Ee.None)}set(t,n){return super.set(t,n,Ee.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Bt.LRUCache=nc});var Jd=S(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.Disposable=void 0;var Qd;(function(e){function t(n){return{dispose:n}}e.create=t})(Qd||(no.Disposable=Qd={}))});var Ht=S(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var ic;function oc(){if(ic===void 0)throw new Error("No runtime abstraction layer installed");return ic}(function(e){function t(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");ic=n}e.install=t})(oc||(oc={}));sc.default=oc});var Hn=S(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.Emitter=Bn.Event=void 0;var i_=Ht(),Xd;(function(e){let t={dispose(){}};e.None=function(){return t}})(Xd||(Bn.Event=Xd={}));var ac=class{add(t,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(t),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(t,n)})}remove(t,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,o=this._callbacks.length;i<o;i++)if(this._callbacks[i]===t)if(this._contexts[i]===n){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...t){if(!this._callbacks)return[];let n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let o=0,s=r.length;o<s;o++)try{n.push(r[o].apply(i[o],t))}catch(a){(0,i_.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},ro=class e{constructor(t){this._options=t}get event(){return this._event||(this._event=(t,n,r)=>{this._callbacks||(this._callbacks=new ac),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(t,n),i.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(t){this._callbacks&&this._callbacks.invoke.call(this._callbacks,t)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Bn.Emitter=ro;ro._noop=function(){}});var so=S(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.CancellationTokenSource=zn.CancellationToken=void 0;var o_=Ht(),s_=Wn(),cc=Hn(),io;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:cc.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:cc.Event.None});function t(n){let r=n;return r&&(r===e.None||r===e.Cancelled||s_.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(io||(zn.CancellationToken=io={}));var a_=Object.freeze(function(e,t){let n=(0,o_.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),oo=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a_:(this._emitter||(this._emitter=new cc.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},uc=class{get token(){return this._token||(this._token=new oo),this._token}cancel(){this._token?this._token.cancel():this._token=io.Cancelled}dispose(){this._token?this._token instanceof oo&&this._token.dispose():this._token=io.None}};zn.CancellationTokenSource=uc});var Zd=S($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.SharedArrayReceiverStrategy=$n.SharedArraySenderStrategy=void 0;var c_=so(),Or;(function(e){e.Continue=0,e.Cancelled=1})(Or||(Or={}));var lc=class{constructor(){this.buffers=new Map}enableCancellation(t){if(t.id===null)return;let n=new SharedArrayBuffer(4),r=new Int32Array(n,0,1);r[0]=Or.Continue,this.buffers.set(t.id,n),t.$cancellationData=n}async sendCancellation(t,n){let r=this.buffers.get(n);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,Or.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};$n.SharedArraySenderStrategy=lc;var pc=class{constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Or.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},dc=class{constructor(t){this.token=new pc(t)}cancel(){}dispose(){}},fc=class{constructor(){this.kind="request"}createCancellationTokenSource(t){let n=t.$cancellationData;return n===void 0?new c_.CancellationTokenSource:new dc(n)}};$n.SharedArrayReceiverStrategy=fc});var mc=S(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.Semaphore=void 0;var u_=Ht(),gc=class{constructor(t=1){if(t<=0)throw new Error("Capacity must be greater than 0");this._capacity=t,this._active=0,this._waiting=[]}lock(t){return new Promise((n,r)=>{this._waiting.push({thunk:t,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,u_.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let t=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let n=t.thunk();n instanceof Promise?n.then(r=>{this._active--,t.resolve(r),this.runNext()},r=>{this._active--,t.reject(r),this.runNext()}):(this._active--,t.resolve(n),this.runNext())}catch(n){this._active--,t.reject(n),this.runNext()}}};ao.Semaphore=gc});var tf=S(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.ReadableStreamMessageReader=zt.AbstractMessageReader=zt.MessageReader=void 0;var yc=Ht(),Yn=Wn(),hc=Hn(),l_=mc(),ef;(function(e){function t(n){let r=n;return r&&Yn.func(r.listen)&&Yn.func(r.dispose)&&Yn.func(r.onError)&&Yn.func(r.onClose)&&Yn.func(r.onPartialMessage)}e.is=t})(ef||(zt.MessageReader=ef={}));var co=class{constructor(){this.errorEmitter=new hc.Emitter,this.closeEmitter=new hc.Emitter,this.partialMessageEmitter=new hc.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(t){this.errorEmitter.fire(this.asError(t))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(t){this.partialMessageEmitter.fire(t)}asError(t){return t instanceof Error?t:new Error(`Reader received error. Reason: ${Yn.string(t.message)?t.message:"unknown"}`)}};zt.AbstractMessageReader=co;var bc;(function(e){function t(n){let r,i,o,s=new Map,a,c=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(o=n.contentDecoder,s.set(o.name,o)),n.contentDecoders!==void 0)for(let l of n.contentDecoders)s.set(l.name,l);if(n.contentTypeDecoder!==void 0&&(a=n.contentTypeDecoder,c.set(a.name,a)),n.contentTypeDecoders!==void 0)for(let l of n.contentTypeDecoders)c.set(l.name,l)}return a===void 0&&(a=(0,yc.default)().applicationJson.decoder,c.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:c}}e.fromOptions=t})(bc||(bc={}));var vc=class extends co{constructor(t,n){super(),this.readable=t,this.options=bc.fromOptions(n),this.buffer=(0,yc.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new l_.Semaphore(1)}set partialMessageTimeout(t){this._partialMessageTimeout=t}get partialMessageTimeout(){return this._partialMessageTimeout}listen(t){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=t;let n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(t){try{for(this.buffer.append(t);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
36
+ ${JSON.stringify(Object.fromEntries(r))}`));return}let o=parseInt(i);if(isNaN(o)){this.fireError(new Error(`Content-Length value must be a number. Got ${i}`));return}this.nextMessageLength=o}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let r=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch(r=>{this.fireError(r)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,yc.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))}};zt.ReadableStreamMessageReader=vc});var af=S($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.WriteableStreamMessageWriter=$t.AbstractMessageWriter=$t.MessageWriter=void 0;var nf=Ht(),qr=Wn(),p_=mc(),rf=Hn(),d_="Content-Length: ",of=`\r
37
+ `,sf;(function(e){function t(n){let r=n;return r&&qr.func(r.dispose)&&qr.func(r.onClose)&&qr.func(r.onError)&&qr.func(r.write)}e.is=t})(sf||($t.MessageWriter=sf={}));var uo=class{constructor(){this.errorEmitter=new rf.Emitter,this.closeEmitter=new rf.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: ${qr.string(t.message)?t.message:"unknown"}`)}};$t.AbstractMessageWriter=uo;var xc;(function(e){function t(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,nf.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,nf.default)().applicationJson.encoder}}e.fromOptions=t})(xc||(xc={}));var Pc=class extends uo{constructor(t,n){super(),this.writable=t,this.options=xc.fromOptions(n),this.errorCount=0,this.writeSemaphore=new p_.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(d_,r.byteLength.toString(),of),i.push(of),this.doWrite(t,i,r)},r=>{throw this.fireError(r),r}))}async doWrite(t,n,r){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,t),Promise.reject(i)}}handleError(t,n){this.errorCount++,this.fireError(t,n,this.errorCount)}end(){this.writable.end()}};$t.WriteableStreamMessageWriter=Pc});var cf=S(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.AbstractMessageBuffer=void 0;var f_=13,g_=10,m_=`\r
38
+ `,Cc=class{constructor(t="utf-8"){this._encoding=t,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(t){let n=typeof t=="string"?this.fromString(t,this._encoding):t;this._chunks.push(n),this._totalLength+=n.byteLength}tryReadHeaders(t=!1){if(this._chunks.length===0)return;let n=0,r=0,i=0,o=0;e:for(;r<this._chunks.length;){let l=this._chunks[r];for(i=0;i<l.length;){switch(l[i]){case f_:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case g_: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(m_);if(c.length<2)return a;for(let l=0;l<c.length-2;l++){let d=c[l],h=d.indexOf(":");if(h===-1)throw new Error(`Message header must separate key and value using ':'
39
+ ${d}`);let v=d.substr(0,h),y=d.substr(h+1).trim();a.set(t?v.toLowerCase():v,y)}return a}tryReadBody(t){if(!(this._totalLength<t))return this._read(t)}get numberOfBytes(){return this._totalLength}_read(t){if(t===0)return this.emptyBuffer();if(t>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===t){let o=this._chunks[0];return this._chunks.shift(),this._totalLength-=t,this.asNative(o)}if(this._chunks[0].byteLength>t){let o=this._chunks[0],s=this.asNative(o,t);return this._chunks[0]=o.slice(t),this._totalLength-=t,s}let n=this.allocNative(t),r=0,i=0;for(;t>0;){let o=this._chunks[i];if(o.byteLength>t){let s=o.slice(0,t);n.set(s,r),r+=t,this._chunks[i]=o.slice(t),this._totalLength-=t,t-=t}else n.set(o,r),r+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,t-=o.byteLength}return n}};lo.AbstractMessageBuffer=Cc});var ff=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 uf=Ht(),ue=Wn(),U=tc(),lf=rc(),Er=Hn(),_c=so(),Mr;(function(e){e.type=new U.NotificationType("$/cancelRequest")})(Mr||(Mr={}));var Sc;(function(e){function t(n){return typeof n=="string"||typeof n=="number"}e.is=t})(Sc||(H.ProgressToken=Sc={}));var Nr;(function(e){e.type=new U.NotificationType("$/progress")})(Nr||(Nr={}));var Rc=class{constructor(){}};H.ProgressType=Rc;var Dc;(function(e){function t(n){return ue.func(n)}e.is=t})(Dc||(Dc={}));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 pf;(function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"})(pf||(H.TraceValues=pf={}));(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 Ge;(function(e){e.Text="text",e.JSON="json"})(Ge||(H.TraceFormat=Ge={}));(function(e){function t(n){return ue.string(n)?(n=n.toLowerCase(),n==="json"?e.JSON:e.Text):e.Text}e.fromString=t})(Ge||(H.TraceFormat=Ge={}));var Tc;(function(e){e.type=new U.NotificationType("$/setTrace")})(Tc||(H.SetTraceNotification=Tc={}));var po;(function(e){e.type=new U.NotificationType("$/logTrace")})(po||(H.LogTraceNotification=po={}));var jr;(function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"})(jr||(H.ConnectionErrors=jr={}));var Vn=class e extends Error{constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};H.ConnectionError=Vn;var wc;(function(e){function t(n){let r=n;return r&&ue.func(r.cancelUndispatched)}e.is=t})(wc||(H.ConnectionStrategy=wc={}));var fo;(function(e){function t(n){let r=n;return r&&(r.kind===void 0||r.kind==="id")&&ue.func(r.createCancellationTokenSource)&&(r.dispose===void 0||ue.func(r.dispose))}e.is=t})(fo||(H.IdCancellationReceiverStrategy=fo={}));var kc;(function(e){function t(n){let r=n;return r&&r.kind==="request"&&ue.func(r.createCancellationTokenSource)&&(r.dispose===void 0||ue.func(r.dispose))}e.is=t})(kc||(H.RequestCancellationReceiverStrategy=kc={}));var go;(function(e){e.Message=Object.freeze({createCancellationTokenSource(n){return new _c.CancellationTokenSource}});function t(n){return fo.is(n)||kc.is(n)}e.is=t})(go||(H.CancellationReceiverStrategy=go={}));var mo;(function(e){e.Message=Object.freeze({sendCancellation(n,r){return n.sendNotification(Mr.type,{id:r})},cleanup(n){}});function t(n){let r=n;return r&&ue.func(r.sendCancellation)&&ue.func(r.cleanup)}e.is=t})(mo||(H.CancellationSenderStrategy=mo={}));var ho;(function(e){e.Message=Object.freeze({receiver:go.Message,sender:mo.Message});function t(n){let r=n;return r&&go.is(r.receiver)&&mo.is(r.sender)}e.is=t})(ho||(H.CancellationStrategy=ho={}));var yo;(function(e){function t(n){let r=n;return r&&ue.func(r.handleMessage)}e.is=t})(yo||(H.MessageStrategy=yo={}));var df;(function(e){function t(n){let r=n;return r&&(ho.is(r.cancellationStrategy)||wc.is(r.connectionStrategy)||yo.is(r.messageStrategy))}e.is=t})(df||(H.ConnectionOptions=df={}));var ct;(function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"})(ct||(ct={}));function h_(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,D,I=new lf.LinkedMap,$=new Map,V=new Set,m=new Map,g=J.Off,w=Ge.Text,Y,X=ct.New,ot=new Er.Emitter,jt=new Er.Emitter,rn=new Er.Emitter,_n=new Er.Emitter,k=new Er.Emitter,b=r&&r.cancellationStrategy?r.cancellationStrategy:ho.Message;function N(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 _(p,C){U.Message.isRequest(C)?p.set(N(C.id),C):U.Message.isResponse(C)?p.set(j(C.id),C):p.set(P(),C)}function R(p){}function E(){return X===ct.Listening}function M(){return X===ct.Closed}function q(){return X===ct.Disposed}function z(){(X===ct.New||X===ct.Listening)&&(X=ct.Closed,jt.fire(void 0))}function K(p){ot.fire([p,void 0,void 0])}function _e(p){ot.fire(p)}e.onClose(z),e.onError(K),t.onClose(z),t.onError(_e);function ee(){D||I.size===0||(D=(0,uf.default)().timer.setImmediate(()=>{D=void 0,on()}))}function st(p){U.Message.isRequest(p)?Wy(p):U.Message.isNotification(p)?Hy(p):U.Message.isResponse(p)?By(p):p?.type?.startsWith("redocly/")||zy(p)}function on(){if(I.size===0)return;let p=I.shift();try{let C=r?.messageStrategy;yo.is(C)?C.handleMessage(p,st):st(p)}finally{ee()}}let Uy=p=>{try{if(U.Message.isNotification(p)&&p.method===Mr.type.method){let C=p.params.id,A=N(C),L=I.get(A);if(U.Message.isRequest(L)){let te=r?.connectionStrategy,le=te&&te.cancelUndispatched?te.cancelUndispatched(L,R):void 0;if(le&&(le.error!==void 0||le.result!==void 0)){I.delete(A),m.delete(C),le.id=L.id,oi(le,p.method,Date.now()),t.write(le).catch(()=>i.error("Sending response for canceled message failed."));return}}let re=m.get(C);if(re!==void 0){re.cancel(),js(p);return}else V.add(C)}_(I,p)}finally{ee()}};function Wy(p){if(q())return;function C(G,ae,Z){let Pe={jsonrpc:c,id:p.id};G instanceof U.ResponseError?Pe.error=G.toJson():Pe.result=G===void 0?null:G,oi(Pe,ae,Z),t.write(Pe).catch(()=>i.error("Sending response failed."))}function A(G,ae,Z){let Pe={jsonrpc:c,id:p.id,error:G.toJson()};oi(Pe,ae,Z),t.write(Pe).catch(()=>i.error("Sending response failed."))}function L(G,ae,Z){G===void 0&&(G=null);let Pe={jsonrpc:c,id:p.id,result:G};oi(Pe,ae,Z),t.write(Pe).catch(()=>i.error("Sending response failed."))}Vy(p);let re=d.get(p.method),te,le;re&&(te=re.type,le=re.handler);let me=Date.now();if(le||l){let G=p.id??String(Date.now()),ae=fo.is(b.receiver)?b.receiver.createCancellationTokenSource(G):b.receiver.createCancellationTokenSource(p);p.id!==null&&V.has(p.id)&&ae.cancel(),p.id!==null&&m.set(G,ae);try{let Z;if(le)if(p.params===void 0){if(te!==void 0&&te.numberOfParams!==0){A(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines ${te.numberOfParams} params but received none.`),p.method,me);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,me);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,me);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(G),C(Me,p.method,me)},Me=>{m.delete(G),Me instanceof U.ResponseError?A(Me,p.method,me):Me&&ue.string(Me.message)?A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Me.message}`),p.method,me):A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,me)}):(m.delete(G),C(Z,p.method,me)):(m.delete(G),L(Z,p.method,me))}catch(Z){m.delete(G),Z instanceof U.ResponseError?C(Z,p.method,me):Z&&ue.string(Z.message)?A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Z.message}`),p.method,me):A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,me)}}else A(new U.ResponseError(U.ErrorCodes.MethodNotFound,`Unhandled method ${p.method}`),p.method,me)}function By(p){if(!q())if(p.id===null)p.error?i.error(`Received response message without id: Error is:
40
+ ${JSON.stringify(p.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{let C=p.id,A=$.get(C);if(Ky(p,A),A!==void 0){$.delete(C);try{if(p.error){let L=p.error;A.reject(new U.ResponseError(L.code,L.message,L.data))}else if(p.result!==void 0)A.resolve(p.result);else throw new Error("Should never happen.")}catch(L){L.message?i.error(`Response handler '${A.method}' failed with message: ${L.message}`):i.error(`Response handler '${A.method}' failed unexpectedly.`)}}}}function Hy(p){if(q())return;let C,A;if(p.method===Mr.type.method){let L=p.params.id;V.delete(L),js(p);return}else{let L=v.get(p.method);L&&(A=L.handler,C=L.type)}if(A||h)try{if(js(p),A)if(p.params===void 0)C!==void 0&&C.numberOfParams!==0&&C.parameterStructures!==U.ParameterStructures.byName&&i.error(`Notification ${p.method} defines ${C.numberOfParams} params but received none.`),A();else if(Array.isArray(p.params)){let L=p.params;p.method===Nr.type.method&&L.length===2&&Sc.is(L[0])?A({token:L[0],value:L[1]}):(C!==void 0&&(C.parameterStructures===U.ParameterStructures.byName&&i.error(`Notification ${p.method} defines parameters by name but received parameters by position`),C.numberOfParams!==p.params.length&&i.error(`Notification ${p.method} defines ${C.numberOfParams} params but received ${L.length} arguments`)),A(...L))}else C!==void 0&&C.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 rn.fire(p)}function zy(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 C=p;if(ue.string(C.id)||ue.number(C.id)){let A=C.id,L=$.get(A);L&&L.reject(new Error("The received response has neither a result nor an error property."))}}function Mt(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 $y(p){if(!(g===J.Off||!Y))if(w===Ge.Text){let C;(g===J.Verbose||g===J.Compact)&&p.params&&(C=`Params: ${Mt(p.params)}
42
+
43
+ `),Y.log(`Sending request '${p.method} - (${p.id})'.`,C)}else Sn("send-request",p)}function Yy(p){if(!(g===J.Off||!Y))if(w===Ge.Text){let C;(g===J.Verbose||g===J.Compact)&&(p.params?C=`Params: ${Mt(p.params)}
44
44
 
45
45
  `:C=`No parameters provided.
46
46
 
47
- `),Y.log(`Sending notification '${p.method}'.`,C)}else Sn("send-notification",p)}function oi(p,C,A){if(!(g===J.Off||!Y))if(w===Ke.Text){let L;(g===J.Verbose||g===J.Compact)&&(p.error&&p.error.data?L=`Error data: ${jt(p.error.data)}
47
+ `),Y.log(`Sending notification '${p.method}'.`,C)}else Sn("send-notification",p)}function oi(p,C,A){if(!(g===J.Off||!Y))if(w===Ge.Text){let L;(g===J.Verbose||g===J.Compact)&&(p.error&&p.error.data?L=`Error data: ${Mt(p.error.data)}
48
48
 
49
- `:p.result?L=`Result: ${jt(p.result)}
49
+ `:p.result?L=`Result: ${Mt(p.result)}
50
50
 
51
51
  `:p.error===void 0&&(L=`No result returned.
52
52
 
53
- `)),Y.log(`Sending response '${C} - (${p.id})'. Processing request took ${Date.now()-A}ms`,L)}else Sn("send-response",p)}function Yy(p){if(!(g===J.Off||!Y))if(w===Ke.Text){let C;(g===J.Verbose||g===J.Compact)&&p.params&&(C=`Params: ${jt(p.params)}
53
+ `)),Y.log(`Sending response '${C} - (${p.id})'. Processing request took ${Date.now()-A}ms`,L)}else Sn("send-response",p)}function Vy(p){if(!(g===J.Off||!Y))if(w===Ge.Text){let C;(g===J.Verbose||g===J.Compact)&&p.params&&(C=`Params: ${Mt(p.params)}
54
54
 
55
- `),Y.log(`Received request '${p.method} - (${p.id})'.`,C)}else Sn("receive-request",p)}function Ns(p){if(!(g===J.Off||!Y||p.method===po.type.method))if(w===Ke.Text){let C;(g===J.Verbose||g===J.Compact)&&(p.params?C=`Params: ${jt(p.params)}
55
+ `),Y.log(`Received request '${p.method} - (${p.id})'.`,C)}else Sn("receive-request",p)}function js(p){if(!(g===J.Off||!Y||p.method===po.type.method))if(w===Ge.Text){let C;(g===J.Verbose||g===J.Compact)&&(p.params?C=`Params: ${Mt(p.params)}
56
56
 
57
57
  `:C=`No parameters provided.
58
58
 
59
- `),Y.log(`Received notification '${p.method}'.`,C)}else Sn("receive-notification",p)}function Vy(p,C){if(!(g===J.Off||!Y))if(w===Ke.Text){let A;if((g===J.Verbose||g===J.Compact)&&(p.error&&p.error.data?A=`Error data: ${jt(p.error.data)}
59
+ `),Y.log(`Received notification '${p.method}'.`,C)}else Sn("receive-notification",p)}function Ky(p,C){if(!(g===J.Off||!Y))if(w===Ge.Text){let A;if((g===J.Verbose||g===J.Compact)&&(p.error&&p.error.data?A=`Error data: ${Mt(p.error.data)}
60
60
 
61
- `:p.result?A=`Result: ${jt(p.result)}
61
+ `:p.result?A=`Result: ${Mt(p.result)}
62
62
 
63
63
  `:p.error===void 0&&(A=`No result returned.
64
64
 
65
- `)),C){let L=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";Y.log(`Received response '${C.method} - (${p.id})' in ${Date.now()-C.timerStart}ms.${L}`,A)}else Y.log(`Received response ${p.id} without active response promise.`,A)}else Sn("receive-response",p)}function Sn(p,C){if(!Y||g===J.Off)return;let A={isLSPMessage:!0,type:p,message:C,timestamp:Date.now()};Y.log(A)}function hr(){if(M())throw new Vn(Lr.Closed,"Connection is closed.");if(q())throw new Vn(Lr.Disposed,"Connection is disposed.")}function Ky(){if(E())throw new Vn(Lr.AlreadyListening,"Connection is already listening")}function Gy(){if(!E())throw new Error("Call listen() first.")}function yr(p){return p===void 0?null:p}function Ul(p){if(p!==null)return p}function Wl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function js(p,C){switch(p){case U.ParameterStructures.auto:return Wl(C)?Ul(C):[yr(C)];case U.ParameterStructures.byName:if(!Wl(C))throw new Error("Received parameters by name but param is not an object literal.");return Ul(C);case U.ParameterStructures.byPosition:return[yr(C)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function Bl(p,C){let A,L=p.numberOfParams;switch(L){case 0:A=void 0;break;case 1:A=js(p.parameterStructures,C[0]);break;default:A=[];for(let ie=0;ie<C.length&&ie<L;ie++)A.push(yr(C[ie]));if(C.length<L)for(let ie=C.length;ie<L;ie++)A.push(null);break}return A}let Rn={sendNotification:(p,...C)=>{hr();let A,L;if(ue.string(p)){A=p;let te=C[0],le=0,me=U.ParameterStructures.auto;U.ParameterStructures.is(te)&&(le=1,me=te);let G=C.length,ae=G-le;switch(ae){case 0:L=void 0;break;case 1:L=js(me,C[le]);break;default:if(me===U.ParameterStructures.byName)throw new Error(`Received ${ae} parameters for 'by Name' notification parameter structure.`);L=C.slice(le,G).map(Z=>yr(Z));break}}else{let te=C;A=p.method,L=Bl(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,C)=>{hr();let A;return ue.func(p)?h=p:C&&(ue.string(p)?(A=p,v.set(p,{type:void 0,handler:C})):(A=p.method,v.set(p.method,{type:p,handler:C}))),{dispose:()=>{A!==void 0?v.delete(A):h=void 0}}},onProgress:(p,C,A)=>{if(y.has(C))throw new Error(`Progress handler for token ${C} already registered`);return y.set(C,A),{dispose:()=>{y.delete(C)}}},sendProgress:(p,C,A)=>Rn.sendNotification(Mr.type,{token:C,value:A}),onUnhandledProgress:_n.event,sendRequest:(p,...C)=>{hr(),Gy();let A,L,ie;if(ue.string(p)){A=p;let G=C[0],ae=C[C.length-1],Z=0,Pe=U.ParameterStructures.auto;U.ParameterStructures.is(G)&&(Z=1,Pe=G);let Le=C.length;Tc.CancellationToken.is(ae)&&(Le=Le-1,ie=ae);let dt=Le-Z;switch(dt){case 0:L=void 0;break;case 1:L=js(Pe,C[Z]);break;default:if(Pe===U.ParameterStructures.byName)throw new Error(`Received ${dt} parameters for 'by Name' request parameter structure.`);L=C.slice(Z,Le).map(Qy=>yr(Qy));break}}else{let G=C;A=p.method,L=Bl(p,G);let ae=p.numberOfParams;ie=Tc.CancellationToken.is(G[ae])?G[ae]:void 0}let te=o++,le;ie&&(le=ie.onCancellationRequested(()=>{let G=b.sender.sendCancellation(Rn,te);return G===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${te}`),Promise.resolve()):G.catch(()=>{i.log(`Sending cancellation messages for id ${te} failed`)})}));let me={jsonrpc:c,id:te,method:A,params:L};return zy(me),typeof b.sender.enableCancellation=="function"&&b.sender.enableCancellation(me),new Promise(async(G,ae)=>{let Z=dt=>{G(dt),b.sender.cleanup(te),le?.dispose()},Pe=dt=>{ae(dt),b.sender.cleanup(te),le?.dispose()},Le={method:A,timerStart:Date.now(),resolve:Z,reject:Pe};try{await t.write(me),$.set(te,Le)}catch(dt){throw i.error("Sending request failed."),Le.reject(new U.ResponseError(U.ErrorCodes.MessageWriteError,dt.message?dt.message:"Unknown reason")),dt}})},onRequest:(p,C)=>{hr();let A=null;return Ac.is(p)?(A=void 0,l=p):ue.string(p)?(A=null,C!==void 0&&(A=p,d.set(p,{handler:C,type:void 0}))):C!==void 0&&(A=p.method,d.set(p.method,{type:p,handler:C})),{dispose:()=>{A!==null&&(A!==void 0?d.delete(A):l=void 0)}}},hasPendingResponse:()=>$.size>0,trace:async(p,C,A)=>{let L=!1,ie=Ke.Text;A!==void 0&&(ue.boolean(A)?L=A:(L=A.sendNotification||!1,ie=A.traceFormat||Ke.Text)),g=p,w=ie,g===J.Off?Y=void 0:Y=C,L&&!M()&&!q()&&await Rn.sendNotification(Oc.type,{value:J.toString(p)})},onError:it.event,onClose:Nt.event,onUnhandledNotification:rn.event,onDispose:k.event,end:()=>{t.end()},dispose:()=>{if(q())return;X=ct.Disposed,k.fire(void 0);let p=new U.ResponseError(U.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let C of $.values())C.reject(p);$=new Map,m=new Map,V=new Set,F=new gf.LinkedMap,ue.func(t.dispose)&&t.dispose(),ue.func(e.dispose)&&e.dispose()},listen:()=>{hr(),Ky(),X=ct.Listening,e.listen(Iy)},inspect:()=>{(0,ff.default)().console.log("inspect")}};return Rn.onNotification(po.type,p=>{if(g===J.Off||!Y)return;let C=g===J.Verbose||g===J.Compact;Y.log(p.message,C?p.verbose:void 0)}),Rn.onNotification(Mr.type,p=>{let C=y.get(p.token);C?C(p.value):_n.fire(p)}),Rn}H.createMessageConnection=d_});var bo=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=oc();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 Nc=ac();Object.defineProperty(x,"LinkedMap",{enumerable:!0,get:function(){return Nc.LinkedMap}});Object.defineProperty(x,"LRUCache",{enumerable:!0,get:function(){return Nc.LRUCache}});Object.defineProperty(x,"Touch",{enumerable:!0,get:function(){return Nc.Touch}});var f_=tf();Object.defineProperty(x,"Disposable",{enumerable:!0,get:function(){return f_.Disposable}});var bf=Hn();Object.defineProperty(x,"Event",{enumerable:!0,get:function(){return bf.Event}});Object.defineProperty(x,"Emitter",{enumerable:!0,get:function(){return bf.Emitter}});var vf=so();Object.defineProperty(x,"CancellationTokenSource",{enumerable:!0,get:function(){return vf.CancellationTokenSource}});Object.defineProperty(x,"CancellationToken",{enumerable:!0,get:function(){return vf.CancellationToken}});var xf=rf();Object.defineProperty(x,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return xf.SharedArraySenderStrategy}});Object.defineProperty(x,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return xf.SharedArrayReceiverStrategy}});var jc=sf();Object.defineProperty(x,"MessageReader",{enumerable:!0,get:function(){return jc.MessageReader}});Object.defineProperty(x,"AbstractMessageReader",{enumerable:!0,get:function(){return jc.AbstractMessageReader}});Object.defineProperty(x,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return jc.ReadableStreamMessageReader}});var Mc=pf();Object.defineProperty(x,"MessageWriter",{enumerable:!0,get:function(){return Mc.MessageWriter}});Object.defineProperty(x,"AbstractMessageWriter",{enumerable:!0,get:function(){return Mc.AbstractMessageWriter}});Object.defineProperty(x,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return Mc.WriteableStreamMessageWriter}});var g_=df();Object.defineProperty(x,"AbstractMessageBuffer",{enumerable:!0,get:function(){return g_.AbstractMessageBuffer}});var Ae=yf();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 m_=Ht();x.RAL=m_.default});var Cf=S(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var xt=bo(),vo=class e extends xt.AbstractMessageBuffer{constructor(t="utf-8"){super(t),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return e.emptyBuffer}fromString(t,n){return new TextEncoder().encode(t)}toString(t,n){return n==="ascii"?this.asciiDecoder.decode(t):new TextDecoder(n).decode(t)}asNative(t,n){return n===void 0?t:t.slice(0,n)}allocNative(t){return new Uint8Array(t)}};vo.emptyBuffer=new Uint8Array(0);var Lc=class{constructor(t){this.socket=t,this._onData=new xt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,xt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),xt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),xt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),xt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},Fc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),xt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),xt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),xt.Disposable.create(()=>this.socket.removeEventListener("end",t))}write(t,n){if(typeof t=="string"){if(n!==void 0&&n!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${n}`);this.socket.send(t)}else this.socket.send(t);return Promise.resolve()}end(){this.socket.close()}},h_=new TextEncoder,Pf=Object.freeze({messageBuffer:Object.freeze({create:e=>new vo(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{if(t.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(h_.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 Lc(e),asWritableStream:e=>new Fc(e)}),console,timer:Object.freeze({setTimeout(e,t,...n){let r=setTimeout(e,t,...n);return{dispose:()=>clearTimeout(r)}},setImmediate(e,...t){let n=setTimeout(e,0,...t);return{dispose:()=>clearTimeout(n)}},setInterval(e,t,...n){let r=setInterval(e,t,...n);return{dispose:()=>clearInterval(r)}}})});function Ic(){return Pf}(function(e){function t(){xt.RAL.install(Pf)}e.install=t})(Ic||(Ic={}));Uc.default=Ic});var hn=S(Ge=>{"use strict";var y_=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]})),b_=Ge&&Ge.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&y_(t,e,n)};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.createMessageConnection=Ge.BrowserMessageWriter=Ge.BrowserMessageReader=void 0;var v_=Cf();v_.default.install();var Kn=bo();b_(bo(),Ge);var Wc=class extends Kn.AbstractMessageReader{constructor(t){super(),this._onData=new Kn.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=Wc;var Bc=class extends Kn.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=Bc;function x_(e,t,n,r){return n===void 0&&(n=Kn.NullLogger),Kn.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Kn.createMessageConnection)(e,t,n,r)}Ge.createMessageConnection=x_});var Hc=S((MT,_f)=>{"use strict";_f.exports=hn()});var wo={};Ms(wo,{AnnotatedTextEdit:()=>Ot,ChangeAnnotation:()=>yn,ChangeAnnotationIdentifier:()=>Oe,CodeAction:()=>Su,CodeActionContext:()=>_u,CodeActionKind:()=>Cu,CodeActionTriggerKind:()=>$r,CodeDescription:()=>Zc,CodeLens:()=>Ru,Color:()=>Po,ColorInformation:()=>Vc,ColorPresentation:()=>Kc,Command:()=>bn,CompletionItem:()=>lu,CompletionItemKind:()=>iu,CompletionItemLabelDetails:()=>uu,CompletionItemTag:()=>su,CompletionList:()=>pu,CreateFile:()=>Qn,DeleteFile:()=>Xn,Diagnostic:()=>Wr,DiagnosticRelatedInformation:()=>Co,DiagnosticSeverity:()=>Jc,DiagnosticTag:()=>Xc,DocumentHighlight:()=>hu,DocumentHighlightKind:()=>mu,DocumentLink:()=>Tu,DocumentSymbol:()=>Pu,DocumentUri:()=>zc,EOL:()=>P_,FoldingRange:()=>Qc,FoldingRangeKind:()=>Gc,FormattingOptions:()=>Du,Hover:()=>du,InlayHint:()=>Mu,InlayHintKind:()=>Do,InlayHintLabelPart:()=>To,InlineCompletionContext:()=>Bu,InlineCompletionItem:()=>Fu,InlineCompletionList:()=>Iu,InlineCompletionTriggerKind:()=>Uu,InlineValueContext:()=>ju,InlineValueEvaluatableExpression:()=>Nu,InlineValueText:()=>qu,InlineValueVariableLookup:()=>Eu,InsertReplaceEdit:()=>au,InsertTextFormat:()=>ou,InsertTextMode:()=>cu,Location:()=>Ur,LocationLink:()=>Yc,MarkedString:()=>zr,MarkupContent:()=>Zn,MarkupKind:()=>Ro,OptionalVersionedTextDocumentIdentifier:()=>Hr,ParameterInformation:()=>fu,Position:()=>Xe,Range:()=>de,RenameFile:()=>Jn,SelectedCompletionInfo:()=>Wu,SelectionRange:()=>wu,SemanticTokenModifiers:()=>Au,SemanticTokenTypes:()=>ku,SemanticTokens:()=>Ou,SignatureInformation:()=>gu,StringValue:()=>Lu,SymbolInformation:()=>vu,SymbolKind:()=>yu,SymbolTag:()=>bu,TextDocument:()=>zu,TextDocumentEdit:()=>Br,TextDocumentIdentifier:()=>tu,TextDocumentItem:()=>ru,TextEdit:()=>Pt,URI:()=>xo,VersionedTextDocumentIdentifier:()=>nu,WorkspaceChange:()=>eu,WorkspaceEdit:()=>_o,WorkspaceFolder:()=>Hu,WorkspaceSymbol:()=>xu,integer:()=>$c,uinteger:()=>Ir});var zc,xo,$c,Ir,Xe,de,Ur,Yc,Po,Vc,Kc,Gc,Qc,Co,Jc,Xc,Zc,Wr,bn,Pt,yn,Oe,Ot,Br,Qn,Jn,Xn,_o,Gn,So,eu,tu,nu,Hr,ru,Ro,Zn,iu,ou,su,au,cu,uu,lu,pu,zr,du,fu,gu,mu,hu,yu,bu,vu,xu,Pu,Cu,$r,_u,Su,Ru,Du,Tu,wu,ku,Au,Ou,qu,Eu,Nu,ju,Do,To,Mu,Lu,Fu,Iu,Uu,Wu,Bu,Hu,P_,zu,$u,f,ko=Hl(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})(zc||(zc={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(xo||(xo={}));(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})($c||($c={}));(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Ir||(Ir={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Ir.MAX_VALUE),i===Number.MAX_VALUE&&(i=Ir.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.line)&&f.uinteger(i.character)}e.is=n})(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})(de||(de={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&de.is(i.range)&&(f.string(i.uri)||f.undefined(i.uri))}e.is=n})(Ur||(Ur={}));(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)&&de.is(i.targetRange)&&f.string(i.targetUri)&&de.is(i.targetSelectionRange)&&(de.is(i.originSelectionRange)||f.undefined(i.originSelectionRange))}e.is=n})(Yc||(Yc={}));(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})(Po||(Po={}));(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&de.is(i.range)&&Po.is(i.color)}e.is=n})(Vc||(Vc={}));(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)||Pt.is(i))&&(f.undefined(i.additionalTextEdits)||f.typedArray(i.additionalTextEdits,Pt.is))}e.is=n})(Kc||(Kc={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Gc||(Gc={}));(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})(Qc||(Qc={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Ur.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})(Jc||(Jc={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(Xc||(Xc={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(Zc||(Zc={}));(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)&&de.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})(Wr||(Wr={}));(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})(bn||(bn={}));(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)&&de.is(s.range)}e.is=i})(Pt||(Pt={}));(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})(yn||(yn={}));(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 Pt.is(s)&&(yn.is(s.annotationId)||Oe.is(s.annotationId))}e.is=i})(Ot||(Ot={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Hr.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Br||(Br={}));(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})(Qn||(Qn={}));(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})(Jn||(Jn={}));(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})(Xn||(Xn={}));(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)?Qn.is(i)||Jn.is(i)||Xn.is(i):Br.is(i)))}e.is=t})(_o||(_o={}));Gn=class{constructor(t,n){this.edits=t,this.changeAnnotations=n}insert(t,n,r){let i,o;if(r===void 0?i=Pt.insert(t,n):Oe.is(r)?(o=r,i=Ot.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Ot.insert(t,n,o)),this.edits.push(i),o!==void 0)return o}replace(t,n,r){let i,o;if(r===void 0?i=Pt.replace(t,n):Oe.is(r)?(o=r,i=Ot.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Ot.replace(t,n,o)),this.edits.push(i),o!==void 0)return o}delete(t,n){let r,i;if(n===void 0?r=Pt.del(t):Oe.is(n)?(i=n,r=Ot.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Ot.del(t,i)),this.edits.push(r),i!==void 0)return i}add(t){this.edits.push(t)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},So=class{constructor(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(t,n){let r;if(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()}},eu=class{constructor(t){this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new So(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(n=>{if(Br.is(n)){let r=new Gn(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new Gn(t.changes[n]);this._textEditChanges[n]=r})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(t){if(Hr.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n={uri:t.uri,version:t.version},r=this._textEditChanges[n.uri];if(!r){let i=[],o={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(o),r=new Gn(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 Gn(r),this._textEditChanges[t]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new So,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;yn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Qn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=Qn.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;yn.is(r)||Oe.is(r)?o=r:i=r;let s,a;if(o===void 0?s=Jn.create(t,n,i):(a=Oe.is(o)?o:this._changeAnnotations.manage(o),s=Jn.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;yn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Xn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=Xn.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})(tu||(tu={}));(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})(nu||(nu={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&(i.version===null||f.integer(i.version))}e.is=n})(Hr||(Hr={}));(function(e){function t(r,i,o,s){return{uri:r,languageId:i,version:o,text:s}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&f.string(i.languageId)&&f.integer(i.version)&&f.string(i.text)}e.is=n})(ru||(ru={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(Ro||(Ro={}));(function(e){function t(n){let r=n;return f.objectLiteral(n)&&Ro.is(r.kind)&&f.string(r.value)}e.is=t})(Zn||(Zn={}));(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})(iu||(iu={}));(function(e){e.PlainText=1,e.Snippet=2})(ou||(ou={}));(function(e){e.Deprecated=1})(su||(su={}));(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)&&de.is(i.insert)&&de.is(i.replace)}e.is=n})(au||(au={}));(function(e){e.asIs=1,e.adjustIndentation=2})(cu||(cu={}));(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})(uu||(uu={}));(function(e){function t(n){return{label:n}}e.create=t})(lu||(lu={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(pu||(pu={}));(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})(zr||(zr={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(Zn.is(r.contents)||zr.is(r.contents)||f.typedArray(r.contents,zr.is))&&(n.range===void 0||de.is(n.range))}e.is=t})(du||(du={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(fu||(fu={}));(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})(gu||(gu={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(mu||(mu={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(hu||(hu={}));(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})(yu||(yu={}));(function(e){e.Deprecated=1})(bu||(bu={}));(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})(vu||(vu={}));(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})(xu||(xu={}));(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)&&de.is(i.range)&&de.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})(Pu||(Pu={}));(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})($r||($r={}));(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,Wr.is)&&(i.only===void 0||f.typedArray(i.only,f.string))&&(i.triggerKind===void 0||i.triggerKind===$r.Invoked||i.triggerKind===$r.Automatic)}e.is=n})(_u||(_u={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):bn.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,Wr.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||bn.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||_o.is(i.edit))}e.is=n})(Su||(Su={}));(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)&&de.is(i.range)&&(f.undefined(i.command)||bn.is(i.command))}e.is=n})(Ru||(Ru={}));(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.uinteger(i.tabSize)&&f.boolean(i.insertSpaces)}e.is=n})(Du||(Du={}));(function(e){function t(r,i,o){return{range:r,target:i,data:o}}e.create=t;function n(r){let i=r;return f.defined(i)&&de.is(i.range)&&(f.undefined(i.target)||f.string(i.target))}e.is=n})(Tu||(Tu={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&de.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(wu||(wu={}));(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"})(ku||(ku={}));(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"})(Au||(Au={}));(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})(Ou||(Ou={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&de.is(i.range)&&f.string(i.text)}e.is=n})(qu||(qu={}));(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&&de.is(i.range)&&f.boolean(i.caseSensitiveLookup)&&(f.string(i.variableName)||i.variableName===void 0)}e.is=n})(Eu||(Eu={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&de.is(i.range)&&(f.string(i.expression)||i.expression===void 0)}e.is=n})(Nu||(Nu={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&de.is(r.stoppedLocation)}e.is=n})(ju||(ju={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(Do||(Do={}));(function(e){function t(r){return{value:r}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&(i.tooltip===void 0||f.string(i.tooltip)||Zn.is(i.tooltip))&&(i.location===void 0||Ur.is(i.location))&&(i.command===void 0||bn.is(i.command))}e.is=n})(To||(To={}));(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,To.is))&&(i.kind===void 0||Do.is(i.kind))&&i.textEdits===void 0||f.typedArray(i.textEdits,Pt.is)&&(i.tooltip===void 0||f.string(i.tooltip)||Zn.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(Mu||(Mu={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(Lu||(Lu={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(Fu||(Fu={}));(function(e){function t(n){return{items:n}}e.create=t})(Iu||(Iu={}));(function(e){e.Invoked=0,e.Automatic=1})(Uu||(Uu={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(Wu||(Wu={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(Bu||(Bu={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&xo.is(r.uri)&&f.string(r.name)}e.is=t})(Hu||(Hu={}));P_=[`
65
+ `)),C){let L=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";Y.log(`Received response '${C.method} - (${p.id})' in ${Date.now()-C.timerStart}ms.${L}`,A)}else Y.log(`Received response ${p.id} without active response promise.`,A)}else Sn("receive-response",p)}function Sn(p,C){if(!Y||g===J.Off)return;let A={isLSPMessage:!0,type:p,message:C,timestamp:Date.now()};Y.log(A)}function hr(){if(M())throw new Vn(jr.Closed,"Connection is closed.");if(q())throw new Vn(jr.Disposed,"Connection is disposed.")}function Gy(){if(E())throw new Vn(jr.AlreadyListening,"Connection is already listening")}function Qy(){if(!E())throw new Error("Call listen() first.")}function yr(p){return p===void 0?null:p}function Ul(p){if(p!==null)return p}function Wl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function Ms(p,C){switch(p){case U.ParameterStructures.auto:return Wl(C)?Ul(C):[yr(C)];case U.ParameterStructures.byName:if(!Wl(C))throw new Error("Received parameters by name but param is not an object literal.");return Ul(C);case U.ParameterStructures.byPosition:return[yr(C)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function Bl(p,C){let A,L=p.numberOfParams;switch(L){case 0:A=void 0;break;case 1:A=Ms(p.parameterStructures,C[0]);break;default:A=[];for(let re=0;re<C.length&&re<L;re++)A.push(yr(C[re]));if(C.length<L)for(let re=C.length;re<L;re++)A.push(null);break}return A}let Rn={sendNotification:(p,...C)=>{hr();let A,L;if(ue.string(p)){A=p;let te=C[0],le=0,me=U.ParameterStructures.auto;U.ParameterStructures.is(te)&&(le=1,me=te);let G=C.length,ae=G-le;switch(ae){case 0:L=void 0;break;case 1:L=Ms(me,C[le]);break;default:if(me===U.ParameterStructures.byName)throw new Error(`Received ${ae} parameters for 'by Name' notification parameter structure.`);L=C.slice(le,G).map(Z=>yr(Z));break}}else{let te=C;A=p.method,L=Bl(p,te)}let re={jsonrpc:c,method:A,params:L};return Yy(re),t.write(re).catch(te=>{throw i.error("Sending notification failed."),te})},onNotification:(p,C)=>{hr();let A;return ue.func(p)?h=p:C&&(ue.string(p)?(A=p,v.set(p,{type:void 0,handler:C})):(A=p.method,v.set(p.method,{type:p,handler:C}))),{dispose:()=>{A!==void 0?v.delete(A):h=void 0}}},onProgress:(p,C,A)=>{if(y.has(C))throw new Error(`Progress handler for token ${C} already registered`);return y.set(C,A),{dispose:()=>{y.delete(C)}}},sendProgress:(p,C,A)=>Rn.sendNotification(Nr.type,{token:C,value:A}),onUnhandledProgress:_n.event,sendRequest:(p,...C)=>{hr(),Qy();let A,L,re;if(ue.string(p)){A=p;let G=C[0],ae=C[C.length-1],Z=0,Pe=U.ParameterStructures.auto;U.ParameterStructures.is(G)&&(Z=1,Pe=G);let Me=C.length;_c.CancellationToken.is(ae)&&(Me=Me-1,re=ae);let dt=Me-Z;switch(dt){case 0:L=void 0;break;case 1:L=Ms(Pe,C[Z]);break;default:if(Pe===U.ParameterStructures.byName)throw new Error(`Received ${dt} parameters for 'by Name' request parameter structure.`);L=C.slice(Z,Me).map(Jy=>yr(Jy));break}}else{let G=C;A=p.method,L=Bl(p,G);let ae=p.numberOfParams;re=_c.CancellationToken.is(G[ae])?G[ae]:void 0}let te=o++,le;re&&(le=re.onCancellationRequested(()=>{let G=b.sender.sendCancellation(Rn,te);return G===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${te}`),Promise.resolve()):G.catch(()=>{i.log(`Sending cancellation messages for id ${te} failed`)})}));let me={jsonrpc:c,id:te,method:A,params:L};return $y(me),typeof b.sender.enableCancellation=="function"&&b.sender.enableCancellation(me),new Promise(async(G,ae)=>{let Z=dt=>{G(dt),b.sender.cleanup(te),le?.dispose()},Pe=dt=>{ae(dt),b.sender.cleanup(te),le?.dispose()},Me={method:A,timerStart:Date.now(),resolve:Z,reject:Pe};try{await t.write(me),$.set(te,Me)}catch(dt){throw i.error("Sending request failed."),Me.reject(new U.ResponseError(U.ErrorCodes.MessageWriteError,dt.message?dt.message:"Unknown reason")),dt}})},onRequest:(p,C)=>{hr();let A=null;return Dc.is(p)?(A=void 0,l=p):ue.string(p)?(A=null,C!==void 0&&(A=p,d.set(p,{handler:C,type:void 0}))):C!==void 0&&(A=p.method,d.set(p.method,{type:p,handler:C})),{dispose:()=>{A!==null&&(A!==void 0?d.delete(A):l=void 0)}}},hasPendingResponse:()=>$.size>0,trace:async(p,C,A)=>{let L=!1,re=Ge.Text;A!==void 0&&(ue.boolean(A)?L=A:(L=A.sendNotification||!1,re=A.traceFormat||Ge.Text)),g=p,w=re,g===J.Off?Y=void 0:Y=C,L&&!M()&&!q()&&await Rn.sendNotification(Tc.type,{value:J.toString(p)})},onError:ot.event,onClose:jt.event,onUnhandledNotification:rn.event,onDispose:k.event,end:()=>{t.end()},dispose:()=>{if(q())return;X=ct.Disposed,k.fire(void 0);let p=new U.ResponseError(U.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let C of $.values())C.reject(p);$=new Map,m=new Map,V=new Set,I=new lf.LinkedMap,ue.func(t.dispose)&&t.dispose(),ue.func(e.dispose)&&e.dispose()},listen:()=>{hr(),Gy(),X=ct.Listening,e.listen(Uy)},inspect:()=>{(0,uf.default)().console.log("inspect")}};return Rn.onNotification(po.type,p=>{if(g===J.Off||!Y)return;let C=g===J.Verbose||g===J.Compact;Y.log(p.message,C?p.verbose:void 0)}),Rn.onNotification(Nr.type,p=>{let C=y.get(p.token);C?C(p.value):_n.fire(p)}),Rn}H.createMessageConnection=h_});var bo=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 ne=tc();Object.defineProperty(x,"Message",{enumerable:!0,get:function(){return ne.Message}});Object.defineProperty(x,"RequestType",{enumerable:!0,get:function(){return ne.RequestType}});Object.defineProperty(x,"RequestType0",{enumerable:!0,get:function(){return ne.RequestType0}});Object.defineProperty(x,"RequestType1",{enumerable:!0,get:function(){return ne.RequestType1}});Object.defineProperty(x,"RequestType2",{enumerable:!0,get:function(){return ne.RequestType2}});Object.defineProperty(x,"RequestType3",{enumerable:!0,get:function(){return ne.RequestType3}});Object.defineProperty(x,"RequestType4",{enumerable:!0,get:function(){return ne.RequestType4}});Object.defineProperty(x,"RequestType5",{enumerable:!0,get:function(){return ne.RequestType5}});Object.defineProperty(x,"RequestType6",{enumerable:!0,get:function(){return ne.RequestType6}});Object.defineProperty(x,"RequestType7",{enumerable:!0,get:function(){return ne.RequestType7}});Object.defineProperty(x,"RequestType8",{enumerable:!0,get:function(){return ne.RequestType8}});Object.defineProperty(x,"RequestType9",{enumerable:!0,get:function(){return ne.RequestType9}});Object.defineProperty(x,"ResponseError",{enumerable:!0,get:function(){return ne.ResponseError}});Object.defineProperty(x,"ErrorCodes",{enumerable:!0,get:function(){return ne.ErrorCodes}});Object.defineProperty(x,"NotificationType",{enumerable:!0,get:function(){return ne.NotificationType}});Object.defineProperty(x,"NotificationType0",{enumerable:!0,get:function(){return ne.NotificationType0}});Object.defineProperty(x,"NotificationType1",{enumerable:!0,get:function(){return ne.NotificationType1}});Object.defineProperty(x,"NotificationType2",{enumerable:!0,get:function(){return ne.NotificationType2}});Object.defineProperty(x,"NotificationType3",{enumerable:!0,get:function(){return ne.NotificationType3}});Object.defineProperty(x,"NotificationType4",{enumerable:!0,get:function(){return ne.NotificationType4}});Object.defineProperty(x,"NotificationType5",{enumerable:!0,get:function(){return ne.NotificationType5}});Object.defineProperty(x,"NotificationType6",{enumerable:!0,get:function(){return ne.NotificationType6}});Object.defineProperty(x,"NotificationType7",{enumerable:!0,get:function(){return ne.NotificationType7}});Object.defineProperty(x,"NotificationType8",{enumerable:!0,get:function(){return ne.NotificationType8}});Object.defineProperty(x,"NotificationType9",{enumerable:!0,get:function(){return ne.NotificationType9}});Object.defineProperty(x,"ParameterStructures",{enumerable:!0,get:function(){return ne.ParameterStructures}});var Ac=rc();Object.defineProperty(x,"LinkedMap",{enumerable:!0,get:function(){return Ac.LinkedMap}});Object.defineProperty(x,"LRUCache",{enumerable:!0,get:function(){return Ac.LRUCache}});Object.defineProperty(x,"Touch",{enumerable:!0,get:function(){return Ac.Touch}});var y_=Jd();Object.defineProperty(x,"Disposable",{enumerable:!0,get:function(){return y_.Disposable}});var gf=Hn();Object.defineProperty(x,"Event",{enumerable:!0,get:function(){return gf.Event}});Object.defineProperty(x,"Emitter",{enumerable:!0,get:function(){return gf.Emitter}});var mf=so();Object.defineProperty(x,"CancellationTokenSource",{enumerable:!0,get:function(){return mf.CancellationTokenSource}});Object.defineProperty(x,"CancellationToken",{enumerable:!0,get:function(){return mf.CancellationToken}});var hf=Zd();Object.defineProperty(x,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return hf.SharedArraySenderStrategy}});Object.defineProperty(x,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return hf.SharedArrayReceiverStrategy}});var Oc=tf();Object.defineProperty(x,"MessageReader",{enumerable:!0,get:function(){return Oc.MessageReader}});Object.defineProperty(x,"AbstractMessageReader",{enumerable:!0,get:function(){return Oc.AbstractMessageReader}});Object.defineProperty(x,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return Oc.ReadableStreamMessageReader}});var qc=af();Object.defineProperty(x,"MessageWriter",{enumerable:!0,get:function(){return qc.MessageWriter}});Object.defineProperty(x,"AbstractMessageWriter",{enumerable:!0,get:function(){return qc.AbstractMessageWriter}});Object.defineProperty(x,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return qc.WriteableStreamMessageWriter}});var b_=cf();Object.defineProperty(x,"AbstractMessageBuffer",{enumerable:!0,get:function(){return b_.AbstractMessageBuffer}});var ke=ff();Object.defineProperty(x,"ConnectionStrategy",{enumerable:!0,get:function(){return ke.ConnectionStrategy}});Object.defineProperty(x,"ConnectionOptions",{enumerable:!0,get:function(){return ke.ConnectionOptions}});Object.defineProperty(x,"NullLogger",{enumerable:!0,get:function(){return ke.NullLogger}});Object.defineProperty(x,"createMessageConnection",{enumerable:!0,get:function(){return ke.createMessageConnection}});Object.defineProperty(x,"ProgressToken",{enumerable:!0,get:function(){return ke.ProgressToken}});Object.defineProperty(x,"ProgressType",{enumerable:!0,get:function(){return ke.ProgressType}});Object.defineProperty(x,"Trace",{enumerable:!0,get:function(){return ke.Trace}});Object.defineProperty(x,"TraceValues",{enumerable:!0,get:function(){return ke.TraceValues}});Object.defineProperty(x,"TraceFormat",{enumerable:!0,get:function(){return ke.TraceFormat}});Object.defineProperty(x,"SetTraceNotification",{enumerable:!0,get:function(){return ke.SetTraceNotification}});Object.defineProperty(x,"LogTraceNotification",{enumerable:!0,get:function(){return ke.LogTraceNotification}});Object.defineProperty(x,"ConnectionErrors",{enumerable:!0,get:function(){return ke.ConnectionErrors}});Object.defineProperty(x,"ConnectionError",{enumerable:!0,get:function(){return ke.ConnectionError}});Object.defineProperty(x,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return ke.CancellationReceiverStrategy}});Object.defineProperty(x,"CancellationSenderStrategy",{enumerable:!0,get:function(){return ke.CancellationSenderStrategy}});Object.defineProperty(x,"CancellationStrategy",{enumerable:!0,get:function(){return ke.CancellationStrategy}});Object.defineProperty(x,"MessageStrategy",{enumerable:!0,get:function(){return ke.MessageStrategy}});var v_=Ht();x.RAL=v_.default});var bf=S(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});var xt=bo(),vo=class e extends xt.AbstractMessageBuffer{constructor(t="utf-8"){super(t),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return e.emptyBuffer}fromString(t,n){return new TextEncoder().encode(t)}toString(t,n){return n==="ascii"?this.asciiDecoder.decode(t):new TextDecoder(n).decode(t)}asNative(t,n){return n===void 0?t:t.slice(0,n)}allocNative(t){return new Uint8Array(t)}};vo.emptyBuffer=new Uint8Array(0);var Ec=class{constructor(t){this.socket=t,this._onData=new xt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,xt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),xt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),xt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),xt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},Nc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),xt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),xt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),xt.Disposable.create(()=>this.socket.removeEventListener("end",t))}write(t,n){if(typeof t=="string"){if(n!==void 0&&n!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${n}`);this.socket.send(t)}else this.socket.send(t);return Promise.resolve()}end(){this.socket.close()}},x_=new TextEncoder,yf=Object.freeze({messageBuffer:Object.freeze({create:e=>new vo(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{if(t.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(x_.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 Ec(e),asWritableStream:e=>new Nc(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 jc(){return yf}(function(e){function t(){xt.RAL.install(yf)}e.install=t})(jc||(jc={}));Mc.default=jc});var hn=S(Qe=>{"use strict";var P_=Qe&&Qe.__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]})),C_=Qe&&Qe.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&P_(t,e,n)};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.createMessageConnection=Qe.BrowserMessageWriter=Qe.BrowserMessageReader=void 0;var __=bf();__.default.install();var Kn=bo();C_(bo(),Qe);var Lc=class extends Kn.AbstractMessageReader{constructor(t){super(),this._onData=new Kn.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)}};Qe.BrowserMessageReader=Lc;var Ic=class extends Kn.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(){}};Qe.BrowserMessageWriter=Ic;function S_(e,t,n,r){return n===void 0&&(n=Kn.NullLogger),Kn.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Kn.createMessageConnection)(e,t,n,r)}Qe.createMessageConnection=S_});var Fc=S((LT,vf)=>{"use strict";vf.exports=hn()});var wo={};Ls(wo,{AnnotatedTextEdit:()=>qt,ChangeAnnotation:()=>yn,ChangeAnnotationIdentifier:()=>Ae,CodeAction:()=>xu,CodeActionContext:()=>vu,CodeActionKind:()=>bu,CodeActionTriggerKind:()=>Hr,CodeDescription:()=>Gc,CodeLens:()=>Pu,Color:()=>Po,ColorInformation:()=>Hc,ColorPresentation:()=>zc,Command:()=>bn,CompletionItem:()=>su,CompletionItemKind:()=>eu,CompletionItemLabelDetails:()=>ou,CompletionItemTag:()=>nu,CompletionList:()=>au,CreateFile:()=>Qn,DeleteFile:()=>Xn,Diagnostic:()=>Fr,DiagnosticRelatedInformation:()=>Co,DiagnosticSeverity:()=>Vc,DiagnosticTag:()=>Kc,DocumentHighlight:()=>du,DocumentHighlightKind:()=>pu,DocumentLink:()=>_u,DocumentSymbol:()=>yu,DocumentUri:()=>Uc,EOL:()=>R_,FoldingRange:()=>Yc,FoldingRangeKind:()=>$c,FormattingOptions:()=>Cu,Hover:()=>cu,InlayHint:()=>qu,InlayHintKind:()=>Do,InlayHintLabelPart:()=>To,InlineCompletionContext:()=>Iu,InlineCompletionItem:()=>Nu,InlineCompletionList:()=>ju,InlineCompletionTriggerKind:()=>Mu,InlineValueContext:()=>Ou,InlineValueEvaluatableExpression:()=>Au,InlineValueText:()=>wu,InlineValueVariableLookup:()=>ku,InsertReplaceEdit:()=>ru,InsertTextFormat:()=>tu,InsertTextMode:()=>iu,Location:()=>Ir,LocationLink:()=>Bc,MarkedString:()=>Br,MarkupContent:()=>Zn,MarkupKind:()=>Ro,OptionalVersionedTextDocumentIdentifier:()=>Wr,ParameterInformation:()=>uu,Position:()=>Ze,Range:()=>de,RenameFile:()=>Jn,SelectedCompletionInfo:()=>Lu,SelectionRange:()=>Su,SemanticTokenModifiers:()=>Du,SemanticTokenTypes:()=>Ru,SemanticTokens:()=>Tu,SignatureInformation:()=>lu,StringValue:()=>Eu,SymbolInformation:()=>mu,SymbolKind:()=>fu,SymbolTag:()=>gu,TextDocument:()=>Uu,TextDocumentEdit:()=>Ur,TextDocumentIdentifier:()=>Jc,TextDocumentItem:()=>Zc,TextEdit:()=>Pt,URI:()=>xo,VersionedTextDocumentIdentifier:()=>Xc,WorkspaceChange:()=>Qc,WorkspaceEdit:()=>_o,WorkspaceFolder:()=>Fu,WorkspaceSymbol:()=>hu,integer:()=>Wc,uinteger:()=>Lr});var Uc,xo,Wc,Lr,Ze,de,Ir,Bc,Po,Hc,zc,$c,Yc,Co,Vc,Kc,Gc,Fr,bn,Pt,yn,Ae,qt,Ur,Qn,Jn,Xn,_o,Gn,So,Qc,Jc,Xc,Wr,Zc,Ro,Zn,eu,tu,nu,ru,iu,ou,su,au,Br,cu,uu,lu,pu,du,fu,gu,mu,hu,yu,bu,Hr,vu,xu,Pu,Cu,_u,Su,Ru,Du,Tu,wu,ku,Au,Ou,Do,To,qu,Eu,Nu,ju,Mu,Lu,Iu,Fu,R_,Uu,Wu,f,ko=Hl(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})(Uc||(Uc={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(xo||(xo={}));(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Wc||(Wc={}));(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Lr||(Lr={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Lr.MAX_VALUE),i===Number.MAX_VALUE&&(i=Lr.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.line)&&f.uinteger(i.character)}e.is=n})(Ze||(Ze={}));(function(e){function t(r,i,o,s){if(f.uinteger(r)&&f.uinteger(i)&&f.uinteger(o)&&f.uinteger(s))return{start:Ze.create(r,i),end:Ze.create(o,s)};if(Ze.is(r)&&Ze.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)&&Ze.is(i.start)&&Ze.is(i.end)}e.is=n})(de||(de={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&de.is(i.range)&&(f.string(i.uri)||f.undefined(i.uri))}e.is=n})(Ir||(Ir={}));(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)&&de.is(i.targetRange)&&f.string(i.targetUri)&&de.is(i.targetSelectionRange)&&(de.is(i.originSelectionRange)||f.undefined(i.originSelectionRange))}e.is=n})(Bc||(Bc={}));(function(e){function t(r,i,o,s){return{red:r,green:i,blue:o,alpha:s}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.numberRange(i.red,0,1)&&f.numberRange(i.green,0,1)&&f.numberRange(i.blue,0,1)&&f.numberRange(i.alpha,0,1)}e.is=n})(Po||(Po={}));(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&de.is(i.range)&&Po.is(i.color)}e.is=n})(Hc||(Hc={}));(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)||Pt.is(i))&&(f.undefined(i.additionalTextEdits)||f.typedArray(i.additionalTextEdits,Pt.is))}e.is=n})(zc||(zc={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})($c||($c={}));(function(e){function t(r,i,o,s,a,c){let l={startLine:r,endLine:i};return f.defined(o)&&(l.startCharacter=o),f.defined(s)&&(l.endCharacter=s),f.defined(a)&&(l.kind=a),f.defined(c)&&(l.collapsedText=c),l}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.startLine)&&f.uinteger(i.startLine)&&(f.undefined(i.startCharacter)||f.uinteger(i.startCharacter))&&(f.undefined(i.endCharacter)||f.uinteger(i.endCharacter))&&(f.undefined(i.kind)||f.string(i.kind))}e.is=n})(Yc||(Yc={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Ir.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})(Vc||(Vc={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(Kc||(Kc={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(Gc||(Gc={}));(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)&&de.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})(Fr||(Fr={}));(function(e){function t(r,i,...o){let s={title:r,command:i};return f.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.title)&&f.string(i.command)}e.is=n})(bn||(bn={}));(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)&&de.is(s.range)}e.is=i})(Pt||(Pt={}));(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})(yn||(yn={}));(function(e){function t(n){let r=n;return f.string(r)}e.is=t})(Ae||(Ae={}));(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 Pt.is(s)&&(yn.is(s.annotationId)||Ae.is(s.annotationId))}e.is=i})(qt||(qt={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Wr.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Ur||(Ur={}));(function(e){function t(r,i,o){let s={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&f.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||f.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||f.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ae.is(i.annotationId))}e.is=n})(Qn||(Qn={}));(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||Ae.is(i.annotationId))}e.is=n})(Jn||(Jn={}));(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||Ae.is(i.annotationId))}e.is=n})(Xn||(Xn={}));(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)?Qn.is(i)||Jn.is(i)||Xn.is(i):Ur.is(i)))}e.is=t})(_o||(_o={}));Gn=class{constructor(t,n){this.edits=t,this.changeAnnotations=n}insert(t,n,r){let i,o;if(r===void 0?i=Pt.insert(t,n):Ae.is(r)?(o=r,i=qt.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=qt.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=Pt.replace(t,n):Ae.is(r)?(o=r,i=qt.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=qt.replace(t,n,o)),this.edits.push(i),o!==void 0)return o}delete(t,n){let r,i;if(n===void 0?r=Pt.del(t):Ae.is(n)?(i=n,r=qt.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=qt.del(t,i)),this.edits.push(r),i!==void 0)return i}add(t){this.edits.push(t)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},So=class{constructor(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(t,n){let r;if(Ae.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()}},Qc=class{constructor(t){this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new So(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(n=>{if(Ur.is(n)){let r=new Gn(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new Gn(t.changes[n]);this._textEditChanges[n]=r})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(t){if(Wr.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n={uri:t.uri,version:t.version},r=this._textEditChanges[n.uri];if(!r){let i=[],o={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(o),r=new Gn(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 Gn(r),this._textEditChanges[t]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new So,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;yn.is(n)||Ae.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Qn.create(t,r):(s=Ae.is(i)?i:this._changeAnnotations.manage(i),o=Qn.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;yn.is(r)||Ae.is(r)?o=r:i=r;let s,a;if(o===void 0?s=Jn.create(t,n,i):(a=Ae.is(o)?o:this._changeAnnotations.manage(o),s=Jn.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;yn.is(n)||Ae.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Xn.create(t,r):(s=Ae.is(i)?i:this._changeAnnotations.manage(i),o=Xn.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})(Jc||(Jc={}));(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})(Xc||(Xc={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&(i.version===null||f.integer(i.version))}e.is=n})(Wr||(Wr={}));(function(e){function t(r,i,o,s){return{uri:r,languageId:i,version:o,text:s}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&f.string(i.languageId)&&f.integer(i.version)&&f.string(i.text)}e.is=n})(Zc||(Zc={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(Ro||(Ro={}));(function(e){function t(n){let r=n;return f.objectLiteral(n)&&Ro.is(r.kind)&&f.string(r.value)}e.is=t})(Zn||(Zn={}));(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})(eu||(eu={}));(function(e){e.PlainText=1,e.Snippet=2})(tu||(tu={}));(function(e){e.Deprecated=1})(nu||(nu={}));(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)&&de.is(i.insert)&&de.is(i.replace)}e.is=n})(ru||(ru={}));(function(e){e.asIs=1,e.adjustIndentation=2})(iu||(iu={}));(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})(ou||(ou={}));(function(e){function t(n){return{label:n}}e.create=t})(su||(su={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(au||(au={}));(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){let i=r;return f.string(i)||f.objectLiteral(i)&&f.string(i.language)&&f.string(i.value)}e.is=n})(Br||(Br={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(Zn.is(r.contents)||Br.is(r.contents)||f.typedArray(r.contents,Br.is))&&(n.range===void 0||de.is(n.range))}e.is=t})(cu||(cu={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(uu||(uu={}));(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})(lu||(lu={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(pu||(pu={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(du||(du={}));(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})(fu||(fu={}));(function(e){e.Deprecated=1})(gu||(gu={}));(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})(mu||(mu={}));(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})(hu||(hu={}));(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)&&de.is(i.range)&&de.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})(yu||(yu={}));(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"})(bu||(bu={}));(function(e){e.Invoked=1,e.Automatic=2})(Hr||(Hr={}));(function(e){function t(r,i,o){let s={diagnostics:r};return i!=null&&(s.only=i),o!=null&&(s.triggerKind=o),s}e.create=t;function n(r){let i=r;return f.defined(i)&&f.typedArray(i.diagnostics,Fr.is)&&(i.only===void 0||f.typedArray(i.only,f.string))&&(i.triggerKind===void 0||i.triggerKind===Hr.Invoked||i.triggerKind===Hr.Automatic)}e.is=n})(vu||(vu={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):bn.is(i)?s.command=i:s.edit=i,a&&o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return i&&f.string(i.title)&&(i.diagnostics===void 0||f.typedArray(i.diagnostics,Fr.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||bn.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||_o.is(i.edit))}e.is=n})(xu||(xu={}));(function(e){function t(r,i){let o={range:r};return f.defined(i)&&(o.data=i),o}e.create=t;function n(r){let i=r;return f.defined(i)&&de.is(i.range)&&(f.undefined(i.command)||bn.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})(Cu||(Cu={}));(function(e){function t(r,i,o){return{range:r,target:i,data:o}}e.create=t;function n(r){let i=r;return f.defined(i)&&de.is(i.range)&&(f.undefined(i.target)||f.string(i.target))}e.is=n})(_u||(_u={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&de.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(Su||(Su={}));(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Ru||(Ru={}));(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"})(Du||(Du={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(Tu||(Tu={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&de.is(i.range)&&f.string(i.text)}e.is=n})(wu||(wu={}));(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&&de.is(i.range)&&f.boolean(i.caseSensitiveLookup)&&(f.string(i.variableName)||i.variableName===void 0)}e.is=n})(ku||(ku={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&de.is(i.range)&&(f.string(i.expression)||i.expression===void 0)}e.is=n})(Au||(Au={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&de.is(r.stoppedLocation)}e.is=n})(Ou||(Ou={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(Do||(Do={}));(function(e){function t(r){return{value:r}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&(i.tooltip===void 0||f.string(i.tooltip)||Zn.is(i.tooltip))&&(i.location===void 0||Ir.is(i.location))&&(i.command===void 0||bn.is(i.command))}e.is=n})(To||(To={}));(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)&&Ze.is(i.position)&&(f.string(i.label)||f.typedArray(i.label,To.is))&&(i.kind===void 0||Do.is(i.kind))&&i.textEdits===void 0||f.typedArray(i.textEdits,Pt.is)&&(i.tooltip===void 0||f.string(i.tooltip)||Zn.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(qu||(qu={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(Eu||(Eu={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(Nu||(Nu={}));(function(e){function t(n){return{items:n}}e.create=t})(ju||(ju={}));(function(e){e.Invoked=0,e.Automatic=1})(Mu||(Mu={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(Lu||(Lu={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(Iu||(Iu={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&xo.is(r.uri)&&f.string(r.name)}e.is=t})(Fu||(Fu={}));R_=[`
66
66
  `,`\r
67
- `,"\r"];(function(e){function t(o,s,a,c){return new $u(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}})(zu||(zu={}));$u=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===`
67
+ `,"\r"];(function(e){function t(o,s,a,c){return new Wu(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}})(Uu||(Uu={}));Wu=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,D,F){return t.call(y)==="[object Number]"&&D<=y&&y<=F}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function l(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=l;function d(y){return t.call(y)==="[object Function]"}e.func=d;function h(y){return y!==null&&typeof y=="object"}e.objectLiteral=h;function v(y,D){return Array.isArray(y)&&y.every(D)}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 er=hn(),Sf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(Sf||(He.MessageDirection=Sf={}));var Yu=class{constructor(t){this.method=t}};He.RegistrationType=Yu;var Vu=class extends er.RequestType0{constructor(t){super(t)}};He.ProtocolRequestType0=Vu;var Ku=class extends er.RequestType{constructor(t){super(t,er.ParameterStructures.byName)}};He.ProtocolRequestType=Ku;var Gu=class extends er.NotificationType0{constructor(t){super(t)}};He.ProtocolNotificationType0=Gu;var Qu=class extends er.NotificationType{constructor(t){super(t,er.ParameterStructures.byName)}};He.ProtocolNotificationType=Qu});var Ao=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 C_(e){return e===!0||e===!1}ve.boolean=C_;function Rf(e){return typeof e=="string"||e instanceof String}ve.string=Rf;function __(e){return typeof e=="number"||e instanceof Number}ve.number=__;function S_(e){return e instanceof Error}ve.error=S_;function R_(e){return typeof e=="function"}ve.func=R_;function Df(e){return Array.isArray(e)}ve.array=Df;function D_(e){return Df(e)&&e.every(t=>Rf(t))}ve.stringArray=D_;function T_(e,t){return Array.isArray(e)&&e.every(t)}ve.typedArray=T_;function w_(e){return e!==null&&typeof e=="object"}ve.objectLiteral=w_});var kf=S(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.ImplementationRequest=void 0;var Tf=se(),wf;(function(e){e.method="textDocument/implementation",e.messageDirection=Tf.MessageDirection.clientToServer,e.type=new Tf.ProtocolRequestType(e.method)})(wf||(Oo.ImplementationRequest=wf={}))});var qf=S(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.TypeDefinitionRequest=void 0;var Af=se(),Of;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=Af.MessageDirection.clientToServer,e.type=new Af.ProtocolRequestType(e.method)})(Of||(qo.TypeDefinitionRequest=Of={}))});var jf=S(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.DidChangeWorkspaceFoldersNotification=tr.WorkspaceFoldersRequest=void 0;var Eo=se(),Ef;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=Eo.MessageDirection.serverToClient,e.type=new Eo.ProtocolRequestType0(e.method)})(Ef||(tr.WorkspaceFoldersRequest=Ef={}));var Nf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=Eo.MessageDirection.clientToServer,e.type=new Eo.ProtocolNotificationType(e.method)})(Nf||(tr.DidChangeWorkspaceFoldersNotification=Nf={}))});var Ff=S(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.ConfigurationRequest=void 0;var Mf=se(),Lf;(function(e){e.method="workspace/configuration",e.messageDirection=Mf.MessageDirection.serverToClient,e.type=new Mf.ProtocolRequestType(e.method)})(Lf||(No.ConfigurationRequest=Lf={}))});var Wf=S(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.ColorPresentationRequest=nr.DocumentColorRequest=void 0;var jo=se(),If;(function(e){e.method="textDocument/documentColor",e.messageDirection=jo.MessageDirection.clientToServer,e.type=new jo.ProtocolRequestType(e.method)})(If||(nr.DocumentColorRequest=If={}));var Uf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=jo.MessageDirection.clientToServer,e.type=new jo.ProtocolRequestType(e.method)})(Uf||(nr.ColorPresentationRequest=Uf={}))});var zf=S(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.FoldingRangeRefreshRequest=rr.FoldingRangeRequest=void 0;var Mo=se(),Bf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=Mo.MessageDirection.clientToServer,e.type=new Mo.ProtocolRequestType(e.method)})(Bf||(rr.FoldingRangeRequest=Bf={}));var Hf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=Mo.MessageDirection.serverToClient,e.type=new Mo.ProtocolRequestType0(e.method)})(Hf||(rr.FoldingRangeRefreshRequest=Hf={}))});var Vf=S(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.DeclarationRequest=void 0;var $f=se(),Yf;(function(e){e.method="textDocument/declaration",e.messageDirection=$f.MessageDirection.clientToServer,e.type=new $f.ProtocolRequestType(e.method)})(Yf||(Lo.DeclarationRequest=Yf={}))});var Qf=S(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.SelectionRangeRequest=void 0;var Kf=se(),Gf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Kf.MessageDirection.clientToServer,e.type=new Kf.ProtocolRequestType(e.method)})(Gf||(Fo.SelectionRangeRequest=Gf={}))});var eg=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.WorkDoneProgressCancelNotification=Yt.WorkDoneProgressCreateRequest=Yt.WorkDoneProgress=void 0;var k_=hn(),Io=se(),Jf;(function(e){e.type=new k_.ProgressType;function t(n){return n===e.type}e.is=t})(Jf||(Yt.WorkDoneProgress=Jf={}));var Xf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Io.MessageDirection.serverToClient,e.type=new Io.ProtocolRequestType(e.method)})(Xf||(Yt.WorkDoneProgressCreateRequest=Xf={}));var Zf;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Io.MessageDirection.clientToServer,e.type=new Io.ProtocolNotificationType(e.method)})(Zf||(Yt.WorkDoneProgressCancelNotification=Zf={}))});var ig=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.CallHierarchyOutgoingCallsRequest=Vt.CallHierarchyIncomingCallsRequest=Vt.CallHierarchyPrepareRequest=void 0;var ir=se(),tg;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(tg||(Vt.CallHierarchyPrepareRequest=tg={}));var ng;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(ng||(Vt.CallHierarchyIncomingCallsRequest=ng={}));var rg;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(rg||(Vt.CallHierarchyOutgoingCallsRequest=rg={}))});var lg=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 qt=se(),og;(function(e){e.Relative="relative"})(og||(ze.TokenFormat=og={}));var Yr;(function(e){e.method="textDocument/semanticTokens",e.type=new qt.RegistrationType(e.method)})(Yr||(ze.SemanticTokensRegistrationType=Yr={}));var sg;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=Yr.method})(sg||(ze.SemanticTokensRequest=sg={}));var ag;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=Yr.method})(ag||(ze.SemanticTokensDeltaRequest=ag={}));var cg;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=Yr.method})(cg||(ze.SemanticTokensRangeRequest=cg={}));var ug;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=qt.MessageDirection.serverToClient,e.type=new qt.ProtocolRequestType0(e.method)})(ug||(ze.SemanticTokensRefreshRequest=ug={}))});var fg=S(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.ShowDocumentRequest=void 0;var pg=se(),dg;(function(e){e.method="window/showDocument",e.messageDirection=pg.MessageDirection.serverToClient,e.type=new pg.ProtocolRequestType(e.method)})(dg||(Uo.ShowDocumentRequest=dg={}))});var hg=S(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.LinkedEditingRangeRequest=void 0;var gg=se(),mg;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=gg.MessageDirection.clientToServer,e.type=new gg.ProtocolRequestType(e.method)})(mg||(Wo.LinkedEditingRangeRequest=mg={}))});var Sg=S(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.WillDeleteFilesRequest=je.DidDeleteFilesNotification=je.DidRenameFilesNotification=je.WillRenameFilesRequest=je.DidCreateFilesNotification=je.WillCreateFilesRequest=je.FileOperationPatternKind=void 0;var Ze=se(),yg;(function(e){e.file="file",e.folder="folder"})(yg||(je.FileOperationPatternKind=yg={}));var bg;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(bg||(je.WillCreateFilesRequest=bg={}));var vg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(vg||(je.DidCreateFilesNotification=vg={}));var xg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(xg||(je.WillRenameFilesRequest=xg={}));var Pg;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Pg||(je.DidRenameFilesNotification=Pg={}));var Cg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Cg||(je.DidDeleteFilesNotification=Cg={}));var _g;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(_g||(je.WillDeleteFilesRequest=_g={}))});var kg=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.MonikerRequest=Kt.MonikerKind=Kt.UniquenessLevel=void 0;var Rg=se(),Dg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(Dg||(Kt.UniquenessLevel=Dg={}));var Tg;(function(e){e.$import="import",e.$export="export",e.local="local"})(Tg||(Kt.MonikerKind=Tg={}));var wg;(function(e){e.method="textDocument/moniker",e.messageDirection=Rg.MessageDirection.clientToServer,e.type=new Rg.ProtocolRequestType(e.method)})(wg||(Kt.MonikerRequest=wg={}))});var Eg=S(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.TypeHierarchySubtypesRequest=Gt.TypeHierarchySupertypesRequest=Gt.TypeHierarchyPrepareRequest=void 0;var or=se(),Ag;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(Ag||(Gt.TypeHierarchyPrepareRequest=Ag={}));var Og;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(Og||(Gt.TypeHierarchySupertypesRequest=Og={}));var qg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(qg||(Gt.TypeHierarchySubtypesRequest=qg={}))});var Mg=S(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.InlineValueRefreshRequest=sr.InlineValueRequest=void 0;var Bo=se(),Ng;(function(e){e.method="textDocument/inlineValue",e.messageDirection=Bo.MessageDirection.clientToServer,e.type=new Bo.ProtocolRequestType(e.method)})(Ng||(sr.InlineValueRequest=Ng={}));var jg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=Bo.MessageDirection.serverToClient,e.type=new Bo.ProtocolRequestType0(e.method)})(jg||(sr.InlineValueRefreshRequest=jg={}))});var Ug=S(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.InlayHintRefreshRequest=Qt.InlayHintResolveRequest=Qt.InlayHintRequest=void 0;var ar=se(),Lg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=ar.MessageDirection.clientToServer,e.type=new ar.ProtocolRequestType(e.method)})(Lg||(Qt.InlayHintRequest=Lg={}));var Fg;(function(e){e.method="inlayHint/resolve",e.messageDirection=ar.MessageDirection.clientToServer,e.type=new ar.ProtocolRequestType(e.method)})(Fg||(Qt.InlayHintResolveRequest=Fg={}));var Ig;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=ar.MessageDirection.serverToClient,e.type=new ar.ProtocolRequestType0(e.method)})(Ig||(Qt.InlayHintRefreshRequest=Ig={}))});var Vg=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DiagnosticRefreshRequest=et.WorkspaceDiagnosticRequest=et.DocumentDiagnosticRequest=et.DocumentDiagnosticReportKind=et.DiagnosticServerCancellationData=void 0;var Yg=hn(),A_=Ao(),cr=se(),Wg;(function(e){function t(n){let r=n;return r&&A_.boolean(r.retriggerRequest)}e.is=t})(Wg||(et.DiagnosticServerCancellationData=Wg={}));var Bg;(function(e){e.Full="full",e.Unchanged="unchanged"})(Bg||(et.DocumentDiagnosticReportKind=Bg={}));var Hg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=cr.MessageDirection.clientToServer,e.type=new cr.ProtocolRequestType(e.method),e.partialResult=new Yg.ProgressType})(Hg||(et.DocumentDiagnosticRequest=Hg={}));var zg;(function(e){e.method="workspace/diagnostic",e.messageDirection=cr.MessageDirection.clientToServer,e.type=new cr.ProtocolRequestType(e.method),e.partialResult=new Yg.ProgressType})(zg||(et.WorkspaceDiagnosticRequest=zg={}));var $g;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=cr.MessageDirection.serverToClient,e.type=new cr.ProtocolRequestType0(e.method)})($g||(et.DiagnosticRefreshRequest=$g={}))});var em=S(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.DidCloseNotebookDocumentNotification=fe.DidSaveNotebookDocumentNotification=fe.DidChangeNotebookDocumentNotification=fe.NotebookCellArrayChange=fe.DidOpenNotebookDocumentNotification=fe.NotebookDocumentSyncRegistrationType=fe.NotebookDocument=fe.NotebookCell=fe.ExecutionSummary=fe.NotebookCellKind=void 0;var Vr=(ko(),ci(wo)),ut=Ao(),Ct=se(),Ju;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Ju||(fe.NotebookCellKind=Ju={}));var Xu;(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 ut.objectLiteral(o)&&Vr.uinteger.is(o.executionOrder)&&(o.success===void 0||ut.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})(Xu||(fe.ExecutionSummary=Xu={}));var Ho;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ut.objectLiteral(s)&&Ju.is(s.kind)&&Vr.DocumentUri.is(s.document)&&(s.metadata===void 0||ut.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)&&!Xu.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(ut.objectLiteral(o)&&ut.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}})(Ho||(fe.NotebookCell=Ho={}));var Kg;(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 ut.objectLiteral(i)&&ut.string(i.uri)&&Vr.integer.is(i.version)&&ut.typedArray(i.cells,Ho.is)}e.is=n})(Kg||(fe.NotebookDocument=Kg={}));var ur;(function(e){e.method="notebookDocument/sync",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.RegistrationType(e.method)})(ur||(fe.NotebookDocumentSyncRegistrationType=ur={}));var Gg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Gg||(fe.DidOpenNotebookDocumentNotification=Gg={}));var Qg;(function(e){function t(r){let i=r;return ut.objectLiteral(i)&&Vr.uinteger.is(i.start)&&Vr.uinteger.is(i.deleteCount)&&(i.cells===void 0||ut.typedArray(i.cells,Ho.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})(Qg||(fe.NotebookCellArrayChange=Qg={}));var Jg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Jg||(fe.DidChangeNotebookDocumentNotification=Jg={}));var Xg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Xg||(fe.DidSaveNotebookDocumentNotification=Xg={}));var Zg;(function(e){e.method="notebookDocument/didClose",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Zg||(fe.DidCloseNotebookDocumentNotification=Zg={}))});var rm=S(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.InlineCompletionRequest=void 0;var tm=se(),nm;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=tm.MessageDirection.clientToServer,e.type=new tm.ProtocolRequestType(e.method)})(nm||(zo.InlineCompletionRequest=nm={}))});var hh=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(),im=(ko(),ci(wo)),Te=Ao(),O_=kf();Object.defineProperty(u,"ImplementationRequest",{enumerable:!0,get:function(){return O_.ImplementationRequest}});var q_=qf();Object.defineProperty(u,"TypeDefinitionRequest",{enumerable:!0,get:function(){return q_.TypeDefinitionRequest}});var dh=jf();Object.defineProperty(u,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return dh.WorkspaceFoldersRequest}});Object.defineProperty(u,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return dh.DidChangeWorkspaceFoldersNotification}});var E_=Ff();Object.defineProperty(u,"ConfigurationRequest",{enumerable:!0,get:function(){return E_.ConfigurationRequest}});var fh=Wf();Object.defineProperty(u,"DocumentColorRequest",{enumerable:!0,get:function(){return fh.DocumentColorRequest}});Object.defineProperty(u,"ColorPresentationRequest",{enumerable:!0,get:function(){return fh.ColorPresentationRequest}});var gh=zf();Object.defineProperty(u,"FoldingRangeRequest",{enumerable:!0,get:function(){return gh.FoldingRangeRequest}});Object.defineProperty(u,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return gh.FoldingRangeRefreshRequest}});var N_=Vf();Object.defineProperty(u,"DeclarationRequest",{enumerable:!0,get:function(){return N_.DeclarationRequest}});var j_=Qf();Object.defineProperty(u,"SelectionRangeRequest",{enumerable:!0,get:function(){return j_.SelectionRangeRequest}});var rl=eg();Object.defineProperty(u,"WorkDoneProgress",{enumerable:!0,get:function(){return rl.WorkDoneProgress}});Object.defineProperty(u,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return rl.WorkDoneProgressCreateRequest}});Object.defineProperty(u,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return rl.WorkDoneProgressCancelNotification}});var il=ig();Object.defineProperty(u,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return il.CallHierarchyIncomingCallsRequest}});Object.defineProperty(u,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return il.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(u,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return il.CallHierarchyPrepareRequest}});var lr=lg();Object.defineProperty(u,"TokenFormat",{enumerable:!0,get:function(){return lr.TokenFormat}});Object.defineProperty(u,"SemanticTokensRequest",{enumerable:!0,get:function(){return lr.SemanticTokensRequest}});Object.defineProperty(u,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return lr.SemanticTokensDeltaRequest}});Object.defineProperty(u,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return lr.SemanticTokensRangeRequest}});Object.defineProperty(u,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return lr.SemanticTokensRefreshRequest}});Object.defineProperty(u,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return lr.SemanticTokensRegistrationType}});var M_=fg();Object.defineProperty(u,"ShowDocumentRequest",{enumerable:!0,get:function(){return M_.ShowDocumentRequest}});var L_=hg();Object.defineProperty(u,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return L_.LinkedEditingRangeRequest}});var vn=Sg();Object.defineProperty(u,"FileOperationPatternKind",{enumerable:!0,get:function(){return vn.FileOperationPatternKind}});Object.defineProperty(u,"DidCreateFilesNotification",{enumerable:!0,get:function(){return vn.DidCreateFilesNotification}});Object.defineProperty(u,"WillCreateFilesRequest",{enumerable:!0,get:function(){return vn.WillCreateFilesRequest}});Object.defineProperty(u,"DidRenameFilesNotification",{enumerable:!0,get:function(){return vn.DidRenameFilesNotification}});Object.defineProperty(u,"WillRenameFilesRequest",{enumerable:!0,get:function(){return vn.WillRenameFilesRequest}});Object.defineProperty(u,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return vn.DidDeleteFilesNotification}});Object.defineProperty(u,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return vn.WillDeleteFilesRequest}});var ol=kg();Object.defineProperty(u,"UniquenessLevel",{enumerable:!0,get:function(){return ol.UniquenessLevel}});Object.defineProperty(u,"MonikerKind",{enumerable:!0,get:function(){return ol.MonikerKind}});Object.defineProperty(u,"MonikerRequest",{enumerable:!0,get:function(){return ol.MonikerRequest}});var sl=Eg();Object.defineProperty(u,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return sl.TypeHierarchyPrepareRequest}});Object.defineProperty(u,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return sl.TypeHierarchySubtypesRequest}});Object.defineProperty(u,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return sl.TypeHierarchySupertypesRequest}});var mh=Mg();Object.defineProperty(u,"InlineValueRequest",{enumerable:!0,get:function(){return mh.InlineValueRequest}});Object.defineProperty(u,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return mh.InlineValueRefreshRequest}});var al=Ug();Object.defineProperty(u,"InlayHintRequest",{enumerable:!0,get:function(){return al.InlayHintRequest}});Object.defineProperty(u,"InlayHintResolveRequest",{enumerable:!0,get:function(){return al.InlayHintResolveRequest}});Object.defineProperty(u,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return al.InlayHintRefreshRequest}});var Kr=Vg();Object.defineProperty(u,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Kr.DiagnosticServerCancellationData}});Object.defineProperty(u,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Kr.DocumentDiagnosticReportKind}});Object.defineProperty(u,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Kr.DocumentDiagnosticRequest}});Object.defineProperty(u,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Kr.WorkspaceDiagnosticRequest}});Object.defineProperty(u,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Kr.DiagnosticRefreshRequest}});var _t=em();Object.defineProperty(u,"NotebookCellKind",{enumerable:!0,get:function(){return _t.NotebookCellKind}});Object.defineProperty(u,"ExecutionSummary",{enumerable:!0,get:function(){return _t.ExecutionSummary}});Object.defineProperty(u,"NotebookCell",{enumerable:!0,get:function(){return _t.NotebookCell}});Object.defineProperty(u,"NotebookDocument",{enumerable:!0,get:function(){return _t.NotebookDocument}});Object.defineProperty(u,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return _t.NotebookDocumentSyncRegistrationType}});Object.defineProperty(u,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return _t.DidOpenNotebookDocumentNotification}});Object.defineProperty(u,"NotebookCellArrayChange",{enumerable:!0,get:function(){return _t.NotebookCellArrayChange}});Object.defineProperty(u,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return _t.DidChangeNotebookDocumentNotification}});Object.defineProperty(u,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return _t.DidSaveNotebookDocumentNotification}});Object.defineProperty(u,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return _t.DidCloseNotebookDocumentNotification}});var F_=rm();Object.defineProperty(u,"InlineCompletionRequest",{enumerable:!0,get:function(){return F_.InlineCompletionRequest}});var Zu;(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})(Zu||(u.TextDocumentFilter=Zu={}));var el;(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})(el||(u.NotebookDocumentFilter=el={}));var tl;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebook)||el.is(r.notebook))&&(r.language===void 0||Te.string(r.language))}e.is=t})(tl||(u.NotebookCellTextDocumentFilter=tl={}));var nl;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Te.string(r)&&!Zu.is(r)&&!tl.is(r))return!1;return!0}e.is=t})(nl||(u.DocumentSelector=nl={}));var om;(function(e){e.method="client/registerCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(om||(u.RegistrationRequest=om={}));var sm;(function(e){e.method="client/unregisterCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(sm||(u.UnregistrationRequest=sm={}));var am;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(am||(u.ResourceOperationKind=am={}));var cm;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(cm||(u.FailureHandlingKind=cm={}));var um;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(um||(u.PositionEncodingKind=um={}));var lm;(function(e){function t(n){let r=n;return r&&Te.string(r.id)&&r.id.length>0}e.hasId=t})(lm||(u.StaticRegistrationOptions=lm={}));var pm;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||nl.is(r.documentSelector))}e.is=t})(pm||(u.TextDocumentRegistrationOptions=pm={}));var dm;(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})(dm||(u.WorkDoneProgressOptions=dm={}));var fm;(function(e){e.method="initialize",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(fm||(u.InitializeRequest=fm={}));var gm;(function(e){e.unknownProtocolVersion=1})(gm||(u.InitializeErrorCodes=gm={}));var mm;(function(e){e.method="initialized",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(mm||(u.InitializedNotification=mm={}));var hm;(function(e){e.method="shutdown",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType0(e.method)})(hm||(u.ShutdownRequest=hm={}));var ym;(function(e){e.method="exit",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType0(e.method)})(ym||(u.ExitNotification=ym={}));var bm;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(bm||(u.DidChangeConfigurationNotification=bm={}));var vm;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(vm||(u.MessageType=vm={}));var xm;(function(e){e.method="window/showMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(xm||(u.ShowMessageNotification=xm={}));var Pm;(function(e){e.method="window/showMessageRequest",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(Pm||(u.ShowMessageRequest=Pm={}));var Cm;(function(e){e.method="window/logMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(Cm||(u.LogMessageNotification=Cm={}));var _m;(function(e){e.method="telemetry/event",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(_m||(u.TelemetryEventNotification=_m={}));var Sm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(Sm||(u.TextDocumentSyncKind=Sm={}));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 Dm;(function(e){function t(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}e.isIncremental=t;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}e.isFull=n})(Dm||(u.TextDocumentContentChangeEvent=Dm={}));var Tm;(function(e){e.method="textDocument/didChange",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Tm||(u.DidChangeTextDocumentNotification=Tm={}));var wm;(function(e){e.method="textDocument/didClose",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(wm||(u.DidCloseTextDocumentNotification=wm={}));var km;(function(e){e.method="textDocument/didSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(km||(u.DidSaveTextDocumentNotification=km={}));var Am;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(Am||(u.TextDocumentSaveReason=Am={}));var Om;(function(e){e.method="textDocument/willSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Om||(u.WillSaveTextDocumentNotification=Om={}));var qm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(qm||(u.WillSaveTextDocumentWaitUntilRequest=qm={}));var Em;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Em||(u.DidChangeWatchedFilesNotification=Em={}));var Nm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(Nm||(u.FileChangeType=Nm={}));var jm;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(im.URI.is(r.baseUri)||im.WorkspaceFolder.is(r.baseUri))&&Te.string(r.pattern)}e.is=t})(jm||(u.RelativePattern=jm={}));var Mm;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Mm||(u.WatchKind=Mm={}));var Lm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(Lm||(u.PublishDiagnosticsNotification=Lm={}));var Fm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Fm||(u.CompletionTriggerKind=Fm={}));var Im;(function(e){e.method="textDocument/completion",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Im||(u.CompletionRequest=Im={}));var Um;(function(e){e.method="completionItem/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Um||(u.CompletionResolveRequest=Um={}));var Wm;(function(e){e.method="textDocument/hover",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Wm||(u.HoverRequest=Wm={}));var Bm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Bm||(u.SignatureHelpTriggerKind=Bm={}));var Hm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Hm||(u.SignatureHelpRequest=Hm={}));var zm;(function(e){e.method="textDocument/definition",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(zm||(u.DefinitionRequest=zm={}));var $m;(function(e){e.method="textDocument/references",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})($m||(u.ReferencesRequest=$m={}));var Ym;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Ym||(u.DocumentHighlightRequest=Ym={}));var Vm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Vm||(u.DocumentSymbolRequest=Vm={}));var Km;(function(e){e.method="textDocument/codeAction",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Km||(u.CodeActionRequest=Km={}));var Gm;(function(e){e.method="codeAction/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Gm||(u.CodeActionResolveRequest=Gm={}));var Qm;(function(e){e.method="workspace/symbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Qm||(u.WorkspaceSymbolRequest=Qm={}));var Jm;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Jm||(u.WorkspaceSymbolResolveRequest=Jm={}));var Xm;(function(e){e.method="textDocument/codeLens",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Xm||(u.CodeLensRequest=Xm={}));var Zm;(function(e){e.method="codeLens/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Zm||(u.CodeLensResolveRequest=Zm={}));var eh;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType0(e.method)})(eh||(u.CodeLensRefreshRequest=eh={}));var th;(function(e){e.method="textDocument/documentLink",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(th||(u.DocumentLinkRequest=th={}));var nh;(function(e){e.method="documentLink/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(nh||(u.DocumentLinkResolveRequest=nh={}));var rh;(function(e){e.method="textDocument/formatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(rh||(u.DocumentFormattingRequest=rh={}));var ih;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(ih||(u.DocumentRangeFormattingRequest=ih={}));var oh;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(oh||(u.DocumentRangesFormattingRequest=oh={}));var sh;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(sh||(u.DocumentOnTypeFormattingRequest=sh={}));var ah;(function(e){e.Identifier=1})(ah||(u.PrepareSupportDefaultBehavior=ah={}));var ch;(function(e){e.method="textDocument/rename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(ch||(u.RenameRequest=ch={}));var uh;(function(e){e.method="textDocument/prepareRename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(uh||(u.PrepareRenameRequest=uh={}));var lh;(function(e){e.method="workspace/executeCommand",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(lh||(u.ExecuteCommandRequest=lh={}));var ph;(function(e){e.method="workspace/applyEdit",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType("workspace/applyEdit")})(ph||(u.ApplyWorkspaceEditRequest=ph={}))});var bh=S($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.createProtocolConnection=void 0;var yh=hn();function I_(e,t,n,r){return yh.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,yh.createMessageConnection)(e,t,n,r)}$o.createProtocolConnection=I_});var xh=S($e=>{"use strict";var U_=$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]})),Yo=$e&&$e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&U_(t,e,n)};Object.defineProperty($e,"__esModule",{value:!0});$e.LSPErrorCodes=$e.createProtocolConnection=void 0;Yo(hn(),$e);Yo((ko(),ci(wo)),$e);Yo(se(),$e);Yo(hh(),$e);var W_=bh();Object.defineProperty($e,"createProtocolConnection",{enumerable:!0,get:function(){return W_.createProtocolConnection}});var vh;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(vh||($e.LSPErrorCodes=vh={}))});var be=S(St=>{"use strict";var B_=St&&St.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Ph=St&&St.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&B_(t,e,n)};Object.defineProperty(St,"__esModule",{value:!0});St.createProtocolConnection=void 0;var H_=Hc();Ph(Hc(),St);Ph(xh(),St);function z_(e,t,n,r){return(0,H_.createMessageConnection)(e,t,n,r)}St.createProtocolConnection=z_});var ul=S(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.SemanticTokensBuilder=Jt.SemanticTokensDiff=Jt.SemanticTokensFeature=void 0;var Vo=be(),$_=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(Vo.SemanticTokensRefreshRequest.type),on:t=>{let n=Vo.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=Vo.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=Vo.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Jt.SemanticTokensFeature=$_;var Ko=class{constructor(t,n){this.originalSequence=t,this.modifiedSequence=n}computeDiff(){let t=this.originalSequence.length,n=this.modifiedSequence.length,r=0;for(;r<n&&r<t&&this.originalSequence[r]===this.modifiedSequence[r];)r++;if(r<n&&r<t){let i=t-1,o=n-1;for(;i>=r&&o>=r&&this.originalSequence[i]===this.modifiedSequence[o];)i--,o--;(i<r||o<r)&&(i++,o++);let s=i-r+1,a=this.modifiedSequence.slice(r,o+1);return a.length===1&&a[0]===this.originalSequence[i]?[{start:r,deleteCount:s-1}]:[{start:r,deleteCount:s,data:a}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<t?[{start:r,deleteCount:t-r}]:[]}};Jt.SemanticTokensDiff=Ko;var cl=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(t,n,r,i,o){let s=t,a=n;this._dataLen>0&&(s-=this._prevLine,s===0&&(a-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=o,this._prevLine=t,this._prevChar=n}get id(){return this._id.toString()}previousResult(t){this.id===t&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new Ko(this._prevData,this._data).computeDiff()}:this.build()}};Jt.SemanticTokensBuilder=cl});var Ch=S(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.InlineCompletionFeature=void 0;var Y_=be(),V_=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(Y_.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Go.InlineCompletionFeature=V_});var pl=S(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.TextDocuments=void 0;var xn=be(),ll=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new xn.Emitter,this._onDidOpen=new xn.Emitter,this._onDidClose=new xn.Emitter,this._onDidSave=new xn.Emitter,this._onWillSave=new xn.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(t){this._willSaveWaitUntil=t}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(t){return this._syncedDocuments.get(t)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(t){t.__textDocumentSync=xn.TextDocumentSyncKind.Incremental;let n=[];return n.push(t.onDidOpenTextDocument(r=>{let i=r.textDocument,o=this._configuration.create(i.uri,i.languageId,i.version,i.text);this._syncedDocuments.set(i.uri,o);let s=Object.freeze({document:o});this._onDidOpen.fire(s),this._onDidChangeContent.fire(s)})),n.push(t.onDidChangeTextDocument(r=>{let i=r.textDocument,o=r.contentChanges;if(o.length===0)return;let{version:s}=i;if(s==null)throw new Error(`Received document change event for ${i.uri} without valid version identifier`);let a=this._syncedDocuments.get(i.uri);a!==void 0&&(a=this._configuration.update(a,o,s),this._syncedDocuments.set(i.uri,a),this._onDidChangeContent.fire(Object.freeze({document:a})))})),n.push(t.onDidCloseTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&(this._syncedDocuments.delete(r.textDocument.uri),this._onDidClose.fire(Object.freeze({document:i})))})),n.push(t.onWillSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onWillSave.fire(Object.freeze({document:i,reason:r.reason}))})),n.push(t.onWillSaveTextDocumentWaitUntil((r,i)=>{let o=this._syncedDocuments.get(r.textDocument.uri);return o!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:o,reason:r.reason}),i):[]})),n.push(t.onDidSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onDidSave.fire(Object.freeze({document:i}))})),xn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Qo.TextDocuments=ll});var fl=S(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.NotebookDocuments=pr.NotebookSyncFeature=void 0;var tt=be(),_h=pl(),K_=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)})}}};pr.NotebookSyncFeature=K_;var Jo=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}};Jo.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var dl=class{constructor(t){t instanceof _h.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new _h.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 Jo,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let l=[],d=[],h=[],v=[];if(c.cells!==void 0){let V=c.cells;if(V.structure!==void 0){let m=V.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),V.structure.didOpen!==void 0)for(let g of V.structure.didOpen)n.openTextDocument({textDocument:g}),l.push(g.uri);if(V.structure.didClose)for(let g of V.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(V.data!==void 0){let m=new Map(V.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let w=m.get(o.cells[g].document);if(w!==void 0){let Y=o.cells.splice(g,1,w);if(h.push({old:Y[0],new:w}),m.delete(w.document),m.size===0)break}}}if(V.textContent!==void 0)for(let m of V.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),v.push(m.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let D=[];for(let V of l)D.push(this.getNotebookCell(V));let F=[];for(let V of d)F.push(this.getNotebookCell(V));let $=[];for(let V of v)$.push(this.getNotebookCell(V));(D.length>0||F.length>0||h.length>0||$.length>0)&&(y.cells={added:D,removed:F,changed:{data:h,textContent:$}}),(y.metadata!==void 0||y.cells!==void 0)&&this._onDidChange.fire(y)})),r.push(t.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(t.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),tt.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};pr.NotebookDocuments=dl});var gl=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 G_(e){return e===!0||e===!1}xe.boolean=G_;function Sh(e){return typeof e=="string"||e instanceof String}xe.string=Sh;function Q_(e){return typeof e=="number"||e instanceof Number}xe.number=Q_;function J_(e){return e instanceof Error}xe.error=J_;function Rh(e){return typeof e=="function"}xe.func=Rh;function Dh(e){return Array.isArray(e)}xe.array=Dh;function X_(e){return Dh(e)&&e.every(t=>Sh(t))}xe.stringArray=X_;function Z_(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=Z_;function e0(e){return e&&Rh(e.then)}xe.thenable=e0});var ml=S(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.generateUuid=nt.parse=nt.isUUID=nt.v4=nt.empty=void 0;var Gr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Qr=class e extends Gr{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(""))}};Qr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Qr._timeHighBits=["8","9","a","b"];nt.empty=new Gr("00000000-0000-0000-0000-000000000000");function Th(){return new Qr}nt.v4=Th;var t0=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function wh(e){return t0.test(e)}nt.isUUID=wh;function n0(e){if(!wh(e))throw new Error("invalid uuid");return new Gr(e)}nt.parse=n0;function r0(){return Th().asHex()}nt.generateUuid=r0});var kh=S(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.attachPartialResult=Zt.ProgressFeature=Zt.attachWorkDone=void 0;var Xt=be(),i0=ml(),Pn=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(Xt.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(Xt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Xt.WorkDoneProgress.type,this._token,{kind:"end"})}};Pn.Instances=new Map;var Xo=class extends Pn{constructor(t,n){super(t,n),this._source=new Xt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Jr=class{constructor(){}begin(){}report(){}done(){}},Zo=class extends Jr{constructor(){super(),this._source=new Xt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function o0(e,t){if(t===void 0||t.workDoneToken===void 0)return new Jr;let n=t.workDoneToken;return delete t.workDoneToken,new Pn(e,n)}Zt.attachWorkDone=o0;var s0=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Xt.WorkDoneProgressCancelNotification.type,n=>{let r=Pn.Instances.get(n.token);(r instanceof Xo||r instanceof Zo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Jr:new Pn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,i0.generateUuid)();return this.connection.sendRequest(Xt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Xo(this.connection,t))}else return Promise.resolve(new Zo)}};Zt.ProgressFeature=s0;var hl;(function(e){e.type=new Xt.ProgressType})(hl||(hl={}));var yl=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(hl.type,this._token,t)}};function a0(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new yl(e,n)}Zt.attachPartialResult=a0});var Ah=S(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.ConfigurationFeature=void 0;var c0=be(),u0=gl(),l0=e=>class extends e{getConfiguration(t){return t?u0.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(c0.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};es.ConfigurationFeature=l0});var Oh=S(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.WorkspaceFoldersFeature=void 0;var ts=be(),p0=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new ts.Emitter,this.connection.onNotification(ts.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}fillServerCapabilities(t){super.fillServerCapabilities(t);let n=t.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(ts.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return!this._notificationIsAutoRegistered&&!this._unregistration&&(this._unregistration=this.connection.client.register(ts.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};ns.WorkspaceFoldersFeature=p0});var qh=S(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.CallHierarchyFeature=void 0;var bl=be(),d0=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(bl.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=bl.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=bl.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};rs.CallHierarchyFeature=d0});var Eh=S(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.ShowDocumentFeature=void 0;var f0=be(),g0=e=>class extends e{showDocument(t){return this.connection.sendRequest(f0.ShowDocumentRequest.type,t)}};is.ShowDocumentFeature=g0});var Nh=S(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.FileOperationsFeature=void 0;var dr=be(),m0=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(dr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(dr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(dr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(dr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(dr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(dr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};os.FileOperationsFeature=m0});var jh=S(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.LinkedEditingRangeFeature=void 0;var h0=be(),y0=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(h0.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};ss.LinkedEditingRangeFeature=y0});var Mh=S(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.TypeHierarchyFeature=void 0;var vl=be(),b0=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(vl.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=vl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=vl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};as.TypeHierarchyFeature=b0});var Fh=S(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.InlineValueFeature=void 0;var Lh=be(),v0=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(Lh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(Lh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};cs.InlineValueFeature=v0});var Uh=S(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.FoldingRangeFeature=void 0;var Ih=be(),x0=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(Ih.FoldingRangeRefreshRequest.type),on:t=>{let n=Ih.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};us.FoldingRangeFeature=x0});var Wh=S(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.InlayHintFeature=void 0;var xl=be(),P0=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(xl.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(xl.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(xl.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};ls.InlayHintFeature=P0});var Bh=S(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.DiagnosticFeature=void 0;var Xr=be(),C0=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Xr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Xr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Xr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Xr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Xr.WorkspaceDiagnosticRequest.partialResult,n)))}}};ps.DiagnosticFeature=C0});var Hh=S(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.MonikerFeature=void 0;var _0=be(),S0=e=>class extends e{get moniker(){return{on:t=>{let n=_0.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};ds.MonikerFeature=S0});var iy=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=be(),rt=gl(),Cl=ml(),B=kh(),R0=Ah(),D0=Oh(),T0=qh(),w0=ul(),k0=Eh(),A0=Nh(),O0=jh(),q0=Mh(),E0=Fh(),N0=Uh(),j0=Wh(),M0=Bh(),L0=fl(),F0=Hh();function Pl(e){if(e!==null)return e}var _l=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=_l;var fs=class{constructor(){}rawAttach(t){this._rawConnection=t}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(t){}initialize(t){}error(t){this.send(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")})}},Sl=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(Pl)}showWarningMessage(t,...n){let r={type:O.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(Pl)}showInformationMessage(t,...n){let r={type:O.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(Pl)}},zh=(0,k0.ShowDocumentFeature)((0,B.ProgressFeature)(Sl)),$h;(function(e){function t(){return new gs}e.create=t})($h||(Q.BulkRegistration=$h={}));var gs=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}}},Yh;(function(e){function t(){return new Zr(void 0,[])}e.create=t})(Yh||(Q.BulkUnregistration=Yh={}));var Zr=class{constructor(t,n){this._connection=t,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(t){this._connection=t}add(t){this._unregistrations.set(t.method,t)}dispose(){let t=[];for(let r of this._unregistrations.values())t.push(r);let n={unregisterations:t};this._connection.sendRequest(O.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=rt.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(O.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},ms=class{attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}register(t,n,r){return t instanceof gs?this.registerMany(t):t instanceof Zr?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 Zr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},Rl=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}applyEdit(t){function n(i){return i&&!!i.edit}let r=n(t)?t:{edit:t};return this.connection.sendRequest(O.ApplyWorkspaceEditRequest.type,r)}},Vh=(0,A0.FileOperationsFeature)((0,D0.WorkspaceFoldersFeature)((0,R0.ConfigurationFeature)(Rl))),hs=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(()=>{})}},ys=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}logEvent(t){this.connection.sendNotification(O.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},bs=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._LanguagesImpl=bs;var Kh=(0,N0.FoldingRangeFeature)((0,F0.MonikerFeature)((0,M0.DiagnosticFeature)((0,j0.InlayHintFeature)((0,E0.InlineValueFeature)((0,q0.TypeHierarchyFeature)((0,O0.LinkedEditingRangeFeature)((0,w0.SemanticTokensFeature)((0,T0.CallHierarchyFeature)(bs))))))))),vs=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._NotebooksImpl=vs;var Gh=(0,L0.NotebookSyncFeature)(vs);function Qh(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=Qh;function Jh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=Jh;function Xh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Xh;function Zh(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Zh;function ey(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=ey;function ty(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=ty;function ny(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=ny;function ry(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=ry;function I0(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Qh),tracer:n(e.tracer,t.tracer,Xh),telemetry:n(e.telemetry,t.telemetry,Jh),client:n(e.client,t.client,Zh),window:n(e.window,t.window,ey),workspace:n(e.workspace,t.workspace,ty),languages:n(e.languages,t.languages,ny),notebooks:n(e.notebooks,t.notebooks,ry)}}Q.combineFeatures=I0;function U0(e,t,n){let r=n&&n.console?new(n.console(fs)):new fs,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(hs)):new hs,s=n&&n.telemetry?new(n.telemetry(ys)):new ys,a=n&&n.client?new(n.client(ms)):new ms,c=n&&n.window?new(n.window(zh)):new zh,l=n&&n.workspace?new(n.workspace(Vh)):new Vh,d=n&&n.languages?new(n.languages(Kh)):new Kh,h=n&&n.notebooks?new(n.notebooks(Gh)):new Gh,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(Y=>g(Y),Y=>w(Y))}):Promise.resolve(m)}let D,F,$,V={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=>(F=m,{dispose:()=>{F=void 0}}),onInitialized:m=>i.onNotification(O.InitializedNotification.type,m),onShutdown:m=>(D=m,{dispose:()=>{D=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(V);return i.onRequest(O.InitializeRequest.type,m=>{t.initialize(m),rt.string(m.trace)&&(o.trace=O.Trace.fromString(m.trace));for(let g of v)g.initialize(m.capabilities);if(F){let g=F(m,new O.CancellationTokenSource().token,(0,B.attachWorkDone)(i,m),void 0);return y(g).then(w=>{if(w instanceof O.ResponseError)return w;let Y=w;Y||(Y={capabilities:{}});let X=Y.capabilities;X||(X={},Y.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=rt.number(V.__textDocumentSync)?V.__textDocumentSync:O.TextDocumentSyncKind.None:!rt.number(X.textDocumentSync)&&!rt.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=rt.number(V.__textDocumentSync)?V.__textDocumentSync:O.TextDocumentSyncKind.None);for(let it of v)it.fillServerCapabilities(X);return Y})}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,D)return D(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)}),V}Q.createConnection=U0});var Dl=S(Me=>{"use strict";var W0=Me&&Me.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),sy=Me&&Me.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&W0(t,e,n)};Object.defineProperty(Me,"__esModule",{value:!0});Me.ProposedFeatures=Me.NotebookDocuments=Me.TextDocuments=Me.SemanticTokensBuilder=void 0;var B0=ul();Object.defineProperty(Me,"SemanticTokensBuilder",{enumerable:!0,get:function(){return B0.SemanticTokensBuilder}});var H0=Ch();sy(be(),Me);var z0=pl();Object.defineProperty(Me,"TextDocuments",{enumerable:!0,get:function(){return z0.TextDocuments}});var $0=fl();Object.defineProperty(Me,"NotebookDocuments",{enumerable:!0,get:function(){return $0.NotebookDocuments}});sy(iy(),Me);var oy;(function(e){e.all={__brand:"features",languages:H0.InlineCompletionFeature}})(oy||(Me.ProposedFeatures=oy={}))});var cy=S((Vw,ay)=>{"use strict";ay.exports=be()});var Ps=S(Rt=>{"use strict";var Y0=Rt&&Rt.__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]})),ly=Rt&&Rt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Y0(t,e,n)};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.createConnection=void 0;var xs=Dl();ly(cy(),Rt);ly(Dl(),Rt);var uy=!1,V0={initialize:e=>{},get shutdownReceived(){return uy},set shutdownReceived(e){uy=e},exit:e=>{}};function K0(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),xs.ConnectionStrategy.is(e)||xs.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=l=>(0,xs.createProtocolConnection)(o,s,l,a);return(0,xs.createConnection)(c,V0,i)}Rt.createConnection=K0});var en=S((Gw,py)=>{"use strict";py.exports=Ps()});var Il=S((Bk,Py)=>{"use strict";function Dt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function xy(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 BS(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 mr={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),Dt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=xy(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Dt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=xy(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return Dt(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];Dt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":mr.normalize(t)},relative:function(t,n){if(Dt(t),Dt(n),t===n||(t=mr.resolve(t),n=mr.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,l=o<c?o:c,d=-1,h=0;h<=l;++h){if(h===l){if(c>l){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>l&&(t.charCodeAt(r+h)===47?d=h:h===0&&(d=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(d=h)}var D="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(D.length===0?D+="..":D+="/..");return D.length>0?D+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(Dt(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');Dt(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){Dt(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 BS("/",t)},parse:function(t){Dt(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};mr.posix=mr;Py.exports=mr});import{createConfig as kd,loadConfig as Bx,DEFAULT_CONFIG as Hx}from"@redocly/openapi-core";var zl;(()=>{"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 N(P,_){for(var R,E="",M=0,q=-1,z=0,K=0;K<=P.length;++K){if(K<P.length)R=P.charCodeAt(K);else{if(R===47)break;R=47}if(R===47){if(!(q===K-1||z===1))if(q!==K-1&&z===2){if(E.length<2||M!==2||E.charCodeAt(E.length-1)!==46||E.charCodeAt(E.length-2)!==46){if(E.length>2){var _e=E.lastIndexOf("/");if(_e!==E.length-1){_e===-1?(E="",M=0):M=(E=E.slice(0,_e)).length-1-E.lastIndexOf("/"),q=K,z=0;continue}}else if(E.length===2||E.length===1){E="",M=0,q=K,z=0;continue}}_&&(E.length>0?E+="/..":E="..",M=2)}else E.length>0?E+="/"+P.slice(q+1,K):E=P.slice(q+1,K),M=K-q-1;q=K,z=0}else R===46&&z!==-1?++z:z=-1}return E}var j={resolve:function(){for(var P,_="",R=!1,E=arguments.length-1;E>=-1&&!R;E--){var M;E>=0?M=arguments[E]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(_=M+"/"+_,R=M.charCodeAt(0)===47)}return _=N(_,!R),R?_.length>0?"/"+_:"/":_.length>0?_:"."},normalize:function(P){if(b(P),P.length===0)return".";var _=P.charCodeAt(0)===47,R=P.charCodeAt(P.length-1)===47;return(P=N(P,!_)).length!==0||_||(P="."),P.length>0&&R&&(P+="/"),_?"/"+P:P},isAbsolute:function(P){return b(P),P.length>0&&P.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var P,_=0;_<arguments.length;++_){var R=arguments[_];b(R),R.length>0&&(P===void 0?P=R:P+="/"+R)}return P===void 0?".":j.normalize(P)},relative:function(P,_){if(b(P),b(_),P===_||(P=j.resolve(P))===(_=j.resolve(_)))return"";for(var R=1;R<P.length&&P.charCodeAt(R)===47;++R);for(var E=P.length,M=E-R,q=1;q<_.length&&_.charCodeAt(q)===47;++q);for(var z=_.length-q,K=M<z?M:z,_e=-1,ee=0;ee<=K;++ee){if(ee===K){if(z>K){if(_.charCodeAt(q+ee)===47)return _.slice(q+ee+1);if(ee===0)return _.slice(q+ee)}else M>K&&(P.charCodeAt(R+ee)===47?_e=ee:ee===0&&(_e=0));break}var ot=P.charCodeAt(R+ee);if(ot!==_.charCodeAt(q+ee))break;ot===47&&(_e=ee)}var on="";for(ee=R+_e+1;ee<=E;++ee)ee!==E&&P.charCodeAt(ee)!==47||(on.length===0?on+="..":on+="/..");return on.length>0?on+_.slice(q+_e):(q+=_e,_.charCodeAt(q)===47&&++q,_.slice(q))},_makeLong:function(P){return P},dirname:function(P){if(b(P),P.length===0)return".";for(var _=P.charCodeAt(0),R=_===47,E=-1,M=!0,q=P.length-1;q>=1;--q)if((_=P.charCodeAt(q))===47){if(!M){E=q;break}}else M=!1;return E===-1?R?"/":".":R&&E===1?"//":P.slice(0,E)},basename:function(P,_){if(_!==void 0&&typeof _!="string")throw new TypeError('"ext" argument must be a string');b(P);var R,E=0,M=-1,q=!0;if(_!==void 0&&_.length>0&&_.length<=P.length){if(_.length===P.length&&_===P)return"";var z=_.length-1,K=-1;for(R=P.length-1;R>=0;--R){var _e=P.charCodeAt(R);if(_e===47){if(!q){E=R+1;break}}else K===-1&&(q=!1,K=R+1),z>=0&&(_e===_.charCodeAt(z)?--z==-1&&(M=R):(z=-1,M=K))}return E===M?M=K:M===-1&&(M=P.length),P.slice(E,M)}for(R=P.length-1;R>=0;--R)if(P.charCodeAt(R)===47){if(!q){E=R+1;break}}else M===-1&&(q=!1,M=R+1);return M===-1?"":P.slice(E,M)},extname:function(P){b(P);for(var _=-1,R=0,E=-1,M=!0,q=0,z=P.length-1;z>=0;--z){var K=P.charCodeAt(z);if(K!==47)E===-1&&(M=!1,E=z+1),K===46?_===-1?_=z:q!==1&&(q=1):_!==-1&&(q=-1);else if(!M){R=z+1;break}}return _===-1||E===-1||q===0||q===1&&_===E-1&&_===R+1?"":P.slice(_,E)},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(_,R){var E=R.dir||R.root,M=R.base||(R.name||"")+(R.ext||"");return E?E===R.root?E+M:E+"/"+M:M})(0,P)},parse:function(P){b(P);var _={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return _;var R,E=P.charCodeAt(0),M=E===47;M?(_.root="/",R=1):R=0;for(var q=-1,z=0,K=-1,_e=!0,ee=P.length-1,ot=0;ee>=R;--ee)if((E=P.charCodeAt(ee))!==47)K===-1&&(_e=!1,K=ee+1),E===46?q===-1?q=ee:ot!==1&&(ot=1):q!==-1&&(ot=-1);else if(!_e){z=ee+1;break}return q===-1||K===-1||ot===0||ot===1&&q===K-1&&q===z+1?K!==-1&&(_.base=_.name=z===0&&M?P.slice(1,K):P.slice(z,K)):(z===0&&M?(_.name=P.slice(1,q),_.base=P.slice(1,K)):(_.name=P.slice(z,q),_.base=P.slice(z,K)),_.ext=P.slice(q,K)),z>0?_.dir=P.slice(0,z-1):M&&(_.dir="/"),_},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var N=t[k]={exports:{}};return e[k](N,N.exports,n),N.exports}n.d=(k,b)=>{for(var N in b)n.o(b,N)&&!n.o(k,N)&&Object.defineProperty(k,N,{enumerable:!0,get:b[N]})},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:()=>_n}),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,N,j,P,_,R=!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(E,M){return E||M?E:"file"})(b,R),this.authority=N||l,this.path=(function(E,M){switch(E){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=_||l,c(this,R))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:N,authority:j,path:P,query:_,fragment:R}=b;return N===void 0?N=this.scheme:N===null&&(N=l),j===void 0?j=this.authority:j===null&&(j=l),P===void 0?P=this.path:P===null&&(P=l),_===void 0?_=this.query:_===null&&(_=l),R===void 0?R=this.fragment:R===null&&(R=l),N===this.scheme&&j===this.authority&&P===this.path&&_===this.query&&R===this.fragment?this:new D(N,j,P,_,R)}static parse(b,N=!1){let j=h.exec(b);return j?new D(j[2]||l,X(j[4]||l),X(j[5]||l),X(j[7]||l),X(j[9]||l),N):new D(l,l,l,l,l)}static file(b){let N=l;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let j=b.indexOf(d,2);j===-1?(N=b.substring(2),b=d):(N=b.substring(2,j),b=b.substring(j)||d)}return new D("file",N,b,l,l)}static from(b){let N=new D(b.scheme,b.authority,b.path,b.query,b.fragment);return c(N,!0),N}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let N=new D(b);return N._formatted=b.external,N._fsPath=b._sep===y?b.fsPath:null,N}}return b}}let y=i?1:void 0;class D extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=m(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let F={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function $(k,b,N){let j,P=-1;for(let _=0;_<k.length;_++){let R=k.charCodeAt(_);if(R>=97&&R<=122||R>=65&&R<=90||R>=48&&R<=57||R===45||R===46||R===95||R===126||b&&R===47||N&&R===91||N&&R===93||N&&R===58)P!==-1&&(j+=encodeURIComponent(k.substring(P,_)),P=-1),j!==void 0&&(j+=k.charAt(_));else{j===void 0&&(j=k.substr(0,_));let E=F[R];E!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,_)),P=-1),j+=E):P===-1&&(P=_)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function V(k){let b;for(let N=0;N<k.length;N++){let j=k.charCodeAt(N);j===35||j===63?(b===void 0&&(b=k.substr(0,N)),b+=F[j]):b!==void 0&&(b+=k[N])}return b!==void 0?b:k}function m(k,b){let N;return N=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&&(N=N.replace(/\//g,"\\")),N}function g(k,b){let N=b?V:$,j="",{scheme:P,authority:_,path:R,query:E,fragment:M}=k;if(P&&(j+=P,j+=":"),(_||P==="file")&&(j+=d,j+=d),_){let q=_.indexOf("@");if(q!==-1){let z=_.substr(0,q);_=_.substr(q+1),q=z.lastIndexOf(":"),q===-1?j+=N(z,!1,!1):(j+=N(z.substr(0,q),!1,!1),j+=":",j+=N(z.substr(q+1),!1,!0)),j+="@"}_=_.toLowerCase(),q=_.lastIndexOf(":"),q===-1?j+=N(_,!1,!0):(j+=N(_.substr(0,q),!1,!0),j+=_.substr(q))}if(R){if(R.length>=3&&R.charCodeAt(0)===47&&R.charCodeAt(2)===58){let q=R.charCodeAt(1);q>=65&&q<=90&&(R=`/${String.fromCharCode(q+32)}:${R.substr(3)}`)}else if(R.length>=2&&R.charCodeAt(1)===58){let q=R.charCodeAt(0);q>=65&&q<=90&&(R=`${String.fromCharCode(q+32)}:${R.substr(2)}`)}j+=N(R,!0,!1)}return E&&(j+="?",j+=N(E,!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 Y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(Y)?k.replace(Y,(b=>w(b))):k}var it=n(975);let Nt=it.posix||it,rn="/";var _n;(function(k){k.joinPath=function(b,...N){return b.with({path:Nt.join(b.path,...N)})},k.resolvePath=function(b,...N){let j=b.path,P=!1;j[0]!==rn&&(j=rn+j,P=!0);let _=Nt.resolve(j,...N);return P&&_[0]===rn&&!b.authority&&(_=_.substring(1)),b.with({path:_})},k.dirname=function(b){if(b.path.length===0||b.path===rn)return b;let N=Nt.dirname(b.path);return N.length===1&&N.charCodeAt(0)===46&&(N=""),b.with({path:N})},k.basename=function(b){return Nt.basename(b.path)},k.extname=function(b){return Nt.extname(b.path)}})(_n||(_n={})),zl=r})();var{URI:Mt,Utils:ne}=zl;import{CONFIG_FILE_NAME as nb}from"@redocly/openapi-core";var Is={languageId:"yaml",filePattern:/\.ya?ml$/i},Us={languageId:"json",filePattern:/\.json$/i},Fs=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Is,Us];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ne.resolvePath(ne.dirname(Se(t)),nb);return await this._fs.exists(n)?n.toString():void 0}catch{return}}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}registerRemoteScorecardAndPlugins(t){this._remoteScorecardAndPlugins=t}get remoteScorecardAndPlugins(){return this._remoteScorecardAndPlugins}get fs(){if(!this._fs)throw new Error("FileSystemProvider not registered.");return this._fs}get documents(){if(!this._documentManager)throw new Error("DocumentsProvider not registered.");return this._documentManager}get findConfig(){if(!this._findConfig)throw new Error("ConfigFinder not registered.");return this._findConfig}get getRootWorkspaceFolderURI(){if(!this._getRootWorkspaceFolderURI)throw new Error("RootWorkspaceFolderURIGetter not registered.");return this._getRootWorkspaceFolderURI}setScorecardStatus(t){this._scorecardStatus=t}get scorecardStatus(){return this._scorecardStatus}},pe=new Fs;function Ws(e,t){return ne.resolvePath(Se(e)).toString()===ne.resolvePath(Se(t)).toString()}function Se(e){return Mt.parse(e)}function st(e){return Mt.parse(e).fsPath}function br(e){let t=["https","http"],{scheme:n}=Mt.parse(e);return t.includes(n)}function vr(e){return ne.basename(Se(e))}async function $l(e,t="/"){let n=ne.resolvePath(Se(t));for(;e.path!=="/";)try{(await pe.fs.stat(ne.resolvePath(n,e.path))).isDirectory()||(e=ne.dirname(e));break}catch{e=ne.dirname(e)}return e}import{BaseResolver as Ux,Source as wd,readFileFromUrl as Wx}from"@redocly/openapi-core";var xi=qe(On(),1);import{isAbsoluteUrl as Fx}from"@redocly/openapi-core";function yd(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(l){let d=i.get(l.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(l.uri,setTimeout(()=>a(l),t-h));else if(r.delete(l.uri),i.delete(l.uri),!n){let v=s.get(l.uri),y=e(o.get(l.uri));v&&v.forEach(({resolve:D})=>D(y)),s.delete(l.uri)}}catch(v){let y=s.get(l.uri);y&&y.forEach(({reject:D})=>D(v)),s.delete(l.uri)}}function c(l){let d=r.get(l.uri),h=n&&!d;return i.set(l.uri,Date.now()),o.set(l.uri,l),new Promise((v,y)=>{let D=s.get(l.uri)||[];d||(s.set(l.uri,[...D,{resolve:v,reject:y}]),r.set(l.uri,setTimeout(()=>a(l),t))),h?v(e(o.get(l.uri))):s.set(l.uri,[...D,{resolve:v,reject:y}])})}return c}function ma(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 bd(e){return e==="$ref"}async function ha(e,t){let n=Mt.parse(t);return ne.joinPath(n,e).toString()}async function vd(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await ha(i,n)===t)return r}function xd(e){return typeof e=="string"}function Sr(e){return typeof e=="function"}function Pd(e){return e?.kind===xi.Kind.MAP}function ya(e){return e?.kind===xi.Kind.MAPPING}function ba(e){return e?.kind===xi.Kind.SEQ}function Rr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}function va(e){return Fx(e)||e.startsWith("file://")}var Pi=class e{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(e.isIncremental(r)){let i=Sd(r.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),c=Math.max(i.end.line,0),l=this._lineOffsets,d=Cd(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=Cd(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&&_d(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}},Ci;(function(e){function t(i,o,s,a){return new Pi(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof Pi)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,o){let s=i.getText(),a=xa(o.map(Ix),(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})(Ci||(Ci={}));function xa(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);xa(r,t),xa(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 Cd(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);_d(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function _d(e){return e===13||e===10}function Sd(e){let t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Ix(e){let t=Sd(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var _i=qe(On(),1),Rd=new Map;function Dd(e,t){return Rd.set(e,t)}function Td(e){let t=[];for(let[n,r]of Rd.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Ve(e){let t=pe.documents.get(e);if(t)return t;let n=await pe.fs.readFile(Se(e),"utf-8");return Ci.create(e,"yaml",1,n)}function Dr(e){return Us.filePattern.test(e)}function Si(e){return Is.filePattern.test(e)}function pn({uri:e,ast:t,textDocument:n}){if(!(Si(e)&&/entit(y|ies)\.ya?ml$/i.test(e)))return!1;if(n){let i=n.getText();t=_i.safeLoad(i,{filename:e})}if(t?.kind===_i.Kind.MAP){let i=["openapi","swagger","asyncapi","arazzo"];for(let o of t.mappings){let s=o.key?.value;if(i.includes(s))return!1}}return!0}var mt=class extends Ux{resolveExternalRef(t,n){return va(n)?n:t&&va(t)?new URL(n,t).href:t?ne.resolvePath(ne.dirname(Se(t)),n).toString():n}async loadExternalRef(t){if(br(t)){let{body:n,mimeType:r}=await Wx(t,{...this.config.http,customFetch:fetch});return new wd(t,n,r)}return new wd(t,(await Ve(t)).getText())}};var kt;async function Ri(e,t){try{let n=new mt,r=e?await pe.findConfig(e):void 0;if(r===void 0)return kt=await kd(Hx),kt;kt=await Bx({configPath:r,externalRefResolver:n})}catch(n){t?.createEventHandleLoadConfigError?.(n?.message),kt=await kd({})}return kt}async function qn(e){return kt||await Ri(e)}async function dn(e){return await Pa(e)?!0:!!kt?.resolvedRefMap&&[...kt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Ws(vr(e),n))}async function Pa(e){let t=await pe.findConfig(e);return t?Ws(e,t):!1}var Ad={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Tr={type:"object",properties:Ad,additionalProperties:!1},zx={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Ut={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},Ad),{like:Tr,dislike:Tr,satisfied:Tr,neutral:Tr,dissatisfied:Tr}),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:zx},additionalProperties:!1}},additionalProperties:!1};var $x={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},Ca={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Di={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Ut,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Ca,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:$x,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1};var En={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Yx={type:"object",properties:{name:{type:"string"},items:En,queries:En,mutations:En,subscriptions:En,types:En,directives:En},required:["name"],additionalProperties:!1},Vx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Yx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},Kx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},Gx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},Qx={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Kx,license:Gx},additionalProperties:!1},Nn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Vx.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:Ca,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Ut,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},info:Qx},additionalProperties:!1};var Jx={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Xx={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"}}},Od={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Zx={type:"object",properties:{beforeInfo:{type:"array",items:Od},end:{type:"array",items:Od}}},fn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Ti={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},eP={type:"object",properties:Oi(fn.properties,["light","dark"])},tP={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"}}},nP={type:"object",properties:{error:Ti,info:Ti,redirect:Ti,success:Ti}},rP={type:"object",properties:jn(fn.properties,["dark"])},iP={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},oP={type:"object",properties:{accent:fn,border:eP,error:fn,http:tP,primary:fn,responses:nP,secondary:rP,success:fn,text:iP,tonalOffset:{type:"number"},warning:fn}},wi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},sP={type:"object",properties:{small:wi,medium:wi,large:wi,xlarge:wi}},ht={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},aP={type:"object",properties:Object.assign(Object.assign({},jn(ht.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:sP})},qd={type:"object",properties:Oi(ht.properties,["fontSize","lineHeight"])},cP={type:"object",properties:{medium:qd,small:qd}},uP={type:"object",properties:Object.assign(Object.assign({},jn(ht.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:cP})},lP={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},pP={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},Ed={type:"object",properties:{fullWidth:{type:"boolean"}}},dP={type:"object",properties:{buttons:aP,httpBadges:uP,layoutControls:lP,panels:pP,tryItButton:Ed,tryItSendButton:Ed}},Ai={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},fP={type:"object",properties:{maxWidth:Ai}},gP={type:"object",properties:{maxWidth:Ai,middlePanelMaxWidth:Ai}},mP={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:fP,"three-panel":gP}},Nd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},hP={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:Nd,defaultDetailsWidth:{type:"string"},examples:Nd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Md={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},yP={type:"object",properties:Oi(Md.properties,["textTransform"])},bP={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},vP={type:"object",properties:Object.assign(Object.assign({},jn(ht.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:Md,level1items:yP,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:bP,textColor:{type:"string"},width:{type:"string"}})},ki={type:"object",properties:Object.assign(Object.assign({},ht.properties),{color:{type:"string"},transform:{type:"string"}})},xP={type:"object",properties:Object.assign(Object.assign({},ht.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"}})},PP={type:"object",properties:jn(ht.properties,["fontSize"])},CP={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},_P={type:"object",properties:Object.assign(Object.assign({code:xP,fieldName:ht},Oi(ht.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:ki,heading2:ki,heading3:ki,headings:PP,lineHeight:{type:"string"},links:CP,optimizeSpeed:{type:"boolean"},rightPanelHeading:ki,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},SP={type:"object",properties:Object.assign({color:{type:"string"}},jn(ht.properties,["fontWeight"]))},RP={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:SP}},DP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},TP={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},jd={type:"object",properties:{custom:{type:"string"}}},wP={type:"object",properties:{DownloadButton:jd,NextSectionButton:jd}},kP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},AP={type:"object",properties:{borderRadius:{type:"string"}}},OP={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},qP={type:"object",properties:{breakpoints:Ai,codeBlock:RP,colors:oP,components:dP,layout:mP,logo:DP,fab:TP,overrides:wP,rightPanel:kP,schema:hP,shape:AP,sidebar:vP,spacing:OP,typography:_P,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},EP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Jx}},required:["languages"]},Ld={type:"object",properties:{theme:qP,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:EP,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:Xx,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:Zx,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 Oi(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function jn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var yt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}};var wr={rules:yt,oas2Rules:yt,oas3_0Rules:yt,oas3_1Rules:yt,oas3_2Rules:yt,async2Rules:yt,async3Rules:yt,arazzo1Rules:yt,overlay1Rules:yt,openrpc1Rules:yt};var bt={type:"object",additionalProperties:!0},kr={preprocessors:bt,oas2Preprocessors:bt,oas3_0Preprocessors:bt,oas3_1Preprocessors:bt,oas3_2Preprocessors:bt,async2Preprocessors:bt,async3Preprocessors:bt,arazzo1Preprocessors:bt,overlay1Preprocessors:bt,openrpc1Preprocessors:bt},vt={type:"object",additionalProperties:!0};var Ar={decorators:vt,oas2Decorators:vt,oas3_0Decorators:vt,oas3_1Decorators:vt,oas3_2Decorators:vt,async2Decorators:vt,async3Decorators:vt,arazzo1Decorators:vt,overlay1Decorators:vt,openrpc1Decorators:vt};var De={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Fd={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},_a={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},Sa={type:"array",items:Object.assign(Object.assign({},_a),{properties:Object.assign(Object.assign({},_a.properties),{items:{type:"array",items:_a}})})},NP={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},jP={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},MP={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}},LP={type:"object",properties:Object.assign({facets:MP},De.properties),additionalProperties:!1},FP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},qi={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Ei={type:"object",properties:Object.assign({items:Sa},De.properties),additionalProperties:!1},Ni={type:"object",additionalProperties:NP},ji={type:"object",properties:Object.assign({items:Sa,copyrightText:{type:"string"},logo:De},De.properties),additionalProperties:!1},Mi={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},De.properties),additionalProperties:!1},Li={type:"object",properties:{head:{type:"array",items:Fd},body:{type:"array",items:Fd}},additionalProperties:!1},Fi={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},Ii={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:jP,filters:LP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:FP}},De.properties),additionalProperties:!1},Ui={type:"object",properties:{hide:{type:"boolean"},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean",default:!1},inputType:{type:"string",enum:["button","icon"],default:"button"},inputIcon:{type:"string",enum:["chat","sparkles","redocly"],default:"sparkles"}},additionalProperties:!1}},additionalProperties:!1},Wi={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},De.properties),additionalProperties:!1},IP={type:"object",properties:Object.assign(Object.assign({},De.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]},default:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}),additionalProperties:!1},Bi={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},De.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},De.properties),additionalProperties:!1,default:{}},actions:IP},additionalProperties:!1},Hi={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},De.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},De.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},De.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},De.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},zi={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["**/_partials/**"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},De.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},De.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},De.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},Mn=Object.assign(Object.assign({},Di),{properties:Object.assign(Object.assign({},Di.properties),Ld.properties)}),UP={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},WP={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"]},BP={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},HP={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},zP={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"]},$P={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},YP={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"]},Ra={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"]},VP={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:Ra}},additionalProperties:!1,required:["trackingId"]},$i={type:"object",properties:{adobe:UP,amplitude:WP,fullstory:BP,heap:HP,rudderstack:zP,segment:$P,gtm:YP,ga:VP}},Yi={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},De.properties),additionalProperties:!1},Vi={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Ki={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},KP={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"}}}},GP={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:KP},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:Sa,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Ln={type:"object",patternProperties:{".*":GP}},Fn={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},wr),kr),Ar),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}};var QP={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},JP={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},XP={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},At={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:JP},excludes:{type:"array",items:QP},filters:{type:"array",items:XP},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},ZP={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},eC={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:ZP},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},tC={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:eC,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},nC={type:"object",additionalProperties:tC},Gi={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:nC,catalogs:{type:"object",properties:{all:At,services:At,domains:At,teams:At,users:At,apiDescriptions:At,dataSchemas:At,apiOperations:At},additionalProperties:At}},additionalProperties:!1};var Or={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none","and","or","not"]},Da={type:"object",properties:{field:{type:"string"},operator:Or,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Or,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}}}}}},rC={type:"object",properties:{operator:Or,conditions:{type:"array",items:Da}},required:["operator","conditions"],additionalProperties:!1},Id={type:"array",items:{oneOf:[Da,{type:"object",properties:{operator:Or,conditions:{type:"array",items:{oneOf:[Da,rC]}}},required:["operator","conditions"],additionalProperties:!1}]}},Wd={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{}},additionalProperties:!1},iC={type:"array",items:{type:"object",properties:{subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},assertions:Wd},required:["subject","assertions"],additionalProperties:!1}},oC={type:"object",properties:{title:{type:"string"},subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},severity:{type:"string",enum:["error","warn","off"]},message:{type:"string"},assertions:Wd,where:iC,weight:{type:"number",default:1}},required:["subject","assertions"],additionalProperties:!1},sC={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number",default:1}},additionalProperties:!0},oC]}},aC={type:"object",properties:{name:{type:"string"},extends:{type:"array",items:{type:"string"}},rules:sC},required:["name"],additionalProperties:!1},Ud={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},cC={oneOf:[Ud,{type:"array",items:Ud}]},uC={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[Id,{type:"object",properties:{operator:Or,conditions:Id},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:aC,minItems:1},trigger:cC},required:["name","key","entities","levels"],additionalProperties:!1},Qi={type:"array",items:uC};var Je={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:qi,navbar:Ei,products:Ni,footer:ji,sidebar:Mi,scripts:Li,links:Fi,feedback:Ut,search:Ii,aiAssistant:Ui,colorMode:Wi,navigation:Bi,codeSnippet:Hi,markdown:zi,openapi:Mn,graphql:Nn,analytics:$i,userMenu:Yi,versionPicker:Vi,breadcrumbs:Ki,catalog:Ln,entitiesCatalog:Gi,catalogClassic:Ln,scorecard:Fn,scorecards:Qi,scorecardClassic:Fn},additionalProperties:!0};var wa="https://redocly.com/sso/teams",In;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(In||(In={}));var Un;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(Un||(Un={}));var Ta;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(Ta||(Ta={}));var ka=["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 Ji(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>{if(n!==t)return typeof r!="object"||!r?[n,r]:Array.isArray(r)?[n,r.map(i=>typeof i=="object"?Ji(i,t):i)]:[n,Ji(r,t)]}).filter(Boolean))}var lC={type:"object",additionalProperties:{type:"string"}},pC={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Xi={type:"string",enum:["error","warn","off"]},dC={type:"object",additionalProperties:!1,properties:{schemaCheck:Xi,statusCodeCheck:Xi,contentTypeCheck:Xi,successCriteriaCheck:Xi}},fC={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},gC={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},mC={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Bd={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:[fC,gC]},inputs:lC,servers:pC,severity:dC,slo:mC},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var hC={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},yC={type:"object",properties:{type:{type:"string",const:In.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:hC,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},bC={type:"object",properties:{type:{type:"string",const:In.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:wa},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},vC={oneOf:[yC,bC],discriminator:{propertyName:"type"}},xC={type:"object",additionalProperties:vC},Yd={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},Vd={type:"boolean"},Kd={type:"string",pattern:"^https?://.*"},Gd={type:"string",pattern:"^https?://.*"},PC={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},CC={type:"object",additionalProperties:PC,default:{}},_C={type:"string",enum:["info","success","warning","error"],default:"info"},SC={type:"object",properties:{content:{type:"string"},dismissible:{type:"boolean",default:!1},target:{type:"string"},color:_C},required:["content"],additionalProperties:!1},RC={type:"array",items:SC,default:[]},Oa={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:Mn,graphql:Nn,theme:{type:"object",properties:{openapi:Mn,graphql:Nn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},wr),kr),Ar),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},DC={type:"object",additionalProperties:!0},TC={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Hd={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},zd={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:Hd},default:{llmstxt:Hd.default},additionalProperties:!1},wC={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},gn={type:"object",additionalProperties:{type:"string"}},qa={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:gn,cms:gn,reunite:gn,features:{type:"object",properties:{aiSearch:gn},additionalProperties:!1},content:{type:"object",properties:{"**":gn},additionalProperties:gn}},additionalProperties:gn},kC={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},AC={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},OC={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:[kC,AC]}},additionalProperties:!1,required:["type","apiBaseUrl"]},qC={type:"object",properties:{type:{type:"string",const:Un.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},EC={type:"object",properties:{type:{type:"string",const:Un.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Aa={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[qC,EC],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},NC=Object.assign(Object.assign({},Aa),{properties:Object.assign(Object.assign({},Aa.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),jC={type:"object",oneOf:[Aa,NC,OC],discriminator:{propertyName:"type"}},MC={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:jC}}},$d={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"]},LC={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},FC={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:[]}}},IC={type:"object",properties:{requiresLogin:Vd,logoutReturnUrl:Kd,residency:Gd,sso:Yd,rbac:qa},additionalProperties:!1},qr={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:CC,seo:zd,rbac:qa,apiFunctions:wC,requiresLogin:Vd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:LC}},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:Oa},extends:{type:"array",items:{type:"string"}}},wr),Ar),kr),{ssoDirect:xC,sso:Yd,residency:Gd,logoutReturnUrl:Kd,access:IC,developerOnboarding:MC,removeAttribution:{type:"boolean"},i18n:$d,l10n:$d,metadata:DC,metadataGlobs:TC,ignore:{type:"array",items:{type:"string"}},theme:Je,reunite:Bd,logo:qi,navbar:Ei,products:Ni,footer:ji,sidebar:Mi,scripts:Li,links:Fi,feedback:Ut,search:Ii,aiAssistant:Ui,colorMode:Wi,navigation:Bi,codeSnippet:Hi,markdown:zi,openapi:Mn,graphql:Nn,analytics:$i,userMenu:Yi,versionPicker:Vi,breadcrumbs:Ki,catalog:Ln,entitiesCatalog:Gi,catalogClassic:Ln,scorecard:Fn,scorecards:Qi,scorecardClassic:Fn,mcp:FC,banner:RC}),default:{redirects:{},seo:zd.default},additionalProperties:!0},UC=Object.assign(Object.assign({},Ji(qr,"default")),{additionalProperties:!1}),Ea=Object.assign(Object.assign({$id:"root-redocly-config"},qr),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},qr.properties),{env:{type:"object",additionalProperties:UC}}),default:{},additionalProperties:!1});var Na={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,mockServer:qr.properties.mockServer,analytics:{type:"object",properties:{ga:Ra}}},additionalProperties:!0,default:{}},WC={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},Na.properties),{apis:{type:"object",additionalProperties:Oa},theme:Na}),additionalProperties:!1};var BC={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},HC={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},zC={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},$C={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"}},required:["specType"],additionalProperties:!0};var YC={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},VC={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},KC={type:"object",properties:{type:{type:"string",enum:ka},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Wt={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:YC,links:{type:"array",items:VC},relations:{type:"array",items:KC},metadata:{type:"object",additionalProperties:!0}},Zi={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"user"},metadata:BC}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"api-operation"},metadata:zC}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"data-schema"},metadata:$C}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"api-description"},metadata:HC}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"service"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"domain"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"team"}}),required:["key","title","type"],additionalProperties:!1}]},eo={type:"object",properties:Object.assign({},Wt),required:["key","title","type"],additionalProperties:!1};var Fe=qe(en(),1);import{getLineColLocation as oS,lintDocument as sS,makeDocumentFromString as _s,lintConfig as aS,lintEntityFile as cS,detectSpec as uS,createConfigTypes as lS}from"@redocly/openapi-core";import{bundleDocument as G0,isPlainObject as Q0,makeDocumentFromString as J0,getTypes as X0,detectSpec as Z0}from"@redocly/openapi-core";var dy=new Map,Cs=new Map;function eS(e){return e?Array.from(e).map(([t,n])=>[t,ma(n)]):[]}async function Tl(e,t){let n=await qn(),r=new mt(n.resolve),i=J0(e.getText(),e.uri),{bundle:o,rootType:s,refTypes:a}=await G0({document:i,config:n,externalRefResolver:r,types:X0(Z0(i.parsed))}),c=eS(a);a&&(Cs=new Map([...Cs,...a])),dy.set(e.uri,{uri:e.uri,name:vr(e.uri),definition:Q0(o.parsed)?o.parsed:{},rootType:s,refTypes:c,errors:t})}function tS(){return Array.from(dy).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:vr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function wl(e){return Cs.has(e)?Cs.get(e):null}import{createConfig as nS,lintDocument as rS}from"@redocly/openapi-core";async function fy(e,t,n,r,i){let o=[];for(let s of n?.levels||[]){let a=typeof i=="string"?await iS(i):i,c=await nS({...s,plugins:a},{configPath:r}),l=await rS({document:e,externalRefResolver:t,config:c});o.push(...l.filter(({ignored:d})=>!d).map(d=>({...d,scorecardLevel:s.name})))}return o}async function iS(e){if(!e)return[];try{let t=typeof __dirname>"u"?"":__dirname.replaceAll(/\\/g,"/"),n=e.replaceAll("__redocly_dirname",`"${t}"`);return(await import(`data:text/javascript;base64,${btoa(n)}`)).default.map(a=>a())}catch(t){return console.error("Failed to load plugins module:",t.message),console.error(`
70
- Plugins code preview:`,e.substring(0,500)+"..."),[]}}var pS=800,Al=yd(mS,pS);async function dS(e){let t=e.map(({documentPath:i})=>Se(i).toString()),n=await qn(),r=await pe.getRootWorkspaceFolderURI();for(let{root:i}of Object.values(n.resolvedConfig.apis??{})){let o=await ha(i,r);if(t.includes(o))return o}return t[0]}function fS(e){try{return uS(e),!0}catch{return!1}}async function gS(e){try{let t=_s(e.getText(),e.uri),n=new mt,r=await cS({document:t,entitySchema:Zi,entityDefaultSchema:eo,externalRefResolver:n}),i=[{uri:e.uri,diagnostics:[]}];return kl(r,i),i}catch{return[{uri:e.uri,diagnostics:[]}]}}async function mS(e){let t=e.uri,n=await qn();if(await dn(st(t)))try{let r=await Pa(st(t))?_s(e.getText(),t):_s(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new mt,o=await aS({config:{document:r},externalRefResolver:i,externalConfigTypes:lS(Ea,n)}),s=[{uri:e.uri,diagnostics:[]}];return kl(o,s),s}catch{return[{uri:e.uri,diagnostics:[]}]}else{if(pn({uri:st(t),textDocument:e}))return await gS(e);{let r=Td(t),i=await dS(r||[]);i&&(e=await Ve(i),t=i);let o;try{o=_s(e.getText(),t)}catch{return[{uri:e.uri,diagnostics:[]}]}if(!fS(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new mt(n.resolve),c=await pe.getRootWorkspaceFolderURI(),l=await vd(n.resolvedConfig.apis??{},e.uri,c),d=Date.now(),h=[],v=[];try{v=(await sS({document:o,config:n.forAlias(l),externalRefResolver:a})).filter(({ignored:m})=>!m);let $=pe.remoteScorecardAndPlugins?.scorecard||n.resolvedConfig.scorecardClassic||n.resolvedConfig.scorecard,V=$&&pe.scorecardStatus==="enabled"?await fy(o,a,$,n.configPath,pe.remoteScorecardAndPlugins?.plugins):[];h=[...v,...V]}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=vS(v);Tl(e,y);let D=Date.now()-d;s=[...new Set([e.uri,...[...a.getFiles()].map($=>Se($).toString())])].map($=>({uri:$,diagnostics:[]})),Dd(t,{dependencyPaths:a.getFiles(),durationMS:D}),kl(h,s)}catch(a){hS(e.uri,a,s)}return s}}}function ei(){return pe.documents.all().map(Al)}function hS(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=Fe.Position.create(o,s),c=Fe.Diagnostic.create(Fe.Range.create(a,a),t.message,Fe.DiagnosticSeverity.Error);gy(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function gy(e,t,n){let r=n.find(i=>i.uri===e);return r||(r={uri:e,diagnostics:[]},n.push(r)),r.diagnostics.push(t),n}function yS(e){return e.suggest.length===0?"":e.suggest.length===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 Ze.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 Ze.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function a(y,D,I){return t.call(y)==="[object Number]"&&D<=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,D){return Array.isArray(y)&&y.every(D)}e.typedArray=v})(f||(f={}))});var se=S(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.ProtocolNotificationType=ze.ProtocolNotificationType0=ze.ProtocolRequestType=ze.ProtocolRequestType0=ze.RegistrationType=ze.MessageDirection=void 0;var er=hn(),xf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(xf||(ze.MessageDirection=xf={}));var Bu=class{constructor(t){this.method=t}};ze.RegistrationType=Bu;var Hu=class extends er.RequestType0{constructor(t){super(t)}};ze.ProtocolRequestType0=Hu;var zu=class extends er.RequestType{constructor(t){super(t,er.ParameterStructures.byName)}};ze.ProtocolRequestType=zu;var $u=class extends er.NotificationType0{constructor(t){super(t)}};ze.ProtocolNotificationType0=$u;var Yu=class extends er.NotificationType{constructor(t){super(t,er.ParameterStructures.byName)}};ze.ProtocolNotificationType=Yu});var Ao=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 D_(e){return e===!0||e===!1}ve.boolean=D_;function Pf(e){return typeof e=="string"||e instanceof String}ve.string=Pf;function T_(e){return typeof e=="number"||e instanceof Number}ve.number=T_;function w_(e){return e instanceof Error}ve.error=w_;function k_(e){return typeof e=="function"}ve.func=k_;function Cf(e){return Array.isArray(e)}ve.array=Cf;function A_(e){return Cf(e)&&e.every(t=>Pf(t))}ve.stringArray=A_;function O_(e,t){return Array.isArray(e)&&e.every(t)}ve.typedArray=O_;function q_(e){return e!==null&&typeof e=="object"}ve.objectLiteral=q_});var Rf=S(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.ImplementationRequest=void 0;var _f=se(),Sf;(function(e){e.method="textDocument/implementation",e.messageDirection=_f.MessageDirection.clientToServer,e.type=new _f.ProtocolRequestType(e.method)})(Sf||(Oo.ImplementationRequest=Sf={}))});var wf=S(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.TypeDefinitionRequest=void 0;var Df=se(),Tf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=Df.MessageDirection.clientToServer,e.type=new Df.ProtocolRequestType(e.method)})(Tf||(qo.TypeDefinitionRequest=Tf={}))});var Of=S(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.DidChangeWorkspaceFoldersNotification=tr.WorkspaceFoldersRequest=void 0;var Eo=se(),kf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=Eo.MessageDirection.serverToClient,e.type=new Eo.ProtocolRequestType0(e.method)})(kf||(tr.WorkspaceFoldersRequest=kf={}));var Af;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=Eo.MessageDirection.clientToServer,e.type=new Eo.ProtocolNotificationType(e.method)})(Af||(tr.DidChangeWorkspaceFoldersNotification=Af={}))});var Nf=S(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.ConfigurationRequest=void 0;var qf=se(),Ef;(function(e){e.method="workspace/configuration",e.messageDirection=qf.MessageDirection.serverToClient,e.type=new qf.ProtocolRequestType(e.method)})(Ef||(No.ConfigurationRequest=Ef={}))});var Lf=S(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.ColorPresentationRequest=nr.DocumentColorRequest=void 0;var jo=se(),jf;(function(e){e.method="textDocument/documentColor",e.messageDirection=jo.MessageDirection.clientToServer,e.type=new jo.ProtocolRequestType(e.method)})(jf||(nr.DocumentColorRequest=jf={}));var Mf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=jo.MessageDirection.clientToServer,e.type=new jo.ProtocolRequestType(e.method)})(Mf||(nr.ColorPresentationRequest=Mf={}))});var Uf=S(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.FoldingRangeRefreshRequest=rr.FoldingRangeRequest=void 0;var Mo=se(),If;(function(e){e.method="textDocument/foldingRange",e.messageDirection=Mo.MessageDirection.clientToServer,e.type=new Mo.ProtocolRequestType(e.method)})(If||(rr.FoldingRangeRequest=If={}));var Ff;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=Mo.MessageDirection.serverToClient,e.type=new Mo.ProtocolRequestType0(e.method)})(Ff||(rr.FoldingRangeRefreshRequest=Ff={}))});var Hf=S(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.DeclarationRequest=void 0;var Wf=se(),Bf;(function(e){e.method="textDocument/declaration",e.messageDirection=Wf.MessageDirection.clientToServer,e.type=new Wf.ProtocolRequestType(e.method)})(Bf||(Lo.DeclarationRequest=Bf={}))});var Yf=S(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.SelectionRangeRequest=void 0;var zf=se(),$f;(function(e){e.method="textDocument/selectionRange",e.messageDirection=zf.MessageDirection.clientToServer,e.type=new zf.ProtocolRequestType(e.method)})($f||(Io.SelectionRangeRequest=$f={}))});var Qf=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.WorkDoneProgressCancelNotification=Yt.WorkDoneProgressCreateRequest=Yt.WorkDoneProgress=void 0;var E_=hn(),Fo=se(),Vf;(function(e){e.type=new E_.ProgressType;function t(n){return n===e.type}e.is=t})(Vf||(Yt.WorkDoneProgress=Vf={}));var Kf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Fo.MessageDirection.serverToClient,e.type=new Fo.ProtocolRequestType(e.method)})(Kf||(Yt.WorkDoneProgressCreateRequest=Kf={}));var Gf;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Fo.MessageDirection.clientToServer,e.type=new Fo.ProtocolNotificationType(e.method)})(Gf||(Yt.WorkDoneProgressCancelNotification=Gf={}))});var eg=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.CallHierarchyOutgoingCallsRequest=Vt.CallHierarchyIncomingCallsRequest=Vt.CallHierarchyPrepareRequest=void 0;var ir=se(),Jf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(Jf||(Vt.CallHierarchyPrepareRequest=Jf={}));var Xf;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(Xf||(Vt.CallHierarchyIncomingCallsRequest=Xf={}));var Zf;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(Zf||(Vt.CallHierarchyOutgoingCallsRequest=Zf={}))});var sg=S($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.SemanticTokensRefreshRequest=$e.SemanticTokensRangeRequest=$e.SemanticTokensDeltaRequest=$e.SemanticTokensRequest=$e.SemanticTokensRegistrationType=$e.TokenFormat=void 0;var Et=se(),tg;(function(e){e.Relative="relative"})(tg||($e.TokenFormat=tg={}));var zr;(function(e){e.method="textDocument/semanticTokens",e.type=new Et.RegistrationType(e.method)})(zr||($e.SemanticTokensRegistrationType=zr={}));var ng;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=Et.MessageDirection.clientToServer,e.type=new Et.ProtocolRequestType(e.method),e.registrationMethod=zr.method})(ng||($e.SemanticTokensRequest=ng={}));var rg;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=Et.MessageDirection.clientToServer,e.type=new Et.ProtocolRequestType(e.method),e.registrationMethod=zr.method})(rg||($e.SemanticTokensDeltaRequest=rg={}));var ig;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=Et.MessageDirection.clientToServer,e.type=new Et.ProtocolRequestType(e.method),e.registrationMethod=zr.method})(ig||($e.SemanticTokensRangeRequest=ig={}));var og;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=Et.MessageDirection.serverToClient,e.type=new Et.ProtocolRequestType0(e.method)})(og||($e.SemanticTokensRefreshRequest=og={}))});var ug=S(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.ShowDocumentRequest=void 0;var ag=se(),cg;(function(e){e.method="window/showDocument",e.messageDirection=ag.MessageDirection.serverToClient,e.type=new ag.ProtocolRequestType(e.method)})(cg||(Uo.ShowDocumentRequest=cg={}))});var dg=S(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.LinkedEditingRangeRequest=void 0;var lg=se(),pg;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=lg.MessageDirection.clientToServer,e.type=new lg.ProtocolRequestType(e.method)})(pg||(Wo.LinkedEditingRangeRequest=pg={}))});var xg=S(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.WillDeleteFilesRequest=Ne.DidDeleteFilesNotification=Ne.DidRenameFilesNotification=Ne.WillRenameFilesRequest=Ne.DidCreateFilesNotification=Ne.WillCreateFilesRequest=Ne.FileOperationPatternKind=void 0;var et=se(),fg;(function(e){e.file="file",e.folder="folder"})(fg||(Ne.FileOperationPatternKind=fg={}));var gg;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=et.MessageDirection.clientToServer,e.type=new et.ProtocolRequestType(e.method)})(gg||(Ne.WillCreateFilesRequest=gg={}));var mg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=et.MessageDirection.clientToServer,e.type=new et.ProtocolNotificationType(e.method)})(mg||(Ne.DidCreateFilesNotification=mg={}));var hg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=et.MessageDirection.clientToServer,e.type=new et.ProtocolRequestType(e.method)})(hg||(Ne.WillRenameFilesRequest=hg={}));var yg;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=et.MessageDirection.clientToServer,e.type=new et.ProtocolNotificationType(e.method)})(yg||(Ne.DidRenameFilesNotification=yg={}));var bg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=et.MessageDirection.clientToServer,e.type=new et.ProtocolNotificationType(e.method)})(bg||(Ne.DidDeleteFilesNotification=bg={}));var vg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=et.MessageDirection.clientToServer,e.type=new et.ProtocolRequestType(e.method)})(vg||(Ne.WillDeleteFilesRequest=vg={}))});var Rg=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.MonikerRequest=Kt.MonikerKind=Kt.UniquenessLevel=void 0;var Pg=se(),Cg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(Cg||(Kt.UniquenessLevel=Cg={}));var _g;(function(e){e.$import="import",e.$export="export",e.local="local"})(_g||(Kt.MonikerKind=_g={}));var Sg;(function(e){e.method="textDocument/moniker",e.messageDirection=Pg.MessageDirection.clientToServer,e.type=new Pg.ProtocolRequestType(e.method)})(Sg||(Kt.MonikerRequest=Sg={}))});var kg=S(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.TypeHierarchySubtypesRequest=Gt.TypeHierarchySupertypesRequest=Gt.TypeHierarchyPrepareRequest=void 0;var or=se(),Dg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(Dg||(Gt.TypeHierarchyPrepareRequest=Dg={}));var Tg;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(Tg||(Gt.TypeHierarchySupertypesRequest=Tg={}));var wg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(wg||(Gt.TypeHierarchySubtypesRequest=wg={}))});var qg=S(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.InlineValueRefreshRequest=sr.InlineValueRequest=void 0;var Bo=se(),Ag;(function(e){e.method="textDocument/inlineValue",e.messageDirection=Bo.MessageDirection.clientToServer,e.type=new Bo.ProtocolRequestType(e.method)})(Ag||(sr.InlineValueRequest=Ag={}));var Og;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=Bo.MessageDirection.serverToClient,e.type=new Bo.ProtocolRequestType0(e.method)})(Og||(sr.InlineValueRefreshRequest=Og={}))});var Mg=S(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.InlayHintRefreshRequest=Qt.InlayHintResolveRequest=Qt.InlayHintRequest=void 0;var ar=se(),Eg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=ar.MessageDirection.clientToServer,e.type=new ar.ProtocolRequestType(e.method)})(Eg||(Qt.InlayHintRequest=Eg={}));var Ng;(function(e){e.method="inlayHint/resolve",e.messageDirection=ar.MessageDirection.clientToServer,e.type=new ar.ProtocolRequestType(e.method)})(Ng||(Qt.InlayHintResolveRequest=Ng={}));var jg;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=ar.MessageDirection.serverToClient,e.type=new ar.ProtocolRequestType0(e.method)})(jg||(Qt.InlayHintRefreshRequest=jg={}))});var Hg=S(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.DiagnosticRefreshRequest=tt.WorkspaceDiagnosticRequest=tt.DocumentDiagnosticRequest=tt.DocumentDiagnosticReportKind=tt.DiagnosticServerCancellationData=void 0;var Bg=hn(),N_=Ao(),cr=se(),Lg;(function(e){function t(n){let r=n;return r&&N_.boolean(r.retriggerRequest)}e.is=t})(Lg||(tt.DiagnosticServerCancellationData=Lg={}));var Ig;(function(e){e.Full="full",e.Unchanged="unchanged"})(Ig||(tt.DocumentDiagnosticReportKind=Ig={}));var Fg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=cr.MessageDirection.clientToServer,e.type=new cr.ProtocolRequestType(e.method),e.partialResult=new Bg.ProgressType})(Fg||(tt.DocumentDiagnosticRequest=Fg={}));var Ug;(function(e){e.method="workspace/diagnostic",e.messageDirection=cr.MessageDirection.clientToServer,e.type=new cr.ProtocolRequestType(e.method),e.partialResult=new Bg.ProgressType})(Ug||(tt.WorkspaceDiagnosticRequest=Ug={}));var Wg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=cr.MessageDirection.serverToClient,e.type=new cr.ProtocolRequestType0(e.method)})(Wg||(tt.DiagnosticRefreshRequest=Wg={}))});var Qg=S(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.DidCloseNotebookDocumentNotification=fe.DidSaveNotebookDocumentNotification=fe.DidChangeNotebookDocumentNotification=fe.NotebookCellArrayChange=fe.DidOpenNotebookDocumentNotification=fe.NotebookDocumentSyncRegistrationType=fe.NotebookDocument=fe.NotebookCell=fe.ExecutionSummary=fe.NotebookCellKind=void 0;var $r=(ko(),ci(wo)),ut=Ao(),Ct=se(),Vu;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Vu||(fe.NotebookCellKind=Vu={}));var Ku;(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 ut.objectLiteral(o)&&$r.uinteger.is(o.executionOrder)&&(o.success===void 0||ut.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})(Ku||(fe.ExecutionSummary=Ku={}));var Ho;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ut.objectLiteral(s)&&Vu.is(s.kind)&&$r.DocumentUri.is(s.document)&&(s.metadata===void 0||ut.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)&&!Ku.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(ut.objectLiteral(o)&&ut.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}})(Ho||(fe.NotebookCell=Ho={}));var zg;(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 ut.objectLiteral(i)&&ut.string(i.uri)&&$r.integer.is(i.version)&&ut.typedArray(i.cells,Ho.is)}e.is=n})(zg||(fe.NotebookDocument=zg={}));var ur;(function(e){e.method="notebookDocument/sync",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.RegistrationType(e.method)})(ur||(fe.NotebookDocumentSyncRegistrationType=ur={}));var $g;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})($g||(fe.DidOpenNotebookDocumentNotification=$g={}));var Yg;(function(e){function t(r){let i=r;return ut.objectLiteral(i)&&$r.uinteger.is(i.start)&&$r.uinteger.is(i.deleteCount)&&(i.cells===void 0||ut.typedArray(i.cells,Ho.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})(Yg||(fe.NotebookCellArrayChange=Yg={}));var Vg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Vg||(fe.DidChangeNotebookDocumentNotification=Vg={}));var Kg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Kg||(fe.DidSaveNotebookDocumentNotification=Kg={}));var Gg;(function(e){e.method="notebookDocument/didClose",e.messageDirection=Ct.MessageDirection.clientToServer,e.type=new Ct.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Gg||(fe.DidCloseNotebookDocumentNotification=Gg={}))});var Zg=S(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.InlineCompletionRequest=void 0;var Jg=se(),Xg;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=Jg.MessageDirection.clientToServer,e.type=new Jg.ProtocolRequestType(e.method)})(Xg||(zo.InlineCompletionRequest=Xg={}))});var dh=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(),em=(ko(),ci(wo)),De=Ao(),j_=Rf();Object.defineProperty(u,"ImplementationRequest",{enumerable:!0,get:function(){return j_.ImplementationRequest}});var M_=wf();Object.defineProperty(u,"TypeDefinitionRequest",{enumerable:!0,get:function(){return M_.TypeDefinitionRequest}});var ch=Of();Object.defineProperty(u,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return ch.WorkspaceFoldersRequest}});Object.defineProperty(u,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return ch.DidChangeWorkspaceFoldersNotification}});var L_=Nf();Object.defineProperty(u,"ConfigurationRequest",{enumerable:!0,get:function(){return L_.ConfigurationRequest}});var uh=Lf();Object.defineProperty(u,"DocumentColorRequest",{enumerable:!0,get:function(){return uh.DocumentColorRequest}});Object.defineProperty(u,"ColorPresentationRequest",{enumerable:!0,get:function(){return uh.ColorPresentationRequest}});var lh=Uf();Object.defineProperty(u,"FoldingRangeRequest",{enumerable:!0,get:function(){return lh.FoldingRangeRequest}});Object.defineProperty(u,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return lh.FoldingRangeRefreshRequest}});var I_=Hf();Object.defineProperty(u,"DeclarationRequest",{enumerable:!0,get:function(){return I_.DeclarationRequest}});var F_=Yf();Object.defineProperty(u,"SelectionRangeRequest",{enumerable:!0,get:function(){return F_.SelectionRangeRequest}});var Zu=Qf();Object.defineProperty(u,"WorkDoneProgress",{enumerable:!0,get:function(){return Zu.WorkDoneProgress}});Object.defineProperty(u,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Zu.WorkDoneProgressCreateRequest}});Object.defineProperty(u,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Zu.WorkDoneProgressCancelNotification}});var el=eg();Object.defineProperty(u,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return el.CallHierarchyIncomingCallsRequest}});Object.defineProperty(u,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return el.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(u,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return el.CallHierarchyPrepareRequest}});var lr=sg();Object.defineProperty(u,"TokenFormat",{enumerable:!0,get:function(){return lr.TokenFormat}});Object.defineProperty(u,"SemanticTokensRequest",{enumerable:!0,get:function(){return lr.SemanticTokensRequest}});Object.defineProperty(u,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return lr.SemanticTokensDeltaRequest}});Object.defineProperty(u,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return lr.SemanticTokensRangeRequest}});Object.defineProperty(u,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return lr.SemanticTokensRefreshRequest}});Object.defineProperty(u,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return lr.SemanticTokensRegistrationType}});var U_=ug();Object.defineProperty(u,"ShowDocumentRequest",{enumerable:!0,get:function(){return U_.ShowDocumentRequest}});var W_=dg();Object.defineProperty(u,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return W_.LinkedEditingRangeRequest}});var vn=xg();Object.defineProperty(u,"FileOperationPatternKind",{enumerable:!0,get:function(){return vn.FileOperationPatternKind}});Object.defineProperty(u,"DidCreateFilesNotification",{enumerable:!0,get:function(){return vn.DidCreateFilesNotification}});Object.defineProperty(u,"WillCreateFilesRequest",{enumerable:!0,get:function(){return vn.WillCreateFilesRequest}});Object.defineProperty(u,"DidRenameFilesNotification",{enumerable:!0,get:function(){return vn.DidRenameFilesNotification}});Object.defineProperty(u,"WillRenameFilesRequest",{enumerable:!0,get:function(){return vn.WillRenameFilesRequest}});Object.defineProperty(u,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return vn.DidDeleteFilesNotification}});Object.defineProperty(u,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return vn.WillDeleteFilesRequest}});var tl=Rg();Object.defineProperty(u,"UniquenessLevel",{enumerable:!0,get:function(){return tl.UniquenessLevel}});Object.defineProperty(u,"MonikerKind",{enumerable:!0,get:function(){return tl.MonikerKind}});Object.defineProperty(u,"MonikerRequest",{enumerable:!0,get:function(){return tl.MonikerRequest}});var nl=kg();Object.defineProperty(u,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return nl.TypeHierarchyPrepareRequest}});Object.defineProperty(u,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return nl.TypeHierarchySubtypesRequest}});Object.defineProperty(u,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return nl.TypeHierarchySupertypesRequest}});var ph=qg();Object.defineProperty(u,"InlineValueRequest",{enumerable:!0,get:function(){return ph.InlineValueRequest}});Object.defineProperty(u,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return ph.InlineValueRefreshRequest}});var rl=Mg();Object.defineProperty(u,"InlayHintRequest",{enumerable:!0,get:function(){return rl.InlayHintRequest}});Object.defineProperty(u,"InlayHintResolveRequest",{enumerable:!0,get:function(){return rl.InlayHintResolveRequest}});Object.defineProperty(u,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return rl.InlayHintRefreshRequest}});var Yr=Hg();Object.defineProperty(u,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Yr.DiagnosticServerCancellationData}});Object.defineProperty(u,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Yr.DocumentDiagnosticReportKind}});Object.defineProperty(u,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Yr.DocumentDiagnosticRequest}});Object.defineProperty(u,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Yr.WorkspaceDiagnosticRequest}});Object.defineProperty(u,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Yr.DiagnosticRefreshRequest}});var _t=Qg();Object.defineProperty(u,"NotebookCellKind",{enumerable:!0,get:function(){return _t.NotebookCellKind}});Object.defineProperty(u,"ExecutionSummary",{enumerable:!0,get:function(){return _t.ExecutionSummary}});Object.defineProperty(u,"NotebookCell",{enumerable:!0,get:function(){return _t.NotebookCell}});Object.defineProperty(u,"NotebookDocument",{enumerable:!0,get:function(){return _t.NotebookDocument}});Object.defineProperty(u,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return _t.NotebookDocumentSyncRegistrationType}});Object.defineProperty(u,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return _t.DidOpenNotebookDocumentNotification}});Object.defineProperty(u,"NotebookCellArrayChange",{enumerable:!0,get:function(){return _t.NotebookCellArrayChange}});Object.defineProperty(u,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return _t.DidChangeNotebookDocumentNotification}});Object.defineProperty(u,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return _t.DidSaveNotebookDocumentNotification}});Object.defineProperty(u,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return _t.DidCloseNotebookDocumentNotification}});var B_=Zg();Object.defineProperty(u,"InlineCompletionRequest",{enumerable:!0,get:function(){return B_.InlineCompletionRequest}});var Gu;(function(e){function t(n){let r=n;return De.string(r)||De.string(r.language)||De.string(r.scheme)||De.string(r.pattern)}e.is=t})(Gu||(u.TextDocumentFilter=Gu={}));var Qu;(function(e){function t(n){let r=n;return De.objectLiteral(r)&&(De.string(r.notebookType)||De.string(r.scheme)||De.string(r.pattern))}e.is=t})(Qu||(u.NotebookDocumentFilter=Qu={}));var Ju;(function(e){function t(n){let r=n;return De.objectLiteral(r)&&(De.string(r.notebook)||Qu.is(r.notebook))&&(r.language===void 0||De.string(r.language))}e.is=t})(Ju||(u.NotebookCellTextDocumentFilter=Ju={}));var Xu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!De.string(r)&&!Gu.is(r)&&!Ju.is(r))return!1;return!0}e.is=t})(Xu||(u.DocumentSelector=Xu={}));var tm;(function(e){e.method="client/registerCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(tm||(u.RegistrationRequest=tm={}));var nm;(function(e){e.method="client/unregisterCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(nm||(u.UnregistrationRequest=nm={}));var rm;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(rm||(u.ResourceOperationKind=rm={}));var im;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(im||(u.FailureHandlingKind=im={}));var om;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(om||(u.PositionEncodingKind=om={}));var sm;(function(e){function t(n){let r=n;return r&&De.string(r.id)&&r.id.length>0}e.hasId=t})(sm||(u.StaticRegistrationOptions=sm={}));var am;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||Xu.is(r.documentSelector))}e.is=t})(am||(u.TextDocumentRegistrationOptions=am={}));var cm;(function(e){function t(r){let i=r;return De.objectLiteral(i)&&(i.workDoneProgress===void 0||De.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&De.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(cm||(u.WorkDoneProgressOptions=cm={}));var um;(function(e){e.method="initialize",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(um||(u.InitializeRequest=um={}));var lm;(function(e){e.unknownProtocolVersion=1})(lm||(u.InitializeErrorCodes=lm={}));var pm;(function(e){e.method="initialized",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(pm||(u.InitializedNotification=pm={}));var dm;(function(e){e.method="shutdown",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType0(e.method)})(dm||(u.ShutdownRequest=dm={}));var fm;(function(e){e.method="exit",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType0(e.method)})(fm||(u.ExitNotification=fm={}));var gm;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(gm||(u.DidChangeConfigurationNotification=gm={}));var mm;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(mm||(u.MessageType=mm={}));var hm;(function(e){e.method="window/showMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(hm||(u.ShowMessageNotification=hm={}));var ym;(function(e){e.method="window/showMessageRequest",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(ym||(u.ShowMessageRequest=ym={}));var bm;(function(e){e.method="window/logMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(bm||(u.LogMessageNotification=bm={}));var vm;(function(e){e.method="telemetry/event",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(vm||(u.TelemetryEventNotification=vm={}));var xm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(xm||(u.TextDocumentSyncKind=xm={}));var Pm;(function(e){e.method="textDocument/didOpen",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Pm||(u.DidOpenTextDocumentNotification=Pm={}));var Cm;(function(e){function t(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}e.isIncremental=t;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}e.isFull=n})(Cm||(u.TextDocumentContentChangeEvent=Cm={}));var _m;(function(e){e.method="textDocument/didChange",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(_m||(u.DidChangeTextDocumentNotification=_m={}));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 Rm;(function(e){e.method="textDocument/didSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Rm||(u.DidSaveTextDocumentNotification=Rm={}));var Dm;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(Dm||(u.TextDocumentSaveReason=Dm={}));var Tm;(function(e){e.method="textDocument/willSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Tm||(u.WillSaveTextDocumentNotification=Tm={}));var wm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(wm||(u.WillSaveTextDocumentWaitUntilRequest=wm={}));var km;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(km||(u.DidChangeWatchedFilesNotification=km={}));var Am;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(Am||(u.FileChangeType=Am={}));var Om;(function(e){function t(n){let r=n;return De.objectLiteral(r)&&(em.URI.is(r.baseUri)||em.WorkspaceFolder.is(r.baseUri))&&De.string(r.pattern)}e.is=t})(Om||(u.RelativePattern=Om={}));var qm;(function(e){e.Create=1,e.Change=2,e.Delete=4})(qm||(u.WatchKind=qm={}));var Em;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(Em||(u.PublishDiagnosticsNotification=Em={}));var Nm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Nm||(u.CompletionTriggerKind=Nm={}));var jm;(function(e){e.method="textDocument/completion",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(jm||(u.CompletionRequest=jm={}));var Mm;(function(e){e.method="completionItem/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Mm||(u.CompletionResolveRequest=Mm={}));var Lm;(function(e){e.method="textDocument/hover",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Lm||(u.HoverRequest=Lm={}));var Im;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Im||(u.SignatureHelpTriggerKind=Im={}));var Fm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Fm||(u.SignatureHelpRequest=Fm={}));var Um;(function(e){e.method="textDocument/definition",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Um||(u.DefinitionRequest=Um={}));var Wm;(function(e){e.method="textDocument/references",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Wm||(u.ReferencesRequest=Wm={}));var Bm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Bm||(u.DocumentHighlightRequest=Bm={}));var Hm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Hm||(u.DocumentSymbolRequest=Hm={}));var zm;(function(e){e.method="textDocument/codeAction",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(zm||(u.CodeActionRequest=zm={}));var $m;(function(e){e.method="codeAction/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})($m||(u.CodeActionResolveRequest=$m={}));var Ym;(function(e){e.method="workspace/symbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Ym||(u.WorkspaceSymbolRequest=Ym={}));var Vm;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Vm||(u.WorkspaceSymbolResolveRequest=Vm={}));var Km;(function(e){e.method="textDocument/codeLens",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Km||(u.CodeLensRequest=Km={}));var Gm;(function(e){e.method="codeLens/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Gm||(u.CodeLensResolveRequest=Gm={}));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 Jm;(function(e){e.method="textDocument/documentLink",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Jm||(u.DocumentLinkRequest=Jm={}));var Xm;(function(e){e.method="documentLink/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Xm||(u.DocumentLinkResolveRequest=Xm={}));var Zm;(function(e){e.method="textDocument/formatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Zm||(u.DocumentFormattingRequest=Zm={}));var eh;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(eh||(u.DocumentRangeFormattingRequest=eh={}));var th;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(th||(u.DocumentRangesFormattingRequest=th={}));var nh;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(nh||(u.DocumentOnTypeFormattingRequest=nh={}));var rh;(function(e){e.Identifier=1})(rh||(u.PrepareSupportDefaultBehavior=rh={}));var ih;(function(e){e.method="textDocument/rename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(ih||(u.RenameRequest=ih={}));var oh;(function(e){e.method="textDocument/prepareRename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(oh||(u.PrepareRenameRequest=oh={}));var sh;(function(e){e.method="workspace/executeCommand",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(sh||(u.ExecuteCommandRequest=sh={}));var ah;(function(e){e.method="workspace/applyEdit",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType("workspace/applyEdit")})(ah||(u.ApplyWorkspaceEditRequest=ah={}))});var gh=S($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.createProtocolConnection=void 0;var fh=hn();function H_(e,t,n,r){return fh.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,fh.createMessageConnection)(e,t,n,r)}$o.createProtocolConnection=H_});var hh=S(Ye=>{"use strict";var z_=Ye&&Ye.__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]})),Yo=Ye&&Ye.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&z_(t,e,n)};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.LSPErrorCodes=Ye.createProtocolConnection=void 0;Yo(hn(),Ye);Yo((ko(),ci(wo)),Ye);Yo(se(),Ye);Yo(dh(),Ye);var $_=gh();Object.defineProperty(Ye,"createProtocolConnection",{enumerable:!0,get:function(){return $_.createProtocolConnection}});var mh;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(mh||(Ye.LSPErrorCodes=mh={}))});var be=S(St=>{"use strict";var Y_=St&&St.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),yh=St&&St.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Y_(t,e,n)};Object.defineProperty(St,"__esModule",{value:!0});St.createProtocolConnection=void 0;var V_=Fc();yh(Fc(),St);yh(hh(),St);function K_(e,t,n,r){return(0,V_.createMessageConnection)(e,t,n,r)}St.createProtocolConnection=K_});var ol=S(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.SemanticTokensBuilder=Jt.SemanticTokensDiff=Jt.SemanticTokensFeature=void 0;var Vo=be(),G_=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(Vo.SemanticTokensRefreshRequest.type),on:t=>{let n=Vo.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=Vo.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=Vo.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Jt.SemanticTokensFeature=G_;var Ko=class{constructor(t,n){this.originalSequence=t,this.modifiedSequence=n}computeDiff(){let t=this.originalSequence.length,n=this.modifiedSequence.length,r=0;for(;r<n&&r<t&&this.originalSequence[r]===this.modifiedSequence[r];)r++;if(r<n&&r<t){let i=t-1,o=n-1;for(;i>=r&&o>=r&&this.originalSequence[i]===this.modifiedSequence[o];)i--,o--;(i<r||o<r)&&(i++,o++);let s=i-r+1,a=this.modifiedSequence.slice(r,o+1);return a.length===1&&a[0]===this.originalSequence[i]?[{start:r,deleteCount:s-1}]:[{start:r,deleteCount:s,data:a}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<t?[{start:r,deleteCount:t-r}]:[]}};Jt.SemanticTokensDiff=Ko;var il=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(t,n,r,i,o){let s=t,a=n;this._dataLen>0&&(s-=this._prevLine,s===0&&(a-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=o,this._prevLine=t,this._prevChar=n}get id(){return this._id.toString()}previousResult(t){this.id===t&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new Ko(this._prevData,this._data).computeDiff()}:this.build()}};Jt.SemanticTokensBuilder=il});var bh=S(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.InlineCompletionFeature=void 0;var Q_=be(),J_=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(Q_.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Go.InlineCompletionFeature=J_});var al=S(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.TextDocuments=void 0;var xn=be(),sl=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new xn.Emitter,this._onDidOpen=new xn.Emitter,this._onDidClose=new xn.Emitter,this._onDidSave=new xn.Emitter,this._onWillSave=new xn.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(t){this._willSaveWaitUntil=t}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(t){return this._syncedDocuments.get(t)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(t){t.__textDocumentSync=xn.TextDocumentSyncKind.Incremental;let n=[];return n.push(t.onDidOpenTextDocument(r=>{let i=r.textDocument,o=this._configuration.create(i.uri,i.languageId,i.version,i.text);this._syncedDocuments.set(i.uri,o);let s=Object.freeze({document:o});this._onDidOpen.fire(s),this._onDidChangeContent.fire(s)})),n.push(t.onDidChangeTextDocument(r=>{let i=r.textDocument,o=r.contentChanges;if(o.length===0)return;let{version:s}=i;if(s==null)throw new Error(`Received document change event for ${i.uri} without valid version identifier`);let a=this._syncedDocuments.get(i.uri);a!==void 0&&(a=this._configuration.update(a,o,s),this._syncedDocuments.set(i.uri,a),this._onDidChangeContent.fire(Object.freeze({document:a})))})),n.push(t.onDidCloseTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&(this._syncedDocuments.delete(r.textDocument.uri),this._onDidClose.fire(Object.freeze({document:i})))})),n.push(t.onWillSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onWillSave.fire(Object.freeze({document:i,reason:r.reason}))})),n.push(t.onWillSaveTextDocumentWaitUntil((r,i)=>{let o=this._syncedDocuments.get(r.textDocument.uri);return o!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:o,reason:r.reason}),i):[]})),n.push(t.onDidSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onDidSave.fire(Object.freeze({document:i}))})),xn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Qo.TextDocuments=sl});var ul=S(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.NotebookDocuments=pr.NotebookSyncFeature=void 0;var nt=be(),vh=al(),X_=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(nt.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(nt.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(nt.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(nt.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};pr.NotebookSyncFeature=X_;var Jo=class e{onDidOpenTextDocument(t){return this.openHandler=t,nt.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,nt.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,nt.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(t){this.closeHandler&&this.closeHandler(t)}onWillSaveTextDocument(){return e.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return e.NULL_DISPOSE}onDidSaveTextDocument(){return e.NULL_DISPOSE}};Jo.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var cl=class{constructor(t){t instanceof vh.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new vh.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new nt.Emitter,this._onDidChange=new nt.Emitter,this._onDidSave=new nt.Emitter,this._onDidClose=new nt.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(t){return this._cellTextDocuments.get(t.document)}getNotebookDocument(t){return this.notebookDocuments.get(t)}getNotebookCell(t){let n=this.notebookCellMap.get(t);return n&&n[0]}findNotebookDocumentForCell(t){let n=typeof t=="string"?t:t.document,r=this.notebookCellMap.get(n);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(t){let n=new Jo,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let l=[],d=[],h=[],v=[];if(c.cells!==void 0){let V=c.cells;if(V.structure!==void 0){let m=V.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),V.structure.didOpen!==void 0)for(let g of V.structure.didOpen)n.openTextDocument({textDocument:g}),l.push(g.uri);if(V.structure.didClose)for(let g of V.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(V.data!==void 0){let m=new Map(V.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let w=m.get(o.cells[g].document);if(w!==void 0){let Y=o.cells.splice(g,1,w);if(h.push({old:Y[0],new:w}),m.delete(w.document),m.size===0)break}}}if(V.textContent!==void 0)for(let m of V.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),v.push(m.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let D=[];for(let V of l)D.push(this.getNotebookCell(V));let I=[];for(let V of d)I.push(this.getNotebookCell(V));let $=[];for(let V of v)$.push(this.getNotebookCell(V));(D.length>0||I.length>0||h.length>0||$.length>0)&&(y.cells={added:D,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)}})),nt.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};pr.NotebookDocuments=cl});var ll=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 Z_(e){return e===!0||e===!1}xe.boolean=Z_;function xh(e){return typeof e=="string"||e instanceof String}xe.string=xh;function e0(e){return typeof e=="number"||e instanceof Number}xe.number=e0;function t0(e){return e instanceof Error}xe.error=t0;function Ph(e){return typeof e=="function"}xe.func=Ph;function Ch(e){return Array.isArray(e)}xe.array=Ch;function n0(e){return Ch(e)&&e.every(t=>xh(t))}xe.stringArray=n0;function r0(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=r0;function i0(e){return e&&Ph(e.then)}xe.thenable=i0});var pl=S(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.generateUuid=rt.parse=rt.isUUID=rt.v4=rt.empty=void 0;var Vr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Kr=class e extends Vr{static _oneOf(t){return t[Math.floor(t.length*Math.random())]}static _randomHex(){return e._oneOf(e._chars)}constructor(){super([e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),"-",e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),"-","4",e._randomHex(),e._randomHex(),e._randomHex(),"-",e._oneOf(e._timeHighBits),e._randomHex(),e._randomHex(),e._randomHex(),"-",e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex()].join(""))}};Kr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Kr._timeHighBits=["8","9","a","b"];rt.empty=new Vr("00000000-0000-0000-0000-000000000000");function _h(){return new Kr}rt.v4=_h;var o0=/^[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 o0.test(e)}rt.isUUID=Sh;function s0(e){if(!Sh(e))throw new Error("invalid uuid");return new Vr(e)}rt.parse=s0;function a0(){return _h().asHex()}rt.generateUuid=a0});var Rh=S(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.attachPartialResult=Zt.ProgressFeature=Zt.attachWorkDone=void 0;var Xt=be(),c0=pl(),Pn=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(Xt.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(Xt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Xt.WorkDoneProgress.type,this._token,{kind:"end"})}};Pn.Instances=new Map;var Xo=class extends Pn{constructor(t,n){super(t,n),this._source=new Xt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Gr=class{constructor(){}begin(){}report(){}done(){}},Zo=class extends Gr{constructor(){super(),this._source=new Xt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function u0(e,t){if(t===void 0||t.workDoneToken===void 0)return new Gr;let n=t.workDoneToken;return delete t.workDoneToken,new Pn(e,n)}Zt.attachWorkDone=u0;var l0=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Xt.WorkDoneProgressCancelNotification.type,n=>{let r=Pn.Instances.get(n.token);(r instanceof Xo||r instanceof Zo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Gr:new Pn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,c0.generateUuid)();return this.connection.sendRequest(Xt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Xo(this.connection,t))}else return Promise.resolve(new Zo)}};Zt.ProgressFeature=l0;var dl;(function(e){e.type=new Xt.ProgressType})(dl||(dl={}));var fl=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(dl.type,this._token,t)}};function p0(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new fl(e,n)}Zt.attachPartialResult=p0});var Dh=S(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.ConfigurationFeature=void 0;var d0=be(),f0=ll(),g0=e=>class extends e{getConfiguration(t){return t?f0.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(d0.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};es.ConfigurationFeature=g0});var Th=S(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.WorkspaceFoldersFeature=void 0;var ts=be(),m0=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new ts.Emitter,this.connection.onNotification(ts.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}fillServerCapabilities(t){super.fillServerCapabilities(t);let n=t.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(ts.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return!this._notificationIsAutoRegistered&&!this._unregistration&&(this._unregistration=this.connection.client.register(ts.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};ns.WorkspaceFoldersFeature=m0});var wh=S(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.CallHierarchyFeature=void 0;var gl=be(),h0=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(gl.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=gl.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=gl.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};rs.CallHierarchyFeature=h0});var kh=S(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.ShowDocumentFeature=void 0;var y0=be(),b0=e=>class extends e{showDocument(t){return this.connection.sendRequest(y0.ShowDocumentRequest.type,t)}};is.ShowDocumentFeature=b0});var Ah=S(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.FileOperationsFeature=void 0;var dr=be(),v0=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(dr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(dr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(dr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(dr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(dr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(dr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};os.FileOperationsFeature=v0});var Oh=S(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.LinkedEditingRangeFeature=void 0;var x0=be(),P0=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(x0.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};ss.LinkedEditingRangeFeature=P0});var qh=S(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.TypeHierarchyFeature=void 0;var ml=be(),C0=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(ml.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=ml.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=ml.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};as.TypeHierarchyFeature=C0});var Nh=S(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.InlineValueFeature=void 0;var Eh=be(),_0=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(Eh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(Eh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};cs.InlineValueFeature=_0});var Mh=S(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.FoldingRangeFeature=void 0;var jh=be(),S0=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(jh.FoldingRangeRefreshRequest.type),on:t=>{let n=jh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};us.FoldingRangeFeature=S0});var Lh=S(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.InlayHintFeature=void 0;var hl=be(),R0=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(hl.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(hl.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(hl.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};ls.InlayHintFeature=R0});var Ih=S(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.DiagnosticFeature=void 0;var Qr=be(),D0=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Qr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Qr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Qr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Qr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Qr.WorkspaceDiagnosticRequest.partialResult,n)))}}};ps.DiagnosticFeature=D0});var Fh=S(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.MonikerFeature=void 0;var T0=be(),w0=e=>class extends e{get moniker(){return{on:t=>{let n=T0.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};ds.MonikerFeature=w0});var ey=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=be(),it=ll(),bl=pl(),B=Rh(),k0=Dh(),A0=Th(),O0=wh(),q0=ol(),E0=kh(),N0=Ah(),j0=Oh(),M0=qh(),L0=Nh(),I0=Mh(),F0=Lh(),U0=Ih(),W0=ul(),B0=Fh();function yl(e){if(e!==null)return e}var vl=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=vl;var fs=class{constructor(){}rawAttach(t){this._rawConnection=t}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(t){}initialize(t){}error(t){this.send(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")})}},xl=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}showErrorMessage(t,...n){let r={type:O.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(yl)}showWarningMessage(t,...n){let r={type:O.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(yl)}showInformationMessage(t,...n){let r={type:O.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(yl)}},Uh=(0,E0.ShowDocumentFeature)((0,B.ProgressFeature)(xl)),Wh;(function(e){function t(){return new gs}e.create=t})(Wh||(Q.BulkRegistration=Wh={}));var gs=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=it.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=bl.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Bh;(function(e){function t(){return new Jr(void 0,[])}e.create=t})(Bh||(Q.BulkUnregistration=Bh={}));var Jr=class{constructor(t,n){this._connection=t,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(t){this._connection=t}add(t){this._unregistrations.set(t.method,t)}dispose(){let t=[];for(let r of this._unregistrations.values())t.push(r);let n={unregisterations:t};this._connection.sendRequest(O.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=it.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}},ms=class{attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}register(t,n,r){return t instanceof gs?this.registerMany(t):t instanceof Jr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=it.string(n)?n:n.method,o=bl.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=it.string(t)?t:t.method,i=bl.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 Jr(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)}},Hh=(0,N0.FileOperationsFeature)((0,A0.WorkspaceFoldersFeature)((0,k0.ConfigurationFeature)(Pl))),hs=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(()=>{})}},ys=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}logEvent(t){this.connection.sendNotification(O.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},bs=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._LanguagesImpl=bs;var zh=(0,I0.FoldingRangeFeature)((0,B0.MonikerFeature)((0,U0.DiagnosticFeature)((0,F0.InlayHintFeature)((0,L0.InlineValueFeature)((0,M0.TypeHierarchyFeature)((0,j0.LinkedEditingRangeFeature)((0,q0.SemanticTokensFeature)((0,O0.CallHierarchyFeature)(bs))))))))),vs=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._NotebooksImpl=vs;var $h=(0,W0.NotebookSyncFeature)(vs);function Yh(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=Yh;function Vh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=Vh;function Kh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Kh;function Gh(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Gh;function Qh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=Qh;function Jh(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=Jh;function Xh(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=Xh;function Zh(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=Zh;function H0(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Yh),tracer:n(e.tracer,t.tracer,Kh),telemetry:n(e.telemetry,t.telemetry,Vh),client:n(e.client,t.client,Gh),window:n(e.window,t.window,Qh),workspace:n(e.workspace,t.workspace,Jh),languages:n(e.languages,t.languages,Xh),notebooks:n(e.notebooks,t.notebooks,Zh)}}Q.combineFeatures=H0;function z0(e,t,n){let r=n&&n.console?new(n.console(fs)):new fs,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(hs)):new hs,s=n&&n.telemetry?new(n.telemetry(ys)):new ys,a=n&&n.client?new(n.client(ms)):new ms,c=n&&n.window?new(n.window(Uh)):new Uh,l=n&&n.workspace?new(n.workspace(Hh)):new Hh,d=n&&n.languages?new(n.languages(zh)):new zh,h=n&&n.notebooks?new(n.notebooks($h)):new $h,v=[r,o,s,a,c,l,d,h];function y(m){return m instanceof Promise?m:it.thenable(m)?new Promise((g,w)=>{m.then(Y=>g(Y),Y=>w(Y))}):Promise.resolve(m)}let D,I,$,V={listen:()=>i.listen(),sendRequest:(m,...g)=>i.sendRequest(it.string(m)?m:m.method,...g),onRequest:(m,g)=>i.onRequest(m,g),sendNotification:(m,g)=>{let w=it.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=>(D=m,{dispose:()=>{D=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(V);return i.onRequest(O.InitializeRequest.type,m=>{t.initialize(m),it.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 Y=w;Y||(Y={capabilities:{}});let X=Y.capabilities;X||(X={},Y.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=it.number(V.__textDocumentSync)?V.__textDocumentSync:O.TextDocumentSyncKind.None:!it.number(X.textDocumentSync)&&!it.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=it.number(V.__textDocumentSync)?V.__textDocumentSync:O.TextDocumentSyncKind.None);for(let ot of v)ot.fillServerCapabilities(X);return Y})}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,D)return D(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)}),V}Q.createConnection=z0});var Cl=S(je=>{"use strict";var $0=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]})),ny=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&$0(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});je.ProposedFeatures=je.NotebookDocuments=je.TextDocuments=je.SemanticTokensBuilder=void 0;var Y0=ol();Object.defineProperty(je,"SemanticTokensBuilder",{enumerable:!0,get:function(){return Y0.SemanticTokensBuilder}});var V0=bh();ny(be(),je);var K0=al();Object.defineProperty(je,"TextDocuments",{enumerable:!0,get:function(){return K0.TextDocuments}});var G0=ul();Object.defineProperty(je,"NotebookDocuments",{enumerable:!0,get:function(){return G0.NotebookDocuments}});ny(ey(),je);var ty;(function(e){e.all={__brand:"features",languages:V0.InlineCompletionFeature}})(ty||(je.ProposedFeatures=ty={}))});var iy=S((Kw,ry)=>{"use strict";ry.exports=be()});var Ps=S(Rt=>{"use strict";var Q0=Rt&&Rt.__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]})),sy=Rt&&Rt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Q0(t,e,n)};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.createConnection=void 0;var xs=Cl();sy(iy(),Rt);sy(Cl(),Rt);var oy=!1,J0={initialize:e=>{},get shutdownReceived(){return oy},set shutdownReceived(e){oy=e},exit:e=>{}};function X0(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),xs.ConnectionStrategy.is(e)||xs.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=l=>(0,xs.createProtocolConnection)(o,s,l,a);return(0,xs.createConnection)(c,J0,i)}Rt.createConnection=X0});var en=S((Qw,ay)=>{"use strict";ay.exports=Ps()});var Fl=S((Yk,Cy)=>{"use strict";function Dt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Py(e,t){for(var n="",r=0,i=-1,o=0,s,a=0;a<=e.length;++a){if(a<e.length)s=e.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,o=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return n}function VS(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 mr={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),Dt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=Py(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Dt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Py(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return Dt(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];Dt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":mr.normalize(t)},relative:function(t,n){if(Dt(t),Dt(n),t===n||(t=mr.resolve(t),n=mr.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,l=o<c?o:c,d=-1,h=0;h<=l;++h){if(h===l){if(c>l){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>l&&(t.charCodeAt(r+h)===47?d=h:h===0&&(d=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(d=h)}var D="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(D.length===0?D+="..":D+="/..");return D.length>0?D+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(Dt(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');Dt(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){Dt(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 VS("/",t)},parse:function(t){Dt(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};mr.posix=mr;Cy.exports=mr});import{createConfig as Rd,loadConfig as Hx,loadIgnoreConfig as zx,DEFAULT_CONFIG as $x,IGNORE_FILE as Yx}from"@redocly/openapi-core";var zl;(()=>{"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 N(P,_){for(var R,E="",M=0,q=-1,z=0,K=0;K<=P.length;++K){if(K<P.length)R=P.charCodeAt(K);else{if(R===47)break;R=47}if(R===47){if(!(q===K-1||z===1))if(q!==K-1&&z===2){if(E.length<2||M!==2||E.charCodeAt(E.length-1)!==46||E.charCodeAt(E.length-2)!==46){if(E.length>2){var _e=E.lastIndexOf("/");if(_e!==E.length-1){_e===-1?(E="",M=0):M=(E=E.slice(0,_e)).length-1-E.lastIndexOf("/"),q=K,z=0;continue}}else if(E.length===2||E.length===1){E="",M=0,q=K,z=0;continue}}_&&(E.length>0?E+="/..":E="..",M=2)}else E.length>0?E+="/"+P.slice(q+1,K):E=P.slice(q+1,K),M=K-q-1;q=K,z=0}else R===46&&z!==-1?++z:z=-1}return E}var j={resolve:function(){for(var P,_="",R=!1,E=arguments.length-1;E>=-1&&!R;E--){var M;E>=0?M=arguments[E]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(_=M+"/"+_,R=M.charCodeAt(0)===47)}return _=N(_,!R),R?_.length>0?"/"+_:"/":_.length>0?_:"."},normalize:function(P){if(b(P),P.length===0)return".";var _=P.charCodeAt(0)===47,R=P.charCodeAt(P.length-1)===47;return(P=N(P,!_)).length!==0||_||(P="."),P.length>0&&R&&(P+="/"),_?"/"+P:P},isAbsolute:function(P){return b(P),P.length>0&&P.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var P,_=0;_<arguments.length;++_){var R=arguments[_];b(R),R.length>0&&(P===void 0?P=R:P+="/"+R)}return P===void 0?".":j.normalize(P)},relative:function(P,_){if(b(P),b(_),P===_||(P=j.resolve(P))===(_=j.resolve(_)))return"";for(var R=1;R<P.length&&P.charCodeAt(R)===47;++R);for(var E=P.length,M=E-R,q=1;q<_.length&&_.charCodeAt(q)===47;++q);for(var z=_.length-q,K=M<z?M:z,_e=-1,ee=0;ee<=K;++ee){if(ee===K){if(z>K){if(_.charCodeAt(q+ee)===47)return _.slice(q+ee+1);if(ee===0)return _.slice(q+ee)}else M>K&&(P.charCodeAt(R+ee)===47?_e=ee:ee===0&&(_e=0));break}var st=P.charCodeAt(R+ee);if(st!==_.charCodeAt(q+ee))break;st===47&&(_e=ee)}var on="";for(ee=R+_e+1;ee<=E;++ee)ee!==E&&P.charCodeAt(ee)!==47||(on.length===0?on+="..":on+="/..");return on.length>0?on+_.slice(q+_e):(q+=_e,_.charCodeAt(q)===47&&++q,_.slice(q))},_makeLong:function(P){return P},dirname:function(P){if(b(P),P.length===0)return".";for(var _=P.charCodeAt(0),R=_===47,E=-1,M=!0,q=P.length-1;q>=1;--q)if((_=P.charCodeAt(q))===47){if(!M){E=q;break}}else M=!1;return E===-1?R?"/":".":R&&E===1?"//":P.slice(0,E)},basename:function(P,_){if(_!==void 0&&typeof _!="string")throw new TypeError('"ext" argument must be a string');b(P);var R,E=0,M=-1,q=!0;if(_!==void 0&&_.length>0&&_.length<=P.length){if(_.length===P.length&&_===P)return"";var z=_.length-1,K=-1;for(R=P.length-1;R>=0;--R){var _e=P.charCodeAt(R);if(_e===47){if(!q){E=R+1;break}}else K===-1&&(q=!1,K=R+1),z>=0&&(_e===_.charCodeAt(z)?--z==-1&&(M=R):(z=-1,M=K))}return E===M?M=K:M===-1&&(M=P.length),P.slice(E,M)}for(R=P.length-1;R>=0;--R)if(P.charCodeAt(R)===47){if(!q){E=R+1;break}}else M===-1&&(q=!1,M=R+1);return M===-1?"":P.slice(E,M)},extname:function(P){b(P);for(var _=-1,R=0,E=-1,M=!0,q=0,z=P.length-1;z>=0;--z){var K=P.charCodeAt(z);if(K!==47)E===-1&&(M=!1,E=z+1),K===46?_===-1?_=z:q!==1&&(q=1):_!==-1&&(q=-1);else if(!M){R=z+1;break}}return _===-1||E===-1||q===0||q===1&&_===E-1&&_===R+1?"":P.slice(_,E)},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(_,R){var E=R.dir||R.root,M=R.base||(R.name||"")+(R.ext||"");return E?E===R.root?E+M:E+"/"+M:M})(0,P)},parse:function(P){b(P);var _={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return _;var R,E=P.charCodeAt(0),M=E===47;M?(_.root="/",R=1):R=0;for(var q=-1,z=0,K=-1,_e=!0,ee=P.length-1,st=0;ee>=R;--ee)if((E=P.charCodeAt(ee))!==47)K===-1&&(_e=!1,K=ee+1),E===46?q===-1?q=ee:st!==1&&(st=1):q!==-1&&(st=-1);else if(!_e){z=ee+1;break}return q===-1||K===-1||st===0||st===1&&q===K-1&&q===z+1?K!==-1&&(_.base=_.name=z===0&&M?P.slice(1,K):P.slice(z,K)):(z===0&&M?(_.name=P.slice(1,q),_.base=P.slice(1,K)):(_.name=P.slice(z,q),_.base=P.slice(z,K)),_.ext=P.slice(q,K)),z>0?_.dir=P.slice(0,z-1):M&&(_.dir="/"),_},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var N=t[k]={exports:{}};return e[k](N,N.exports,n),N.exports}n.d=(k,b)=>{for(var N in b)n.o(b,N)&&!n.o(k,N)&&Object.defineProperty(k,N,{enumerable:!0,get:b[N]})},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:()=>_n}),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,N,j,P,_,R=!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(E,M){return E||M?E:"file"})(b,R),this.authority=N||l,this.path=(function(E,M){switch(E){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=_||l,c(this,R))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:N,authority:j,path:P,query:_,fragment:R}=b;return N===void 0?N=this.scheme:N===null&&(N=l),j===void 0?j=this.authority:j===null&&(j=l),P===void 0?P=this.path:P===null&&(P=l),_===void 0?_=this.query:_===null&&(_=l),R===void 0?R=this.fragment:R===null&&(R=l),N===this.scheme&&j===this.authority&&P===this.path&&_===this.query&&R===this.fragment?this:new D(N,j,P,_,R)}static parse(b,N=!1){let j=h.exec(b);return j?new D(j[2]||l,X(j[4]||l),X(j[5]||l),X(j[7]||l),X(j[9]||l),N):new D(l,l,l,l,l)}static file(b){let N=l;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let j=b.indexOf(d,2);j===-1?(N=b.substring(2),b=d):(N=b.substring(2,j),b=b.substring(j)||d)}return new D("file",N,b,l,l)}static from(b){let N=new D(b.scheme,b.authority,b.path,b.query,b.fragment);return c(N,!0),N}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let N=new D(b);return N._formatted=b.external,N._fsPath=b._sep===y?b.fsPath:null,N}}return b}}let y=i?1:void 0;class D extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=m(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let 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,N){let j,P=-1;for(let _=0;_<k.length;_++){let R=k.charCodeAt(_);if(R>=97&&R<=122||R>=65&&R<=90||R>=48&&R<=57||R===45||R===46||R===95||R===126||b&&R===47||N&&R===91||N&&R===93||N&&R===58)P!==-1&&(j+=encodeURIComponent(k.substring(P,_)),P=-1),j!==void 0&&(j+=k.charAt(_));else{j===void 0&&(j=k.substr(0,_));let E=I[R];E!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,_)),P=-1),j+=E):P===-1&&(P=_)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function V(k){let b;for(let N=0;N<k.length;N++){let j=k.charCodeAt(N);j===35||j===63?(b===void 0&&(b=k.substr(0,N)),b+=I[j]):b!==void 0&&(b+=k[N])}return b!==void 0?b:k}function m(k,b){let N;return N=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&&(N=N.replace(/\//g,"\\")),N}function g(k,b){let N=b?V:$,j="",{scheme:P,authority:_,path:R,query:E,fragment:M}=k;if(P&&(j+=P,j+=":"),(_||P==="file")&&(j+=d,j+=d),_){let q=_.indexOf("@");if(q!==-1){let z=_.substr(0,q);_=_.substr(q+1),q=z.lastIndexOf(":"),q===-1?j+=N(z,!1,!1):(j+=N(z.substr(0,q),!1,!1),j+=":",j+=N(z.substr(q+1),!1,!0)),j+="@"}_=_.toLowerCase(),q=_.lastIndexOf(":"),q===-1?j+=N(_,!1,!0):(j+=N(_.substr(0,q),!1,!0),j+=_.substr(q))}if(R){if(R.length>=3&&R.charCodeAt(0)===47&&R.charCodeAt(2)===58){let q=R.charCodeAt(1);q>=65&&q<=90&&(R=`/${String.fromCharCode(q+32)}:${R.substr(3)}`)}else if(R.length>=2&&R.charCodeAt(1)===58){let q=R.charCodeAt(0);q>=65&&q<=90&&(R=`${String.fromCharCode(q+32)}:${R.substr(2)}`)}j+=N(R,!0,!1)}return E&&(j+="?",j+=N(E,!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 Y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(Y)?k.replace(Y,(b=>w(b))):k}var ot=n(975);let jt=ot.posix||ot,rn="/";var _n;(function(k){k.joinPath=function(b,...N){return b.with({path:jt.join(b.path,...N)})},k.resolvePath=function(b,...N){let j=b.path,P=!1;j[0]!==rn&&(j=rn+j,P=!0);let _=jt.resolve(j,...N);return P&&_[0]===rn&&!b.authority&&(_=_.substring(1)),b.with({path:_})},k.dirname=function(b){if(b.path.length===0||b.path===rn)return b;let N=jt.dirname(b.path);return N.length===1&&N.charCodeAt(0)===46&&(N=""),b.with({path:N})},k.basename=function(b){return jt.basename(b.path)},k.extname=function(b){return jt.extname(b.path)}})(_n||(_n={})),zl=r})();var{URI:Tt,Utils:ie}=zl;import{isBrowser as ib}from"@redocly/openapi-core";import{CONFIG_FILE_NAME as rb}from"@redocly/openapi-core";var Us={languageId:"yaml",filePattern:/\.ya?ml$/i},Ws={languageId:"json",filePattern:/\.json$/i},Fs=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Us,Ws];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ie.resolvePath(ie.dirname(Le(t)),rb);return await this._fs.exists(n)?Fe(n.toString()):void 0}catch{return}}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}registerRemoteScorecardAndPlugins(t){this._remoteScorecardAndPlugins=t}get remoteScorecardAndPlugins(){return this._remoteScorecardAndPlugins}get fs(){if(!this._fs)throw new Error("FileSystemProvider not registered.");return this._fs}get documents(){if(!this._documentManager)throw new Error("DocumentsProvider not registered.");return this._documentManager}get findConfig(){if(!this._findConfig)throw new Error("ConfigFinder not registered.");return this._findConfig}get getRootWorkspaceFolderURI(){if(!this._getRootWorkspaceFolderURI)throw new Error("RootWorkspaceFolderURIGetter not registered.");return this._getRootWorkspaceFolderURI}setScorecardStatus(t){this._scorecardStatus=t}get scorecardStatus(){return this._scorecardStatus}},pe=new Fs;function Bs(e,t){let n=r=>ie.resolvePath(Le(ui(r))).toString();return n(e)===n(t)}function Le(e){return Tt.parse(e)}function ui(e){return e.startsWith("file://")?e:Tt.file(e).toString()}function Fe(e){let t=Tt.parse(e).fsPath;return ib&&t.startsWith("/")?t.slice(1):t}function br(e){let t=["https","http"],{scheme:n}=Tt.parse(e);return t.includes(n)}function vr(e){return ie.basename(Le(e))}async function $l(e,t="/"){let n=ie.resolvePath(Le(t));for(;e.path!=="/";)try{(await pe.fs.stat(ie.resolvePath(n,e.path))).isDirectory()||(e=ie.dirname(e));break}catch{e=ie.dirname(e)}return e}import{BaseResolver as Wx,Source as _d,readFileFromUrl as Bx,isAbsoluteUrl as Sd}from"@redocly/openapi-core";var li=class e{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(e.isIncremental(r)){let i=Kl(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=Yl(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=Yl(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&&Vl(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}},pi;(function(e){function t(i,o,s,a){return new li(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof li)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,o){let s=i.getText(),a=Hs(o.map(ob),(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),c=0,l=[];for(let d of a){let h=i.offsetAt(d.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&l.push(s.substring(c,h)),d.newText.length&&l.push(d.newText),c=i.offsetAt(d.range.end)}return l.push(s.substr(c)),l.join("")}e.applyEdits=r})(pi||(pi={}));function Hs(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);Hs(r,t),Hs(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 Yl(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);Vl(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Vl(e){return e===13||e===10}function Kl(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 ob(e){let t=Kl(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var _i=Oe(On(),1),xd=new Map;function Pd(e,t){return xd.set(e,t)}function Cd(e){let t=[];for(let[n,r]of xd.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Ke(e){let t=pe.documents.get(e);if(t)return t;let n=await pe.fs.readFile(Le(e),"utf-8");return pi.create(e,"yaml",1,n)}function Sr(e){return Ws.filePattern.test(e)}function Si(e){return Us.filePattern.test(e)}function pn({uri:e,ast:t,textDocument:n}){if(!(Si(e)&&/entit(y|ies)\.ya?ml$/i.test(e)))return!1;if(n){let i=n.getText();t=_i.safeLoad(i,{filename:e})}if(t?.kind===_i.Kind.MAP){let i=["openapi","swagger","asyncapi","arazzo"];for(let o of t.mappings){let s=o.key?.value;if(i.includes(s))return!1}}return!0}var mt=class extends Wx{resolveExternalRef(t,n){return Sd(n)?n:t&&Sd(t)?new URL(n,t).href:t?ie.resolvePath(ie.dirname(Le(t)),n).toString():n}async loadExternalRef(t){if(br(t)){let{body:n,mimeType:r}=await Bx(t,{...this.config.http,customFetch:fetch});return new _d(t,n,r)}return new _d(t,(await Ke(t)).getText())}};var At;async function Ri(e,t){try{let n=new mt,r=e?await pe.findConfig(e):void 0;if(r===void 0){let i=await zx(r,n);return At=await Rd($x,{externalRefResolver:n,ignore:i}),At}At=await Hx({configPath:r,externalRefResolver:n})}catch(n){t?.createEventHandleLoadConfigError?.(n?.message),At=await Rd({})}return At}async function qn(e){return At||await Ri(e)}async function dn(e){return await ya(e)?!0:!!At?.resolvedRefMap&&[...At.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Bs(vr(e),n))}async function ya(e){let t=await pe.findConfig(e);return t?Bs(e,t):!1}function Vx(e){return e.endsWith(Yx)}var Dd={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Rr={type:"object",properties:Dd,additionalProperties:!1},Kx={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Ut={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({},Dd),{like:Rr,dislike:Rr,satisfied:Rr,neutral:Rr,dissatisfied:Rr}),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:Kx},additionalProperties:!1}},additionalProperties:!1};var Gx={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},ba={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Di={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Ut,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ba,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:Gx,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1};var En={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Qx={type:"object",properties:{name:{type:"string"},items:En,queries:En,mutations:En,subscriptions:En,types:En,directives:En},required:["name"],additionalProperties:!1},Jx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Qx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},Xx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},Zx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},eP={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Xx,license:Zx},additionalProperties:!1},Nn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Jx.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:ba,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Ut,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},info:eP},additionalProperties:!1};var tP={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},nP={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"}}},Td={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},rP={type:"object",properties:{beforeInfo:{type:"array",items:Td},end:{type:"array",items:Td}}},fn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Ti={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},iP={type:"object",properties:Oi(fn.properties,["light","dark"])},oP={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"}}},sP={type:"object",properties:{error:Ti,info:Ti,redirect:Ti,success:Ti}},aP={type:"object",properties:jn(fn.properties,["dark"])},cP={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},uP={type:"object",properties:{accent:fn,border:iP,error:fn,http:oP,primary:fn,responses:sP,secondary:aP,success:fn,text:cP,tonalOffset:{type:"number"},warning:fn}},wi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},lP={type:"object",properties:{small:wi,medium:wi,large:wi,xlarge:wi}},ht={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},pP={type:"object",properties:Object.assign(Object.assign({},jn(ht.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:lP})},wd={type:"object",properties:Oi(ht.properties,["fontSize","lineHeight"])},dP={type:"object",properties:{medium:wd,small:wd}},fP={type:"object",properties:Object.assign(Object.assign({},jn(ht.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:dP})},gP={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},mP={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},kd={type:"object",properties:{fullWidth:{type:"boolean"}}},hP={type:"object",properties:{buttons:pP,httpBadges:fP,layoutControls:gP,panels:mP,tryItButton:kd,tryItSendButton:kd}},Ai={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},yP={type:"object",properties:{maxWidth:Ai}},bP={type:"object",properties:{maxWidth:Ai,middlePanelMaxWidth:Ai}},vP={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:yP,"three-panel":bP}},Ad={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},xP={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:Ad,defaultDetailsWidth:{type:"string"},examples:Ad,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},qd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},PP={type:"object",properties:Oi(qd.properties,["textTransform"])},CP={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},_P={type:"object",properties:Object.assign(Object.assign({},jn(ht.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:qd,level1items:PP,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:CP,textColor:{type:"string"},width:{type:"string"}})},ki={type:"object",properties:Object.assign(Object.assign({},ht.properties),{color:{type:"string"},transform:{type:"string"}})},SP={type:"object",properties:Object.assign(Object.assign({},ht.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"}})},RP={type:"object",properties:jn(ht.properties,["fontSize"])},DP={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},TP={type:"object",properties:Object.assign(Object.assign({code:SP,fieldName:ht},Oi(ht.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:ki,heading2:ki,heading3:ki,headings:RP,lineHeight:{type:"string"},links:DP,optimizeSpeed:{type:"boolean"},rightPanelHeading:ki,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},wP={type:"object",properties:Object.assign({color:{type:"string"}},jn(ht.properties,["fontWeight"]))},kP={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:wP}},AP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},OP={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Od={type:"object",properties:{custom:{type:"string"}}},qP={type:"object",properties:{DownloadButton:Od,NextSectionButton:Od}},EP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},NP={type:"object",properties:{borderRadius:{type:"string"}}},jP={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},MP={type:"object",properties:{breakpoints:Ai,codeBlock:kP,colors:uP,components:hP,layout:vP,logo:AP,fab:OP,overrides:qP,rightPanel:EP,schema:xP,shape:NP,sidebar:_P,spacing:jP,typography:TP,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},LP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:tP}},required:["languages"]},Ed={type:"object",properties:{theme:MP,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:LP,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:nP,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:rP,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 Oi(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function jn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var yt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}};var Dr={rules:yt,oas2Rules:yt,oas3_0Rules:yt,oas3_1Rules:yt,oas3_2Rules:yt,async2Rules:yt,async3Rules:yt,arazzo1Rules:yt,overlay1Rules:yt,openrpc1Rules:yt};var bt={type:"object",additionalProperties:!0},Tr={preprocessors:bt,oas2Preprocessors:bt,oas3_0Preprocessors:bt,oas3_1Preprocessors:bt,oas3_2Preprocessors:bt,async2Preprocessors:bt,async3Preprocessors:bt,arazzo1Preprocessors:bt,overlay1Preprocessors:bt,openrpc1Preprocessors:bt},vt={type:"object",additionalProperties:!0};var wr={decorators:vt,oas2Decorators:vt,oas3_0Decorators:vt,oas3_1Decorators:vt,oas3_2Decorators:vt,async2Decorators:vt,async3Decorators:vt,arazzo1Decorators:vt,overlay1Decorators:vt,openrpc1Decorators:vt};var Re={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Nd={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},va={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},xa={type:"array",items:Object.assign(Object.assign({},va),{properties:Object.assign(Object.assign({},va.properties),{items:{type:"array",items:va}})})},IP={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},FP={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},UP={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}},WP={type:"object",properties:Object.assign({facets:UP},Re.properties),additionalProperties:!1},BP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},qi={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Ei={type:"object",properties:Object.assign({items:xa},Re.properties),additionalProperties:!1},Ni={type:"object",additionalProperties:IP},ji={type:"object",properties:Object.assign({items:xa,copyrightText:{type:"string"},logo:Re},Re.properties),additionalProperties:!1},Mi={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Re.properties),additionalProperties:!1},Li={type:"object",properties:{head:{type:"array",items:Nd},body:{type:"array",items:Nd}},additionalProperties:!1},Ii={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},Fi={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:FP,filters:WP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:BP}},Re.properties),additionalProperties:!1},Ui={type:"object",properties:{hide:{type:"boolean"},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean",default:!1},inputType:{type:"string",enum:["button","icon"],default:"button"},inputIcon:{type:"string",enum:["chat","sparkles","redocly"],default:"sparkles"}},additionalProperties:!1}},additionalProperties:!1},Wi={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Re.properties),additionalProperties:!1},HP={type:"object",properties:Object.assign(Object.assign({},Re.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]},default:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}),additionalProperties:!1},Bi={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},actions:HP},additionalProperties:!1},Hi={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},zi={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["**/_partials/**"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},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:{}},Mn=Object.assign(Object.assign({},Di),{properties:Object.assign(Object.assign({},Di.properties),Ed.properties)}),zP={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},$P={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"]},VP={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},KP={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"]},GP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},QP={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},Pa={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},JP={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:Pa}},additionalProperties:!1,required:["trackingId"]},$i={type:"object",properties:{adobe:zP,amplitude:$P,fullstory:YP,heap:VP,rudderstack:KP,segment:GP,gtm:QP,ga:JP}},Yi={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},Vi={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Ki={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},XP={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"}}}},ZP={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:XP},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:xa,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Ln={type:"object",patternProperties:{".*":ZP}},In={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"}}},Dr),Tr),wr),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 eC={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},tC={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},nC={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},Ot={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:tC},excludes:{type:"array",items:eC},filters:{type:"array",items:nC},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},rC={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},iC={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:rC},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},oC={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:iC,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},sC={type:"object",additionalProperties:oC},Gi={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:sC,catalogs:{type:"object",properties:{all:Ot,services:Ot,domains:Ot,teams:Ot,users:Ot,apiDescriptions:Ot,dataSchemas:Ot,apiOperations:Ot},additionalProperties:Ot}},additionalProperties:!1};var kr={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none","and","or","not"]},Ca={type:"object",properties:{field:{type:"string"},operator:kr,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:kr,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}}}}}},aC={type:"object",properties:{operator:kr,conditions:{type:"array",items:Ca}},required:["operator","conditions"],additionalProperties:!1},jd={type:"array",items:{oneOf:[Ca,{type:"object",properties:{operator:kr,conditions:{type:"array",items:{oneOf:[Ca,aC]}}},required:["operator","conditions"],additionalProperties:!1}]}},Ld={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{}},additionalProperties:!1},cC={type:"array",items:{type:"object",properties:{subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},assertions:Ld},required:["subject","assertions"],additionalProperties:!1}},uC={type:"object",properties:{title:{type:"string"},subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},severity:{type:"string",enum:["error","warn","off"]},message:{type:"string"},assertions:Ld,where:cC,weight:{type:"number",default:1}},required:["subject","assertions"],additionalProperties:!1},lC={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number",default:1}},additionalProperties:!0},uC]}},pC={type:"object",properties:{name:{type:"string"},extends:{type:"array",items:{type:"string"}},rules:lC},required:["name"],additionalProperties:!1},Md={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},dC={oneOf:[Md,{type:"array",items:Md}]},fC={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[jd,{type:"object",properties:{operator:kr,conditions:jd},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:pC,minItems:1},trigger:dC},required:["name","key","entities","levels"],additionalProperties:!1},Qi={type:"array",items:fC};var Xe={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:qi,navbar:Ei,products:Ni,footer:ji,sidebar:Mi,scripts:Li,links:Ii,feedback:Ut,search:Fi,aiAssistant:Ui,colorMode:Wi,navigation:Bi,codeSnippet:Hi,markdown:zi,openapi:Mn,graphql:Nn,analytics:$i,userMenu:Yi,versionPicker:Vi,breadcrumbs:Ki,catalog:Ln,entitiesCatalog:Gi,catalogClassic:Ln,scorecard:In,scorecards:Qi,scorecardClassic:In},additionalProperties:!0};var Sa="https://redocly.com/sso/teams",Fn;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(Fn||(Fn={}));var Un;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(Un||(Un={}));var _a;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(_a||(_a={}));var Ra=["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 Ji(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>{if(n!==t)return typeof r!="object"||!r?[n,r]:Array.isArray(r)?[n,r.map(i=>typeof i=="object"?Ji(i,t):i)]:[n,Ji(r,t)]}).filter(Boolean))}var gC={type:"object",additionalProperties:{type:"string"}},mC={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Xi={type:"string",enum:["error","warn","off"]},hC={type:"object",additionalProperties:!1,properties:{schemaCheck:Xi,statusCodeCheck:Xi,contentTypeCheck:Xi,successCriteriaCheck:Xi}},yC={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},bC={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},vC={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Id={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:[yC,bC]},inputs:gC,servers:mC,severity:hC,slo:vC},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var xC={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},PC={type:"object",properties:{type:{type:"string",const:Fn.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:xC,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},CC={type:"object",properties:{type:{type:"string",const:Fn.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:Sa},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},_C={oneOf:[PC,CC],discriminator:{propertyName:"type"}},SC={type:"object",additionalProperties:_C},Bd={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},Hd={type:"boolean"},zd={type:"string",pattern:"^https?://.*"},$d={type:"string",pattern:"^https?://.*"},RC={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},DC={type:"object",additionalProperties:RC,default:{}},TC={type:"string",enum:["info","success","warning","error"],default:"info"},wC={type:"object",properties:{content:{type:"string"},dismissible:{type:"boolean",default:!1},target:{type:"string"},color:TC},required:["content"],additionalProperties:!1},kC={type:"array",items:wC,default:[]},Ta={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:Mn,graphql:Nn,theme:{type:"object",properties:{openapi:Mn,graphql:Nn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Dr),Tr),wr),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},AC={type:"object",additionalProperties:!0},OC={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Fd={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},Ud={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:Fd},default:{llmstxt:Fd.default},additionalProperties:!1},qC={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},gn={type:"object",additionalProperties:{type:"string"}},wa={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:gn,cms:gn,reunite:gn,features:{type:"object",properties:{aiSearch:gn},additionalProperties:!1},content:{type:"object",properties:{"**":gn},additionalProperties:gn}},additionalProperties:gn},EC={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},NC={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},jC={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:[EC,NC]}},additionalProperties:!1,required:["type","apiBaseUrl"]},MC={type:"object",properties:{type:{type:"string",const:Un.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},LC={type:"object",properties:{type:{type:"string",const:Un.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Da={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:[MC,LC],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},IC=Object.assign(Object.assign({},Da),{properties:Object.assign(Object.assign({},Da.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),FC={type:"object",oneOf:[Da,IC,jC],discriminator:{propertyName:"type"}},UC={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:FC}}},Wd={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"]},WC={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},BC={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:[]}}},HC={type:"object",properties:{requiresLogin:Hd,logoutReturnUrl:zd,residency:$d,sso:Bd,rbac:wa},additionalProperties:!1},Ar={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:DC,seo:Ud,rbac:wa,apiFunctions:qC,requiresLogin:Hd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:WC}},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:Ta},extends:{type:"array",items:{type:"string"}}},Dr),wr),Tr),{ssoDirect:SC,sso:Bd,residency:$d,logoutReturnUrl:zd,access:HC,developerOnboarding:UC,removeAttribution:{type:"boolean"},i18n:Wd,l10n:Wd,metadata:AC,metadataGlobs:OC,ignore:{type:"array",items:{type:"string"}},theme:Xe,reunite:Id,logo:qi,navbar:Ei,products:Ni,footer:ji,sidebar:Mi,scripts:Li,links:Ii,feedback:Ut,search:Fi,aiAssistant:Ui,colorMode:Wi,navigation:Bi,codeSnippet:Hi,markdown:zi,openapi:Mn,graphql:Nn,analytics:$i,userMenu:Yi,versionPicker:Vi,breadcrumbs:Ki,catalog:Ln,entitiesCatalog:Gi,catalogClassic:Ln,scorecard:In,scorecards:Qi,scorecardClassic:In,mcp:BC,banner:kC}),default:{redirects:{},seo:Ud.default},additionalProperties:!0},zC=Object.assign(Object.assign({},Ji(Ar,"default")),{additionalProperties:!1}),ka=Object.assign(Object.assign({$id:"root-redocly-config"},Ar),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},Ar.properties),{env:{type:"object",additionalProperties:zC}}),default:{},additionalProperties:!1});var Aa={type:"object",properties:{logo:Xe.properties.logo,navbar:Xe.properties.navbar,footer:Xe.properties.footer,sidebar:Xe.properties.sidebar,search:Xe.properties.search,codeSnippet:Xe.properties.codeSnippet,breadcrumbs:Xe.properties.breadcrumbs,openapi:Xe.properties.openapi,feedback:Xe.properties.feedback,mockServer:Ar.properties.mockServer,analytics:{type:"object",properties:{ga:Pa}}},additionalProperties:!0,default:{}},$C={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},Aa.properties),{apis:{type:"object",additionalProperties:Ta},theme:Aa}),additionalProperties:!1};var YC={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},VC={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},KC={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},GC={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"}},required:["specType"],additionalProperties:!0};var QC={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},JC={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},XC={type:"object",properties:{type:{type:"string",enum:Ra},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Wt={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:QC,links:{type:"array",items:JC},relations:{type:"array",items:XC},metadata:{type:"object",additionalProperties:!0}},Zi={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"user"},metadata:YC}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"api-operation"},metadata:KC}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"data-schema"},metadata:GC}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"api-description"},metadata:VC}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"service"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"domain"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"team"}}),required:["key","title","type"],additionalProperties:!1}]},eo={type:"object",properties:Object.assign({},Wt),required:["key","title","type"],additionalProperties:!1};var Ie=Oe(en(),1);import{getLineColLocation as lS,lintDocument as pS,makeDocumentFromString as Ss,lintConfig as dS,lintEntityFile as fS,detectSpec as gS,createConfigTypes as mS}from"@redocly/openapi-core";var Cs=Oe(On(),1);function cy(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(l){let d=i.get(l.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(l.uri,setTimeout(()=>a(l),t-h));else if(r.delete(l.uri),i.delete(l.uri),!n){let v=s.get(l.uri),y=e(o.get(l.uri));v&&v.forEach(({resolve:D})=>D(y)),s.delete(l.uri)}}catch(v){let y=s.get(l.uri);y&&y.forEach(({reject:D})=>D(v)),s.delete(l.uri)}}function c(l){let d=r.get(l.uri),h=n&&!d;return i.set(l.uri,Date.now()),o.set(l.uri,l),new Promise((v,y)=>{let D=s.get(l.uri)||[];d||(s.set(l.uri,[...D,{resolve:v,reject:y}]),r.set(l.uri,setTimeout(()=>a(l),t))),h?v(e(o.get(l.uri))):s.set(l.uri,[...D,{resolve:v,reject:y}])})}return c}function _l(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 uy(e){return e==="$ref"}async function Sl(e,t){let n=Tt.parse(t);return ie.joinPath(n,e).toString()}async function ly(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await Sl(i,n)===t)return r}function py(e){return typeof e=="string"}function Xr(e){return typeof e=="function"}function dy(e){return e?.kind===Cs.Kind.MAP}function Rl(e){return e?.kind===Cs.Kind.MAPPING}function Dl(e){return e?.kind===Cs.Kind.SEQ}function Zr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}import{bundleDocument as Z0,isPlainObject as eS,makeDocumentFromString as tS,getTypes as nS,detectSpec as rS}from"@redocly/openapi-core";var fy=new Map,_s=new Map;function iS(e){return e?Array.from(e).map(([t,n])=>[t,_l(n)]):[]}async function Tl(e,t){let n=await qn(),r=new mt(n.resolve),i=tS(e.getText(),e.uri),{bundle:o,rootType:s,refTypes:a}=await Z0({document:i,config:n,externalRefResolver:r,types:nS(rS(i.parsed))}),c=iS(a);a&&(_s=new Map([..._s,...a])),fy.set(e.uri,{uri:e.uri,name:vr(e.uri),definition:eS(o.parsed)?o.parsed:{},rootType:s,refTypes:c,errors:t})}function oS(){return Array.from(fy).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:vr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function wl(e){return _s.has(e)?_s.get(e):null}import{createConfig as sS,lintDocument as aS,loadIgnoreConfig as cS}from"@redocly/openapi-core";async function gy(e,t,n,r,i){let o=[],s=await cS(r,t);for(let a of n?.levels||[]){let c=typeof i=="string"?await uS(i):i,l=await sS({...a,plugins:c},{configPath:r,ignore:s}),d=await aS({document:e,externalRefResolver:t,config:l});o.push(...d.filter(({ignored:h})=>!h).map(h=>({...h,scorecardLevel:a.name})))}return o}async function uS(e){if(!e)return[];try{let t=typeof __dirname>"u"?"":__dirname.replaceAll(/\\/g,"/"),n=e.replaceAll("__redocly_dirname",`"${t}"`);return(await import(`data:text/javascript;base64,${btoa(n)}`)).default.map(a=>a())}catch(t){return console.error("Failed to load plugins module:",t.message),console.error(`
70
+ Plugins code preview:`,e.substring(0,500)+"..."),[]}}var hS=800,Al=cy(xS,hS);async function yS(e){let t=e.map(({documentPath:i})=>Le(i).toString()),n=await qn(),r=await pe.getRootWorkspaceFolderURI();for(let{root:i}of Object.values(n.resolvedConfig.apis??{})){let o=await Sl(i,r);if(t.includes(o))return o}return t[0]}function bS(e){try{return gS(e),!0}catch{return!1}}async function vS(e){try{let t=Ss(e.getText(),e.uri),n=new mt,r=await fS({document:t,entitySchema:Zi,entityDefaultSchema:eo,externalRefResolver:n}),i=[{uri:e.uri,diagnostics:[]}];return kl(r,i),i}catch{return[{uri:e.uri,diagnostics:[]}]}}async function xS(e){let t=e.uri,n=await qn();if(await dn(Fe(t)))try{let r=await ya(Fe(t))?Ss(e.getText(),t):Ss(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new mt,o=await dS({config:{document:r},externalRefResolver:i,externalConfigTypes:mS(ka,n)}),s=[{uri:e.uri,diagnostics:[]}];return kl(o,s),s}catch{return[{uri:e.uri,diagnostics:[]}]}else{if(pn({uri:Fe(t),textDocument:e}))return await vS(e);{let r=Cd(t),i=await yS(r||[]);i&&(e=await Ke(i),t=i);let o;try{o=Ss(e.getText(),Fe(t))}catch{return[{uri:e.uri,diagnostics:[]}]}if(!bS(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new mt(n.resolve),c=await pe.getRootWorkspaceFolderURI(),l=await ly(n.resolvedConfig.apis??{},e.uri,c),d=Date.now(),h=[],v=[];try{v=(await pS({document:o,config:n.forAlias(l),externalRefResolver:a})).filter(({ignored:m})=>!m);let $=pe.remoteScorecardAndPlugins?.scorecard||n.resolvedConfig.scorecardClassic||n.resolvedConfig.scorecard,V=$&&pe.scorecardStatus==="enabled"?await gy(o,a,$,n.configPath,pe.remoteScorecardAndPlugins?.plugins):[];h=[...v,...V]}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=SS(v);Tl(e,y);let D=Date.now()-d;s=[...new Set([e.uri,...[...a.getFiles()].map($=>Le($).toString())])].map($=>({uri:$,diagnostics:[]})),Pd(t,{dependencyPaths:a.getFiles(),durationMS:D}),kl(h,s)}catch(a){PS(e.uri,a,s)}return s}}}function ei(){return pe.documents.all().map(Al)}function PS(e,t,n){let r=n||[{uri:e,diagnostics:[]}];if(t.line&&t.col&&t.message){let i=t.source?.absoluteRef?ui(t.source.absoluteRef):e,o=t.line-1,s=t.col-1,a=Ie.Position.create(o,s),c=Ie.Diagnostic.create(Ie.Range.create(a,a),t.message,Ie.DiagnosticSeverity.Error);my(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function my(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 CS(e){return e.suggest.length===0?"":e.suggest.length===1?`
71
71
  Did you mean: ${e.suggest[0]} ?`:`
72
72
  Did you mean:
73
73
  - ${e.suggest.join(`
74
- - `)}`}function bS(e){return e.scorecardLevel?`
75
- Scorecard level: ${e.scorecardLevel}`:""}function kl(e,t){e.forEach(n=>{let r;switch(n.severity){case"error":r=Fe.DiagnosticSeverity.Error;break;case"warn":r=Fe.DiagnosticSeverity.Warning;break;default:r=Fe.DiagnosticSeverity.Warning}let i=oS(n.location[0]),o=Se(i.source.absoluteRef).toString(),s=Fe.Position.create(i.start.line-1,i.start.col-1),a=i.end?Fe.Position.create(i.end.line-1,i.end.col-1):s,c=n.message+` Rule: ${n.ruleId}.`+yS(n)+bS(n),l=Fe.Diagnostic.create(Fe.Range.create(s,a),c,r,void 0,"Redocly OpenAPI");gy(o,l,t)})}function vS(e){return e.filter(({severity:t})=>t==="error").map(t=>({...t,location:t.location.map(n=>({...n,source:{...n.source,_ast:null}}))}))}var Es=qe(en(),1);var ge=qe(en(),1);function Ce(e,t){return e?t?Ss[e+"_"+t]||t:Ss[e]||Ss.Default:Ss.Default}var xS=["newLine","MediaTypeMap","PathMap","propertyName","newItem","Root_openapi","Root","Info","Root_info","Info_title","Info_summary","Info_description","Info_termsOfService","Info_contact","Contact_name","Contact_url","Contact_email","Info_license","License_name","License_identifier","License_url","Info_version","Root_jsonSchemaDialect","jsonSchemaDialect","Root_servers","Server_List","Server_url","Server_description","Server_variables","Root_paths","Root_webhooks","Root_components","Root_security","Root_tags","Root_externalDocs","LocalComponentCompletion","FolderCompletion","FileCompletion","Default"],Ss=xS.reduce((e,t,n)=>(e[t]=String.fromCharCode(n),e),{});var tn="newItem",ti="propertyName",fr="newLine";function Rs(e){return!!(e?.name&&my[e.name])}function Ol(e){return my[e]||[]}var my={[fr]:[{label:"newLine",kind:ge.CompletionItemKind.Constructor,data:{},sortText:Ce(fr)}],[ti]:[{label:ti,kind:ge.CompletionItemKind.Constructor,data:{properties:{}},sortText:Ce(ti)}],ServerVariable_Map:[{label:"newVariableName",kind:ge.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("ServerVariable_Map")}],ResponsesMap:[{label:"200",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"201",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"204",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"301",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"303",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"400",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"401",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"403",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"404",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"500",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"503",kind:ge.CompletionItemKind.Property,data:{properties:{}}}],PathMap:[{label:"/newPath",kind:ge.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("PathMap")}],MediaTypeMap:[{label:"mime/type",kind:ge.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"application/json",kind:ge.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"application/octet-stream",kind:ge.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"multipart/form-data",kind:ge.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"application/x-www-form-urlencoded",kind:ge.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"application/xml",kind:ge.CompletionItemKind.Property,data:[],sortText:Ce("MediaTypeMap")}]};import{Oas2Types as PS,Oas3Types as CS,Oas3_1Types as _S,Oas3_2Types as hy,AsyncApi2Types as SS,AsyncApi3Types as RS,Arazzo1Types as DS,ConfigTypes as TS,normalizeTypes as El,getMajorSpecVersion as wS,createEntityTypes as kS}from"@redocly/openapi-core";var lt=qe(On(),1);var ql=new Map;async function Nl(e,t){let n=await Ve(e),r=n.getText(),i=lt.safeLoad(r,{filename:e}),{nodePath:o}=Ds({node:i,nodePath:[]},t,n,!0),s=await jl(i,e),{version:a}=Ll(i),{currentType:c,parentType:l,endPath:d}=Ts(s,o,i),h=ni(i),v=c?.name?c:l;return{nodePath:o,endPath:d,type:v,existingValues:h,types:s,descriptionVersion:a}}async function AS(e){let n=(await Ve(e)).getText(),r=lt.safeLoad(n,{filename:e});return Ml(r)}function yy(e,t){if(!e)return null;let n=e,r=!0;return t.forEach(i=>{if(r=!1,ba(n)&&n.items&&n.items[i])n=n.items[i],r=!0;else if(Pd(n)){let o=ws(n);for(let s of o)if(ya(s)&&s.key?.value===i){n=s?.value,r=!0;break}}}),r?n:(console.warn("Cannot find node by path",t),null)}function OS(e,t){for(let n=0;n<t.length;n++)if(n===t.length-1||t[n+1]>e)return n;return t.length-1}function Ds(e,t,n,r=!1){let{node:i,nodePath:o=[]}=e,s=n.offsetAt(t),a=ws(i);if(a.length===0||qS(i)||!r&&ES(i,n,t))return e;let c=NS(a,s);return Ds({nodePath:jS(o,i,a[c],c),node:a[c]},t,n,r)}function qS(e){return e?.kind===lt.Kind.MAPPING&&!e?.value}function ES(e,t,n){let r=t.getText({start:t.positionAt(t._lineOffsets[n.line]),end:n}),i=MS(e,t),o=r?.match(/^\s+/)?.[0]?.length||0;return(/^\s*[\w\-\$\/\{\}]+$/.test(r)?o:n.character)===i}function NS(e,t){for(let n=1;n<e.length;n++){let r=e[n];if(r&&r.startPosition>t)return n-1}return e.length-1}function jS(e,t,n,r){return ba(t)?[...e,r]:ya(n)&&n?.key?.value&&typeof n.key.value=="string"?[...e,n.key.value]:e}function MS(e,t){let n=e?.startPosition??0,r=OS(n,t._lineOffsets);if(r>=0){let i=t._lineOffsets[r];return n-i}return 0}function Ts(e,t,n){let r=e,i,o=new Array(t.length).fill(null);t.forEach((a,c)=>{let l;if(e?.name&&e?.name!==r?.name&&(r=e,i=a),e&&e?.properties&&!Object.keys(e?.properties).length&&e?.items){if(e.items.properties)l=e.items;else if(Sr(e.items)){let d=LS(n,typeof t[0]=="number"?t[0]:0);l=e.items(d,a)}}else if(e?.properties&&e.properties[a])l=e.properties[a],Sr(l)&&(l=l(null,a));else if(e?.additionalProperties&&!Sr(e?.additionalProperties))l=e.additionalProperties;else if(Sr(e?.additionalProperties)&&a){let d=e.additionalProperties(null,a);d&&(l=d)}l&&(e=l,o[c]=l)}),e?.name&&r?.name&&e?.name!==r?.name&&(i=void 0);let s=o.every(a=>!!a);return{currentType:s||t[0]==="openapi"||t.length===0?e:null,parentType:s?r:null,endPath:i}}function LS(e,t){let n={};if(e.kind===lt.Kind.SEQ&&e.items?.[t]){let r=e.items?.[t]?.mappings??[];for(let i of r)i.key?.value&&(n[i.key?.value]=i.value?.value)}return n}async function jl(e,t){if(await dn(t)||await dn(st(t)))return El(TS).ConfigRoot;if(pn({uri:t,ast:e})||pn({uri:st(t),ast:e})){let o=kS(Zi,eo),s=El(o);if(e?.kind===lt.Kind.SEQ)return s.EntityFileArray;let a=FS(e);return a&&s[a]?s[a]:s.EntityFileDefault}let{types:n,isDefault:r}=US(e);if(!e)return n;let i=r?wl(t):n;return r&&!wl(t)&&e?null:i||n}function FS(e){let t="type";return e?.mappings?.find(n=>n.key?.value===t&&n.value?.value)?.value?.value}function IS(e){if(ql.has(e))return ql.get(e);let t=El(WS(e)).Root;return ql.set(e,t),t}function Ml(e){let t,n=!1;if(e?.kind===lt.Kind.MAP)for(let r of e.mappings){let i=r.key?.value,o=String(r?.value?.value);if(i==="openapi"&&o.startsWith("3.2")){t="oas3_2";break}if(i==="openapi"&&o.startsWith("3.1")){t="oas3_1";break}if(i==="openapi"&&o.startsWith("3.0")){t="oas3_0";break}if(i==="swagger"&&o==="2.0"){t="oas2";break}if(i==="asyncapi"&&o.startsWith("2."))return{version:"async2",isDefault:!1};if(i==="asyncapi"&&o.startsWith("3."))return{version:"async3",isDefault:!1};if(i==="arazzo")return{version:"arazzo1",isDefault:!1}}return t||(t="oas3_2",n=!0),{version:t,isDefault:n}}function Ll(e){let{version:t,isDefault:n}=Ml(e);return{version:wS(t),isDefault:n}}function US(e){let{version:t,isDefault:n}=Ml(e);return{types:IS(t),isDefault:n}}function ws(e){switch(e?.kind){case lt.Kind.MAPPING:return[e.key,e.value];case lt.Kind.MAP:return e.mappings;case lt.Kind.SEQ:return e?.items;default:return[]}}function WS(e){switch(e){case"oas3_2":return hy;case"oas3_1":return _S;case"oas3_0":return CS;case"oas2":return PS;case"async2":return SS;case"async3":return RS;case"arazzo1":return DS;default:return hy}}function ni(e,t,n){if(typeof t>"u"&&(t={}),typeof n>"u"&&(n=0),!e)return{};let r=e?.mappings||e?.items;if(r){let i=0;for(let o of r)o?.value===null||!o?.value?.value?t[o?.key?.value||i]={value:xd(o?.value)?o?.value:null,startOffset:o?.key?.value?o.startPosition+o.key.value.length+1:null,endOffset:null,indent:n}:t[o?.key?.value||i]={value:o?.value?.value,rawValue:o?.value?.rawValue||null,startOffset:o?.value?.startPosition||null,endOffset:o?.value?.endPosition||null,indent:n},Object.keys(o?.value||o||{}).includes("items")?(t[o?.key?.value||i]={type:"sequence",startOffset:o.startPosition,endOffset:o.endPosition,indent:n,value:null},ni(o?.value||o,t[o?.key?.value||i],n+1)):Object.keys(o?.value||o||{}).includes("mappings")&&(t[o?.key?.value||i]={type:"map",startOffset:o.startPosition,endOffset:o.endPosition,indent:n,value:null},ni(o?.value||o,t[o?.key?.value||i],n+1)),i++}return t}import{mapTypeToComponent as by}from"@redocly/openapi-core";var Fl={Schema:[{name:"$ref",value:{type:"string",name:"Schema"}}],PathItem:[{name:"$ref",value:{type:"string",name:"PathItem"}}],Parameter:[{name:"$ref",value:{type:"string",name:"Parameter"}}],Response:[{name:"$ref",value:{type:"string",name:"Response"}}],Example:[{name:"$ref",value:{type:"string",name:"Example"}}],RequestBody:[{name:"$ref",value:{type:"string",name:"RequestBody"}}],Header:[{name:"$ref",value:{type:"string",name:"Header"}}],SecuritySchema:[{name:"$ref",value:{type:"string",name:"SecuritySchema"}}],Link:[{name:"$ref",value:{type:"string",name:"Link"}}],Callback:[{name:"$ref",value:{type:"string",name:"Callback"}}]};function vy(e){let t=Fl[e.name];if(t&&e.properties)for(let n of t)e.properties[n.name]=n.value;return e}var ks=qe(en(),1),pt=class{constructor({kind:t,label:n,value:r,textEdit:i,filterText:o,sortText:s,data:a}){this.kind=t||ks.CompletionItemKind.Value,this.label=n;let{node:c,lineOffset:l,position:d}=a;this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.textEdit=i||(c?.value&&d&&l?this.getTextEdit(c,d,l):void 0)}getTextEdit(t,n,r){let i=t.startPosition-r,o=t.singleQuoted||t.doubleQuoted?2:0,s=i+t.value.length+o;return ks.TextEdit.replace({start:{line:n.line,character:i},end:{line:n.line,character:s}},this.insertText)}};var gr=qe(en(),1),Cn=class{constructor({kind:t,label:n,insertText:r,insertTextFormat:i,filterText:o,sortText:s,data:a}){this.insertTextFormat=i||n.includes("$")?gr.InsertTextFormat.PlainText:gr.InsertTextFormat.Snippet,this.kind=t||gr.CompletionItemKind.Property,this.label=n,this.data=a||{},this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.command=this.kind===gr.CompletionItemKind.Property?{title:"Suggested values",command:"editor.action.triggerSuggest"}:void 0}};var ri={example:"example",default:"default",enum:"enum",ref:"$ref"},As=[ri.default,ri.example];var _y=qe(On(),1);var we={};Ms(we,{default:()=>Cy.default});Ls(we,qe(Il()));var Cy=qe(Il());function HS(e,t,n){let r=t.slice(0,t.length-1),{currentType:i}=Ts(e,r,n);if(i?.name){let[o]=Fl[i.name]||[];return o?.value}return null}function zS(e,t,n){let r=t[t.length-1];if(bd(r))return HS(e,t,n);let{currentType:i}=Ts(e,t,n);return i?Rs(i)?i:i?.name&&(i?.name.includes("Map")||i?.name.includes("Named"))?{name:ti,properties:{}}:i:null}async function Sy(e,t){let n=await Ve(e),r=n.getText(),i=(0,_y.safeLoad)(r,{filename:e}),{node:o,nodePath:s}=Ds({node:i,nodePath:[]},t,n),a=await jl(i,e),c=zS(a,s,i),l=n._lineOffsets[t.line],d=n.getText({start:n.positionAt(l),end:t});return{currentAst:i,node:o,nodePath:s,position:t,lineText:d,lineOffset:l,openApiType:c}}async function Ry(e,t){let n=ne.resolvePath(Se(e)),r=ne.dirname(n),i=await $l(ne.joinPath(r,t),r.path),o=ne.resolvePath(r,i.path);return{refPath:t,refDirPath:i,refDirAbsolutePath:o,isAbsolutePath:t?(0,we.isAbsolute)(t):!1,docAbsolutePath:n,docAbsoluteDirPath:r,root:"/"}}var Dy=qe(en(),1);var Os=class extends pt{constructor(t){super(t),this.kind=Dy.CompletionItemKind.Folder,this.command={title:"Complete path",command:"editor.action.triggerSuggest",arguments:[]}}};var Ty=qe(en(),1);var qs=class extends pt{constructor(t){super(t),this.kind=Ty.CompletionItemKind.File}};var YS=pe.supportedLanguages.concat({languageId:"markdown",filePattern:/\.md$/});function VS(e){let{refPath:t,docAbsoluteDirPath:n,isAbsolutePath:r,root:i}=e,o=(0,we.resolve)(n.path,t,".."),s=r?o:(0,we.relative)(n.path,o),a=s&&s!==i?"/":"";return{name:"../",type:1,matchBy:t,sortBy:Ce("FolderCompletion"),value:`${s}${a}`}}async function KS(e,t,n){let r=[],{refDirAbsolutePath:i,docAbsolutePath:o}=n;for(let s of e)try{let a=ne.resolvePath(i,s),c=await pe.fs.stat(a);c.isFile()&&a.path!==o.path&&t.supportedFiles.some(l=>l.filePattern.test(s))&&r.push({name:s,type:0}),c.isDirectory()&&r.push({name:s,type:1})}catch{continue}return r}function wy(e,t){let{docAbsoluteDirPath:n,isAbsolutePath:r,refDirAbsolutePath:i,root:o,refPath:s}=t,a=[];return i.path!==o&&a.push(VS(t)),a.concat(e.map(({name:c,type:l})=>{let d=(0,we.resolve)(i.path,c),h=(0,we.relative)(n.path,d),v=s.includes(we.sep)?s.slice(0,s.lastIndexOf(we.sep)+1):s+we.sep,y=r?d:h;if(l===0)return{type:l,name:c,value:y,sortBy:`${Ce("FileCompletion")}${c}`,matchBy:`${v}${c}`};let D=`${c}/`;return{type:l,name:D,value:`${y}${h?"/":""}`,sortBy:`${Ce("FolderCompletion")}${c}`,matchBy:`${v}${c}`}}))}function ky(e,t){let{node:n,lineOffset:r,position:i}=t;return e.map(o=>{let{name:s,value:a,matchBy:c,sortBy:l,type:d}=o,h={label:s,filterText:Rr(c,n),sortText:l,value:a,data:{lineOffset:r,position:i,node:n}};return d===1?new Os(h):new qs(h)})}async function Ay(e,t){let{node:n}=t,r=n.value??"",i=await Ry(e,r),{refDirAbsolutePath:o}=i,s=[];try{s=await pe.fs.readDir(o)}catch{return ky(wy([],i),t)}let a=await KS(s,{supportedFiles:YS},i);return ky(wy(a,i),t)}import{isEmptyObject as GS}from"@redocly/openapi-core";function Oy(e,t){if(t?.items)return"- "+Oy(e,t.items);if(t?.required)return Object.values(t.required).map((n,r)=>`${n}: \${${r+1}}`).join(`
76
- `);if(e==="openapi"){let n="3.1.0",[r,i,o]=n.split(".");return`\${1:${r}}.\${2:${i}}.\${3:${o}}`}return""}function QS(e,t,n,r){if(e===tn)return"";if(r?.items||r?.required){let i=`
74
+ - `)}`}function _S(e){return e.scorecardLevel?`
75
+ Scorecard level: ${e.scorecardLevel}`:""}function kl(e,t){e.forEach(n=>{let r;switch(n.severity){case"error":r=Ie.DiagnosticSeverity.Error;break;case"warn":r=Ie.DiagnosticSeverity.Warning;break;default:r=Ie.DiagnosticSeverity.Warning}let i=lS(n.location[0]),o=ui(i.source.absoluteRef),s=Ie.Position.create(i.start.line-1,i.start.col-1),a=i.end?Ie.Position.create(i.end.line-1,i.end.col-1):s,c=n.message+` Rule: ${n.ruleId}.`+CS(n)+_S(n),l=Ie.Diagnostic.create(Ie.Range.create(s,a),c,r,void 0,"Redocly OpenAPI");my(o,l,t)})}function SS(e){return e.filter(({severity:t})=>t==="error").map(t=>({...t,location:t.location.map(n=>({...n,source:{...n.source,_ast:null}}))}))}var Ns=Oe(en(),1);var ge=Oe(en(),1);function Ce(e,t){return e?t?Rs[e+"_"+t]||t:Rs[e]||Rs.Default:Rs.Default}var RS=["newLine","MediaTypeMap","PathMap","propertyName","newItem","Root_openapi","Root","Info","Root_info","Info_title","Info_summary","Info_description","Info_termsOfService","Info_contact","Contact_name","Contact_url","Contact_email","Info_license","License_name","License_identifier","License_url","Info_version","Root_jsonSchemaDialect","jsonSchemaDialect","Root_servers","Server_List","Server_url","Server_description","Server_variables","Root_paths","Root_webhooks","Root_components","Root_security","Root_tags","Root_externalDocs","LocalComponentCompletion","FolderCompletion","FileCompletion","Default"],Rs=RS.reduce((e,t,n)=>(e[t]=String.fromCharCode(n),e),{});var tn="newItem",ti="propertyName",fr="newLine";function Ds(e){return!!(e?.name&&hy[e.name])}function Ol(e){return hy[e]||[]}var hy={[fr]:[{label:"newLine",kind:ge.CompletionItemKind.Constructor,data:{},sortText:Ce(fr)}],[ti]:[{label:ti,kind:ge.CompletionItemKind.Constructor,data:{properties:{}},sortText:Ce(ti)}],ServerVariable_Map:[{label:"newVariableName",kind:ge.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("ServerVariable_Map")}],ResponsesMap:[{label:"200",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"201",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"204",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"301",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"303",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"400",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"401",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"403",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"404",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"500",kind:ge.CompletionItemKind.Property,data:{properties:{}}},{label:"503",kind:ge.CompletionItemKind.Property,data:{properties:{}}}],PathMap:[{label:"/newPath",kind:ge.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("PathMap")}],MediaTypeMap:[{label:"mime/type",kind:ge.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"application/json",kind:ge.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"application/octet-stream",kind:ge.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"multipart/form-data",kind:ge.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"application/x-www-form-urlencoded",kind:ge.CompletionItemKind.Property,data:{properties:{}},sortText:Ce("MediaTypeMap")},{label:"application/xml",kind:ge.CompletionItemKind.Property,data:[],sortText:Ce("MediaTypeMap")}]};import{Oas2Types as DS,Oas3Types as TS,Oas3_1Types as wS,Oas3_2Types as yy,AsyncApi2Types as kS,AsyncApi3Types as AS,Arazzo1Types as OS,ConfigTypes as qS,normalizeTypes as El,getMajorSpecVersion as ES,createEntityTypes as NS}from"@redocly/openapi-core";var lt=Oe(On(),1);var ql=new Map;async function Nl(e,t){let n=await Ke(e),r=n.getText(),i=lt.safeLoad(r,{filename:e}),{nodePath:o}=Ts({node:i,nodePath:[]},t,n,!0),s=await jl(i,e),{version:a}=Ll(i),{currentType:c,parentType:l,endPath:d}=ws(s,o,i),h=ni(i),v=c?.name?c:l;return{nodePath:o,endPath:d,type:v,existingValues:h,types:s,descriptionVersion:a}}async function jS(e){let n=(await Ke(e)).getText(),r=lt.safeLoad(n,{filename:e});return Ml(r)}function by(e,t){if(!e)return null;let n=e,r=!0;return t.forEach(i=>{if(r=!1,Dl(n)&&n.items&&n.items[i])n=n.items[i],r=!0;else if(dy(n)){let o=ks(n);for(let s of o)if(Rl(s)&&s.key?.value===i){n=s?.value,r=!0;break}}}),r?n:(console.warn("Cannot find node by path",t),null)}function MS(e,t){for(let n=0;n<t.length;n++)if(n===t.length-1||t[n+1]>e)return n;return t.length-1}function Ts(e,t,n,r=!1){let{node:i,nodePath:o=[]}=e,s=n.offsetAt(t),a=ks(i);if(a.length===0||LS(i)||!r&&IS(i,n,t))return e;let c=FS(a,s);return Ts({nodePath:US(o,i,a[c],c),node:a[c]},t,n,r)}function LS(e){return e?.kind===lt.Kind.MAPPING&&!e?.value}function IS(e,t,n){let r=t.getText({start:t.positionAt(t._lineOffsets[n.line]),end:n}),i=WS(e,t),o=r?.match(/^\s+/)?.[0]?.length||0;return(/^\s*[\w\-\$\/\{\}]+$/.test(r)?o:n.character)===i}function FS(e,t){for(let n=1;n<e.length;n++){let r=e[n];if(r&&r.startPosition>t)return n-1}return e.length-1}function US(e,t,n,r){return Dl(t)?[...e,r]:Rl(n)&&n?.key?.value&&typeof n.key.value=="string"?[...e,n.key.value]:e}function WS(e,t){let n=e?.startPosition??0,r=MS(n,t._lineOffsets);if(r>=0){let i=t._lineOffsets[r];return n-i}return 0}function ws(e,t,n){let r=e,i,o=new Array(t.length).fill(null);t.forEach((a,c)=>{let l;if(e?.name&&e?.name!==r?.name&&(r=e,i=a),e&&e?.properties&&!Object.keys(e?.properties).length&&e?.items){if(e.items.properties)l=e.items;else if(Xr(e.items)){let d=BS(n,typeof t[0]=="number"?t[0]:0);l=e.items(d,a)}}else if(e?.properties&&e.properties[a])l=e.properties[a],Xr(l)&&(l=l(null,a));else if(e?.additionalProperties&&!Xr(e?.additionalProperties))l=e.additionalProperties;else if(Xr(e?.additionalProperties)&&a){let d=e.additionalProperties(null,a);d&&(l=d)}l&&(e=l,o[c]=l)}),e?.name&&r?.name&&e?.name!==r?.name&&(i=void 0);let s=o.every(a=>!!a);return{currentType:s||t[0]==="openapi"||t.length===0?e:null,parentType:s?r:null,endPath:i}}function BS(e,t){let n={};if(e.kind===lt.Kind.SEQ&&e.items?.[t]){let r=e.items?.[t]?.mappings??[];for(let i of r)i.key?.value&&(n[i.key?.value]=i.value?.value)}return n}async function jl(e,t){if(await dn(t)||await dn(Fe(t)))return El(qS).ConfigRoot;if(pn({uri:t,ast:e})||pn({uri:Fe(t),ast:e})){let o=NS(Zi,eo),s=El(o);if(e?.kind===lt.Kind.SEQ)return s.EntityFileArray;let a=HS(e);return a&&s[a]?s[a]:s.EntityFileDefault}let{types:n,isDefault:r}=$S(e);if(!e)return n;let i=r?wl(t):n;return r&&!wl(t)&&e?null:i||n}function HS(e){let t="type";return e?.mappings?.find(n=>n.key?.value===t&&n.value?.value)?.value?.value}function zS(e){if(ql.has(e))return ql.get(e);let t=El(YS(e)).Root;return ql.set(e,t),t}function Ml(e){let t,n=!1;if(e?.kind===lt.Kind.MAP)for(let r of e.mappings){let i=r.key?.value,o=String(r?.value?.value);if(i==="openapi"&&o.startsWith("3.2")){t="oas3_2";break}if(i==="openapi"&&o.startsWith("3.1")){t="oas3_1";break}if(i==="openapi"&&o.startsWith("3.0")){t="oas3_0";break}if(i==="swagger"&&o==="2.0"){t="oas2";break}if(i==="asyncapi"&&o.startsWith("2."))return{version:"async2",isDefault:!1};if(i==="asyncapi"&&o.startsWith("3."))return{version:"async3",isDefault:!1};if(i==="arazzo")return{version:"arazzo1",isDefault:!1}}return t||(t="oas3_2",n=!0),{version:t,isDefault:n}}function Ll(e){let{version:t,isDefault:n}=Ml(e);return{version:ES(t),isDefault:n}}function $S(e){let{version:t,isDefault:n}=Ml(e);return{types:zS(t),isDefault:n}}function ks(e){switch(e?.kind){case lt.Kind.MAPPING:return[e.key,e.value];case lt.Kind.MAP:return e.mappings;case lt.Kind.SEQ:return e?.items;default:return[]}}function YS(e){switch(e){case"oas3_2":return yy;case"oas3_1":return wS;case"oas3_0":return TS;case"oas2":return DS;case"async2":return kS;case"async3":return AS;case"arazzo1":return OS;default:return yy}}function ni(e,t,n){if(typeof t>"u"&&(t={}),typeof n>"u"&&(n=0),!e)return{};let r=e?.mappings||e?.items;if(r){let i=0;for(let o of r)o?.value===null||!o?.value?.value?t[o?.key?.value||i]={value:py(o?.value)?o?.value:null,startOffset:o?.key?.value?o.startPosition+o.key.value.length+1:null,endOffset:null,indent:n}:t[o?.key?.value||i]={value:o?.value?.value,rawValue:o?.value?.rawValue||null,startOffset:o?.value?.startPosition||null,endOffset:o?.value?.endPosition||null,indent:n},Object.keys(o?.value||o||{}).includes("items")?(t[o?.key?.value||i]={type:"sequence",startOffset:o.startPosition,endOffset:o.endPosition,indent:n,value:null},ni(o?.value||o,t[o?.key?.value||i],n+1)):Object.keys(o?.value||o||{}).includes("mappings")&&(t[o?.key?.value||i]={type:"map",startOffset:o.startPosition,endOffset:o.endPosition,indent:n,value:null},ni(o?.value||o,t[o?.key?.value||i],n+1)),i++}return t}import{mapTypeToComponent as vy}from"@redocly/openapi-core";var Il={Schema:[{name:"$ref",value:{type:"string",name:"Schema"}}],PathItem:[{name:"$ref",value:{type:"string",name:"PathItem"}}],Parameter:[{name:"$ref",value:{type:"string",name:"Parameter"}}],Response:[{name:"$ref",value:{type:"string",name:"Response"}}],Example:[{name:"$ref",value:{type:"string",name:"Example"}}],RequestBody:[{name:"$ref",value:{type:"string",name:"RequestBody"}}],Header:[{name:"$ref",value:{type:"string",name:"Header"}}],SecuritySchema:[{name:"$ref",value:{type:"string",name:"SecuritySchema"}}],Link:[{name:"$ref",value:{type:"string",name:"Link"}}],Callback:[{name:"$ref",value:{type:"string",name:"Callback"}}]};function xy(e){let t=Il[e.name];if(t&&e.properties)for(let n of t)e.properties[n.name]=n.value;return e}var As=Oe(en(),1),pt=class{constructor({kind:t,label:n,value:r,textEdit:i,filterText:o,sortText:s,data:a}){this.kind=t||As.CompletionItemKind.Value,this.label=n;let{node:c,lineOffset:l,position:d}=a;this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.textEdit=i||(c?.value&&d&&l?this.getTextEdit(c,d,l):void 0)}getTextEdit(t,n,r){let i=t.startPosition-r,o=t.singleQuoted||t.doubleQuoted?2:0,s=i+t.value.length+o;return As.TextEdit.replace({start:{line:n.line,character:i},end:{line:n.line,character:s}},this.insertText)}};var gr=Oe(en(),1),Cn=class{constructor({kind:t,label:n,insertText:r,insertTextFormat:i,filterText:o,sortText:s,data:a}){this.insertTextFormat=i||n.includes("$")?gr.InsertTextFormat.PlainText:gr.InsertTextFormat.Snippet,this.kind=t||gr.CompletionItemKind.Property,this.label=n,this.data=a||{},this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.command=this.kind===gr.CompletionItemKind.Property?{title:"Suggested values",command:"editor.action.triggerSuggest"}:void 0}};var ri={example:"example",default:"default",enum:"enum",ref:"$ref"},Os=[ri.default,ri.example];var Sy=Oe(On(),1);var Te={};Ls(Te,{default:()=>_y.default});Is(Te,Oe(Fl()));var _y=Oe(Fl());function KS(e,t,n){let r=t.slice(0,t.length-1),{currentType:i}=ws(e,r,n);if(i?.name){let[o]=Il[i.name]||[];return o?.value}return null}function GS(e,t,n){let r=t[t.length-1];if(uy(r))return KS(e,t,n);let{currentType:i}=ws(e,t,n);return i?Ds(i)?i:i?.name&&(i?.name.includes("Map")||i?.name.includes("Named"))?{name:ti,properties:{}}:i:null}async function Ry(e,t){let n=await Ke(e),r=n.getText(),i=(0,Sy.safeLoad)(r,{filename:e}),{node:o,nodePath:s}=Ts({node:i,nodePath:[]},t,n),a=await jl(i,e),c=GS(a,s,i),l=n._lineOffsets[t.line],d=n.getText({start:n.positionAt(l),end:t});return{currentAst:i,node:o,nodePath:s,position:t,lineText:d,lineOffset:l,openApiType:c}}async function Dy(e,t){let n=ie.resolvePath(Le(e)),r=ie.dirname(n),i=await $l(ie.joinPath(r,t),r.path),o=ie.resolvePath(r,i.path);return{refPath:t,refDirPath:i,refDirAbsolutePath:o,isAbsolutePath:t?(0,Te.isAbsolute)(t):!1,docAbsolutePath:n,docAbsoluteDirPath:r,root:"/"}}var Ty=Oe(en(),1);var qs=class extends pt{constructor(t){super(t),this.kind=Ty.CompletionItemKind.Folder,this.command={title:"Complete path",command:"editor.action.triggerSuggest",arguments:[]}}};var wy=Oe(en(),1);var Es=class extends pt{constructor(t){super(t),this.kind=wy.CompletionItemKind.File}};var JS=pe.supportedLanguages.concat({languageId:"markdown",filePattern:/\.md$/});function XS(e){let{refPath:t,docAbsoluteDirPath:n,isAbsolutePath:r,root:i}=e,o=(0,Te.resolve)(n.path,t,".."),s=r?o:(0,Te.relative)(n.path,o),a=s&&s!==i?"/":"";return{name:"../",type:1,matchBy:t,sortBy:Ce("FolderCompletion"),value:`${s}${a}`}}async function ZS(e,t,n){let r=[],{refDirAbsolutePath:i,docAbsolutePath:o}=n;for(let s of e)try{let a=ie.resolvePath(i,s),c=await pe.fs.stat(a);c.isFile()&&a.path!==o.path&&t.supportedFiles.some(l=>l.filePattern.test(s))&&r.push({name:s,type:0}),c.isDirectory()&&r.push({name:s,type:1})}catch{continue}return r}function ky(e,t){let{docAbsoluteDirPath:n,isAbsolutePath:r,refDirAbsolutePath:i,root:o,refPath:s}=t,a=[];return i.path!==o&&a.push(XS(t)),a.concat(e.map(({name:c,type:l})=>{let d=(0,Te.resolve)(i.path,c),h=(0,Te.relative)(n.path,d),v=s.includes(Te.sep)?s.slice(0,s.lastIndexOf(Te.sep)+1):s+Te.sep,y=r?d:h;if(l===0)return{type:l,name:c,value:y,sortBy:`${Ce("FileCompletion")}${c}`,matchBy:`${v}${c}`};let D=`${c}/`;return{type:l,name:D,value:`${y}${h?"/":""}`,sortBy:`${Ce("FolderCompletion")}${c}`,matchBy:`${v}${c}`}}))}function Ay(e,t){let{node:n,lineOffset:r,position:i}=t;return e.map(o=>{let{name:s,value:a,matchBy:c,sortBy:l,type:d}=o,h={label:s,filterText:Zr(c,n),sortText:l,value:a,data:{lineOffset:r,position:i,node:n}};return d===1?new qs(h):new Es(h)})}async function Oy(e,t){let{node:n}=t,r=n.value??"",i=await Dy(e,r),{refDirAbsolutePath:o}=i,s=[];try{s=await pe.fs.readDir(o)}catch{return Ay(ky([],i),t)}let a=await ZS(s,{supportedFiles:JS},i);return Ay(ky(a,i),t)}import{isEmptyObject as eR}from"@redocly/openapi-core";function qy(e,t){if(t?.items)return"- "+qy(e,t.items);if(t?.required)return Object.values(t.required).map((n,r)=>`${n}: \${${r+1}}`).join(`
76
+ `);if(e==="openapi"){let n="3.1.0",[r,i,o]=n.split(".");return`\${1:${r}}.\${2:${i}}.\${3:${o}}`}return""}function tR(e,t,n,r){if(e===tn)return"";if(r?.items||r?.required){let i=`
77
77
  `;return n.includes(`
78
78
  `)&&(i+=" "),i}return n.includes(`
79
- `)||!t?"":" "}function JS(e){return e===tn?"":": "}function XS(e){return e?.includes(":")||e?.includes(": ")?`
80
- `:e?.includes(":")&&!e?.includes(": ")?" ":""}function ZS(e,t){return!t||GS(t)?"":e.includes(`
79
+ `)||!t?"":" "}function nR(e){return e===tn?"":": "}function rR(e){return e?.includes(":")||e?.includes(": ")?`
80
+ `:e?.includes(":")&&!e?.includes(": ")?" ":""}function iR(e,t){return!t||eR(t)?"":e.includes(`
81
81
  `)?`
82
82
  `:`
83
83
  `}function ii(e,t,n=!0){if(e===fr)return`
84
- `;let r=XS(t?.lineText),i=JS(e),o=e===tn?"":e,s=Oy(e,t),a=QS(e,s,r,t),c=n?ZS(r,t?.properties):" ";return`${r}${o}${i}${a}${s}${c}`}function eR(e,t){let{version:n}=Ll(e),r=by(t,n);if(!r)return[];let i=yy(e,["components",r]);return i?(ws(i.value||i)||[]).map(({key:{value:s}})=>`#/components/${r}/${s}`):[]}function tR(e){let{node:t,position:n,lineOffset:r}=e,i=As.includes(t.key?.value)?t:As.includes(t.parent?.key?.value)?t.parent:null;return i?i?.parent?.mappings?.find(({key:s})=>s?.value===ri.enum)?.value?.items?.map(({value:s})=>new pt({label:s,data:{node:t,position:n,lineOffset:r}}))||[]:[]}async function nR(e,t){let{position:n,openApiType:r,currentAst:i,lineOffset:o,node:s}=t,a=r?.name?eR(i,r.name):[];return[...await Ay(e,t),...a.map(l=>{let d=Rr(l,s);return new pt({label:l,filterText:Rr(l,s),value:d,sortText:`${Ce("LocalComponentCompletion")}${l}`,data:{lineOffset:o,position:n,node:s}})})]}function rR(e){let{openApiType:t,node:n,position:r,lineOffset:i}=e;return t?.enum?t.enum.map(o=>new pt({label:o,kind:Es.CompletionItemKind.EnumMember,data:{node:n,position:r,lineOffset:i}})):[]}function iR(e){let{node:t,position:n,lineOffset:r}=e;return["true","false"].map(i=>new pt({label:i,data:{node:t,position:n,lineOffset:r}}))}function oR(e){let{currentAst:t,nodePath:n,node:r,openApiType:i,lineText:o}=e,s=aR(t,n,r);return cR(i,s,o)}async function sR(e,t){let{node:n,nodePath:r,openApiType:i}=t;if(!n)return[];let o=n.key?.value||(r.length?r[r.length-1]:null);return o&&i?.name&&ri.ref===o?nR(e,t):As.includes(o)?tR(t):i?.enum?rR(t):i?.type==="boolean"?iR(t):[]}async function qy(e,t){let n=await Sy(e,t);return n.openApiType?.properties?oR(n):sR(e,n)}function aR(e,t,n){if(!e)return[];let i=ni(e);for(let a=0;a<t.length;a++)i[t[a]]&&(i=i[t[a]]);let o=i?Object.keys(i).filter(a=>i[a]&&typeof i[a]=="object"):[],s=n?.value?.mappings||n?.mappings;if(s){let a=s.map(c=>c.key?.value);o.push(...a)}return!o.length&&n?.value&&o.push(n.value),o}function cR(e,t,n){if(!e)return[];if(vy(e),Rs(e))return Ol(e?.name).filter(r=>!t.includes(r.label)).map(r=>new Cn({...r,insertText:ii(r.label,{...r.data,...e,lineText:n})}));if(e.properties&&Object.keys(e.properties).length){let r=Object.keys(e.properties).filter(i=>!t.includes(i)).map(i=>{let o={...e?.properties?.[i]||{},lineText:n};return new Cn({label:i,kind:Es.CompletionItemKind.Property,insertText:ii(i,o,!o?.items),sortText:Ce(e?.name,i)})});return n.endsWith(":")&&r.push(...Ol(fr).map(i=>new Cn({...i,insertText:ii(i.label,{...i.data,lineText:n})}))),r}return e.items&&Object.keys(e.items).length?[new Cn({label:tn,kind:Es.CompletionItemKind.Constructor,insertText:ii(tn,{...e,lineText:n}),sortText:Ce(tn)})]:[]}var Et=qe(Ps(),1);var nn=qe(On(),1);import{getAstNodeByPointer as uR}from"@redocly/openapi-core";async function lR({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(Mt.parse(i.uri)),o).toString():t.uri,d;try{d=await Ve(l)}catch{return}let h=(0,nn.safeLoad)(d.getText(),{filename:st(l)}),v=uR(h,`#/${s}`,!0),y=Et.Range.create(d.positionAt(v?.startPosition||0),d.positionAt(v?.endPosition||0));return[Et.LocationLink.create(l,Et.Range.create(0,0,d.lineCount,0),y,Et.Range.create(Et.Position.create(e.line,a),Et.Position.create(e.line,c)))]}}async function Ey({position:e,textDocument:t}){let n;try{n=await Ve(t.uri)}catch{return}let o=n.getText().split(/\r\n|[\n\r]/g)[e.line],s=(0,nn.safeLoad)(o,{filename:st(t.uri)}),a;switch(s.kind){case nn.Kind.SCALAR:{a=s.parent||{value:{value:s?.value}};break}case nn.Kind.MAP:{a=s?.mappings?.[0];break}case nn.Kind.SEQ:{let l=s?.items?.[0];a=l?.kind===nn.Kind.MAP?l?.mappings?.[0]:{value:{value:l?.value}};break}default:a=null}let c=a?.value?.value;if(c&&!br(c))return lR({position:e,textDocument:t,value:c,line:o,document:n})}var My=qe(Ps(),1);function Ny({nodePath:e,propertyTypeName:t,typeName:n,documentationLink:r}){let i=e.join(" \u203A "),o=r&&r.trim()?`
84
+ `;let r=rR(t?.lineText),i=nR(e),o=e===tn?"":e,s=qy(e,t),a=tR(e,s,r,t),c=n?iR(r,t?.properties):" ";return`${r}${o}${i}${a}${s}${c}`}function oR(e,t){let{version:n}=Ll(e),r=vy(t,n);if(!r)return[];let i=by(e,["components",r]);return i?(ks(i.value||i)||[]).map(({key:{value:s}})=>`#/components/${r}/${s}`):[]}function sR(e){let{node:t,position:n,lineOffset:r}=e,i=Os.includes(t.key?.value)?t:Os.includes(t.parent?.key?.value)?t.parent:null;return i?i?.parent?.mappings?.find(({key:s})=>s?.value===ri.enum)?.value?.items?.map(({value:s})=>new pt({label:s,data:{node:t,position:n,lineOffset:r}}))||[]:[]}async function aR(e,t){let{position:n,openApiType:r,currentAst:i,lineOffset:o,node:s}=t,a=r?.name?oR(i,r.name):[];return[...await Oy(e,t),...a.map(l=>{let d=Zr(l,s);return new pt({label:l,filterText:Zr(l,s),value:d,sortText:`${Ce("LocalComponentCompletion")}${l}`,data:{lineOffset:o,position:n,node:s}})})]}function cR(e){let{openApiType:t,node:n,position:r,lineOffset:i}=e;return t?.enum?t.enum.map(o=>new pt({label:o,kind:Ns.CompletionItemKind.EnumMember,data:{node:n,position:r,lineOffset:i}})):[]}function uR(e){let{node:t,position:n,lineOffset:r}=e;return["true","false"].map(i=>new pt({label:i,data:{node:t,position:n,lineOffset:r}}))}function lR(e){let{currentAst:t,nodePath:n,node:r,openApiType:i,lineText:o}=e,s=dR(t,n,r);return fR(i,s,o)}async function pR(e,t){let{node:n,nodePath:r,openApiType:i}=t;if(!n)return[];let o=n.key?.value||(r.length?r[r.length-1]:null);return o&&i?.name&&ri.ref===o?aR(e,t):Os.includes(o)?sR(t):i?.enum?cR(t):i?.type==="boolean"?uR(t):[]}async function Ey(e,t){let n=await Ry(e,t);return n.openApiType?.properties?lR(n):pR(e,n)}function dR(e,t,n){if(!e)return[];let i=ni(e);for(let a=0;a<t.length;a++)i[t[a]]&&(i=i[t[a]]);let o=i?Object.keys(i).filter(a=>i[a]&&typeof i[a]=="object"):[],s=n?.value?.mappings||n?.mappings;if(s){let a=s.map(c=>c.key?.value);o.push(...a)}return!o.length&&n?.value&&o.push(n.value),o}function fR(e,t,n){if(!e)return[];if(xy(e),Ds(e))return Ol(e?.name).filter(r=>!t.includes(r.label)).map(r=>new Cn({...r,insertText:ii(r.label,{...r.data,...e,lineText:n})}));if(e.properties&&Object.keys(e.properties).length){let r=Object.keys(e.properties).filter(i=>!t.includes(i)).map(i=>{let o={...e?.properties?.[i]||{},lineText:n};return new Cn({label:i,kind:Ns.CompletionItemKind.Property,insertText:ii(i,o,!o?.items),sortText:Ce(e?.name,i)})});return n.endsWith(":")&&r.push(...Ol(fr).map(i=>new Cn({...i,insertText:ii(i.label,{...i.data,lineText:n})}))),r}return e.items&&Object.keys(e.items).length?[new Cn({label:tn,kind:Ns.CompletionItemKind.Constructor,insertText:ii(tn,{...e,lineText:n}),sortText:Ce(tn)})]:[]}var Nt=Oe(Ps(),1);var nn=Oe(On(),1);import{getAstNodeByPointer as gR}from"@redocly/openapi-core";async function mR({position:e,textDocument:t,value:n,line:r,document:i}){let[o,s]=n.split("#/"),a=r.indexOf(n),c=a+n.length;if(e.character>=a&&a!==-1){let l=o?ie.joinPath(ie.dirname(Tt.parse(i.uri)),o).toString():t.uri,d;try{d=await Ke(l)}catch{return}let h=(0,nn.safeLoad)(d.getText(),{filename:Fe(l)}),v=gR(h,`#/${s}`,!0),y=Nt.Range.create(d.positionAt(v?.startPosition||0),d.positionAt(v?.endPosition||0));return[Nt.LocationLink.create(l,Nt.Range.create(0,0,d.lineCount,0),y,Nt.Range.create(Nt.Position.create(e.line,a),Nt.Position.create(e.line,c)))]}}async function Ny({position:e,textDocument:t}){let n;try{n=await Ke(t.uri)}catch{return}let o=n.getText().split(/\r\n|[\n\r]/g)[e.line],s=(0,nn.safeLoad)(o,{filename:Fe(t.uri)}),a;switch(s.kind){case nn.Kind.SCALAR:{a=s.parent||{value:{value:s?.value}};break}case nn.Kind.MAP:{a=s?.mappings?.[0];break}case nn.Kind.SEQ:{let l=s?.items?.[0];a=l?.kind===nn.Kind.MAP?l?.mappings?.[0]:{value:{value:l?.value}};break}default:a=null}let c=a?.value?.value;if(c&&!br(c))return mR({position:e,textDocument:t,value:c,line:o,document:n})}var Ly=Oe(Ps(),1);function jy({nodePath:e,propertyTypeName:t,typeName:n,documentationLink:r}){let i=e.join(" \u203A "),o=r&&r.trim()?`
85
85
 
86
86
  [Documentation](${r})
87
87
  `:"";return`## \u{1F4D8} ${n&&t&&n!==t?`${n}.${t}`:t}${o}
88
88
 
89
89
  *${i}*
90
- `}function jy(e){if(!e)return"";let t=e.nodePath.map(a=>String(a)),n=e.type,r=n?.name;if(!n||!r)return"";let i=n?.properties,o=e?.endPath?i?.[e.endPath]:n;return typeof o=="function"?"":[Ny({nodePath:t,propertyTypeName:e.endPath?e.endPath:r,typeName:e.endPath?r:void 0,documentationLink:o?.documentationLink}),o?.description??""].join(`
91
- `)}async function Ly(e){try{let t=e.textDocument.uri;if(!Si(t)&&!Dr(t))return null;let n=e.position;if(!pR(n,t))return null;let r=await Nl(t,n);if(!r)return null;let i=jy(r);return i?{contents:{kind:My.MarkupKind.Markdown,value:i}}:null}catch(t){return console.error("Error in hover handler:",t),null}}function pR(e,t){let n=pe.documents.get(t);if(!n)return!0;let i=n.getText({start:{line:e.line,character:0},end:{line:e.line+1,character:0}}).trimEnd().indexOf(":");return i===-1||e.character<=i}var dR=(t=>(t[t.FILE_TYPE_NOT_SUPPORTED=0]="FILE_TYPE_NOT_SUPPORTED",t))(dR||{});var Fy=class{async onCompletion(t){let{uri:n}=t.textDocument;return Dr(n)?[]:qy(n,t.position)}async onCompletionResolve(t){return t}async onHover(t){return Ly(t)}async validateOpenAPI(t){return Al(t)}async onDidChangeWatchedFiles(t){let n=t.changes.find(async i=>await dn(i.uri));if(n)return await Ri(n.uri),ei();if(t.changes.find(i=>pn({uri:i.uri})))return ei()}async onDidConfigChange(t){return await Ri(t),ei()}async onDidChangeConfiguration(){return ei()}async onDefinition(t){let{uri:n}=t.textDocument;return Dr(n)?[]:await Ey(t)||[]}};export{dR as ContextErrorCodes,Fy as OpenapiLanguageServer,Tl as bundleOpenAPI,tS as getBundles,qn as getConfigData,Nl as getContextData,Ve as getDocumentByURI,AS as getSpecVersion,dn as isConfigFile,pn as isEntityFile,br as isHttpPath,Si as isYamlFile,pe as languageServerConfig,Ri as loadOpenAPIConfig,Se as parseUri,ma as removeCirculars,ei as revalidateAllDocuments,st as uriToAbsFSPath};
90
+ `}function My(e){if(!e)return"";let t=e.nodePath.map(a=>String(a)),n=e.type,r=n?.name;if(!n||!r)return"";let i=n?.properties,o=e?.endPath?i?.[e.endPath]:n;return typeof o=="function"?"":[jy({nodePath:t,propertyTypeName:e.endPath?e.endPath:r,typeName:e.endPath?r:void 0,documentationLink:o?.documentationLink}),o?.description??""].join(`
91
+ `)}async function Iy(e){try{let t=e.textDocument.uri;if(!Si(t)&&!Sr(t))return null;let n=e.position;if(!hR(n,t))return null;let r=await Nl(t,n);if(!r)return null;let i=My(r);return i?{contents:{kind:Ly.MarkupKind.Markdown,value:i}}:null}catch(t){return console.error("Error in hover handler:",t),null}}function hR(e,t){let n=pe.documents.get(t);if(!n)return!0;let i=n.getText({start:{line:e.line,character:0},end:{line:e.line+1,character:0}}).trimEnd().indexOf(":");return i===-1||e.character<=i}var yR=(t=>(t[t.FILE_TYPE_NOT_SUPPORTED=0]="FILE_TYPE_NOT_SUPPORTED",t))(yR||{});var Fy=class{async onCompletion(t){let{uri:n}=t.textDocument;return Sr(n)?[]:Ey(n,t.position)}async onCompletionResolve(t){return t}async onHover(t){return Iy(t)}async validateOpenAPI(t){return Al(t)}async onDidChangeWatchedFiles(t){let n=t.changes.find(async i=>await dn(i.uri));if(n)return await Ri(n.uri),ei();if(t.changes.find(i=>pn({uri:i.uri})))return ei()}async onDidConfigChange(t){return await Ri(t),ei()}async onDidChangeConfiguration(){return ei()}async onDefinition(t){let{uri:n}=t.textDocument;return Sr(n)?[]:await Ny(t)||[]}};export{yR as ContextErrorCodes,Fy as OpenapiLanguageServer,Tl as bundleOpenAPI,oS as getBundles,qn as getConfigData,Nl as getContextData,Ke as getDocumentByURI,jS as getSpecVersion,dn as isConfigFile,pn as isEntityFile,br as isHttpPath,Vx as isIgnoreFile,Si as isYamlFile,pe as languageServerConfig,Ri as loadOpenAPIConfig,Le as parseUri,_l as removeCirculars,ei as revalidateAllDocuments,Fe as uriToAbsFSPath};