@redocly/openapi-language-server 0.6.13 → 0.6.15

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,42 +1,42 @@
1
- var Oy=Object.create;var ti=Object.defineProperty;var qy=Object.getOwnPropertyDescriptor;var Ny=Object.getOwnPropertyNames;var Ey=Object.getPrototypeOf,jy=Object.prototype.hasOwnProperty;var Al=(e,t)=>()=>(e&&(t=e(e=0)),t);var S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Rs=(e,t)=>{for(var n in t)ti(e,n,{get:t[n],enumerable:!0})},ei=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ny(t))!jy.call(e,i)&&i!==n&&ti(e,i,{get:()=>t[i],enumerable:!(r=qy(t,i))||r.enumerable});return e},Ts=(e,t,n)=>(ei(e,t,"default"),n&&ei(n,t,"default")),Ie=(e,t,n)=>(n=e!=null?Oy(Ey(e)):{},ei(t||!e||!e.__esModule?ti(n,"default",{value:e,enumerable:!0}):n,e)),ni=e=>ei(ti({},"__esModule",{value:!0}),e);var _t=S(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.isYAMLNode=me.isNodesEqual=me.newMap=me.newSeq=me.newItems=me.newScalar=me.newAnchorRef=me.newMapping=me.Kind=void 0;var pt;(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"})(pt=me.Kind||(me.Kind={}));function Ly(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:pt.MAPPING,parent:null,errors:[]};return i}me.newMapping=Ly;function Iy(e,t,n,r,i=2){return{errors:[],referencesAnchor:e,value:r,nodeIndent:i,startPosition:t,endPosition:n,kind:pt.ANCHOR_REF,parent:null}}me.newAnchorRef=Iy;function Fy(e="",t=2){let n={errors:[],startPosition:-1,endPosition:-1,value:""+e,nodeIndent:t,kind:pt.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(n.valueObject=e),n}me.newScalar=Fy;function Nl(){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:2,items:[],kind:pt.SEQ,parent:null}}me.newItems=Nl;function Uy(){return Nl()}me.newSeq=Uy;function Wy(e,t=2){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:t,mappings:e||[],kind:pt.MAP,parent:null}}me.newMap=Wy;function yr(e,t){if(!e||!t||e.kind!==t.kind)return!1;if(e.kind===pt.SCALAR)return e.value===t.value;if(e.kind===pt.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(!yr(o,s))return!1}return!0}if(e.kind===pt.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=>yr(o,c.key));if(a){if(!yr(s,a.value))return!1}else return!1}return!0}if(pt.MAPPING===e.kind){let n=e,r=t;return yr(n.key,r.key)}return!1}me.isNodesEqual=yr;function By(e){return e.startPosition!==void 0&&e.endPosition!==void 0&&e.kind!==void 0}me.isYAMLNode=By});var sn=S(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.isNegativeZero=Fe.repeat=Fe.extend=Fe.toArray=Fe.isObject=Fe.isNothing=void 0;function El(e){return typeof e>"u"||e===null}Fe.isNothing=El;function Hy(e){return typeof e=="object"&&e!==null}Fe.isObject=Hy;function zy(e){return Array.isArray(e)?e:El(e)?[]:[e]}Fe.toArray=zy;function $y(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}Fe.extend=$y;function Vy(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}Fe.repeat=Vy;function Yy(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Fe.isNegativeZero=Yy});var Dn=S((WS,jl)=>{"use strict";var ri=class e{constructor(t,n=null,r=!1){this.name="YAMLException",this.reason=t,this.mark=n,this.message=this.toString(!1),this.isWarning=r}static isInstance(t){if(t!=null&&t.getClassIdentifier&&typeof t.getClassIdentifier=="function"){for(let n of t.getClassIdentifier())if(n==e.CLASS_IDENTIFIER)return!0}return!1}getClassIdentifier(){var t=[];return t.concat(e.CLASS_IDENTIFIER)}toString(t=!1){var n;return n="JS-YAML: "+(this.reason||"(unknown reason)"),!t&&this.mark&&(n+=" "+this.mark.toString()),n}};ri.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException";jl.exports=ri});var Il=S((BS,Ll)=>{"use strict";var Ml=sn(),qs=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 Oy=Object.create;var ti=Object.defineProperty;var qy=Object.getOwnPropertyDescriptor;var Ny=Object.getOwnPropertyNames;var Ey=Object.getPrototypeOf,jy=Object.prototype.hasOwnProperty;var Al=(e,t)=>()=>(e&&(t=e(e=0)),t);var S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Rs=(e,t)=>{for(var n in t)ti(e,n,{get:t[n],enumerable:!0})},ei=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ny(t))!jy.call(e,i)&&i!==n&&ti(e,i,{get:()=>t[i],enumerable:!(r=qy(t,i))||r.enumerable});return e},Ts=(e,t,n)=>(ei(e,t,"default"),n&&ei(n,t,"default")),Ie=(e,t,n)=>(n=e!=null?Oy(Ey(e)):{},ei(t||!e||!e.__esModule?ti(n,"default",{value:e,enumerable:!0}):n,e)),ni=e=>ei(ti({},"__esModule",{value:!0}),e);var _t=S(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.isYAMLNode=me.isNodesEqual=me.newMap=me.newSeq=me.newItems=me.newScalar=me.newAnchorRef=me.newMapping=me.Kind=void 0;var pt;(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"})(pt=me.Kind||(me.Kind={}));function Ly(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:pt.MAPPING,parent:null,errors:[]};return i}me.newMapping=Ly;function Iy(e,t,n,r,i=2){return{errors:[],referencesAnchor:e,value:r,nodeIndent:i,startPosition:t,endPosition:n,kind:pt.ANCHOR_REF,parent:null}}me.newAnchorRef=Iy;function Fy(e="",t=2){let n={errors:[],startPosition:-1,endPosition:-1,value:""+e,nodeIndent:t,kind:pt.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(n.valueObject=e),n}me.newScalar=Fy;function Nl(){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:2,items:[],kind:pt.SEQ,parent:null}}me.newItems=Nl;function Uy(){return Nl()}me.newSeq=Uy;function Wy(e,t=2){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:t,mappings:e||[],kind:pt.MAP,parent:null}}me.newMap=Wy;function yr(e,t){if(!e||!t||e.kind!==t.kind)return!1;if(e.kind===pt.SCALAR)return e.value===t.value;if(e.kind===pt.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(!yr(o,s))return!1}return!0}if(e.kind===pt.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=>yr(o,c.key));if(a){if(!yr(s,a.value))return!1}else return!1}return!0}if(pt.MAPPING===e.kind){let n=e,r=t;return yr(n.key,r.key)}return!1}me.isNodesEqual=yr;function By(e){return e.startPosition!==void 0&&e.endPosition!==void 0&&e.kind!==void 0}me.isYAMLNode=By});var sn=S(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.isNegativeZero=Fe.repeat=Fe.extend=Fe.toArray=Fe.isObject=Fe.isNothing=void 0;function El(e){return typeof e>"u"||e===null}Fe.isNothing=El;function Hy(e){return typeof e=="object"&&e!==null}Fe.isObject=Hy;function zy(e){return Array.isArray(e)?e:El(e)?[]:[e]}Fe.toArray=zy;function $y(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}Fe.extend=$y;function Vy(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}Fe.repeat=Vy;function Yy(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Fe.isNegativeZero=Yy});var Dn=S((US,jl)=>{"use strict";var ri=class e{constructor(t,n=null,r=!1){this.name="YAMLException",this.reason=t,this.mark=n,this.message=this.toString(!1),this.isWarning=r}static isInstance(t){if(t!=null&&t.getClassIdentifier&&typeof t.getClassIdentifier=="function"){for(let n of t.getClassIdentifier())if(n==e.CLASS_IDENTIFIER)return!0}return!1}getClassIdentifier(){var t=[];return t.concat(e.CLASS_IDENTIFIER)}toString(t=!1){var n;return n="JS-YAML: "+(this.reason||"(unknown reason)"),!t&&this.mark&&(n+=" "+this.mark.toString()),n}};ri.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException";jl.exports=ri});var Il=S((WS,Ll)=>{"use strict";var Ml=sn(),qs=class{constructor(t,n,r,i,o){this.name=t,this.buffer=n,this.position=r,this.line=i,this.column=o}getSnippet(t=0,n=75){var r,i,o,s,a;if(!this.buffer)return null;for(t=t||4,n=n||75,r="",i=this.position;i>0&&`\0\r
2
2
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>n/2-1){r=" ... ",i+=5;break}for(o="",s=this.position;s<this.buffer.length&&`\0\r
3
3
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>n/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),Ml.repeat(" ",t)+r+a+o+`
4
4
  `+Ml.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}};Ll.exports=qs});var ke=S(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.Type=void 0;var Fl=Dn(),Gy=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Ky=["scalar","sequence","mapping"];function Qy(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}var Ns=class{constructor(t,n){if(n=n||{},Object.keys(n).forEach(function(r){if(Gy.indexOf(r)===-1)throw new Fl('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=Qy(n.styleAliases||null),Ky.indexOf(this.kind)===-1)throw new Fl('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}};ii.Type=Ns});var Rn=S(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.Schema=void 0;var Ul=sn(),oi=Dn(),Jy=ke();function Es(e,t,n){var r=[];return e.include.forEach(function(i){n=Es(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 Xy(){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 Mt=class{constructor(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(n){if(n.loadKind&&n.loadKind!=="scalar")throw new oi("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Es(this,"implicit",[]),this.compiledExplicit=Es(this,"explicit",[]),this.compiledTypeMap=Xy(this.compiledImplicit,this.compiledExplicit)}};si.Schema=Mt;Mt.DEFAULT=null;Mt.create=function(...t){var n,r;switch(t.length){case 1:n=Mt.DEFAULT,r=t[0];break;case 2:n=t[0],r=t[1];break;default:throw new oi("Wrong number of arguments for Schema.create function")}if(n=Ul.toArray(n),r=Ul.toArray(r),!n.every(function(i){return i instanceof Mt}))throw new oi("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(i){return i instanceof Jy.Type}))throw new oi("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Mt({include:n,explicit:r})}});var Bl=S(($S,Wl)=>{"use strict";var Zy=ke();Wl.exports=new Zy.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var zl=S((VS,Hl)=>{"use strict";var eb=ke();Hl.exports=new eb.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Vl=S((YS,$l)=>{"use strict";var tb=ke();$l.exports=new tb.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Gl=S((GS,Yl)=>{"use strict";var nb=Rn();Yl.exports=new nb.Schema({explicit:[Bl(),zl(),Vl()]})});var Jl=S((KS,Ql)=>{"use strict";var rb=ke(),Kl=_t();function ib(e){let t=Kl.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 ob(e){return Kl.isYAMLNode(e)?e:null}function sb(e){return e===null}Ql.exports=new rb.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:ib,construct:ob,predicate:sb,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var ep=S((QS,Zl)=>{"use strict";var ab=ke(),Xl=_t();function cb(e){let t=Xl.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 ub(e){return Xl.isYAMLNode(e)?e:e==="true"||e==="True"||e==="TRUE"}function lb(e){return Object.prototype.toString.call(e)==="[object Boolean]"}Zl.exports=new ab.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:cb,construct:ub,predicate:lb,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 rp=S((JS,np)=>{"use strict";var pb=sn(),db=ke(),tp=_t();function fb(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function gb(e){return 48<=e&&e<=55}function mb(e){return 48<=e&&e<=57}function hb(e){let t=tp.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(!fb(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(!gb(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(o===":")break;if(!mb(t.charCodeAt(r)))return!1;i=!0}return i?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(r)):!1}function yb(e){if(tp.isYAMLNode(e))return e;var t=e,n=1,r,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0"?0:r==="0"?t[1]==="b"?n*parseInt(t.slice(2),2):t[1]==="x"?n*parseInt(t,16):n*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(s){o.unshift(parseInt(s,10))}),t=0,i=1,o.forEach(function(s){t+=s*i,i*=60}),n*t):n*parseInt(t,10)}function bb(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!pb.isNegativeZero(e)}np.exports=new db.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:hb,construct:yb,predicate:bb,represent:{binary:function(e){return"0b"+e.toString(2)},octal:function(e){return"0"+e.toString(8)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return"0x"+e.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var ap=S((XS,sp)=>{"use strict";var ip=sn(),vb=ke(),op=_t(),xb=new RegExp("-?(0|[1-9][0-9]*)(.[0-9]*)?([eE][-+]?[0-9]+)?|^0$|^[-+]?.(inf|Inf|INF)$|^.(nan|NaN|NAN)$");function Pb(e){let t=op.isYAMLNode(e)?e.value:e;return!(t===null||!xb.test(t))}function _b(e){if(op.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 Cb(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(ip.isNegativeZero(e))return"-0.0";return e.toString(10)}function Sb(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||ip.isNegativeZero(e))}sp.exports=new vb.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:Pb,construct:_b,predicate:Sb,represent:Cb,defaultStyle:"lowercase"})});var up=S((ZS,cp)=>{"use strict";var Db=Rn();cp.exports=new Db.Schema({include:[Gl()],implicit:[Jl(),ep(),rp(),ap()]})});var pp=S((eD,lp)=>{"use strict";var Rb=Rn();lp.exports=new Rb.Schema({include:[up()]})});var gp=S((tD,fp)=>{"use strict";var Tb=ke(),dp=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 wb(e){if(e===null)return!1;var t,n,r,i,o,s,a,c=0,l=null,d,h,v;return t=dp.exec(e),t!==null}function kb(e){var t,n,r,i,o,s,a,c=0,l=null,d,h,v;if(t=dp.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 Ab(e){return e.toISOString()}fp.exports=new Tb.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:wb,construct:kb,instanceOf:Date,represent:Ab})});var hp=S((nD,mp)=>{"use strict";var Ob=ke();function qb(e){return e==="<<"||e===null}mp.exports=new Ob.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:qb})});var yp={};Rs(yp,{default:()=>Nb});var Nb,bp=Al(()=>{Nb={}});var xp=S((rD,vp)=>{"use strict";var ai=(bp(),ni(yp)).Buffer,Eb=ke(),js=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
6
- \r`;function jb(e){if(e===null)return!1;var t,n,r=0,i=0,o=e.length,s=js;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 Mb(e){var t,n,r,i=e.replace(/[\r\n=]/g,""),o=i.length,s=js,a=0,c=[];for(n=0;n<o;n++)n%4===0&&n&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(i.charAt(n));return r=o%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),ai?new ai(c):c}function Lb(e){var t="",n=0,r,i,o=e.length,s=js;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 Ib(e){return ai&&ai.isBuffer(e)}vp.exports=new Eb.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:jb,construct:Mb,predicate:Ib,represent:Lb})});var _p=S((iD,Pp)=>{"use strict";var Fb=ke(),Ub=Object.prototype.hasOwnProperty,Wb=Object.prototype.toString;function Bb(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,Wb.call(i)!=="[object Object]")return!1;for(o in i)if(Ub.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 Hb(e){return e!==null?e:[]}Pp.exports=new Fb.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Bb,construct:Hb})});var Sp=S((oD,Cp)=>{"use strict";var zb=ke(),Ms=_t(),$b=Object.prototype.toString;function Vb(e){if(e===null)return!0;if(e.kind!=Ms.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],$b.call(r)!=="[object Object]"||!Array.isArray(r.mappings)||r.mappings.length!==1)return!1;return!0}function Yb(e){if(e===null||!Array.isArray(e.items))return[];let t,n,r,i,o=e.items;for(i=Ms.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=Ms.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}Cp.exports=new zb.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Vb,construct:Yb})});var Rp=S((sD,Dp)=>{"use strict";var Gb=ke(),Kb=_t();function Qb(e){return e===null?!0:e.kind==Kb.Kind.MAP}function Jb(e){return e!==null?e:{}}Dp.exports=new Gb.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:Qb,construct:Jb})});var ci=S((aD,Tp)=>{"use strict";var Xb=Rn(),Zb=new Xb.Schema({include:[pp()],implicit:[gp(),hp()],explicit:[xp(),_p(),Sp(),Rp()]});Tp.exports=Zb});var kp=S((cD,wp)=>{"use strict";var ev=ke();function tv(){return!0}function nv(){}function rv(){return""}function iv(e){return typeof e>"u"}wp.exports=new ev.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:tv,construct:nv,predicate:iv,represent:rv})});var Op=S((uD,Ap)=>{"use strict";var ov=ke();function sv(e){if(e===null||e.length===0)return!1;var t=e,n=/\/([gim]*)$/.exec(e),r="";if(t[0]==="/"){if(n&&(r=n[1]),r.length>3||t[t.length-r.length-1]!=="/")return!1;t=t.slice(1,t.length-r.length-1)}try{var i=new RegExp(t,r);return!0}catch{return!1}}function 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 cv(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function uv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}Ap.exports=new ov.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:sv,construct:av,predicate:uv,represent:cv})});var Ls=S((lD,Ep)=>{"use strict";var qp=Rn(),Np=new qp.Schema({include:[ci()],explicit:[kp(),Op()]});qp.Schema.DEFAULT=Np;Ep.exports=Np});var Yp=S((dt,vr)=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.safeLoad=dt.safeLoadAll=dt.load=dt.loadAll=void 0;var We=_t(),Lt=sn(),$s=Dn(),Vs=Il(),Ip=ci(),lv=Ls(),pi=Object.prototype.hasOwnProperty,ui=1,Fp=2,Up=3,li=4,Is=1,pv=2,jp=3,dv=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,fv=/[\x85\u2028\u2029]/,gv=/[,\[\]\{\}]/,Wp=/^(?:!|!!|![a-z\-]+!)$/i,Bp=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function st(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 Tn(e){return e===44||e===91||e===93||e===123||e===125}function mv(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function hv(e){return e===120?2:e===117?4:e===85?8:0}function yv(e){return 48<=e&&e<=57?e-48:-1}function bv(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
7
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function vv(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Fs=new Array(256),Us=new Array(256),Hp=new Array(256),Ws=new Array(256);for(Ke=0;Ke<256;Ke++)Ws[Ke]=Us[Ke]=bv(Ke),Fs[Ke]=Us[Ke]?1:0,Hp[Ke]=1,Fs[Ke]||(Ws[Ke]="\\"+String.fromCharCode(Ke));var Ke,Bs=class{constructor(t,n){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=n.filename||null,this.schema=n.schema||lv,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 Ys(e,t,n=!1){return new $s(t,new Vs(e.filename,e.input,e.position,e.line,e.position-e.lineStart),n)}function Hs(e,t,n,r=!1,i=!1){var o=xv(e,t);if(o){var s=n+t;if(!e.errorMap[s]){var a=new Vs(e.filename,e.input,t,o.line,t-o.start);i&&(a.toLineEnd=!0);var c=new $s(n,a,r);e.errors.push(c)}}}function W(e,t){var n=Ys(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 zs(e,t){var n=Ys(e,t);e.onWarning&&e.onWarning.call(null,n)}var Mp={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],Wp.test(i)||W(t,"ill-formed tag handle (first argument) of the TAG directive"),pi.call(t.tagMap,i)&&W(t,'there is a previously declared suffix for "'+i+'" tag handle'),Bp.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 dv.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)&&(Hs(e,a.key.startPosition,"duplicate key"),Hs(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=s,t}}function Gs(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 xv(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(Ys(e,"Using tabs can lead to unpredictable results",!0)),o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(st(o))for(Gs(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&&zs(e,"deficient indentation"),i}function br(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 Ks(e,t,n){n===1?t.value+=" ":n>1&&(t.value+=Lt.repeat(`
9
- `,n-1))}function Pv(e,t,n){var r,i,o,s,a,c,l,d,h=e.kind,v=e.result,y,R=We.newScalar("",t);if(R.plainScalar=!0,e.result=R,y=e.input.charCodeAt(e.position),Ue(y)||Tn(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&&Tn(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&&Tn(i))break}else if(y===35){if(r=e.input.charCodeAt(e.position-1),Ue(r))break}else{if(e.position===e.lineStart&&br(e)||n&&Tn(y))break;if(st(y))if(c=e.line,l=e.lineStart,d=e.lineIndent,ce(e,!1,-1),e.lineIndent>=t){a=!0,y=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=l,e.lineIndent=d;break}}if(a&&(It(e,o,s,!1),Ks(e,R,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?(R.rawValue=e.input.substring(R.startPosition,R.endPosition),e.result.endPosition=ce(e,!1,-1)?e.position-1:e.position,!0):(e.kind=h,e.result=v,!1)}function _v(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 st(n)?(It(e,r,i,!0),Ks(e,o,ce(e,!1,t)),r=i=e.position):e.position===e.lineStart&&br(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 Cv(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),st(c))ce(e,!1,t);else if(c<256&&(e.allowAnyEscape?Hp[c]:Fs[c]))l.value+=e.allowAnyEscape?Ws[c]:Us[c],e.position++;else if((s=hv(c))>0){for(i=s,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(s=mv(c))>=0?o=(o<<4)+s:W(e,"expected hexadecimal character");l.value+=vv(o),e.position++}else W(e,"unknown escape sequence");n=r=e.position}else st(c)?(It(e,n,r,!0),Ks(e,l,ce(e,!1,t)),n=r=e.position):e.position===e.lineStart&&br(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 Sv(e,t){var n=!0,r,i=e.tag,o,s=e.anchor,a,c,l,d,h,v,y,R,I;if(I=e.input.charCodeAt(e.position),I===91)c=93,h=!1,o=We.newItems(),o.startPosition=e.position;else if(I===123)c=125,h=!0,o=We.newMap(null,t),o.startPosition=e.position;else return!1;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),I=e.input.charCodeAt(++e.position);I!==0;){if(ce(e,!0,t),I=e.input.charCodeAt(e.position),I===c)return e.position++,e.tag=i,e.anchor=s,e.kind=h?"mapping":"sequence",e.result=o,o.endPosition=e.position,!0;if(!n){var $=e.position;W(e,"missed comma between flow collection entries"),e.position=$+1}if(y=v=R=null,l=d=!1,I===63&&(a=e.input.charCodeAt(e.position+1),Ue(a)&&(l=d=!0,e.position++,ce(e,!0,t))),r=e.line,wn(e,t,ui,!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),wn(e,t,ui,!1,!0),R=e.result),h)an(e,o,y,v,R,t);else if(l){var Y=an(e,null,y,v,R,t);Y.parent=o,o.items.push(Y)}else v&&(v.parent=o),o.items.push(v);o.endPosition=e.position+1,ce(e,!0,t),I=e.input.charCodeAt(e.position),I===44?(n=!0,I=e.input.charCodeAt(++e.position)):n=!1}W(e,"unexpected end of the stream within a flow collection")}function Dv(e,t){var n,r,i=Is,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)Is===i?i=d===43?jp:pv:W(e,"repeat of a chomping mode identifier");else if((l=yv(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(!st(d)&&d!==0)}for(;d!==0;){for(Gs(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),st(d)){a++;continue}if(e.lineIndent<s){i===jp?h.value+=Lt.repeat(`
5
+ `+n)),r}};Ll.exports=qs});var ke=S(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.Type=void 0;var Fl=Dn(),Ky=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Gy=["scalar","sequence","mapping"];function Qy(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}var Ns=class{constructor(t,n){if(n=n||{},Object.keys(n).forEach(function(r){if(Ky.indexOf(r)===-1)throw new Fl('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=Qy(n.styleAliases||null),Gy.indexOf(this.kind)===-1)throw new Fl('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}};ii.Type=Ns});var Rn=S(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.Schema=void 0;var Ul=sn(),oi=Dn(),Jy=ke();function Es(e,t,n){var r=[];return e.include.forEach(function(i){n=Es(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 Xy(){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 Mt=class{constructor(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(n){if(n.loadKind&&n.loadKind!=="scalar")throw new oi("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Es(this,"implicit",[]),this.compiledExplicit=Es(this,"explicit",[]),this.compiledTypeMap=Xy(this.compiledImplicit,this.compiledExplicit)}};si.Schema=Mt;Mt.DEFAULT=null;Mt.create=function(...t){var n,r;switch(t.length){case 1:n=Mt.DEFAULT,r=t[0];break;case 2:n=t[0],r=t[1];break;default:throw new oi("Wrong number of arguments for Schema.create function")}if(n=Ul.toArray(n),r=Ul.toArray(r),!n.every(function(i){return i instanceof Mt}))throw new oi("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(i){return i instanceof Jy.Type}))throw new oi("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Mt({include:n,explicit:r})}});var Bl=S((zS,Wl)=>{"use strict";var Zy=ke();Wl.exports=new Zy.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var zl=S(($S,Hl)=>{"use strict";var eb=ke();Hl.exports=new eb.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Vl=S((VS,$l)=>{"use strict";var tb=ke();$l.exports=new tb.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Kl=S((YS,Yl)=>{"use strict";var nb=Rn();Yl.exports=new nb.Schema({explicit:[Bl(),zl(),Vl()]})});var Jl=S((KS,Ql)=>{"use strict";var rb=ke(),Gl=_t();function ib(e){let t=Gl.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 ob(e){return Gl.isYAMLNode(e)?e:null}function sb(e){return e===null}Ql.exports=new rb.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:ib,construct:ob,predicate:sb,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var ep=S((GS,Zl)=>{"use strict";var ab=ke(),Xl=_t();function cb(e){let t=Xl.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 ub(e){return Xl.isYAMLNode(e)?e:e==="true"||e==="True"||e==="TRUE"}function lb(e){return Object.prototype.toString.call(e)==="[object Boolean]"}Zl.exports=new ab.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:cb,construct:ub,predicate:lb,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 rp=S((QS,np)=>{"use strict";var pb=sn(),db=ke(),tp=_t();function fb(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function gb(e){return 48<=e&&e<=55}function mb(e){return 48<=e&&e<=57}function hb(e){let t=tp.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(!fb(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(!gb(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(o===":")break;if(!mb(t.charCodeAt(r)))return!1;i=!0}return i?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(r)):!1}function yb(e){if(tp.isYAMLNode(e))return e;var t=e,n=1,r,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0"?0:r==="0"?t[1]==="b"?n*parseInt(t.slice(2),2):t[1]==="x"?n*parseInt(t,16):n*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(s){o.unshift(parseInt(s,10))}),t=0,i=1,o.forEach(function(s){t+=s*i,i*=60}),n*t):n*parseInt(t,10)}function bb(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!pb.isNegativeZero(e)}np.exports=new db.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:hb,construct:yb,predicate:bb,represent:{binary:function(e){return"0b"+e.toString(2)},octal:function(e){return"0"+e.toString(8)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return"0x"+e.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var ap=S((JS,sp)=>{"use strict";var ip=sn(),vb=ke(),op=_t(),xb=new RegExp("-?(0|[1-9][0-9]*)(.[0-9]*)?([eE][-+]?[0-9]+)?|^0$|^[-+]?.(inf|Inf|INF)$|^.(nan|NaN|NAN)$");function Pb(e){let t=op.isYAMLNode(e)?e.value:e;return!(t===null||!xb.test(t))}function _b(e){if(op.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 Cb(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(ip.isNegativeZero(e))return"-0.0";return e.toString(10)}function Sb(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||ip.isNegativeZero(e))}sp.exports=new vb.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:Pb,construct:_b,predicate:Sb,represent:Cb,defaultStyle:"lowercase"})});var up=S((XS,cp)=>{"use strict";var Db=Rn();cp.exports=new Db.Schema({include:[Kl()],implicit:[Jl(),ep(),rp(),ap()]})});var pp=S((ZS,lp)=>{"use strict";var Rb=Rn();lp.exports=new Rb.Schema({include:[up()]})});var gp=S((eD,fp)=>{"use strict";var Tb=ke(),dp=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 wb(e){if(e===null)return!1;var t,n,r,i,o,s,a,c=0,l=null,d,h,v;return t=dp.exec(e),t!==null}function kb(e){var t,n,r,i,o,s,a,c=0,l=null,d,h,v;if(t=dp.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 Ab(e){return e.toISOString()}fp.exports=new Tb.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:wb,construct:kb,instanceOf:Date,represent:Ab})});var hp=S((tD,mp)=>{"use strict";var Ob=ke();function qb(e){return e==="<<"||e===null}mp.exports=new Ob.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:qb})});var yp={};Rs(yp,{default:()=>Nb});var Nb,bp=Al(()=>{Nb={}});var xp=S((nD,vp)=>{"use strict";var ai=(bp(),ni(yp)).Buffer,Eb=ke(),js=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
6
+ \r`;function jb(e){if(e===null)return!1;var t,n,r=0,i=0,o=e.length,s=js;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 Mb(e){var t,n,r,i=e.replace(/[\r\n=]/g,""),o=i.length,s=js,a=0,c=[];for(n=0;n<o;n++)n%4===0&&n&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(i.charAt(n));return r=o%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),ai?new ai(c):c}function Lb(e){var t="",n=0,r,i,o=e.length,s=js;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 Ib(e){return ai&&ai.isBuffer(e)}vp.exports=new Eb.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:jb,construct:Mb,predicate:Ib,represent:Lb})});var _p=S((rD,Pp)=>{"use strict";var Fb=ke(),Ub=Object.prototype.hasOwnProperty,Wb=Object.prototype.toString;function Bb(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,Wb.call(i)!=="[object Object]")return!1;for(o in i)if(Ub.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 Hb(e){return e!==null?e:[]}Pp.exports=new Fb.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Bb,construct:Hb})});var Sp=S((iD,Cp)=>{"use strict";var zb=ke(),Ms=_t(),$b=Object.prototype.toString;function Vb(e){if(e===null)return!0;if(e.kind!=Ms.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],$b.call(r)!=="[object Object]"||!Array.isArray(r.mappings)||r.mappings.length!==1)return!1;return!0}function Yb(e){if(e===null||!Array.isArray(e.items))return[];let t,n,r,i,o=e.items;for(i=Ms.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=Ms.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}Cp.exports=new zb.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Vb,construct:Yb})});var Rp=S((oD,Dp)=>{"use strict";var Kb=ke(),Gb=_t();function Qb(e){return e===null?!0:e.kind==Gb.Kind.MAP}function Jb(e){return e!==null?e:{}}Dp.exports=new Kb.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:Qb,construct:Jb})});var ci=S((sD,Tp)=>{"use strict";var Xb=Rn(),Zb=new Xb.Schema({include:[pp()],implicit:[gp(),hp()],explicit:[xp(),_p(),Sp(),Rp()]});Tp.exports=Zb});var kp=S((aD,wp)=>{"use strict";var ev=ke();function tv(){return!0}function nv(){}function rv(){return""}function iv(e){return typeof e>"u"}wp.exports=new ev.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:tv,construct:nv,predicate:iv,represent:rv})});var Op=S((cD,Ap)=>{"use strict";var ov=ke();function sv(e){if(e===null||e.length===0)return!1;var t=e,n=/\/([gim]*)$/.exec(e),r="";if(t[0]==="/"){if(n&&(r=n[1]),r.length>3||t[t.length-r.length-1]!=="/")return!1;t=t.slice(1,t.length-r.length-1)}try{var i=new RegExp(t,r);return!0}catch{return!1}}function 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 cv(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function uv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}Ap.exports=new ov.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:sv,construct:av,predicate:uv,represent:cv})});var Ls=S((uD,Ep)=>{"use strict";var qp=Rn(),Np=new qp.Schema({include:[ci()],explicit:[kp(),Op()]});qp.Schema.DEFAULT=Np;Ep.exports=Np});var Yp=S((dt,vr)=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.safeLoad=dt.safeLoadAll=dt.load=dt.loadAll=void 0;var We=_t(),Lt=sn(),$s=Dn(),Vs=Il(),Ip=ci(),lv=Ls(),pi=Object.prototype.hasOwnProperty,ui=1,Fp=2,Up=3,li=4,Is=1,pv=2,jp=3,dv=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,fv=/[\x85\u2028\u2029]/,gv=/[,\[\]\{\}]/,Wp=/^(?:!|!!|![a-z\-]+!)$/i,Bp=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function st(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 Tn(e){return e===44||e===91||e===93||e===123||e===125}function mv(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function hv(e){return e===120?2:e===117?4:e===85?8:0}function yv(e){return 48<=e&&e<=57?e-48:-1}function bv(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
7
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function vv(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Fs=new Array(256),Us=new Array(256),Hp=new Array(256),Ws=new Array(256);for(Ge=0;Ge<256;Ge++)Ws[Ge]=Us[Ge]=bv(Ge),Fs[Ge]=Us[Ge]?1:0,Hp[Ge]=1,Fs[Ge]||(Ws[Ge]="\\"+String.fromCharCode(Ge));var Ge,Bs=class{constructor(t,n){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=n.filename||null,this.schema=n.schema||lv,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 Ys(e,t,n=!1){return new $s(t,new Vs(e.filename,e.input,e.position,e.line,e.position-e.lineStart),n)}function Hs(e,t,n,r=!1,i=!1){var o=xv(e,t);if(o){var s=n+t;if(!e.errorMap[s]){var a=new Vs(e.filename,e.input,t,o.line,t-o.start);i&&(a.toLineEnd=!0);var c=new $s(n,a,r);e.errors.push(c)}}}function W(e,t){var n=Ys(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 zs(e,t){var n=Ys(e,t);e.onWarning&&e.onWarning.call(null,n)}var Mp={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],Wp.test(i)||W(t,"ill-formed tag handle (first argument) of the TAG directive"),pi.call(t.tagMap,i)&&W(t,'there is a previously declared suffix for "'+i+'" tag handle'),Bp.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 dv.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)&&(Hs(e,a.key.startPosition,"duplicate key"),Hs(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=s,t}}function Ks(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 xv(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(Ys(e,"Using tabs can lead to unpredictable results",!0)),o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(st(o))for(Ks(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&&zs(e,"deficient indentation"),i}function br(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 Gs(e,t,n){n===1?t.value+=" ":n>1&&(t.value+=Lt.repeat(`
9
+ `,n-1))}function Pv(e,t,n){var r,i,o,s,a,c,l,d,h=e.kind,v=e.result,y,R=We.newScalar("",t);if(R.plainScalar=!0,e.result=R,y=e.input.charCodeAt(e.position),Ue(y)||Tn(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&&Tn(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&&Tn(i))break}else if(y===35){if(r=e.input.charCodeAt(e.position-1),Ue(r))break}else{if(e.position===e.lineStart&&br(e)||n&&Tn(y))break;if(st(y))if(c=e.line,l=e.lineStart,d=e.lineIndent,ce(e,!1,-1),e.lineIndent>=t){a=!0,y=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=l,e.lineIndent=d;break}}if(a&&(It(e,o,s,!1),Gs(e,R,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?(R.rawValue=e.input.substring(R.startPosition,R.endPosition),e.result.endPosition=ce(e,!1,-1)?e.position-1:e.position,!0):(e.kind=h,e.result=v,!1)}function _v(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 st(n)?(It(e,r,i,!0),Gs(e,o,ce(e,!1,t)),r=i=e.position):e.position===e.lineStart&&br(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 Cv(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),st(c))ce(e,!1,t);else if(c<256&&(e.allowAnyEscape?Hp[c]:Fs[c]))l.value+=e.allowAnyEscape?Ws[c]:Us[c],e.position++;else if((s=hv(c))>0){for(i=s,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(s=mv(c))>=0?o=(o<<4)+s:W(e,"expected hexadecimal character");l.value+=vv(o),e.position++}else W(e,"unknown escape sequence");n=r=e.position}else st(c)?(It(e,n,r,!0),Gs(e,l,ce(e,!1,t)),n=r=e.position):e.position===e.lineStart&&br(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 Sv(e,t){var n=!0,r,i=e.tag,o,s=e.anchor,a,c,l,d,h,v,y,R,I;if(I=e.input.charCodeAt(e.position),I===91)c=93,h=!1,o=We.newItems(),o.startPosition=e.position;else if(I===123)c=125,h=!0,o=We.newMap(null,t),o.startPosition=e.position;else return!1;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),I=e.input.charCodeAt(++e.position);I!==0;){if(ce(e,!0,t),I=e.input.charCodeAt(e.position),I===c)return e.position++,e.tag=i,e.anchor=s,e.kind=h?"mapping":"sequence",e.result=o,o.endPosition=e.position,!0;if(!n){var $=e.position;W(e,"missed comma between flow collection entries"),e.position=$+1}if(y=v=R=null,l=d=!1,I===63&&(a=e.input.charCodeAt(e.position+1),Ue(a)&&(l=d=!0,e.position++,ce(e,!0,t))),r=e.line,wn(e,t,ui,!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),wn(e,t,ui,!1,!0),R=e.result),h)an(e,o,y,v,R,t);else if(l){var Y=an(e,null,y,v,R,t);Y.parent=o,o.items.push(Y)}else v&&(v.parent=o),o.items.push(v);o.endPosition=e.position+1,ce(e,!0,t),I=e.input.charCodeAt(e.position),I===44?(n=!0,I=e.input.charCodeAt(++e.position)):n=!1}W(e,"unexpected end of the stream within a flow collection")}function Dv(e,t){var n,r,i=Is,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)Is===i?i=d===43?jp:pv:W(e,"repeat of a chomping mode identifier");else if((l=yv(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(!st(d)&&d!==0)}for(;d!==0;){for(Ks(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),st(d)){a++;continue}if(e.lineIndent<s){i===jp?h.value+=Lt.repeat(`
10
10
  `,a):i===Is&&o&&(h.value+=`
11
11
  `);break}for(r?cn(d)?(c=!0,h.value+=Lt.repeat(`
12
12
  `,a+1)):c?(c=!1,h.value+=Lt.repeat(`
13
13
  `,a+1)):a===0?o&&(h.value+=" "):h.value+=Lt.repeat(`
14
14
  `,a):o&&(h.value+=Lt.repeat(`
15
15
  `,a+1)),o=!0,a=0,n=e.position;!st(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 R=e.input[v];if(R=="\r"||R==`
16
- `){y&&v--;break}if(R!=" "&&R!=" ")break;v--}return h.endPosition=v,h.rawValue=e.input.substring(h.startPosition,h.endPosition),!0}function Lp(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,wn(e,t,Up,!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 Rv(e,t,n){var r,i,o,s=e.tag,a=e.anchor,c=We.newMap(null,t),l=null,d=null,h=null,v=!1,y=!1,R;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),R=e.input.charCodeAt(e.position);R!==0;){if(r=e.input.charCodeAt(e.position+1),o=e.line,(R===63||R===58)&&Ue(r))R===63?(v&&(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,R=r;else if(wn(e,n,Fp,!1,!0))if(e.line===o){for(R=e.input.charCodeAt(e.position);cn(R);)R=e.input.charCodeAt(++e.position);if(R===58)R=e.input.charCodeAt(++e.position),Ue(R)||W(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(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&&br(e))break;if(y)W(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=a,!0}}else if(y){for(W(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(R=e.input.charCodeAt(--e.position),st(R)){e.position++;break}d=e.result,d.value=e.input.substring(e.result.startPosition,e.position-1),d.rawValue=d.value,d.endPosition=e.position-1,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;wn(e,t,li,!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),R=e.input.charCodeAt(e.position)}if(e.lineIndent>t&&R!==0)W(e,"bad indentation of a mapping entry"+e.position),R=e.input.charCodeAt(++e.position),ce(e,!0,-1);else if(e.lineIndent<t)break}return v&&an(e,c,l,d,null,t),y&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),y}function Tv(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),Wp.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),gv.test(o)&&W(e,"tag suffix cannot contain flow indicator characters")}return o&&!Bp.test(o)&&W(e,"tag name cannot contain such characters: "+o),n?e.tag=o:pi.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:W(e,'undeclared tag handle "'+i+'"'),!0}function wv(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)&&!Tn(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 kv(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)&&!Tn(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 wn(e,t,n,r,i){var o,s,a,c=1,l=!1,d=!1,h,v,y,R,I,$;e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=li===n||Up===n,r&&ce(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));let Y=e.position;if(c===1)for(;Tv(e)||wv(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||li===n)&&(ui===n||Fp===n?R=t:R=t+1,I=e.position-e.lineStart,c===1?a&&(Lp(e,I)||Rv(e,I,R))||Sv(e,R)?d=!0:(s&&Dv(e,R)||_v(e,R)||Cv(e,R)?d=!0:kv(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&W(e,"alias node should not have any properties")):Pv(e,R,ui===n)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result,e.result.anchorId=e.anchor)):c===0&&(d=a&&Lp(e,I))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=We.newScalar("",I),e.result.startPosition=e.position,e.result.endPosition=e.position,W(e,"!include without value")),e.result.kind=We.Kind.INCLUDE_REF;else if(e.tag==="?")for(h=0,v=e.implicitTypes.length;h<v;h+=1){y=e.implicitTypes[h];var m=e.result.value;if(y.resolve(m)){e.result.valueObject=y.construct(e.result.value),e.tag=y.tag,e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result);break}}else pi.call(e.typeMap,e.tag)?(y=e.typeMap[e.tag],e.result!==null&&y.kind!==e.kind&&(!y.additionalKinds||y.additionalKinds&&y.additionalKinds.indexOf(e.kind)===-1)&&W(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+y.kind+'", not "'+e.kind+'"'),y.resolve(e.result)?(e.result=y.construct(e.result),e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result)):W(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):Hs(e,Y,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||d}function Av(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&&!st(s));break}if(st(s))break;for(n=e.position;s!==0&&!Ue(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&Gs(e),pi.call(Mp,r)?Mp[r](e,r,i):(zs(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"),wn(e,e.lineIndent-1,li,!1,!0),ce(e,!0,-1),e.checkLineBreaks&&fv.test(e.input.slice(t,e.position))&&zs(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&br(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 zp(e,t){e=String(e),t=t||{};let n=e.length;n!==0&&(e.charCodeAt(n-1)!==10&&e.charCodeAt(n-1)!==13&&(e+=`
16
+ `){y&&v--;break}if(R!=" "&&R!=" ")break;v--}return h.endPosition=v,h.rawValue=e.input.substring(h.startPosition,h.endPosition),!0}function Lp(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,wn(e,t,Up,!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 Rv(e,t,n){var r,i,o,s=e.tag,a=e.anchor,c=We.newMap(null,t),l=null,d=null,h=null,v=!1,y=!1,R;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),R=e.input.charCodeAt(e.position);R!==0;){if(r=e.input.charCodeAt(e.position+1),o=e.line,(R===63||R===58)&&Ue(r))R===63?(v&&(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,R=r;else if(wn(e,n,Fp,!1,!0))if(e.line===o){for(R=e.input.charCodeAt(e.position);cn(R);)R=e.input.charCodeAt(++e.position);if(R===58)R=e.input.charCodeAt(++e.position),Ue(R)||W(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(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&&br(e))break;if(y)W(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=a,!0}}else if(y){for(W(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(R=e.input.charCodeAt(--e.position),st(R)){e.position++;break}d=e.result,d.value=e.input.substring(e.result.startPosition,e.position-1),d.rawValue=d.value,d.endPosition=e.position-1,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;wn(e,t,li,!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),R=e.input.charCodeAt(e.position)}if(e.lineIndent>t&&R!==0)W(e,"bad indentation of a mapping entry"+e.position),R=e.input.charCodeAt(++e.position),ce(e,!0,-1);else if(e.lineIndent<t)break}return v&&an(e,c,l,d,null,t),y&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),y}function Tv(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),Wp.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),gv.test(o)&&W(e,"tag suffix cannot contain flow indicator characters")}return o&&!Bp.test(o)&&W(e,"tag name cannot contain such characters: "+o),n?e.tag=o:pi.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:W(e,'undeclared tag handle "'+i+'"'),!0}function wv(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)&&!Tn(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 kv(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)&&!Tn(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 wn(e,t,n,r,i){var o,s,a,c=1,l=!1,d=!1,h,v,y,R,I,$;e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=li===n||Up===n,r&&ce(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));let Y=e.position;if(c===1)for(;Tv(e)||wv(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||li===n)&&(ui===n||Fp===n?R=t:R=t+1,I=e.position-e.lineStart,c===1?a&&(Lp(e,I)||Rv(e,I,R))||Sv(e,R)?d=!0:(s&&Dv(e,R)||_v(e,R)||Cv(e,R)?d=!0:kv(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&W(e,"alias node should not have any properties")):Pv(e,R,ui===n)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result,e.result.anchorId=e.anchor)):c===0&&(d=a&&Lp(e,I))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=We.newScalar("",I),e.result.startPosition=e.position,e.result.endPosition=e.position,W(e,"!include without value")),e.result.kind=We.Kind.INCLUDE_REF;else if(e.tag==="?")for(h=0,v=e.implicitTypes.length;h<v;h+=1){y=e.implicitTypes[h];var m=e.result.value;if(y.resolve(m)){e.result.valueObject=y.construct(e.result.value),e.tag=y.tag,e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result);break}}else pi.call(e.typeMap,e.tag)?(y=e.typeMap[e.tag],e.result!==null&&y.kind!==e.kind&&(!y.additionalKinds||y.additionalKinds&&y.additionalKinds.indexOf(e.kind)===-1)&&W(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+y.kind+'", not "'+e.kind+'"'),y.resolve(e.result)?(e.result=y.construct(e.result),e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result)):W(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):Hs(e,Y,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||d}function Av(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&&!st(s));break}if(st(s))break;for(n=e.position;s!==0&&!Ue(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&Ks(e),pi.call(Mp,r)?Mp[r](e,r,i):(zs(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"),wn(e,e.lineIndent-1,li,!1,!0),ce(e,!0,-1),e.checkLineBreaks&&fv.test(e.input.slice(t,e.position))&&zs(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&br(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 zp(e,t){e=String(e),t=t||{};let n=e.length;n!==0&&(e.charCodeAt(n-1)!==10&&e.charCodeAt(n-1)!==13&&(e+=`
17
17
  `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Bs(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(Av(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 Qs(e,t,n={}){var r=zp(e,n),i,o;for(i=0,o=r.length;i<o;i+=1)t(r[i])}dt.loadAll=Qs;function Js(e,t={}){var n=zp(e,t),r,i;if(n.length!==0){if(n.length===1)return n[0];var o=new $s("expected a single document in the stream, but found more");return o.mark=new Vs("","",0,0,0),o.mark.position=n[0].endPosition,n[0].errors.push(o),n[0]}}dt.load=Js;function $p(e,t,n={}){Qs(e,t,Lt.extend({schema:Ip},n))}dt.safeLoadAll=$p;function Vp(e,t={}){return Js(e,Lt.extend({schema:Ip},t))}dt.safeLoad=Vp;vr.exports.loadAll=Qs;vr.exports.load=Js;vr.exports.safeLoadAll=$p;vr.exports.safeLoad=Vp});var ed=S(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.safeDump=kn.dump=void 0;var xr=sn(),ra=Dn(),Ov=Ls(),qv=ci(),ia=Object.prototype.toString,Jp=Object.prototype.hasOwnProperty,Nv=9,un=10,Ev=13,Xs=32,jv=33,Zs=34,Mv=35,Lv=37,Iv=38,ea=39,Fv=42,Uv=44,Wv=45,Bv=58,Hv=62,zv=63,$v=64,Vv=91,Yv=93,Gv=96,Kv=123,Qv=124,Jv=125,De={};De[0]="\\0";De[7]="\\a";De[8]="\\b";De[9]="\\t";De[10]="\\n";De[11]="\\v";De[12]="\\f";De[13]="\\r";De[27]="\\e";De[34]='\\"';De[92]="\\\\";De[133]="\\N";De[160]="\\_";De[8232]="\\L";De[8233]="\\P";var Xv=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Zv(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&&Jp.call(c.styleAliases,a)&&(a=c.styleAliases[a]),n[s]=a;return n}function ex(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 ra("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+xr.repeat("0",r-t.length)+t}function tx(e){this.schema=e.schema||Ov,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=xr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Zv(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 Gp(e,t){for(var n=xr.repeat(" ",t),r=0,i=-1,o="",s,a=e.length;r<a;)i=e.indexOf(`
18
+ `)break}}let s=r.documents,a=s.length;a>0&&(s[a-1].endPosition=n);for(let c of s)c.errors=r.errors,c.startPosition>c.endPosition&&(c.startPosition=c.endPosition);return s}function Qs(e,t,n={}){var r=zp(e,n),i,o;for(i=0,o=r.length;i<o;i+=1)t(r[i])}dt.loadAll=Qs;function Js(e,t={}){var n=zp(e,t),r,i;if(n.length!==0){if(n.length===1)return n[0];var o=new $s("expected a single document in the stream, but found more");return o.mark=new Vs("","",0,0,0),o.mark.position=n[0].endPosition,n[0].errors.push(o),n[0]}}dt.load=Js;function $p(e,t,n={}){Qs(e,t,Lt.extend({schema:Ip},n))}dt.safeLoadAll=$p;function Vp(e,t={}){return Js(e,Lt.extend({schema:Ip},t))}dt.safeLoad=Vp;vr.exports.loadAll=Qs;vr.exports.load=Js;vr.exports.safeLoadAll=$p;vr.exports.safeLoad=Vp});var ed=S(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.safeDump=kn.dump=void 0;var xr=sn(),ra=Dn(),Ov=Ls(),qv=ci(),ia=Object.prototype.toString,Jp=Object.prototype.hasOwnProperty,Nv=9,un=10,Ev=13,Xs=32,jv=33,Zs=34,Mv=35,Lv=37,Iv=38,ea=39,Fv=42,Uv=44,Wv=45,Bv=58,Hv=62,zv=63,$v=64,Vv=91,Yv=93,Kv=96,Gv=123,Qv=124,Jv=125,De={};De[0]="\\0";De[7]="\\a";De[8]="\\b";De[9]="\\t";De[10]="\\n";De[11]="\\v";De[12]="\\f";De[13]="\\r";De[27]="\\e";De[34]='\\"';De[92]="\\\\";De[133]="\\N";De[160]="\\_";De[8232]="\\L";De[8233]="\\P";var Xv=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Zv(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&&Jp.call(c.styleAliases,a)&&(a=c.styleAliases[a]),n[s]=a;return n}function ex(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 ra("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+xr.repeat("0",r-t.length)+t}function tx(e){this.schema=e.schema||Ov,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=xr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Zv(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 Kp(e,t){for(var n=xr.repeat(" ",t),r=0,i=-1,o="",s,a=e.length;r<a;)i=e.indexOf(`
19
19
  `,r),i===-1?(s=e.slice(r),r=a):(s=e.slice(r,i+1),r=i+1),s.length&&s!==`
20
20
  `&&(o+=n),o+=s;return o}function ta(e,t){return`
21
- `+xr.repeat(" ",e.indent*t)}function nx(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function di(e){this.source=e,this.result="",this.checkpoint=0}di.prototype.takeUpTo=function(e){var t;if(e<this.checkpoint)throw t=new Error("position should be > checkpoint"),t.position=e,t.checkpoint=this.checkpoint,t;return this.result+=this.source.slice(this.checkpoint,e),this.checkpoint=e,this};di.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=De[e]||ex(e),this.result+=t,this.checkpoint+=1,this};di.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function rx(e,t,n){var r,i,o,s,a,c,l,d,h,v,y,R,I,$,Y,m,g,w,V,X,it;if(t.length===0){e.dump="''";return}if(t.indexOf("!include")==0){e.dump=""+t;return}if(t.indexOf("!$$$novalue")==0){e.dump="";return}if(Xv.indexOf(t)!==-1){e.dump="'"+t+"'";return}for(r=!0,i=t.length?t.charCodeAt(0):0,o=Xs===i||Xs===t.charCodeAt(t.length-1),(Wv===i||zv===i||$v===i||Gv===i)&&(r=!1),o?(r=!1,s=!1,a=!1):(s=!0,a=!0),c=!0,l=new di(t),d=!1,h=0,v=0,y=e.indent*n,R=80,y<40?R-=y:R=40,$=0;$<t.length;$++){if(I=t.charCodeAt($),r)if(!ox(I))r=!1;else continue;c&&I===ea&&(c=!1),Y=De[I],m=Xp(I),!(!Y&&!m)&&(I!==un&&I!==Zs&&I!==ea?(s=!1,a=!1):I===un&&(d=!0,c=!1,$>0&&(g=t.charCodeAt($-1),g===Xs&&(a=!1,s=!1)),s&&(w=$-h,h=$,w>v&&(v=w))),I!==Zs&&(c=!1),l.takeUpTo($),l.escapeChar())}if(r&&nx(e,t)&&(r=!1),V="",(s||a)&&(X=0,t.charCodeAt(t.length-1)===un&&(X+=1,t.charCodeAt(t.length-2)===un&&(X+=1)),X===0?V="-":X===2&&(V="+")),a&&v<R&&(s=!1),d||(a=!1),r)e.dump=t;else if(c)e.dump="'"+t+"'";else if(s)it=ix(t,R),e.dump=">"+V+`
22
- `+Gp(it,y);else if(a)V||(t=t.replace(/\n$/,"")),e.dump="|"+V+`
23
- `+Gp(t,y);else if(l)l.finish(),e.dump='"'+l.result+'"';else throw new Error("Failed to dump scalar value")}function ix(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(`
21
+ `+xr.repeat(" ",e.indent*t)}function nx(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function di(e){this.source=e,this.result="",this.checkpoint=0}di.prototype.takeUpTo=function(e){var t;if(e<this.checkpoint)throw t=new Error("position should be > checkpoint"),t.position=e,t.checkpoint=this.checkpoint,t;return this.result+=this.source.slice(this.checkpoint,e),this.checkpoint=e,this};di.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=De[e]||ex(e),this.result+=t,this.checkpoint+=1,this};di.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function rx(e,t,n){var r,i,o,s,a,c,l,d,h,v,y,R,I,$,Y,m,g,w,V,X,it;if(t.length===0){e.dump="''";return}if(t.indexOf("!include")==0){e.dump=""+t;return}if(t.indexOf("!$$$novalue")==0){e.dump="";return}if(Xv.indexOf(t)!==-1){e.dump="'"+t+"'";return}for(r=!0,i=t.length?t.charCodeAt(0):0,o=Xs===i||Xs===t.charCodeAt(t.length-1),(Wv===i||zv===i||$v===i||Kv===i)&&(r=!1),o?(r=!1,s=!1,a=!1):(s=!0,a=!0),c=!0,l=new di(t),d=!1,h=0,v=0,y=e.indent*n,R=80,y<40?R-=y:R=40,$=0;$<t.length;$++){if(I=t.charCodeAt($),r)if(!ox(I))r=!1;else continue;c&&I===ea&&(c=!1),Y=De[I],m=Xp(I),!(!Y&&!m)&&(I!==un&&I!==Zs&&I!==ea?(s=!1,a=!1):I===un&&(d=!0,c=!1,$>0&&(g=t.charCodeAt($-1),g===Xs&&(a=!1,s=!1)),s&&(w=$-h,h=$,w>v&&(v=w))),I!==Zs&&(c=!1),l.takeUpTo($),l.escapeChar())}if(r&&nx(e,t)&&(r=!1),V="",(s||a)&&(X=0,t.charCodeAt(t.length-1)===un&&(X+=1,t.charCodeAt(t.length-2)===un&&(X+=1)),X===0?V="-":X===2&&(V="+")),a&&v<R&&(s=!1),d||(a=!1),r)e.dump=t;else if(c)e.dump="'"+t+"'";else if(s)it=ix(t,R),e.dump=">"+V+`
22
+ `+Kp(it,y);else if(a)V||(t=t.replace(/\n$/,"")),e.dump="|"+V+`
23
+ `+Kp(t,y);else if(l)l.finish(),e.dump='"'+l.result+'"';else throw new Error("Failed to dump scalar value")}function ix(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+=Kp(e.slice(r,i),t),r=i):(n&&(n+=`
26
+ `),n+=Gp(e.slice(r,i),t),r=i):(n&&(n+=`
27
27
 
28
- `),n+=Kp(e.slice(r,s),t),r=s+1);return o&&o[0]!==`
29
- `&&(n+=o[0]),n}function Kp(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+=Gp(e.slice(r,s),t),r=s+1);return o&&o[0]!==`
29
+ `&&(n+=o[0]),n}function Gp(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 ox(e){return Nv!==e&&un!==e&&Ev!==e&&Uv!==e&&Vv!==e&&Yv!==e&&Kv!==e&&Jv!==e&&Mv!==e&&Iv!==e&&Fv!==e&&jv!==e&&Qv!==e&&Hv!==e&&ea!==e&&Zs!==e&&Lv!==e&&Bv!==e&&!De[e]&&!Xp(e)}function Xp(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function sx(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+=ta(e,t)),i+="- "+e.dump);e.tag=o,e.dump=i||"[]"}function cx(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 ux(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+=ta(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+=ta(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 Qp(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,ia.call(a.represent)==="[object Function]")r=a.represent(t,c);else if(Jp.call(a.represent,c))r=a.represent[c](t,c);else throw new ra("!<"+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,Qp(e,n,!1)||Qp(e,n,!0);var o=ia.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?(ux(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
32
+ `+e.slice(i+1):r+=e.slice(o),r}function ox(e){return Nv!==e&&un!==e&&Ev!==e&&Uv!==e&&Vv!==e&&Yv!==e&&Gv!==e&&Jv!==e&&Mv!==e&&Iv!==e&&Fv!==e&&jv!==e&&Qv!==e&&Hv!==e&&ea!==e&&Zs!==e&&Lv!==e&&Bv!==e&&!De[e]&&!Xp(e)}function Xp(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function sx(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+=ta(e,t)),i+="- "+e.dump);e.tag=o,e.dump=i||"[]"}function cx(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 ux(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+=ta(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+=ta(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 Qp(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,ia.call(a.represent)==="[object Function]")r=a.represent(t,c);else if(Jp.call(a.represent,c))r=a.represent[c](t,c);else throw new ra("!<"+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,Qp(e,n,!1)||Qp(e,n,!0);var o=ia.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?(ux(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
33
33
  `:"")+e.dump)):(cx(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
34
  `:"")+e.dump)):(sx(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&rx(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new ra("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function lx(e,t){var n=[],r=[],i,o;for(na(e,n,r),i=0,o=r.length;i<o;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(o)}function na(e,t,n){var r=ia.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)na(e[o],t,n);else for(i=Object.keys(e),o=0,s=i.length;o<s;o+=1)na(e[i[o]],t,n)}function Zp(e,t){t=t||{};var n=new tx(t);return lx(e,n),ln(n,0,e,!0,!0)?n.dump+`
35
- `:""}kn.dump=Zp;function px(e,t){return Zp(e,xr.extend({schema:qv},t))}kn.safeDump=px});var td=S(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.determineScalarType=Ve.ScalarType=Ve.parseYamlFloat=Ve.parseYamlInteger=Ve.parseYamlBoolean=void 0;function dx(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=dx;function fx(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function gx(e){let t=fx(e);if(isNaN(t))throw`Invalid integer "${e}"`;return t}Ve.parseYamlInteger=gx;function mx(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=mx;var Ct;(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"})(Ct=Ve.ScalarType||(Ve.ScalarType={}));function hx(e){if(e===void 0)return Ct.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return Ct.string;let t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return Ct.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return Ct.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 Ct.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?Ct.float:Ct.string}Ve.determineScalarType=hx});var Pr=S(he=>{"use strict";var yx=he&&he.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),nd=he&&he.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&yx(t,e,n)};Object.defineProperty(he,"__esModule",{value:!0});he.safeDump=he.dump=he.safeLoadAll=he.safeLoad=he.loadAll=he.load=void 0;var fi=Yp();Object.defineProperty(he,"load",{enumerable:!0,get:function(){return fi.load}});Object.defineProperty(he,"loadAll",{enumerable:!0,get:function(){return fi.loadAll}});Object.defineProperty(he,"safeLoad",{enumerable:!0,get:function(){return fi.safeLoad}});Object.defineProperty(he,"safeLoadAll",{enumerable:!0,get:function(){return fi.safeLoadAll}});var rd=ed();Object.defineProperty(he,"dump",{enumerable:!0,get:function(){return rd.dump}});Object.defineProperty(he,"safeDump",{enumerable:!0,get:function(){return rd.safeDump}});he.YAMLException=Dn();nd(_t(),he);nd(td(),he)});var In=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 y_(e){return e===!0||e===!1}qe.boolean=y_;function Od(e){return typeof e=="string"||e instanceof String}qe.string=Od;function b_(e){return typeof e=="number"||e instanceof Number}qe.number=b_;function v_(e){return e instanceof Error}qe.error=v_;function x_(e){return typeof e=="function"}qe.func=x_;function qd(e){return Array.isArray(e)}qe.array=qd;function P_(e){return qd(e)&&e.every(t=>Od(t))}qe.stringArray=P_});var Ga=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 gn=In(),Sa;(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})(Sa||(F.ErrorCodes=Sa={}));var Da=class e extends Error{constructor(t,n,r){super(n),this.code=gn.number(t)?t:Sa.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=Da;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}};F.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}};F.AbstractMessageSignature=oe;var Ra=class extends oe{constructor(t){super(t,0)}};F.RequestType0=Ra;var Ta=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType=Ta;var wa=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType1=wa;var ka=class extends oe{constructor(t){super(t,2)}};F.RequestType2=ka;var Aa=class extends oe{constructor(t){super(t,3)}};F.RequestType3=Aa;var Oa=class extends oe{constructor(t){super(t,4)}};F.RequestType4=Oa;var qa=class extends oe{constructor(t){super(t,5)}};F.RequestType5=qa;var Na=class extends oe{constructor(t){super(t,6)}};F.RequestType6=Na;var Ea=class extends oe{constructor(t){super(t,7)}};F.RequestType7=Ea;var ja=class extends oe{constructor(t){super(t,8)}};F.RequestType8=ja;var Ma=class extends oe{constructor(t){super(t,9)}};F.RequestType9=Ma;var La=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType=La;var Ia=class extends oe{constructor(t){super(t,0)}};F.NotificationType0=Ia;var Fa=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType1=Fa;var Ua=class extends oe{constructor(t){super(t,2)}};F.NotificationType2=Ua;var Wa=class extends oe{constructor(t){super(t,3)}};F.NotificationType3=Wa;var Ba=class extends oe{constructor(t){super(t,4)}};F.NotificationType4=Ba;var Ha=class extends oe{constructor(t){super(t,5)}};F.NotificationType5=Ha;var za=class extends oe{constructor(t){super(t,6)}};F.NotificationType6=za;var $a=class extends oe{constructor(t){super(t,7)}};F.NotificationType7=$a;var Va=class extends oe{constructor(t){super(t,8)}};F.NotificationType8=Va;var Ya=class extends oe{constructor(t){super(t,9)}};F.NotificationType9=Ya;var Nd;(function(e){function t(i){let o=i;return o&&gn.string(o.method)&&(gn.string(o.id)||gn.number(o.id))}e.isRequest=t;function n(i){let o=i;return o&&gn.string(o.method)&&i.id===void 0}e.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(gn.string(o.id)||gn.number(o.id)||o.id===null)}e.isResponse=r})(Nd||(F.Message=Nd={}))});var Qa=S(Wt=>{"use strict";var Ed;Object.defineProperty(Wt,"__esModule",{value:!0});Wt.LRUCache=Wt.LinkedMap=Wt.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||(Wt.Touch=Ne={}));var Vi=class{constructor(){this[Ed]="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}[(Ed=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)}};Wt.LinkedMap=Vi;var Ka=class extends Vi{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))}};Wt.LRUCache=Ka});var Md=S(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.Disposable=void 0;var jd;(function(e){function t(n){return{dispose:n}}e.create=t})(jd||(Yi.Disposable=jd={}))});var Bt=S(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var Ja;function Xa(){if(Ja===void 0)throw new Error("No runtime abstraction layer installed");return Ja}(function(e){function t(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");Ja=n}e.install=t})(Xa||(Xa={}));Za.default=Xa});var Un=S(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.Emitter=Fn.Event=void 0;var __=Bt(),Ld;(function(e){let t={dispose(){}};e.None=function(){return t}})(Ld||(Fn.Event=Ld={}));var ec=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,__.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Gi=class e{constructor(t){this._options=t}get event(){return this._event||(this._event=(t,n,r)=>{this._callbacks||(this._callbacks=new ec),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)}};Fn.Emitter=Gi;Gi._noop=function(){}});var Ji=S(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.CancellationTokenSource=Wn.CancellationToken=void 0;var C_=Bt(),S_=In(),tc=Un(),Ki;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:tc.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:tc.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})(Ki||(Wn.CancellationToken=Ki={}));var D_=Object.freeze(function(e,t){let n=(0,C_.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),Qi=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?D_:(this._emitter||(this._emitter=new tc.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},nc=class{get token(){return this._token||(this._token=new Qi),this._token}cancel(){this._token?this._token.cancel():this._token=Ki.Cancelled}dispose(){this._token?this._token instanceof Qi&&this._token.dispose():this._token=Ki.None}};Wn.CancellationTokenSource=nc});var Id=S(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.SharedArrayReceiverStrategy=Bn.SharedArraySenderStrategy=void 0;var R_=Ji(),wr;(function(e){e.Continue=0,e.Cancelled=1})(wr||(wr={}));var rc=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]=wr.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,wr.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};Bn.SharedArraySenderStrategy=rc;var ic=class{constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===wr.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},oc=class{constructor(t){this.token=new ic(t)}cancel(){}dispose(){}},sc=class{constructor(){this.kind="request"}createCancellationTokenSource(t){let n=t.$cancellationData;return n===void 0?new R_.CancellationTokenSource:new oc(n)}};Bn.SharedArrayReceiverStrategy=sc});var cc=S(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.Semaphore=void 0;var T_=Bt(),ac=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,T_.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()}}};Xi.Semaphore=ac});var Ud=S(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.ReadableStreamMessageReader=Ht.AbstractMessageReader=Ht.MessageReader=void 0;var lc=Bt(),Hn=In(),uc=Un(),w_=cc(),Fd;(function(e){function t(n){let r=n;return r&&Hn.func(r.listen)&&Hn.func(r.dispose)&&Hn.func(r.onError)&&Hn.func(r.onClose)&&Hn.func(r.onPartialMessage)}e.is=t})(Fd||(Ht.MessageReader=Fd={}));var Zi=class{constructor(){this.errorEmitter=new uc.Emitter,this.closeEmitter=new uc.Emitter,this.partialMessageEmitter=new uc.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(t){this.errorEmitter.fire(this.asError(t))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(t){this.partialMessageEmitter.fire(t)}asError(t){return t instanceof Error?t:new Error(`Reader received error. Reason: ${Hn.string(t.message)?t.message:"unknown"}`)}};Ht.AbstractMessageReader=Zi;var pc;(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,lc.default)().applicationJson.decoder,c.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:c}}e.fromOptions=t})(pc||(pc={}));var dc=class extends Zi{constructor(t,n){super(),this.readable=t,this.options=pc.fromOptions(n),this.buffer=(0,lc.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new w_.Semaphore(1)}set partialMessageTimeout(t){this._partialMessageTimeout=t}get partialMessageTimeout(){return this._partialMessageTimeout}listen(t){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=t;let n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(t){try{for(this.buffer.append(t);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
35
+ `:""}kn.dump=Zp;function px(e,t){return Zp(e,xr.extend({schema:qv},t))}kn.safeDump=px});var td=S(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.determineScalarType=Ve.ScalarType=Ve.parseYamlFloat=Ve.parseYamlInteger=Ve.parseYamlBoolean=void 0;function dx(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=dx;function fx(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function gx(e){let t=fx(e);if(isNaN(t))throw`Invalid integer "${e}"`;return t}Ve.parseYamlInteger=gx;function mx(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=mx;var Ct;(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"})(Ct=Ve.ScalarType||(Ve.ScalarType={}));function hx(e){if(e===void 0)return Ct.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return Ct.string;let t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return Ct.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return Ct.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 Ct.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?Ct.float:Ct.string}Ve.determineScalarType=hx});var Pr=S(he=>{"use strict";var yx=he&&he.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),nd=he&&he.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&yx(t,e,n)};Object.defineProperty(he,"__esModule",{value:!0});he.safeDump=he.dump=he.safeLoadAll=he.safeLoad=he.loadAll=he.load=void 0;var fi=Yp();Object.defineProperty(he,"load",{enumerable:!0,get:function(){return fi.load}});Object.defineProperty(he,"loadAll",{enumerable:!0,get:function(){return fi.loadAll}});Object.defineProperty(he,"safeLoad",{enumerable:!0,get:function(){return fi.safeLoad}});Object.defineProperty(he,"safeLoadAll",{enumerable:!0,get:function(){return fi.safeLoadAll}});var rd=ed();Object.defineProperty(he,"dump",{enumerable:!0,get:function(){return rd.dump}});Object.defineProperty(he,"safeDump",{enumerable:!0,get:function(){return rd.safeDump}});he.YAMLException=Dn();nd(_t(),he);nd(td(),he)});var In=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 y_(e){return e===!0||e===!1}qe.boolean=y_;function Od(e){return typeof e=="string"||e instanceof String}qe.string=Od;function b_(e){return typeof e=="number"||e instanceof Number}qe.number=b_;function v_(e){return e instanceof Error}qe.error=v_;function x_(e){return typeof e=="function"}qe.func=x_;function qd(e){return Array.isArray(e)}qe.array=qd;function P_(e){return qd(e)&&e.every(t=>Od(t))}qe.stringArray=P_});var Ka=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 gn=In(),Sa;(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})(Sa||(F.ErrorCodes=Sa={}));var Da=class e extends Error{constructor(t,n,r){super(n),this.code=gn.number(t)?t:Sa.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=Da;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}};F.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}};F.AbstractMessageSignature=oe;var Ra=class extends oe{constructor(t){super(t,0)}};F.RequestType0=Ra;var Ta=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType=Ta;var wa=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType1=wa;var ka=class extends oe{constructor(t){super(t,2)}};F.RequestType2=ka;var Aa=class extends oe{constructor(t){super(t,3)}};F.RequestType3=Aa;var Oa=class extends oe{constructor(t){super(t,4)}};F.RequestType4=Oa;var qa=class extends oe{constructor(t){super(t,5)}};F.RequestType5=qa;var Na=class extends oe{constructor(t){super(t,6)}};F.RequestType6=Na;var Ea=class extends oe{constructor(t){super(t,7)}};F.RequestType7=Ea;var ja=class extends oe{constructor(t){super(t,8)}};F.RequestType8=ja;var Ma=class extends oe{constructor(t){super(t,9)}};F.RequestType9=Ma;var La=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType=La;var Ia=class extends oe{constructor(t){super(t,0)}};F.NotificationType0=Ia;var Fa=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType1=Fa;var Ua=class extends oe{constructor(t){super(t,2)}};F.NotificationType2=Ua;var Wa=class extends oe{constructor(t){super(t,3)}};F.NotificationType3=Wa;var Ba=class extends oe{constructor(t){super(t,4)}};F.NotificationType4=Ba;var Ha=class extends oe{constructor(t){super(t,5)}};F.NotificationType5=Ha;var za=class extends oe{constructor(t){super(t,6)}};F.NotificationType6=za;var $a=class extends oe{constructor(t){super(t,7)}};F.NotificationType7=$a;var Va=class extends oe{constructor(t){super(t,8)}};F.NotificationType8=Va;var Ya=class extends oe{constructor(t){super(t,9)}};F.NotificationType9=Ya;var Nd;(function(e){function t(i){let o=i;return o&&gn.string(o.method)&&(gn.string(o.id)||gn.number(o.id))}e.isRequest=t;function n(i){let o=i;return o&&gn.string(o.method)&&i.id===void 0}e.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(gn.string(o.id)||gn.number(o.id)||o.id===null)}e.isResponse=r})(Nd||(F.Message=Nd={}))});var Qa=S(Wt=>{"use strict";var Ed;Object.defineProperty(Wt,"__esModule",{value:!0});Wt.LRUCache=Wt.LinkedMap=Wt.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||(Wt.Touch=Ne={}));var Vi=class{constructor(){this[Ed]="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}[(Ed=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)}};Wt.LinkedMap=Vi;var Ga=class extends Vi{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))}};Wt.LRUCache=Ga});var Md=S(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.Disposable=void 0;var jd;(function(e){function t(n){return{dispose:n}}e.create=t})(jd||(Yi.Disposable=jd={}))});var Bt=S(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var Ja;function Xa(){if(Ja===void 0)throw new Error("No runtime abstraction layer installed");return Ja}(function(e){function t(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");Ja=n}e.install=t})(Xa||(Xa={}));Za.default=Xa});var Un=S(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.Emitter=Fn.Event=void 0;var __=Bt(),Ld;(function(e){let t={dispose(){}};e.None=function(){return t}})(Ld||(Fn.Event=Ld={}));var ec=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,__.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Ki=class e{constructor(t){this._options=t}get event(){return this._event||(this._event=(t,n,r)=>{this._callbacks||(this._callbacks=new ec),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)}};Fn.Emitter=Ki;Ki._noop=function(){}});var Ji=S(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.CancellationTokenSource=Wn.CancellationToken=void 0;var C_=Bt(),S_=In(),tc=Un(),Gi;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:tc.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:tc.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})(Gi||(Wn.CancellationToken=Gi={}));var D_=Object.freeze(function(e,t){let n=(0,C_.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),Qi=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?D_:(this._emitter||(this._emitter=new tc.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},nc=class{get token(){return this._token||(this._token=new Qi),this._token}cancel(){this._token?this._token.cancel():this._token=Gi.Cancelled}dispose(){this._token?this._token instanceof Qi&&this._token.dispose():this._token=Gi.None}};Wn.CancellationTokenSource=nc});var Id=S(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.SharedArrayReceiverStrategy=Bn.SharedArraySenderStrategy=void 0;var R_=Ji(),wr;(function(e){e.Continue=0,e.Cancelled=1})(wr||(wr={}));var rc=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]=wr.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,wr.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};Bn.SharedArraySenderStrategy=rc;var ic=class{constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===wr.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},oc=class{constructor(t){this.token=new ic(t)}cancel(){}dispose(){}},sc=class{constructor(){this.kind="request"}createCancellationTokenSource(t){let n=t.$cancellationData;return n===void 0?new R_.CancellationTokenSource:new oc(n)}};Bn.SharedArrayReceiverStrategy=sc});var cc=S(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.Semaphore=void 0;var T_=Bt(),ac=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,T_.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()}}};Xi.Semaphore=ac});var Ud=S(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.ReadableStreamMessageReader=Ht.AbstractMessageReader=Ht.MessageReader=void 0;var lc=Bt(),Hn=In(),uc=Un(),w_=cc(),Fd;(function(e){function t(n){let r=n;return r&&Hn.func(r.listen)&&Hn.func(r.dispose)&&Hn.func(r.onError)&&Hn.func(r.onClose)&&Hn.func(r.onPartialMessage)}e.is=t})(Fd||(Ht.MessageReader=Fd={}));var Zi=class{constructor(){this.errorEmitter=new uc.Emitter,this.closeEmitter=new uc.Emitter,this.partialMessageEmitter=new uc.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(t){this.errorEmitter.fire(this.asError(t))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(t){this.partialMessageEmitter.fire(t)}asError(t){return t instanceof Error?t:new Error(`Reader received error. Reason: ${Hn.string(t.message)?t.message:"unknown"}`)}};Ht.AbstractMessageReader=Zi;var pc;(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,lc.default)().applicationJson.decoder,c.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:c}}e.fromOptions=t})(pc||(pc={}));var dc=class extends Zi{constructor(t,n){super(),this.readable=t,this.options=pc.fromOptions(n),this.buffer=(0,lc.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new w_.Semaphore(1)}set partialMessageTimeout(t){this._partialMessageTimeout=t}get partialMessageTimeout(){return this._partialMessageTimeout}listen(t){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=t;let n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(t){try{for(this.buffer.append(t);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
36
36
  ${JSON.stringify(Object.fromEntries(r))}`));return}let o=parseInt(i);if(isNaN(o)){this.fireError(new Error(`Content-Length value must be a number. Got ${i}`));return}this.nextMessageLength=o}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let r=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch(r=>{this.fireError(r)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,lc.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))}};Ht.ReadableStreamMessageReader=dc});var $d=S(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.WriteableStreamMessageWriter=zt.AbstractMessageWriter=zt.MessageWriter=void 0;var Wd=Bt(),kr=In(),k_=cc(),Bd=Un(),A_="Content-Length: ",Hd=`\r
37
37
  `,zd;(function(e){function t(n){let r=n;return r&&kr.func(r.dispose)&&kr.func(r.onClose)&&kr.func(r.onError)&&kr.func(r.write)}e.is=t})(zd||(zt.MessageWriter=zd={}));var eo=class{constructor(){this.errorEmitter=new Bd.Emitter,this.closeEmitter=new Bd.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: ${kr.string(t.message)?t.message:"unknown"}`)}};zt.AbstractMessageWriter=eo;var fc;(function(e){function t(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,Wd.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,Wd.default)().applicationJson.encoder}}e.fromOptions=t})(fc||(fc={}));var gc=class extends eo{constructor(t,n){super(),this.writable=t,this.options=fc.fromOptions(n),this.errorCount=0,this.writeSemaphore=new k_.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(A_,r.byteLength.toString(),Hd),i.push(Hd),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()}};zt.WriteableStreamMessageWriter=gc});var Vd=S(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.AbstractMessageBuffer=void 0;var O_=13,q_=10,N_=`\r
38
38
  `,mc=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 O_:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case q_: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(N_);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}};to.AbstractMessageBuffer=mc});var Jd=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 Yd=Bt(),ue=In(),U=Ga(),Gd=Qa(),Ar=Un(),hc=Ji(),Nr;(function(e){e.type=new U.NotificationType("$/cancelRequest")})(Nr||(Nr={}));var yc;(function(e){function t(n){return typeof n=="string"||typeof n=="number"}e.is=t})(yc||(H.ProgressToken=yc={}));var Or;(function(e){e.type=new U.NotificationType("$/progress")})(Or||(Or={}));var bc=class{constructor(){}};H.ProgressType=bc;var vc;(function(e){function t(n){return ue.func(n)}e.is=t})(vc||(vc={}));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 Kd;(function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"})(Kd||(H.TraceValues=Kd={}));(function(e){function t(r){if(!ue.string(r))return e.Off;switch(r=r.toLowerCase(),r){case"off":return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose;default:return e.Off}}e.fromString=t;function n(r){switch(r){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}e.toString=n})(J||(H.Trace=J={}));var Ye;(function(e){e.Text="text",e.JSON="json"})(Ye||(H.TraceFormat=Ye={}));(function(e){function t(n){return ue.string(n)?(n=n.toLowerCase(),n==="json"?e.JSON:e.Text):e.Text}e.fromString=t})(Ye||(H.TraceFormat=Ye={}));var xc;(function(e){e.type=new U.NotificationType("$/setTrace")})(xc||(H.SetTraceNotification=xc={}));var no;(function(e){e.type=new U.NotificationType("$/logTrace")})(no||(H.LogTraceNotification=no={}));var qr;(function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"})(qr||(H.ConnectionErrors=qr={}));var zn=class e extends Error{constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};H.ConnectionError=zn;var Pc;(function(e){function t(n){let r=n;return r&&ue.func(r.cancelUndispatched)}e.is=t})(Pc||(H.ConnectionStrategy=Pc={}));var ro;(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})(ro||(H.IdCancellationReceiverStrategy=ro={}));var _c;(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})(_c||(H.RequestCancellationReceiverStrategy=_c={}));var io;(function(e){e.Message=Object.freeze({createCancellationTokenSource(n){return new hc.CancellationTokenSource}});function t(n){return ro.is(n)||_c.is(n)}e.is=t})(io||(H.CancellationReceiverStrategy=io={}));var oo;(function(e){e.Message=Object.freeze({sendCancellation(n,r){return n.sendNotification(Nr.type,{id:r})},cleanup(n){}});function t(n){let r=n;return r&&ue.func(r.sendCancellation)&&ue.func(r.cleanup)}e.is=t})(oo||(H.CancellationSenderStrategy=oo={}));var so;(function(e){e.Message=Object.freeze({receiver:io.Message,sender:oo.Message});function t(n){let r=n;return r&&io.is(r.receiver)&&oo.is(r.sender)}e.is=t})(so||(H.CancellationStrategy=so={}));var ao;(function(e){function t(n){let r=n;return r&&ue.func(r.handleMessage)}e.is=t})(ao||(H.MessageStrategy=ao={}));var Qd;(function(e){function t(n){let r=n;return r&&(so.is(r.cancellationStrategy)||Pc.is(r.connectionStrategy)||ao.is(r.messageStrategy))}e.is=t})(Qd||(H.ConnectionOptions=Qd={}));var at;(function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"})(at||(at={}));function E_(e,t,n,r){let i=n!==void 0?n:H.NullLogger,o=0,s=0,a=0,c="2.0",l,d=new Map,h,v=new Map,y=new Map,R,I=new Gd.LinkedMap,$=new Map,Y=new Set,m=new Map,g=J.Off,w=Ye.Text,V,X=at.New,it=new Ar.Emitter,Nt=new Ar.Emitter,rn=new Ar.Emitter,_n=new Ar.Emitter,k=new Ar.Emitter,b=r&&r.cancellationStrategy?r.cancellationStrategy:so.Message;function E(p){if(p===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+p.toString()}function j(p){return p===null?"res-unknown-"+(++a).toString():"res-"+p.toString()}function P(){return"not-"+(++s).toString()}function C(p,_){U.Message.isRequest(_)?p.set(E(_.id),_):U.Message.isResponse(_)?p.set(j(_.id),_):p.set(P(),_)}function D(p){}function N(){return X===at.Listening}function M(){return X===at.Closed}function q(){return X===at.Disposed}function z(){(X===at.New||X===at.Listening)&&(X=at.Closed,Nt.fire(void 0))}function G(p){it.fire([p,void 0,void 0])}function Ce(p){it.fire(p)}e.onClose(z),e.onError(G),t.onClose(z),t.onError(Ce);function ee(){R||I.size===0||(R=(0,Yd.default)().timer.setImmediate(()=>{R=void 0,on()}))}function ot(p){U.Message.isRequest(p)?xy(p):U.Message.isNotification(p)?_y(p):U.Message.isResponse(p)?Py(p):p?.type?.startsWith("redocly/")||Cy(p)}function on(){if(I.size===0)return;let p=I.shift();try{let _=r?.messageStrategy;ao.is(_)?_.handleMessage(p,ot):ot(p)}finally{ee()}}let vy=p=>{try{if(U.Message.isNotification(p)&&p.method===Nr.type.method){let _=p.params.id,A=E(_),L=I.get(A);if(U.Message.isRequest(L)){let te=r?.connectionStrategy,le=te&&te.cancelUndispatched?te.cancelUndispatched(L,D):void 0;if(le&&(le.error!==void 0||le.result!==void 0)){I.delete(A),m.delete(_),le.id=L.id,Zr(le,p.method,Date.now()),t.write(le).catch(()=>i.error("Sending response for canceled message failed."));return}}let ie=m.get(_);if(ie!==void 0){ie.cancel(),Ss(p);return}else Y.add(_)}C(I,p)}finally{ee()}};function xy(p){if(q())return;function _(K,ae,Z){let Pe={jsonrpc:c,id:p.id};K instanceof U.ResponseError?Pe.error=K.toJson():Pe.result=K===void 0?null:K,Zr(Pe,ae,Z),t.write(Pe).catch(()=>i.error("Sending response failed."))}function A(K,ae,Z){let Pe={jsonrpc:c,id:p.id,error:K.toJson()};Zr(Pe,ae,Z),t.write(Pe).catch(()=>i.error("Sending response failed."))}function L(K,ae,Z){K===void 0&&(K=null);let Pe={jsonrpc:c,id:p.id,result:K};Zr(Pe,ae,Z),t.write(Pe).catch(()=>i.error("Sending response failed."))}Ry(p);let ie=d.get(p.method),te,le;ie&&(te=ie.type,le=ie.handler);let ge=Date.now();if(le||l){let K=p.id??String(Date.now()),ae=ro.is(b.receiver)?b.receiver.createCancellationTokenSource(K):b.receiver.createCancellationTokenSource(p);p.id!==null&&Y.has(p.id)&&ae.cancel(),p.id!==null&&m.set(K,ae);try{let Z;if(le)if(p.params===void 0){if(te!==void 0&&te.numberOfParams!==0){A(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines ${te.numberOfParams} params but received none.`),p.method,ge);return}Z=le(ae.token)}else if(Array.isArray(p.params)){if(te!==void 0&&te.parameterStructures===U.ParameterStructures.byName){A(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by name but received parameters by position`),p.method,ge);return}Z=le(...p.params,ae.token)}else{if(te!==void 0&&te.parameterStructures===U.ParameterStructures.byPosition){A(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by position but received parameters by name`),p.method,ge);return}Z=le(p.params,ae.token)}else l&&(Z=l(p.method,p.params,ae.token));let Pe=Z;Z?Pe.then?Pe.then(Me=>{m.delete(K),_(Me,p.method,ge)},Me=>{m.delete(K),Me instanceof U.ResponseError?A(Me,p.method,ge):Me&&ue.string(Me.message)?A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Me.message}`),p.method,ge):A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,ge)}):(m.delete(K),_(Z,p.method,ge)):(m.delete(K),L(Z,p.method,ge))}catch(Z){m.delete(K),Z instanceof U.ResponseError?_(Z,p.method,ge):Z&&ue.string(Z.message)?A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Z.message}`),p.method,ge):A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,ge)}}else A(new U.ResponseError(U.ErrorCodes.MethodNotFound,`Unhandled method ${p.method}`),p.method,ge)}function Py(p){if(!q())if(p.id===null)p.error?i.error(`Received response message without id: Error is:
39
+ ${d}`);let v=d.substr(0,h),y=d.substr(h+1).trim();a.set(t?v.toLowerCase():v,y)}return a}tryReadBody(t){if(!(this._totalLength<t))return this._read(t)}get numberOfBytes(){return this._totalLength}_read(t){if(t===0)return this.emptyBuffer();if(t>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===t){let o=this._chunks[0];return this._chunks.shift(),this._totalLength-=t,this.asNative(o)}if(this._chunks[0].byteLength>t){let o=this._chunks[0],s=this.asNative(o,t);return this._chunks[0]=o.slice(t),this._totalLength-=t,s}let n=this.allocNative(t),r=0,i=0;for(;t>0;){let o=this._chunks[i];if(o.byteLength>t){let s=o.slice(0,t);n.set(s,r),r+=t,this._chunks[i]=o.slice(t),this._totalLength-=t,t-=t}else n.set(o,r),r+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,t-=o.byteLength}return n}};to.AbstractMessageBuffer=mc});var Jd=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 Yd=Bt(),ue=In(),U=Ka(),Kd=Qa(),Ar=Un(),hc=Ji(),Nr;(function(e){e.type=new U.NotificationType("$/cancelRequest")})(Nr||(Nr={}));var yc;(function(e){function t(n){return typeof n=="string"||typeof n=="number"}e.is=t})(yc||(H.ProgressToken=yc={}));var Or;(function(e){e.type=new U.NotificationType("$/progress")})(Or||(Or={}));var bc=class{constructor(){}};H.ProgressType=bc;var vc;(function(e){function t(n){return ue.func(n)}e.is=t})(vc||(vc={}));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 Gd;(function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"})(Gd||(H.TraceValues=Gd={}));(function(e){function t(r){if(!ue.string(r))return e.Off;switch(r=r.toLowerCase(),r){case"off":return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose;default:return e.Off}}e.fromString=t;function n(r){switch(r){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}e.toString=n})(J||(H.Trace=J={}));var Ye;(function(e){e.Text="text",e.JSON="json"})(Ye||(H.TraceFormat=Ye={}));(function(e){function t(n){return ue.string(n)?(n=n.toLowerCase(),n==="json"?e.JSON:e.Text):e.Text}e.fromString=t})(Ye||(H.TraceFormat=Ye={}));var xc;(function(e){e.type=new U.NotificationType("$/setTrace")})(xc||(H.SetTraceNotification=xc={}));var no;(function(e){e.type=new U.NotificationType("$/logTrace")})(no||(H.LogTraceNotification=no={}));var qr;(function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"})(qr||(H.ConnectionErrors=qr={}));var zn=class e extends Error{constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};H.ConnectionError=zn;var Pc;(function(e){function t(n){let r=n;return r&&ue.func(r.cancelUndispatched)}e.is=t})(Pc||(H.ConnectionStrategy=Pc={}));var ro;(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})(ro||(H.IdCancellationReceiverStrategy=ro={}));var _c;(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})(_c||(H.RequestCancellationReceiverStrategy=_c={}));var io;(function(e){e.Message=Object.freeze({createCancellationTokenSource(n){return new hc.CancellationTokenSource}});function t(n){return ro.is(n)||_c.is(n)}e.is=t})(io||(H.CancellationReceiverStrategy=io={}));var oo;(function(e){e.Message=Object.freeze({sendCancellation(n,r){return n.sendNotification(Nr.type,{id:r})},cleanup(n){}});function t(n){let r=n;return r&&ue.func(r.sendCancellation)&&ue.func(r.cleanup)}e.is=t})(oo||(H.CancellationSenderStrategy=oo={}));var so;(function(e){e.Message=Object.freeze({receiver:io.Message,sender:oo.Message});function t(n){let r=n;return r&&io.is(r.receiver)&&oo.is(r.sender)}e.is=t})(so||(H.CancellationStrategy=so={}));var ao;(function(e){function t(n){let r=n;return r&&ue.func(r.handleMessage)}e.is=t})(ao||(H.MessageStrategy=ao={}));var Qd;(function(e){function t(n){let r=n;return r&&(so.is(r.cancellationStrategy)||Pc.is(r.connectionStrategy)||ao.is(r.messageStrategy))}e.is=t})(Qd||(H.ConnectionOptions=Qd={}));var at;(function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"})(at||(at={}));function E_(e,t,n,r){let i=n!==void 0?n:H.NullLogger,o=0,s=0,a=0,c="2.0",l,d=new Map,h,v=new Map,y=new Map,R,I=new Kd.LinkedMap,$=new Map,Y=new Set,m=new Map,g=J.Off,w=Ye.Text,V,X=at.New,it=new Ar.Emitter,Nt=new Ar.Emitter,rn=new Ar.Emitter,_n=new Ar.Emitter,k=new Ar.Emitter,b=r&&r.cancellationStrategy?r.cancellationStrategy:so.Message;function E(p){if(p===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+p.toString()}function j(p){return p===null?"res-unknown-"+(++a).toString():"res-"+p.toString()}function P(){return"not-"+(++s).toString()}function C(p,_){U.Message.isRequest(_)?p.set(E(_.id),_):U.Message.isResponse(_)?p.set(j(_.id),_):p.set(P(),_)}function D(p){}function N(){return X===at.Listening}function M(){return X===at.Closed}function q(){return X===at.Disposed}function z(){(X===at.New||X===at.Listening)&&(X=at.Closed,Nt.fire(void 0))}function K(p){it.fire([p,void 0,void 0])}function Ce(p){it.fire(p)}e.onClose(z),e.onError(K),t.onClose(z),t.onError(Ce);function ee(){R||I.size===0||(R=(0,Yd.default)().timer.setImmediate(()=>{R=void 0,on()}))}function ot(p){U.Message.isRequest(p)?xy(p):U.Message.isNotification(p)?_y(p):U.Message.isResponse(p)?Py(p):p?.type?.startsWith("redocly/")||Cy(p)}function on(){if(I.size===0)return;let p=I.shift();try{let _=r?.messageStrategy;ao.is(_)?_.handleMessage(p,ot):ot(p)}finally{ee()}}let vy=p=>{try{if(U.Message.isNotification(p)&&p.method===Nr.type.method){let _=p.params.id,A=E(_),L=I.get(A);if(U.Message.isRequest(L)){let te=r?.connectionStrategy,le=te&&te.cancelUndispatched?te.cancelUndispatched(L,D):void 0;if(le&&(le.error!==void 0||le.result!==void 0)){I.delete(A),m.delete(_),le.id=L.id,Zr(le,p.method,Date.now()),t.write(le).catch(()=>i.error("Sending response for canceled message failed."));return}}let ie=m.get(_);if(ie!==void 0){ie.cancel(),Ss(p);return}else Y.add(_)}C(I,p)}finally{ee()}};function xy(p){if(q())return;function _(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,Zr(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()};Zr(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};Zr(Pe,ae,Z),t.write(Pe).catch(()=>i.error("Sending response failed."))}Ry(p);let ie=d.get(p.method),te,le;ie&&(te=ie.type,le=ie.handler);let ge=Date.now();if(le||l){let G=p.id??String(Date.now()),ae=ro.is(b.receiver)?b.receiver.createCancellationTokenSource(G):b.receiver.createCancellationTokenSource(p);p.id!==null&&Y.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,ge);return}Z=le(ae.token)}else if(Array.isArray(p.params)){if(te!==void 0&&te.parameterStructures===U.ParameterStructures.byName){A(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by name but received parameters by position`),p.method,ge);return}Z=le(...p.params,ae.token)}else{if(te!==void 0&&te.parameterStructures===U.ParameterStructures.byPosition){A(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by position but received parameters by name`),p.method,ge);return}Z=le(p.params,ae.token)}else l&&(Z=l(p.method,p.params,ae.token));let Pe=Z;Z?Pe.then?Pe.then(Me=>{m.delete(G),_(Me,p.method,ge)},Me=>{m.delete(G),Me instanceof U.ResponseError?A(Me,p.method,ge):Me&&ue.string(Me.message)?A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Me.message}`),p.method,ge):A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,ge)}):(m.delete(G),_(Z,p.method,ge)):(m.delete(G),L(Z,p.method,ge))}catch(Z){m.delete(G),Z instanceof U.ResponseError?_(Z,p.method,ge):Z&&ue.string(Z.message)?A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Z.message}`),p.method,ge):A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,ge)}}else A(new U.ResponseError(U.ErrorCodes.MethodNotFound,`Unhandled method ${p.method}`),p.method,ge)}function Py(p){if(!q())if(p.id===null)p.error?i.error(`Received response message without id: Error is:
40
40
  ${JSON.stringify(p.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{let _=p.id,A=$.get(_);if(Ty(p,A),A!==void 0){$.delete(_);try{if(p.error){let L=p.error;A.reject(new U.ResponseError(L.code,L.message,L.data))}else if(p.result!==void 0)A.resolve(p.result);else throw new Error("Should never happen.")}catch(L){L.message?i.error(`Response handler '${A.method}' failed with message: ${L.message}`):i.error(`Response handler '${A.method}' failed unexpectedly.`)}}}}function _y(p){if(q())return;let _,A;if(p.method===Nr.type.method){let L=p.params.id;Y.delete(L),Ss(p);return}else{let L=v.get(p.method);L&&(A=L.handler,_=L.type)}if(A||h)try{if(Ss(p),A)if(p.params===void 0)_!==void 0&&_.numberOfParams!==0&&_.parameterStructures!==U.ParameterStructures.byName&&i.error(`Notification ${p.method} defines ${_.numberOfParams} params but received none.`),A();else if(Array.isArray(p.params)){let L=p.params;p.method===Or.type.method&&L.length===2&&yc.is(L[0])?A({token:L[0],value:L[1]}):(_!==void 0&&(_.parameterStructures===U.ParameterStructures.byName&&i.error(`Notification ${p.method} defines parameters by name but received parameters by position`),_.numberOfParams!==p.params.length&&i.error(`Notification ${p.method} defines ${_.numberOfParams} params but received ${L.length} arguments`)),A(...L))}else _!==void 0&&_.parameterStructures===U.ParameterStructures.byPosition&&i.error(`Notification ${p.method} defines parameters by position but received parameters by name`),A(p.params);else h&&h(p.method,p.params)}catch(L){L.message?i.error(`Notification handler '${p.method}' failed with message: ${L.message}`):i.error(`Notification handler '${p.method}' failed unexpectedly.`)}else rn.fire(p)}function Cy(p){if(!p){i.error("Received empty message.");return}i.error(`Received message which is neither a response nor a notification message:
41
41
  ${JSON.stringify(p,null,4)}`);let _=p;if(ue.string(_.id)||ue.number(_.id)){let A=_.id,L=$.get(A);L&&L.reject(new Error("The received response has neither a result nor an error property."))}}function Et(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 Sy(p){if(!(g===J.Off||!V))if(w===Ye.Text){let _;(g===J.Verbose||g===J.Compact)&&p.params&&(_=`Params: ${Et(p.params)}
42
42
 
@@ -62,23 +62,23 @@ ${JSON.stringify(p,null,4)}`);let _=p;if(ue.string(_.id)||ue.number(_.id)){let A
62
62
 
63
63
  `:p.error===void 0&&(A=`No result returned.
64
64
 
65
- `)),_){let L=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";V.log(`Received response '${_.method} - (${p.id})' in ${Date.now()-_.timerStart}ms.${L}`,A)}else V.log(`Received response ${p.id} without active response promise.`,A)}else Cn("receive-response",p)}function Cn(p,_){if(!V||g===J.Off)return;let A={isLSPMessage:!0,type:p,message:_,timestamp:Date.now()};V.log(A)}function fr(){if(M())throw new zn(qr.Closed,"Connection is closed.");if(q())throw new zn(qr.Disposed,"Connection is disposed.")}function wy(){if(N())throw new zn(qr.AlreadyListening,"Connection is already listening")}function ky(){if(!N())throw new Error("Call listen() first.")}function gr(p){return p===void 0?null:p}function Tl(p){if(p!==null)return p}function wl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function Ds(p,_){switch(p){case U.ParameterStructures.auto:return wl(_)?Tl(_):[gr(_)];case U.ParameterStructures.byName:if(!wl(_))throw new Error("Received parameters by name but param is not an object literal.");return Tl(_);case U.ParameterStructures.byPosition:return[gr(_)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function kl(p,_){let A,L=p.numberOfParams;switch(L){case 0:A=void 0;break;case 1:A=Ds(p.parameterStructures,_[0]);break;default:A=[];for(let ie=0;ie<_.length&&ie<L;ie++)A.push(gr(_[ie]));if(_.length<L)for(let ie=_.length;ie<L;ie++)A.push(null);break}return A}let Sn={sendNotification:(p,..._)=>{fr();let A,L;if(ue.string(p)){A=p;let te=_[0],le=0,ge=U.ParameterStructures.auto;U.ParameterStructures.is(te)&&(le=1,ge=te);let K=_.length,ae=K-le;switch(ae){case 0:L=void 0;break;case 1:L=Ds(ge,_[le]);break;default:if(ge===U.ParameterStructures.byName)throw new Error(`Received ${ae} parameters for 'by Name' notification parameter structure.`);L=_.slice(le,K).map(Z=>gr(Z));break}}else{let te=_;A=p.method,L=kl(p,te)}let ie={jsonrpc:c,method:A,params:L};return Dy(ie),t.write(ie).catch(te=>{throw i.error("Sending notification failed."),te})},onNotification:(p,_)=>{fr();let A;return ue.func(p)?h=p:_&&(ue.string(p)?(A=p,v.set(p,{type:void 0,handler:_})):(A=p.method,v.set(p.method,{type:p,handler:_}))),{dispose:()=>{A!==void 0?v.delete(A):h=void 0}}},onProgress:(p,_,A)=>{if(y.has(_))throw new Error(`Progress handler for token ${_} already registered`);return y.set(_,A),{dispose:()=>{y.delete(_)}}},sendProgress:(p,_,A)=>Sn.sendNotification(Or.type,{token:_,value:A}),onUnhandledProgress:_n.event,sendRequest:(p,..._)=>{fr(),ky();let A,L,ie;if(ue.string(p)){A=p;let K=_[0],ae=_[_.length-1],Z=0,Pe=U.ParameterStructures.auto;U.ParameterStructures.is(K)&&(Z=1,Pe=K);let Me=_.length;hc.CancellationToken.is(ae)&&(Me=Me-1,ie=ae);let lt=Me-Z;switch(lt){case 0:L=void 0;break;case 1:L=Ds(Pe,_[Z]);break;default:if(Pe===U.ParameterStructures.byName)throw new Error(`Received ${lt} parameters for 'by Name' request parameter structure.`);L=_.slice(Z,Me).map(Ay=>gr(Ay));break}}else{let K=_;A=p.method,L=kl(p,K);let ae=p.numberOfParams;ie=hc.CancellationToken.is(K[ae])?K[ae]:void 0}let te=o++,le;ie&&(le=ie.onCancellationRequested(()=>{let K=b.sender.sendCancellation(Sn,te);return K===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${te}`),Promise.resolve()):K.catch(()=>{i.log(`Sending cancellation messages for id ${te} failed`)})}));let ge={jsonrpc:c,id:te,method:A,params:L};return Sy(ge),typeof b.sender.enableCancellation=="function"&&b.sender.enableCancellation(ge),new Promise(async(K,ae)=>{let Z=lt=>{K(lt),b.sender.cleanup(te),le?.dispose()},Pe=lt=>{ae(lt),b.sender.cleanup(te),le?.dispose()},Me={method:A,timerStart:Date.now(),resolve:Z,reject:Pe};try{await t.write(ge),$.set(te,Me)}catch(lt){throw i.error("Sending request failed."),Me.reject(new U.ResponseError(U.ErrorCodes.MessageWriteError,lt.message?lt.message:"Unknown reason")),lt}})},onRequest:(p,_)=>{fr();let A=null;return vc.is(p)?(A=void 0,l=p):ue.string(p)?(A=null,_!==void 0&&(A=p,d.set(p,{handler:_,type:void 0}))):_!==void 0&&(A=p.method,d.set(p.method,{type:p,handler:_})),{dispose:()=>{A!==null&&(A!==void 0?d.delete(A):l=void 0)}}},hasPendingResponse:()=>$.size>0,trace:async(p,_,A)=>{let L=!1,ie=Ye.Text;A!==void 0&&(ue.boolean(A)?L=A:(L=A.sendNotification||!1,ie=A.traceFormat||Ye.Text)),g=p,w=ie,g===J.Off?V=void 0:V=_,L&&!M()&&!q()&&await Sn.sendNotification(xc.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=at.Disposed,k.fire(void 0);let p=new U.ResponseError(U.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let _ of $.values())_.reject(p);$=new Map,m=new Map,Y=new Set,I=new Gd.LinkedMap,ue.func(t.dispose)&&t.dispose(),ue.func(e.dispose)&&e.dispose()},listen:()=>{fr(),wy(),X=at.Listening,e.listen(vy)},inspect:()=>{(0,Yd.default)().console.log("inspect")}};return Sn.onNotification(no.type,p=>{if(g===J.Off||!V)return;let _=g===J.Verbose||g===J.Compact;V.log(p.message,_?p.verbose:void 0)}),Sn.onNotification(Or.type,p=>{let _=y.get(p.token);_?_(p.value):_n.fire(p)}),Sn}H.createMessageConnection=E_});var co=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=Ga();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 Cc=Qa();Object.defineProperty(x,"LinkedMap",{enumerable:!0,get:function(){return Cc.LinkedMap}});Object.defineProperty(x,"LRUCache",{enumerable:!0,get:function(){return Cc.LRUCache}});Object.defineProperty(x,"Touch",{enumerable:!0,get:function(){return Cc.Touch}});var j_=Md();Object.defineProperty(x,"Disposable",{enumerable:!0,get:function(){return j_.Disposable}});var Xd=Un();Object.defineProperty(x,"Event",{enumerable:!0,get:function(){return Xd.Event}});Object.defineProperty(x,"Emitter",{enumerable:!0,get:function(){return Xd.Emitter}});var Zd=Ji();Object.defineProperty(x,"CancellationTokenSource",{enumerable:!0,get:function(){return Zd.CancellationTokenSource}});Object.defineProperty(x,"CancellationToken",{enumerable:!0,get:function(){return Zd.CancellationToken}});var ef=Id();Object.defineProperty(x,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return ef.SharedArraySenderStrategy}});Object.defineProperty(x,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return ef.SharedArrayReceiverStrategy}});var Sc=Ud();Object.defineProperty(x,"MessageReader",{enumerable:!0,get:function(){return Sc.MessageReader}});Object.defineProperty(x,"AbstractMessageReader",{enumerable:!0,get:function(){return Sc.AbstractMessageReader}});Object.defineProperty(x,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return Sc.ReadableStreamMessageReader}});var Dc=$d();Object.defineProperty(x,"MessageWriter",{enumerable:!0,get:function(){return Dc.MessageWriter}});Object.defineProperty(x,"AbstractMessageWriter",{enumerable:!0,get:function(){return Dc.AbstractMessageWriter}});Object.defineProperty(x,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return Dc.WriteableStreamMessageWriter}});var M_=Vd();Object.defineProperty(x,"AbstractMessageBuffer",{enumerable:!0,get:function(){return M_.AbstractMessageBuffer}});var Ae=Jd();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 L_=Bt();x.RAL=L_.default});var nf=S(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});var gt=co(),uo=class e extends gt.AbstractMessageBuffer{constructor(t="utf-8"){super(t),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return e.emptyBuffer}fromString(t,n){return new TextEncoder().encode(t)}toString(t,n){return n==="ascii"?this.asciiDecoder.decode(t):new TextDecoder(n).decode(t)}asNative(t,n){return n===void 0?t:t.slice(0,n)}allocNative(t){return new Uint8Array(t)}};uo.emptyBuffer=new Uint8Array(0);var Rc=class{constructor(t){this.socket=t,this._onData=new gt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,gt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),gt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),gt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),gt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},Tc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),gt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),gt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),gt.Disposable.create(()=>this.socket.removeEventListener("end",t))}write(t,n){if(typeof t=="string"){if(n!==void 0&&n!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${n}`);this.socket.send(t)}else this.socket.send(t);return Promise.resolve()}end(){this.socket.close()}},I_=new TextEncoder,tf=Object.freeze({messageBuffer:Object.freeze({create:e=>new uo(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(I_.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 Rc(e),asWritableStream:e=>new Tc(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 wc(){return tf}(function(e){function t(){gt.RAL.install(tf)}e.install=t})(wc||(wc={}));kc.default=wc});var mn=S(Ge=>{"use strict";var F_=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]})),U_=Ge&&Ge.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&F_(t,e,n)};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.createMessageConnection=Ge.BrowserMessageWriter=Ge.BrowserMessageReader=void 0;var W_=nf();W_.default.install();var $n=co();U_(co(),Ge);var Ac=class extends $n.AbstractMessageReader{constructor(t){super(),this._onData=new $n.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=Ac;var Oc=class extends $n.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=Oc;function B_(e,t,n,r){return n===void 0&&(n=$n.NullLogger),$n.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,$n.createMessageConnection)(e,t,n,r)}Ge.createMessageConnection=B_});var qc=S((JR,rf)=>{"use strict";rf.exports=mn()});var vo={};Rs(vo,{AnnotatedTextEdit:()=>At,ChangeAnnotation:()=>hn,ChangeAnnotationIdentifier:()=>Oe,CodeAction:()=>fu,CodeActionContext:()=>du,CodeActionKind:()=>pu,CodeActionTriggerKind:()=>Ur,CodeDescription:()=>Bc,CodeLens:()=>gu,Color:()=>po,ColorInformation:()=>Mc,ColorPresentation:()=>Lc,Command:()=>yn,CompletionItem:()=>Zc,CompletionItemKind:()=>Yc,CompletionItemLabelDetails:()=>Xc,CompletionItemTag:()=>Kc,CompletionList:()=>eu,CreateFile:()=>Yn,DeleteFile:()=>Kn,Diagnostic:()=>Mr,DiagnosticRelatedInformation:()=>fo,DiagnosticSeverity:()=>Uc,DiagnosticTag:()=>Wc,DocumentHighlight:()=>ou,DocumentHighlightKind:()=>iu,DocumentLink:()=>hu,DocumentSymbol:()=>lu,DocumentUri:()=>Nc,EOL:()=>H_,FoldingRange:()=>Fc,FoldingRangeKind:()=>Ic,FormattingOptions:()=>mu,Hover:()=>tu,InlayHint:()=>Du,InlayHintKind:()=>yo,InlayHintLabelPart:()=>bo,InlineCompletionContext:()=>Ou,InlineCompletionItem:()=>Tu,InlineCompletionList:()=>wu,InlineCompletionTriggerKind:()=>ku,InlineValueContext:()=>Su,InlineValueEvaluatableExpression:()=>Cu,InlineValueText:()=>Pu,InlineValueVariableLookup:()=>_u,InsertReplaceEdit:()=>Qc,InsertTextFormat:()=>Gc,InsertTextMode:()=>Jc,Location:()=>jr,LocationLink:()=>jc,MarkedString:()=>Fr,MarkupContent:()=>Qn,MarkupKind:()=>ho,OptionalVersionedTextDocumentIdentifier:()=>Ir,ParameterInformation:()=>nu,Position:()=>Xe,Range:()=>pe,RenameFile:()=>Gn,SelectedCompletionInfo:()=>Au,SelectionRange:()=>yu,SemanticTokenModifiers:()=>vu,SemanticTokenTypes:()=>bu,SemanticTokens:()=>xu,SignatureInformation:()=>ru,StringValue:()=>Ru,SymbolInformation:()=>cu,SymbolKind:()=>su,SymbolTag:()=>au,TextDocument:()=>Nu,TextDocumentEdit:()=>Lr,TextDocumentIdentifier:()=>zc,TextDocumentItem:()=>Vc,TextEdit:()=>mt,URI:()=>lo,VersionedTextDocumentIdentifier:()=>$c,WorkspaceChange:()=>Hc,WorkspaceEdit:()=>go,WorkspaceFolder:()=>qu,WorkspaceSymbol:()=>uu,integer:()=>Ec,uinteger:()=>Er});var Nc,lo,Ec,Er,Xe,pe,jr,jc,po,Mc,Lc,Ic,Fc,fo,Uc,Wc,Bc,Mr,yn,mt,hn,Oe,At,Lr,Yn,Gn,Kn,go,Vn,mo,Hc,zc,$c,Ir,Vc,ho,Qn,Yc,Gc,Kc,Qc,Jc,Xc,Zc,eu,Fr,tu,nu,ru,iu,ou,su,au,cu,uu,lu,pu,Ur,du,fu,gu,mu,hu,yu,bu,vu,xu,Pu,_u,Cu,Su,yo,bo,Du,Ru,Tu,wu,ku,Au,Ou,qu,H_,Nu,Eu,f,xo=Al(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})(Nc||(Nc={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(lo||(lo={}));(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})(Ec||(Ec={}));(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})(Er||(Er={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Er.MAX_VALUE),i===Number.MAX_VALUE&&(i=Er.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.line)&&f.uinteger(i.character)}e.is=n})(Xe||(Xe={}));(function(e){function t(r,i,o,s){if(f.uinteger(r)&&f.uinteger(i)&&f.uinteger(o)&&f.uinteger(s))return{start:Xe.create(r,i),end:Xe.create(o,s)};if(Xe.is(r)&&Xe.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${o}, ${s}]`)}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&Xe.is(i.start)&&Xe.is(i.end)}e.is=n})(pe||(pe={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&(f.string(i.uri)||f.undefined(i.uri))}e.is=n})(jr||(jr={}));(function(e){function t(r,i,o,s){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.targetRange)&&f.string(i.targetUri)&&pe.is(i.targetSelectionRange)&&(pe.is(i.originSelectionRange)||f.undefined(i.originSelectionRange))}e.is=n})(jc||(jc={}));(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)&&pe.is(i.range)&&po.is(i.color)}e.is=n})(Mc||(Mc={}));(function(e){function t(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.undefined(i.textEdit)||mt.is(i))&&(f.undefined(i.additionalTextEdits)||f.typedArray(i.additionalTextEdits,mt.is))}e.is=n})(Lc||(Lc={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Ic||(Ic={}));(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})(Fc||(Fc={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&jr.is(i.location)&&f.string(i.message)}e.is=n})(fo||(fo={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Uc||(Uc={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(Wc||(Wc={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(Bc||(Bc={}));(function(e){function t(r,i,o,s,a,c){let l={range:r,message:i};return f.defined(o)&&(l.severity=o),f.defined(s)&&(l.code=s),f.defined(a)&&(l.source=a),f.defined(c)&&(l.relatedInformation=c),l}e.create=t;function n(r){var i;let o=r;return f.defined(o)&&pe.is(o.range)&&f.string(o.message)&&(f.number(o.severity)||f.undefined(o.severity))&&(f.integer(o.code)||f.string(o.code)||f.undefined(o.code))&&(f.undefined(o.codeDescription)||f.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(f.string(o.source)||f.undefined(o.source))&&(f.undefined(o.relatedInformation)||f.typedArray(o.relatedInformation,fo.is))}e.is=n})(Mr||(Mr={}));(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})(yn||(yn={}));(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function n(o,s){return{range:{start:o,end:o},newText:s}}e.insert=n;function r(o){return{range:o,newText:""}}e.del=r;function i(o){let s=o;return f.objectLiteral(s)&&f.string(s.newText)&&pe.is(s.range)}e.is=i})(mt||(mt={}));(function(e){function t(r,i,o){let s={label:r};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(f.string(i.description)||i.description===void 0)}e.is=n})(hn||(hn={}));(function(e){function t(n){let r=n;return f.string(r)}e.is=t})(Oe||(Oe={}));(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function n(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=n;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function i(o){let s=o;return mt.is(s)&&(hn.is(s.annotationId)||Oe.is(s.annotationId))}e.is=i})(At||(At={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Ir.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Lr||(Lr={}));(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})(Yn||(Yn={}));(function(e){function t(r,i,o,s){let a={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&f.string(i.oldUri)&&f.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||f.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||f.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})(Gn||(Gn={}));(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})(Kn||(Kn={}));(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>f.string(i.kind)?Yn.is(i)||Gn.is(i)||Kn.is(i):Lr.is(i)))}e.is=t})(go||(go={}));Vn=class{constructor(t,n){this.edits=t,this.changeAnnotations=n}insert(t,n,r){let i,o;if(r===void 0?i=mt.insert(t,n):Oe.is(r)?(o=r,i=At.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=At.insert(t,n,o)),this.edits.push(i),o!==void 0)return o}replace(t,n,r){let i,o;if(r===void 0?i=mt.replace(t,n):Oe.is(r)?(o=r,i=At.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=At.replace(t,n,o)),this.edits.push(i),o!==void 0)return o}delete(t,n){let r,i;if(n===void 0?r=mt.del(t):Oe.is(n)?(i=n,r=At.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=At.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.")}},mo=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()}},Hc=class{constructor(t){this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new mo(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(n=>{if(Lr.is(n)){let r=new Vn(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new Vn(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(Ir.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 Vn(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 Vn(r),this._textEditChanges[t]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new mo,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;hn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Yn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=Yn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}renameFile(t,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let o;hn.is(r)||Oe.is(r)?o=r:i=r;let s,a;if(o===void 0?s=Gn.create(t,n,i):(a=Oe.is(o)?o:this._changeAnnotations.manage(o),s=Gn.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;hn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Kn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=Kn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}};(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)}e.is=n})(zc||(zc={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&f.integer(i.version)}e.is=n})($c||($c={}));(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})(Ir||(Ir={}));(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})(Vc||(Vc={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(ho||(ho={}));(function(e){function t(n){let r=n;return f.objectLiteral(n)&&ho.is(r.kind)&&f.string(r.value)}e.is=t})(Qn||(Qn={}));(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})(Yc||(Yc={}));(function(e){e.PlainText=1,e.Snippet=2})(Gc||(Gc={}));(function(e){e.Deprecated=1})(Kc||(Kc={}));(function(e){function t(r,i,o){return{newText:r,insert:i,replace:o}}e.create=t;function n(r){let i=r;return i&&f.string(i.newText)&&pe.is(i.insert)&&pe.is(i.replace)}e.is=n})(Qc||(Qc={}));(function(e){e.asIs=1,e.adjustIndentation=2})(Jc||(Jc={}));(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})(Xc||(Xc={}));(function(e){function t(n){return{label:n}}e.create=t})(Zc||(Zc={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(eu||(eu={}));(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})(Fr||(Fr={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(Qn.is(r.contents)||Fr.is(r.contents)||f.typedArray(r.contents,Fr.is))&&(n.range===void 0||pe.is(n.range))}e.is=t})(tu||(tu={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(nu||(nu={}));(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})(ru||(ru={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(iu||(iu={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(ou||(ou={}));(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})(su||(su={}));(function(e){e.Deprecated=1})(au||(au={}));(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})(cu||(cu={}));(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})(uu||(uu={}));(function(e){function t(r,i,o,s,a,c){let l={name:r,detail:i,kind:o,range:s,selectionRange:a};return c!==void 0&&(l.children=c),l}e.create=t;function n(r){let i=r;return i&&f.string(i.name)&&f.number(i.kind)&&pe.is(i.range)&&pe.is(i.selectionRange)&&(i.detail===void 0||f.string(i.detail))&&(i.deprecated===void 0||f.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(lu||(lu={}));(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"})(pu||(pu={}));(function(e){e.Invoked=1,e.Automatic=2})(Ur||(Ur={}));(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,Mr.is)&&(i.only===void 0||f.typedArray(i.only,f.string))&&(i.triggerKind===void 0||i.triggerKind===Ur.Invoked||i.triggerKind===Ur.Automatic)}e.is=n})(du||(du={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):yn.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,Mr.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||yn.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||go.is(i.edit))}e.is=n})(fu||(fu={}));(function(e){function t(r,i){let o={range:r};return f.defined(i)&&(o.data=i),o}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(i.range)&&(f.undefined(i.command)||yn.is(i.command))}e.is=n})(gu||(gu={}));(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})(mu||(mu={}));(function(e){function t(r,i,o){return{range:r,target:i,data:o}}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(i.range)&&(f.undefined(i.target)||f.string(i.target))}e.is=n})(hu||(hu={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(yu||(yu={}));(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"})(bu||(bu={}));(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"})(vu||(vu={}));(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})(xu||(xu={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&f.string(i.text)}e.is=n})(Pu||(Pu={}));(function(e){function t(r,i,o){return{range:r,variableName:i,caseSensitiveLookup:o}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&f.boolean(i.caseSensitiveLookup)&&(f.string(i.variableName)||i.variableName===void 0)}e.is=n})(_u||(_u={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&(f.string(i.expression)||i.expression===void 0)}e.is=n})(Cu||(Cu={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(r.stoppedLocation)}e.is=n})(Su||(Su={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(yo||(yo={}));(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)||Qn.is(i.tooltip))&&(i.location===void 0||jr.is(i.location))&&(i.command===void 0||yn.is(i.command))}e.is=n})(bo||(bo={}));(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,bo.is))&&(i.kind===void 0||yo.is(i.kind))&&i.textEdits===void 0||f.typedArray(i.textEdits,mt.is)&&(i.tooltip===void 0||f.string(i.tooltip)||Qn.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(Du||(Du={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(Ru||(Ru={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(Tu||(Tu={}));(function(e){function t(n){return{items:n}}e.create=t})(wu||(wu={}));(function(e){e.Invoked=0,e.Automatic=1})(ku||(ku={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(Au||(Au={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(Ou||(Ou={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&lo.is(r.uri)&&f.string(r.name)}e.is=t})(qu||(qu={}));H_=[`
65
+ `)),_){let L=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";V.log(`Received response '${_.method} - (${p.id})' in ${Date.now()-_.timerStart}ms.${L}`,A)}else V.log(`Received response ${p.id} without active response promise.`,A)}else Cn("receive-response",p)}function Cn(p,_){if(!V||g===J.Off)return;let A={isLSPMessage:!0,type:p,message:_,timestamp:Date.now()};V.log(A)}function fr(){if(M())throw new zn(qr.Closed,"Connection is closed.");if(q())throw new zn(qr.Disposed,"Connection is disposed.")}function wy(){if(N())throw new zn(qr.AlreadyListening,"Connection is already listening")}function ky(){if(!N())throw new Error("Call listen() first.")}function gr(p){return p===void 0?null:p}function Tl(p){if(p!==null)return p}function wl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function Ds(p,_){switch(p){case U.ParameterStructures.auto:return wl(_)?Tl(_):[gr(_)];case U.ParameterStructures.byName:if(!wl(_))throw new Error("Received parameters by name but param is not an object literal.");return Tl(_);case U.ParameterStructures.byPosition:return[gr(_)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function kl(p,_){let A,L=p.numberOfParams;switch(L){case 0:A=void 0;break;case 1:A=Ds(p.parameterStructures,_[0]);break;default:A=[];for(let ie=0;ie<_.length&&ie<L;ie++)A.push(gr(_[ie]));if(_.length<L)for(let ie=_.length;ie<L;ie++)A.push(null);break}return A}let Sn={sendNotification:(p,..._)=>{fr();let A,L;if(ue.string(p)){A=p;let te=_[0],le=0,ge=U.ParameterStructures.auto;U.ParameterStructures.is(te)&&(le=1,ge=te);let G=_.length,ae=G-le;switch(ae){case 0:L=void 0;break;case 1:L=Ds(ge,_[le]);break;default:if(ge===U.ParameterStructures.byName)throw new Error(`Received ${ae} parameters for 'by Name' notification parameter structure.`);L=_.slice(le,G).map(Z=>gr(Z));break}}else{let te=_;A=p.method,L=kl(p,te)}let ie={jsonrpc:c,method:A,params:L};return Dy(ie),t.write(ie).catch(te=>{throw i.error("Sending notification failed."),te})},onNotification:(p,_)=>{fr();let A;return ue.func(p)?h=p:_&&(ue.string(p)?(A=p,v.set(p,{type:void 0,handler:_})):(A=p.method,v.set(p.method,{type:p,handler:_}))),{dispose:()=>{A!==void 0?v.delete(A):h=void 0}}},onProgress:(p,_,A)=>{if(y.has(_))throw new Error(`Progress handler for token ${_} already registered`);return y.set(_,A),{dispose:()=>{y.delete(_)}}},sendProgress:(p,_,A)=>Sn.sendNotification(Or.type,{token:_,value:A}),onUnhandledProgress:_n.event,sendRequest:(p,..._)=>{fr(),ky();let A,L,ie;if(ue.string(p)){A=p;let G=_[0],ae=_[_.length-1],Z=0,Pe=U.ParameterStructures.auto;U.ParameterStructures.is(G)&&(Z=1,Pe=G);let Me=_.length;hc.CancellationToken.is(ae)&&(Me=Me-1,ie=ae);let lt=Me-Z;switch(lt){case 0:L=void 0;break;case 1:L=Ds(Pe,_[Z]);break;default:if(Pe===U.ParameterStructures.byName)throw new Error(`Received ${lt} parameters for 'by Name' request parameter structure.`);L=_.slice(Z,Me).map(Ay=>gr(Ay));break}}else{let G=_;A=p.method,L=kl(p,G);let ae=p.numberOfParams;ie=hc.CancellationToken.is(G[ae])?G[ae]:void 0}let te=o++,le;ie&&(le=ie.onCancellationRequested(()=>{let G=b.sender.sendCancellation(Sn,te);return G===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${te}`),Promise.resolve()):G.catch(()=>{i.log(`Sending cancellation messages for id ${te} failed`)})}));let ge={jsonrpc:c,id:te,method:A,params:L};return Sy(ge),typeof b.sender.enableCancellation=="function"&&b.sender.enableCancellation(ge),new Promise(async(G,ae)=>{let Z=lt=>{G(lt),b.sender.cleanup(te),le?.dispose()},Pe=lt=>{ae(lt),b.sender.cleanup(te),le?.dispose()},Me={method:A,timerStart:Date.now(),resolve:Z,reject:Pe};try{await t.write(ge),$.set(te,Me)}catch(lt){throw i.error("Sending request failed."),Me.reject(new U.ResponseError(U.ErrorCodes.MessageWriteError,lt.message?lt.message:"Unknown reason")),lt}})},onRequest:(p,_)=>{fr();let A=null;return vc.is(p)?(A=void 0,l=p):ue.string(p)?(A=null,_!==void 0&&(A=p,d.set(p,{handler:_,type:void 0}))):_!==void 0&&(A=p.method,d.set(p.method,{type:p,handler:_})),{dispose:()=>{A!==null&&(A!==void 0?d.delete(A):l=void 0)}}},hasPendingResponse:()=>$.size>0,trace:async(p,_,A)=>{let L=!1,ie=Ye.Text;A!==void 0&&(ue.boolean(A)?L=A:(L=A.sendNotification||!1,ie=A.traceFormat||Ye.Text)),g=p,w=ie,g===J.Off?V=void 0:V=_,L&&!M()&&!q()&&await Sn.sendNotification(xc.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=at.Disposed,k.fire(void 0);let p=new U.ResponseError(U.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let _ of $.values())_.reject(p);$=new Map,m=new Map,Y=new Set,I=new Kd.LinkedMap,ue.func(t.dispose)&&t.dispose(),ue.func(e.dispose)&&e.dispose()},listen:()=>{fr(),wy(),X=at.Listening,e.listen(vy)},inspect:()=>{(0,Yd.default)().console.log("inspect")}};return Sn.onNotification(no.type,p=>{if(g===J.Off||!V)return;let _=g===J.Verbose||g===J.Compact;V.log(p.message,_?p.verbose:void 0)}),Sn.onNotification(Or.type,p=>{let _=y.get(p.token);_?_(p.value):_n.fire(p)}),Sn}H.createMessageConnection=E_});var co=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=Ka();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 Cc=Qa();Object.defineProperty(x,"LinkedMap",{enumerable:!0,get:function(){return Cc.LinkedMap}});Object.defineProperty(x,"LRUCache",{enumerable:!0,get:function(){return Cc.LRUCache}});Object.defineProperty(x,"Touch",{enumerable:!0,get:function(){return Cc.Touch}});var j_=Md();Object.defineProperty(x,"Disposable",{enumerable:!0,get:function(){return j_.Disposable}});var Xd=Un();Object.defineProperty(x,"Event",{enumerable:!0,get:function(){return Xd.Event}});Object.defineProperty(x,"Emitter",{enumerable:!0,get:function(){return Xd.Emitter}});var Zd=Ji();Object.defineProperty(x,"CancellationTokenSource",{enumerable:!0,get:function(){return Zd.CancellationTokenSource}});Object.defineProperty(x,"CancellationToken",{enumerable:!0,get:function(){return Zd.CancellationToken}});var ef=Id();Object.defineProperty(x,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return ef.SharedArraySenderStrategy}});Object.defineProperty(x,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return ef.SharedArrayReceiverStrategy}});var Sc=Ud();Object.defineProperty(x,"MessageReader",{enumerable:!0,get:function(){return Sc.MessageReader}});Object.defineProperty(x,"AbstractMessageReader",{enumerable:!0,get:function(){return Sc.AbstractMessageReader}});Object.defineProperty(x,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return Sc.ReadableStreamMessageReader}});var Dc=$d();Object.defineProperty(x,"MessageWriter",{enumerable:!0,get:function(){return Dc.MessageWriter}});Object.defineProperty(x,"AbstractMessageWriter",{enumerable:!0,get:function(){return Dc.AbstractMessageWriter}});Object.defineProperty(x,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return Dc.WriteableStreamMessageWriter}});var M_=Vd();Object.defineProperty(x,"AbstractMessageBuffer",{enumerable:!0,get:function(){return M_.AbstractMessageBuffer}});var Ae=Jd();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 L_=Bt();x.RAL=L_.default});var nf=S(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});var gt=co(),uo=class e extends gt.AbstractMessageBuffer{constructor(t="utf-8"){super(t),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return e.emptyBuffer}fromString(t,n){return new TextEncoder().encode(t)}toString(t,n){return n==="ascii"?this.asciiDecoder.decode(t):new TextDecoder(n).decode(t)}asNative(t,n){return n===void 0?t:t.slice(0,n)}allocNative(t){return new Uint8Array(t)}};uo.emptyBuffer=new Uint8Array(0);var Rc=class{constructor(t){this.socket=t,this._onData=new gt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,gt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),gt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),gt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),gt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},Tc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),gt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),gt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),gt.Disposable.create(()=>this.socket.removeEventListener("end",t))}write(t,n){if(typeof t=="string"){if(n!==void 0&&n!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${n}`);this.socket.send(t)}else this.socket.send(t);return Promise.resolve()}end(){this.socket.close()}},I_=new TextEncoder,tf=Object.freeze({messageBuffer:Object.freeze({create:e=>new uo(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(I_.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 Rc(e),asWritableStream:e=>new Tc(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 wc(){return tf}(function(e){function t(){gt.RAL.install(tf)}e.install=t})(wc||(wc={}));kc.default=wc});var mn=S(Ke=>{"use strict";var F_=Ke&&Ke.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),U_=Ke&&Ke.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&F_(t,e,n)};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.createMessageConnection=Ke.BrowserMessageWriter=Ke.BrowserMessageReader=void 0;var W_=nf();W_.default.install();var $n=co();U_(co(),Ke);var Ac=class extends $n.AbstractMessageReader{constructor(t){super(),this._onData=new $n.Emitter,this._messageListener=n=>{this._onData.fire(n.data)},t.addEventListener("error",n=>this.fireError(n)),t.onmessage=this._messageListener}listen(t){return this._onData.event(t)}};Ke.BrowserMessageReader=Ac;var Oc=class extends $n.AbstractMessageWriter{constructor(t){super(),this.port=t,this.errorCount=0,t.addEventListener("error",n=>this.fireError(n))}write(t){try{return this.port.postMessage(t),Promise.resolve()}catch(n){return this.handleError(n,t),Promise.reject(n)}}handleError(t,n){this.errorCount++,this.fireError(t,n,this.errorCount)}end(){}};Ke.BrowserMessageWriter=Oc;function B_(e,t,n,r){return n===void 0&&(n=$n.NullLogger),$n.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,$n.createMessageConnection)(e,t,n,r)}Ke.createMessageConnection=B_});var qc=S((QR,rf)=>{"use strict";rf.exports=mn()});var vo={};Rs(vo,{AnnotatedTextEdit:()=>At,ChangeAnnotation:()=>hn,ChangeAnnotationIdentifier:()=>Oe,CodeAction:()=>fu,CodeActionContext:()=>du,CodeActionKind:()=>pu,CodeActionTriggerKind:()=>Ur,CodeDescription:()=>Bc,CodeLens:()=>gu,Color:()=>po,ColorInformation:()=>Mc,ColorPresentation:()=>Lc,Command:()=>yn,CompletionItem:()=>Zc,CompletionItemKind:()=>Yc,CompletionItemLabelDetails:()=>Xc,CompletionItemTag:()=>Gc,CompletionList:()=>eu,CreateFile:()=>Yn,DeleteFile:()=>Gn,Diagnostic:()=>Mr,DiagnosticRelatedInformation:()=>fo,DiagnosticSeverity:()=>Uc,DiagnosticTag:()=>Wc,DocumentHighlight:()=>ou,DocumentHighlightKind:()=>iu,DocumentLink:()=>hu,DocumentSymbol:()=>lu,DocumentUri:()=>Nc,EOL:()=>H_,FoldingRange:()=>Fc,FoldingRangeKind:()=>Ic,FormattingOptions:()=>mu,Hover:()=>tu,InlayHint:()=>Du,InlayHintKind:()=>yo,InlayHintLabelPart:()=>bo,InlineCompletionContext:()=>Ou,InlineCompletionItem:()=>Tu,InlineCompletionList:()=>wu,InlineCompletionTriggerKind:()=>ku,InlineValueContext:()=>Su,InlineValueEvaluatableExpression:()=>Cu,InlineValueText:()=>Pu,InlineValueVariableLookup:()=>_u,InsertReplaceEdit:()=>Qc,InsertTextFormat:()=>Kc,InsertTextMode:()=>Jc,Location:()=>jr,LocationLink:()=>jc,MarkedString:()=>Fr,MarkupContent:()=>Qn,MarkupKind:()=>ho,OptionalVersionedTextDocumentIdentifier:()=>Ir,ParameterInformation:()=>nu,Position:()=>Xe,Range:()=>pe,RenameFile:()=>Kn,SelectedCompletionInfo:()=>Au,SelectionRange:()=>yu,SemanticTokenModifiers:()=>vu,SemanticTokenTypes:()=>bu,SemanticTokens:()=>xu,SignatureInformation:()=>ru,StringValue:()=>Ru,SymbolInformation:()=>cu,SymbolKind:()=>su,SymbolTag:()=>au,TextDocument:()=>Nu,TextDocumentEdit:()=>Lr,TextDocumentIdentifier:()=>zc,TextDocumentItem:()=>Vc,TextEdit:()=>mt,URI:()=>lo,VersionedTextDocumentIdentifier:()=>$c,WorkspaceChange:()=>Hc,WorkspaceEdit:()=>go,WorkspaceFolder:()=>qu,WorkspaceSymbol:()=>uu,integer:()=>Ec,uinteger:()=>Er});var Nc,lo,Ec,Er,Xe,pe,jr,jc,po,Mc,Lc,Ic,Fc,fo,Uc,Wc,Bc,Mr,yn,mt,hn,Oe,At,Lr,Yn,Kn,Gn,go,Vn,mo,Hc,zc,$c,Ir,Vc,ho,Qn,Yc,Kc,Gc,Qc,Jc,Xc,Zc,eu,Fr,tu,nu,ru,iu,ou,su,au,cu,uu,lu,pu,Ur,du,fu,gu,mu,hu,yu,bu,vu,xu,Pu,_u,Cu,Su,yo,bo,Du,Ru,Tu,wu,ku,Au,Ou,qu,H_,Nu,Eu,f,xo=Al(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})(Nc||(Nc={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(lo||(lo={}));(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})(Ec||(Ec={}));(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})(Er||(Er={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Er.MAX_VALUE),i===Number.MAX_VALUE&&(i=Er.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.line)&&f.uinteger(i.character)}e.is=n})(Xe||(Xe={}));(function(e){function t(r,i,o,s){if(f.uinteger(r)&&f.uinteger(i)&&f.uinteger(o)&&f.uinteger(s))return{start:Xe.create(r,i),end:Xe.create(o,s)};if(Xe.is(r)&&Xe.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${o}, ${s}]`)}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&Xe.is(i.start)&&Xe.is(i.end)}e.is=n})(pe||(pe={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&(f.string(i.uri)||f.undefined(i.uri))}e.is=n})(jr||(jr={}));(function(e){function t(r,i,o,s){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.targetRange)&&f.string(i.targetUri)&&pe.is(i.targetSelectionRange)&&(pe.is(i.originSelectionRange)||f.undefined(i.originSelectionRange))}e.is=n})(jc||(jc={}));(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)&&pe.is(i.range)&&po.is(i.color)}e.is=n})(Mc||(Mc={}));(function(e){function t(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.undefined(i.textEdit)||mt.is(i))&&(f.undefined(i.additionalTextEdits)||f.typedArray(i.additionalTextEdits,mt.is))}e.is=n})(Lc||(Lc={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Ic||(Ic={}));(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})(Fc||(Fc={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&jr.is(i.location)&&f.string(i.message)}e.is=n})(fo||(fo={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Uc||(Uc={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(Wc||(Wc={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(Bc||(Bc={}));(function(e){function t(r,i,o,s,a,c){let l={range:r,message:i};return f.defined(o)&&(l.severity=o),f.defined(s)&&(l.code=s),f.defined(a)&&(l.source=a),f.defined(c)&&(l.relatedInformation=c),l}e.create=t;function n(r){var i;let o=r;return f.defined(o)&&pe.is(o.range)&&f.string(o.message)&&(f.number(o.severity)||f.undefined(o.severity))&&(f.integer(o.code)||f.string(o.code)||f.undefined(o.code))&&(f.undefined(o.codeDescription)||f.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(f.string(o.source)||f.undefined(o.source))&&(f.undefined(o.relatedInformation)||f.typedArray(o.relatedInformation,fo.is))}e.is=n})(Mr||(Mr={}));(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})(yn||(yn={}));(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function n(o,s){return{range:{start:o,end:o},newText:s}}e.insert=n;function r(o){return{range:o,newText:""}}e.del=r;function i(o){let s=o;return f.objectLiteral(s)&&f.string(s.newText)&&pe.is(s.range)}e.is=i})(mt||(mt={}));(function(e){function t(r,i,o){let s={label:r};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(f.string(i.description)||i.description===void 0)}e.is=n})(hn||(hn={}));(function(e){function t(n){let r=n;return f.string(r)}e.is=t})(Oe||(Oe={}));(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function n(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=n;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function i(o){let s=o;return mt.is(s)&&(hn.is(s.annotationId)||Oe.is(s.annotationId))}e.is=i})(At||(At={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Ir.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Lr||(Lr={}));(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})(Yn||(Yn={}));(function(e){function t(r,i,o,s){let a={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&f.string(i.oldUri)&&f.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||f.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||f.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})(Kn||(Kn={}));(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})(Gn||(Gn={}));(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>f.string(i.kind)?Yn.is(i)||Kn.is(i)||Gn.is(i):Lr.is(i)))}e.is=t})(go||(go={}));Vn=class{constructor(t,n){this.edits=t,this.changeAnnotations=n}insert(t,n,r){let i,o;if(r===void 0?i=mt.insert(t,n):Oe.is(r)?(o=r,i=At.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=At.insert(t,n,o)),this.edits.push(i),o!==void 0)return o}replace(t,n,r){let i,o;if(r===void 0?i=mt.replace(t,n):Oe.is(r)?(o=r,i=At.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=At.replace(t,n,o)),this.edits.push(i),o!==void 0)return o}delete(t,n){let r,i;if(n===void 0?r=mt.del(t):Oe.is(n)?(i=n,r=At.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=At.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.")}},mo=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()}},Hc=class{constructor(t){this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new mo(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(n=>{if(Lr.is(n)){let r=new Vn(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new Vn(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(Ir.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 Vn(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 Vn(r),this._textEditChanges[t]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new mo,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;hn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Yn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=Yn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}renameFile(t,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let o;hn.is(r)||Oe.is(r)?o=r:i=r;let s,a;if(o===void 0?s=Kn.create(t,n,i):(a=Oe.is(o)?o:this._changeAnnotations.manage(o),s=Kn.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;hn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Gn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=Gn.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})(zc||(zc={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&f.integer(i.version)}e.is=n})($c||($c={}));(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})(Ir||(Ir={}));(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})(Vc||(Vc={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(ho||(ho={}));(function(e){function t(n){let r=n;return f.objectLiteral(n)&&ho.is(r.kind)&&f.string(r.value)}e.is=t})(Qn||(Qn={}));(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})(Yc||(Yc={}));(function(e){e.PlainText=1,e.Snippet=2})(Kc||(Kc={}));(function(e){e.Deprecated=1})(Gc||(Gc={}));(function(e){function t(r,i,o){return{newText:r,insert:i,replace:o}}e.create=t;function n(r){let i=r;return i&&f.string(i.newText)&&pe.is(i.insert)&&pe.is(i.replace)}e.is=n})(Qc||(Qc={}));(function(e){e.asIs=1,e.adjustIndentation=2})(Jc||(Jc={}));(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})(Xc||(Xc={}));(function(e){function t(n){return{label:n}}e.create=t})(Zc||(Zc={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(eu||(eu={}));(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})(Fr||(Fr={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(Qn.is(r.contents)||Fr.is(r.contents)||f.typedArray(r.contents,Fr.is))&&(n.range===void 0||pe.is(n.range))}e.is=t})(tu||(tu={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(nu||(nu={}));(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})(ru||(ru={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(iu||(iu={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(ou||(ou={}));(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})(su||(su={}));(function(e){e.Deprecated=1})(au||(au={}));(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})(cu||(cu={}));(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})(uu||(uu={}));(function(e){function t(r,i,o,s,a,c){let l={name:r,detail:i,kind:o,range:s,selectionRange:a};return c!==void 0&&(l.children=c),l}e.create=t;function n(r){let i=r;return i&&f.string(i.name)&&f.number(i.kind)&&pe.is(i.range)&&pe.is(i.selectionRange)&&(i.detail===void 0||f.string(i.detail))&&(i.deprecated===void 0||f.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(lu||(lu={}));(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"})(pu||(pu={}));(function(e){e.Invoked=1,e.Automatic=2})(Ur||(Ur={}));(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,Mr.is)&&(i.only===void 0||f.typedArray(i.only,f.string))&&(i.triggerKind===void 0||i.triggerKind===Ur.Invoked||i.triggerKind===Ur.Automatic)}e.is=n})(du||(du={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):yn.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,Mr.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||yn.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||go.is(i.edit))}e.is=n})(fu||(fu={}));(function(e){function t(r,i){let o={range:r};return f.defined(i)&&(o.data=i),o}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(i.range)&&(f.undefined(i.command)||yn.is(i.command))}e.is=n})(gu||(gu={}));(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})(mu||(mu={}));(function(e){function t(r,i,o){return{range:r,target:i,data:o}}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(i.range)&&(f.undefined(i.target)||f.string(i.target))}e.is=n})(hu||(hu={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(yu||(yu={}));(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"})(bu||(bu={}));(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"})(vu||(vu={}));(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})(xu||(xu={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&f.string(i.text)}e.is=n})(Pu||(Pu={}));(function(e){function t(r,i,o){return{range:r,variableName:i,caseSensitiveLookup:o}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&f.boolean(i.caseSensitiveLookup)&&(f.string(i.variableName)||i.variableName===void 0)}e.is=n})(_u||(_u={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&(f.string(i.expression)||i.expression===void 0)}e.is=n})(Cu||(Cu={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(r.stoppedLocation)}e.is=n})(Su||(Su={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(yo||(yo={}));(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)||Qn.is(i.tooltip))&&(i.location===void 0||jr.is(i.location))&&(i.command===void 0||yn.is(i.command))}e.is=n})(bo||(bo={}));(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,bo.is))&&(i.kind===void 0||yo.is(i.kind))&&i.textEdits===void 0||f.typedArray(i.textEdits,mt.is)&&(i.tooltip===void 0||f.string(i.tooltip)||Qn.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(Du||(Du={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(Ru||(Ru={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(Tu||(Tu={}));(function(e){function t(n){return{items:n}}e.create=t})(wu||(wu={}));(function(e){e.Invoked=0,e.Automatic=1})(ku||(ku={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(Au||(Au={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(Ou||(Ou={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&lo.is(r.uri)&&f.string(r.name)}e.is=t})(qu||(qu={}));H_=[`
66
66
  `,`\r
67
67
  `,"\r"];(function(e){function t(o,s,a,c){return new Eu(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}})(Nu||(Nu={}));Eu=class{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,r=!0;for(let i=0;i<n.length;i++){r&&(t.push(i),r=!1);let o=n.charAt(i);r=o==="\r"||o===`
68
68
  `,o==="\r"&&i+1<n.length&&n.charAt(i+1)===`
69
- `&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Xe.create(0,t);for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return Xe.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function a(y,R,I){return t.call(y)==="[object Number]"&&R<=y&&y<=I}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function l(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=l;function d(y){return t.call(y)==="[object Function]"}e.func=d;function h(y){return y!==null&&typeof y=="object"}e.objectLiteral=h;function v(y,R){return Array.isArray(y)&&y.every(R)}e.typedArray=v})(f||(f={}))});var se=S(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.ProtocolNotificationType=He.ProtocolNotificationType0=He.ProtocolRequestType=He.ProtocolRequestType0=He.RegistrationType=He.MessageDirection=void 0;var Jn=mn(),of;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(of||(He.MessageDirection=of={}));var ju=class{constructor(t){this.method=t}};He.RegistrationType=ju;var Mu=class extends Jn.RequestType0{constructor(t){super(t)}};He.ProtocolRequestType0=Mu;var Lu=class extends Jn.RequestType{constructor(t){super(t,Jn.ParameterStructures.byName)}};He.ProtocolRequestType=Lu;var Iu=class extends Jn.NotificationType0{constructor(t){super(t)}};He.ProtocolNotificationType0=Iu;var Fu=class extends Jn.NotificationType{constructor(t){super(t,Jn.ParameterStructures.byName)}};He.ProtocolNotificationType=Fu});var Po=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 z_(e){return e===!0||e===!1}ve.boolean=z_;function sf(e){return typeof e=="string"||e instanceof String}ve.string=sf;function $_(e){return typeof e=="number"||e instanceof Number}ve.number=$_;function V_(e){return e instanceof Error}ve.error=V_;function Y_(e){return typeof e=="function"}ve.func=Y_;function af(e){return Array.isArray(e)}ve.array=af;function G_(e){return af(e)&&e.every(t=>sf(t))}ve.stringArray=G_;function K_(e,t){return Array.isArray(e)&&e.every(t)}ve.typedArray=K_;function Q_(e){return e!==null&&typeof e=="object"}ve.objectLiteral=Q_});var lf=S(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.ImplementationRequest=void 0;var cf=se(),uf;(function(e){e.method="textDocument/implementation",e.messageDirection=cf.MessageDirection.clientToServer,e.type=new cf.ProtocolRequestType(e.method)})(uf||(_o.ImplementationRequest=uf={}))});var ff=S(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.TypeDefinitionRequest=void 0;var pf=se(),df;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=pf.MessageDirection.clientToServer,e.type=new pf.ProtocolRequestType(e.method)})(df||(Co.TypeDefinitionRequest=df={}))});var hf=S(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.DidChangeWorkspaceFoldersNotification=Xn.WorkspaceFoldersRequest=void 0;var So=se(),gf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=So.MessageDirection.serverToClient,e.type=new So.ProtocolRequestType0(e.method)})(gf||(Xn.WorkspaceFoldersRequest=gf={}));var mf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=So.MessageDirection.clientToServer,e.type=new So.ProtocolNotificationType(e.method)})(mf||(Xn.DidChangeWorkspaceFoldersNotification=mf={}))});var vf=S(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.ConfigurationRequest=void 0;var yf=se(),bf;(function(e){e.method="workspace/configuration",e.messageDirection=yf.MessageDirection.serverToClient,e.type=new yf.ProtocolRequestType(e.method)})(bf||(Do.ConfigurationRequest=bf={}))});var _f=S(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.ColorPresentationRequest=Zn.DocumentColorRequest=void 0;var Ro=se(),xf;(function(e){e.method="textDocument/documentColor",e.messageDirection=Ro.MessageDirection.clientToServer,e.type=new Ro.ProtocolRequestType(e.method)})(xf||(Zn.DocumentColorRequest=xf={}));var Pf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=Ro.MessageDirection.clientToServer,e.type=new Ro.ProtocolRequestType(e.method)})(Pf||(Zn.ColorPresentationRequest=Pf={}))});var Df=S(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.FoldingRangeRefreshRequest=er.FoldingRangeRequest=void 0;var To=se(),Cf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=To.MessageDirection.clientToServer,e.type=new To.ProtocolRequestType(e.method)})(Cf||(er.FoldingRangeRequest=Cf={}));var Sf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=To.MessageDirection.serverToClient,e.type=new To.ProtocolRequestType0(e.method)})(Sf||(er.FoldingRangeRefreshRequest=Sf={}))});var wf=S(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.DeclarationRequest=void 0;var Rf=se(),Tf;(function(e){e.method="textDocument/declaration",e.messageDirection=Rf.MessageDirection.clientToServer,e.type=new Rf.ProtocolRequestType(e.method)})(Tf||(wo.DeclarationRequest=Tf={}))});var Of=S(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.SelectionRangeRequest=void 0;var kf=se(),Af;(function(e){e.method="textDocument/selectionRange",e.messageDirection=kf.MessageDirection.clientToServer,e.type=new kf.ProtocolRequestType(e.method)})(Af||(ko.SelectionRangeRequest=Af={}))});var jf=S($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.WorkDoneProgressCancelNotification=$t.WorkDoneProgressCreateRequest=$t.WorkDoneProgress=void 0;var J_=mn(),Ao=se(),qf;(function(e){e.type=new J_.ProgressType;function t(n){return n===e.type}e.is=t})(qf||($t.WorkDoneProgress=qf={}));var Nf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Ao.MessageDirection.serverToClient,e.type=new Ao.ProtocolRequestType(e.method)})(Nf||($t.WorkDoneProgressCreateRequest=Nf={}));var Ef;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Ao.MessageDirection.clientToServer,e.type=new Ao.ProtocolNotificationType(e.method)})(Ef||($t.WorkDoneProgressCancelNotification=Ef={}))});var Ff=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.CallHierarchyOutgoingCallsRequest=Vt.CallHierarchyIncomingCallsRequest=Vt.CallHierarchyPrepareRequest=void 0;var tr=se(),Mf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Mf||(Vt.CallHierarchyPrepareRequest=Mf={}));var Lf;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Lf||(Vt.CallHierarchyIncomingCallsRequest=Lf={}));var If;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(If||(Vt.CallHierarchyOutgoingCallsRequest=If={}))});var $f=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 Ot=se(),Uf;(function(e){e.Relative="relative"})(Uf||(ze.TokenFormat=Uf={}));var Wr;(function(e){e.method="textDocument/semanticTokens",e.type=new Ot.RegistrationType(e.method)})(Wr||(ze.SemanticTokensRegistrationType=Wr={}));var Wf;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=Ot.MessageDirection.clientToServer,e.type=new Ot.ProtocolRequestType(e.method),e.registrationMethod=Wr.method})(Wf||(ze.SemanticTokensRequest=Wf={}));var Bf;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=Ot.MessageDirection.clientToServer,e.type=new Ot.ProtocolRequestType(e.method),e.registrationMethod=Wr.method})(Bf||(ze.SemanticTokensDeltaRequest=Bf={}));var Hf;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=Ot.MessageDirection.clientToServer,e.type=new Ot.ProtocolRequestType(e.method),e.registrationMethod=Wr.method})(Hf||(ze.SemanticTokensRangeRequest=Hf={}));var zf;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=Ot.MessageDirection.serverToClient,e.type=new Ot.ProtocolRequestType0(e.method)})(zf||(ze.SemanticTokensRefreshRequest=zf={}))});var Gf=S(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.ShowDocumentRequest=void 0;var Vf=se(),Yf;(function(e){e.method="window/showDocument",e.messageDirection=Vf.MessageDirection.serverToClient,e.type=new Vf.ProtocolRequestType(e.method)})(Yf||(Oo.ShowDocumentRequest=Yf={}))});var Jf=S(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.LinkedEditingRangeRequest=void 0;var Kf=se(),Qf;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=Kf.MessageDirection.clientToServer,e.type=new Kf.ProtocolRequestType(e.method)})(Qf||(qo.LinkedEditingRangeRequest=Qf={}))});var og=S(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.WillDeleteFilesRequest=Ee.DidDeleteFilesNotification=Ee.DidRenameFilesNotification=Ee.WillRenameFilesRequest=Ee.DidCreateFilesNotification=Ee.WillCreateFilesRequest=Ee.FileOperationPatternKind=void 0;var Ze=se(),Xf;(function(e){e.file="file",e.folder="folder"})(Xf||(Ee.FileOperationPatternKind=Xf={}));var Zf;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(Zf||(Ee.WillCreateFilesRequest=Zf={}));var eg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(eg||(Ee.DidCreateFilesNotification=eg={}));var tg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(tg||(Ee.WillRenameFilesRequest=tg={}));var ng;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(ng||(Ee.DidRenameFilesNotification=ng={}));var rg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(rg||(Ee.DidDeleteFilesNotification=rg={}));var ig;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(ig||(Ee.WillDeleteFilesRequest=ig={}))});var lg=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.MonikerRequest=Yt.MonikerKind=Yt.UniquenessLevel=void 0;var sg=se(),ag;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(ag||(Yt.UniquenessLevel=ag={}));var cg;(function(e){e.$import="import",e.$export="export",e.local="local"})(cg||(Yt.MonikerKind=cg={}));var ug;(function(e){e.method="textDocument/moniker",e.messageDirection=sg.MessageDirection.clientToServer,e.type=new sg.ProtocolRequestType(e.method)})(ug||(Yt.MonikerRequest=ug={}))});var gg=S(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.TypeHierarchySubtypesRequest=Gt.TypeHierarchySupertypesRequest=Gt.TypeHierarchyPrepareRequest=void 0;var nr=se(),pg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method)})(pg||(Gt.TypeHierarchyPrepareRequest=pg={}));var dg;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method)})(dg||(Gt.TypeHierarchySupertypesRequest=dg={}));var fg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method)})(fg||(Gt.TypeHierarchySubtypesRequest=fg={}))});var yg=S(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.InlineValueRefreshRequest=rr.InlineValueRequest=void 0;var No=se(),mg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=No.MessageDirection.clientToServer,e.type=new No.ProtocolRequestType(e.method)})(mg||(rr.InlineValueRequest=mg={}));var hg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=No.MessageDirection.serverToClient,e.type=new No.ProtocolRequestType0(e.method)})(hg||(rr.InlineValueRefreshRequest=hg={}))});var Pg=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.InlayHintRefreshRequest=Kt.InlayHintResolveRequest=Kt.InlayHintRequest=void 0;var ir=se(),bg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(bg||(Kt.InlayHintRequest=bg={}));var vg;(function(e){e.method="inlayHint/resolve",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(vg||(Kt.InlayHintResolveRequest=vg={}));var xg;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=ir.MessageDirection.serverToClient,e.type=new ir.ProtocolRequestType0(e.method)})(xg||(Kt.InlayHintRefreshRequest=xg={}))});var wg=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DiagnosticRefreshRequest=et.WorkspaceDiagnosticRequest=et.DocumentDiagnosticRequest=et.DocumentDiagnosticReportKind=et.DiagnosticServerCancellationData=void 0;var Tg=mn(),X_=Po(),or=se(),_g;(function(e){function t(n){let r=n;return r&&X_.boolean(r.retriggerRequest)}e.is=t})(_g||(et.DiagnosticServerCancellationData=_g={}));var Cg;(function(e){e.Full="full",e.Unchanged="unchanged"})(Cg||(et.DocumentDiagnosticReportKind=Cg={}));var Sg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method),e.partialResult=new Tg.ProgressType})(Sg||(et.DocumentDiagnosticRequest=Sg={}));var Dg;(function(e){e.method="workspace/diagnostic",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method),e.partialResult=new Tg.ProgressType})(Dg||(et.WorkspaceDiagnosticRequest=Dg={}));var Rg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=or.MessageDirection.serverToClient,e.type=new or.ProtocolRequestType0(e.method)})(Rg||(et.DiagnosticRefreshRequest=Rg={}))});var jg=S(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.DidCloseNotebookDocumentNotification=de.DidSaveNotebookDocumentNotification=de.DidChangeNotebookDocumentNotification=de.NotebookCellArrayChange=de.DidOpenNotebookDocumentNotification=de.NotebookDocumentSyncRegistrationType=de.NotebookDocument=de.NotebookCell=de.ExecutionSummary=de.NotebookCellKind=void 0;var Br=(xo(),ni(vo)),ct=Po(),ht=se(),Uu;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Uu||(de.NotebookCellKind=Uu={}));var Wu;(function(e){function t(i,o){let s={executionOrder:i};return(o===!0||o===!1)&&(s.success=o),s}e.create=t;function n(i){let o=i;return ct.objectLiteral(o)&&Br.uinteger.is(o.executionOrder)&&(o.success===void 0||ct.boolean(o.success))}e.is=n;function r(i,o){return i===o?!0:i==null||o===null||o===void 0?!1:i.executionOrder===o.executionOrder&&i.success===o.success}e.equals=r})(Wu||(de.ExecutionSummary=Wu={}));var Eo;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ct.objectLiteral(s)&&Uu.is(s.kind)&&Br.DocumentUri.is(s.document)&&(s.metadata===void 0||ct.objectLiteral(s.metadata))}e.is=n;function r(o,s){let a=new Set;return o.document!==s.document&&a.add("document"),o.kind!==s.kind&&a.add("kind"),o.executionSummary!==s.executionSummary&&a.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!i(o.metadata,s.metadata)&&a.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!Wu.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}e.diff=r;function i(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let a=Array.isArray(o),c=Array.isArray(s);if(a!==c)return!1;if(a&&c){if(o.length!==s.length)return!1;for(let l=0;l<o.length;l++)if(!i(o[l],s[l]))return!1}if(ct.objectLiteral(o)&&ct.objectLiteral(s)){let l=Object.keys(o),d=Object.keys(s);if(l.length!==d.length||(l.sort(),d.sort(),!i(l,d)))return!1;for(let h=0;h<l.length;h++){let v=l[h];if(!i(o[v],s[v]))return!1}}return!0}})(Eo||(de.NotebookCell=Eo={}));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 ct.objectLiteral(i)&&ct.string(i.uri)&&Br.integer.is(i.version)&&ct.typedArray(i.cells,Eo.is)}e.is=n})(kg||(de.NotebookDocument=kg={}));var sr;(function(e){e.method="notebookDocument/sync",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.RegistrationType(e.method)})(sr||(de.NotebookDocumentSyncRegistrationType=sr={}));var Ag;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(Ag||(de.DidOpenNotebookDocumentNotification=Ag={}));var Og;(function(e){function t(r){let i=r;return ct.objectLiteral(i)&&Br.uinteger.is(i.start)&&Br.uinteger.is(i.deleteCount)&&(i.cells===void 0||ct.typedArray(i.cells,Eo.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})(Og||(de.NotebookCellArrayChange=Og={}));var qg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(qg||(de.DidChangeNotebookDocumentNotification=qg={}));var Ng;(function(e){e.method="notebookDocument/didSave",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(Ng||(de.DidSaveNotebookDocumentNotification=Ng={}));var Eg;(function(e){e.method="notebookDocument/didClose",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(Eg||(de.DidCloseNotebookDocumentNotification=Eg={}))});var Ig=S(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.InlineCompletionRequest=void 0;var Mg=se(),Lg;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=Mg.MessageDirection.clientToServer,e.type=new Mg.ProtocolRequestType(e.method)})(Lg||(jo.InlineCompletionRequest=Lg={}))});var Jm=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(),Fg=(xo(),ni(vo)),Te=Po(),Z_=lf();Object.defineProperty(u,"ImplementationRequest",{enumerable:!0,get:function(){return Z_.ImplementationRequest}});var eC=ff();Object.defineProperty(u,"TypeDefinitionRequest",{enumerable:!0,get:function(){return eC.TypeDefinitionRequest}});var Ym=hf();Object.defineProperty(u,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return Ym.WorkspaceFoldersRequest}});Object.defineProperty(u,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return Ym.DidChangeWorkspaceFoldersNotification}});var tC=vf();Object.defineProperty(u,"ConfigurationRequest",{enumerable:!0,get:function(){return tC.ConfigurationRequest}});var Gm=_f();Object.defineProperty(u,"DocumentColorRequest",{enumerable:!0,get:function(){return Gm.DocumentColorRequest}});Object.defineProperty(u,"ColorPresentationRequest",{enumerable:!0,get:function(){return Gm.ColorPresentationRequest}});var Km=Df();Object.defineProperty(u,"FoldingRangeRequest",{enumerable:!0,get:function(){return Km.FoldingRangeRequest}});Object.defineProperty(u,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return Km.FoldingRangeRefreshRequest}});var nC=wf();Object.defineProperty(u,"DeclarationRequest",{enumerable:!0,get:function(){return nC.DeclarationRequest}});var rC=Of();Object.defineProperty(u,"SelectionRangeRequest",{enumerable:!0,get:function(){return rC.SelectionRangeRequest}});var Vu=jf();Object.defineProperty(u,"WorkDoneProgress",{enumerable:!0,get:function(){return Vu.WorkDoneProgress}});Object.defineProperty(u,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Vu.WorkDoneProgressCreateRequest}});Object.defineProperty(u,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Vu.WorkDoneProgressCancelNotification}});var Yu=Ff();Object.defineProperty(u,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Yu.CallHierarchyIncomingCallsRequest}});Object.defineProperty(u,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Yu.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(u,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Yu.CallHierarchyPrepareRequest}});var ar=$f();Object.defineProperty(u,"TokenFormat",{enumerable:!0,get:function(){return ar.TokenFormat}});Object.defineProperty(u,"SemanticTokensRequest",{enumerable:!0,get:function(){return ar.SemanticTokensRequest}});Object.defineProperty(u,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ar.SemanticTokensDeltaRequest}});Object.defineProperty(u,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ar.SemanticTokensRangeRequest}});Object.defineProperty(u,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ar.SemanticTokensRefreshRequest}});Object.defineProperty(u,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ar.SemanticTokensRegistrationType}});var iC=Gf();Object.defineProperty(u,"ShowDocumentRequest",{enumerable:!0,get:function(){return iC.ShowDocumentRequest}});var oC=Jf();Object.defineProperty(u,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return oC.LinkedEditingRangeRequest}});var bn=og();Object.defineProperty(u,"FileOperationPatternKind",{enumerable:!0,get:function(){return bn.FileOperationPatternKind}});Object.defineProperty(u,"DidCreateFilesNotification",{enumerable:!0,get:function(){return bn.DidCreateFilesNotification}});Object.defineProperty(u,"WillCreateFilesRequest",{enumerable:!0,get:function(){return bn.WillCreateFilesRequest}});Object.defineProperty(u,"DidRenameFilesNotification",{enumerable:!0,get:function(){return bn.DidRenameFilesNotification}});Object.defineProperty(u,"WillRenameFilesRequest",{enumerable:!0,get:function(){return bn.WillRenameFilesRequest}});Object.defineProperty(u,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return bn.DidDeleteFilesNotification}});Object.defineProperty(u,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return bn.WillDeleteFilesRequest}});var Gu=lg();Object.defineProperty(u,"UniquenessLevel",{enumerable:!0,get:function(){return Gu.UniquenessLevel}});Object.defineProperty(u,"MonikerKind",{enumerable:!0,get:function(){return Gu.MonikerKind}});Object.defineProperty(u,"MonikerRequest",{enumerable:!0,get:function(){return Gu.MonikerRequest}});var Ku=gg();Object.defineProperty(u,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Ku.TypeHierarchyPrepareRequest}});Object.defineProperty(u,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Ku.TypeHierarchySubtypesRequest}});Object.defineProperty(u,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Ku.TypeHierarchySupertypesRequest}});var Qm=yg();Object.defineProperty(u,"InlineValueRequest",{enumerable:!0,get:function(){return Qm.InlineValueRequest}});Object.defineProperty(u,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return Qm.InlineValueRefreshRequest}});var Qu=Pg();Object.defineProperty(u,"InlayHintRequest",{enumerable:!0,get:function(){return Qu.InlayHintRequest}});Object.defineProperty(u,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Qu.InlayHintResolveRequest}});Object.defineProperty(u,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Qu.InlayHintRefreshRequest}});var Hr=wg();Object.defineProperty(u,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Hr.DiagnosticServerCancellationData}});Object.defineProperty(u,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Hr.DocumentDiagnosticReportKind}});Object.defineProperty(u,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Hr.DocumentDiagnosticRequest}});Object.defineProperty(u,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Hr.WorkspaceDiagnosticRequest}});Object.defineProperty(u,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Hr.DiagnosticRefreshRequest}});var yt=jg();Object.defineProperty(u,"NotebookCellKind",{enumerable:!0,get:function(){return yt.NotebookCellKind}});Object.defineProperty(u,"ExecutionSummary",{enumerable:!0,get:function(){return yt.ExecutionSummary}});Object.defineProperty(u,"NotebookCell",{enumerable:!0,get:function(){return yt.NotebookCell}});Object.defineProperty(u,"NotebookDocument",{enumerable:!0,get:function(){return yt.NotebookDocument}});Object.defineProperty(u,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return yt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(u,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidOpenNotebookDocumentNotification}});Object.defineProperty(u,"NotebookCellArrayChange",{enumerable:!0,get:function(){return yt.NotebookCellArrayChange}});Object.defineProperty(u,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidChangeNotebookDocumentNotification}});Object.defineProperty(u,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidSaveNotebookDocumentNotification}});Object.defineProperty(u,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidCloseNotebookDocumentNotification}});var sC=Ig();Object.defineProperty(u,"InlineCompletionRequest",{enumerable:!0,get:function(){return sC.InlineCompletionRequest}});var Bu;(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})(Bu||(u.TextDocumentFilter=Bu={}));var Hu;(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})(Hu||(u.NotebookDocumentFilter=Hu={}));var zu;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebook)||Hu.is(r.notebook))&&(r.language===void 0||Te.string(r.language))}e.is=t})(zu||(u.NotebookCellTextDocumentFilter=zu={}));var $u;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Te.string(r)&&!Bu.is(r)&&!zu.is(r))return!1;return!0}e.is=t})($u||(u.DocumentSelector=$u={}));var Ug;(function(e){e.method="client/registerCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(Ug||(u.RegistrationRequest=Ug={}));var Wg;(function(e){e.method="client/unregisterCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(Wg||(u.UnregistrationRequest=Wg={}));var Bg;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(Bg||(u.ResourceOperationKind=Bg={}));var Hg;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(Hg||(u.FailureHandlingKind=Hg={}));var zg;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(zg||(u.PositionEncodingKind=zg={}));var $g;(function(e){function t(n){let r=n;return r&&Te.string(r.id)&&r.id.length>0}e.hasId=t})($g||(u.StaticRegistrationOptions=$g={}));var Vg;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||$u.is(r.documentSelector))}e.is=t})(Vg||(u.TextDocumentRegistrationOptions=Vg={}));var Yg;(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})(Yg||(u.WorkDoneProgressOptions=Yg={}));var Gg;(function(e){e.method="initialize",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Gg||(u.InitializeRequest=Gg={}));var Kg;(function(e){e.unknownProtocolVersion=1})(Kg||(u.InitializeErrorCodes=Kg={}));var Qg;(function(e){e.method="initialized",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Qg||(u.InitializedNotification=Qg={}));var Jg;(function(e){e.method="shutdown",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType0(e.method)})(Jg||(u.ShutdownRequest=Jg={}));var Xg;(function(e){e.method="exit",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType0(e.method)})(Xg||(u.ExitNotification=Xg={}));var Zg;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Zg||(u.DidChangeConfigurationNotification=Zg={}));var em;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(em||(u.MessageType=em={}));var tm;(function(e){e.method="window/showMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(tm||(u.ShowMessageNotification=tm={}));var nm;(function(e){e.method="window/showMessageRequest",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(nm||(u.ShowMessageRequest=nm={}));var rm;(function(e){e.method="window/logMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(rm||(u.LogMessageNotification=rm={}));var im;(function(e){e.method="telemetry/event",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(im||(u.TelemetryEventNotification=im={}));var om;(function(e){e.None=0,e.Full=1,e.Incremental=2})(om||(u.TextDocumentSyncKind=om={}));var sm;(function(e){e.method="textDocument/didOpen",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(sm||(u.DidOpenTextDocumentNotification=sm={}));var am;(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})(am||(u.TextDocumentContentChangeEvent=am={}));var cm;(function(e){e.method="textDocument/didChange",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(cm||(u.DidChangeTextDocumentNotification=cm={}));var um;(function(e){e.method="textDocument/didClose",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(um||(u.DidCloseTextDocumentNotification=um={}));var lm;(function(e){e.method="textDocument/didSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(lm||(u.DidSaveTextDocumentNotification=lm={}));var pm;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(pm||(u.TextDocumentSaveReason=pm={}));var dm;(function(e){e.method="textDocument/willSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(dm||(u.WillSaveTextDocumentNotification=dm={}));var fm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(fm||(u.WillSaveTextDocumentWaitUntilRequest=fm={}));var gm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(gm||(u.DidChangeWatchedFilesNotification=gm={}));var mm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(mm||(u.FileChangeType=mm={}));var hm;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Fg.URI.is(r.baseUri)||Fg.WorkspaceFolder.is(r.baseUri))&&Te.string(r.pattern)}e.is=t})(hm||(u.RelativePattern=hm={}));var ym;(function(e){e.Create=1,e.Change=2,e.Delete=4})(ym||(u.WatchKind=ym={}));var bm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(bm||(u.PublishDiagnosticsNotification=bm={}));var vm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(vm||(u.CompletionTriggerKind=vm={}));var xm;(function(e){e.method="textDocument/completion",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(xm||(u.CompletionRequest=xm={}));var Pm;(function(e){e.method="completionItem/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Pm||(u.CompletionResolveRequest=Pm={}));var _m;(function(e){e.method="textDocument/hover",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(_m||(u.HoverRequest=_m={}));var Cm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Cm||(u.SignatureHelpTriggerKind=Cm={}));var Sm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Sm||(u.SignatureHelpRequest=Sm={}));var Dm;(function(e){e.method="textDocument/definition",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Dm||(u.DefinitionRequest=Dm={}));var Rm;(function(e){e.method="textDocument/references",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Rm||(u.ReferencesRequest=Rm={}));var Tm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Tm||(u.DocumentHighlightRequest=Tm={}));var wm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(wm||(u.DocumentSymbolRequest=wm={}));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 Am;(function(e){e.method="codeAction/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Am||(u.CodeActionResolveRequest=Am={}));var Om;(function(e){e.method="workspace/symbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Om||(u.WorkspaceSymbolRequest=Om={}));var qm;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(qm||(u.WorkspaceSymbolResolveRequest=qm={}));var Nm;(function(e){e.method="textDocument/codeLens",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Nm||(u.CodeLensRequest=Nm={}));var Em;(function(e){e.method="codeLens/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Em||(u.CodeLensResolveRequest=Em={}));var jm;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType0(e.method)})(jm||(u.CodeLensRefreshRequest=jm={}));var Mm;(function(e){e.method="textDocument/documentLink",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Mm||(u.DocumentLinkRequest=Mm={}));var Lm;(function(e){e.method="documentLink/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Lm||(u.DocumentLinkResolveRequest=Lm={}));var Im;(function(e){e.method="textDocument/formatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Im||(u.DocumentFormattingRequest=Im={}));var Fm;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Fm||(u.DocumentRangeFormattingRequest=Fm={}));var Um;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Um||(u.DocumentRangesFormattingRequest=Um={}));var Wm;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Wm||(u.DocumentOnTypeFormattingRequest=Wm={}));var Bm;(function(e){e.Identifier=1})(Bm||(u.PrepareSupportDefaultBehavior=Bm={}));var Hm;(function(e){e.method="textDocument/rename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Hm||(u.RenameRequest=Hm={}));var zm;(function(e){e.method="textDocument/prepareRename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(zm||(u.PrepareRenameRequest=zm={}));var $m;(function(e){e.method="workspace/executeCommand",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})($m||(u.ExecuteCommandRequest=$m={}));var Vm;(function(e){e.method="workspace/applyEdit",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType("workspace/applyEdit")})(Vm||(u.ApplyWorkspaceEditRequest=Vm={}))});var Zm=S(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.createProtocolConnection=void 0;var Xm=mn();function aC(e,t,n,r){return Xm.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Xm.createMessageConnection)(e,t,n,r)}Mo.createProtocolConnection=aC});var th=S($e=>{"use strict";var cC=$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]})),Lo=$e&&$e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&cC(t,e,n)};Object.defineProperty($e,"__esModule",{value:!0});$e.LSPErrorCodes=$e.createProtocolConnection=void 0;Lo(mn(),$e);Lo((xo(),ni(vo)),$e);Lo(se(),$e);Lo(Jm(),$e);var uC=Zm();Object.defineProperty($e,"createProtocolConnection",{enumerable:!0,get:function(){return uC.createProtocolConnection}});var eh;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(eh||($e.LSPErrorCodes=eh={}))});var ye=S(bt=>{"use strict";var lC=bt&&bt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),nh=bt&&bt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&lC(t,e,n)};Object.defineProperty(bt,"__esModule",{value:!0});bt.createProtocolConnection=void 0;var pC=qc();nh(qc(),bt);nh(th(),bt);function dC(e,t,n,r){return(0,pC.createMessageConnection)(e,t,n,r)}bt.createProtocolConnection=dC});var Xu=S(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.SemanticTokensBuilder=Qt.SemanticTokensDiff=Qt.SemanticTokensFeature=void 0;var Io=ye(),fC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(Io.SemanticTokensRefreshRequest.type),on:t=>{let n=Io.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=Io.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=Io.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Qt.SemanticTokensFeature=fC;var Fo=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}]:[]}};Qt.SemanticTokensDiff=Fo;var Ju=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 Fo(this._prevData,this._data).computeDiff()}:this.build()}};Qt.SemanticTokensBuilder=Ju});var rh=S(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.InlineCompletionFeature=void 0;var gC=ye(),mC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(gC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Uo.InlineCompletionFeature=mC});var el=S(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.TextDocuments=void 0;var vn=ye(),Zu=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new vn.Emitter,this._onDidOpen=new vn.Emitter,this._onDidClose=new vn.Emitter,this._onDidSave=new vn.Emitter,this._onWillSave=new vn.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=vn.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}))})),vn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Wo.TextDocuments=Zu});var nl=S(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.NotebookDocuments=cr.NotebookSyncFeature=void 0;var tt=ye(),ih=el(),hC=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)})}}};cr.NotebookSyncFeature=hC;var Bo=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}};Bo.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var tl=class{constructor(t){t instanceof ih.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new ih.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 Bo,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let l=[],d=[],h=[],v=[];if(c.cells!==void 0){let Y=c.cells;if(Y.structure!==void 0){let m=Y.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),Y.structure.didOpen!==void 0)for(let g of Y.structure.didOpen)n.openTextDocument({textDocument:g}),l.push(g.uri);if(Y.structure.didClose)for(let g of Y.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(Y.data!==void 0){let m=new Map(Y.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let w=m.get(o.cells[g].document);if(w!==void 0){let V=o.cells.splice(g,1,w);if(h.push({old:V[0],new:w}),m.delete(w.document),m.size===0)break}}}if(Y.textContent!==void 0)for(let m of Y.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),v.push(m.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let R=[];for(let Y of l)R.push(this.getNotebookCell(Y));let I=[];for(let Y of d)I.push(this.getNotebookCell(Y));let $=[];for(let Y of v)$.push(this.getNotebookCell(Y));(R.length>0||I.length>0||h.length>0||$.length>0)&&(y.cells={added:R,removed:I,changed:{data:h,textContent:$}}),(y.metadata!==void 0||y.cells!==void 0)&&this._onDidChange.fire(y)})),r.push(t.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(t.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),tt.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};cr.NotebookDocuments=tl});var rl=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 yC(e){return e===!0||e===!1}xe.boolean=yC;function oh(e){return typeof e=="string"||e instanceof String}xe.string=oh;function bC(e){return typeof e=="number"||e instanceof Number}xe.number=bC;function vC(e){return e instanceof Error}xe.error=vC;function sh(e){return typeof e=="function"}xe.func=sh;function ah(e){return Array.isArray(e)}xe.array=ah;function xC(e){return ah(e)&&e.every(t=>oh(t))}xe.stringArray=xC;function PC(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=PC;function _C(e){return e&&sh(e.then)}xe.thenable=_C});var il=S(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.generateUuid=nt.parse=nt.isUUID=nt.v4=nt.empty=void 0;var zr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},$r=class e extends zr{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(""))}};$r._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];$r._timeHighBits=["8","9","a","b"];nt.empty=new zr("00000000-0000-0000-0000-000000000000");function ch(){return new $r}nt.v4=ch;var CC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function uh(e){return CC.test(e)}nt.isUUID=uh;function SC(e){if(!uh(e))throw new Error("invalid uuid");return new zr(e)}nt.parse=SC;function DC(){return ch().asHex()}nt.generateUuid=DC});var lh=S(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.attachPartialResult=Xt.ProgressFeature=Xt.attachWorkDone=void 0;var Jt=ye(),RC=il(),xn=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(Jt.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(Jt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Jt.WorkDoneProgress.type,this._token,{kind:"end"})}};xn.Instances=new Map;var Ho=class extends xn{constructor(t,n){super(t,n),this._source=new Jt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Vr=class{constructor(){}begin(){}report(){}done(){}},zo=class extends Vr{constructor(){super(),this._source=new Jt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function TC(e,t){if(t===void 0||t.workDoneToken===void 0)return new Vr;let n=t.workDoneToken;return delete t.workDoneToken,new xn(e,n)}Xt.attachWorkDone=TC;var wC=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Jt.WorkDoneProgressCancelNotification.type,n=>{let r=xn.Instances.get(n.token);(r instanceof Ho||r instanceof zo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Vr:new xn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,RC.generateUuid)();return this.connection.sendRequest(Jt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Ho(this.connection,t))}else return Promise.resolve(new zo)}};Xt.ProgressFeature=wC;var ol;(function(e){e.type=new Jt.ProgressType})(ol||(ol={}));var sl=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(ol.type,this._token,t)}};function kC(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new sl(e,n)}Xt.attachPartialResult=kC});var ph=S($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.ConfigurationFeature=void 0;var AC=ye(),OC=rl(),qC=e=>class extends e{getConfiguration(t){return t?OC.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(AC.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};$o.ConfigurationFeature=qC});var dh=S(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.WorkspaceFoldersFeature=void 0;var Vo=ye(),NC=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Vo.Emitter,this.connection.onNotification(Vo.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(Vo.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(Vo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Yo.WorkspaceFoldersFeature=NC});var fh=S(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.CallHierarchyFeature=void 0;var al=ye(),EC=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(al.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=al.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=al.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Go.CallHierarchyFeature=EC});var gh=S(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.ShowDocumentFeature=void 0;var jC=ye(),MC=e=>class extends e{showDocument(t){return this.connection.sendRequest(jC.ShowDocumentRequest.type,t)}};Ko.ShowDocumentFeature=MC});var mh=S(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.FileOperationsFeature=void 0;var ur=ye(),LC=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(ur.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(ur.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(ur.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(ur.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(ur.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(ur.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};Qo.FileOperationsFeature=LC});var hh=S(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.LinkedEditingRangeFeature=void 0;var IC=ye(),FC=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(IC.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};Jo.LinkedEditingRangeFeature=FC});var yh=S(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.TypeHierarchyFeature=void 0;var cl=ye(),UC=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(cl.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=cl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=cl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Xo.TypeHierarchyFeature=UC});var vh=S(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.InlineValueFeature=void 0;var bh=ye(),WC=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(bh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(bh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Zo.InlineValueFeature=WC});var Ph=S(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.FoldingRangeFeature=void 0;var xh=ye(),BC=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(xh.FoldingRangeRefreshRequest.type),on:t=>{let n=xh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};es.FoldingRangeFeature=BC});var _h=S(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.InlayHintFeature=void 0;var ul=ye(),HC=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(ul.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(ul.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(ul.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};ts.InlayHintFeature=HC});var Ch=S(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.DiagnosticFeature=void 0;var Yr=ye(),zC=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Yr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Yr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Yr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Yr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Yr.WorkspaceDiagnosticRequest.partialResult,n)))}}};ns.DiagnosticFeature=zC});var Sh=S(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.MonikerFeature=void 0;var $C=ye(),VC=e=>class extends e{get moniker(){return{on:t=>{let n=$C.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};rs.MonikerFeature=VC});var Fh=S(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.createConnection=Q.combineFeatures=Q.combineNotebooksFeatures=Q.combineLanguagesFeatures=Q.combineWorkspaceFeatures=Q.combineWindowFeatures=Q.combineClientFeatures=Q.combineTracerFeatures=Q.combineTelemetryFeatures=Q.combineConsoleFeatures=Q._NotebooksImpl=Q._LanguagesImpl=Q.BulkUnregistration=Q.BulkRegistration=Q.ErrorMessageTracker=void 0;var O=ye(),rt=rl(),pl=il(),B=lh(),YC=ph(),GC=dh(),KC=fh(),QC=Xu(),JC=gh(),XC=mh(),ZC=hh(),e0=yh(),t0=vh(),n0=Ph(),r0=_h(),i0=Ch(),o0=nl(),s0=Sh();function ll(e){if(e!==null)return e}var dl=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=dl;var is=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")})}},fl=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(ll)}showWarningMessage(t,...n){let r={type:O.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(ll)}showInformationMessage(t,...n){let r={type:O.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(ll)}},Dh=(0,JC.ShowDocumentFeature)((0,B.ProgressFeature)(fl)),Rh;(function(e){function t(){return new os}e.create=t})(Rh||(Q.BulkRegistration=Rh={}));var os=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=pl.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Th;(function(e){function t(){return new Gr(void 0,[])}e.create=t})(Th||(Q.BulkUnregistration=Th={}));var Gr=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}},ss=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 os?this.registerMany(t):t instanceof Gr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=rt.string(n)?n:n.method,o=pl.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=pl.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 Gr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},gl=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)}},wh=(0,XC.FileOperationsFeature)((0,GC.WorkspaceFoldersFeature)((0,YC.ConfigurationFeature)(gl))),as=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(()=>{})}},cs=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")})}},us=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=us;var kh=(0,n0.FoldingRangeFeature)((0,s0.MonikerFeature)((0,i0.DiagnosticFeature)((0,r0.InlayHintFeature)((0,t0.InlineValueFeature)((0,e0.TypeHierarchyFeature)((0,ZC.LinkedEditingRangeFeature)((0,QC.SemanticTokensFeature)((0,KC.CallHierarchyFeature)(us))))))))),ls=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=ls;var Ah=(0,o0.NotebookSyncFeature)(ls);function Oh(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=Oh;function qh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=qh;function Nh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Nh;function Eh(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Eh;function jh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=jh;function Mh(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=Mh;function Lh(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=Lh;function Ih(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=Ih;function a0(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Oh),tracer:n(e.tracer,t.tracer,Nh),telemetry:n(e.telemetry,t.telemetry,qh),client:n(e.client,t.client,Eh),window:n(e.window,t.window,jh),workspace:n(e.workspace,t.workspace,Mh),languages:n(e.languages,t.languages,Lh),notebooks:n(e.notebooks,t.notebooks,Ih)}}Q.combineFeatures=a0;function c0(e,t,n){let r=n&&n.console?new(n.console(is)):new is,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(as)):new as,s=n&&n.telemetry?new(n.telemetry(cs)):new cs,a=n&&n.client?new(n.client(ss)):new ss,c=n&&n.window?new(n.window(Dh)):new Dh,l=n&&n.workspace?new(n.workspace(wh)):new wh,d=n&&n.languages?new(n.languages(kh)):new kh,h=n&&n.notebooks?new(n.notebooks(Ah)):new Ah,v=[r,o,s,a,c,l,d,h];function y(m){return m instanceof Promise?m:rt.thenable(m)?new Promise((g,w)=>{m.then(V=>g(V),V=>w(V))}):Promise.resolve(m)}let R,I,$,Y={listen:()=>i.listen(),sendRequest:(m,...g)=>i.sendRequest(rt.string(m)?m:m.method,...g),onRequest:(m,g)=>i.onRequest(m,g),sendNotification:(m,g)=>{let w=rt.string(m)?m:m.method;return i.sendNotification(w,g)},onNotification:(m,g)=>i.onNotification(m,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(I=m,{dispose:()=>{I=void 0}}),onInitialized:m=>i.onNotification(O.InitializedNotification.type,m),onShutdown:m=>(R=m,{dispose:()=>{R=void 0}}),onExit:m=>($=m,{dispose:()=>{$=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return c},get workspace(){return l},get languages(){return d},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(O.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(O.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(O.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(O.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(O.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(O.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(O.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(O.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(O.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(O.HoverRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:m=>i.onRequest(O.CompletionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:m=>i.onRequest(O.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(O.SignatureHelpRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:m=>i.onRequest(O.DeclarationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:m=>i.onRequest(O.DefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:m=>i.onRequest(O.TypeDefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:m=>i.onRequest(O.ImplementationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:m=>i.onRequest(O.ReferencesRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:m=>i.onRequest(O.DocumentHighlightRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:m=>i.onRequest(O.DocumentSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:m=>i.onRequest(O.WorkspaceSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:m=>i.onRequest(O.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(O.CodeActionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:m=>i.onRequest(O.CodeActionResolveRequest.type,(g,w)=>m(g,w)),onCodeLens:m=>i.onRequest(O.CodeLensRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:m=>i.onRequest(O.CodeLensResolveRequest.type,(g,w)=>m(g,w)),onDocumentFormatting:m=>i.onRequest(O.DocumentFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:m=>i.onRequest(O.DocumentRangeFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(O.DocumentOnTypeFormattingRequest.type,(g,w)=>m(g,w)),onRenameRequest:m=>i.onRequest(O.RenameRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:m=>i.onRequest(O.PrepareRenameRequest.type,(g,w)=>m(g,w)),onDocumentLinks:m=>i.onRequest(O.DocumentLinkRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:m=>i.onRequest(O.DocumentLinkResolveRequest.type,(g,w)=>m(g,w)),onDocumentColor:m=>i.onRequest(O.DocumentColorRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:m=>i.onRequest(O.ColorPresentationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:m=>i.onRequest(O.FoldingRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:m=>i.onRequest(O.SelectionRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:m=>i.onRequest(O.ExecuteCommandRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let m of v)m.attach(Y);return i.onRequest(O.InitializeRequest.type,m=>{t.initialize(m),rt.string(m.trace)&&(o.trace=O.Trace.fromString(m.trace));for(let g of v)g.initialize(m.capabilities);if(I){let g=I(m,new O.CancellationTokenSource().token,(0,B.attachWorkDone)(i,m),void 0);return y(g).then(w=>{if(w instanceof O.ResponseError)return w;let V=w;V||(V={capabilities:{}});let X=V.capabilities;X||(X={},V.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None:!rt.number(X.textDocumentSync)&&!rt.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None);for(let it of v)it.fillServerCapabilities(X);return V})}else{let g={capabilities:{textDocumentSync:O.TextDocumentSyncKind.None}};for(let w of v)w.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(O.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,R)return R(new O.CancellationTokenSource().token)}),i.onNotification(O.ExitNotification.type,()=>{try{$&&$()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(O.SetTraceNotification.type,m=>{o.trace=O.Trace.fromString(m.value)}),Y}Q.createConnection=c0});var ml=S(je=>{"use strict";var u0=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]})),Wh=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&u0(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});je.ProposedFeatures=je.NotebookDocuments=je.TextDocuments=je.SemanticTokensBuilder=void 0;var l0=Xu();Object.defineProperty(je,"SemanticTokensBuilder",{enumerable:!0,get:function(){return l0.SemanticTokensBuilder}});var p0=rh();Wh(ye(),je);var d0=el();Object.defineProperty(je,"TextDocuments",{enumerable:!0,get:function(){return d0.TextDocuments}});var f0=nl();Object.defineProperty(je,"NotebookDocuments",{enumerable:!0,get:function(){return f0.NotebookDocuments}});Wh(Fh(),je);var Uh;(function(e){e.all={__brand:"features",languages:p0.InlineCompletionFeature}})(Uh||(je.ProposedFeatures=Uh={}))});var Hh=S((cw,Bh)=>{"use strict";Bh.exports=ye()});var hl=S(vt=>{"use strict";var g0=vt&&vt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),$h=vt&&vt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&g0(t,e,n)};Object.defineProperty(vt,"__esModule",{value:!0});vt.createConnection=void 0;var ps=ml();$h(Hh(),vt);$h(ml(),vt);var zh=!1,m0={initialize:e=>{},get shutdownReceived(){return zh},set shutdownReceived(e){zh=e},exit:e=>{}};function h0(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),ps.ConnectionStrategy.is(e)||ps.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=l=>(0,ps.createProtocolConnection)(o,s,l,a);return(0,ps.createConnection)(c,m0,i)}vt.createConnection=h0});var Zt=S((lw,Vh)=>{"use strict";Vh.exports=hl()});var Rl=S((ek,oy)=>{"use strict";function xt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function iy(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 oS(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 dr={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),xt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=iy(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(xt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=iy(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return xt(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var r=arguments[n];xt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":dr.normalize(t)},relative:function(t,n){if(xt(t),xt(n),t===n||(t=dr.resolve(t),n=dr.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,l=o<c?o:c,d=-1,h=0;h<=l;++h){if(h===l){if(c>l){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>l&&(t.charCodeAt(r+h)===47?d=h:h===0&&(d=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(d=h)}var R="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(R.length===0?R+="..":R+="/..");return R.length>0?R+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(xt(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,o=!0,s=t.length-1;s>=1;--s)if(n=t.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');xt(t);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,c=-1;for(s=t.length-1;s>=0;--s){var l=t.charCodeAt(s);if(l===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(l===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=c))}return r===i?i=c:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){xt(t);for(var n=-1,r=0,i=-1,o=!0,s=0,a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(c===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),c===46?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return oS("/",t)},parse:function(t){xt(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,c=-1,l=!0,d=t.length-1,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!l){a=d+1;break}continue}c===-1&&(l=!1,c=d+1),r===46?s===-1?s=d:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||c===-1||h===0||h===1&&s===c-1&&s===a+1?c!==-1&&(a===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(a,c)):(a===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(a,s),n.base=t.slice(a,c)),n.ext=t.slice(s,c)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};dr.posix=dr;oy.exports=dr});import{createConfig as hd,loadConfig as Cx,DEFAULT_CONFIG as Sx}from"@redocly/openapi-core";var Ol;(()=>{"use strict";var e={975:k=>{function b(P){if(typeof P!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(P))}function E(P,C){for(var D,N="",M=0,q=-1,z=0,G=0;G<=P.length;++G){if(G<P.length)D=P.charCodeAt(G);else{if(D===47)break;D=47}if(D===47){if(!(q===G-1||z===1))if(q!==G-1&&z===2){if(N.length<2||M!==2||N.charCodeAt(N.length-1)!==46||N.charCodeAt(N.length-2)!==46){if(N.length>2){var Ce=N.lastIndexOf("/");if(Ce!==N.length-1){Ce===-1?(N="",M=0):M=(N=N.slice(0,Ce)).length-1-N.lastIndexOf("/"),q=G,z=0;continue}}else if(N.length===2||N.length===1){N="",M=0,q=G,z=0;continue}}C&&(N.length>0?N+="/..":N="..",M=2)}else N.length>0?N+="/"+P.slice(q+1,G):N=P.slice(q+1,G),M=G-q-1;q=G,z=0}else D===46&&z!==-1?++z:z=-1}return N}var j={resolve:function(){for(var P,C="",D=!1,N=arguments.length-1;N>=-1&&!D;N--){var M;N>=0?M=arguments[N]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(C=M+"/"+C,D=M.charCodeAt(0)===47)}return C=E(C,!D),D?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(P){if(b(P),P.length===0)return".";var C=P.charCodeAt(0)===47,D=P.charCodeAt(P.length-1)===47;return(P=E(P,!C)).length!==0||C||(P="."),P.length>0&&D&&(P+="/"),C?"/"+P:P},isAbsolute:function(P){return b(P),P.length>0&&P.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var P,C=0;C<arguments.length;++C){var D=arguments[C];b(D),D.length>0&&(P===void 0?P=D:P+="/"+D)}return P===void 0?".":j.normalize(P)},relative:function(P,C){if(b(P),b(C),P===C||(P=j.resolve(P))===(C=j.resolve(C)))return"";for(var D=1;D<P.length&&P.charCodeAt(D)===47;++D);for(var N=P.length,M=N-D,q=1;q<C.length&&C.charCodeAt(q)===47;++q);for(var z=C.length-q,G=M<z?M:z,Ce=-1,ee=0;ee<=G;++ee){if(ee===G){if(z>G){if(C.charCodeAt(q+ee)===47)return C.slice(q+ee+1);if(ee===0)return C.slice(q+ee)}else M>G&&(P.charCodeAt(D+ee)===47?Ce=ee:ee===0&&(Ce=0));break}var ot=P.charCodeAt(D+ee);if(ot!==C.charCodeAt(q+ee))break;ot===47&&(Ce=ee)}var on="";for(ee=D+Ce+1;ee<=N;++ee)ee!==N&&P.charCodeAt(ee)!==47||(on.length===0?on+="..":on+="/..");return on.length>0?on+C.slice(q+Ce):(q+=Ce,C.charCodeAt(q)===47&&++q,C.slice(q))},_makeLong:function(P){return P},dirname:function(P){if(b(P),P.length===0)return".";for(var C=P.charCodeAt(0),D=C===47,N=-1,M=!0,q=P.length-1;q>=1;--q)if((C=P.charCodeAt(q))===47){if(!M){N=q;break}}else M=!1;return N===-1?D?"/":".":D&&N===1?"//":P.slice(0,N)},basename:function(P,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(P);var D,N=0,M=-1,q=!0;if(C!==void 0&&C.length>0&&C.length<=P.length){if(C.length===P.length&&C===P)return"";var z=C.length-1,G=-1;for(D=P.length-1;D>=0;--D){var Ce=P.charCodeAt(D);if(Ce===47){if(!q){N=D+1;break}}else G===-1&&(q=!1,G=D+1),z>=0&&(Ce===C.charCodeAt(z)?--z==-1&&(M=D):(z=-1,M=G))}return N===M?M=G:M===-1&&(M=P.length),P.slice(N,M)}for(D=P.length-1;D>=0;--D)if(P.charCodeAt(D)===47){if(!q){N=D+1;break}}else M===-1&&(q=!1,M=D+1);return M===-1?"":P.slice(N,M)},extname:function(P){b(P);for(var C=-1,D=0,N=-1,M=!0,q=0,z=P.length-1;z>=0;--z){var G=P.charCodeAt(z);if(G!==47)N===-1&&(M=!1,N=z+1),G===46?C===-1?C=z:q!==1&&(q=1):C!==-1&&(q=-1);else if(!M){D=z+1;break}}return C===-1||N===-1||q===0||q===1&&C===N-1&&C===D+1?"":P.slice(C,N)},format:function(P){if(P===null||typeof P!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof P);return(function(C,D){var N=D.dir||D.root,M=D.base||(D.name||"")+(D.ext||"");return N?N===D.root?N+M:N+"/"+M:M})(0,P)},parse:function(P){b(P);var C={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return C;var D,N=P.charCodeAt(0),M=N===47;M?(C.root="/",D=1):D=0;for(var q=-1,z=0,G=-1,Ce=!0,ee=P.length-1,ot=0;ee>=D;--ee)if((N=P.charCodeAt(ee))!==47)G===-1&&(Ce=!1,G=ee+1),N===46?q===-1?q=ee:ot!==1&&(ot=1):q!==-1&&(ot=-1);else if(!Ce){z=ee+1;break}return q===-1||G===-1||ot===0||ot===1&&q===G-1&&q===z+1?G!==-1&&(C.base=C.name=z===0&&M?P.slice(1,G):P.slice(z,G)):(z===0&&M?(C.name=P.slice(1,q),C.base=P.slice(1,G)):(C.name=P.slice(z,q),C.base=P.slice(z,G)),C.ext=P.slice(q,G)),z>0?C.dir=P.slice(0,z-1):M&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var E=t[k]={exports:{}};return e[k](E,E.exports,n),E.exports}n.d=(k,b)=>{for(var E in b)n.o(b,E)&&!n.o(k,E)&&Object.defineProperty(k,E,{enumerable:!0,get:b[E]})},n.o=(k,b)=>Object.prototype.hasOwnProperty.call(k,b),n.r=k=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>v,Utils:()=>_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,E,j,P,C,D=!1){typeof b=="object"?(this.scheme=b.scheme||l,this.authority=b.authority||l,this.path=b.path||l,this.query=b.query||l,this.fragment=b.fragment||l):(this.scheme=(function(N,M){return N||M?N:"file"})(b,D),this.authority=E||l,this.path=(function(N,M){switch(N){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M})(this.scheme,j||l),this.query=P||l,this.fragment=C||l,c(this,D))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:E,authority:j,path:P,query:C,fragment:D}=b;return E===void 0?E=this.scheme:E===null&&(E=l),j===void 0?j=this.authority:j===null&&(j=l),P===void 0?P=this.path:P===null&&(P=l),C===void 0?C=this.query:C===null&&(C=l),D===void 0?D=this.fragment:D===null&&(D=l),E===this.scheme&&j===this.authority&&P===this.path&&C===this.query&&D===this.fragment?this:new R(E,j,P,C,D)}static parse(b,E=!1){let j=h.exec(b);return j?new R(j[2]||l,X(j[4]||l),X(j[5]||l),X(j[7]||l),X(j[9]||l),E):new R(l,l,l,l,l)}static file(b){let E=l;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let j=b.indexOf(d,2);j===-1?(E=b.substring(2),b=d):(E=b.substring(2,j),b=b.substring(j)||d)}return new R("file",E,b,l,l)}static from(b){let E=new R(b.scheme,b.authority,b.path,b.query,b.fragment);return c(E,!0),E}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let E=new R(b);return E._formatted=b.external,E._fsPath=b._sep===y?b.fsPath:null,E}}return b}}let y=i?1:void 0;class R extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=m(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let I={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function $(k,b,E){let j,P=-1;for(let C=0;C<k.length;C++){let D=k.charCodeAt(C);if(D>=97&&D<=122||D>=65&&D<=90||D>=48&&D<=57||D===45||D===46||D===95||D===126||b&&D===47||E&&D===91||E&&D===93||E&&D===58)P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j!==void 0&&(j+=k.charAt(C));else{j===void 0&&(j=k.substr(0,C));let N=I[D];N!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j+=N):P===-1&&(P=C)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function Y(k){let b;for(let E=0;E<k.length;E++){let j=k.charCodeAt(E);j===35||j===63?(b===void 0&&(b=k.substr(0,E)),b+=I[j]):b!==void 0&&(b+=k[E])}return b!==void 0?b:k}function m(k,b){let E;return E=k.authority&&k.path.length>1&&k.scheme==="file"?`//${k.authority}${k.path}`:k.path.charCodeAt(0)===47&&(k.path.charCodeAt(1)>=65&&k.path.charCodeAt(1)<=90||k.path.charCodeAt(1)>=97&&k.path.charCodeAt(1)<=122)&&k.path.charCodeAt(2)===58?b?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(E=E.replace(/\//g,"\\")),E}function g(k,b){let E=b?Y:$,j="",{scheme:P,authority:C,path:D,query:N,fragment:M}=k;if(P&&(j+=P,j+=":"),(C||P==="file")&&(j+=d,j+=d),C){let q=C.indexOf("@");if(q!==-1){let z=C.substr(0,q);C=C.substr(q+1),q=z.lastIndexOf(":"),q===-1?j+=E(z,!1,!1):(j+=E(z.substr(0,q),!1,!1),j+=":",j+=E(z.substr(q+1),!1,!0)),j+="@"}C=C.toLowerCase(),q=C.lastIndexOf(":"),q===-1?j+=E(C,!1,!0):(j+=E(C.substr(0,q),!1,!0),j+=C.substr(q))}if(D){if(D.length>=3&&D.charCodeAt(0)===47&&D.charCodeAt(2)===58){let q=D.charCodeAt(1);q>=65&&q<=90&&(D=`/${String.fromCharCode(q+32)}:${D.substr(3)}`)}else if(D.length>=2&&D.charCodeAt(1)===58){let q=D.charCodeAt(0);q>=65&&q<=90&&(D=`${String.fromCharCode(q+32)}:${D.substr(2)}`)}j+=E(D,!0,!1)}return N&&(j+="?",j+=E(N,!1,!1)),M&&(j+="#",j+=b?M:$(M,!1,!1)),j}function w(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+w(k.substr(3)):k}}let V=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(V)?k.replace(V,(b=>w(b))):k}var it=n(975);let Nt=it.posix||it,rn="/";var _n;(function(k){k.joinPath=function(b,...E){return b.with({path:Nt.join(b.path,...E)})},k.resolvePath=function(b,...E){let j=b.path,P=!1;j[0]!==rn&&(j=rn+j,P=!0);let C=Nt.resolve(j,...E);return P&&C[0]===rn&&!b.authority&&(C=C.substring(1)),b.with({path:C})},k.dirname=function(b){if(b.path.length===0||b.path===rn)return b;let E=Nt.dirname(b.path);return E.length===1&&E.charCodeAt(0)===46&&(E=""),b.with({path:E})},k.basename=function(b){return Nt.basename(b.path)},k.extname=function(b){return Nt.extname(b.path)}})(_n||(_n={})),Ol=r})();var{URI:jt,Utils:ne}=Ol;import{CONFIG_FILE_NAME as My}from"@redocly/openapi-core";var ks={languageId:"yaml",filePattern:/\.ya?ml$/i},As={languageId:"json",filePattern:/\.json$/i},ws=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[ks,As];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ne.resolvePath(ne.dirname(Se(t)),My);return await this._fs.exists(n)?n.toString():void 0}catch{return}}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}registerRemoteScorecardAndPlugins(t){this._remoteScorecardAndPlugins=t}get remoteScorecardAndPlugins(){return this._remoteScorecardAndPlugins}get fs(){if(!this._fs)throw new Error("FileSystemProvider not registered.");return this._fs}get documents(){if(!this._documentManager)throw new Error("DocumentsProvider not registered.");return this._documentManager}get findConfig(){if(!this._findConfig)throw new Error("ConfigFinder not registered.");return this._findConfig}get getRootWorkspaceFolderURI(){if(!this._getRootWorkspaceFolderURI)throw new Error("RootWorkspaceFolderURIGetter not registered.");return this._getRootWorkspaceFolderURI}setScorecardStatus(t){this._scorecardStatus=t}get scorecardStatus(){return this._scorecardStatus}},be=new ws;function Os(e,t){return ne.resolvePath(Se(e)).toString()===ne.resolvePath(Se(t)).toString()}function Se(e){return jt.parse(e)}function Pt(e){return jt.parse(e).fsPath}function mr(e){let t=["https","http"],{scheme:n}=jt.parse(e);return t.includes(n)}function hr(e){return ne.basename(Se(e))}async function ql(e,t="/"){let n=ne.resolvePath(Se(t));for(;e.path!=="/";)try{(await be.fs.stat(ne.resolvePath(n,e.path))).isDirectory()||(e=ne.dirname(e));break}catch{e=ne.dirname(e)}return e}import{BaseResolver as Px,Source as md,readFileFromUrl as _x}from"@redocly/openapi-core";var gi=Ie(Pr(),1);import{isAbsoluteUrl as bx}from"@redocly/openapi-core";function id(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(l){let d=i.get(l.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(l.uri,setTimeout(()=>a(l),t-h));else if(r.delete(l.uri),i.delete(l.uri),!n){let v=s.get(l.uri),y=e(o.get(l.uri));v&&v.forEach(({resolve:R})=>R(y)),s.delete(l.uri)}}catch(v){let y=s.get(l.uri);y&&y.forEach(({reject:R})=>R(v)),s.delete(l.uri)}}function c(l){let d=r.get(l.uri),h=n&&!d;return i.set(l.uri,Date.now()),o.set(l.uri,l),new Promise((v,y)=>{let R=s.get(l.uri)||[];d||(s.set(l.uri,[...R,{resolve:v,reject:y}]),r.set(l.uri,setTimeout(()=>a(l),t))),h?v(e(o.get(l.uri))):s.set(l.uri,[...R,{resolve:v,reject:y}])})}return c}function oa(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 od(e){return e==="$ref"}async function sa(e,t){let n=jt.parse(t);return ne.joinPath(n,e).toString()}async function sd(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await sa(i,n)===t)return r}function ad(e){return typeof e=="string"}function mi(e){return typeof e=="function"}function cd(e){return e?.kind===gi.Kind.MAP}function aa(e){return e?.kind===gi.Kind.MAPPING}function ca(e){return e?.kind===gi.Kind.SEQ}function _r(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}function ua(e){return bx(e)||e.startsWith("file://")}var hi=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=pd(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=ud(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=ud(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&&ld(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}},yi;(function(e){function t(i,o,s,a){return new hi(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof hi)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=la(o.map(vx),(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})(yi||(yi={}));function la(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);la(r,t),la(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 ud(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);ld(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function ld(e){return e===13||e===10}function pd(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 vx(e){let t=pd(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var dd=new Map;function fd(e,t){return dd.set(e,t)}function gd(e){let t=[];for(let[n,r]of dd.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Qe(e){let t=be.documents.get(e);if(t)return t;let n=await be.fs.readFile(Se(e),"utf-8");return yi.create(e,"yaml",1,n)}function pa(e){return As.filePattern.test(e)}function xx(e){return ks.filePattern.test(e)}var St=class extends Px{resolveExternalRef(t,n){return ua(n)?n:t&&ua(t)?new URL(n,t).href:t?ne.resolvePath(ne.dirname(Se(t)),n).toString():n}async loadExternalRef(t){if(mr(t)){let{body:n,mimeType:r}=await _x(t,{...this.config.http,customFetch:fetch});return new md(t,n,r)}return new md(t,(await Qe(t)).getText())}};var Dt;async function bi(e,t){try{let n=new St,r=e?await be.findConfig(e):void 0;if(r===void 0)return Dt=await hd(Sx),Dt;Dt=await Cx({configPath:r,externalRefResolver:n})}catch(n){t?.createEventHandleLoadConfigError?.(n?.message),Dt=await hd({})}return Dt}async function An(e){return Dt||await bi(e)}async function pn(e){return await da(e)?!0:!!Dt?.resolvedRefMap&&[...Dt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Os(hr(e),n))}async function da(e){let t=await be.findConfig(e);return t?Os(e,t):!1}var yd={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Cr={type:"object",properties:yd,additionalProperties:!1},Dx={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Ft={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({},yd),{like:Cr,dislike:Cr,satisfied:Cr,neutral:Cr,dissatisfied:Cr}),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:Dx},additionalProperties:!1}},additionalProperties:!1};var Rx={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},fa={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},vi={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Ft,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:fa,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:Rx,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1};var On={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Tx={type:"object",properties:{name:{type:"string"},items:On,queries:On,mutations:On,subscriptions:On,types:On,directives:On},required:["name"],additionalProperties:!1},wx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Tx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},qn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},wx.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:fa,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:Ft,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"}},additionalProperties:!1};var kx={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Ax={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"}}},bd={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Ox={type:"object",properties:{beforeInfo:{type:"array",items:bd},end:{type:"array",items:bd}}},dn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},xi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},qx={type:"object",properties:Si(dn.properties,["light","dark"])},Nx={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"}}},Ex={type:"object",properties:{error:xi,info:xi,redirect:xi,success:xi}},jx={type:"object",properties:Nn(dn.properties,["dark"])},Mx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Lx={type:"object",properties:{accent:dn,border:qx,error:dn,http:Nx,primary:dn,responses:Ex,secondary:jx,success:dn,text:Mx,tonalOffset:{type:"number"},warning:dn}},Pi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Ix={type:"object",properties:{small:Pi,medium:Pi,large:Pi,xlarge:Pi}},ft={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Fx={type:"object",properties:Object.assign(Object.assign({},Nn(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Ix})},vd={type:"object",properties:Si(ft.properties,["fontSize","lineHeight"])},Ux={type:"object",properties:{medium:vd,small:vd}},Wx={type:"object",properties:Object.assign(Object.assign({},Nn(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Ux})},Bx={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Hx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},xd={type:"object",properties:{fullWidth:{type:"boolean"}}},zx={type:"object",properties:{buttons:Fx,httpBadges:Wx,layoutControls:Bx,panels:Hx,tryItButton:xd,tryItSendButton:xd}},Ci={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},$x={type:"object",properties:{maxWidth:Ci}},Vx={type:"object",properties:{maxWidth:Ci,middlePanelMaxWidth:Ci}},Yx={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:$x,"three-panel":Vx}},Pd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Gx={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:Pd,defaultDetailsWidth:{type:"string"},examples:Pd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Cd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Kx={type:"object",properties:Si(Cd.properties,["textTransform"])},Qx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Jx={type:"object",properties:Object.assign(Object.assign({},Nn(ft.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:Cd,level1items:Kx,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Qx,textColor:{type:"string"},width:{type:"string"}})},_i={type:"object",properties:Object.assign(Object.assign({},ft.properties),{color:{type:"string"},transform:{type:"string"}})},Xx={type:"object",properties:Object.assign(Object.assign({},ft.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},Zx={type:"object",properties:Nn(ft.properties,["fontSize"])},eP={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:Xx,fieldName:ft},Si(ft.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:_i,heading2:_i,heading3:_i,headings:Zx,lineHeight:{type:"string"},links:eP,optimizeSpeed:{type:"boolean"},rightPanelHeading:_i,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},nP={type:"object",properties:Object.assign({color:{type:"string"}},Nn(ft.properties,["fontWeight"]))},rP={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:nP}},iP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},oP={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},_d={type:"object",properties:{custom:{type:"string"}}},sP={type:"object",properties:{DownloadButton:_d,NextSectionButton:_d}},aP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},cP={type:"object",properties:{borderRadius:{type:"string"}}},uP={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},lP={type:"object",properties:{breakpoints:Ci,codeBlock:rP,colors:Lx,components:zx,layout:Yx,logo:iP,fab:oP,overrides:sP,rightPanel:aP,schema:Gx,shape:cP,sidebar:Jx,spacing:uP,typography:tP,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},pP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:kx}},required:["languages"]},Sd={type:"object",properties:{theme:lP,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:pP,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:Ax,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:Ox,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function Si(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function Nn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var Rt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}};var Sr={rules:Rt,oas2Rules:Rt,oas3_0Rules:Rt,oas3_1Rules:Rt,oas3_2Rules:Rt,async2Rules:Rt,async3Rules:Rt,arazzo1Rules:Rt,overlay1Rules:Rt};var Tt={type:"object",additionalProperties:!0},Dr={preprocessors:Tt,oas2Preprocessors:Tt,oas3_0Preprocessors:Tt,oas3_1Preprocessors:Tt,oas3_2Preprocessors:Tt,async2Preprocessors:Tt,async3Preprocessors:Tt,arazzo1Preprocessors:Tt,overlay1Preprocessors:Tt},wt={type:"object",additionalProperties:!0};var Rr={decorators:wt,oas2Decorators:wt,oas3_0Decorators:wt,oas3_1Decorators:wt,oas3_2Decorators:wt,async2Decorators:wt,async3Decorators:wt,arazzo1Decorators:wt,overlay1Decorators:wt};var Re={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Dd={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},ga={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}}},ma={type:"array",items:Object.assign(Object.assign({},ga),{properties:Object.assign(Object.assign({},ga.properties),{items:{type:"array",items:ga}})})},dP={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},gP={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}},mP={type:"object",properties:Object.assign({facets:gP},Re.properties),additionalProperties:!1},hP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Di={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Ri={type:"object",properties:Object.assign({items:ma},Re.properties),additionalProperties:!1},Ti={type:"object",additionalProperties:dP},wi={type:"object",properties:Object.assign({items:ma,copyrightText:{type:"string"},logo:Re},Re.properties),additionalProperties:!1},ki={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Re.properties),additionalProperties:!1},Ai={type:"object",properties:{head:{type:"array",items:Dd},body:{type:"array",items:Dd}},additionalProperties:!1},Oi={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}},qi={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:fP,filters:mP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:hP}},Re.properties),additionalProperties:!1},Ni={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:"redocly"}},additionalProperties:!1}},additionalProperties:!1},Ei={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Re.properties),additionalProperties:!1},yP={type:"object",properties:Object.assign(Object.assign({},Re.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1},ji={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:yP},additionalProperties:!1},Mi={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},Li={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:{}},En=Object.assign(Object.assign({},vi),{properties:Object.assign(Object.assign({},vi.properties),Sd.properties)}),bP={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},vP={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"]},xP={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},PP={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},_P={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"]},CP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},SP={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"]},ha={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"]},DP={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:ha}},additionalProperties:!1,required:["trackingId"]},Ii={type:"object",properties:{adobe:bP,amplitude:vP,fullstory:xP,heap:PP,rudderstack:_P,segment:CP,gtm:SP,ga:DP}},Fi={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},Ui={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Wi={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},RP={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"}}}},TP={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:RP},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ma,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},jn={type:"object",patternProperties:{".*":TP}},Bi={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"}}},Sr),Dr),Rr),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 wP={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},kP={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},AP={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},kt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:kP},excludes:{type:"array",items:wP},filters:{type:"array",items:AP},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},OP={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},qP={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:OP},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},NP={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:qP,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},EP={type:"object",additionalProperties:NP},Hi={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:EP,catalogs:{type:"object",properties:{all:kt,services:kt,domains:kt,teams:kt,users:kt,apiDescriptions:kt,dataSchemas:kt,apiOperations:kt},additionalProperties:kt}},additionalProperties:!1};var Je={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Di,navbar:Ri,products:Ti,footer:wi,sidebar:ki,scripts:Ai,links:Oi,feedback:Ft,search:qi,aiAssistant:Ni,colorMode:Ei,navigation:ji,codeSnippet:Mi,markdown:Li,openapi:En,graphql:qn,analytics:Ii,userMenu:Fi,versionPicker:Ui,breadcrumbs:Wi,catalog:jn,entitiesCatalog:Hi,catalogClassic:jn,scorecard:Bi},additionalProperties:!0};var ba="https://redocly.com/sso/teams",Mn;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(Mn||(Mn={}));var Ln;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(Ln||(Ln={}));var ya;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(ya||(ya={}));var va=["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 zi(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"?zi(i,t):i)]:[n,zi(r,t)]}).filter(Boolean))}var jP={type:"object",additionalProperties:{type:"string"}},MP={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},$i={type:"string",enum:["error","warn","off"]},LP={type:"object",additionalProperties:!1,properties:{schemaCheck:$i,statusCodeCheck:$i,contentTypeCheck:$i,successCriteriaCheck:$i}},IP={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},FP={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},UP={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Rd={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:[IP,FP]},inputs:jP,servers:MP,severity:LP,slo:UP},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var WP={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},BP={type:"object",properties:{type:{type:"string",const:Mn.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:WP,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},HP={type:"object",properties:{type:{type:"string",const:Mn.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:ba},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},zP={oneOf:[BP,HP],discriminator:{propertyName:"type"}},$P={type:"object",additionalProperties:zP},VP={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},YP={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},GP={type:"object",additionalProperties:YP,default:{}},Pa={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:En,graphql:qn,theme:{type:"object",properties:{openapi:En,graphql:qn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Sr),Dr),Rr),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},KP={type:"object",additionalProperties:!0},QP={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Td={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},wd={type:"object",properties:{title:{type:"string"},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:Td},default:{llmstxt:Td.default},additionalProperties:!1},JP={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},fn={type:"object",additionalProperties:{type:"string"}},Ad={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:fn,cms:fn,reunite:fn,features:{type:"object",properties:{aiSearch:fn},additionalProperties:!1},content:{type:"object",properties:{"**":fn},additionalProperties:fn}},additionalProperties:fn},XP={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},ZP={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},e_={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:[XP,ZP]}},additionalProperties:!1,required:["type","apiBaseUrl"]},t_={type:"object",properties:{type:{type:"string",const:Ln.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},n_={type:"object",properties:{type:{type:"string",const:Ln.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},xa={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:[t_,n_],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},r_=Object.assign(Object.assign({},xa),{properties:Object.assign(Object.assign({},xa.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),i_={type:"object",oneOf:[xa,r_,e_],discriminator:{propertyName:"type"}},o_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:i_}}},kd={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"]},s_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},a_={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:[]}}},Tr={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:GP,seo:wd,rbac:Ad,apiFunctions:JP,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:s_}},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:Pa},extends:{type:"array",items:{type:"string"}}},Sr),Rr),Dr),{ssoDirect:$P,sso:VP,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:o_,removeAttribution:{type:"boolean"},i18n:kd,l10n:kd,metadata:KP,metadataGlobs:QP,ignore:{type:"array",items:{type:"string"}},theme:Je,reunite:Rd,logo:Di,navbar:Ri,products:Ti,footer:wi,sidebar:ki,scripts:Ai,links:Oi,feedback:Ft,search:qi,aiAssistant:Ni,colorMode:Ei,navigation:ji,codeSnippet:Mi,markdown:Li,openapi:En,graphql:qn,analytics:Ii,userMenu:Fi,versionPicker:Ui,breadcrumbs:Wi,catalog:jn,entitiesCatalog:Hi,catalogClassic:jn,scorecard:Bi,mcp:a_}),default:{redirects:{},seo:wd.default},additionalProperties:!0},c_=Object.assign(Object.assign({},zi(Tr,"default")),{additionalProperties:!1}),_a=Object.assign(Object.assign({$id:"root-redocly-config"},Tr),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},Tr.properties),{env:{type:"object",additionalProperties:c_}}),default:{},additionalProperties:!1});var Ca={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:Tr.properties.mockServer,analytics:{type:"object",properties:{ga:ha}}},additionalProperties:!0,default:{}},u_={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},Ca.properties),{apis:{type:"object",additionalProperties:Pa},theme:Ca}),additionalProperties:!1};var l_={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},p_={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},d_={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},f_={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 g_={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},m_={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},h_={type:"object",properties:{type:{type:"string",enum:va},key:{type:"string",minLength:2,maxLength:100}},required:["type","key"],additionalProperties:!1},Ut={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:g_,links:{type:"array",items:m_},relations:{type:"array",items:h_},metadata:{type:"object",additionalProperties:!0}},_R={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"user"},metadata:l_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"api-operation"},metadata:d_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"data-schema"},metadata:f_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"api-description"},metadata:p_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"service"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"domain"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"team"}}),required:["key","title","type"],additionalProperties:!1}]},CR={type:"object",properties:Object.assign({},Ut),required:["key","title","type"],additionalProperties:!1};var Le=Ie(Zt(),1);import{getLineColLocation as T0,lintDocument as w0,makeDocumentFromString as vl,lintConfig as k0,detectSpec as A0,createConfigTypes as O0}from"@redocly/openapi-core";import{bundleDocument as y0,isPlainObject as b0,makeDocumentFromString as v0,getTypes as x0,detectSpec as P0}from"@redocly/openapi-core";var Yh=new Map,ds=new Map;function _0(e){return e?Array.from(e).map(([t,n])=>[t,oa(n)]):[]}async function yl(e,t){let n=await An(),r=new St(n.resolve),i=v0(e.getText(),e.uri),{bundle:o,problems:s,fileDependencies:a,rootType:c,refTypes:l}=await y0({document:i,config:n,externalRefResolver:r,types:x0(P0(i.parsed))}),d=_0(l);l&&(ds=new Map([...ds,...l])),Yh.set(e.uri,{uri:e.uri,name:hr(e.uri),definition:b0(o.parsed)?o.parsed:{},rootType:c,refTypes:d,errors:t})}function C0(){return Array.from(Yh).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:hr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function bl(e){return ds.has(e)?ds.get(e):null}import{createConfig as S0,lintDocument as D0}from"@redocly/openapi-core";async function Gh(e,t,n,r,i){let o=[];for(let s of n?.levels||[]){let a=typeof i=="string"?await R0(i):i,c=await S0({...s,plugins:a},{configPath:r}),l=await D0({document:e,externalRefResolver:t,config:c});o.push(...l.filter(({ignored:d})=>!d).map(d=>({...d,scorecardLevel:s.name})))}return o}async function R0(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 q0=800,N0=5,xl=id(M0,q0);async function E0(e){let t=e.map(({documentPath:i})=>Se(i).toString()),n=await An(),r=await be.getRootWorkspaceFolderURI();for(let{root:i}of Object.values(n.resolvedConfig.apis??{})){let o=await sa(i,r);if(t.includes(o))return o}return t[0]}function j0(e){try{return A0(e),!0}catch{return!1}}async function M0(e){let t=e.uri,n=await An();if(await pn(Pt(t)))try{let r=await da(Pt(t))?vl(e.getText(),t):vl(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new St,o=await k0({config:{document:r},externalRefResolver:i,externalConfigTypes:O0(_a,n)}),s=[{uri:e.uri,diagnostics:[]}];return Kh(o,s),s}catch{return[{uri:e.uri,diagnostics:[]}]}else{let r=gd(t),i=await E0(r||[]);i&&(e=await Qe(i),t=i);let o;try{o=vl(e.getText(),t)}catch{return[{uri:e.uri,diagnostics:[]}]}if(!j0(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new St(n.resolve),c=await be.getRootWorkspaceFolderURI(),l=await sd(n.resolvedConfig.apis??{},e.uri,c),d=Date.now(),h=[],v=[];try{v=(await w0({document:o,config:n.forAlias(l),externalRefResolver:a})).filter(({ignored:m})=>!m);let $=be.remoteScorecardAndPlugins?.scorecard||n.resolvedConfig.scorecard,Y=$&&be.scorecardStatus==="enabled"?await Gh(o,a,$,n.configPath,be.remoteScorecardAndPlugins?.plugins):[];h=[...v,...Y]}catch($){h.push({ruleId:"struct",suggest:[],severity:"error",message:`Error linting document: ${$.message}`,location:[{start:{line:1,col:1},end:{line:1,col:1},source:o.source}]})}let y=U0(v);yl(e,y);let R=Date.now()-d;s=[...new Set([e.uri,...[...a.getFiles()].map($=>Se($).toString())])].map($=>({uri:$,diagnostics:[]})),fd(t,{dependencyPaths:a.getFiles(),durationMS:R}),Kh(h,s)}catch(a){L0(e.uri,a,s)}return s}}function fs(){return be.documents.all().map(xl)}function L0(e,t,n){let r=n||[{uri:e,diagnostics:[]}];if(t.line&&t.col&&t.message){let i=t.source?.absoluteRef?Se(t.source.absoluteRef).toString():e,o=t.line-1,s=t.col-1,a=Le.Position.create(o,s),c=Le.Diagnostic.create(Le.Range.create(a,a),t.message,Le.DiagnosticSeverity.Error);Qh(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function Qh(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 I0(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 Xe.create(0,t);for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return Xe.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function a(y,R,I){return t.call(y)==="[object Number]"&&R<=y&&y<=I}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function l(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=l;function d(y){return t.call(y)==="[object Function]"}e.func=d;function h(y){return y!==null&&typeof y=="object"}e.objectLiteral=h;function v(y,R){return Array.isArray(y)&&y.every(R)}e.typedArray=v})(f||(f={}))});var se=S(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.ProtocolNotificationType=He.ProtocolNotificationType0=He.ProtocolRequestType=He.ProtocolRequestType0=He.RegistrationType=He.MessageDirection=void 0;var Jn=mn(),of;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(of||(He.MessageDirection=of={}));var ju=class{constructor(t){this.method=t}};He.RegistrationType=ju;var Mu=class extends Jn.RequestType0{constructor(t){super(t)}};He.ProtocolRequestType0=Mu;var Lu=class extends Jn.RequestType{constructor(t){super(t,Jn.ParameterStructures.byName)}};He.ProtocolRequestType=Lu;var Iu=class extends Jn.NotificationType0{constructor(t){super(t)}};He.ProtocolNotificationType0=Iu;var Fu=class extends Jn.NotificationType{constructor(t){super(t,Jn.ParameterStructures.byName)}};He.ProtocolNotificationType=Fu});var Po=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 z_(e){return e===!0||e===!1}ve.boolean=z_;function sf(e){return typeof e=="string"||e instanceof String}ve.string=sf;function $_(e){return typeof e=="number"||e instanceof Number}ve.number=$_;function V_(e){return e instanceof Error}ve.error=V_;function Y_(e){return typeof e=="function"}ve.func=Y_;function af(e){return Array.isArray(e)}ve.array=af;function K_(e){return af(e)&&e.every(t=>sf(t))}ve.stringArray=K_;function G_(e,t){return Array.isArray(e)&&e.every(t)}ve.typedArray=G_;function Q_(e){return e!==null&&typeof e=="object"}ve.objectLiteral=Q_});var lf=S(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.ImplementationRequest=void 0;var cf=se(),uf;(function(e){e.method="textDocument/implementation",e.messageDirection=cf.MessageDirection.clientToServer,e.type=new cf.ProtocolRequestType(e.method)})(uf||(_o.ImplementationRequest=uf={}))});var ff=S(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.TypeDefinitionRequest=void 0;var pf=se(),df;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=pf.MessageDirection.clientToServer,e.type=new pf.ProtocolRequestType(e.method)})(df||(Co.TypeDefinitionRequest=df={}))});var hf=S(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.DidChangeWorkspaceFoldersNotification=Xn.WorkspaceFoldersRequest=void 0;var So=se(),gf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=So.MessageDirection.serverToClient,e.type=new So.ProtocolRequestType0(e.method)})(gf||(Xn.WorkspaceFoldersRequest=gf={}));var mf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=So.MessageDirection.clientToServer,e.type=new So.ProtocolNotificationType(e.method)})(mf||(Xn.DidChangeWorkspaceFoldersNotification=mf={}))});var vf=S(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.ConfigurationRequest=void 0;var yf=se(),bf;(function(e){e.method="workspace/configuration",e.messageDirection=yf.MessageDirection.serverToClient,e.type=new yf.ProtocolRequestType(e.method)})(bf||(Do.ConfigurationRequest=bf={}))});var _f=S(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.ColorPresentationRequest=Zn.DocumentColorRequest=void 0;var Ro=se(),xf;(function(e){e.method="textDocument/documentColor",e.messageDirection=Ro.MessageDirection.clientToServer,e.type=new Ro.ProtocolRequestType(e.method)})(xf||(Zn.DocumentColorRequest=xf={}));var Pf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=Ro.MessageDirection.clientToServer,e.type=new Ro.ProtocolRequestType(e.method)})(Pf||(Zn.ColorPresentationRequest=Pf={}))});var Df=S(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.FoldingRangeRefreshRequest=er.FoldingRangeRequest=void 0;var To=se(),Cf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=To.MessageDirection.clientToServer,e.type=new To.ProtocolRequestType(e.method)})(Cf||(er.FoldingRangeRequest=Cf={}));var Sf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=To.MessageDirection.serverToClient,e.type=new To.ProtocolRequestType0(e.method)})(Sf||(er.FoldingRangeRefreshRequest=Sf={}))});var wf=S(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.DeclarationRequest=void 0;var Rf=se(),Tf;(function(e){e.method="textDocument/declaration",e.messageDirection=Rf.MessageDirection.clientToServer,e.type=new Rf.ProtocolRequestType(e.method)})(Tf||(wo.DeclarationRequest=Tf={}))});var Of=S(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.SelectionRangeRequest=void 0;var kf=se(),Af;(function(e){e.method="textDocument/selectionRange",e.messageDirection=kf.MessageDirection.clientToServer,e.type=new kf.ProtocolRequestType(e.method)})(Af||(ko.SelectionRangeRequest=Af={}))});var jf=S($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.WorkDoneProgressCancelNotification=$t.WorkDoneProgressCreateRequest=$t.WorkDoneProgress=void 0;var J_=mn(),Ao=se(),qf;(function(e){e.type=new J_.ProgressType;function t(n){return n===e.type}e.is=t})(qf||($t.WorkDoneProgress=qf={}));var Nf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Ao.MessageDirection.serverToClient,e.type=new Ao.ProtocolRequestType(e.method)})(Nf||($t.WorkDoneProgressCreateRequest=Nf={}));var Ef;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Ao.MessageDirection.clientToServer,e.type=new Ao.ProtocolNotificationType(e.method)})(Ef||($t.WorkDoneProgressCancelNotification=Ef={}))});var Ff=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.CallHierarchyOutgoingCallsRequest=Vt.CallHierarchyIncomingCallsRequest=Vt.CallHierarchyPrepareRequest=void 0;var tr=se(),Mf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Mf||(Vt.CallHierarchyPrepareRequest=Mf={}));var Lf;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Lf||(Vt.CallHierarchyIncomingCallsRequest=Lf={}));var If;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(If||(Vt.CallHierarchyOutgoingCallsRequest=If={}))});var $f=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 Ot=se(),Uf;(function(e){e.Relative="relative"})(Uf||(ze.TokenFormat=Uf={}));var Wr;(function(e){e.method="textDocument/semanticTokens",e.type=new Ot.RegistrationType(e.method)})(Wr||(ze.SemanticTokensRegistrationType=Wr={}));var Wf;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=Ot.MessageDirection.clientToServer,e.type=new Ot.ProtocolRequestType(e.method),e.registrationMethod=Wr.method})(Wf||(ze.SemanticTokensRequest=Wf={}));var Bf;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=Ot.MessageDirection.clientToServer,e.type=new Ot.ProtocolRequestType(e.method),e.registrationMethod=Wr.method})(Bf||(ze.SemanticTokensDeltaRequest=Bf={}));var Hf;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=Ot.MessageDirection.clientToServer,e.type=new Ot.ProtocolRequestType(e.method),e.registrationMethod=Wr.method})(Hf||(ze.SemanticTokensRangeRequest=Hf={}));var zf;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=Ot.MessageDirection.serverToClient,e.type=new Ot.ProtocolRequestType0(e.method)})(zf||(ze.SemanticTokensRefreshRequest=zf={}))});var Kf=S(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.ShowDocumentRequest=void 0;var Vf=se(),Yf;(function(e){e.method="window/showDocument",e.messageDirection=Vf.MessageDirection.serverToClient,e.type=new Vf.ProtocolRequestType(e.method)})(Yf||(Oo.ShowDocumentRequest=Yf={}))});var Jf=S(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.LinkedEditingRangeRequest=void 0;var Gf=se(),Qf;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=Gf.MessageDirection.clientToServer,e.type=new Gf.ProtocolRequestType(e.method)})(Qf||(qo.LinkedEditingRangeRequest=Qf={}))});var og=S(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.WillDeleteFilesRequest=Ee.DidDeleteFilesNotification=Ee.DidRenameFilesNotification=Ee.WillRenameFilesRequest=Ee.DidCreateFilesNotification=Ee.WillCreateFilesRequest=Ee.FileOperationPatternKind=void 0;var Ze=se(),Xf;(function(e){e.file="file",e.folder="folder"})(Xf||(Ee.FileOperationPatternKind=Xf={}));var Zf;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(Zf||(Ee.WillCreateFilesRequest=Zf={}));var eg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(eg||(Ee.DidCreateFilesNotification=eg={}));var tg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(tg||(Ee.WillRenameFilesRequest=tg={}));var ng;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(ng||(Ee.DidRenameFilesNotification=ng={}));var rg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(rg||(Ee.DidDeleteFilesNotification=rg={}));var ig;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(ig||(Ee.WillDeleteFilesRequest=ig={}))});var lg=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.MonikerRequest=Yt.MonikerKind=Yt.UniquenessLevel=void 0;var sg=se(),ag;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(ag||(Yt.UniquenessLevel=ag={}));var cg;(function(e){e.$import="import",e.$export="export",e.local="local"})(cg||(Yt.MonikerKind=cg={}));var ug;(function(e){e.method="textDocument/moniker",e.messageDirection=sg.MessageDirection.clientToServer,e.type=new sg.ProtocolRequestType(e.method)})(ug||(Yt.MonikerRequest=ug={}))});var gg=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.TypeHierarchySubtypesRequest=Kt.TypeHierarchySupertypesRequest=Kt.TypeHierarchyPrepareRequest=void 0;var nr=se(),pg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method)})(pg||(Kt.TypeHierarchyPrepareRequest=pg={}));var dg;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method)})(dg||(Kt.TypeHierarchySupertypesRequest=dg={}));var fg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method)})(fg||(Kt.TypeHierarchySubtypesRequest=fg={}))});var yg=S(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.InlineValueRefreshRequest=rr.InlineValueRequest=void 0;var No=se(),mg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=No.MessageDirection.clientToServer,e.type=new No.ProtocolRequestType(e.method)})(mg||(rr.InlineValueRequest=mg={}));var hg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=No.MessageDirection.serverToClient,e.type=new No.ProtocolRequestType0(e.method)})(hg||(rr.InlineValueRefreshRequest=hg={}))});var Pg=S(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.InlayHintRefreshRequest=Gt.InlayHintResolveRequest=Gt.InlayHintRequest=void 0;var ir=se(),bg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(bg||(Gt.InlayHintRequest=bg={}));var vg;(function(e){e.method="inlayHint/resolve",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(vg||(Gt.InlayHintResolveRequest=vg={}));var xg;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=ir.MessageDirection.serverToClient,e.type=new ir.ProtocolRequestType0(e.method)})(xg||(Gt.InlayHintRefreshRequest=xg={}))});var wg=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DiagnosticRefreshRequest=et.WorkspaceDiagnosticRequest=et.DocumentDiagnosticRequest=et.DocumentDiagnosticReportKind=et.DiagnosticServerCancellationData=void 0;var Tg=mn(),X_=Po(),or=se(),_g;(function(e){function t(n){let r=n;return r&&X_.boolean(r.retriggerRequest)}e.is=t})(_g||(et.DiagnosticServerCancellationData=_g={}));var Cg;(function(e){e.Full="full",e.Unchanged="unchanged"})(Cg||(et.DocumentDiagnosticReportKind=Cg={}));var Sg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method),e.partialResult=new Tg.ProgressType})(Sg||(et.DocumentDiagnosticRequest=Sg={}));var Dg;(function(e){e.method="workspace/diagnostic",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method),e.partialResult=new Tg.ProgressType})(Dg||(et.WorkspaceDiagnosticRequest=Dg={}));var Rg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=or.MessageDirection.serverToClient,e.type=new or.ProtocolRequestType0(e.method)})(Rg||(et.DiagnosticRefreshRequest=Rg={}))});var jg=S(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.DidCloseNotebookDocumentNotification=de.DidSaveNotebookDocumentNotification=de.DidChangeNotebookDocumentNotification=de.NotebookCellArrayChange=de.DidOpenNotebookDocumentNotification=de.NotebookDocumentSyncRegistrationType=de.NotebookDocument=de.NotebookCell=de.ExecutionSummary=de.NotebookCellKind=void 0;var Br=(xo(),ni(vo)),ct=Po(),ht=se(),Uu;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Uu||(de.NotebookCellKind=Uu={}));var Wu;(function(e){function t(i,o){let s={executionOrder:i};return(o===!0||o===!1)&&(s.success=o),s}e.create=t;function n(i){let o=i;return ct.objectLiteral(o)&&Br.uinteger.is(o.executionOrder)&&(o.success===void 0||ct.boolean(o.success))}e.is=n;function r(i,o){return i===o?!0:i==null||o===null||o===void 0?!1:i.executionOrder===o.executionOrder&&i.success===o.success}e.equals=r})(Wu||(de.ExecutionSummary=Wu={}));var Eo;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ct.objectLiteral(s)&&Uu.is(s.kind)&&Br.DocumentUri.is(s.document)&&(s.metadata===void 0||ct.objectLiteral(s.metadata))}e.is=n;function r(o,s){let a=new Set;return o.document!==s.document&&a.add("document"),o.kind!==s.kind&&a.add("kind"),o.executionSummary!==s.executionSummary&&a.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!i(o.metadata,s.metadata)&&a.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!Wu.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}e.diff=r;function i(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let a=Array.isArray(o),c=Array.isArray(s);if(a!==c)return!1;if(a&&c){if(o.length!==s.length)return!1;for(let l=0;l<o.length;l++)if(!i(o[l],s[l]))return!1}if(ct.objectLiteral(o)&&ct.objectLiteral(s)){let l=Object.keys(o),d=Object.keys(s);if(l.length!==d.length||(l.sort(),d.sort(),!i(l,d)))return!1;for(let h=0;h<l.length;h++){let v=l[h];if(!i(o[v],s[v]))return!1}}return!0}})(Eo||(de.NotebookCell=Eo={}));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 ct.objectLiteral(i)&&ct.string(i.uri)&&Br.integer.is(i.version)&&ct.typedArray(i.cells,Eo.is)}e.is=n})(kg||(de.NotebookDocument=kg={}));var sr;(function(e){e.method="notebookDocument/sync",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.RegistrationType(e.method)})(sr||(de.NotebookDocumentSyncRegistrationType=sr={}));var Ag;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(Ag||(de.DidOpenNotebookDocumentNotification=Ag={}));var Og;(function(e){function t(r){let i=r;return ct.objectLiteral(i)&&Br.uinteger.is(i.start)&&Br.uinteger.is(i.deleteCount)&&(i.cells===void 0||ct.typedArray(i.cells,Eo.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})(Og||(de.NotebookCellArrayChange=Og={}));var qg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(qg||(de.DidChangeNotebookDocumentNotification=qg={}));var Ng;(function(e){e.method="notebookDocument/didSave",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(Ng||(de.DidSaveNotebookDocumentNotification=Ng={}));var Eg;(function(e){e.method="notebookDocument/didClose",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(Eg||(de.DidCloseNotebookDocumentNotification=Eg={}))});var Ig=S(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.InlineCompletionRequest=void 0;var Mg=se(),Lg;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=Mg.MessageDirection.clientToServer,e.type=new Mg.ProtocolRequestType(e.method)})(Lg||(jo.InlineCompletionRequest=Lg={}))});var Jm=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(),Fg=(xo(),ni(vo)),Te=Po(),Z_=lf();Object.defineProperty(u,"ImplementationRequest",{enumerable:!0,get:function(){return Z_.ImplementationRequest}});var eC=ff();Object.defineProperty(u,"TypeDefinitionRequest",{enumerable:!0,get:function(){return eC.TypeDefinitionRequest}});var Ym=hf();Object.defineProperty(u,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return Ym.WorkspaceFoldersRequest}});Object.defineProperty(u,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return Ym.DidChangeWorkspaceFoldersNotification}});var tC=vf();Object.defineProperty(u,"ConfigurationRequest",{enumerable:!0,get:function(){return tC.ConfigurationRequest}});var Km=_f();Object.defineProperty(u,"DocumentColorRequest",{enumerable:!0,get:function(){return Km.DocumentColorRequest}});Object.defineProperty(u,"ColorPresentationRequest",{enumerable:!0,get:function(){return Km.ColorPresentationRequest}});var Gm=Df();Object.defineProperty(u,"FoldingRangeRequest",{enumerable:!0,get:function(){return Gm.FoldingRangeRequest}});Object.defineProperty(u,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return Gm.FoldingRangeRefreshRequest}});var nC=wf();Object.defineProperty(u,"DeclarationRequest",{enumerable:!0,get:function(){return nC.DeclarationRequest}});var rC=Of();Object.defineProperty(u,"SelectionRangeRequest",{enumerable:!0,get:function(){return rC.SelectionRangeRequest}});var Vu=jf();Object.defineProperty(u,"WorkDoneProgress",{enumerable:!0,get:function(){return Vu.WorkDoneProgress}});Object.defineProperty(u,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Vu.WorkDoneProgressCreateRequest}});Object.defineProperty(u,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Vu.WorkDoneProgressCancelNotification}});var Yu=Ff();Object.defineProperty(u,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Yu.CallHierarchyIncomingCallsRequest}});Object.defineProperty(u,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Yu.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(u,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Yu.CallHierarchyPrepareRequest}});var ar=$f();Object.defineProperty(u,"TokenFormat",{enumerable:!0,get:function(){return ar.TokenFormat}});Object.defineProperty(u,"SemanticTokensRequest",{enumerable:!0,get:function(){return ar.SemanticTokensRequest}});Object.defineProperty(u,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ar.SemanticTokensDeltaRequest}});Object.defineProperty(u,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ar.SemanticTokensRangeRequest}});Object.defineProperty(u,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ar.SemanticTokensRefreshRequest}});Object.defineProperty(u,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ar.SemanticTokensRegistrationType}});var iC=Kf();Object.defineProperty(u,"ShowDocumentRequest",{enumerable:!0,get:function(){return iC.ShowDocumentRequest}});var oC=Jf();Object.defineProperty(u,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return oC.LinkedEditingRangeRequest}});var bn=og();Object.defineProperty(u,"FileOperationPatternKind",{enumerable:!0,get:function(){return bn.FileOperationPatternKind}});Object.defineProperty(u,"DidCreateFilesNotification",{enumerable:!0,get:function(){return bn.DidCreateFilesNotification}});Object.defineProperty(u,"WillCreateFilesRequest",{enumerable:!0,get:function(){return bn.WillCreateFilesRequest}});Object.defineProperty(u,"DidRenameFilesNotification",{enumerable:!0,get:function(){return bn.DidRenameFilesNotification}});Object.defineProperty(u,"WillRenameFilesRequest",{enumerable:!0,get:function(){return bn.WillRenameFilesRequest}});Object.defineProperty(u,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return bn.DidDeleteFilesNotification}});Object.defineProperty(u,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return bn.WillDeleteFilesRequest}});var Ku=lg();Object.defineProperty(u,"UniquenessLevel",{enumerable:!0,get:function(){return Ku.UniquenessLevel}});Object.defineProperty(u,"MonikerKind",{enumerable:!0,get:function(){return Ku.MonikerKind}});Object.defineProperty(u,"MonikerRequest",{enumerable:!0,get:function(){return Ku.MonikerRequest}});var Gu=gg();Object.defineProperty(u,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Gu.TypeHierarchyPrepareRequest}});Object.defineProperty(u,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Gu.TypeHierarchySubtypesRequest}});Object.defineProperty(u,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Gu.TypeHierarchySupertypesRequest}});var Qm=yg();Object.defineProperty(u,"InlineValueRequest",{enumerable:!0,get:function(){return Qm.InlineValueRequest}});Object.defineProperty(u,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return Qm.InlineValueRefreshRequest}});var Qu=Pg();Object.defineProperty(u,"InlayHintRequest",{enumerable:!0,get:function(){return Qu.InlayHintRequest}});Object.defineProperty(u,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Qu.InlayHintResolveRequest}});Object.defineProperty(u,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Qu.InlayHintRefreshRequest}});var Hr=wg();Object.defineProperty(u,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Hr.DiagnosticServerCancellationData}});Object.defineProperty(u,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Hr.DocumentDiagnosticReportKind}});Object.defineProperty(u,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Hr.DocumentDiagnosticRequest}});Object.defineProperty(u,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Hr.WorkspaceDiagnosticRequest}});Object.defineProperty(u,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Hr.DiagnosticRefreshRequest}});var yt=jg();Object.defineProperty(u,"NotebookCellKind",{enumerable:!0,get:function(){return yt.NotebookCellKind}});Object.defineProperty(u,"ExecutionSummary",{enumerable:!0,get:function(){return yt.ExecutionSummary}});Object.defineProperty(u,"NotebookCell",{enumerable:!0,get:function(){return yt.NotebookCell}});Object.defineProperty(u,"NotebookDocument",{enumerable:!0,get:function(){return yt.NotebookDocument}});Object.defineProperty(u,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return yt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(u,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidOpenNotebookDocumentNotification}});Object.defineProperty(u,"NotebookCellArrayChange",{enumerable:!0,get:function(){return yt.NotebookCellArrayChange}});Object.defineProperty(u,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidChangeNotebookDocumentNotification}});Object.defineProperty(u,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidSaveNotebookDocumentNotification}});Object.defineProperty(u,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidCloseNotebookDocumentNotification}});var sC=Ig();Object.defineProperty(u,"InlineCompletionRequest",{enumerable:!0,get:function(){return sC.InlineCompletionRequest}});var Bu;(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})(Bu||(u.TextDocumentFilter=Bu={}));var Hu;(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})(Hu||(u.NotebookDocumentFilter=Hu={}));var zu;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebook)||Hu.is(r.notebook))&&(r.language===void 0||Te.string(r.language))}e.is=t})(zu||(u.NotebookCellTextDocumentFilter=zu={}));var $u;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Te.string(r)&&!Bu.is(r)&&!zu.is(r))return!1;return!0}e.is=t})($u||(u.DocumentSelector=$u={}));var Ug;(function(e){e.method="client/registerCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(Ug||(u.RegistrationRequest=Ug={}));var Wg;(function(e){e.method="client/unregisterCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(Wg||(u.UnregistrationRequest=Wg={}));var Bg;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(Bg||(u.ResourceOperationKind=Bg={}));var Hg;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(Hg||(u.FailureHandlingKind=Hg={}));var zg;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(zg||(u.PositionEncodingKind=zg={}));var $g;(function(e){function t(n){let r=n;return r&&Te.string(r.id)&&r.id.length>0}e.hasId=t})($g||(u.StaticRegistrationOptions=$g={}));var Vg;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||$u.is(r.documentSelector))}e.is=t})(Vg||(u.TextDocumentRegistrationOptions=Vg={}));var Yg;(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})(Yg||(u.WorkDoneProgressOptions=Yg={}));var Kg;(function(e){e.method="initialize",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Kg||(u.InitializeRequest=Kg={}));var Gg;(function(e){e.unknownProtocolVersion=1})(Gg||(u.InitializeErrorCodes=Gg={}));var Qg;(function(e){e.method="initialized",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Qg||(u.InitializedNotification=Qg={}));var Jg;(function(e){e.method="shutdown",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType0(e.method)})(Jg||(u.ShutdownRequest=Jg={}));var Xg;(function(e){e.method="exit",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType0(e.method)})(Xg||(u.ExitNotification=Xg={}));var Zg;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Zg||(u.DidChangeConfigurationNotification=Zg={}));var em;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(em||(u.MessageType=em={}));var tm;(function(e){e.method="window/showMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(tm||(u.ShowMessageNotification=tm={}));var nm;(function(e){e.method="window/showMessageRequest",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(nm||(u.ShowMessageRequest=nm={}));var rm;(function(e){e.method="window/logMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(rm||(u.LogMessageNotification=rm={}));var im;(function(e){e.method="telemetry/event",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(im||(u.TelemetryEventNotification=im={}));var om;(function(e){e.None=0,e.Full=1,e.Incremental=2})(om||(u.TextDocumentSyncKind=om={}));var sm;(function(e){e.method="textDocument/didOpen",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(sm||(u.DidOpenTextDocumentNotification=sm={}));var am;(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})(am||(u.TextDocumentContentChangeEvent=am={}));var cm;(function(e){e.method="textDocument/didChange",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(cm||(u.DidChangeTextDocumentNotification=cm={}));var um;(function(e){e.method="textDocument/didClose",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(um||(u.DidCloseTextDocumentNotification=um={}));var lm;(function(e){e.method="textDocument/didSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(lm||(u.DidSaveTextDocumentNotification=lm={}));var pm;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(pm||(u.TextDocumentSaveReason=pm={}));var dm;(function(e){e.method="textDocument/willSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(dm||(u.WillSaveTextDocumentNotification=dm={}));var fm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(fm||(u.WillSaveTextDocumentWaitUntilRequest=fm={}));var gm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(gm||(u.DidChangeWatchedFilesNotification=gm={}));var mm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(mm||(u.FileChangeType=mm={}));var hm;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Fg.URI.is(r.baseUri)||Fg.WorkspaceFolder.is(r.baseUri))&&Te.string(r.pattern)}e.is=t})(hm||(u.RelativePattern=hm={}));var ym;(function(e){e.Create=1,e.Change=2,e.Delete=4})(ym||(u.WatchKind=ym={}));var bm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(bm||(u.PublishDiagnosticsNotification=bm={}));var vm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(vm||(u.CompletionTriggerKind=vm={}));var xm;(function(e){e.method="textDocument/completion",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(xm||(u.CompletionRequest=xm={}));var Pm;(function(e){e.method="completionItem/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Pm||(u.CompletionResolveRequest=Pm={}));var _m;(function(e){e.method="textDocument/hover",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(_m||(u.HoverRequest=_m={}));var Cm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Cm||(u.SignatureHelpTriggerKind=Cm={}));var Sm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Sm||(u.SignatureHelpRequest=Sm={}));var Dm;(function(e){e.method="textDocument/definition",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Dm||(u.DefinitionRequest=Dm={}));var Rm;(function(e){e.method="textDocument/references",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Rm||(u.ReferencesRequest=Rm={}));var Tm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Tm||(u.DocumentHighlightRequest=Tm={}));var wm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(wm||(u.DocumentSymbolRequest=wm={}));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 Am;(function(e){e.method="codeAction/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Am||(u.CodeActionResolveRequest=Am={}));var Om;(function(e){e.method="workspace/symbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Om||(u.WorkspaceSymbolRequest=Om={}));var qm;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(qm||(u.WorkspaceSymbolResolveRequest=qm={}));var Nm;(function(e){e.method="textDocument/codeLens",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Nm||(u.CodeLensRequest=Nm={}));var Em;(function(e){e.method="codeLens/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Em||(u.CodeLensResolveRequest=Em={}));var jm;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType0(e.method)})(jm||(u.CodeLensRefreshRequest=jm={}));var Mm;(function(e){e.method="textDocument/documentLink",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Mm||(u.DocumentLinkRequest=Mm={}));var Lm;(function(e){e.method="documentLink/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Lm||(u.DocumentLinkResolveRequest=Lm={}));var Im;(function(e){e.method="textDocument/formatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Im||(u.DocumentFormattingRequest=Im={}));var Fm;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Fm||(u.DocumentRangeFormattingRequest=Fm={}));var Um;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Um||(u.DocumentRangesFormattingRequest=Um={}));var Wm;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Wm||(u.DocumentOnTypeFormattingRequest=Wm={}));var Bm;(function(e){e.Identifier=1})(Bm||(u.PrepareSupportDefaultBehavior=Bm={}));var Hm;(function(e){e.method="textDocument/rename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Hm||(u.RenameRequest=Hm={}));var zm;(function(e){e.method="textDocument/prepareRename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(zm||(u.PrepareRenameRequest=zm={}));var $m;(function(e){e.method="workspace/executeCommand",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})($m||(u.ExecuteCommandRequest=$m={}));var Vm;(function(e){e.method="workspace/applyEdit",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType("workspace/applyEdit")})(Vm||(u.ApplyWorkspaceEditRequest=Vm={}))});var Zm=S(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.createProtocolConnection=void 0;var Xm=mn();function aC(e,t,n,r){return Xm.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Xm.createMessageConnection)(e,t,n,r)}Mo.createProtocolConnection=aC});var th=S($e=>{"use strict";var cC=$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]})),Lo=$e&&$e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&cC(t,e,n)};Object.defineProperty($e,"__esModule",{value:!0});$e.LSPErrorCodes=$e.createProtocolConnection=void 0;Lo(mn(),$e);Lo((xo(),ni(vo)),$e);Lo(se(),$e);Lo(Jm(),$e);var uC=Zm();Object.defineProperty($e,"createProtocolConnection",{enumerable:!0,get:function(){return uC.createProtocolConnection}});var eh;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(eh||($e.LSPErrorCodes=eh={}))});var ye=S(bt=>{"use strict";var lC=bt&&bt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),nh=bt&&bt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&lC(t,e,n)};Object.defineProperty(bt,"__esModule",{value:!0});bt.createProtocolConnection=void 0;var pC=qc();nh(qc(),bt);nh(th(),bt);function dC(e,t,n,r){return(0,pC.createMessageConnection)(e,t,n,r)}bt.createProtocolConnection=dC});var Xu=S(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.SemanticTokensBuilder=Qt.SemanticTokensDiff=Qt.SemanticTokensFeature=void 0;var Io=ye(),fC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(Io.SemanticTokensRefreshRequest.type),on:t=>{let n=Io.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=Io.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=Io.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Qt.SemanticTokensFeature=fC;var Fo=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}]:[]}};Qt.SemanticTokensDiff=Fo;var Ju=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 Fo(this._prevData,this._data).computeDiff()}:this.build()}};Qt.SemanticTokensBuilder=Ju});var rh=S(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.InlineCompletionFeature=void 0;var gC=ye(),mC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(gC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Uo.InlineCompletionFeature=mC});var el=S(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.TextDocuments=void 0;var vn=ye(),Zu=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new vn.Emitter,this._onDidOpen=new vn.Emitter,this._onDidClose=new vn.Emitter,this._onDidSave=new vn.Emitter,this._onWillSave=new vn.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=vn.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}))})),vn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Wo.TextDocuments=Zu});var nl=S(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.NotebookDocuments=cr.NotebookSyncFeature=void 0;var tt=ye(),ih=el(),hC=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)})}}};cr.NotebookSyncFeature=hC;var Bo=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}};Bo.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var tl=class{constructor(t){t instanceof ih.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new ih.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 Bo,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let l=[],d=[],h=[],v=[];if(c.cells!==void 0){let Y=c.cells;if(Y.structure!==void 0){let m=Y.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),Y.structure.didOpen!==void 0)for(let g of Y.structure.didOpen)n.openTextDocument({textDocument:g}),l.push(g.uri);if(Y.structure.didClose)for(let g of Y.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(Y.data!==void 0){let m=new Map(Y.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let w=m.get(o.cells[g].document);if(w!==void 0){let V=o.cells.splice(g,1,w);if(h.push({old:V[0],new:w}),m.delete(w.document),m.size===0)break}}}if(Y.textContent!==void 0)for(let m of Y.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),v.push(m.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let R=[];for(let Y of l)R.push(this.getNotebookCell(Y));let I=[];for(let Y of d)I.push(this.getNotebookCell(Y));let $=[];for(let Y of v)$.push(this.getNotebookCell(Y));(R.length>0||I.length>0||h.length>0||$.length>0)&&(y.cells={added:R,removed:I,changed:{data:h,textContent:$}}),(y.metadata!==void 0||y.cells!==void 0)&&this._onDidChange.fire(y)})),r.push(t.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(t.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),tt.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};cr.NotebookDocuments=tl});var rl=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 yC(e){return e===!0||e===!1}xe.boolean=yC;function oh(e){return typeof e=="string"||e instanceof String}xe.string=oh;function bC(e){return typeof e=="number"||e instanceof Number}xe.number=bC;function vC(e){return e instanceof Error}xe.error=vC;function sh(e){return typeof e=="function"}xe.func=sh;function ah(e){return Array.isArray(e)}xe.array=ah;function xC(e){return ah(e)&&e.every(t=>oh(t))}xe.stringArray=xC;function PC(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=PC;function _C(e){return e&&sh(e.then)}xe.thenable=_C});var il=S(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.generateUuid=nt.parse=nt.isUUID=nt.v4=nt.empty=void 0;var zr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},$r=class e extends zr{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(""))}};$r._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];$r._timeHighBits=["8","9","a","b"];nt.empty=new zr("00000000-0000-0000-0000-000000000000");function ch(){return new $r}nt.v4=ch;var CC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function uh(e){return CC.test(e)}nt.isUUID=uh;function SC(e){if(!uh(e))throw new Error("invalid uuid");return new zr(e)}nt.parse=SC;function DC(){return ch().asHex()}nt.generateUuid=DC});var lh=S(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.attachPartialResult=Xt.ProgressFeature=Xt.attachWorkDone=void 0;var Jt=ye(),RC=il(),xn=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(Jt.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(Jt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Jt.WorkDoneProgress.type,this._token,{kind:"end"})}};xn.Instances=new Map;var Ho=class extends xn{constructor(t,n){super(t,n),this._source=new Jt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Vr=class{constructor(){}begin(){}report(){}done(){}},zo=class extends Vr{constructor(){super(),this._source=new Jt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function TC(e,t){if(t===void 0||t.workDoneToken===void 0)return new Vr;let n=t.workDoneToken;return delete t.workDoneToken,new xn(e,n)}Xt.attachWorkDone=TC;var wC=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Jt.WorkDoneProgressCancelNotification.type,n=>{let r=xn.Instances.get(n.token);(r instanceof Ho||r instanceof zo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Vr:new xn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,RC.generateUuid)();return this.connection.sendRequest(Jt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Ho(this.connection,t))}else return Promise.resolve(new zo)}};Xt.ProgressFeature=wC;var ol;(function(e){e.type=new Jt.ProgressType})(ol||(ol={}));var sl=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(ol.type,this._token,t)}};function kC(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new sl(e,n)}Xt.attachPartialResult=kC});var ph=S($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.ConfigurationFeature=void 0;var AC=ye(),OC=rl(),qC=e=>class extends e{getConfiguration(t){return t?OC.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(AC.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};$o.ConfigurationFeature=qC});var dh=S(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.WorkspaceFoldersFeature=void 0;var Vo=ye(),NC=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Vo.Emitter,this.connection.onNotification(Vo.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(Vo.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(Vo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Yo.WorkspaceFoldersFeature=NC});var fh=S(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.CallHierarchyFeature=void 0;var al=ye(),EC=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(al.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=al.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=al.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Ko.CallHierarchyFeature=EC});var gh=S(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.ShowDocumentFeature=void 0;var jC=ye(),MC=e=>class extends e{showDocument(t){return this.connection.sendRequest(jC.ShowDocumentRequest.type,t)}};Go.ShowDocumentFeature=MC});var mh=S(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.FileOperationsFeature=void 0;var ur=ye(),LC=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(ur.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(ur.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(ur.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(ur.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(ur.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(ur.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};Qo.FileOperationsFeature=LC});var hh=S(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.LinkedEditingRangeFeature=void 0;var IC=ye(),FC=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(IC.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};Jo.LinkedEditingRangeFeature=FC});var yh=S(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.TypeHierarchyFeature=void 0;var cl=ye(),UC=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(cl.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=cl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=cl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Xo.TypeHierarchyFeature=UC});var vh=S(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.InlineValueFeature=void 0;var bh=ye(),WC=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(bh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(bh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Zo.InlineValueFeature=WC});var Ph=S(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.FoldingRangeFeature=void 0;var xh=ye(),BC=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(xh.FoldingRangeRefreshRequest.type),on:t=>{let n=xh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};es.FoldingRangeFeature=BC});var _h=S(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.InlayHintFeature=void 0;var ul=ye(),HC=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(ul.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(ul.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(ul.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};ts.InlayHintFeature=HC});var Ch=S(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.DiagnosticFeature=void 0;var Yr=ye(),zC=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Yr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Yr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Yr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Yr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Yr.WorkspaceDiagnosticRequest.partialResult,n)))}}};ns.DiagnosticFeature=zC});var Sh=S(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.MonikerFeature=void 0;var $C=ye(),VC=e=>class extends e{get moniker(){return{on:t=>{let n=$C.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};rs.MonikerFeature=VC});var Fh=S(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.createConnection=Q.combineFeatures=Q.combineNotebooksFeatures=Q.combineLanguagesFeatures=Q.combineWorkspaceFeatures=Q.combineWindowFeatures=Q.combineClientFeatures=Q.combineTracerFeatures=Q.combineTelemetryFeatures=Q.combineConsoleFeatures=Q._NotebooksImpl=Q._LanguagesImpl=Q.BulkUnregistration=Q.BulkRegistration=Q.ErrorMessageTracker=void 0;var O=ye(),rt=rl(),pl=il(),B=lh(),YC=ph(),KC=dh(),GC=fh(),QC=Xu(),JC=gh(),XC=mh(),ZC=hh(),e0=yh(),t0=vh(),n0=Ph(),r0=_h(),i0=Ch(),o0=nl(),s0=Sh();function ll(e){if(e!==null)return e}var dl=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=dl;var is=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")})}},fl=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(ll)}showWarningMessage(t,...n){let r={type:O.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(ll)}showInformationMessage(t,...n){let r={type:O.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(ll)}},Dh=(0,JC.ShowDocumentFeature)((0,B.ProgressFeature)(fl)),Rh;(function(e){function t(){return new os}e.create=t})(Rh||(Q.BulkRegistration=Rh={}));var os=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=pl.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Th;(function(e){function t(){return new Kr(void 0,[])}e.create=t})(Th||(Q.BulkUnregistration=Th={}));var Kr=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}},ss=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 os?this.registerMany(t):t instanceof Kr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=rt.string(n)?n:n.method,o=pl.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=pl.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 Kr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},gl=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)}},wh=(0,XC.FileOperationsFeature)((0,KC.WorkspaceFoldersFeature)((0,YC.ConfigurationFeature)(gl))),as=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(()=>{})}},cs=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")})}},us=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=us;var kh=(0,n0.FoldingRangeFeature)((0,s0.MonikerFeature)((0,i0.DiagnosticFeature)((0,r0.InlayHintFeature)((0,t0.InlineValueFeature)((0,e0.TypeHierarchyFeature)((0,ZC.LinkedEditingRangeFeature)((0,QC.SemanticTokensFeature)((0,GC.CallHierarchyFeature)(us))))))))),ls=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=ls;var Ah=(0,o0.NotebookSyncFeature)(ls);function Oh(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=Oh;function qh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=qh;function Nh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Nh;function Eh(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Eh;function jh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=jh;function Mh(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=Mh;function Lh(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=Lh;function Ih(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=Ih;function a0(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Oh),tracer:n(e.tracer,t.tracer,Nh),telemetry:n(e.telemetry,t.telemetry,qh),client:n(e.client,t.client,Eh),window:n(e.window,t.window,jh),workspace:n(e.workspace,t.workspace,Mh),languages:n(e.languages,t.languages,Lh),notebooks:n(e.notebooks,t.notebooks,Ih)}}Q.combineFeatures=a0;function c0(e,t,n){let r=n&&n.console?new(n.console(is)):new is,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(as)):new as,s=n&&n.telemetry?new(n.telemetry(cs)):new cs,a=n&&n.client?new(n.client(ss)):new ss,c=n&&n.window?new(n.window(Dh)):new Dh,l=n&&n.workspace?new(n.workspace(wh)):new wh,d=n&&n.languages?new(n.languages(kh)):new kh,h=n&&n.notebooks?new(n.notebooks(Ah)):new Ah,v=[r,o,s,a,c,l,d,h];function y(m){return m instanceof Promise?m:rt.thenable(m)?new Promise((g,w)=>{m.then(V=>g(V),V=>w(V))}):Promise.resolve(m)}let R,I,$,Y={listen:()=>i.listen(),sendRequest:(m,...g)=>i.sendRequest(rt.string(m)?m:m.method,...g),onRequest:(m,g)=>i.onRequest(m,g),sendNotification:(m,g)=>{let w=rt.string(m)?m:m.method;return i.sendNotification(w,g)},onNotification:(m,g)=>i.onNotification(m,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(I=m,{dispose:()=>{I=void 0}}),onInitialized:m=>i.onNotification(O.InitializedNotification.type,m),onShutdown:m=>(R=m,{dispose:()=>{R=void 0}}),onExit:m=>($=m,{dispose:()=>{$=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return c},get workspace(){return l},get languages(){return d},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(O.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(O.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(O.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(O.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(O.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(O.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(O.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(O.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(O.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(O.HoverRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:m=>i.onRequest(O.CompletionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:m=>i.onRequest(O.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(O.SignatureHelpRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:m=>i.onRequest(O.DeclarationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:m=>i.onRequest(O.DefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:m=>i.onRequest(O.TypeDefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:m=>i.onRequest(O.ImplementationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:m=>i.onRequest(O.ReferencesRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:m=>i.onRequest(O.DocumentHighlightRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:m=>i.onRequest(O.DocumentSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:m=>i.onRequest(O.WorkspaceSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:m=>i.onRequest(O.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(O.CodeActionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:m=>i.onRequest(O.CodeActionResolveRequest.type,(g,w)=>m(g,w)),onCodeLens:m=>i.onRequest(O.CodeLensRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:m=>i.onRequest(O.CodeLensResolveRequest.type,(g,w)=>m(g,w)),onDocumentFormatting:m=>i.onRequest(O.DocumentFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:m=>i.onRequest(O.DocumentRangeFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(O.DocumentOnTypeFormattingRequest.type,(g,w)=>m(g,w)),onRenameRequest:m=>i.onRequest(O.RenameRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:m=>i.onRequest(O.PrepareRenameRequest.type,(g,w)=>m(g,w)),onDocumentLinks:m=>i.onRequest(O.DocumentLinkRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:m=>i.onRequest(O.DocumentLinkResolveRequest.type,(g,w)=>m(g,w)),onDocumentColor:m=>i.onRequest(O.DocumentColorRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:m=>i.onRequest(O.ColorPresentationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:m=>i.onRequest(O.FoldingRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:m=>i.onRequest(O.SelectionRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:m=>i.onRequest(O.ExecuteCommandRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let m of v)m.attach(Y);return i.onRequest(O.InitializeRequest.type,m=>{t.initialize(m),rt.string(m.trace)&&(o.trace=O.Trace.fromString(m.trace));for(let g of v)g.initialize(m.capabilities);if(I){let g=I(m,new O.CancellationTokenSource().token,(0,B.attachWorkDone)(i,m),void 0);return y(g).then(w=>{if(w instanceof O.ResponseError)return w;let V=w;V||(V={capabilities:{}});let X=V.capabilities;X||(X={},V.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None:!rt.number(X.textDocumentSync)&&!rt.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None);for(let it of v)it.fillServerCapabilities(X);return V})}else{let g={capabilities:{textDocumentSync:O.TextDocumentSyncKind.None}};for(let w of v)w.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(O.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,R)return R(new O.CancellationTokenSource().token)}),i.onNotification(O.ExitNotification.type,()=>{try{$&&$()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(O.SetTraceNotification.type,m=>{o.trace=O.Trace.fromString(m.value)}),Y}Q.createConnection=c0});var ml=S(je=>{"use strict";var u0=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]})),Wh=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&u0(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});je.ProposedFeatures=je.NotebookDocuments=je.TextDocuments=je.SemanticTokensBuilder=void 0;var l0=Xu();Object.defineProperty(je,"SemanticTokensBuilder",{enumerable:!0,get:function(){return l0.SemanticTokensBuilder}});var p0=rh();Wh(ye(),je);var d0=el();Object.defineProperty(je,"TextDocuments",{enumerable:!0,get:function(){return d0.TextDocuments}});var f0=nl();Object.defineProperty(je,"NotebookDocuments",{enumerable:!0,get:function(){return f0.NotebookDocuments}});Wh(Fh(),je);var Uh;(function(e){e.all={__brand:"features",languages:p0.InlineCompletionFeature}})(Uh||(je.ProposedFeatures=Uh={}))});var Hh=S((aw,Bh)=>{"use strict";Bh.exports=ye()});var hl=S(vt=>{"use strict";var g0=vt&&vt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),$h=vt&&vt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&g0(t,e,n)};Object.defineProperty(vt,"__esModule",{value:!0});vt.createConnection=void 0;var ps=ml();$h(Hh(),vt);$h(ml(),vt);var zh=!1,m0={initialize:e=>{},get shutdownReceived(){return zh},set shutdownReceived(e){zh=e},exit:e=>{}};function h0(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),ps.ConnectionStrategy.is(e)||ps.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=l=>(0,ps.createProtocolConnection)(o,s,l,a);return(0,ps.createConnection)(c,m0,i)}vt.createConnection=h0});var Zt=S((uw,Vh)=>{"use strict";Vh.exports=hl()});var Rl=S((Zw,oy)=>{"use strict";function xt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function iy(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 iS(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 dr={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),xt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=iy(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(xt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=iy(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return xt(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var r=arguments[n];xt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":dr.normalize(t)},relative:function(t,n){if(xt(t),xt(n),t===n||(t=dr.resolve(t),n=dr.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,l=o<c?o:c,d=-1,h=0;h<=l;++h){if(h===l){if(c>l){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>l&&(t.charCodeAt(r+h)===47?d=h:h===0&&(d=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(d=h)}var R="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(R.length===0?R+="..":R+="/..");return R.length>0?R+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(xt(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,o=!0,s=t.length-1;s>=1;--s)if(n=t.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');xt(t);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,c=-1;for(s=t.length-1;s>=0;--s){var l=t.charCodeAt(s);if(l===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(l===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=c))}return r===i?i=c:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){xt(t);for(var n=-1,r=0,i=-1,o=!0,s=0,a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(c===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),c===46?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return iS("/",t)},parse:function(t){xt(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,c=-1,l=!0,d=t.length-1,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!l){a=d+1;break}continue}c===-1&&(l=!1,c=d+1),r===46?s===-1?s=d:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||c===-1||h===0||h===1&&s===c-1&&s===a+1?c!==-1&&(a===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(a,c)):(a===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(a,s),n.base=t.slice(a,c)),n.ext=t.slice(s,c)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};dr.posix=dr;oy.exports=dr});import{createConfig as hd,loadConfig as Cx,DEFAULT_CONFIG as Sx}from"@redocly/openapi-core";var Ol;(()=>{"use strict";var e={975:k=>{function b(P){if(typeof P!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(P))}function E(P,C){for(var D,N="",M=0,q=-1,z=0,K=0;K<=P.length;++K){if(K<P.length)D=P.charCodeAt(K);else{if(D===47)break;D=47}if(D===47){if(!(q===K-1||z===1))if(q!==K-1&&z===2){if(N.length<2||M!==2||N.charCodeAt(N.length-1)!==46||N.charCodeAt(N.length-2)!==46){if(N.length>2){var Ce=N.lastIndexOf("/");if(Ce!==N.length-1){Ce===-1?(N="",M=0):M=(N=N.slice(0,Ce)).length-1-N.lastIndexOf("/"),q=K,z=0;continue}}else if(N.length===2||N.length===1){N="",M=0,q=K,z=0;continue}}C&&(N.length>0?N+="/..":N="..",M=2)}else N.length>0?N+="/"+P.slice(q+1,K):N=P.slice(q+1,K),M=K-q-1;q=K,z=0}else D===46&&z!==-1?++z:z=-1}return N}var j={resolve:function(){for(var P,C="",D=!1,N=arguments.length-1;N>=-1&&!D;N--){var M;N>=0?M=arguments[N]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(C=M+"/"+C,D=M.charCodeAt(0)===47)}return C=E(C,!D),D?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(P){if(b(P),P.length===0)return".";var C=P.charCodeAt(0)===47,D=P.charCodeAt(P.length-1)===47;return(P=E(P,!C)).length!==0||C||(P="."),P.length>0&&D&&(P+="/"),C?"/"+P:P},isAbsolute:function(P){return b(P),P.length>0&&P.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var P,C=0;C<arguments.length;++C){var D=arguments[C];b(D),D.length>0&&(P===void 0?P=D:P+="/"+D)}return P===void 0?".":j.normalize(P)},relative:function(P,C){if(b(P),b(C),P===C||(P=j.resolve(P))===(C=j.resolve(C)))return"";for(var D=1;D<P.length&&P.charCodeAt(D)===47;++D);for(var N=P.length,M=N-D,q=1;q<C.length&&C.charCodeAt(q)===47;++q);for(var z=C.length-q,K=M<z?M:z,Ce=-1,ee=0;ee<=K;++ee){if(ee===K){if(z>K){if(C.charCodeAt(q+ee)===47)return C.slice(q+ee+1);if(ee===0)return C.slice(q+ee)}else M>K&&(P.charCodeAt(D+ee)===47?Ce=ee:ee===0&&(Ce=0));break}var ot=P.charCodeAt(D+ee);if(ot!==C.charCodeAt(q+ee))break;ot===47&&(Ce=ee)}var on="";for(ee=D+Ce+1;ee<=N;++ee)ee!==N&&P.charCodeAt(ee)!==47||(on.length===0?on+="..":on+="/..");return on.length>0?on+C.slice(q+Ce):(q+=Ce,C.charCodeAt(q)===47&&++q,C.slice(q))},_makeLong:function(P){return P},dirname:function(P){if(b(P),P.length===0)return".";for(var C=P.charCodeAt(0),D=C===47,N=-1,M=!0,q=P.length-1;q>=1;--q)if((C=P.charCodeAt(q))===47){if(!M){N=q;break}}else M=!1;return N===-1?D?"/":".":D&&N===1?"//":P.slice(0,N)},basename:function(P,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(P);var D,N=0,M=-1,q=!0;if(C!==void 0&&C.length>0&&C.length<=P.length){if(C.length===P.length&&C===P)return"";var z=C.length-1,K=-1;for(D=P.length-1;D>=0;--D){var Ce=P.charCodeAt(D);if(Ce===47){if(!q){N=D+1;break}}else K===-1&&(q=!1,K=D+1),z>=0&&(Ce===C.charCodeAt(z)?--z==-1&&(M=D):(z=-1,M=K))}return N===M?M=K:M===-1&&(M=P.length),P.slice(N,M)}for(D=P.length-1;D>=0;--D)if(P.charCodeAt(D)===47){if(!q){N=D+1;break}}else M===-1&&(q=!1,M=D+1);return M===-1?"":P.slice(N,M)},extname:function(P){b(P);for(var C=-1,D=0,N=-1,M=!0,q=0,z=P.length-1;z>=0;--z){var K=P.charCodeAt(z);if(K!==47)N===-1&&(M=!1,N=z+1),K===46?C===-1?C=z:q!==1&&(q=1):C!==-1&&(q=-1);else if(!M){D=z+1;break}}return C===-1||N===-1||q===0||q===1&&C===N-1&&C===D+1?"":P.slice(C,N)},format:function(P){if(P===null||typeof P!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof P);return(function(C,D){var N=D.dir||D.root,M=D.base||(D.name||"")+(D.ext||"");return N?N===D.root?N+M:N+"/"+M:M})(0,P)},parse:function(P){b(P);var C={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return C;var D,N=P.charCodeAt(0),M=N===47;M?(C.root="/",D=1):D=0;for(var q=-1,z=0,K=-1,Ce=!0,ee=P.length-1,ot=0;ee>=D;--ee)if((N=P.charCodeAt(ee))!==47)K===-1&&(Ce=!1,K=ee+1),N===46?q===-1?q=ee:ot!==1&&(ot=1):q!==-1&&(ot=-1);else if(!Ce){z=ee+1;break}return q===-1||K===-1||ot===0||ot===1&&q===K-1&&q===z+1?K!==-1&&(C.base=C.name=z===0&&M?P.slice(1,K):P.slice(z,K)):(z===0&&M?(C.name=P.slice(1,q),C.base=P.slice(1,K)):(C.name=P.slice(z,q),C.base=P.slice(z,K)),C.ext=P.slice(q,K)),z>0?C.dir=P.slice(0,z-1):M&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var E=t[k]={exports:{}};return e[k](E,E.exports,n),E.exports}n.d=(k,b)=>{for(var E in b)n.o(b,E)&&!n.o(k,E)&&Object.defineProperty(k,E,{enumerable:!0,get:b[E]})},n.o=(k,b)=>Object.prototype.hasOwnProperty.call(k,b),n.r=k=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>v,Utils:()=>_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,E,j,P,C,D=!1){typeof b=="object"?(this.scheme=b.scheme||l,this.authority=b.authority||l,this.path=b.path||l,this.query=b.query||l,this.fragment=b.fragment||l):(this.scheme=(function(N,M){return N||M?N:"file"})(b,D),this.authority=E||l,this.path=(function(N,M){switch(N){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M})(this.scheme,j||l),this.query=P||l,this.fragment=C||l,c(this,D))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:E,authority:j,path:P,query:C,fragment:D}=b;return E===void 0?E=this.scheme:E===null&&(E=l),j===void 0?j=this.authority:j===null&&(j=l),P===void 0?P=this.path:P===null&&(P=l),C===void 0?C=this.query:C===null&&(C=l),D===void 0?D=this.fragment:D===null&&(D=l),E===this.scheme&&j===this.authority&&P===this.path&&C===this.query&&D===this.fragment?this:new R(E,j,P,C,D)}static parse(b,E=!1){let j=h.exec(b);return j?new R(j[2]||l,X(j[4]||l),X(j[5]||l),X(j[7]||l),X(j[9]||l),E):new R(l,l,l,l,l)}static file(b){let E=l;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let j=b.indexOf(d,2);j===-1?(E=b.substring(2),b=d):(E=b.substring(2,j),b=b.substring(j)||d)}return new R("file",E,b,l,l)}static from(b){let E=new R(b.scheme,b.authority,b.path,b.query,b.fragment);return c(E,!0),E}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let E=new R(b);return E._formatted=b.external,E._fsPath=b._sep===y?b.fsPath:null,E}}return b}}let y=i?1:void 0;class R extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=m(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let I={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function $(k,b,E){let j,P=-1;for(let C=0;C<k.length;C++){let D=k.charCodeAt(C);if(D>=97&&D<=122||D>=65&&D<=90||D>=48&&D<=57||D===45||D===46||D===95||D===126||b&&D===47||E&&D===91||E&&D===93||E&&D===58)P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j!==void 0&&(j+=k.charAt(C));else{j===void 0&&(j=k.substr(0,C));let N=I[D];N!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j+=N):P===-1&&(P=C)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function Y(k){let b;for(let E=0;E<k.length;E++){let j=k.charCodeAt(E);j===35||j===63?(b===void 0&&(b=k.substr(0,E)),b+=I[j]):b!==void 0&&(b+=k[E])}return b!==void 0?b:k}function m(k,b){let E;return E=k.authority&&k.path.length>1&&k.scheme==="file"?`//${k.authority}${k.path}`:k.path.charCodeAt(0)===47&&(k.path.charCodeAt(1)>=65&&k.path.charCodeAt(1)<=90||k.path.charCodeAt(1)>=97&&k.path.charCodeAt(1)<=122)&&k.path.charCodeAt(2)===58?b?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(E=E.replace(/\//g,"\\")),E}function g(k,b){let E=b?Y:$,j="",{scheme:P,authority:C,path:D,query:N,fragment:M}=k;if(P&&(j+=P,j+=":"),(C||P==="file")&&(j+=d,j+=d),C){let q=C.indexOf("@");if(q!==-1){let z=C.substr(0,q);C=C.substr(q+1),q=z.lastIndexOf(":"),q===-1?j+=E(z,!1,!1):(j+=E(z.substr(0,q),!1,!1),j+=":",j+=E(z.substr(q+1),!1,!0)),j+="@"}C=C.toLowerCase(),q=C.lastIndexOf(":"),q===-1?j+=E(C,!1,!0):(j+=E(C.substr(0,q),!1,!0),j+=C.substr(q))}if(D){if(D.length>=3&&D.charCodeAt(0)===47&&D.charCodeAt(2)===58){let q=D.charCodeAt(1);q>=65&&q<=90&&(D=`/${String.fromCharCode(q+32)}:${D.substr(3)}`)}else if(D.length>=2&&D.charCodeAt(1)===58){let q=D.charCodeAt(0);q>=65&&q<=90&&(D=`${String.fromCharCode(q+32)}:${D.substr(2)}`)}j+=E(D,!0,!1)}return N&&(j+="?",j+=E(N,!1,!1)),M&&(j+="#",j+=b?M:$(M,!1,!1)),j}function w(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+w(k.substr(3)):k}}let V=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(V)?k.replace(V,(b=>w(b))):k}var it=n(975);let Nt=it.posix||it,rn="/";var _n;(function(k){k.joinPath=function(b,...E){return b.with({path:Nt.join(b.path,...E)})},k.resolvePath=function(b,...E){let j=b.path,P=!1;j[0]!==rn&&(j=rn+j,P=!0);let C=Nt.resolve(j,...E);return P&&C[0]===rn&&!b.authority&&(C=C.substring(1)),b.with({path:C})},k.dirname=function(b){if(b.path.length===0||b.path===rn)return b;let E=Nt.dirname(b.path);return E.length===1&&E.charCodeAt(0)===46&&(E=""),b.with({path:E})},k.basename=function(b){return Nt.basename(b.path)},k.extname=function(b){return Nt.extname(b.path)}})(_n||(_n={})),Ol=r})();var{URI:jt,Utils:ne}=Ol;import{CONFIG_FILE_NAME as My}from"@redocly/openapi-core";var ks={languageId:"yaml",filePattern:/\.ya?ml$/i},As={languageId:"json",filePattern:/\.json$/i},ws=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[ks,As];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ne.resolvePath(ne.dirname(Se(t)),My);return await this._fs.exists(n)?n.toString():void 0}catch{return}}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}registerRemoteScorecardAndPlugins(t){this._remoteScorecardAndPlugins=t}get remoteScorecardAndPlugins(){return this._remoteScorecardAndPlugins}get fs(){if(!this._fs)throw new Error("FileSystemProvider not registered.");return this._fs}get documents(){if(!this._documentManager)throw new Error("DocumentsProvider not registered.");return this._documentManager}get findConfig(){if(!this._findConfig)throw new Error("ConfigFinder not registered.");return this._findConfig}get getRootWorkspaceFolderURI(){if(!this._getRootWorkspaceFolderURI)throw new Error("RootWorkspaceFolderURIGetter not registered.");return this._getRootWorkspaceFolderURI}setScorecardStatus(t){this._scorecardStatus=t}get scorecardStatus(){return this._scorecardStatus}},be=new ws;function Os(e,t){return ne.resolvePath(Se(e)).toString()===ne.resolvePath(Se(t)).toString()}function Se(e){return jt.parse(e)}function Pt(e){return jt.parse(e).fsPath}function mr(e){let t=["https","http"],{scheme:n}=jt.parse(e);return t.includes(n)}function hr(e){return ne.basename(Se(e))}async function ql(e,t="/"){let n=ne.resolvePath(Se(t));for(;e.path!=="/";)try{(await be.fs.stat(ne.resolvePath(n,e.path))).isDirectory()||(e=ne.dirname(e));break}catch{e=ne.dirname(e)}return e}import{BaseResolver as Px,Source as md,readFileFromUrl as _x}from"@redocly/openapi-core";var gi=Ie(Pr(),1);import{isAbsoluteUrl as bx}from"@redocly/openapi-core";function id(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(l){let d=i.get(l.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(l.uri,setTimeout(()=>a(l),t-h));else if(r.delete(l.uri),i.delete(l.uri),!n){let v=s.get(l.uri),y=e(o.get(l.uri));v&&v.forEach(({resolve:R})=>R(y)),s.delete(l.uri)}}catch(v){let y=s.get(l.uri);y&&y.forEach(({reject:R})=>R(v)),s.delete(l.uri)}}function c(l){let d=r.get(l.uri),h=n&&!d;return i.set(l.uri,Date.now()),o.set(l.uri,l),new Promise((v,y)=>{let R=s.get(l.uri)||[];d||(s.set(l.uri,[...R,{resolve:v,reject:y}]),r.set(l.uri,setTimeout(()=>a(l),t))),h?v(e(o.get(l.uri))):s.set(l.uri,[...R,{resolve:v,reject:y}])})}return c}function oa(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 od(e){return e==="$ref"}async function sa(e,t){let n=jt.parse(t);return ne.joinPath(n,e).toString()}async function sd(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await sa(i,n)===t)return r}function ad(e){return typeof e=="string"}function mi(e){return typeof e=="function"}function cd(e){return e?.kind===gi.Kind.MAP}function aa(e){return e?.kind===gi.Kind.MAPPING}function ca(e){return e?.kind===gi.Kind.SEQ}function _r(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}function ua(e){return bx(e)||e.startsWith("file://")}var hi=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=pd(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=ud(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=ud(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&&ld(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}},yi;(function(e){function t(i,o,s,a){return new hi(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof hi)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=la(o.map(vx),(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})(yi||(yi={}));function la(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);la(r,t),la(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 ud(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);ld(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function ld(e){return e===13||e===10}function pd(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 vx(e){let t=pd(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var dd=new Map;function fd(e,t){return dd.set(e,t)}function gd(e){let t=[];for(let[n,r]of dd.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Qe(e){let t=be.documents.get(e);if(t)return t;let n=await be.fs.readFile(Se(e),"utf-8");return yi.create(e,"yaml",1,n)}function pa(e){return As.filePattern.test(e)}function xx(e){return ks.filePattern.test(e)}var St=class extends Px{resolveExternalRef(t,n){return ua(n)?n:t&&ua(t)?new URL(n,t).href:t?ne.resolvePath(ne.dirname(Se(t)),n).toString():n}async loadExternalRef(t){if(mr(t)){let{body:n,mimeType:r}=await _x(t,{...this.config.http,customFetch:fetch});return new md(t,n,r)}return new md(t,(await Qe(t)).getText())}};var Dt;async function bi(e,t){try{let n=new St,r=e?await be.findConfig(e):void 0;if(r===void 0)return Dt=await hd(Sx),Dt;Dt=await Cx({configPath:r,externalRefResolver:n})}catch(n){t?.createEventHandleLoadConfigError?.(n?.message),Dt=await hd({})}return Dt}async function An(e){return Dt||await bi(e)}async function pn(e){return await da(e)?!0:!!Dt?.resolvedRefMap&&[...Dt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Os(hr(e),n))}async function da(e){let t=await be.findConfig(e);return t?Os(e,t):!1}var yd={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Cr={type:"object",properties:yd,additionalProperties:!1},Dx={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Ft={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({},yd),{like:Cr,dislike:Cr,satisfied:Cr,neutral:Cr,dissatisfied:Cr}),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:Dx},additionalProperties:!1}},additionalProperties:!1};var Rx={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},fa={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},vi={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Ft,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:fa,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:Rx,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1};var On={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Tx={type:"object",properties:{name:{type:"string"},items:On,queries:On,mutations:On,subscriptions:On,types:On,directives:On},required:["name"],additionalProperties:!1},wx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Tx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},qn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},wx.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:fa,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:Ft,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"}},additionalProperties:!1};var kx={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Ax={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"}}},bd={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Ox={type:"object",properties:{beforeInfo:{type:"array",items:bd},end:{type:"array",items:bd}}},dn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},xi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},qx={type:"object",properties:Si(dn.properties,["light","dark"])},Nx={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"}}},Ex={type:"object",properties:{error:xi,info:xi,redirect:xi,success:xi}},jx={type:"object",properties:Nn(dn.properties,["dark"])},Mx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Lx={type:"object",properties:{accent:dn,border:qx,error:dn,http:Nx,primary:dn,responses:Ex,secondary:jx,success:dn,text:Mx,tonalOffset:{type:"number"},warning:dn}},Pi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Ix={type:"object",properties:{small:Pi,medium:Pi,large:Pi,xlarge:Pi}},ft={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Fx={type:"object",properties:Object.assign(Object.assign({},Nn(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Ix})},vd={type:"object",properties:Si(ft.properties,["fontSize","lineHeight"])},Ux={type:"object",properties:{medium:vd,small:vd}},Wx={type:"object",properties:Object.assign(Object.assign({},Nn(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Ux})},Bx={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Hx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},xd={type:"object",properties:{fullWidth:{type:"boolean"}}},zx={type:"object",properties:{buttons:Fx,httpBadges:Wx,layoutControls:Bx,panels:Hx,tryItButton:xd,tryItSendButton:xd}},Ci={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},$x={type:"object",properties:{maxWidth:Ci}},Vx={type:"object",properties:{maxWidth:Ci,middlePanelMaxWidth:Ci}},Yx={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:$x,"three-panel":Vx}},Pd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Kx={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:Pd,defaultDetailsWidth:{type:"string"},examples:Pd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Cd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Gx={type:"object",properties:Si(Cd.properties,["textTransform"])},Qx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Jx={type:"object",properties:Object.assign(Object.assign({},Nn(ft.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:Cd,level1items:Gx,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Qx,textColor:{type:"string"},width:{type:"string"}})},_i={type:"object",properties:Object.assign(Object.assign({},ft.properties),{color:{type:"string"},transform:{type:"string"}})},Xx={type:"object",properties:Object.assign(Object.assign({},ft.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},Zx={type:"object",properties:Nn(ft.properties,["fontSize"])},eP={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:Xx,fieldName:ft},Si(ft.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:_i,heading2:_i,heading3:_i,headings:Zx,lineHeight:{type:"string"},links:eP,optimizeSpeed:{type:"boolean"},rightPanelHeading:_i,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},nP={type:"object",properties:Object.assign({color:{type:"string"}},Nn(ft.properties,["fontWeight"]))},rP={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:nP}},iP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},oP={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},_d={type:"object",properties:{custom:{type:"string"}}},sP={type:"object",properties:{DownloadButton:_d,NextSectionButton:_d}},aP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},cP={type:"object",properties:{borderRadius:{type:"string"}}},uP={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},lP={type:"object",properties:{breakpoints:Ci,codeBlock:rP,colors:Lx,components:zx,layout:Yx,logo:iP,fab:oP,overrides:sP,rightPanel:aP,schema:Kx,shape:cP,sidebar:Jx,spacing:uP,typography:tP,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},pP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:kx}},required:["languages"]},Sd={type:"object",properties:{theme:lP,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:pP,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:Ax,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:Ox,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function Si(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function Nn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var Rt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}};var Sr={rules:Rt,oas2Rules:Rt,oas3_0Rules:Rt,oas3_1Rules:Rt,oas3_2Rules:Rt,async2Rules:Rt,async3Rules:Rt,arazzo1Rules:Rt,overlay1Rules:Rt};var Tt={type:"object",additionalProperties:!0},Dr={preprocessors:Tt,oas2Preprocessors:Tt,oas3_0Preprocessors:Tt,oas3_1Preprocessors:Tt,oas3_2Preprocessors:Tt,async2Preprocessors:Tt,async3Preprocessors:Tt,arazzo1Preprocessors:Tt,overlay1Preprocessors:Tt},wt={type:"object",additionalProperties:!0};var Rr={decorators:wt,oas2Decorators:wt,oas3_0Decorators:wt,oas3_1Decorators:wt,oas3_2Decorators:wt,async2Decorators:wt,async3Decorators:wt,arazzo1Decorators:wt,overlay1Decorators:wt};var Re={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Dd={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},ga={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}}},ma={type:"array",items:Object.assign(Object.assign({},ga),{properties:Object.assign(Object.assign({},ga.properties),{items:{type:"array",items:ga}})})},dP={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},gP={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}},mP={type:"object",properties:Object.assign({facets:gP},Re.properties),additionalProperties:!1},hP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Di={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Ri={type:"object",properties:Object.assign({items:ma},Re.properties),additionalProperties:!1},Ti={type:"object",additionalProperties:dP},wi={type:"object",properties:Object.assign({items:ma,copyrightText:{type:"string"},logo:Re},Re.properties),additionalProperties:!1},ki={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Re.properties),additionalProperties:!1},Ai={type:"object",properties:{head:{type:"array",items:Dd},body:{type:"array",items:Dd}},additionalProperties:!1},Oi={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}},qi={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:fP,filters:mP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:hP}},Re.properties),additionalProperties:!1},Ni={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},Ei={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Re.properties),additionalProperties:!1},yP={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},ji={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:yP},additionalProperties:!1},Mi={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},Li={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:{}},En=Object.assign(Object.assign({},vi),{properties:Object.assign(Object.assign({},vi.properties),Sd.properties)}),bP={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},vP={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"]},xP={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},PP={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},_P={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"]},CP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},SP={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"]},ha={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"]},DP={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:ha}},additionalProperties:!1,required:["trackingId"]},Ii={type:"object",properties:{adobe:bP,amplitude:vP,fullstory:xP,heap:PP,rudderstack:_P,segment:CP,gtm:SP,ga:DP}},Fi={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},Ui={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Wi={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},RP={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"}}}},TP={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:RP},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ma,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},jn={type:"object",patternProperties:{".*":TP}},Bi={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"}}},Sr),Dr),Rr),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 wP={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},kP={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},AP={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},kt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:kP},excludes:{type:"array",items:wP},filters:{type:"array",items:AP},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},OP={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},qP={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:OP},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},NP={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:qP,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},EP={type:"object",additionalProperties:NP},Hi={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:EP,catalogs:{type:"object",properties:{all:kt,services:kt,domains:kt,teams:kt,users:kt,apiDescriptions:kt,dataSchemas:kt,apiOperations:kt},additionalProperties:kt}},additionalProperties:!1};var Je={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Di,navbar:Ri,products:Ti,footer:wi,sidebar:ki,scripts:Ai,links:Oi,feedback:Ft,search:qi,aiAssistant:Ni,colorMode:Ei,navigation:ji,codeSnippet:Mi,markdown:Li,openapi:En,graphql:qn,analytics:Ii,userMenu:Fi,versionPicker:Ui,breadcrumbs:Wi,catalog:jn,entitiesCatalog:Hi,catalogClassic:jn,scorecard:Bi},additionalProperties:!0};var ba="https://redocly.com/sso/teams",Mn;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(Mn||(Mn={}));var Ln;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(Ln||(Ln={}));var ya;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(ya||(ya={}));var va=["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 zi(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"?zi(i,t):i)]:[n,zi(r,t)]}).filter(Boolean))}var jP={type:"object",additionalProperties:{type:"string"}},MP={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},$i={type:"string",enum:["error","warn","off"]},LP={type:"object",additionalProperties:!1,properties:{schemaCheck:$i,statusCodeCheck:$i,contentTypeCheck:$i,successCriteriaCheck:$i}},IP={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},FP={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},UP={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Rd={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:[IP,FP]},inputs:jP,servers:MP,severity:LP,slo:UP},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var WP={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},BP={type:"object",properties:{type:{type:"string",const:Mn.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:WP,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},HP={type:"object",properties:{type:{type:"string",const:Mn.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:ba},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},zP={oneOf:[BP,HP],discriminator:{propertyName:"type"}},$P={type:"object",additionalProperties:zP},VP={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},YP={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},KP={type:"object",additionalProperties:YP,default:{}},Pa={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:En,graphql:qn,theme:{type:"object",properties:{openapi:En,graphql:qn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Sr),Dr),Rr),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},GP={type:"object",additionalProperties:!0},QP={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Td={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},wd={type:"object",properties:{title:{type:"string"},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:Td},default:{llmstxt:Td.default},additionalProperties:!1},JP={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},fn={type:"object",additionalProperties:{type:"string"}},Ad={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:fn,cms:fn,reunite:fn,features:{type:"object",properties:{aiSearch:fn},additionalProperties:!1},content:{type:"object",properties:{"**":fn},additionalProperties:fn}},additionalProperties:fn},XP={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},ZP={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},e_={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:[XP,ZP]}},additionalProperties:!1,required:["type","apiBaseUrl"]},t_={type:"object",properties:{type:{type:"string",const:Ln.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},n_={type:"object",properties:{type:{type:"string",const:Ln.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},xa={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:[t_,n_],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},r_=Object.assign(Object.assign({},xa),{properties:Object.assign(Object.assign({},xa.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),i_={type:"object",oneOf:[xa,r_,e_],discriminator:{propertyName:"type"}},o_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:i_}}},kd={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"]},s_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},a_={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:[]}}},Tr={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:KP,seo:wd,rbac:Ad,apiFunctions:JP,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:s_}},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:Pa},extends:{type:"array",items:{type:"string"}}},Sr),Rr),Dr),{ssoDirect:$P,sso:VP,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:o_,removeAttribution:{type:"boolean"},i18n:kd,l10n:kd,metadata:GP,metadataGlobs:QP,ignore:{type:"array",items:{type:"string"}},theme:Je,reunite:Rd,logo:Di,navbar:Ri,products:Ti,footer:wi,sidebar:ki,scripts:Ai,links:Oi,feedback:Ft,search:qi,aiAssistant:Ni,colorMode:Ei,navigation:ji,codeSnippet:Mi,markdown:Li,openapi:En,graphql:qn,analytics:Ii,userMenu:Fi,versionPicker:Ui,breadcrumbs:Wi,catalog:jn,entitiesCatalog:Hi,catalogClassic:jn,scorecard:Bi,mcp:a_}),default:{redirects:{},seo:wd.default},additionalProperties:!0},c_=Object.assign(Object.assign({},zi(Tr,"default")),{additionalProperties:!1}),_a=Object.assign(Object.assign({$id:"root-redocly-config"},Tr),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},Tr.properties),{env:{type:"object",additionalProperties:c_}}),default:{},additionalProperties:!1});var Ca={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:Tr.properties.mockServer,analytics:{type:"object",properties:{ga:ha}}},additionalProperties:!0,default:{}},u_={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},Ca.properties),{apis:{type:"object",additionalProperties:Pa},theme:Ca}),additionalProperties:!1};var l_={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},p_={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},d_={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},f_={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 g_={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},m_={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},h_={type:"object",properties:{type:{type:"string",enum:va},key:{type:"string",minLength:2,maxLength:100}},required:["type","key"],additionalProperties:!1},Ut={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:g_,links:{type:"array",items:m_},relations:{type:"array",items:h_},metadata:{type:"object",additionalProperties:!0}},PR={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"user"},metadata:l_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"api-operation"},metadata:d_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"data-schema"},metadata:f_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"api-description"},metadata:p_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"service"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"domain"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"team"}}),required:["key","title","type"],additionalProperties:!1}]},_R={type:"object",properties:Object.assign({},Ut),required:["key","title","type"],additionalProperties:!1};var Le=Ie(Zt(),1);import{getLineColLocation as T0,lintDocument as w0,makeDocumentFromString as vl,lintConfig as k0,detectSpec as A0,createConfigTypes as O0}from"@redocly/openapi-core";import{bundleDocument as y0,isPlainObject as b0,makeDocumentFromString as v0,getTypes as x0,detectSpec as P0}from"@redocly/openapi-core";var Yh=new Map,ds=new Map;function _0(e){return e?Array.from(e).map(([t,n])=>[t,oa(n)]):[]}async function yl(e,t){let n=await An(),r=new St(n.resolve),i=v0(e.getText(),e.uri),{bundle:o,problems:s,fileDependencies:a,rootType:c,refTypes:l}=await y0({document:i,config:n,externalRefResolver:r,types:x0(P0(i.parsed))}),d=_0(l);l&&(ds=new Map([...ds,...l])),Yh.set(e.uri,{uri:e.uri,name:hr(e.uri),definition:b0(o.parsed)?o.parsed:{},rootType:c,refTypes:d,errors:t})}function C0(){return Array.from(Yh).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:hr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function bl(e){return ds.has(e)?ds.get(e):null}import{createConfig as S0,lintDocument as D0}from"@redocly/openapi-core";async function Kh(e,t,n,r,i){let o=[];for(let s of n?.levels||[]){let a=typeof i=="string"?await R0(i):i,c=await S0({...s,plugins:a},{configPath:r}),l=await D0({document:e,externalRefResolver:t,config:c});o.push(...l.filter(({ignored:d})=>!d).map(d=>({...d,scorecardLevel:s.name})))}return o}async function R0(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 q0=800,xl=id(j0,q0);async function N0(e){let t=e.map(({documentPath:i})=>Se(i).toString()),n=await An(),r=await be.getRootWorkspaceFolderURI();for(let{root:i}of Object.values(n.resolvedConfig.apis??{})){let o=await sa(i,r);if(t.includes(o))return o}return t[0]}function E0(e){try{return A0(e),!0}catch{return!1}}async function j0(e){let t=e.uri,n=await An();if(await pn(Pt(t)))try{let r=await da(Pt(t))?vl(e.getText(),t):vl(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new St,o=await k0({config:{document:r},externalRefResolver:i,externalConfigTypes:O0(_a,n)}),s=[{uri:e.uri,diagnostics:[]}];return Gh(o,s),s}catch{return[{uri:e.uri,diagnostics:[]}]}else{let r=gd(t),i=await N0(r||[]);i&&(e=await Qe(i),t=i);let o;try{o=vl(e.getText(),t)}catch{return[{uri:e.uri,diagnostics:[]}]}if(!E0(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new St(n.resolve),c=await be.getRootWorkspaceFolderURI(),l=await sd(n.resolvedConfig.apis??{},e.uri,c),d=Date.now(),h=[],v=[];try{v=(await w0({document:o,config:n.forAlias(l),externalRefResolver:a})).filter(({ignored:m})=>!m);let $=be.remoteScorecardAndPlugins?.scorecard||n.resolvedConfig.scorecard,Y=$&&be.scorecardStatus==="enabled"?await Kh(o,a,$,n.configPath,be.remoteScorecardAndPlugins?.plugins):[];h=[...v,...Y]}catch($){h.push({ruleId:"struct",suggest:[],severity:"error",message:`Error linting document: ${$.message}`,location:[{start:{line:1,col:1},end:{line:1,col:1},source:o.source}]})}let y=F0(v);yl(e,y);let R=Date.now()-d;s=[...new Set([e.uri,...[...a.getFiles()].map($=>Se($).toString())])].map($=>({uri:$,diagnostics:[]})),fd(t,{dependencyPaths:a.getFiles(),durationMS:R}),Gh(h,s)}catch(a){M0(e.uri,a,s)}return s}}function fs(){return be.documents.all().map(xl)}function M0(e,t,n){let r=n||[{uri:e,diagnostics:[]}];if(t.line&&t.col&&t.message){let i=t.source?.absoluteRef?Se(t.source.absoluteRef).toString():e,o=t.line-1,s=t.col-1,a=Le.Position.create(o,s),c=Le.Diagnostic.create(Le.Range.create(a,a),t.message,Le.DiagnosticSeverity.Error);Qh(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function Qh(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 L0(e){return e.suggest.length===0?"":e.suggest.length===1?`
71
71
  Did you mean: ${e.suggest[0]} ?`:`
72
72
  Did you mean:
73
- - ${e.suggest.slice(0,N0).join(`
74
- - `)}`}function F0(e){return e.scorecardLevel?`
75
- Scorecard level: ${e.scorecardLevel}`:""}function Kh(e,t){e.forEach(n=>{let r;switch(n.severity){case"error":r=Le.DiagnosticSeverity.Error;break;case"warn":r=Le.DiagnosticSeverity.Warning;break;default:r=Le.DiagnosticSeverity.Warning}let i=T0(n.location[0]),o=Se(i.source.absoluteRef).toString(),s=Le.Position.create(i.start.line-1,i.start.col-1),a=i.end?Le.Position.create(i.end.line-1,i.end.col-1):s,c=n.message+` Rule: ${n.ruleId}.`+I0(n)+F0(n),l=Le.Diagnostic.create(Le.Range.create(s,a),c,r,void 0,"Redocly OpenAPI");Qh(o,l,t)})}function U0(e){return e.filter(({severity:t})=>t==="error").map(t=>({...t,location:t.location.map(n=>({...n,source:{...n.source,_ast:null}}))}))}var Cs=Ie(Zt(),1);var fe=Ie(Zt(),1);function _e(e,t){return e?t?gs[e+"_"+t]||t:gs[e]||gs.Default:gs.Default}var W0=["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"],gs=W0.reduce((e,t,n)=>(e[t]=String.fromCharCode(n),e),{});var en="newItem",Kr="propertyName",lr="newLine";function ms(e){return!!(e?.name&&Jh[e.name])}function Pl(e){return Jh[e]||[]}var Jh={[lr]:[{label:"newLine",kind:fe.CompletionItemKind.Constructor,data:{},sortText:_e(lr)}],[Kr]:[{label:Kr,kind:fe.CompletionItemKind.Constructor,data:{properties:{}},sortText:_e(Kr)}],ServerVariable_Map:[{label:"newVariableName",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("ServerVariable_Map")}],ResponsesMap:[{label:"200",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"201",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"204",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"301",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"303",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"400",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"401",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"403",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"404",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"500",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"503",kind:fe.CompletionItemKind.Property,data:{properties:{}}}],PathMap:[{label:"/newPath",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("PathMap")}],MediaTypeMap:[{label:"mime/type",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"application/json",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"application/octet-stream",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"multipart/form-data",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"application/x-www-form-urlencoded",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"application/xml",kind:fe.CompletionItemKind.Property,data:[],sortText:_e("MediaTypeMap")}]};var tn=Ie(Pr(),1);import{Oas2Types as B0,Oas3Types as H0,Oas3_1Types as Xh,AsyncApi2Types as z0,AsyncApi3Types as $0,Arazzo1Types as V0,ConfigTypes as Y0,normalizeTypes as Zh,getMajorSpecVersion as G0}from"@redocly/openapi-core";var _l=new Map;async function K0(e,t){let n=await Qe(e),r=n.getText(),i=tn.safeLoad(r,{filename:e}),{nodePath:o}=hs({node:i,nodePath:[]},t,n,!0),s=await Cl(i,e),{version:a}=Sl(i),{currentType:c,parentType:l,endPath:d}=ys(s,o),h=Qr(i),v=c?.name?c:l;return{nodePath:o,endPath:d,type:v,existingValues:h,types:s,descriptionVersion:a}}function ey(e,t){if(!e)return null;let n=e,r=!0;return t.forEach(i=>{if(r=!1,ca(n)&&n.items&&n.items[i])n=n.items[i],r=!0;else if(cd(n)){let o=bs(n);for(let s of o)if(aa(s)&&s.key?.value===i){n=s?.value,r=!0;break}}}),r?n:(console.warn("Cannot find node by path",t),null)}function Q0(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 hs(e,t,n,r=!1){let{node:i,nodePath:o=[]}=e,s=n.offsetAt(t),a=bs(i);if(a.length===0||J0(i)||!r&&X0(i,n,t))return e;let c=Z0(a,s);return hs({nodePath:eS(o,i,a[c],c),node:a[c]},t,n,r)}function J0(e){return e?.kind===tn.Kind.MAPPING&&!e?.value}function X0(e,t,n){let r=t.getText({start:t.positionAt(t._lineOffsets[n.line]),end:n}),i=tS(e,t),o=r?.match(/^\s+/)?.[0]?.length||0;return(/^\s*[\w\-\$\/\{\}]+$/.test(r)?o:n.character)===i}function Z0(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 eS(e,t,n,r){return ca(t)?[...e,r]:aa(n)&&n?.key?.value&&typeof n.key.value=="string"?[...e,n.key.value]:e}function tS(e,t){let n=e?.startPosition??0,r=Q0(n,t._lineOffsets);if(r>=0){let i=t._lineOffsets[r];return n-i}return 0}function ys(e,t){let n=e,r,i=new Array(t.length).fill(null);t.forEach((s,a)=>{let c;if(e?.name&&e?.name!==n?.name&&(n=e,r=s),e&&e?.properties&&!Object.keys(e?.properties).length&&e?.items?.properties)c=e.items;else if(e?.properties&&e.properties[s])c=e.properties[s],mi(c)&&(c=c(null,s));else if(e?.additionalProperties&&!mi(e?.additionalProperties))c=e.additionalProperties;else if(mi(e?.additionalProperties)&&s){let l=e.additionalProperties(null,s);l&&(c=l)}c&&(e=c,i[a]=c)}),e?.name&&n?.name&&e?.name!==n?.name&&(r=null);let o=i.every(s=>!!s);return{currentType:o||t[0]==="openapi"||t.length===0?e:null,parentType:o?n:null,endPath:r}}async function Cl(e,t){if(await pn(t)||await pn(Pt(t)))return Zh(Y0).ConfigRoot;let{types:n,isDefault:r}=rS(e);if(!e)return n;let i=r?bl(t):n;return r&&!bl(t)&&e?null:i||n}function nS(e){if(_l.has(e))return _l.get(e);let t=Zh(iS(e)).Root;return _l.set(e,t),t}function ty(e){let t,n=!1;if(e?.kind===tn.Kind.MAP)for(let r of e.mappings){let i=r.key?.value,o=String(r?.value?.value);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_1",n=!0),{version:t,isDefault:n}}function Sl(e){let{version:t,isDefault:n}=ty(e);return{version:G0(t),isDefault:n}}function rS(e){let{version:t,isDefault:n}=ty(e);return{types:nS(t),isDefault:n}}function bs(e){switch(e?.kind){case tn.Kind.MAPPING:return[e.key,e.value];case tn.Kind.MAP:return e.mappings;case tn.Kind.SEQ:return e?.items;default:return[]}}function iS(e){switch(e){case"oas3_1":return Xh;case"oas3_0":return H0;case"oas2":return B0;case"async2":return z0;case"async3":return $0;case"arazzo1":return V0;default:return Xh}}function Qr(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:ad(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},Qr(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},Qr(o?.value||o,t[o?.key?.value||i],n+1)),i++}return t}import{mapTypeToComponent as ny}from"@redocly/openapi-core";var Dl={Schema:[{name:"$ref",value:{type:"string",name:"Schema"}}],PathItem:[{name:"$ref",value:{type:"string",name:"PathItem"}}],Parameter:[{name:"$ref",value:{type:"string",name:"Parameter"}}],Response:[{name:"$ref",value:{type:"string",name:"Response"}}],Example:[{name:"$ref",value:{type:"string",name:"Example"}}],RequestBody:[{name:"$ref",value:{type:"string",name:"RequestBody"}}],Header:[{name:"$ref",value:{type:"string",name:"Header"}}],SecuritySchema:[{name:"$ref",value:{type:"string",name:"SecuritySchema"}}],Link:[{name:"$ref",value:{type:"string",name:"Link"}}],Callback:[{name:"$ref",value:{type:"string",name:"Callback"}}]};function ry(e){let t=Dl[e.name];return t&&t.forEach(n=>{e.properties[n.name]=n.value}),e}var vs=Ie(Zt(),1),ut=class{constructor({kind:t,label:n,value:r,textEdit:i,filterText:o,sortText:s,data:a}){this.kind=t||vs.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 vs.TextEdit.replace({start:{line:n.line,character:i},end:{line:n.line,character:s}},this.insertText)}};var pr=Ie(Zt(),1),Pn=class{constructor({kind:t,label:n,insertText:r,insertTextFormat:i,filterText:o,sortText:s,data:a}){this.insertTextFormat=i||n.includes("$")?pr.InsertTextFormat.PlainText:pr.InsertTextFormat.Snippet,this.kind=t||pr.CompletionItemKind.Property,this.label=n,this.data=a||{},this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.command=this.kind===pr.CompletionItemKind.Property?{title:"Suggested values",command:"editor.action.triggerSuggest"}:void 0}};var Jr={example:"example",default:"default",enum:"enum",ref:"$ref"},xs=[Jr.default,Jr.example];var ay=Ie(Pr(),1);var we={};Rs(we,{default:()=>sy.default});Ts(we,Ie(Rl()));var sy=Ie(Rl());function sS(e,t){let n=t.slice(0,t.length-1),{currentType:r}=ys(e,n);if(r?.name){let[i]=Dl[r.name]||[];return i?.value}return null}function aS(e,t){let n=t[t.length-1];if(od(n))return sS(e,t);let{currentType:r}=ys(e,t);return r?ms(r)?r:r?.name&&(r?.name.includes("Map")||r?.name.includes("Named"))?{name:Kr,properties:{}}:r:null}async function cy(e,t){let n=await Qe(e),r=n.getText(),i=(0,ay.safeLoad)(r,{filename:e}),{node:o,nodePath:s}=hs({node:i,nodePath:[]},t,n),a=await Cl(i,e),c=aS(a,s),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 uy(e,t){let n=ne.resolvePath(Se(e)),r=ne.dirname(n),i=await ql(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 ly=Ie(Zt(),1);var Ps=class extends ut{constructor(t){super(t),this.kind=ly.CompletionItemKind.Folder,this.command={title:"Complete path",command:"editor.action.triggerSuggest",arguments:[]}}};var py=Ie(Zt(),1);var _s=class extends ut{constructor(t){super(t),this.kind=py.CompletionItemKind.File}};var uS=be.supportedLanguages.concat({languageId:"markdown",filePattern:/\.md$/});function lS(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:_e("FolderCompletion"),value:`${s}${a}`}}async function pS(e,t,n){let r=[],{refDirAbsolutePath:i,docAbsolutePath:o}=n;for(let s of e)try{let a=ne.resolvePath(i,s),c=await be.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 dy(e,t){let{docAbsoluteDirPath:n,isAbsolutePath:r,refDirAbsolutePath:i,root:o,refPath:s}=t,a=[];return i.path!==o&&a.push(lS(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:`${_e("FileCompletion")}${c}`,matchBy:`${v}${c}`};let R=`${c}/`;return{type:l,name:R,value:`${y}${h?"/":""}`,sortBy:`${_e("FolderCompletion")}${c}`,matchBy:`${v}${c}`}}))}function fy(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:_r(c,n),sortText:l,value:a,data:{lineOffset:r,position:i,node:n}};return d===1?new Ps(h):new _s(h)})}async function gy(e,t){let{node:n}=t,r=n.value??"",i=await uy(e,r),{refDirAbsolutePath:o}=i,s=[];try{s=await be.fs.readDir(o)}catch{return fy(dy([],i),t)}let a=await pS(s,{supportedFiles:uS},i);return fy(dy(a,i),t)}import{isEmptyObject as dS}from"@redocly/openapi-core";function my(e,t){if(t?.items)return"- "+my(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 fS(e,t,n,r){if(e===en)return"";if(r?.items||r?.required){let i=`
73
+ - ${e.suggest.join(`
74
+ - `)}`}function I0(e){return e.scorecardLevel?`
75
+ Scorecard level: ${e.scorecardLevel}`:""}function Gh(e,t){e.forEach(n=>{let r;switch(n.severity){case"error":r=Le.DiagnosticSeverity.Error;break;case"warn":r=Le.DiagnosticSeverity.Warning;break;default:r=Le.DiagnosticSeverity.Warning}let i=T0(n.location[0]),o=Se(i.source.absoluteRef).toString(),s=Le.Position.create(i.start.line-1,i.start.col-1),a=i.end?Le.Position.create(i.end.line-1,i.end.col-1):s,c=n.message+` Rule: ${n.ruleId}.`+L0(n)+I0(n),l=Le.Diagnostic.create(Le.Range.create(s,a),c,r,void 0,"Redocly OpenAPI");Qh(o,l,t)})}function F0(e){return e.filter(({severity:t})=>t==="error").map(t=>({...t,location:t.location.map(n=>({...n,source:{...n.source,_ast:null}}))}))}var Cs=Ie(Zt(),1);var fe=Ie(Zt(),1);function _e(e,t){return e?t?gs[e+"_"+t]||t:gs[e]||gs.Default:gs.Default}var U0=["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"],gs=U0.reduce((e,t,n)=>(e[t]=String.fromCharCode(n),e),{});var en="newItem",Gr="propertyName",lr="newLine";function ms(e){return!!(e?.name&&Jh[e.name])}function Pl(e){return Jh[e]||[]}var Jh={[lr]:[{label:"newLine",kind:fe.CompletionItemKind.Constructor,data:{},sortText:_e(lr)}],[Gr]:[{label:Gr,kind:fe.CompletionItemKind.Constructor,data:{properties:{}},sortText:_e(Gr)}],ServerVariable_Map:[{label:"newVariableName",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("ServerVariable_Map")}],ResponsesMap:[{label:"200",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"201",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"204",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"301",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"303",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"400",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"401",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"403",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"404",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"500",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"503",kind:fe.CompletionItemKind.Property,data:{properties:{}}}],PathMap:[{label:"/newPath",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("PathMap")}],MediaTypeMap:[{label:"mime/type",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"application/json",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"application/octet-stream",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"multipart/form-data",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"application/x-www-form-urlencoded",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"application/xml",kind:fe.CompletionItemKind.Property,data:[],sortText:_e("MediaTypeMap")}]};var tn=Ie(Pr(),1);import{Oas2Types as W0,Oas3Types as B0,Oas3_1Types as Xh,AsyncApi2Types as H0,AsyncApi3Types as z0,Arazzo1Types as $0,ConfigTypes as V0,normalizeTypes as Zh,getMajorSpecVersion as Y0}from"@redocly/openapi-core";var _l=new Map;async function K0(e,t){let n=await Qe(e),r=n.getText(),i=tn.safeLoad(r,{filename:e}),{nodePath:o}=hs({node:i,nodePath:[]},t,n,!0),s=await Cl(i,e),{version:a}=Sl(i),{currentType:c,parentType:l,endPath:d}=ys(s,o),h=Qr(i),v=c?.name?c:l;return{nodePath:o,endPath:d,type:v,existingValues:h,types:s,descriptionVersion:a}}function ey(e,t){if(!e)return null;let n=e,r=!0;return t.forEach(i=>{if(r=!1,ca(n)&&n.items&&n.items[i])n=n.items[i],r=!0;else if(cd(n)){let o=bs(n);for(let s of o)if(aa(s)&&s.key?.value===i){n=s?.value,r=!0;break}}}),r?n:(console.warn("Cannot find node by path",t),null)}function G0(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 hs(e,t,n,r=!1){let{node:i,nodePath:o=[]}=e,s=n.offsetAt(t),a=bs(i);if(a.length===0||Q0(i)||!r&&J0(i,n,t))return e;let c=X0(a,s);return hs({nodePath:Z0(o,i,a[c],c),node:a[c]},t,n,r)}function Q0(e){return e?.kind===tn.Kind.MAPPING&&!e?.value}function J0(e,t,n){let r=t.getText({start:t.positionAt(t._lineOffsets[n.line]),end:n}),i=eS(e,t),o=r?.match(/^\s+/)?.[0]?.length||0;return(/^\s*[\w\-\$\/\{\}]+$/.test(r)?o:n.character)===i}function X0(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 Z0(e,t,n,r){return ca(t)?[...e,r]:aa(n)&&n?.key?.value&&typeof n.key.value=="string"?[...e,n.key.value]:e}function eS(e,t){let n=e?.startPosition??0,r=G0(n,t._lineOffsets);if(r>=0){let i=t._lineOffsets[r];return n-i}return 0}function ys(e,t){let n=e,r,i=new Array(t.length).fill(null);t.forEach((s,a)=>{let c;if(e?.name&&e?.name!==n?.name&&(n=e,r=s),e&&e?.properties&&!Object.keys(e?.properties).length&&e?.items?.properties)c=e.items;else if(e?.properties&&e.properties[s])c=e.properties[s],mi(c)&&(c=c(null,s));else if(e?.additionalProperties&&!mi(e?.additionalProperties))c=e.additionalProperties;else if(mi(e?.additionalProperties)&&s){let l=e.additionalProperties(null,s);l&&(c=l)}c&&(e=c,i[a]=c)}),e?.name&&n?.name&&e?.name!==n?.name&&(r=null);let o=i.every(s=>!!s);return{currentType:o||t[0]==="openapi"||t.length===0?e:null,parentType:o?n:null,endPath:r}}async function Cl(e,t){if(await pn(t)||await pn(Pt(t)))return Zh(V0).ConfigRoot;let{types:n,isDefault:r}=nS(e);if(!e)return n;let i=r?bl(t):n;return r&&!bl(t)&&e?null:i||n}function tS(e){if(_l.has(e))return _l.get(e);let t=Zh(rS(e)).Root;return _l.set(e,t),t}function ty(e){let t,n=!1;if(e?.kind===tn.Kind.MAP)for(let r of e.mappings){let i=r.key?.value,o=String(r?.value?.value);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_1",n=!0),{version:t,isDefault:n}}function Sl(e){let{version:t,isDefault:n}=ty(e);return{version:Y0(t),isDefault:n}}function nS(e){let{version:t,isDefault:n}=ty(e);return{types:tS(t),isDefault:n}}function bs(e){switch(e?.kind){case tn.Kind.MAPPING:return[e.key,e.value];case tn.Kind.MAP:return e.mappings;case tn.Kind.SEQ:return e?.items;default:return[]}}function rS(e){switch(e){case"oas3_1":return Xh;case"oas3_0":return B0;case"oas2":return W0;case"async2":return H0;case"async3":return z0;case"arazzo1":return $0;default:return Xh}}function Qr(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:ad(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},Qr(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},Qr(o?.value||o,t[o?.key?.value||i],n+1)),i++}return t}import{mapTypeToComponent as ny}from"@redocly/openapi-core";var Dl={Schema:[{name:"$ref",value:{type:"string",name:"Schema"}}],PathItem:[{name:"$ref",value:{type:"string",name:"PathItem"}}],Parameter:[{name:"$ref",value:{type:"string",name:"Parameter"}}],Response:[{name:"$ref",value:{type:"string",name:"Response"}}],Example:[{name:"$ref",value:{type:"string",name:"Example"}}],RequestBody:[{name:"$ref",value:{type:"string",name:"RequestBody"}}],Header:[{name:"$ref",value:{type:"string",name:"Header"}}],SecuritySchema:[{name:"$ref",value:{type:"string",name:"SecuritySchema"}}],Link:[{name:"$ref",value:{type:"string",name:"Link"}}],Callback:[{name:"$ref",value:{type:"string",name:"Callback"}}]};function ry(e){let t=Dl[e.name];return t&&t.forEach(n=>{e.properties[n.name]=n.value}),e}var vs=Ie(Zt(),1),ut=class{constructor({kind:t,label:n,value:r,textEdit:i,filterText:o,sortText:s,data:a}){this.kind=t||vs.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 vs.TextEdit.replace({start:{line:n.line,character:i},end:{line:n.line,character:s}},this.insertText)}};var pr=Ie(Zt(),1),Pn=class{constructor({kind:t,label:n,insertText:r,insertTextFormat:i,filterText:o,sortText:s,data:a}){this.insertTextFormat=i||n.includes("$")?pr.InsertTextFormat.PlainText:pr.InsertTextFormat.Snippet,this.kind=t||pr.CompletionItemKind.Property,this.label=n,this.data=a||{},this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.command=this.kind===pr.CompletionItemKind.Property?{title:"Suggested values",command:"editor.action.triggerSuggest"}:void 0}};var Jr={example:"example",default:"default",enum:"enum",ref:"$ref"},xs=[Jr.default,Jr.example];var ay=Ie(Pr(),1);var we={};Rs(we,{default:()=>sy.default});Ts(we,Ie(Rl()));var sy=Ie(Rl());function oS(e,t){let n=t.slice(0,t.length-1),{currentType:r}=ys(e,n);if(r?.name){let[i]=Dl[r.name]||[];return i?.value}return null}function sS(e,t){let n=t[t.length-1];if(od(n))return oS(e,t);let{currentType:r}=ys(e,t);return r?ms(r)?r:r?.name&&(r?.name.includes("Map")||r?.name.includes("Named"))?{name:Gr,properties:{}}:r:null}async function cy(e,t){let n=await Qe(e),r=n.getText(),i=(0,ay.safeLoad)(r,{filename:e}),{node:o,nodePath:s}=hs({node:i,nodePath:[]},t,n),a=await Cl(i,e),c=sS(a,s),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 uy(e,t){let n=ne.resolvePath(Se(e)),r=ne.dirname(n),i=await ql(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 ly=Ie(Zt(),1);var Ps=class extends ut{constructor(t){super(t),this.kind=ly.CompletionItemKind.Folder,this.command={title:"Complete path",command:"editor.action.triggerSuggest",arguments:[]}}};var py=Ie(Zt(),1);var _s=class extends ut{constructor(t){super(t),this.kind=py.CompletionItemKind.File}};var cS=be.supportedLanguages.concat({languageId:"markdown",filePattern:/\.md$/});function uS(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:_e("FolderCompletion"),value:`${s}${a}`}}async function lS(e,t,n){let r=[],{refDirAbsolutePath:i,docAbsolutePath:o}=n;for(let s of e)try{let a=ne.resolvePath(i,s),c=await be.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 dy(e,t){let{docAbsoluteDirPath:n,isAbsolutePath:r,refDirAbsolutePath:i,root:o,refPath:s}=t,a=[];return i.path!==o&&a.push(uS(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:`${_e("FileCompletion")}${c}`,matchBy:`${v}${c}`};let R=`${c}/`;return{type:l,name:R,value:`${y}${h?"/":""}`,sortBy:`${_e("FolderCompletion")}${c}`,matchBy:`${v}${c}`}}))}function fy(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:_r(c,n),sortText:l,value:a,data:{lineOffset:r,position:i,node:n}};return d===1?new Ps(h):new _s(h)})}async function gy(e,t){let{node:n}=t,r=n.value??"",i=await uy(e,r),{refDirAbsolutePath:o}=i,s=[];try{s=await be.fs.readDir(o)}catch{return fy(dy([],i),t)}let a=await lS(s,{supportedFiles:cS},i);return fy(dy(a,i),t)}import{isEmptyObject as pS}from"@redocly/openapi-core";function my(e,t){if(t?.items)return"- "+my(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 dS(e,t,n,r){if(e===en)return"";if(r?.items||r?.required){let i=`
77
77
  `;return n.includes(`
78
78
  `)&&(i+=" "),i}return n.includes(`
79
- `)||!t?"":" "}function gS(e){return e===en?"":": "}function mS(e){return e?.includes(":")||e?.includes(": ")?`
80
- `:e?.includes(":")&&!e?.includes(": ")?" ":""}function hS(e,t){return!t||dS(t)?"":e.includes(`
79
+ `)||!t?"":" "}function fS(e){return e===en?"":": "}function gS(e){return e?.includes(":")||e?.includes(": ")?`
80
+ `:e?.includes(":")&&!e?.includes(": ")?" ":""}function mS(e,t){return!t||pS(t)?"":e.includes(`
81
81
  `)?`
82
82
  `:`
83
83
  `}function Xr(e,t,n=!0){if(e===lr)return`
84
- `;let r=mS(t?.lineText),i=gS(e),o=e===en?"":e,s=my(e,t),a=fS(e,s,r,t),c=n?hS(r,t?.properties):" ";return`${r}${o}${i}${a}${s}${c}`}function yS(e,t){let{version:n}=Sl(e),r=ny(t,n);if(!r)return[];let i=ey(e,["components",r]);return i?(bs(i.value||i)||[]).map(({key:{value:s}})=>`#/components/${r}/${s}`):[]}function bS(e){let{node:t,position:n,lineOffset:r}=e,i=xs.includes(t.key?.value)?t:xs.includes(t.parent?.key?.value)?t.parent:null;return i?i?.parent?.mappings?.find(({key:s})=>s?.value===Jr.enum)?.value?.items?.map(({value:s})=>new ut({label:s,data:{node:t,position:n,lineOffset:r}}))||[]:[]}async function vS(e,t){let{position:n,openApiType:r,currentAst:i,lineOffset:o,node:s}=t,a=r?.name?yS(i,r.name):[];return[...await gy(e,t),...a.map(l=>{let d=_r(l,s);return new ut({label:l,filterText:_r(l,s),value:d,sortText:`${_e("LocalComponentCompletion")}${l}`,data:{lineOffset:o,position:n,node:s}})})]}function xS(e){let{openApiType:t,node:n,position:r,lineOffset:i}=e;return t?.enum?t.enum.map(o=>new ut({label:o,kind:Cs.CompletionItemKind.EnumMember,data:{node:n,position:r,lineOffset:i}})):[]}function PS(e,t){let{node:n,position:r,lineOffset:i}=t;return["true","false"].map(o=>new ut({label:o,data:{node:n,position:r,lineOffset:i}}))}function _S(e){let{currentAst:t,nodePath:n,node:r,openApiType:i,lineText:o}=e,s=SS(t,n,r);return DS(i,s,o)}async function CS(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&&Jr.ref===o?vS(e,t):xs.includes(o)?bS(t):i?.enum?xS(t):i?.type==="boolean"?PS(e,t):[]}async function hy(e,t){let n=await cy(e,t);return n.openApiType?.properties?_S(n):CS(e,n)}function SS(e,t,n){if(!e)return[];let i=Qr(e);for(let a=0;a<t.length;a++)i[t[a]]&&(i=i[t[a]]);let o=i?Object.keys(i).filter(a=>i[a]&&typeof i[a]=="object"):[],s=n?.value?.mappings||n?.mappings;if(s){let a=s.map(c=>c.key?.value||null);o.push(...a)}return!o.length&&n?.value&&o.push(n.value),o}function DS(e,t,n){if(!e)return[];if(ry(e),ms(e))return Pl(e?.name).filter(r=>!t.includes(r.label)).map(r=>new Pn({...r,insertText:Xr(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 Pn({label:i,kind:Cs.CompletionItemKind.Property,insertText:Xr(i,o,!o?.items),sortText:_e(e?.name,i)})});return n.endsWith(":")&&r.push(...Pl(lr).map(i=>new Pn({...i,insertText:Xr(i.label,{...i.data,lineText:n})}))),r}return e.items&&Object.keys(e.items).length?[new Pn({label:en,kind:Cs.CompletionItemKind.Constructor,insertText:Xr(en,{...e,lineText:n}),sortText:_e(en)})]:[]}var qt=Ie(hl(),1);var nn=Ie(Pr(),1);import{getAstNodeByPointer as RS}from"@redocly/openapi-core";async function TS({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(jt.parse(i.uri)),o).toString():t.uri,d;try{d=await Qe(l)}catch{return}let h=(0,nn.safeLoad)(d.getText(),{filename:Pt(l)}),v=RS(h,`#/${s}`,!0),y=qt.Range.create(d.positionAt(v?.startPosition||0),d.positionAt(v?.endPosition||0));return[qt.LocationLink.create(l,qt.Range.create(0,0,d.lineCount,0),y,qt.Range.create(qt.Position.create(e.line,a),qt.Position.create(e.line,c)))]}}async function yy({position:e,textDocument:t}){let n;try{n=await Qe(t.uri)}catch{return}let o=n.getText().split(/\r\n|[\n\r]/g)[e.line],s=(0,nn.safeLoad)(o,{filename:Pt(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&&!mr(c))return TS({position:e,textDocument:t,value:c,line:o,document:n})}var wS=(t=>(t[t.FILE_TYPE_NOT_SUPPORTED=0]="FILE_TYPE_NOT_SUPPORTED",t))(wS||{});var by=class{async onCompletion(t){let{uri:n}=t.textDocument;return pa(n)?[]:hy(n,t.position)}async onCompletionResolve(t){return t}async validateOpenAPI(t){return xl(t)}async onDidChangeWatchedFiles(t){let n=t.changes.find(async r=>await pn(r.uri));if(n)return await bi(n.uri),fs()}async onDidConfigChange(t){return await bi(t),fs()}async onDidChangeConfiguration(){return fs()}async onDefinition(t){let{uri:n}=t.textDocument;return pa(n)?[]:await yy(t)||[]}};export{wS as ContextErrorCodes,by as OpenapiLanguageServer,yl as bundleOpenAPI,C0 as getBundles,An as getConfigData,K0 as getContextData,Qe as getDocumentByURI,pn as isConfigFile,mr as isHttpPath,xx as isYamlFile,be as languageServerConfig,bi as loadOpenAPIConfig,Se as parseUri,oa as removeCirculars,fs as revalidateAllDocuments,Pt as uriToAbsFSPath};
84
+ `;let r=gS(t?.lineText),i=fS(e),o=e===en?"":e,s=my(e,t),a=dS(e,s,r,t),c=n?mS(r,t?.properties):" ";return`${r}${o}${i}${a}${s}${c}`}function hS(e,t){let{version:n}=Sl(e),r=ny(t,n);if(!r)return[];let i=ey(e,["components",r]);return i?(bs(i.value||i)||[]).map(({key:{value:s}})=>`#/components/${r}/${s}`):[]}function yS(e){let{node:t,position:n,lineOffset:r}=e,i=xs.includes(t.key?.value)?t:xs.includes(t.parent?.key?.value)?t.parent:null;return i?i?.parent?.mappings?.find(({key:s})=>s?.value===Jr.enum)?.value?.items?.map(({value:s})=>new ut({label:s,data:{node:t,position:n,lineOffset:r}}))||[]:[]}async function bS(e,t){let{position:n,openApiType:r,currentAst:i,lineOffset:o,node:s}=t,a=r?.name?hS(i,r.name):[];return[...await gy(e,t),...a.map(l=>{let d=_r(l,s);return new ut({label:l,filterText:_r(l,s),value:d,sortText:`${_e("LocalComponentCompletion")}${l}`,data:{lineOffset:o,position:n,node:s}})})]}function vS(e){let{openApiType:t,node:n,position:r,lineOffset:i}=e;return t?.enum?t.enum.map(o=>new ut({label:o,kind:Cs.CompletionItemKind.EnumMember,data:{node:n,position:r,lineOffset:i}})):[]}function xS(e,t){let{node:n,position:r,lineOffset:i}=t;return["true","false"].map(o=>new ut({label:o,data:{node:n,position:r,lineOffset:i}}))}function PS(e){let{currentAst:t,nodePath:n,node:r,openApiType:i,lineText:o}=e,s=CS(t,n,r);return SS(i,s,o)}async function _S(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&&Jr.ref===o?bS(e,t):xs.includes(o)?yS(t):i?.enum?vS(t):i?.type==="boolean"?xS(e,t):[]}async function hy(e,t){let n=await cy(e,t);return n.openApiType?.properties?PS(n):_S(e,n)}function CS(e,t,n){if(!e)return[];let i=Qr(e);for(let a=0;a<t.length;a++)i[t[a]]&&(i=i[t[a]]);let o=i?Object.keys(i).filter(a=>i[a]&&typeof i[a]=="object"):[],s=n?.value?.mappings||n?.mappings;if(s){let a=s.map(c=>c.key?.value||null);o.push(...a)}return!o.length&&n?.value&&o.push(n.value),o}function SS(e,t,n){if(!e)return[];if(ry(e),ms(e))return Pl(e?.name).filter(r=>!t.includes(r.label)).map(r=>new Pn({...r,insertText:Xr(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 Pn({label:i,kind:Cs.CompletionItemKind.Property,insertText:Xr(i,o,!o?.items),sortText:_e(e?.name,i)})});return n.endsWith(":")&&r.push(...Pl(lr).map(i=>new Pn({...i,insertText:Xr(i.label,{...i.data,lineText:n})}))),r}return e.items&&Object.keys(e.items).length?[new Pn({label:en,kind:Cs.CompletionItemKind.Constructor,insertText:Xr(en,{...e,lineText:n}),sortText:_e(en)})]:[]}var qt=Ie(hl(),1);var nn=Ie(Pr(),1);import{getAstNodeByPointer as DS}from"@redocly/openapi-core";async function RS({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(jt.parse(i.uri)),o).toString():t.uri,d;try{d=await Qe(l)}catch{return}let h=(0,nn.safeLoad)(d.getText(),{filename:Pt(l)}),v=DS(h,`#/${s}`,!0),y=qt.Range.create(d.positionAt(v?.startPosition||0),d.positionAt(v?.endPosition||0));return[qt.LocationLink.create(l,qt.Range.create(0,0,d.lineCount,0),y,qt.Range.create(qt.Position.create(e.line,a),qt.Position.create(e.line,c)))]}}async function yy({position:e,textDocument:t}){let n;try{n=await Qe(t.uri)}catch{return}let o=n.getText().split(/\r\n|[\n\r]/g)[e.line],s=(0,nn.safeLoad)(o,{filename:Pt(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&&!mr(c))return RS({position:e,textDocument:t,value:c,line:o,document:n})}var TS=(t=>(t[t.FILE_TYPE_NOT_SUPPORTED=0]="FILE_TYPE_NOT_SUPPORTED",t))(TS||{});var by=class{async onCompletion(t){let{uri:n}=t.textDocument;return pa(n)?[]:hy(n,t.position)}async onCompletionResolve(t){return t}async validateOpenAPI(t){return xl(t)}async onDidChangeWatchedFiles(t){let n=t.changes.find(async r=>await pn(r.uri));if(n)return await bi(n.uri),fs()}async onDidConfigChange(t){return await bi(t),fs()}async onDidChangeConfiguration(){return fs()}async onDefinition(t){let{uri:n}=t.textDocument;return pa(n)?[]:await yy(t)||[]}};export{TS as ContextErrorCodes,by as OpenapiLanguageServer,yl as bundleOpenAPI,C0 as getBundles,An as getConfigData,K0 as getContextData,Qe as getDocumentByURI,pn as isConfigFile,mr as isHttpPath,xx as isYamlFile,be as languageServerConfig,bi as loadOpenAPIConfig,Se as parseUri,oa as removeCirculars,fs as revalidateAllDocuments,Pt as uriToAbsFSPath};