sveld 0.37.0 → 0.37.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- import{we,o,P}from"./chunk-jtm65qmd.js";var ft=o(function(Sc){Object.defineProperty(Sc,"__esModule",{value:!0});Sc.boolean=ed;Sc.string=_c;Sc.number=td;Sc.error=rd;Sc.func=nd;Sc.array=Dc;Sc.stringArray=id;function ed(e){return e===!0||e===!1}function _c(e){return typeof e==="string"||e instanceof String}function td(e){return typeof e==="number"||e instanceof Number}function rd(e){return e instanceof Error}function nd(e){return typeof e==="function"}function Dc(e){return Array.isArray(e)}function id(e){return Dc(e)&&e.every((t)=>_c(t))}});var nn=o(function(_){var fd=_&&_.__createBinding||(Object.create?function(e,t,r,i){if(i===void 0)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===void 0)i=r;e[i]=t[r]}),md=_&&_.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),hd=_&&_.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))i[i.length]=s;return i},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var i=e(t),s=0;s<i.length;s++)if(i[s]!=="default")fd(r,t,i[s])}return md(r,t),r}}();Object.defineProperty(_,"__esModule",{value:!0});_.Message=_.NotificationType9=_.NotificationType8=_.NotificationType7=_.NotificationType6=_.NotificationType5=_.NotificationType4=_.NotificationType3=_.NotificationType2=_.NotificationType1=_.NotificationType0=_.NotificationType=_.RequestType9=_.RequestType8=_.RequestType7=_.RequestType6=_.RequestType5=_.RequestType4=_.RequestType3=_.RequestType2=_.RequestType1=_.RequestType=_.RequestType0=_.AbstractMessageSignature=_.ParameterStructures=_.ResponseError=_.ErrorCodes=void 0;var et=hd(ft()),tn;(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=-32000,e.serverErrorEnd=-32000})(tn||(_.ErrorCodes=tn={}));class rn extends Error{code;data;constructor(e,t,r){super(t);this.code=et.number(e)?e:tn.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,rn.prototype)}toJson(){let e={code:this.code,message:this.message};if(this.data!==void 0)e.data=this.data;return e}}_.ResponseError=rn;class le{kind;static auto=new le("auto");static byPosition=new le("byPosition");static byName=new le("byName");constructor(e){this.kind=e}static is(e){return e===le.auto||e===le.byName||e===le.byPosition}toString(){return this.kind}}_.ParameterStructures=le;class V{method;numberOfParams;constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return le.auto}}_.AbstractMessageSignature=V;class Ac extends V{_;constructor(e){super(e,0)}}_.RequestType0=Ac;class bc extends V{_parameterStructures;_;constructor(e,t=le.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}_.RequestType=bc;class Ic extends V{_parameterStructures;_;constructor(e,t=le.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}_.RequestType1=Ic;class Cc extends V{_;constructor(e){super(e,2)}}_.RequestType2=Cc;class Nc extends V{_;constructor(e){super(e,3)}}_.RequestType3=Nc;class Lc extends V{_;constructor(e){super(e,4)}}_.RequestType4=Lc;class Jc extends V{_;constructor(e){super(e,5)}}_.RequestType5=Jc;class Rc extends V{_;constructor(e){super(e,6)}}_.RequestType6=Rc;class Oc extends V{_;constructor(e){super(e,7)}}_.RequestType7=Oc;class vc extends V{_;constructor(e){super(e,8)}}_.RequestType8=vc;class Mc extends V{_;constructor(e){super(e,9)}}_.RequestType9=Mc;class qc extends V{_parameterStructures;_;constructor(e,t=le.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}_.NotificationType=qc;class Bc extends V{_;constructor(e){super(e,0)}}_.NotificationType0=Bc;class Uc extends V{_parameterStructures;_;constructor(e,t=le.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}_.NotificationType1=Uc;class jc extends V{_;constructor(e){super(e,2)}}_.NotificationType2=jc;class Vc extends V{_;constructor(e){super(e,3)}}_.NotificationType3=Vc;class Wc extends V{_;constructor(e){super(e,4)}}_.NotificationType4=Wc;class zc extends V{_;constructor(e){super(e,5)}}_.NotificationType5=zc;class Hc extends V{_;constructor(e){super(e,6)}}_.NotificationType6=Hc;class Gc extends V{_;constructor(e){super(e,7)}}_.NotificationType7=Gc;class $c extends V{_;constructor(e){super(e,8)}}_.NotificationType8=$c;class Fc extends V{_;constructor(e){super(e,9)}}_.NotificationType9=Fc;var Pc;(function(e){function t(s){let a=s;return a&&et.string(a.method)&&(et.string(a.id)||et.number(a.id))}e.isRequest=t;function r(s){let a=s;return a&&et.string(a.method)&&s.id===void 0}e.isNotification=r;function i(s){let a=s;return a&&(a.result!==void 0||!!a.error)&&(et.string(a.id)||et.number(a.id)||a.id===null)}e.isResponse=i})(Pc||(_.Message=Pc={}))});var on=o(function(Yc){Object.defineProperty(Yc,"__esModule",{value:!0});Yc.LRUCache=Yc.LinkedMap=Yc.Touch=void 0;var re;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(re||(Yc.Touch=re={}));class sn{[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){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}before(e){let t=this._map.get(e);return t?t.previous?.value:void 0}after(e){let t=this._map.get(e);return t?t.next?.value:void 0}has(e){return this._map.has(e)}get(e,t=re.None){let r=this._map.get(e);if(!r)return;if(t!==re.None)this.touch(r,t);return r.value}set(e,t,r=re.None){let i=this._map.get(e);if(i){if(i.value=t,r!==re.None)this.touch(i,r)}else{switch(i={key:e,value:t,next:void 0,previous:void 0},r){case re.None:this.addItemLast(i);break;case re.First:this.addItemFirst(i);break;case re.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(!t)return;return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let r=this._state,i=this._head;while(i){if(t)e.bind(t)(i.value,i.key,this);else e(i.value,i.key,this);if(this._state!==r)throw Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw Error("LinkedMap got modified during iteration.");if(t){let i={value:t.key,done:!1};return t=t.next,i}else return{value:void 0,done:!0}}};return r}values(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw Error("LinkedMap got modified during iteration.");if(t){let i={value:t.value,done:!1};return t=t.next,i}else return{value:void 0,done:!0}}};return r}entries(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw Error("LinkedMap got modified during iteration.");if(t){let i={value:[t.key,t.value],done:!1};return t=t.next,i}else return{value:void 0,done:!0}}};return r}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,r=this.size;while(t&&r>e)this._map.delete(t.key),t=t.next,r--;if(this._head=t,this._size=r,t)t.previous=void 0;this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(!this._head)throw Error("Invalid list");else e.next=this._head,this._head.previous=e;this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(!this._tail)throw Error("Invalid list");else e.previous=this._tail,this._tail.next=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let{next:t,previous:r}=e;if(!t||!r)throw Error("Invalid list");t.previous=r,r.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw Error("Invalid list");if(t!==re.First&&t!==re.Last)return;if(t===re.First){if(e===this._head)return;let{next:r,previous:i}=e;if(e===this._tail)i.next=void 0,this._tail=i;else r.previous=i,i.next=r;e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===re.Last){if(e===this._tail)return;let{next:r,previous:i}=e;if(e===this._head)r.previous=void 0,this._head=r;else r.previous=i,i.next=r;e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){let e=[];return this.forEach((t,r)=>{e.push([r,t])}),e}fromJSON(e){this.clear();for(let[t,r]of e)this.set(t,r)}}Yc.LinkedMap=sn;class Qc extends sn{_limit;_ratio;constructor(e,t=1){super();this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=re.AsNew){return super.get(e,t)}peek(e){return super.get(e,re.None)}set(e,t){return super.set(e,t,re.Last),this.checkTrim(),this}checkTrim(){if(this.size>this._limit)this.trimOld(Math.round(this._limit*this._ratio))}}Yc.LRUCache=Qc});var tu=o(function(Kc){Object.defineProperty(Kc,"__esModule",{value:!0});Kc.Disposable=void 0;var Zc;(function(e){function t(r){return{dispose:r}}e.create=t})(Zc||(Kc.Disposable=Zc={}))});var je=o(function(ru){Object.defineProperty(ru,"__esModule",{value:!0});var an;function cn(){if(an===void 0)throw Error("No runtime abstraction layer installed");return an}(function(e){function t(r){if(r===void 0)throw Error("No runtime abstraction layer provided");an=r}e.install=t})(cn||(cn={}));ru.default=cn});var mt=o(function(Ve){var yd=Ve&&Ve.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.Emitter=Ve.Event=void 0;var xd=yd(je()),nu;(function(e){let t={dispose(){}};e.None=function(){return t}})(nu||(Ve.Event=nu={}));class iu{_callbacks;_contexts;add(e,t=null,r){if(!this._callbacks)this._callbacks=[],this._contexts=[];if(this._callbacks.push(e),this._contexts.push(t),Array.isArray(r))r.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let r=!1;for(let i=0,s=this._callbacks.length;i<s;i++)if(this._callbacks[i]===e)if(this._contexts[i]===t){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let t=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let s=0,a=r.length;s<a;s++)try{t.push(r[s].apply(i[s],e))}catch(p){(0,xd.default)().console.error(p)}return t}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}}class un{_options;static _noop=function(){};_event;_callbacks;constructor(e){this._options=e}get event(){if(!this._event)this._event=(e,t,r)=>{if(!this._callbacks)this._callbacks=new iu;if(this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty())this._options.onFirstListenerAdd(this);this._callbacks.add(e,t);let i={dispose:()=>{if(!this._callbacks)return;if(this._callbacks.remove(e,t),i.dispose=un._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty())this._options.onLastListenerRemove(this)}};if(Array.isArray(r))r.push(i);return i};return this._event}fire(e){if(this._callbacks)this._callbacks.invoke.call(this._callbacks,e)}dispose(){if(this._callbacks)this._callbacks.dispose(),this._callbacks=void 0}}Ve.Emitter=un});var fr=o(function(ce){var Ed=ce&&ce.__createBinding||(Object.create?function(e,t,r,i){if(i===void 0)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===void 0)i=r;e[i]=t[r]}),kd=ce&&ce.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),wd=ce&&ce.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))i[i.length]=s;return i},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var i=e(t),s=0;s<i.length;s++)if(i[s]!=="default")Ed(r,t,i[s])}return kd(r,t),r}}(),_d=ce&&ce.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ce,"__esModule",{value:!0});ce.CancellationTokenSource=ce.CancellationToken=void 0;var Dd=_d(je()),Sd=wd(ft()),pn=mt(),lr;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:pn.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:pn.Event.None});function t(r){let i=r;return i&&(i===e.None||i===e.Cancelled||Sd.boolean(i.isCancellationRequested)&&!!i.onCancellationRequested)}e.is=t})(lr||(ce.CancellationToken=lr={}));var Pd=Object.freeze(function(e,t){let r=(0,Dd.default)().timer.setTimeout(e.bind(t),0);return{dispose(){r.dispose()}}});class ln{_isCancelled=!1;_emitter;cancel(){if(!this._isCancelled){if(this._isCancelled=!0,this._emitter)this._emitter.fire(void 0),this.dispose()}}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){if(this._isCancelled)return Pd;if(!this._emitter)this._emitter=new pn.Emitter;return this._emitter.event}dispose(){if(this._emitter)this._emitter.dispose(),this._emitter=void 0}}class su{_token;get token(){if(!this._token)this._token=new ln;return this._token}cancel(){if(!this._token)this._token=lr.Cancelled;else this._token.cancel()}dispose(){if(!this._token)this._token=lr.None;else if(this._token instanceof ln)this._token.dispose()}}ce.CancellationTokenSource=su});var fu=o(function(pu){Object.defineProperty(pu,"__esModule",{value:!0});pu.SharedArrayReceiverStrategy=pu.SharedArraySenderStrategy=void 0;var Ad=fr(),Rt;(function(e){e.Continue=0,e.Cancelled=1})(Rt||(Rt={}));class ou{buffers;constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let t=new SharedArrayBuffer(4),r=new Int32Array(t,0,1);r[0]=Rt.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){let r=this.buffers.get(t);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,Rt.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}}pu.SharedArraySenderStrategy=ou;class au{data;constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Rt.Cancelled}get onCancellationRequested(){throw Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class cu{token;constructor(e){this.token=new au(e)}cancel(){}dispose(){}}class uu{kind="request";createCancellationTokenSource(e){let t=e.$cancellationData;if(t===void 0)return new Ad.CancellationTokenSource;return new cu(t)}}pu.SharedArrayReceiverStrategy=uu});var fn=o(function(ht){var Id=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ht,"__esModule",{value:!0});ht.Semaphore=void 0;var Cd=Id(je());class mu{_capacity;_active;_waiting;constructor(e=1){if(e<=0)throw Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,r)=>{this._waiting.push({thunk:e,resolve:t,reject:r}),this.runNext()})}get active(){return this._active}runNext(){if(this._waiting.length===0||this._active===this._capacity)return;(0,Cd.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error("Too many thunks active");try{let t=e.thunk();if(t instanceof Promise)t.then((r)=>{this._active--,e.resolve(r),this.runNext()},(r)=>{this._active--,e.reject(r),this.runNext()});else this._active--,e.resolve(t),this.runNext()}catch(t){this._active--,e.reject(t),this.runNext()}}}ht.Semaphore=mu});var Tu=o(function(ne){var Nd=ne&&ne.__createBinding||(Object.create?function(e,t,r,i){if(i===void 0)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===void 0)i=r;e[i]=t[r]}),Ld=ne&&ne.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Jd=ne&&ne.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))i[i.length]=s;return i},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var i=e(t),s=0;s<i.length;s++)if(i[s]!=="default")Nd(r,t,i[s])}return Ld(r,t),r}}(),Rd=ne&&ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ne,"__esModule",{value:!0});ne.ReadableStreamMessageReader=ne.AbstractMessageReader=ne.MessageReader=void 0;var hn=Rd(je()),dt=Jd(ft()),mn=mt(),Od=fn(),hu;(function(e){function t(r){let i=r;return i&&dt.func(i.listen)&&dt.func(i.dispose)&&dt.func(i.onError)&&dt.func(i.onClose)&&dt.func(i.onPartialMessage)}e.is=t})(hu||(ne.MessageReader=hu={}));class Tn{errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new mn.Emitter,this.closeEmitter=new mn.Emitter,this.partialMessageEmitter=new mn.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){if(e instanceof Error)return e;else return Error(`Reader received error. Reason: ${dt.string(e.message)?e.message:"unknown"}`)}}ne.AbstractMessageReader=Tn;var dn;(function(e){function t(r){let i,s,a,p=new Map,T,E=new Map;if(r===void 0||typeof r==="string")i=r??"utf-8";else{if(i=r.charset??"utf-8",r.contentDecoder!==void 0)a=r.contentDecoder,p.set(a.name,a);if(r.contentDecoders!==void 0)for(let A of r.contentDecoders)p.set(A.name,A);if(r.contentTypeDecoder!==void 0)T=r.contentTypeDecoder,E.set(T.name,T);if(r.contentTypeDecoders!==void 0)for(let A of r.contentTypeDecoders)E.set(A.name,A)}if(T===void 0)T=(0,hn.default)().applicationJson.decoder,E.set(T.name,T);return{charset:i,contentDecoder:a,contentDecoders:p,contentTypeDecoder:T,contentTypeDecoders:E}}e.fromOptions=t})(dn||(dn={}));class du extends Tn{readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(e,t){super();this.readable=e,this.options=dn.fromOptions(t),this.buffer=(0,hn.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new Od.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let t=this.readable.onData((r)=>{this.onData(r)});return this.readable.onError((r)=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),t}onData(e){try{this.buffer.append(e);while(!0){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(Error(`Header must provide a Content-Length property.
1
+ import{we,o,w}from"./chunk-q2023ykg.js";var ft=o(function(Sc){Object.defineProperty(Sc,"__esModule",{value:!0});Sc.boolean=ed;Sc.string=_c;Sc.number=td;Sc.error=rd;Sc.func=nd;Sc.array=Dc;Sc.stringArray=id;function ed(e){return e===!0||e===!1}function _c(e){return typeof e==="string"||e instanceof String}function td(e){return typeof e==="number"||e instanceof Number}function rd(e){return e instanceof Error}function nd(e){return typeof e==="function"}function Dc(e){return Array.isArray(e)}function id(e){return Dc(e)&&e.every((t)=>_c(t))}});var nn=o(function(D){var fd=D&&D.__createBinding||(Object.create?function(e,t,r,i){if(i===void 0)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===void 0)i=r;e[i]=t[r]}),md=D&&D.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),hd=D&&D.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))i[i.length]=s;return i},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var i=e(t),s=0;s<i.length;s++)if(i[s]!=="default")fd(r,t,i[s])}return md(r,t),r}}();Object.defineProperty(D,"__esModule",{value:!0});D.Message=D.NotificationType9=D.NotificationType8=D.NotificationType7=D.NotificationType6=D.NotificationType5=D.NotificationType4=D.NotificationType3=D.NotificationType2=D.NotificationType1=D.NotificationType0=D.NotificationType=D.RequestType9=D.RequestType8=D.RequestType7=D.RequestType6=D.RequestType5=D.RequestType4=D.RequestType3=D.RequestType2=D.RequestType1=D.RequestType=D.RequestType0=D.AbstractMessageSignature=D.ParameterStructures=D.ResponseError=D.ErrorCodes=void 0;var et=hd(ft()),tn;(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=-32000,e.serverErrorEnd=-32000})(tn||(D.ErrorCodes=tn={}));class rn extends Error{code;data;constructor(e,t,r){super(t);this.code=et.number(e)?e:tn.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,rn.prototype)}toJson(){let e={code:this.code,message:this.message};if(this.data!==void 0)e.data=this.data;return e}}D.ResponseError=rn;class le{kind;static auto=new le("auto");static byPosition=new le("byPosition");static byName=new le("byName");constructor(e){this.kind=e}static is(e){return e===le.auto||e===le.byName||e===le.byPosition}toString(){return this.kind}}D.ParameterStructures=le;class V{method;numberOfParams;constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return le.auto}}D.AbstractMessageSignature=V;class Ac extends V{_;constructor(e){super(e,0)}}D.RequestType0=Ac;class bc extends V{_parameterStructures;_;constructor(e,t=le.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}D.RequestType=bc;class Ic extends V{_parameterStructures;_;constructor(e,t=le.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}D.RequestType1=Ic;class Cc extends V{_;constructor(e){super(e,2)}}D.RequestType2=Cc;class Nc extends V{_;constructor(e){super(e,3)}}D.RequestType3=Nc;class Lc extends V{_;constructor(e){super(e,4)}}D.RequestType4=Lc;class Jc extends V{_;constructor(e){super(e,5)}}D.RequestType5=Jc;class Rc extends V{_;constructor(e){super(e,6)}}D.RequestType6=Rc;class Oc extends V{_;constructor(e){super(e,7)}}D.RequestType7=Oc;class vc extends V{_;constructor(e){super(e,8)}}D.RequestType8=vc;class Mc extends V{_;constructor(e){super(e,9)}}D.RequestType9=Mc;class qc extends V{_parameterStructures;_;constructor(e,t=le.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}D.NotificationType=qc;class Bc extends V{_;constructor(e){super(e,0)}}D.NotificationType0=Bc;class Uc extends V{_parameterStructures;_;constructor(e,t=le.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}D.NotificationType1=Uc;class jc extends V{_;constructor(e){super(e,2)}}D.NotificationType2=jc;class Vc extends V{_;constructor(e){super(e,3)}}D.NotificationType3=Vc;class Wc extends V{_;constructor(e){super(e,4)}}D.NotificationType4=Wc;class zc extends V{_;constructor(e){super(e,5)}}D.NotificationType5=zc;class Hc extends V{_;constructor(e){super(e,6)}}D.NotificationType6=Hc;class Gc extends V{_;constructor(e){super(e,7)}}D.NotificationType7=Gc;class $c extends V{_;constructor(e){super(e,8)}}D.NotificationType8=$c;class Fc extends V{_;constructor(e){super(e,9)}}D.NotificationType9=Fc;var Pc;(function(e){function t(s){let a=s;return a&&et.string(a.method)&&(et.string(a.id)||et.number(a.id))}e.isRequest=t;function r(s){let a=s;return a&&et.string(a.method)&&s.id===void 0}e.isNotification=r;function i(s){let a=s;return a&&(a.result!==void 0||!!a.error)&&(et.string(a.id)||et.number(a.id)||a.id===null)}e.isResponse=i})(Pc||(D.Message=Pc={}))});var on=o(function(Yc){Object.defineProperty(Yc,"__esModule",{value:!0});Yc.LRUCache=Yc.LinkedMap=Yc.Touch=void 0;var re;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(re||(Yc.Touch=re={}));class sn{[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){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}before(e){let t=this._map.get(e);return t?t.previous?.value:void 0}after(e){let t=this._map.get(e);return t?t.next?.value:void 0}has(e){return this._map.has(e)}get(e,t=re.None){let r=this._map.get(e);if(!r)return;if(t!==re.None)this.touch(r,t);return r.value}set(e,t,r=re.None){let i=this._map.get(e);if(i){if(i.value=t,r!==re.None)this.touch(i,r)}else{switch(i={key:e,value:t,next:void 0,previous:void 0},r){case re.None:this.addItemLast(i);break;case re.First:this.addItemFirst(i);break;case re.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(!t)return;return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let r=this._state,i=this._head;while(i){if(t)e.bind(t)(i.value,i.key,this);else e(i.value,i.key,this);if(this._state!==r)throw Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw Error("LinkedMap got modified during iteration.");if(t){let i={value:t.key,done:!1};return t=t.next,i}else return{value:void 0,done:!0}}};return r}values(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw Error("LinkedMap got modified during iteration.");if(t){let i={value:t.value,done:!1};return t=t.next,i}else return{value:void 0,done:!0}}};return r}entries(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw Error("LinkedMap got modified during iteration.");if(t){let i={value:[t.key,t.value],done:!1};return t=t.next,i}else return{value:void 0,done:!0}}};return r}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,r=this.size;while(t&&r>e)this._map.delete(t.key),t=t.next,r--;if(this._head=t,this._size=r,t)t.previous=void 0;this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(!this._head)throw Error("Invalid list");else e.next=this._head,this._head.previous=e;this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(!this._tail)throw Error("Invalid list");else e.previous=this._tail,this._tail.next=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let{next:t,previous:r}=e;if(!t||!r)throw Error("Invalid list");t.previous=r,r.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw Error("Invalid list");if(t!==re.First&&t!==re.Last)return;if(t===re.First){if(e===this._head)return;let{next:r,previous:i}=e;if(e===this._tail)i.next=void 0,this._tail=i;else r.previous=i,i.next=r;e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===re.Last){if(e===this._tail)return;let{next:r,previous:i}=e;if(e===this._head)r.previous=void 0,this._head=r;else r.previous=i,i.next=r;e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){let e=[];return this.forEach((t,r)=>{e.push([r,t])}),e}fromJSON(e){this.clear();for(let[t,r]of e)this.set(t,r)}}Yc.LinkedMap=sn;class Qc extends sn{_limit;_ratio;constructor(e,t=1){super();this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=re.AsNew){return super.get(e,t)}peek(e){return super.get(e,re.None)}set(e,t){return super.set(e,t,re.Last),this.checkTrim(),this}checkTrim(){if(this.size>this._limit)this.trimOld(Math.round(this._limit*this._ratio))}}Yc.LRUCache=Qc});var tu=o(function(Kc){Object.defineProperty(Kc,"__esModule",{value:!0});Kc.Disposable=void 0;var Zc;(function(e){function t(r){return{dispose:r}}e.create=t})(Zc||(Kc.Disposable=Zc={}))});var je=o(function(ru){Object.defineProperty(ru,"__esModule",{value:!0});var an;function cn(){if(an===void 0)throw Error("No runtime abstraction layer installed");return an}(function(e){function t(r){if(r===void 0)throw Error("No runtime abstraction layer provided");an=r}e.install=t})(cn||(cn={}));ru.default=cn});var mt=o(function(Ve){var yd=Ve&&Ve.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.Emitter=Ve.Event=void 0;var xd=yd(je()),nu;(function(e){let t={dispose(){}};e.None=function(){return t}})(nu||(Ve.Event=nu={}));class iu{_callbacks;_contexts;add(e,t=null,r){if(!this._callbacks)this._callbacks=[],this._contexts=[];if(this._callbacks.push(e),this._contexts.push(t),Array.isArray(r))r.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let r=!1;for(let i=0,s=this._callbacks.length;i<s;i++)if(this._callbacks[i]===e)if(this._contexts[i]===t){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let t=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let s=0,a=r.length;s<a;s++)try{t.push(r[s].apply(i[s],e))}catch(p){(0,xd.default)().console.error(p)}return t}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}}class un{_options;static _noop=function(){};_event;_callbacks;constructor(e){this._options=e}get event(){if(!this._event)this._event=(e,t,r)=>{if(!this._callbacks)this._callbacks=new iu;if(this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty())this._options.onFirstListenerAdd(this);this._callbacks.add(e,t);let i={dispose:()=>{if(!this._callbacks)return;if(this._callbacks.remove(e,t),i.dispose=un._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty())this._options.onLastListenerRemove(this)}};if(Array.isArray(r))r.push(i);return i};return this._event}fire(e){if(this._callbacks)this._callbacks.invoke.call(this._callbacks,e)}dispose(){if(this._callbacks)this._callbacks.dispose(),this._callbacks=void 0}}Ve.Emitter=un});var fr=o(function(ce){var Ed=ce&&ce.__createBinding||(Object.create?function(e,t,r,i){if(i===void 0)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===void 0)i=r;e[i]=t[r]}),kd=ce&&ce.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),wd=ce&&ce.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))i[i.length]=s;return i},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var i=e(t),s=0;s<i.length;s++)if(i[s]!=="default")Ed(r,t,i[s])}return kd(r,t),r}}(),_d=ce&&ce.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ce,"__esModule",{value:!0});ce.CancellationTokenSource=ce.CancellationToken=void 0;var Dd=_d(je()),Sd=wd(ft()),pn=mt(),lr;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:pn.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:pn.Event.None});function t(r){let i=r;return i&&(i===e.None||i===e.Cancelled||Sd.boolean(i.isCancellationRequested)&&!!i.onCancellationRequested)}e.is=t})(lr||(ce.CancellationToken=lr={}));var Pd=Object.freeze(function(e,t){let r=(0,Dd.default)().timer.setTimeout(e.bind(t),0);return{dispose(){r.dispose()}}});class ln{_isCancelled=!1;_emitter;cancel(){if(!this._isCancelled){if(this._isCancelled=!0,this._emitter)this._emitter.fire(void 0),this.dispose()}}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){if(this._isCancelled)return Pd;if(!this._emitter)this._emitter=new pn.Emitter;return this._emitter.event}dispose(){if(this._emitter)this._emitter.dispose(),this._emitter=void 0}}class su{_token;get token(){if(!this._token)this._token=new ln;return this._token}cancel(){if(!this._token)this._token=lr.Cancelled;else this._token.cancel()}dispose(){if(!this._token)this._token=lr.None;else if(this._token instanceof ln)this._token.dispose()}}ce.CancellationTokenSource=su});var fu=o(function(pu){Object.defineProperty(pu,"__esModule",{value:!0});pu.SharedArrayReceiverStrategy=pu.SharedArraySenderStrategy=void 0;var Ad=fr(),Rt;(function(e){e.Continue=0,e.Cancelled=1})(Rt||(Rt={}));class ou{buffers;constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let t=new SharedArrayBuffer(4),r=new Int32Array(t,0,1);r[0]=Rt.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){let r=this.buffers.get(t);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,Rt.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}}pu.SharedArraySenderStrategy=ou;class au{data;constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Rt.Cancelled}get onCancellationRequested(){throw Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class cu{token;constructor(e){this.token=new au(e)}cancel(){}dispose(){}}class uu{kind="request";createCancellationTokenSource(e){let t=e.$cancellationData;if(t===void 0)return new Ad.CancellationTokenSource;return new cu(t)}}pu.SharedArrayReceiverStrategy=uu});var fn=o(function(ht){var Id=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ht,"__esModule",{value:!0});ht.Semaphore=void 0;var Cd=Id(je());class mu{_capacity;_active;_waiting;constructor(e=1){if(e<=0)throw Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,r)=>{this._waiting.push({thunk:e,resolve:t,reject:r}),this.runNext()})}get active(){return this._active}runNext(){if(this._waiting.length===0||this._active===this._capacity)return;(0,Cd.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error("Too many thunks active");try{let t=e.thunk();if(t instanceof Promise)t.then((r)=>{this._active--,e.resolve(r),this.runNext()},(r)=>{this._active--,e.reject(r),this.runNext()});else this._active--,e.resolve(t),this.runNext()}catch(t){this._active--,e.reject(t),this.runNext()}}}ht.Semaphore=mu});var Tu=o(function(ne){var Nd=ne&&ne.__createBinding||(Object.create?function(e,t,r,i){if(i===void 0)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===void 0)i=r;e[i]=t[r]}),Ld=ne&&ne.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Jd=ne&&ne.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))i[i.length]=s;return i},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var i=e(t),s=0;s<i.length;s++)if(i[s]!=="default")Nd(r,t,i[s])}return Ld(r,t),r}}(),Rd=ne&&ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ne,"__esModule",{value:!0});ne.ReadableStreamMessageReader=ne.AbstractMessageReader=ne.MessageReader=void 0;var hn=Rd(je()),dt=Jd(ft()),mn=mt(),Od=fn(),hu;(function(e){function t(r){let i=r;return i&&dt.func(i.listen)&&dt.func(i.dispose)&&dt.func(i.onError)&&dt.func(i.onClose)&&dt.func(i.onPartialMessage)}e.is=t})(hu||(ne.MessageReader=hu={}));class Tn{errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new mn.Emitter,this.closeEmitter=new mn.Emitter,this.partialMessageEmitter=new mn.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){if(e instanceof Error)return e;else return Error(`Reader received error. Reason: ${dt.string(e.message)?e.message:"unknown"}`)}}ne.AbstractMessageReader=Tn;var dn;(function(e){function t(r){let i,s,a,p=new Map,T,E=new Map;if(r===void 0||typeof r==="string")i=r??"utf-8";else{if(i=r.charset??"utf-8",r.contentDecoder!==void 0)a=r.contentDecoder,p.set(a.name,a);if(r.contentDecoders!==void 0)for(let A of r.contentDecoders)p.set(A.name,A);if(r.contentTypeDecoder!==void 0)T=r.contentTypeDecoder,E.set(T.name,T);if(r.contentTypeDecoders!==void 0)for(let A of r.contentTypeDecoders)E.set(A.name,A)}if(T===void 0)T=(0,hn.default)().applicationJson.decoder,E.set(T.name,T);return{charset:i,contentDecoder:a,contentDecoders:p,contentTypeDecoder:T,contentTypeDecoders:E}}e.fromOptions=t})(dn||(dn={}));class du extends Tn{readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(e,t){super();this.readable=e,this.options=dn.fromOptions(t),this.buffer=(0,hn.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new Od.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let t=this.readable.onData((r)=>{this.onData(r)});return this.readable.onError((r)=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),t}onData(e){try{this.buffer.append(e);while(!0){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(Error(`Header must provide a Content-Length property.
2
2
  ${JSON.stringify(Object.fromEntries(r))}`));return}let s=parseInt(i);if(isNaN(s)){this.fireError(Error(`Content-Length value must be a number. Got ${i}`));return}this.nextMessageLength=s}let t=this.buffer.tryReadBody(this.nextMessageLength);if(t===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(t):t,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch((r)=>{this.fireError(r)})}}catch(t){this.fireError(t)}}clearPartialMessageTimer(){if(this.partialMessageTimer)this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0}setPartialMessageTimer(){if(this.clearPartialMessageTimer(),this._partialMessageTimeout<=0)return;this.partialMessageTimer=(0,hn.default)().timer.setTimeout((e,t)=>{if(this.partialMessageTimer=void 0,e===this.messageToken)this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer()},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout)}}ne.ReadableStreamMessageReader=du});var wu=o(function(ie){var vd=ie&&ie.__createBinding||(Object.create?function(e,t,r,i){if(i===void 0)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===void 0)i=r;e[i]=t[r]}),Md=ie&&ie.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),qd=ie&&ie.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))i[i.length]=s;return i},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var i=e(t),s=0;s<i.length;s++)if(i[s]!=="default")vd(r,t,i[s])}return Md(r,t),r}}(),Bd=ie&&ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ie,"__esModule",{value:!0});ie.WriteableStreamMessageWriter=ie.AbstractMessageWriter=ie.MessageWriter=void 0;var gu=Bd(je()),Ot=qd(ft()),Ud=fn(),yu=mt(),jd="Content-Length: ",xu=`\r
3
3
  `,Eu;(function(e){function t(r){let i=r;return i&&Ot.func(i.dispose)&&Ot.func(i.onClose)&&Ot.func(i.onError)&&Ot.func(i.write)}e.is=t})(Eu||(ie.MessageWriter=Eu={}));class yn{errorEmitter;closeEmitter;constructor(){this.errorEmitter=new yu.Emitter,this.closeEmitter=new yu.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,r){this.errorEmitter.fire([this.asError(e),t,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){if(e instanceof Error)return e;else return Error(`Writer received error. Reason: ${Ot.string(e.message)?e.message:"unknown"}`)}}ie.AbstractMessageWriter=yn;var gn;(function(e){function t(r){if(r===void 0||typeof r==="string")return{charset:r??"utf-8",contentTypeEncoder:(0,gu.default)().applicationJson.encoder};else return{charset:r.charset??"utf-8",contentEncoder:r.contentEncoder,contentTypeEncoder:r.contentTypeEncoder??(0,gu.default)().applicationJson.encoder}}e.fromOptions=t})(gn||(gn={}));class ku extends yn{writable;options;errorCount;writeSemaphore;constructor(e,t){super();this.writable=e,this.options=gn.fromOptions(t),this.errorCount=0,this.writeSemaphore=new Ud.Semaphore(1),this.writable.onError((r)=>this.fireError(r)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then((r)=>{if(this.options.contentEncoder!==void 0)return this.options.contentEncoder.encode(r);else return r}).then((r)=>{let i=[];return i.push(jd,r.byteLength.toString(),xu),i.push(xu),this.doWrite(e,i,r)},(r)=>{throw this.fireError(r),r}))}async doWrite(e,t,r){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,e),Promise.reject(i)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}ie.WriteableStreamMessageWriter=ku});var Pu=o(function(Du){Object.defineProperty(Du,"__esModule",{value:!0});Du.AbstractMessageBuffer=void 0;var Vd=13,Wd=10,zd=`\r
4
4
  `;class _u{_encoding;_chunks;_totalLength;constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let t=typeof e==="string"?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(this._chunks.length===0)return;let t=0,r=0,i=0,s=0;e:while(r<this._chunks.length){let E=this._chunks[r];i=0;while(i<E.length){switch(E[i]){case Vd:switch(t){case 0:t=1;break;case 2:t=3;break;default:t=0}break;case Wd:switch(t){case 1:t=2;break;case 3:t=4,i++;break e;default:t=0}break;default:t=0}i++}s+=E.byteLength,r++}if(t!==4)return;let a=this._read(s+i),p=new Map,T=this.toString(a,"ascii").split(zd);if(T.length<2)return p;for(let E=0;E<T.length-2;E++){let A=T[E],N=A.indexOf(":");if(N===-1)throw Error(`Message header must separate key and value using ':'
5
- ${A}`);let U=A.substr(0,N),M=A.substr(N+1).trim();p.set(e?U.toLowerCase():U,M)}return p}tryReadBody(e){if(this._totalLength<e)return;return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(e===0)return this.emptyBuffer();if(e>this._totalLength)throw Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let s=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(s)}if(this._chunks[0].byteLength>e){let s=this._chunks[0],a=this.asNative(s,e);return this._chunks[0]=s.slice(e),this._totalLength-=e,a}let t=this.allocNative(e),r=0,i=0;while(e>0){let s=this._chunks[i];if(s.byteLength>e){let a=s.slice(0,e);t.set(a,r),r+=e,this._chunks[i]=s.slice(e),this._totalLength-=e,e-=e}else t.set(s,r),r+=s.byteLength,this._chunks.shift(),this._totalLength-=s.byteLength,e-=s.byteLength}return t}}Du.AbstractMessageBuffer=_u});var Nu=o(function(b){var Hd=b&&b.__createBinding||(Object.create?function(e,t,r,i){if(i===void 0)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===void 0)i=r;e[i]=t[r]}),Gd=b&&b.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),$d=b&&b.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))i[i.length]=s;return i},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var i=e(t),s=0;s<i.length;s++)if(i[s]!=="default")Hd(r,t,i[s])}return Gd(r,t),r}}(),Fd=b&&b.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(b,"__esModule",{value:!0});b.ConnectionOptions=b.MessageStrategy=b.CancellationStrategy=b.CancellationSenderStrategy=b.CancellationReceiverStrategy=b.RequestCancellationReceiverStrategy=b.IdCancellationReceiverStrategy=b.ConnectionStrategy=b.ConnectionError=b.ConnectionErrors=b.LogTraceNotification=b.SetTraceNotification=b.TraceFormat=b.TraceValues=b.TraceValue=b.Trace=b.NullLogger=b.ProgressType=b.ProgressToken=void 0;b.createMessageConnection=Qd;var Au=Fd(je()),z=$d(ft()),C=nn(),bu=on(),vt=mt(),xn=fr(),Bt;(function(e){e.type=new C.NotificationType("$/cancelRequest")})(Bt||(Bt={}));var En;(function(e){function t(r){return typeof r==="string"||typeof r==="number"}e.is=t})(En||(b.ProgressToken=En={}));var Mt;(function(e){e.type=new C.NotificationType("$/progress")})(Mt||(Mt={}));class Cu{__;_pr;constructor(){}}b.ProgressType=Cu;var kn;(function(e){function t(r){return z.func(r)}e.is=t})(kn||(kn={}));b.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var O;(function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"})(O||(b.Trace=O={}));var wn;(function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"})(wn||(b.TraceValue=wn={}));b.TraceValues=wn;(function(e){function t(i){if(!z.string(i))return e.Off;switch(i=i.toLowerCase(),i){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 r(i){switch(i){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=r})(O||(b.Trace=O={}));var fe;(function(e){e.Text="text",e.JSON="json"})(fe||(b.TraceFormat=fe={}));(function(e){function t(r){if(!z.string(r))return e.Text;if(r=r.toLowerCase(),r==="json")return e.JSON;else return e.Text}e.fromString=t})(fe||(b.TraceFormat=fe={}));var _n;(function(e){e.type=new C.NotificationType("$/setTrace")})(_n||(b.SetTraceNotification=_n={}));var mr;(function(e){e.type=new C.NotificationType("$/logTrace")})(mr||(b.LogTraceNotification=mr={}));var qt;(function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"})(qt||(b.ConnectionErrors=qt={}));class Tt extends Error{code;constructor(e,t){super(t);this.code=e,Object.setPrototypeOf(this,Tt.prototype)}}b.ConnectionError=Tt;var Dn;(function(e){function t(r){let i=r;return i&&z.func(i.cancelUndispatched)}e.is=t})(Dn||(b.ConnectionStrategy=Dn={}));var hr;(function(e){function t(r){let i=r;return i&&(i.kind===void 0||i.kind==="id")&&z.func(i.createCancellationTokenSource)&&(i.dispose===void 0||z.func(i.dispose))}e.is=t})(hr||(b.IdCancellationReceiverStrategy=hr={}));var Sn;(function(e){function t(r){let i=r;return i&&i.kind==="request"&&z.func(i.createCancellationTokenSource)&&(i.dispose===void 0||z.func(i.dispose))}e.is=t})(Sn||(b.RequestCancellationReceiverStrategy=Sn={}));var dr;(function(e){e.Message=Object.freeze({createCancellationTokenSource(r){return new xn.CancellationTokenSource}});function t(r){return hr.is(r)||Sn.is(r)}e.is=t})(dr||(b.CancellationReceiverStrategy=dr={}));var Tr;(function(e){e.Message=Object.freeze({sendCancellation(r,i){return r.sendNotification(Bt.type,{id:i})},cleanup(r){}});function t(r){let i=r;return i&&z.func(i.sendCancellation)&&z.func(i.cleanup)}e.is=t})(Tr||(b.CancellationSenderStrategy=Tr={}));var gr;(function(e){e.Message=Object.freeze({receiver:dr.Message,sender:Tr.Message});function t(r){let i=r;return i&&dr.is(i.receiver)&&Tr.is(i.sender)}e.is=t})(gr||(b.CancellationStrategy=gr={}));var yr;(function(e){function t(r){let i=r;return i&&z.func(i.handleMessage)}e.is=t})(yr||(b.MessageStrategy=yr={}));var Iu;(function(e){function t(r){let i=r;return i&&(gr.is(i.cancellationStrategy)||Dn.is(i.connectionStrategy)||yr.is(i.messageStrategy)||z.number(i.maxParallelism))}e.is=t})(Iu||(b.ConnectionOptions=Iu={}));var ke;(function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"})(ke||(ke={}));function Qd(e,t,r,i){let s=r!==void 0?r:b.NullLogger,a=0,p=0,T=0,E="2.0",A=i?.maxParallelism??-1,N=0,U=void 0,M=new Map,Y=void 0,ue=new Map,Ie=new Map,tt,Te=new bu.LinkedMap,_e=new Map,rt=new Set,Me=new Map,v=O.Off,ge=fe.Text,H,he=ke.New,De=new vt.Emitter,jt=new vt.Emitter,Ce=new vt.Emitter,J=new vt.Emitter,pe=new vt.Emitter,oe=i&&i.cancellationStrategy?i.cancellationStrategy:gr.Message;function Ne(l){return}function Le(){return he===ke.Listening}function Un(){return he===ke.Closed}function nt(){return he===ke.Disposed}function jn(){if(he===ke.New||he===ke.Listening)he=ke.Closed,jt.fire(void 0)}function mp(l){De.fire([l,void 0,void 0])}function hp(l){De.fire(l)}e.onClose(jn),e.onError(mp),t.onClose(jn),t.onError(hp);function Vn(l){if(l===null)throw Error("Can't send requests with id null since the response can't be correlated.");return"req-"+l.toString()}function dp(l){if(l===null)return"res-unknown-"+(++T).toString();else return"res-"+l.toString()}function Tp(){return"not-"+(++p).toString()}function gp(l,y){if(C.Message.isRequest(y))l.set(Vn(y.id),y);else if(C.Message.isResponse(y))if(A===-1)l.set(dp(y.id),y);else zn(y);else l.set(Tp(),y)}function wr(){if(tt||Te.size===0)return;if(A!==-1&&N>=A)return;tt=(0,Au.default)().timer.setImmediate(async()=>{if(tt=void 0,Te.size===0)return;if(A!==-1&&N>=A)return;let l=Te.shift(),y;try{N++;let x=i?.messageStrategy;if(yr.is(x))y=x.handleMessage(l,Wn);else y=Wn(l)}catch(x){s.error(`Processing message queue failed: ${x.toString()}`)}finally{if(y instanceof Promise)y.then(()=>{N--,wr()}).catch((x)=>{s.error(`Processing message queue failed: ${x.toString()}`)});else N--;wr()}})}async function Wn(l){if(C.Message.isRequest(l))return xp(l);else if(C.Message.isNotification(l))return Ep(l);else if(C.Message.isResponse(l))return zn(l);else return kp(l)}let yp=(l)=>{try{if(C.Message.isNotification(l)&&l.method===Bt.type.method){let y=l.params.id,x=Vn(y),D=Te.get(x);if(C.Message.isRequest(D)){let W=i?.connectionStrategy,q=W&&W.cancelUndispatched?W.cancelUndispatched(D,Ne):Ne(D);if(q&&(q.error!==void 0||q.result!==void 0)){Te.delete(x),Me.delete(y),q.id=D.id,_r(q,l.method,Date.now()),t.write(q).catch(()=>s.error("Sending response for canceled message failed."));return}}let R=Me.get(y);if(R!==void 0){R.cancel(),Dr(l);return}else rt.add(y)}gp(Te,l)}finally{wr()}};async function xp(l){if(nt())return Promise.resolve();function y(K,te,G){let F={jsonrpc:E,id:l.id};if(K instanceof C.ResponseError)F.error=K.toJson();else F.result=K===void 0?null:K;return _r(F,te,G),t.write(F)}function x(K,te,G){let F={jsonrpc:E,id:l.id,error:K.toJson()};return _r(F,te,G),t.write(F)}Dp(l);let D=M.get(l.method),R,W;if(D)R=D.type,W=D.handler;let q=Date.now();if(W||U){let K=l.id??String(Date.now()),te=hr.is(oe.receiver)?oe.receiver.createCancellationTokenSource(K):oe.receiver.createCancellationTokenSource(l);if(l.id!==null&&rt.has(l.id))te.cancel();if(l.id!==null)Me.set(K,te);try{let G;if(W)if(l.params===void 0){if(R!==void 0&&R.numberOfParams!==0)return x(new C.ResponseError(C.ErrorCodes.InvalidParams,`Request ${l.method} defines ${R.numberOfParams} params but received none.`),l.method,q);G=W(te.token)}else if(Array.isArray(l.params)){if(R!==void 0&&R.parameterStructures===C.ParameterStructures.byName)return x(new C.ResponseError(C.ErrorCodes.InvalidParams,`Request ${l.method} defines parameters by name but received parameters by position`),l.method,q);G=W(...l.params,te.token)}else{if(R!==void 0&&R.parameterStructures===C.ParameterStructures.byPosition)return x(new C.ResponseError(C.ErrorCodes.InvalidParams,`Request ${l.method} defines parameters by position but received parameters by name`),l.method,q);G=W(l.params,te.token)}else if(U)G=U(l.method,l.params,te.token);let F=await G;await y(F,l.method,q)}catch(G){if(G instanceof C.ResponseError)await y(G,l.method,q);else if(G&&z.string(G.message))await x(new C.ResponseError(C.ErrorCodes.InternalError,`Request ${l.method} failed with message: ${G.message}`),l.method,q);else await x(new C.ResponseError(C.ErrorCodes.InternalError,`Request ${l.method} failed unexpectedly without providing any details.`),l.method,q)}finally{Me.delete(K)}}else await x(new C.ResponseError(C.ErrorCodes.MethodNotFound,`Unhandled method ${l.method}`),l.method,q)}function zn(l){if(nt())return;if(l.id===null)if(l.error)s.error(`Received response message without id: Error is:
6
- ${JSON.stringify(l.error,void 0,4)}`);else s.error("Received response message without id. No further error information provided.");else{let y=l.id,x=_e.get(y);if(Sp(l,x),x!==void 0){_e.delete(y);try{if(l.error){let D=l.error;x.reject(new C.ResponseError(D.code,D.message,D.data))}else if(l.result!==void 0)x.resolve(l.result);else throw Error("Should never happen.")}catch(D){if(D.message)s.error(`Response handler '${x.method}' failed with message: ${D.message}`);else s.error(`Response handler '${x.method}' failed unexpectedly.`)}}}}async function Ep(l){if(nt())return;let y=void 0,x;if(l.method===Bt.type.method){let D=l.params.id;rt.delete(D),Dr(l);return}else{let D=ue.get(l.method);if(D)x=D.handler,y=D.type}if(x||Y)try{if(Dr(l),x)if(l.params===void 0){if(y!==void 0){if(y.numberOfParams!==0&&y.parameterStructures!==C.ParameterStructures.byName)s.error(`Notification ${l.method} defines ${y.numberOfParams} params but received none.`)}await x()}else if(Array.isArray(l.params)){let D=l.params;if(l.method===Mt.type.method&&D.length===2&&En.is(D[0]))await x({token:D[0],value:D[1]});else{if(y!==void 0){if(y.parameterStructures===C.ParameterStructures.byName)s.error(`Notification ${l.method} defines parameters by name but received parameters by position`);if(y.numberOfParams!==l.params.length)s.error(`Notification ${l.method} defines ${y.numberOfParams} params but received ${D.length} arguments`)}await x(...D)}}else{if(y!==void 0&&y.parameterStructures===C.ParameterStructures.byPosition)s.error(`Notification ${l.method} defines parameters by position but received parameters by name`);await x(l.params)}else if(Y)await Y(l.method,l.params)}catch(D){if(D.message)s.error(`Notification handler '${l.method}' failed with message: ${D.message}`);else s.error(`Notification handler '${l.method}' failed unexpectedly.`)}else Ce.fire(l)}function kp(l){if(!l){s.error("Received empty message.");return}s.error(`Received message which is neither a response nor a notification message:
7
- ${JSON.stringify(l,null,4)}`);let y=l;if(z.string(y.id)||z.number(y.id)){let x=y.id,D=_e.get(x);if(D)D.reject(Error("The received response has neither a result nor an error property."))}}function qe(l){if(l===void 0||l===null)return;switch(v){case O.Verbose:return JSON.stringify(l,null,4);case O.Compact:return JSON.stringify(l);default:return}}function wp(l){if(v===O.Off||!H)return;if(ge===fe.Text){let y=void 0;if((v===O.Verbose||v===O.Compact)&&l.params)y=`Params: ${qe(l.params)}`;H.log(`Sending request '${l.method} - (${l.id})'.`,y)}else it("send-request",l)}function _p(l){if(v===O.Off||!H)return;if(ge===fe.Text){let y=void 0;if(v===O.Verbose||v===O.Compact)if(l.params)y=`Params: ${qe(l.params)}`;else y="No parameters provided.";H.log(`Sending notification '${l.method}'.`,y)}else it("send-notification",l)}function _r(l,y,x){if(v===O.Off||!H)return;if(ge===fe.Text){let D=void 0;if(v===O.Verbose||v===O.Compact){if(l.error&&l.error.data)D=`Error data: ${qe(l.error.data)}`;else if(l.result)D=`Result: ${qe(l.result)}`;else if(l.error===void 0)D="No result returned."}H.log(`Sending response '${y} - (${l.id})'. Processing request took ${Date.now()-x}ms`,D)}else it("send-response",l)}function Dp(l){if(v===O.Off||!H)return;if(ge===fe.Text){let y=void 0;if((v===O.Verbose||v===O.Compact)&&l.params)y=`Params: ${qe(l.params)}`;H.log(`Received request '${l.method} - (${l.id})'.`,y)}else it("receive-request",l)}function Dr(l){if(v===O.Off||!H||l.method===mr.type.method)return;if(ge===fe.Text){let y=void 0;if(v===O.Verbose||v===O.Compact)if(l.params)y=`Params: ${qe(l.params)}`;else y="No parameters provided.";H.log(`Received notification '${l.method}'.`,y)}else it("receive-notification",l)}function Sp(l,y){if(v===O.Off||!H)return;if(ge===fe.Text){let x=void 0;if(v===O.Verbose||v===O.Compact){if(l.error&&l.error.data)x=`Error data: ${qe(l.error.data)}`;else if(l.result)x=`Result: ${qe(l.result)}`;else if(l.error===void 0)x="No result returned."}if(y){let D=l.error?` Request failed: ${l.error.message} (${l.error.code}).`:"";H.log(`Received response '${y.method} - (${l.id})' in ${Date.now()-y.timerStart}ms.${D}`,x)}else H.log(`Received response ${l.id} without active response promise.`,x)}else it("receive-response",l)}function it(l,y){if(!H||v===O.Off)return;let x={isLSPMessage:!0,type:l,message:y,timestamp:Date.now()};H.log(x)}function xt(){if(Un())throw new Tt(qt.Closed,"Connection is closed.");if(nt())throw new Tt(qt.Disposed,"Connection is disposed.")}function Pp(){if(Le())throw new Tt(qt.AlreadyListening,"Connection is already listening")}function Ap(){if(!Le())throw Error("Call listen() first.")}function Et(l){if(l===void 0)return null;else return l}function Hn(l){if(l===null)return;else return l}function Gn(l){return l!==void 0&&l!==null&&!Array.isArray(l)&&typeof l==="object"}function Sr(l,y){switch(l){case C.ParameterStructures.auto:if(Gn(y))return Hn(y);else return[Et(y)];case C.ParameterStructures.byName:if(!Gn(y))throw Error("Received parameters by name but param is not an object literal.");return Hn(y);case C.ParameterStructures.byPosition:return[Et(y)];default:throw Error(`Unknown parameter structure ${l.toString()}`)}}function $n(l,y){let x,D=l.numberOfParams;switch(D){case 0:x=void 0;break;case 1:x=Sr(l.parameterStructures,y[0]);break;default:x=[];for(let R=0;R<y.length&&R<D;R++)x.push(Et(y[R]));if(y.length<D)for(let R=y.length;R<D;R++)x.push(null);break}return x}let We={sendNotification:(l,...y)=>{xt();let x,D;if(z.string(l)){x=l;let W=y[0],q=0,K=C.ParameterStructures.auto;if(C.ParameterStructures.is(W))q=1,K=W;let te=y.length,G=te-q;switch(G){case 0:D=void 0;break;case 1:D=Sr(K,y[q]);break;default:if(K===C.ParameterStructures.byName)throw Error(`Received ${G} parameters for 'by Name' notification parameter structure.`);D=y.slice(q,te).map((F)=>Et(F));break}}else{let W=y;x=l.method,D=$n(l,W)}let R={jsonrpc:E,method:x,params:D};return _p(R),t.write(R).catch((W)=>{throw s.error("Sending notification failed."),W})},onNotification:(l,y)=>{xt();let x;if(z.func(l))Y=l;else if(y)if(z.string(l))x=l,ue.set(l,{type:void 0,handler:y});else x=l.method,ue.set(l.method,{type:l,handler:y});return{dispose:()=>{if(x!==void 0){if(ue.get(x)?.handler===y)ue.delete(x)}else if(Y===l)Y=void 0}}},onProgress:(l,y,x)=>{if(Ie.has(y))throw Error(`Progress handler for token ${y} already registered`);return Ie.set(y,x),{dispose:()=>{if(Ie.get(y)===x)Ie.delete(y)}}},sendProgress:(l,y,x)=>We.sendNotification(Mt.type,{token:y,value:x}),onUnhandledProgress:J.event,sendRequest:(l,...y)=>{xt(),Ap();function x(F,ye){let Je=oe.sender.sendCancellation(F,ye);if(Je===void 0)s.log(`Received no promise from cancellation strategy when cancelling id ${ye}`);else Je.catch(()=>{s.log(`Sending cancellation messages for id ${ye} failed.`)})}let D,R,W=void 0;if(z.string(l)){D=l;let F=y[0],ye=y[y.length-1],Je=0,kt=C.ParameterStructures.auto;if(C.ParameterStructures.is(F))Je=1,kt=F;let ze=y.length;if(xn.CancellationToken.is(ye))ze=ze-1,W=ye;let Se=ze-Je;switch(Se){case 0:R=void 0;break;case 1:R=Sr(kt,y[Je]);break;default:if(kt===C.ParameterStructures.byName)throw Error(`Received ${Se} parameters for 'by Name' request parameter structure.`);R=y.slice(Je,ze).map((bp)=>Et(bp));break}}else{let F=y;D=l.method,R=$n(l,F);let ye=l.numberOfParams;W=xn.CancellationToken.is(F[ye])?F[ye]:void 0}let q=a++,K,te=!1;if(W!==void 0)if(W.isCancellationRequested)te=!0;else K=W.onCancellationRequested(()=>{x(We,q)});let G={jsonrpc:E,id:q,method:D,params:R};if(wp(G),typeof oe.sender.enableCancellation==="function")oe.sender.enableCancellation(G);return new Promise(async(F,ye)=>{let Je=(Se)=>{F(Se),oe.sender.cleanup(q),K?.dispose()},kt=(Se)=>{ye(Se),oe.sender.cleanup(q),K?.dispose()},ze={method:D,timerStart:Date.now(),resolve:Je,reject:kt};try{if(_e.set(q,ze),await t.write(G),te)x(We,q)}catch(Se){throw _e.delete(q),ze.reject(new C.ResponseError(C.ErrorCodes.MessageWriteError,Se.message?Se.message:"Unknown reason")),s.error("Sending request failed."),Se}})},onRequest:(l,y)=>{xt();let x=null;if(kn.is(l))x=void 0,U=l;else if(z.string(l)){if(x=null,y!==void 0)x=l,M.set(l,{handler:y,type:void 0})}else if(y!==void 0)x=l.method,M.set(l.method,{type:l,handler:y});return{dispose:()=>{if(x===null)return;if(x!==void 0){if(M.get(x)?.handler===y)M.delete(x)}else if(U===l)U=void 0}}},hasPendingResponse:()=>_e.size>0,trace:async(l,y,x)=>{let D=!1,R=fe.Text;if(x!==void 0)if(z.boolean(x))D=x;else D=x.sendNotification||!1,R=x.traceFormat||fe.Text;if(v=l,ge=R,v===O.Off)H=void 0;else H=y;if(D&&!Un()&&!nt())await We.sendNotification(_n.type,{value:O.toString(l)})},onError:De.event,onClose:jt.event,onUnhandledNotification:Ce.event,onDispose:pe.event,end:()=>{t.end()},dispose:()=>{if(nt())return;he=ke.Disposed,pe.fire(void 0);let l=new C.ResponseError(C.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let y of _e.values())y.reject(l);if(_e=new Map,Me=new Map,rt=new Set,Te=new bu.LinkedMap,z.func(t.dispose))t.dispose();if(z.func(e.dispose))e.dispose()},listen:()=>{xt(),Pp(),he=ke.Listening,e.listen(yp)},inspect:()=>{(0,Au.default)().console.log("inspect")}};return We.onNotification(mr.type,(l)=>{if(v===O.Off||!H)return;let y=v===O.Verbose||v===O.Compact;H.log(l.message,y?l.verbose:void 0)}),We.onNotification(Mt.type,async(l)=>{let y=Ie.get(l.token);if(y)await y(l.value);else J.fire(l)}),We}});var xr=o(function(d){var Yd=d&&d.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(d,"__esModule",{value:!0});d.ProgressType=d.ProgressToken=d.createMessageConnection=d.NullLogger=d.ConnectionOptions=d.ConnectionStrategy=d.AbstractMessageBuffer=d.WriteableStreamMessageWriter=d.AbstractMessageWriter=d.MessageWriter=d.ReadableStreamMessageReader=d.AbstractMessageReader=d.MessageReader=d.SharedArrayReceiverStrategy=d.SharedArraySenderStrategy=d.CancellationToken=d.CancellationTokenSource=d.Emitter=d.Event=d.Disposable=d.LRUCache=d.Touch=d.LinkedMap=d.ParameterStructures=d.NotificationType9=d.NotificationType8=d.NotificationType7=d.NotificationType6=d.NotificationType5=d.NotificationType4=d.NotificationType3=d.NotificationType2=d.NotificationType1=d.NotificationType0=d.NotificationType=d.ErrorCodes=d.ResponseError=d.RequestType9=d.RequestType8=d.RequestType7=d.RequestType6=d.RequestType5=d.RequestType4=d.RequestType3=d.RequestType2=d.RequestType1=d.RequestType0=d.RequestType=d.Message=d.RAL=void 0;d.MessageStrategy=d.CancellationStrategy=d.CancellationSenderStrategy=d.RequestCancellationReceiverStrategy=d.IdCancellationReceiverStrategy=d.CancellationReceiverStrategy=d.ConnectionError=d.ConnectionErrors=d.LogTraceNotification=d.SetTraceNotification=d.TraceFormat=d.TraceValues=d.TraceValue=d.Trace=void 0;var B=nn();Object.defineProperty(d,"Message",{enumerable:!0,get:function(){return B.Message}});Object.defineProperty(d,"RequestType",{enumerable:!0,get:function(){return B.RequestType}});Object.defineProperty(d,"RequestType0",{enumerable:!0,get:function(){return B.RequestType0}});Object.defineProperty(d,"RequestType1",{enumerable:!0,get:function(){return B.RequestType1}});Object.defineProperty(d,"RequestType2",{enumerable:!0,get:function(){return B.RequestType2}});Object.defineProperty(d,"RequestType3",{enumerable:!0,get:function(){return B.RequestType3}});Object.defineProperty(d,"RequestType4",{enumerable:!0,get:function(){return B.RequestType4}});Object.defineProperty(d,"RequestType5",{enumerable:!0,get:function(){return B.RequestType5}});Object.defineProperty(d,"RequestType6",{enumerable:!0,get:function(){return B.RequestType6}});Object.defineProperty(d,"RequestType7",{enumerable:!0,get:function(){return B.RequestType7}});Object.defineProperty(d,"RequestType8",{enumerable:!0,get:function(){return B.RequestType8}});Object.defineProperty(d,"RequestType9",{enumerable:!0,get:function(){return B.RequestType9}});Object.defineProperty(d,"ResponseError",{enumerable:!0,get:function(){return B.ResponseError}});Object.defineProperty(d,"ErrorCodes",{enumerable:!0,get:function(){return B.ErrorCodes}});Object.defineProperty(d,"NotificationType",{enumerable:!0,get:function(){return B.NotificationType}});Object.defineProperty(d,"NotificationType0",{enumerable:!0,get:function(){return B.NotificationType0}});Object.defineProperty(d,"NotificationType1",{enumerable:!0,get:function(){return B.NotificationType1}});Object.defineProperty(d,"NotificationType2",{enumerable:!0,get:function(){return B.NotificationType2}});Object.defineProperty(d,"NotificationType3",{enumerable:!0,get:function(){return B.NotificationType3}});Object.defineProperty(d,"NotificationType4",{enumerable:!0,get:function(){return B.NotificationType4}});Object.defineProperty(d,"NotificationType5",{enumerable:!0,get:function(){return B.NotificationType5}});Object.defineProperty(d,"NotificationType6",{enumerable:!0,get:function(){return B.NotificationType6}});Object.defineProperty(d,"NotificationType7",{enumerable:!0,get:function(){return B.NotificationType7}});Object.defineProperty(d,"NotificationType8",{enumerable:!0,get:function(){return B.NotificationType8}});Object.defineProperty(d,"NotificationType9",{enumerable:!0,get:function(){return B.NotificationType9}});Object.defineProperty(d,"ParameterStructures",{enumerable:!0,get:function(){return B.ParameterStructures}});var Pn=on();Object.defineProperty(d,"LinkedMap",{enumerable:!0,get:function(){return Pn.LinkedMap}});Object.defineProperty(d,"LRUCache",{enumerable:!0,get:function(){return Pn.LRUCache}});Object.defineProperty(d,"Touch",{enumerable:!0,get:function(){return Pn.Touch}});var Xd=tu();Object.defineProperty(d,"Disposable",{enumerable:!0,get:function(){return Xd.Disposable}});var Lu=mt();Object.defineProperty(d,"Event",{enumerable:!0,get:function(){return Lu.Event}});Object.defineProperty(d,"Emitter",{enumerable:!0,get:function(){return Lu.Emitter}});var Ju=fr();Object.defineProperty(d,"CancellationTokenSource",{enumerable:!0,get:function(){return Ju.CancellationTokenSource}});Object.defineProperty(d,"CancellationToken",{enumerable:!0,get:function(){return Ju.CancellationToken}});var Ru=fu();Object.defineProperty(d,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return Ru.SharedArraySenderStrategy}});Object.defineProperty(d,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return Ru.SharedArrayReceiverStrategy}});var An=Tu();Object.defineProperty(d,"MessageReader",{enumerable:!0,get:function(){return An.MessageReader}});Object.defineProperty(d,"AbstractMessageReader",{enumerable:!0,get:function(){return An.AbstractMessageReader}});Object.defineProperty(d,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return An.ReadableStreamMessageReader}});var bn=wu();Object.defineProperty(d,"MessageWriter",{enumerable:!0,get:function(){return bn.MessageWriter}});Object.defineProperty(d,"AbstractMessageWriter",{enumerable:!0,get:function(){return bn.AbstractMessageWriter}});Object.defineProperty(d,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return bn.WriteableStreamMessageWriter}});var Zd=Pu();Object.defineProperty(d,"AbstractMessageBuffer",{enumerable:!0,get:function(){return Zd.AbstractMessageBuffer}});var Z=Nu();Object.defineProperty(d,"ConnectionStrategy",{enumerable:!0,get:function(){return Z.ConnectionStrategy}});Object.defineProperty(d,"ConnectionOptions",{enumerable:!0,get:function(){return Z.ConnectionOptions}});Object.defineProperty(d,"NullLogger",{enumerable:!0,get:function(){return Z.NullLogger}});Object.defineProperty(d,"createMessageConnection",{enumerable:!0,get:function(){return Z.createMessageConnection}});Object.defineProperty(d,"ProgressToken",{enumerable:!0,get:function(){return Z.ProgressToken}});Object.defineProperty(d,"ProgressType",{enumerable:!0,get:function(){return Z.ProgressType}});Object.defineProperty(d,"Trace",{enumerable:!0,get:function(){return Z.Trace}});Object.defineProperty(d,"TraceValue",{enumerable:!0,get:function(){return Z.TraceValue}});Object.defineProperty(d,"TraceFormat",{enumerable:!0,get:function(){return Z.TraceFormat}});Object.defineProperty(d,"SetTraceNotification",{enumerable:!0,get:function(){return Z.SetTraceNotification}});Object.defineProperty(d,"LogTraceNotification",{enumerable:!0,get:function(){return Z.LogTraceNotification}});Object.defineProperty(d,"ConnectionErrors",{enumerable:!0,get:function(){return Z.ConnectionErrors}});Object.defineProperty(d,"ConnectionError",{enumerable:!0,get:function(){return Z.ConnectionError}});Object.defineProperty(d,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Z.CancellationReceiverStrategy}});Object.defineProperty(d,"IdCancellationReceiverStrategy",{enumerable:!0,get:function(){return Z.IdCancellationReceiverStrategy}});Object.defineProperty(d,"RequestCancellationReceiverStrategy",{enumerable:!0,get:function(){return Z.RequestCancellationReceiverStrategy}});Object.defineProperty(d,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Z.CancellationSenderStrategy}});Object.defineProperty(d,"CancellationStrategy",{enumerable:!0,get:function(){return Z.CancellationStrategy}});Object.defineProperty(d,"MessageStrategy",{enumerable:!0,get:function(){return Z.MessageStrategy}});Object.defineProperty(d,"TraceValues",{enumerable:!0,get:function(){return Z.TraceValues}});var Kd=Yd(je());d.RAL=Kd.default});var Uu=o(function(Bu){Object.defineProperty(Bu,"__esModule",{value:!0});var Ou=P("util"),Oe=xr();class Cn extends Oe.AbstractMessageBuffer{static emptyBuffer=Buffer.allocUnsafe(0);constructor(e="utf-8"){super(e)}emptyBuffer(){return Cn.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,t){if(e instanceof Buffer)return e.toString(t);else return new Ou.TextDecoder(t).decode(e)}asNative(e,t){if(t===void 0)return e instanceof Buffer?e:Buffer.from(e);else return e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}}class vu{stream;constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),Oe.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),Oe.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),Oe.Disposable.create(()=>this.stream.off("end",e))}onData(e){return this.stream.on("data",e),Oe.Disposable.create(()=>this.stream.off("data",e))}}class Mu{stream;constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),Oe.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),Oe.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),Oe.Disposable.create(()=>this.stream.off("end",e))}write(e,t){return new Promise((r,i)=>{let s=(a)=>{if(a===void 0||a===null)r();else i(a)};if(typeof e==="string")this.stream.write(e,t,s);else this.stream.write(e,s)})}end(){this.stream.end()}}var qu=Object.freeze({messageBuffer:Object.freeze({create:(e)=>new Cn(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(e,void 0,0),t.charset))}catch(r){return Promise.reject(r)}}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{try{if(e instanceof Buffer)return Promise.resolve(JSON.parse(e.toString(t.charset)));else return Promise.resolve(JSON.parse(new Ou.TextDecoder(t.charset).decode(e)))}catch(r){return Promise.reject(r)}}})}),stream:Object.freeze({asReadableStream:(e)=>new vu(e),asWritableStream:(e)=>new Mu(e)}),console,timer:Object.freeze({setTimeout(e,t,...r){let i=setTimeout(e,t,...r);return{dispose:()=>clearTimeout(i)}},setImmediate(e,...t){let r=setImmediate(e,...t);return{dispose:()=>clearImmediate(r)}},setInterval(e,t,...r){let i=setInterval(e,t,...r);return{dispose:()=>clearInterval(i)}}})});function In(){return qu}(function(e){function t(){Oe.RAL.install(qu)}e.install=t})(In||(In={}));Bu.default=In});var $u=o(function(L){var Vu=L&&L.__createBinding||(Object.create?function(e,t,r,i){if(i===void 0)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===void 0)i=r;e[i]=t[r]}),tT=L&&L.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Nn=L&&L.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))i[i.length]=s;return i},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var i=e(t),s=0;s<i.length;s++)if(i[s]!=="default")Vu(r,t,i[s])}return tT(r,t),r}}(),rT=L&&L.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))Vu(t,e,r)},nT=L&&L.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(L,"__esModule",{value:!0});L.StreamMessageWriter=L.StreamMessageReader=L.SocketMessageWriter=L.SocketMessageReader=L.PortMessageWriter=L.PortMessageReader=L.IPCMessageWriter=L.IPCMessageReader=void 0;L.generateRandomPipeName=uT;L.createClientPipeTransport=pT;L.createServerPipeTransport=lT;L.createClientSocketTransport=fT;L.createServerSocketTransport=mT;L.createMessageConnection=TT;var Ut=nT(Uu());Ut.default.install();var iT=Nn(P("path")),sT=Nn(P("os")),oT=Nn(P("fs")),ju=P("crypto"),Er=P("net"),me=xr();rT(xr(),L);class Wu extends me.AbstractMessageReader{process;constructor(e){super();this.process=e;let t=this.process;t.on("error",(r)=>this.fireError(r)),t.on("close",()=>this.fireClose())}listen(e){return this.process.on("message",e),me.Disposable.create(()=>this.process.off("message",e))}}L.IPCMessageReader=Wu;class zu extends me.AbstractMessageWriter{process;errorCount;constructor(e){super();this.process=e,this.errorCount=0;let t=this.process;t.on("error",(r)=>this.fireError(r)),t.on("close",()=>this.fireClose)}write(e){try{if(typeof this.process.send==="function")this.process.send(e,void 0,void 0,(t)=>{if(t)this.errorCount++,this.handleError(t,e);else this.errorCount=0});return Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}L.IPCMessageWriter=zu;class Hu extends me.AbstractMessageReader{onData;constructor(e){super();this.onData=new me.Emitter,e.on("close",()=>this.fireClose),e.on("error",(t)=>this.fireError(t)),e.on("message",(t)=>{this.onData.fire(t)})}listen(e){return this.onData.event(e)}}L.PortMessageReader=Hu;class Gu extends me.AbstractMessageWriter{port;errorCount;constructor(e){super();this.port=e,this.errorCount=0,e.on("close",()=>this.fireClose()),e.on("error",(t)=>this.fireError(t))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}L.PortMessageWriter=Gu;class gt extends me.ReadableStreamMessageReader{constructor(e,t="utf-8"){super((0,Ut.default)().stream.asReadableStream(e),t)}}L.SocketMessageReader=gt;class yt extends me.WriteableStreamMessageWriter{socket;constructor(e,t){super((0,Ut.default)().stream.asWritableStream(e),t);this.socket=e}dispose(){super.dispose(),this.socket.destroy()}}L.SocketMessageWriter=yt;class Ln extends me.ReadableStreamMessageReader{constructor(e,t){super((0,Ut.default)().stream.asReadableStream(e),t)}}L.StreamMessageReader=Ln;class Jn extends me.WriteableStreamMessageWriter{constructor(e,t){super((0,Ut.default)().stream.asWritableStream(e),t)}}L.StreamMessageWriter=Jn;var aT=process.env.XDG_RUNTIME_DIR,cT=new Map([["linux",107],["darwin",103]]);function uT(){if(process.platform==="win32")return`\\\\.\\pipe\\lsp-${ju.randomBytes(16).toString("hex")}-sock`;let e=32,t=10,r=oT.realpathSync(aT??sT.tmpdir()),i=cT.get(process.platform);if(i!==void 0)e=Math.min(i-r.length-t,e);if(e<16)throw Error(`Unable to generate a random pipe name with ${e} characters.`);let s=ju.randomBytes(Math.floor(e/2)).toString("hex");return iT.join(r,`lsp-${s}.sock`)}function pT(e,t="utf-8"){let r,i=new Promise((s,a)=>{r=s});return new Promise((s,a)=>{let p=Er.createServer((T)=>{p.close(),r([new gt(T,t),new yt(T,t)])});p.on("error",a),p.listen(e,()=>{p.removeListener("error",a),s({onConnected:()=>i})})})}function lT(e,t="utf-8"){let r=Er.createConnection(e);return[new gt(r,t),new yt(r,t)]}function fT(e,t="utf-8"){let r,i=new Promise((s,a)=>{r=s});return new Promise((s,a)=>{let p=Er.createServer((T)=>{p.close(),r([new gt(T,t),new yt(T,t)])});p.on("error",a),p.listen(e,"127.0.0.1",()=>{p.removeListener("error",a),s({onConnected:()=>i})})})}function mT(e,t="utf-8"){let r=Er.createConnection(e,"127.0.0.1");return[new gt(r,t),new yt(r,t)]}function hT(e){let t=e;return t.read!==void 0&&t.addListener!==void 0}function dT(e){let t=e;return t.write!==void 0&&t.addListener!==void 0}function TT(e,t,r,i){if(!r)r=me.NullLogger;let s=hT(e)?new Ln(e):e,a=dT(t)?new Jn(t):t;if(me.ConnectionStrategy.is(i))i={connectionStrategy:i};return me.createMessageConnection(s,a,r,i)}});var Pr;(function(e){e[e.Text=1]="Text",e[e.Method=2]="Method",e[e.Function=3]="Function",e[e.Constructor=4]="Constructor",e[e.Field=5]="Field",e[e.Variable=6]="Variable",e[e.Class=7]="Class",e[e.Interface=8]="Interface",e[e.Module=9]="Module",e[e.Property=10]="Property",e[e.Unit=11]="Unit",e[e.Value=12]="Value",e[e.Enum=13]="Enum",e[e.Keyword=14]="Keyword",e[e.Snippet=15]="Snippet",e[e.Color=16]="Color",e[e.File=17]="File",e[e.Reference=18]="Reference",e[e.Folder=19]="Folder",e[e.EnumMember=20]="EnumMember",e[e.Constant=21]="Constant",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(Pr||(Pr={}));var Ar;(function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"})(Ar||(Ar={}));var br;(function(e){e[e.None=0]="None",e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest"})(br||(br={}));var Ir;(function(e){e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.Node18=101]="Node18",e[e.Node20=102]="Node20",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve"})(Ir||(Ir={}));var Cr;(function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.UseInstantiationExpressions=1073741824]="UseInstantiationExpressions",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.WriteCallStyleSignature=134217728]="WriteCallStyleSignature",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName"})(Cr||(Cr={}));var st;(function(e){e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.MembersResolved=2097152]="MembersResolved",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.InstantiationExpressionType=16777216]="InstantiationExpressionType",e[e.SingleSignatureType=33554432]="SingleSignatureType",e[e.ObjectTypeKindMask=50332991]="ObjectTypeKindMask",e[e.ContainsSpread=4194304]="ContainsSpread",e[e.ObjectRestType=8388608]="ObjectRestType",e[e.IsClassInstanceClone=67108864]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=134217728]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=268435456]="IdenticalBaseTypeExists",e[e.UnresolvedMembers=536870912]="UnresolvedMembers",e[e.FromTypeNode=1073741824]="FromTypeNode",e[e.IsGenericTypeComputed=4194304]="IsGenericTypeComputed",e[e.IsGenericObjectType=8388608]="IsGenericObjectType",e[e.IsGenericIndexType=16777216]="IsGenericIndexType",e[e.IsGenericType=25165824]="IsGenericType",e[e.ContainsIntersections=33554432]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=67108864]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=134217728]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=33554432]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=67108864]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=134217728]="IsConstrainedTypeVariable"})(st||(st={}));var ot;(function(e){e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Construct=4]="Construct",e[e.Abstract=8]="Abstract",e[e.IsInnerCallChain=16]="IsInnerCallChain",e[e.IsOuterCallChain=32]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=64]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=128]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=256]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=335]="PropagatingFlags",e[e.CallChainFlags=48]="CallChainFlags"})(ot||(ot={}));var Nr;(function(e){e[e.Call=0]="Call",e[e.Construct=1]="Construct"})(Nr||(Nr={}));var wt;(function(e){e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.ConstEnumOnlyModule=268435456]="ConstEnumOnlyModule",e[e.ReplaceableByMethod=536870912]="ReplaceableByMethod",e[e.GlobalLookup=1073741824]="GlobalLookup",e[e.All=536870912]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=13243]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46011]="GetAccessorExcludes",e[e.SetAccessorExcludes=78779]="SetAccessorExcludes",e[e.AccessorExcludes=111547]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer"})(wt||(wt={}));var Q;(function(e){e[e.None=0]="None",e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.Undefined=4]="Undefined",e[e.Null=8]="Null",e[e.Void=16]="Void",e[e.String=32]="String",e[e.Number=64]="Number",e[e.BigInt=128]="BigInt",e[e.Boolean=256]="Boolean",e[e.ESSymbol=512]="ESSymbol",e[e.StringLiteral=1024]="StringLiteral",e[e.NumberLiteral=2048]="NumberLiteral",e[e.BigIntLiteral=4096]="BigIntLiteral",e[e.BooleanLiteral=8192]="BooleanLiteral",e[e.UniqueESSymbol=16384]="UniqueESSymbol",e[e.EnumLiteral=32768]="EnumLiteral",e[e.Enum=65536]="Enum",e[e.NonPrimitive=131072]="NonPrimitive",e[e.Never=262144]="Never",e[e.TypeParameter=524288]="TypeParameter",e[e.Object=1048576]="Object",e[e.Index=2097152]="Index",e[e.TemplateLiteral=4194304]="TemplateLiteral",e[e.StringMapping=8388608]="StringMapping",e[e.Substitution=16777216]="Substitution",e[e.IndexedAccess=33554432]="IndexedAccess",e[e.Conditional=67108864]="Conditional",e[e.Union=134217728]="Union",e[e.Intersection=268435456]="Intersection",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.Reserved3=-2147483648]="Reserved3",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=12]="Nullable",e[e.Literal=15360]="Literal",e[e.Unit=97292]="Unit",e[e.Freshable=80896]="Freshable",e[e.StringOrNumberLiteral=3072]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=19456]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=15388]="DefinitelyFalsy",e[e.PossiblyFalsy=15868]="PossiblyFalsy",e[e.Intrinsic=393983]="Intrinsic",e[e.StringLike=12583968]="StringLike",e[e.NumberLike=67648]="NumberLike",e[e.BigIntLike=4224]="BigIntLike",e[e.BooleanLike=8448]="BooleanLike",e[e.EnumLike=98304]="EnumLike",e[e.ESSymbolLike=16896]="ESSymbolLike",e[e.VoidLike=20]="VoidLike",e[e.Primitive=12713980]="Primitive",e[e.DefinitelyNonNullable=13893600]="DefinitelyNonNullable",e[e.DisjointDomains=12812284]="DisjointDomains",e[e.UnionOrIntersection=402653184]="UnionOrIntersection",e[e.StructuredType=403701760]="StructuredType",e[e.TypeVariable=34078720]="TypeVariable",e[e.InstantiableNonPrimitive=117964800]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=14680064]="InstantiablePrimitive",e[e.Instantiable=132644864]="Instantiable",e[e.StructuredOrInstantiable=536346624]="StructuredOrInstantiable",e[e.ObjectFlagsType=403963917]="ObjectFlagsType",e[e.Simplifiable=102760448]="Simplifiable",e[e.Singleton=394239]="Singleton",e[e.Narrowable=536575971]="Narrowable",e[e.IncludesMask=416808959]="IncludesMask",e[e.IncludesMissingType=524288]="IncludesMissingType",e[e.IncludesNonWideningType=2097152]="IncludesNonWideningType",e[e.IncludesWildcard=33554432]="IncludesWildcard",e[e.IncludesEmptyObject=67108864]="IncludesEmptyObject",e[e.IncludesInstantiable=16777216]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=286523411]="NotPrimitiveUnion"})(Q||(Q={}));var Lr;(function(e){e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier"})(Lr||(Lr={}));var k;(function(e){e[e.EOF=-1]="EOF",e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5765]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"})(k||(k={}));var Vt;(function(e){e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore"})(Vt||(Vt={}));var Jr;(function(e){e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.AssignmentDeclaration="__assignment",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e.ExportEquals="export=",e.Default="default",e.This="this",e.ModuleExports="module.exports"})(Jr||(Jr={}));var Wt;(function(e){e[e.Standard=0]="Standard",e[e.JSX=1]="JSX"})(Wt||(Wt={}));var j;(function(e){e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e[e.JavaScript=3872]="JavaScript"})(j||(j={}));var Pe;(function(e){e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.Reparsed=8]="Reparsed",e[e.Synthesized=16]="Synthesized",e[e.OptionalChain=32]="OptionalChain",e[e.ExportContext=64]="ExportContext",e[e.ContainsThis=128]="ContainsThis",e[e.HasImplicitReturn=256]="HasImplicitReturn",e[e.HasExplicitReturn=512]="HasExplicitReturn",e[e.DisallowInContext=1024]="DisallowInContext",e[e.YieldContext=2048]="YieldContext",e[e.DecoratorContext=4096]="DecoratorContext",e[e.AwaitContext=8192]="AwaitContext",e[e.DisallowConditionalTypesContext=16384]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=32768]="ThisNodeHasError",e[e.JavaScriptFile=65536]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=131072]="ThisNodeOrAnySubNodesHasError",e[e.HasAsyncFunctions=262144]="HasAsyncFunctions",e[e.PossiblyContainsDynamicImport=524288]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=1048576]="PossiblyContainsImportMeta",e[e.HasJSDoc=2097152]="HasJSDoc",e[e.JSDoc=4194304]="JSDoc",e[e.Ambient=8388608]="Ambient",e[e.InWithStatement=16777216]="InWithStatement",e[e.JsonFile=33554432]="JsonFile",e[e.PossiblyContainsDeprecatedTag=67108864]="PossiblyContainsDeprecatedTag",e[e.Unreachable=134217728]="Unreachable",e[e.ReparserTransformedLiteral=268435456]="ReparserTransformedLiteral",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.AwaitUsing=6]="AwaitUsing",e[e.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=262912]="ReachabilityAndEmitFlags",e[e.ContextFlags=25263104]="ContextFlags",e[e.TypeExcludesFlags=10240]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=1572864]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=128]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=262144]="IdentifierIsInJSDocNamespace",e[e.NestedNamespace=32]="NestedNamespace"})(Pe||(Pe={}));var de;(function(e){e[e.None=0]="None",e[e.HasIndices=1]="HasIndices",e[e.Global=2]="Global",e[e.IgnoreCase=4]="IgnoreCase",e[e.Multiline=8]="Multiline",e[e.DotAll=16]="DotAll",e[e.Unicode=32]="Unicode",e[e.UnicodeSets=64]="UnicodeSets",e[e.Sticky=128]="Sticky",e[e.AnyUnicodeMode=96]="AnyUnicodeMode"})(de||(de={}));var at;(function(e){e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred"})(at||(at={}));var zt;(function(e){e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ES2025=12]="ES2025",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest"})(zt||(zt={}));var n;(function(e){e[e.Unknown=0]="Unknown",e[e.EndOfFile=1]="EndOfFile",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ConflictMarkerTrivia=6]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=7]="NonTextFileMarkerTrivia",e[e.NumericLiteral=8]="NumericLiteral",e[e.BigIntLiteral=9]="BigIntLiteral",e[e.StringLiteral=10]="StringLiteral",e[e.JsxText=11]="JsxText",e[e.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=13]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=15]="TemplateHead",e[e.TemplateMiddle=16]="TemplateMiddle",e[e.TemplateTail=17]="TemplateTail",e[e.OpenBraceToken=18]="OpenBraceToken",e[e.CloseBraceToken=19]="CloseBraceToken",e[e.OpenParenToken=20]="OpenParenToken",e[e.CloseParenToken=21]="CloseParenToken",e[e.OpenBracketToken=22]="OpenBracketToken",e[e.CloseBracketToken=23]="CloseBracketToken",e[e.DotToken=24]="DotToken",e[e.DotDotDotToken=25]="DotDotDotToken",e[e.SemicolonToken=26]="SemicolonToken",e[e.CommaToken=27]="CommaToken",e[e.QuestionDotToken=28]="QuestionDotToken",e[e.LessThanToken=29]="LessThanToken",e[e.LessThanSlashToken=30]="LessThanSlashToken",e[e.GreaterThanToken=31]="GreaterThanToken",e[e.LessThanEqualsToken=32]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=34]="EqualsEqualsToken",e[e.ExclamationEqualsToken=35]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",e[e.PlusToken=39]="PlusToken",e[e.MinusToken=40]="MinusToken",e[e.AsteriskToken=41]="AsteriskToken",e[e.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",e[e.SlashToken=43]="SlashToken",e[e.PercentToken=44]="PercentToken",e[e.PlusPlusToken=45]="PlusPlusToken",e[e.MinusMinusToken=46]="MinusMinusToken",e[e.LessThanLessThanToken=47]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=50]="AmpersandToken",e[e.BarToken=51]="BarToken",e[e.CaretToken=52]="CaretToken",e[e.ExclamationToken=53]="ExclamationToken",e[e.TildeToken=54]="TildeToken",e[e.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",e[e.BarBarToken=56]="BarBarToken",e[e.QuestionToken=57]="QuestionToken",e[e.ColonToken=58]="ColonToken",e[e.AtToken=59]="AtToken",e[e.QuestionQuestionToken=60]="QuestionQuestionToken",e[e.BacktickToken=61]="BacktickToken",e[e.HashToken=62]="HashToken",e[e.EqualsToken=63]="EqualsToken",e[e.PlusEqualsToken=64]="PlusEqualsToken",e[e.MinusEqualsToken=65]="MinusEqualsToken",e[e.AsteriskEqualsToken=66]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=68]="SlashEqualsToken",e[e.PercentEqualsToken=69]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=73]="AmpersandEqualsToken",e[e.BarEqualsToken=74]="BarEqualsToken",e[e.BarBarEqualsToken=75]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=78]="CaretEqualsToken",e[e.Identifier=79]="Identifier",e[e.PrivateIdentifier=80]="PrivateIdentifier",e[e.JSDocCommentTextToken=81]="JSDocCommentTextToken",e[e.BreakKeyword=82]="BreakKeyword",e[e.CaseKeyword=83]="CaseKeyword",e[e.CatchKeyword=84]="CatchKeyword",e[e.ClassKeyword=85]="ClassKeyword",e[e.ConstKeyword=86]="ConstKeyword",e[e.ContinueKeyword=87]="ContinueKeyword",e[e.DebuggerKeyword=88]="DebuggerKeyword",e[e.DefaultKeyword=89]="DefaultKeyword",e[e.DeleteKeyword=90]="DeleteKeyword",e[e.DoKeyword=91]="DoKeyword",e[e.ElseKeyword=92]="ElseKeyword",e[e.EnumKeyword=93]="EnumKeyword",e[e.ExportKeyword=94]="ExportKeyword",e[e.ExtendsKeyword=95]="ExtendsKeyword",e[e.FalseKeyword=96]="FalseKeyword",e[e.FinallyKeyword=97]="FinallyKeyword",e[e.ForKeyword=98]="ForKeyword",e[e.FunctionKeyword=99]="FunctionKeyword",e[e.IfKeyword=100]="IfKeyword",e[e.ImportKeyword=101]="ImportKeyword",e[e.InKeyword=102]="InKeyword",e[e.InstanceOfKeyword=103]="InstanceOfKeyword",e[e.NewKeyword=104]="NewKeyword",e[e.NullKeyword=105]="NullKeyword",e[e.ReturnKeyword=106]="ReturnKeyword",e[e.SuperKeyword=107]="SuperKeyword",e[e.SwitchKeyword=108]="SwitchKeyword",e[e.ThisKeyword=109]="ThisKeyword",e[e.ThrowKeyword=110]="ThrowKeyword",e[e.TrueKeyword=111]="TrueKeyword",e[e.TryKeyword=112]="TryKeyword",e[e.TypeOfKeyword=113]="TypeOfKeyword",e[e.VarKeyword=114]="VarKeyword",e[e.VoidKeyword=115]="VoidKeyword",e[e.WhileKeyword=116]="WhileKeyword",e[e.WithKeyword=117]="WithKeyword",e[e.ImplementsKeyword=118]="ImplementsKeyword",e[e.InterfaceKeyword=119]="InterfaceKeyword",e[e.LetKeyword=120]="LetKeyword",e[e.PackageKeyword=121]="PackageKeyword",e[e.PrivateKeyword=122]="PrivateKeyword",e[e.ProtectedKeyword=123]="ProtectedKeyword",e[e.PublicKeyword=124]="PublicKeyword",e[e.StaticKeyword=125]="StaticKeyword",e[e.YieldKeyword=126]="YieldKeyword",e[e.AbstractKeyword=127]="AbstractKeyword",e[e.AccessorKeyword=128]="AccessorKeyword",e[e.AsKeyword=129]="AsKeyword",e[e.AssertsKeyword=130]="AssertsKeyword",e[e.AssertKeyword=131]="AssertKeyword",e[e.AnyKeyword=132]="AnyKeyword",e[e.AsyncKeyword=133]="AsyncKeyword",e[e.AwaitKeyword=134]="AwaitKeyword",e[e.BooleanKeyword=135]="BooleanKeyword",e[e.ConstructorKeyword=136]="ConstructorKeyword",e[e.DeclareKeyword=137]="DeclareKeyword",e[e.GetKeyword=138]="GetKeyword",e[e.ImmediateKeyword=139]="ImmediateKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.DeferKeyword=166]="DeferKeyword",e[e.QualifiedName=167]="QualifiedName",e[e.ComputedPropertyName=168]="ComputedPropertyName",e[e.TypeParameter=169]="TypeParameter",e[e.Parameter=170]="Parameter",e[e.Decorator=171]="Decorator",e[e.PropertySignature=172]="PropertySignature",e[e.PropertyDeclaration=173]="PropertyDeclaration",e[e.MethodSignature=174]="MethodSignature",e[e.MethodDeclaration=175]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",e[e.Constructor=177]="Constructor",e[e.GetAccessor=178]="GetAccessor",e[e.SetAccessor=179]="SetAccessor",e[e.CallSignature=180]="CallSignature",e[e.ConstructSignature=181]="ConstructSignature",e[e.IndexSignature=182]="IndexSignature",e[e.TypePredicate=183]="TypePredicate",e[e.TypeReference=184]="TypeReference",e[e.FunctionType=185]="FunctionType",e[e.ConstructorType=186]="ConstructorType",e[e.TypeQuery=187]="TypeQuery",e[e.TypeLiteral=188]="TypeLiteral",e[e.ArrayType=189]="ArrayType",e[e.TupleType=190]="TupleType",e[e.OptionalType=191]="OptionalType",e[e.RestType=192]="RestType",e[e.UnionType=193]="UnionType",e[e.IntersectionType=194]="IntersectionType",e[e.ConditionalType=195]="ConditionalType",e[e.InferType=196]="InferType",e[e.ParenthesizedType=197]="ParenthesizedType",e[e.ThisType=198]="ThisType",e[e.TypeOperator=199]="TypeOperator",e[e.IndexedAccessType=200]="IndexedAccessType",e[e.MappedType=201]="MappedType",e[e.LiteralType=202]="LiteralType",e[e.NamedTupleMember=203]="NamedTupleMember",e[e.TemplateLiteralType=204]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",e[e.ImportType=206]="ImportType",e[e.ObjectBindingPattern=207]="ObjectBindingPattern",e[e.ArrayBindingPattern=208]="ArrayBindingPattern",e[e.BindingElement=209]="BindingElement",e[e.ArrayLiteralExpression=210]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=211]="ObjectLiteralExpression",e[e.PropertyAccessExpression=212]="PropertyAccessExpression",e[e.ElementAccessExpression=213]="ElementAccessExpression",e[e.CallExpression=214]="CallExpression",e[e.NewExpression=215]="NewExpression",e[e.TaggedTemplateExpression=216]="TaggedTemplateExpression",e[e.TypeAssertionExpression=217]="TypeAssertionExpression",e[e.ParenthesizedExpression=218]="ParenthesizedExpression",e[e.FunctionExpression=219]="FunctionExpression",e[e.ArrowFunction=220]="ArrowFunction",e[e.DeleteExpression=221]="DeleteExpression",e[e.TypeOfExpression=222]="TypeOfExpression",e[e.VoidExpression=223]="VoidExpression",e[e.AwaitExpression=224]="AwaitExpression",e[e.PrefixUnaryExpression=225]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=226]="PostfixUnaryExpression",e[e.BinaryExpression=227]="BinaryExpression",e[e.ConditionalExpression=228]="ConditionalExpression",e[e.TemplateExpression=229]="TemplateExpression",e[e.YieldExpression=230]="YieldExpression",e[e.SpreadElement=231]="SpreadElement",e[e.ClassExpression=232]="ClassExpression",e[e.OmittedExpression=233]="OmittedExpression",e[e.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",e[e.AsExpression=235]="AsExpression",e[e.NonNullExpression=236]="NonNullExpression",e[e.MetaProperty=237]="MetaProperty",e[e.SyntheticExpression=238]="SyntheticExpression",e[e.SatisfiesExpression=239]="SatisfiesExpression",e[e.TemplateSpan=240]="TemplateSpan",e[e.SemicolonClassElement=241]="SemicolonClassElement",e[e.Block=242]="Block",e[e.EmptyStatement=243]="EmptyStatement",e[e.VariableStatement=244]="VariableStatement",e[e.ExpressionStatement=245]="ExpressionStatement",e[e.IfStatement=246]="IfStatement",e[e.DoStatement=247]="DoStatement",e[e.WhileStatement=248]="WhileStatement",e[e.ForStatement=249]="ForStatement",e[e.ForInStatement=250]="ForInStatement",e[e.ForOfStatement=251]="ForOfStatement",e[e.ContinueStatement=252]="ContinueStatement",e[e.BreakStatement=253]="BreakStatement",e[e.ReturnStatement=254]="ReturnStatement",e[e.WithStatement=255]="WithStatement",e[e.SwitchStatement=256]="SwitchStatement",e[e.LabeledStatement=257]="LabeledStatement",e[e.ThrowStatement=258]="ThrowStatement",e[e.TryStatement=259]="TryStatement",e[e.DebuggerStatement=260]="DebuggerStatement",e[e.VariableDeclaration=261]="VariableDeclaration",e[e.VariableDeclarationList=262]="VariableDeclarationList",e[e.FunctionDeclaration=263]="FunctionDeclaration",e[e.ClassDeclaration=264]="ClassDeclaration",e[e.InterfaceDeclaration=265]="InterfaceDeclaration",e[e.TypeAliasDeclaration=266]="TypeAliasDeclaration",e[e.EnumDeclaration=267]="EnumDeclaration",e[e.ModuleDeclaration=268]="ModuleDeclaration",e[e.ModuleBlock=269]="ModuleBlock",e[e.CaseBlock=270]="CaseBlock",e[e.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",e[e.ImportDeclaration=273]="ImportDeclaration",e[e.ImportClause=274]="ImportClause",e[e.NamespaceImport=275]="NamespaceImport",e[e.NamedImports=276]="NamedImports",e[e.ImportSpecifier=277]="ImportSpecifier",e[e.ExportAssignment=278]="ExportAssignment",e[e.ExportDeclaration=279]="ExportDeclaration",e[e.NamedExports=280]="NamedExports",e[e.NamespaceExport=281]="NamespaceExport",e[e.ExportSpecifier=282]="ExportSpecifier",e[e.MissingDeclaration=283]="MissingDeclaration",e[e.ExternalModuleReference=284]="ExternalModuleReference",e[e.JsxElement=285]="JsxElement",e[e.JsxSelfClosingElement=286]="JsxSelfClosingElement",e[e.JsxOpeningElement=287]="JsxOpeningElement",e[e.JsxClosingElement=288]="JsxClosingElement",e[e.JsxFragment=289]="JsxFragment",e[e.JsxOpeningFragment=290]="JsxOpeningFragment",e[e.JsxClosingFragment=291]="JsxClosingFragment",e[e.JsxAttribute=292]="JsxAttribute",e[e.JsxAttributes=293]="JsxAttributes",e[e.JsxSpreadAttribute=294]="JsxSpreadAttribute",e[e.JsxExpression=295]="JsxExpression",e[e.JsxNamespacedName=296]="JsxNamespacedName",e[e.CaseClause=297]="CaseClause",e[e.DefaultClause=298]="DefaultClause",e[e.HeritageClause=299]="HeritageClause",e[e.CatchClause=300]="CatchClause",e[e.ImportAttributes=301]="ImportAttributes",e[e.ImportAttribute=302]="ImportAttribute",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.JSDocTypeExpression=308]="JSDocTypeExpression",e[e.JSDocNameReference=309]="JSDocNameReference",e[e.JSDocAllType=310]="JSDocAllType",e[e.JSDocNullableType=311]="JSDocNullableType",e[e.JSDocNonNullableType=312]="JSDocNonNullableType",e[e.JSDocOptionalType=313]="JSDocOptionalType",e[e.JSDocVariadicType=314]="JSDocVariadicType",e[e.JSDoc=315]="JSDoc",e[e.JSDocText=316]="JSDocText",e[e.JSDocTypeLiteral=317]="JSDocTypeLiteral",e[e.JSDocSignature=318]="JSDocSignature",e[e.JSDocLink=319]="JSDocLink",e[e.JSDocLinkCode=320]="JSDocLinkCode",e[e.JSDocLinkPlain=321]="JSDocLinkPlain",e[e.JSDocUnknownTag=322]="JSDocUnknownTag",e[e.JSDocAugmentsTag=323]="JSDocAugmentsTag",e[e.JSDocImplementsTag=324]="JSDocImplementsTag",e[e.JSDocDeprecatedTag=325]="JSDocDeprecatedTag",e[e.JSDocPublicTag=326]="JSDocPublicTag",e[e.JSDocPrivateTag=327]="JSDocPrivateTag",e[e.JSDocProtectedTag=328]="JSDocProtectedTag",e[e.JSDocReadonlyTag=329]="JSDocReadonlyTag",e[e.JSDocOverrideTag=330]="JSDocOverrideTag",e[e.JSDocCallbackTag=331]="JSDocCallbackTag",e[e.JSDocOverloadTag=332]="JSDocOverloadTag",e[e.JSDocParameterTag=333]="JSDocParameterTag",e[e.JSDocReturnTag=334]="JSDocReturnTag",e[e.JSDocThisTag=335]="JSDocThisTag",e[e.JSDocTypeTag=336]="JSDocTypeTag",e[e.JSDocTemplateTag=337]="JSDocTemplateTag",e[e.JSDocTypedefTag=338]="JSDocTypedefTag",e[e.JSDocSeeTag=339]="JSDocSeeTag",e[e.JSDocPropertyTag=340]="JSDocPropertyTag",e[e.JSDocThrowsTag=341]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=342]="JSDocSatisfiesTag",e[e.JSDocImportTag=343]="JSDocImportTag",e[e.SyntaxList=344]="SyntaxList",e[e.JSTypeAliasDeclaration=345]="JSTypeAliasDeclaration",e[e.JSImportDeclaration=346]="JSImportDeclaration",e[e.NotEmittedStatement=347]="NotEmittedStatement",e[e.PartiallyEmittedExpression=348]="PartiallyEmittedExpression",e[e.SyntheticReferenceExpression=349]="SyntheticReferenceExpression",e[e.NotEmittedTypeElement=350]="NotEmittedTypeElement",e[e.Count=351]="Count",e[e.FirstAssignment=63]="FirstAssignment",e[e.LastAssignment=78]="LastAssignment",e[e.FirstCompoundAssignment=64]="FirstCompoundAssignment",e[e.LastCompoundAssignment=78]="LastCompoundAssignment",e[e.FirstReservedWord=82]="FirstReservedWord",e[e.LastReservedWord=117]="LastReservedWord",e[e.FirstKeyword=82]="FirstKeyword",e[e.LastKeyword=166]="LastKeyword",e[e.FirstFutureReservedWord=118]="FirstFutureReservedWord",e[e.LastFutureReservedWord=126]="LastFutureReservedWord",e[e.FirstTypeNode=183]="FirstTypeNode",e[e.LastTypeNode=206]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=78]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=166]="LastToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=14]="LastLiteralToken",e[e.FirstTemplateToken=14]="FirstTemplateToken",e[e.LastTemplateToken=17]="LastTemplateToken",e[e.FirstBinaryOperator=29]="FirstBinaryOperator",e[e.LastBinaryOperator=78]="LastBinaryOperator",e[e.FirstStatement=244]="FirstStatement",e[e.LastStatement=260]="LastStatement",e[e.FirstNode=167]="FirstNode",e[e.FirstJSDocNode=308]="FirstJSDocNode",e[e.LastJSDocNode=343]="LastJSDocNode",e[e.FirstJSDocTagNode=322]="FirstJSDocTagNode",e[e.LastJSDocTagNode=343]="LastJSDocTagNode",e[e.FirstContextualKeyword=127]="FirstContextualKeyword",e[e.LastContextualKeyword=166]="LastContextualKeyword",e[e.LastUnaryOperator=54]="LastUnaryOperator",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=6]="LastTriviaToken"})(n||(n={}));var Be;(function(e){e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",e[e.SingleQuote=65536]="SingleQuote",e[e.PrecedingJSDocWithDeprecated=131072]="PrecedingJSDocWithDeprecated",e[e.PrecedingJSDocWithSeeOrLink=262144]="PrecedingJSDocWithSeeOrLink",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=72716]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7180]="TemplateLiteralLikeFlags",e[e.RegularExpressionLiteralFlags=4]="RegularExpressionLiteralFlags",e[e.IsInvalid=26656]="IsInvalid"})(Be||(Be={}));function Fn(e){let t=e;return t.length>=3&&t.charCodeAt(0)===k._&&t.charCodeAt(1)===k._&&t.charCodeAt(2)===k._?t.slice(1):t}function Qn(e){return{statements:e.statements,endOfFileToken:e.endOfFileToken,text:e.text,fileName:e.fileName,path:e.path,languageVariant:e.languageVariant,scriptKind:e.scriptKind,isDeclarationFile:e.isDeclarationFile,referencedFiles:e.referencedFiles,typeReferenceDirectives:e.typeReferenceDirectives,libReferenceDirectives:e.libReferenceDirectives,imports:e.imports,moduleAugmentations:e.moduleAugmentations,ambientModuleNames:e.ambientModuleNames,externalModuleIndicator:e.externalModuleIndicator,tokenCache:void 0}}var ae;(function(e){e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",e[e.Satisfies=32]="Satisfies",e[e.ExcludeJSDocTypeAssertion=64]="ExcludeJSDocTypeAssertion",e[e.Assignments=128]="Assignments",e[e.Comma=256]="Comma",e[e.Assertions=38]="Assertions",e[e.All=63]="All",e[e.AllExceptAssertionsOrExpressionsWithTypeArguments=9]="AllExceptAssertionsOrExpressionsWithTypeArguments",e[e.ExpressionTypePassthrough=385]="ExpressionTypePassthrough"})(ae||(ae={}));function I(e){return e.kind===n.Identifier}function Yn(e){return e.kind===n.CaseBlock}function Xn(e){return e.kind===n.CatchClause}function _t(e){return e.kind===n.Block}function Zn(e){return e.kind===n.VariableDeclaration}function Kn(e){return e.kind===n.VariableDeclarationList}function Rr(e){return e.kind===n.ExpressionWithTypeArguments}function Dt(e){return e.kind===n.ImportAttributes}function Or(e){return e.kind===n.TemplateHead}function vr(e){return e.kind===n.JsxAttributes}function ei(e){return e.kind===n.JsxOpeningElement}function ti(e){return e.kind===n.JsxOpeningFragment}function ri(e){return e.kind===n.JsxClosingFragment}function ni(e){return e.kind===n.JsxClosingElement}function Mr(e){return e.kind===n.ImportClause}function qr(e){return e.kind===n.TypeParameter}function ii(e){return e.kind===n.Identifier||e.kind===n.StringLiteral}function St(e){return e.kind===n.Identifier||e.kind===n.StringLiteral}function xe(e){let t=e.kind;return t===n.Identifier||t===n.StringLiteral||t===n.NoSubstitutionTemplateLiteral||t===n.NumericLiteral||t===n.ComputedPropertyName||t===n.PrivateIdentifier||t===n.BigIntLiteral}function si(e){return e.kind===n.ModuleBlock||e.kind===n.ModuleDeclaration}function Br(e){return e.kind===n.Identifier||e.kind===n.ModuleDeclaration}function oi(e){return e.kind===n.Identifier||e.kind===n.QualifiedName||e.kind===n.ExternalModuleReference}function ai(e){return e.kind===n.NamespaceImport||e.kind===n.NamedImports}function ci(e){return e.kind===n.NamespaceExport||e.kind===n.NamedExports}function ui(e){return e.kind===n.Identifier||e.kind===n.PrivateIdentifier}function Ee(e){return e.kind===n.Identifier||e.kind===n.QualifiedName}function Ht(e){return e.kind===n.Identifier||e.kind===n.ObjectBindingPattern||e.kind===n.ArrayBindingPattern}function pi(e){return e.kind===n.Identifier||e.kind===n.JsxNamespacedName}function li(e){let t=e.kind;return t===n.StringLiteral||t===n.JsxExpression||t===n.JsxElement||t===n.JsxSelfClosingElement||t===n.JsxFragment}function Ur(e){return e.kind===n.TemplateMiddle||e.kind===n.TemplateTail}function fi(e){return e.kind===n.TemplateExpression||e.kind===n.NoSubstitutionTemplateLiteral}function mi(e){return e.kind===n.Identifier||e.kind===n.ThisType}function hi(e){return e.kind===n.Identifier||e.kind===n.StringLiteral}function He(e){return e.kind===n.Block}function Ip(e){return e===n.EqualsToken||Gp(e)}function Cp(e){return $p(e)||e===n.CommaToken}function Np(e){return e===n.AsteriskAsteriskToken}function Lp(e){return e===n.AsteriskToken||e===n.SlashToken||e===n.PercentToken}function Jp(e){return Np(e)||Lp(e)}function Rp(e){return e===n.PlusToken||e===n.MinusToken}function Op(e){return Jp(e)||Rp(e)}function vp(e){return e===n.LessThanLessThanToken||e===n.GreaterThanGreaterThanToken||e===n.GreaterThanGreaterThanGreaterThanToken}function Mp(e){return Op(e)||vp(e)}function qp(e){return e===n.LessThanToken||e===n.LessThanEqualsToken||e===n.GreaterThanToken||e===n.GreaterThanEqualsToken||e===n.InstanceOfKeyword||e===n.InKeyword}function Bp(e){return Mp(e)||qp(e)}function Up(e){return e===n.EqualsEqualsToken||e===n.EqualsEqualsEqualsToken||e===n.ExclamationEqualsEqualsToken||e===n.ExclamationEqualsToken}function jp(e){return Bp(e)||Up(e)}function Vp(e){return e===n.AmpersandToken||e===n.BarToken||e===n.CaretToken}function Wp(e){return jp(e)||Vp(e)}function zp(e){return e===n.AmpersandAmpersandToken||e===n.BarBarToken}function Hp(e){return Wp(e)||zp(e)}function Gp(e){return e===n.PlusEqualsToken||e===n.MinusEqualsToken||e===n.AsteriskAsteriskEqualsToken||e===n.AsteriskEqualsToken||e===n.SlashEqualsToken||e===n.PercentEqualsToken||e===n.AmpersandEqualsToken||e===n.BarEqualsToken||e===n.CaretEqualsToken||e===n.LessThanLessThanEqualsToken||e===n.GreaterThanGreaterThanGreaterThanEqualsToken||e===n.GreaterThanGreaterThanEqualsToken||e===n.BarBarEqualsToken||e===n.AmpersandAmpersandEqualsToken||e===n.QuestionQuestionEqualsToken}function $p(e){return e===n.QuestionQuestionToken||Hp(e)||Ip(e)}function di(e){return e>=n.FirstJSDocNode&&e<=n.LastJSDocNode}function Ti(e){return e.kind===n.EndOfFile}function Pt(e){return e.kind===n.DotDotDotToken}function Gt(e){return e.kind===n.QuestionToken}function gi(e){return e.kind===n.ExclamationToken}function yi(e){return e.kind===n.ColonToken}function xi(e){return e.kind===n.EqualsToken}function At(e){return e.kind===n.AsteriskToken}function Ei(e){return e.kind===n.EqualsGreaterThanToken}function bt(e){return e.kind===n.QuestionDotToken}function ki(e){return e.kind===n.AssertsKeyword}function jr(e){return e.kind===n.AwaitKeyword}function wi(e){return Cp(e.kind)}function S(e){return Fp(e.kind)}function Fp(e){return e>=n.FirstTypeNode&&e<=n.LastTypeNode||e===n.AnyKeyword||e===n.UnknownKeyword||e===n.NumberKeyword||e===n.BigIntKeyword||e===n.ObjectKeyword||e===n.BooleanKeyword||e===n.StringKeyword||e===n.SymbolKeyword||e===n.VoidKeyword||e===n.UndefinedKeyword||e===n.NeverKeyword||e===n.IntrinsicKeyword||e===n.ExpressionWithTypeArguments||e===n.JSDocAllType||e===n.JSDocNullableType||e===n.JSDocNonNullableType||e===n.JSDocOptionalType||e===n.JSDocVariadicType||e===n.JSDocTypeExpression||e===n.JSDocTypeLiteral||e===n.JSDocSignature}function Ae(e){let t=e.kind;return t===n.VariableStatement||t===n.EmptyStatement||t===n.ExpressionStatement||t===n.IfStatement||t===n.DoStatement||t===n.WhileStatement||t===n.ForStatement||t===n.ForInStatement||t===n.ForOfStatement||t===n.ContinueStatement||t===n.BreakStatement||t===n.ReturnStatement||t===n.WithStatement||t===n.SwitchStatement||t===n.LabeledStatement||t===n.ThrowStatement||t===n.TryStatement||t===n.DebuggerStatement||t===n.InterfaceDeclaration||t===n.TypeAliasDeclaration||t===n.EnumDeclaration||t===n.ModuleDeclaration||t===n.ImportDeclaration||t===n.ImportEqualsDeclaration||t===n.ExportDeclaration||t===n.ExportAssignment||t===n.NamespaceExportDeclaration||t===n.FunctionDeclaration||t===n.ClassDeclaration||t===n.MissingDeclaration||t===n.NotEmittedStatement||t===n.Block}function w(e){let t=e.kind;return t===n.ConditionalExpression||t===n.YieldExpression||t===n.ArrowFunction||t===n.BinaryExpression||t===n.SpreadElement||t===n.AsExpression||t===n.OmittedExpression||t===n.SatisfiesExpression||t===n.PrefixUnaryExpression||t===n.PostfixUnaryExpression||t===n.DeleteExpression||t===n.TypeOfExpression||t===n.VoidExpression||t===n.AwaitExpression||t===n.TypeAssertionExpression||t===n.CallExpression||t===n.NewExpression||t===n.TaggedTemplateExpression||t===n.NonNullExpression||t===n.MetaProperty||t===n.JsxExpression||t===n.PropertyAccessExpression||t===n.ElementAccessExpression||t===n.FunctionExpression||t===n.ClassExpression||t===n.ParenthesizedExpression||t===n.ArrayLiteralExpression||t===n.ObjectLiteralExpression||t===n.TemplateExpression||t===n.Identifier||t===n.PrivateIdentifier||t===n.NumericLiteral||t===n.BigIntLiteral||t===n.StringLiteral||t===n.RegularExpressionLiteral||t===n.NoSubstitutionTemplateLiteral||t===n.JsxElement||t===n.JsxSelfClosingElement||t===n.JsxFragment||t===n.NullKeyword||t===n.TrueKeyword||t===n.FalseKeyword||t===n.ThisKeyword||t===n.SuperKeyword||t===n.ImportKeyword||t===n.ExpressionWithTypeArguments}function _i(e){return Yp(Qp(e).kind)}function Qp(e){return Zp(e,ae.PartiallyEmittedExpressions)}function Yp(e){switch(e){case n.PropertyAccessExpression:case n.ElementAccessExpression:case n.NewExpression:case n.CallExpression:case n.JsxElement:case n.JsxSelfClosingElement:case n.JsxFragment:case n.TaggedTemplateExpression:case n.ArrayLiteralExpression:case n.ParenthesizedExpression:case n.ObjectLiteralExpression:case n.ClassExpression:case n.FunctionExpression:case n.Identifier:case n.PrivateIdentifier:case n.RegularExpressionLiteral:case n.NumericLiteral:case n.BigIntLiteral:case n.StringLiteral:case n.NoSubstitutionTemplateLiteral:case n.TemplateExpression:case n.FalseKeyword:case n.NullKeyword:case n.ThisKeyword:case n.TrueKeyword:case n.SuperKeyword:case n.NonNullExpression:case n.ExpressionWithTypeArguments:case n.MetaProperty:case n.ImportKeyword:case n.MissingDeclaration:return!0;default:return!1}}function Xp(e,t=ae.All){switch(e.kind){case n.ParenthesizedExpression:if(t&ae.ExcludeJSDocTypeAssertion&&Kp(e))return!1;return(t&ae.Parentheses)!==0;case n.TypeAssertionExpression:case n.AsExpression:return(t&ae.TypeAssertions)!==0;case n.SatisfiesExpression:return(t&(ae.ExpressionsWithTypeArguments|ae.Satisfies))!==0;case n.ExpressionWithTypeArguments:return(t&ae.ExpressionsWithTypeArguments)!==0;case n.NonNullExpression:return(t&ae.NonNullAssertions)!==0;case n.PartiallyEmittedExpression:return(t&ae.PartiallyEmittedExpressions)!==0}return!1}function Zp(e,t=ae.All){while(Xp(e,t))e=e.expression;return e}function Kp(e){let t=e.getSourceFile();if(t.scriptKind!==at.JS&&t.scriptKind!==at.JSX)return!1;let r=e.expression;if(r.kind!==n.AsExpression)return!1;let i=r;return!!i.type&&(i.type.flags&Pe.Reparsed)!==0}function Di(e){return e.kind===n.Block||w(e)}function $t(e){return e.kind===n.VariableDeclarationList||w(e)}function Ge(e){return e.kind===n.QuestionToken||e.kind===n.ExclamationToken}function Si(e){return e.kind===n.ReadonlyKeyword||e.kind===n.PlusToken||e.kind===n.MinusToken}function Pi(e){return e.kind===n.QuestionToken||e.kind===n.PlusToken||e.kind===n.MinusToken}function Ft(e){let t=e.kind;return t===n.ThisKeyword||t===n.Identifier||t===n.PropertyAccessExpression||t===n.JsxNamespacedName}function c(e,t,r){if(e===void 0)return;let i=t(e);if(i!==void 0&&r!==void 0&&!r(i))throw Error("Visited node failed test assertion.");return i}function g(e,t){if(e===void 0)return;let r=Qt(e,t);if(r===e)return e;return m(r,e.pos,e.end)}function Qt(e,t){if(e===void 0)return;let r;for(let i=0;i<e.length;i++){let s=e[i],a=t(s);if(r){if(a)r.push(a)}else if(a!==s){r=[];for(let p=0;p<i;p++)r.push(e[p]);if(a)r.push(a)}}return r??e}var Ig={[n.QualifiedName]:(e,t)=>{let r=c(e.left,t,Ee),i=c(e.right,t,I);return Ai(e,r,i)},[n.ComputedPropertyName]:(e,t)=>{let r=c(e.expression,t,w);return bi(e,r)},[n.Decorator]:(e,t)=>{let r=c(e.expression,t,_i);return Ii(e,r)},[n.IfStatement]:(e,t)=>{let r=c(e.expression,t,w),i=c(e.thenStatement,t,Ae),s=c(e.elseStatement,t,Ae);return Ci(e,r,i,s)},[n.DoStatement]:(e,t)=>{let r=c(e.statement,t,Ae),i=c(e.expression,t,w);return Ni(e,r,i)},[n.WhileStatement]:(e,t)=>{let r=c(e.expression,t,w),i=c(e.statement,t,Ae);return Li(e,r,i)},[n.ForStatement]:(e,t)=>{let r=c(e.initializer,t,$t),i=c(e.condition,t,w),s=c(e.incrementor,t,w),a=c(e.statement,t,Ae);return Ji(e,r,i,s,a)},[n.BreakStatement]:(e,t)=>{let r=c(e.label,t,I);return Ri(e,r)},[n.ContinueStatement]:(e,t)=>{let r=c(e.label,t,I);return Oi(e,r)},[n.ReturnStatement]:(e,t)=>{let r=c(e.expression,t,w);return vi(e,r)},[n.WithStatement]:(e,t)=>{let r=c(e.expression,t,w),i=c(e.statement,t,Ae);return Mi(e,r,i)},[n.SwitchStatement]:(e,t)=>{let r=c(e.expression,t,w),i=c(e.caseBlock,t,Yn);return qi(e,r,i)},[n.CaseBlock]:(e,t)=>{let r=g(e.clauses,t);return Bi(e,r)},[n.ThrowStatement]:(e,t)=>{let r=c(e.expression,t,w);return Ui(e,r)},[n.TryStatement]:(e,t)=>{let r=c(e.tryBlock,t,_t),i=c(e.catchClause,t,Xn),s=c(e.finallyBlock,t,_t);return ji(e,r,i,s)},[n.CatchClause]:(e,t)=>{let r=c(e.variableDeclaration,t,Zn),i=c(e.block,t,_t);return Vi(e,r,i)},[n.LabeledStatement]:(e,t)=>{let r=c(e.label,t,I),i=c(e.statement,t,Ae);return Wi(e,r,i)},[n.ExpressionStatement]:(e,t)=>{let r=c(e.expression,t,w);return zi(e,r)},[n.Block]:(e,t)=>{let r=g(e.statements,t);return Hi(e,r)},[n.VariableStatement]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.declarationList,t,Kn);return Gi(e,r,i)},[n.VariableDeclaration]:(e,t)=>{let r=c(e.name,t,Ht),i=c(e.exclamationToken,t,gi),s=c(e.type,t,S),a=c(e.initializer,t,w);return $i(e,r,i,s,a)},[n.VariableDeclarationList]:(e,t)=>{let r=g(e.declarations,t);return Fi(e,r)},[n.Parameter]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.dotDotDotToken,t,Pt),s=c(e.name,t,Ht),a=c(e.questionToken,t,Gt),p=c(e.type,t,S),T=c(e.initializer,t,w);return Qi(e,r,i,s,a,p,T)},[n.BindingElement]:(e,t)=>{let r=c(e.dotDotDotToken,t,Pt),i=c(e.propertyName,t,xe),s=c(e.name,t,Ht),a=c(e.initializer,t,w);return Yi(e,r,i,s,a)},[n.MissingDeclaration]:(e,t)=>{let r=g(e.modifiers,t);return Xi(e,r)},[n.FunctionDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.asteriskToken,t,At),s=c(e.name,t,I),a=g(e.typeParameters,t),p=g(e.parameters,t),T=c(e.type,t,S),E=c(e.body,t,He);return Zi(e,r,i,s,a,p,T,E)},[n.ClassDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,I),s=g(e.typeParameters,t),a=g(e.heritageClauses,t),p=g(e.members,t);return Ki(e,r,i,s,a,p)},[n.ClassExpression]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,I),s=g(e.typeParameters,t),a=g(e.heritageClauses,t),p=g(e.members,t);return es(e,r,i,s,a,p)},[n.HeritageClause]:(e,t)=>{let r=g(e.types,t);return ts(e,r)},[n.InterfaceDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,I),s=g(e.typeParameters,t),a=g(e.heritageClauses,t),p=g(e.members,t);return rs(e,r,i,s,a,p)},[n.TypeAliasDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,I),s=g(e.typeParameters,t),a=c(e.type,t,S);return ns(e,r,i,s,a)},[n.EnumMember]:(e,t)=>{let r=c(e.name,t,xe),i=c(e.initializer,t,w);return is(e,r,i)},[n.EnumDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,I),s=g(e.members,t);return ss(e,r,i,s)},[n.ModuleBlock]:(e,t)=>{let r=g(e.statements,t);return os(e,r)},[n.ImportDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.importClause,t,Mr),s=c(e.moduleSpecifier,t,w),a=c(e.attributes,t,Dt);return as(e,r,i,s,a)},[n.ExternalModuleReference]:(e,t)=>{let r=c(e.expression,t,w);return cs(e,r)},[n.NamespaceImport]:(e,t)=>{let r=c(e.name,t,I);return us(e,r)},[n.NamedImports]:(e,t)=>{let r=g(e.elements,t);return ps(e,r)},[n.ExportAssignment]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.type,t,S),s=c(e.expression,t,w);return ls(e,r,i,s)},[n.NamespaceExportDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,I);return fs(e,r,i)},[n.NamespaceExport]:(e,t)=>{let r=c(e.name,t,St);return ms(e,r)},[n.NamedExports]:(e,t)=>{let r=g(e.elements,t);return hs(e,r)},[n.ExportSpecifier]:(e,t)=>{let r=c(e.propertyName,t,St),i=c(e.name,t,St);return ds(e,r,i)},[n.CallSignature]:(e,t)=>{let r=g(e.typeParameters,t),i=g(e.parameters,t),s=c(e.type,t,S);return Ts(e,r,i,s)},[n.ConstructSignature]:(e,t)=>{let r=g(e.typeParameters,t),i=g(e.parameters,t),s=c(e.type,t,S);return gs(e,r,i,s)},[n.Constructor]:(e,t)=>{let r=g(e.modifiers,t),i=g(e.typeParameters,t),s=g(e.parameters,t),a=c(e.type,t,S),p=c(e.body,t,He);return ys(e,r,i,s,a,p)},[n.GetAccessor]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,xe),s=g(e.typeParameters,t),a=g(e.parameters,t),p=c(e.type,t,S),T=c(e.body,t,He);return xs(e,r,i,s,a,p,T)},[n.SetAccessor]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,xe),s=g(e.typeParameters,t),a=g(e.parameters,t),p=c(e.type,t,S),T=c(e.body,t,He);return Es(e,r,i,s,a,p,T)},[n.IndexSignature]:(e,t)=>{let r=g(e.modifiers,t),i=g(e.parameters,t),s=c(e.type,t,S);return ks(e,r,i,s)},[n.MethodSignature]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,xe),s=c(e.postfixToken,t,Ge),a=g(e.typeParameters,t),p=g(e.parameters,t),T=c(e.type,t,S);return ws(e,r,i,s,a,p,T)},[n.MethodDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.asteriskToken,t,At),s=c(e.name,t,xe),a=c(e.postfixToken,t,Ge),p=g(e.typeParameters,t),T=g(e.parameters,t),E=c(e.type,t,S),A=c(e.body,t,He);return _s(e,r,i,s,a,p,T,E,A)},[n.PropertySignature]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,xe),s=c(e.postfixToken,t,Ge),a=c(e.type,t,S),p=c(e.initializer,t,w);return Ds(e,r,i,s,a,p)},[n.PropertyDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,xe),s=c(e.postfixToken,t,Ge),a=c(e.type,t,S),p=c(e.initializer,t,w);return Ss(e,r,i,s,a,p)},[n.ClassStaticBlockDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.body,t,_t);return Ps(e,r,i)},[n.BinaryExpression]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.left,t,w),s=c(e.type,t,S),a=c(e.operatorToken,t,wi),p=c(e.right,t,w);return As(e,r,i,s,a,p)},[n.PrefixUnaryExpression]:(e,t)=>{let r=c(e.operand,t,w);return bs(e,r)},[n.PostfixUnaryExpression]:(e,t)=>{let r=c(e.operand,t,w);return Is(e,r)},[n.YieldExpression]:(e,t)=>{let r=c(e.asteriskToken,t,At),i=c(e.expression,t,w);return Cs(e,r,i)},[n.ArrowFunction]:(e,t)=>{let r=g(e.modifiers,t),i=g(e.typeParameters,t),s=g(e.parameters,t),a=c(e.type,t,S),p=c(e.equalsGreaterThanToken,t,Ei),T=c(e.body,t,Di);return Ns(e,r,i,s,a,p,T)},[n.FunctionExpression]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.asteriskToken,t,At),s=c(e.name,t,I),a=g(e.typeParameters,t),p=g(e.parameters,t),T=c(e.type,t,S),E=c(e.body,t,He);return Ls(e,r,i,s,a,p,T,E)},[n.AsExpression]:(e,t)=>{let r=c(e.expression,t,w),i=c(e.type,t,S);return Js(e,r,i)},[n.SatisfiesExpression]:(e,t)=>{let r=c(e.expression,t,w),i=c(e.type,t,S);return Rs(e,r,i)},[n.ConditionalExpression]:(e,t)=>{let r=c(e.condition,t,w),i=c(e.questionToken,t,Gt),s=c(e.whenTrue,t,w),a=c(e.colonToken,t,yi),p=c(e.whenFalse,t,w);return Os(e,r,i,s,a,p)},[n.PropertyAccessExpression]:(e,t)=>{let r=c(e.expression,t,w),i=c(e.questionDotToken,t,bt),s=c(e.name,t,ui);return vs(e,r,i,s)},[n.ElementAccessExpression]:(e,t)=>{let r=c(e.expression,t,w),i=c(e.questionDotToken,t,bt),s=c(e.argumentExpression,t,w);return Ms(e,r,i,s)},[n.CallExpression]:(e,t)=>{let r=c(e.expression,t,w),i=c(e.questionDotToken,t,bt),s=g(e.typeArguments,t),a=g(e.arguments,t);return qs(e,r,i,s,a)},[n.NewExpression]:(e,t)=>{let r=c(e.expression,t,w),i=g(e.typeArguments,t),s=g(e.arguments,t);return Bs(e,r,i,s)},[n.MetaProperty]:(e,t)=>{let r=c(e.name,t,I);return Us(e,r)},[n.NonNullExpression]:(e,t)=>{let r=c(e.expression,t,w);return js(e,r)},[n.SpreadElement]:(e,t)=>{let r=c(e.expression,t,w);return Vs(e,r)},[n.TemplateExpression]:(e,t)=>{let r=c(e.head,t,Or),i=g(e.templateSpans,t);return Ws(e,r,i)},[n.TemplateSpan]:(e,t)=>{let r=c(e.expression,t,w),i=c(e.literal,t,Ur);return zs(e,r,i)},[n.TaggedTemplateExpression]:(e,t)=>{let r=c(e.tag,t,w),i=c(e.questionDotToken,t,bt),s=g(e.typeArguments,t),a=c(e.template,t,fi);return Hs(e,r,i,s,a)},[n.ParenthesizedExpression]:(e,t)=>{let r=c(e.expression,t,w);return Gs(e,r)},[n.ArrayLiteralExpression]:(e,t)=>{let r=g(e.elements,t);return $s(e,r)},[n.ObjectLiteralExpression]:(e,t)=>{let r=g(e.properties,t);return Fs(e,r)},[n.SpreadAssignment]:(e,t)=>{let r=c(e.expression,t,w);return Qs(e,r)},[n.PropertyAssignment]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,xe),s=c(e.postfixToken,t,Ge),a=c(e.type,t,S),p=c(e.initializer,t,w);return Ys(e,r,i,s,a,p)},[n.ShorthandPropertyAssignment]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,xe),s=c(e.postfixToken,t,Ge),a=c(e.type,t,S),p=c(e.equalsToken,t,xi),T=c(e.objectAssignmentInitializer,t,w);return Xs(e,r,i,s,a,p,T)},[n.DeleteExpression]:(e,t)=>{let r=c(e.expression,t,w);return Zs(e,r)},[n.TypeOfExpression]:(e,t)=>{let r=c(e.expression,t,w);return Ks(e,r)},[n.VoidExpression]:(e,t)=>{let r=c(e.expression,t,w);return eo(e,r)},[n.AwaitExpression]:(e,t)=>{let r=c(e.expression,t,w);return to(e,r)},[n.TypeAssertionExpression]:(e,t)=>{let r=c(e.type,t,S),i=c(e.expression,t,w);return ro(e,r,i)},[n.UnionType]:(e,t)=>{let r=g(e.types,t);return no(e,r)},[n.IntersectionType]:(e,t)=>{let r=g(e.types,t);return io(e,r)},[n.ConditionalType]:(e,t)=>{let r=c(e.checkType,t,S),i=c(e.extendsType,t,S),s=c(e.trueType,t,S),a=c(e.falseType,t,S);return so(e,r,i,s,a)},[n.TypeOperator]:(e,t)=>{let r=c(e.type,t,S);return oo(e,r)},[n.InferType]:(e,t)=>{let r=c(e.typeParameter,t,qr);return ao(e,r)},[n.ArrayType]:(e,t)=>{let r=c(e.elementType,t,S);return co(e,r)},[n.IndexedAccessType]:(e,t)=>{let r=c(e.objectType,t,S),i=c(e.indexType,t,S);return uo(e,r,i)},[n.TypeReference]:(e,t)=>{let r=c(e.typeName,t,Ee),i=g(e.typeArguments,t);return po(e,r,i)},[n.ExpressionWithTypeArguments]:(e,t)=>{let r=c(e.expression,t,w),i=g(e.typeArguments,t);return lo(e,r,i)},[n.LiteralType]:(e,t)=>{let r=c(e.literal,t);return fo(e,r)},[n.TypePredicate]:(e,t)=>{let r=c(e.assertsModifier,t,ki),i=c(e.parameterName,t,mi),s=c(e.type,t,S);return mo(e,r,i,s)},[n.ImportAttribute]:(e,t)=>{let r=c(e.name,t,hi),i=c(e.value,t,w);return ho(e,r,i)},[n.ImportAttributes]:(e,t)=>{let r=g(e.attributes,t);return To(e,r)},[n.TypeQuery]:(e,t)=>{let r=c(e.exprName,t,Ee),i=g(e.typeArguments,t);return go(e,r,i)},[n.MappedType]:(e,t)=>{let r=c(e.readonlyToken,t,Si),i=c(e.typeParameter,t,qr),s=c(e.nameType,t,S),a=c(e.questionToken,t,Pi),p=c(e.type,t,S),T=g(e.members,t);return yo(e,r,i,s,a,p,T)},[n.TypeLiteral]:(e,t)=>{let r=g(e.members,t);return xo(e,r)},[n.TupleType]:(e,t)=>{let r=g(e.elements,t);return Eo(e,r)},[n.NamedTupleMember]:(e,t)=>{let r=c(e.dotDotDotToken,t,Pt),i=c(e.name,t,I),s=c(e.questionToken,t,Gt),a=c(e.type,t,S);return ko(e,r,i,s,a)},[n.OptionalType]:(e,t)=>{let r=c(e.type,t,S);return wo(e,r)},[n.RestType]:(e,t)=>{let r=c(e.type,t,S);return _o(e,r)},[n.ParenthesizedType]:(e,t)=>{let r=c(e.type,t,S);return Do(e,r)},[n.FunctionType]:(e,t)=>{let r=g(e.typeParameters,t),i=g(e.parameters,t),s=c(e.type,t,S);return So(e,r,i,s)},[n.ConstructorType]:(e,t)=>{let r=g(e.modifiers,t),i=g(e.typeParameters,t),s=g(e.parameters,t),a=c(e.type,t,S);return Po(e,r,i,s,a)},[n.TemplateLiteralType]:(e,t)=>{let r=c(e.head,t,Or),i=g(e.templateSpans,t);return Ao(e,r,i)},[n.TemplateLiteralTypeSpan]:(e,t)=>{let r=c(e.type,t,S),i=c(e.literal,t,Ur);return bo(e,r,i)},[n.SyntheticExpression]:(e,t)=>{let r=c(e.tupleNameSource,t);return Io(e,r)},[n.PartiallyEmittedExpression]:(e,t)=>{let r=c(e.expression,t,w);return Co(e,r)},[n.JsxElement]:(e,t)=>{let r=c(e.openingElement,t,ei),i=g(e.children,t),s=c(e.closingElement,t,ni);return No(e,r,i,s)},[n.JsxAttributes]:(e,t)=>{let r=g(e.properties,t);return Lo(e,r)},[n.JsxNamespacedName]:(e,t)=>{let r=c(e.namespace,t,I),i=c(e.name,t,I);return Jo(e,r,i)},[n.JsxOpeningElement]:(e,t)=>{let r=c(e.tagName,t,Ft),i=g(e.typeArguments,t),s=c(e.attributes,t,vr);return Ro(e,r,i,s)},[n.JsxSelfClosingElement]:(e,t)=>{let r=c(e.tagName,t,Ft),i=g(e.typeArguments,t),s=c(e.attributes,t,vr);return Oo(e,r,i,s)},[n.JsxFragment]:(e,t)=>{let r=c(e.openingFragment,t,ti),i=g(e.children,t),s=c(e.closingFragment,t,ri);return vo(e,r,i,s)},[n.JsxAttribute]:(e,t)=>{let r=c(e.name,t,pi),i=c(e.initializer,t,li);return Mo(e,r,i)},[n.JsxSpreadAttribute]:(e,t)=>{let r=c(e.expression,t,w);return qo(e,r)},[n.JsxClosingElement]:(e,t)=>{let r=c(e.tagName,t,Ft);return Bo(e,r)},[n.JsxExpression]:(e,t)=>{let r=c(e.dotDotDotToken,t,Pt),i=c(e.expression,t,w);return Uo(e,r,i)},[n.SyntaxList]:(e,t)=>{let r=Qt(e.children,t);return jo(e,r)},[n.JSDoc]:(e,t)=>{let r=g(e.comment,t),i=g(e.tags,t);return Vo(e,r,i)},[n.JSDocTypeExpression]:(e,t)=>{let r=c(e.type,t,S);return Wo(e,r)},[n.JSDocNonNullableType]:(e,t)=>{let r=c(e.type,t,S);return zo(e,r)},[n.JSDocNullableType]:(e,t)=>{let r=c(e.type,t,S);return Ho(e,r)},[n.JSDocVariadicType]:(e,t)=>{let r=c(e.type,t,S);return Go(e,r)},[n.JSDocOptionalType]:(e,t)=>{let r=c(e.type,t,S);return $o(e,r)},[n.JSDocTypeTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.typeExpression,t),s=g(e.comment,t);return Fo(e,r,i,s)},[n.JSDocUnknownTag]:(e,t)=>{let r=c(e.tagName,t,I),i=g(e.comment,t);return Qo(e,r,i)},[n.JSDocTemplateTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.constraint,t),s=g(e.typeParameters,t),a=g(e.comment,t);return Yo(e,r,i,s,a)},[n.JSDocReturnTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.typeExpression,t,S),s=g(e.comment,t);return Xo(e,r,i,s)},[n.JSDocPublicTag]:(e,t)=>{let r=c(e.tagName,t,I),i=g(e.comment,t);return Zo(e,r,i)},[n.JSDocPrivateTag]:(e,t)=>{let r=c(e.tagName,t,I),i=g(e.comment,t);return Ko(e,r,i)},[n.JSDocProtectedTag]:(e,t)=>{let r=c(e.tagName,t,I),i=g(e.comment,t);return ea(e,r,i)},[n.JSDocReadonlyTag]:(e,t)=>{let r=c(e.tagName,t,I),i=g(e.comment,t);return ta(e,r,i)},[n.JSDocOverrideTag]:(e,t)=>{let r=c(e.tagName,t,I),i=g(e.comment,t);return ra(e,r,i)},[n.JSDocDeprecatedTag]:(e,t)=>{let r=c(e.tagName,t,I),i=g(e.comment,t);return na(e,r,i)},[n.JSDocSeeTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.nameExpression,t,S),s=g(e.comment,t);return ia(e,r,i,s)},[n.JSDocImplementsTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.className,t,Rr),s=g(e.comment,t);return sa(e,r,i,s)},[n.JSDocAugmentsTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.className,t,Rr),s=g(e.comment,t);return oa(e,r,i,s)},[n.JSDocSatisfiesTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.typeExpression,t,S),s=g(e.comment,t);return aa(e,r,i,s)},[n.JSDocThrowsTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.typeExpression,t,S),s=g(e.comment,t);return ca(e,r,i,s)},[n.JSDocThisTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.typeExpression,t,S),s=g(e.comment,t);return ua(e,r,i,s)},[n.JSDocImportTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.importClause,t,Mr),s=c(e.moduleSpecifier,t,w),a=c(e.attributes,t,Dt),p=g(e.comment,t);return pa(e,r,i,s,a,p)},[n.JSDocCallbackTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.typeExpression,t,S),s=c(e.name,t,Br),a=g(e.comment,t);return la(e,r,i,s,a)},[n.JSDocOverloadTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.typeExpression,t,S),s=g(e.comment,t);return fa(e,r,i,s)},[n.JSDocTypedefTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.typeExpression,t),s=c(e.name,t,Br),a=g(e.comment,t);return ma(e,r,i,s,a)},[n.JSDocSignature]:(e,t)=>{let r=g(e.typeParameters,t),i=g(e.parameters,t),s=c(e.type,t,S);return ha(e,r,i,s)},[n.JSDocNameReference]:(e,t)=>{let r=c(e.name,t,Ee);return da(e,r)},[n.SourceFile]:(e,t)=>{let r=g(e.statements,t),i=c(e.endOfFileToken,t,Ti);return Ra(e,r,i)},[n.ModuleDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,ii),s=c(e.body,t,si);return Ta(e,r,i,s)},[n.ImportEqualsDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,I),s=c(e.moduleReference,t,oi);return ga(e,r,i,s)},[n.ExportDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.exportClause,t,ci),s=c(e.moduleSpecifier,t,w),a=c(e.attributes,t,Dt);return ya(e,r,i,s,a)},[n.ImportType]:(e,t)=>{let r=c(e.argument,t,S),i=c(e.attributes,t,Dt),s=c(e.qualifier,t,Ee),a=g(e.typeArguments,t);return xa(e,r,i,s,a)},[n.ImportClause]:(e,t)=>{let r=c(e.name,t,I),i=c(e.namedBindings,t,ai);return Ea(e,r,i)},[n.ImportSpecifier]:(e,t)=>{let r=c(e.propertyName,t,St),i=c(e.name,t,I);return ka(e,r,i)},[n.JSDocLink]:(e,t)=>{let r=c(e.name,t,Ee);return wa(e,r)},[n.JSDocLinkPlain]:(e,t)=>{let r=c(e.name,t,Ee);return _a(e,r)},[n.JSDocLinkCode]:(e,t)=>{let r=c(e.name,t,Ee);return Da(e,r)},[n.TypeParameter]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,I),s=c(e.constraint,t,S),a=c(e.expression,t,w),p=c(e.defaultType,t,S);return Sa(e,r,i,s,a,p)},[n.SyntheticReferenceExpression]:(e,t)=>{let r=c(e.expression,t,w),i=c(e.thisArg,t,w);return Pa(e,r,i)},[n.JSDocTypeLiteral]:(e,t)=>{let r=Qt(e.jsdocPropertyTags,t);return Aa(e,r)},[n.ForInStatement]:(e,t)=>{let r=c(e.awaitModifier,t,jr),i=c(e.initializer,t,$t),s=c(e.expression,t,w),a=c(e.statement,t,Ae);return ba(e,r,i,s,a)},[n.ForOfStatement]:(e,t)=>{let r=c(e.awaitModifier,t,jr),i=c(e.initializer,t,$t),s=c(e.expression,t,w),a=c(e.statement,t,Ae);return Ia(e,r,i,s,a)},[n.CaseClause]:(e,t)=>{let r=c(e.expression,t,w),i=g(e.statements,t);return Ca(e,r,i)},[n.DefaultClause]:(e,t)=>{let r=c(e.expression,t,w),i=g(e.statements,t);return Na(e,r,i)},[n.ObjectBindingPattern]:(e,t)=>{let r=g(e.elements,t);return La(e,r)},[n.ArrayBindingPattern]:(e,t)=>{let r=g(e.elements,t);return Ja(e,r)},[n.JSDocParameterTag]:Yt,[n.JSDocPropertyTag]:Yt};function It(e,t){return t?e(t):void 0}function tl(e,t,r){if(!r)return;if(t)return t(r);for(let i of r){let s=e(i);if(s)return s}return}function Xt(e,t,r){return It(t,e.tagName)||(e.isNameFirst?It(t,e.name)||It(t,e.typeExpression):It(t,e.typeExpression)||It(t,e.name))||tl(t,r,e.comment)}function Yt(e,t){let r=c(e.tagName,t,I),i=c(e.name,t,Ee),s=c(e.typeExpression,t,S),a=g(e.comment,t);return e.kind===n.JSDocParameterTag?Oa(e,r,i,s,a):va(e,r,i,s,a)}class f{kind;flags=0;pos=-1;end=-1;parent=void 0;_data;constructor(e,t){this.kind=e,this._data=t}get ambientModuleNames(){return this._data?.ambientModuleNames}get argument(){return this._data?.argument}get argumentExpression(){return this._data?.argumentExpression}get arguments(){return this._data?.arguments}get assertsModifier(){return this._data?.assertsModifier}get asteriskToken(){return this._data?.asteriskToken}get attributes(){return this._data?.attributes}get awaitModifier(){return this._data?.awaitModifier}get block(){return this._data?.block}get body(){return this._data?.body}get caseBlock(){return this._data?.caseBlock}get catchClause(){return this._data?.catchClause}get checkType(){return this._data?.checkType}get children(){return this._data?.children}get className(){return this._data?.className}get clauses(){return this._data?.clauses}get closingElement(){return this._data?.closingElement}get closingFragment(){return this._data?.closingFragment}get colonToken(){return this._data?.colonToken}get comment(){return this._data?.comment}get condition(){return this._data?.condition}get constraint(){return this._data?.constraint}get containsOnlyTriviaWhiteSpaces(){return this._data?.containsOnlyTriviaWhiteSpaces}get declarationList(){return this._data?.declarationList}get declarations(){return this._data?.declarations}get defaultType(){return this._data?.defaultType}get dotDotDotToken(){return this._data?.dotDotDotToken}get elementType(){return this._data?.elementType}get elements(){return this._data?.elements}get elseStatement(){return this._data?.elseStatement}get endOfFileToken(){return this._data?.endOfFileToken}get equalsGreaterThanToken(){return this._data?.equalsGreaterThanToken}get equalsToken(){return this._data?.equalsToken}get exclamationToken(){return this._data?.exclamationToken}get exportClause(){return this._data?.exportClause}get exprName(){return this._data?.exprName}get expression(){return this._data?.expression}get extendsType(){return this._data?.extendsType}get externalModuleIndicator(){return this._data?.externalModuleIndicator}get falseType(){return this._data?.falseType}get fileName(){return this._data?.fileName}get finallyBlock(){return this._data?.finallyBlock}get head(){return this._data?.head}get heritageClauses(){return this._data?.heritageClauses}get importClause(){return this._data?.importClause}get imports(){return this._data?.imports}get incrementor(){return this._data?.incrementor}get indexType(){return this._data?.indexType}get initializer(){return this._data?.initializer}get isArrayType(){return this._data?.isArrayType}get isBracketed(){return this._data?.isBracketed}get isDeclarationFile(){return this._data?.isDeclarationFile}get isExportEquals(){return this._data?.isExportEquals}get isNameFirst(){return this._data?.isNameFirst}get isSpread(){return this._data?.isSpread}get isTypeOf(){return this._data?.isTypeOf}get isTypeOnly(){return this._data?.isTypeOnly}get jsdocPropertyTags(){return this._data?.jsdocPropertyTags}get keyword(){return this._data?.keyword}get keywordToken(){return this._data?.keywordToken}get label(){return this._data?.label}get languageVariant(){return this._data?.languageVariant}get left(){return this._data?.left}get libReferenceDirectives(){return this._data?.libReferenceDirectives}get literal(){return this._data?.literal}get members(){return this._data?.members}get modifiers(){return this._data?.modifiers}get moduleAugmentations(){return this._data?.moduleAugmentations}get moduleReference(){return this._data?.moduleReference}get moduleSpecifier(){return this._data?.moduleSpecifier}get multiLine(){return this._data?.multiLine}get name(){return this._data?.name}get nameExpression(){return this._data?.nameExpression}get nameType(){return this._data?.nameType}get namedBindings(){return this._data?.namedBindings}get namespace(){return this._data?.namespace}get objectAssignmentInitializer(){return this._data?.objectAssignmentInitializer}get objectType(){return this._data?.objectType}get openingElement(){return this._data?.openingElement}get openingFragment(){return this._data?.openingFragment}get operand(){return this._data?.operand}get operator(){return this._data?.operator}get operatorToken(){return this._data?.operatorToken}get parameterName(){return this._data?.parameterName}get parameters(){return this._data?.parameters}get path(){return this._data?.path}get phaseModifier(){return this._data?.phaseModifier}get postfixToken(){return this._data?.postfixToken}get properties(){return this._data?.properties}get propertyName(){return this._data?.propertyName}get qualifier(){return this._data?.qualifier}get questionDotToken(){return this._data?.questionDotToken}get questionToken(){return this._data?.questionToken}get rawText(){return this._data?.rawText}get readonlyToken(){return this._data?.readonlyToken}get referencedFiles(){return this._data?.referencedFiles}get right(){return this._data?.right}get scriptKind(){return this._data?.scriptKind}get statement(){return this._data?.statement}get statements(){return this._data?.statements}get tag(){return this._data?.tag}get tagName(){return this._data?.tagName}get tags(){return this._data?.tags}get template(){return this._data?.template}get templateFlags(){return this._data?.templateFlags}get templateSpans(){return this._data?.templateSpans}get text(){return this._data?.text}get thenStatement(){return this._data?.thenStatement}get thisArg(){return this._data?.thisArg}get token(){return this._data?.token}get tokenCache(){return this._data?.tokenCache}get tokenFlags(){return this._data?.tokenFlags}get trueType(){return this._data?.trueType}get tryBlock(){return this._data?.tryBlock}get tupleNameSource(){return this._data?.tupleNameSource}get type(){return this._data?.type}get typeArguments(){return this._data?.typeArguments}get typeExpression(){return this._data?.typeExpression}get typeName(){return this._data?.typeName}get typeParameter(){return this._data?.typeParameter}get typeParameters(){return this._data?.typeParameters}get typeReferenceDirectives(){return this._data?.typeReferenceDirectives}get types(){return this._data?.types}get value(){return this._data?.value}get variableDeclaration(){return this._data?.variableDeclaration}get whenFalse(){return this._data?.whenFalse}get whenTrue(){return this._data?.whenTrue}forEachChild(e,t){let r=nl[this.kind];return r?r(this._data,e,t):void 0}getSourceFile(){let e=this;while(e.parent)e=e.parent;return e}getStart(e,t){return Ct(this,e??this.getSourceFile(),t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e??this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e??=this.getSourceFile(),e.text.substring(this.getStart(e),this.end)}}function rl(e){return"pos"in e&&"end"in e}function m(e,t=-1,r=-1){if(rl(e))return e;let i=e.slice();return i.pos=t,i.end=r,i}var nl={[n.QualifiedName]:(e,t,r)=>u(t,e.left)||u(t,e.right),[n.ComputedPropertyName]:(e,t,r)=>u(t,e.expression),[n.Decorator]:(e,t,r)=>u(t,e.expression),[n.IfStatement]:(e,t,r)=>u(t,e.expression)||u(t,e.thenStatement)||u(t,e.elseStatement),[n.DoStatement]:(e,t,r)=>u(t,e.statement)||u(t,e.expression),[n.WhileStatement]:(e,t,r)=>u(t,e.expression)||u(t,e.statement),[n.ForStatement]:(e,t,r)=>u(t,e.initializer)||u(t,e.condition)||u(t,e.incrementor)||u(t,e.statement),[n.BreakStatement]:(e,t,r)=>u(t,e.label),[n.ContinueStatement]:(e,t,r)=>u(t,e.label),[n.ReturnStatement]:(e,t,r)=>u(t,e.expression),[n.WithStatement]:(e,t,r)=>u(t,e.expression)||u(t,e.statement),[n.SwitchStatement]:(e,t,r)=>u(t,e.expression)||u(t,e.caseBlock),[n.CaseBlock]:(e,t,r)=>h(t,r,e.clauses),[n.ThrowStatement]:(e,t,r)=>u(t,e.expression),[n.TryStatement]:(e,t,r)=>u(t,e.tryBlock)||u(t,e.catchClause)||u(t,e.finallyBlock),[n.CatchClause]:(e,t,r)=>u(t,e.variableDeclaration)||u(t,e.block),[n.LabeledStatement]:(e,t,r)=>u(t,e.label)||u(t,e.statement),[n.ExpressionStatement]:(e,t,r)=>u(t,e.expression),[n.Block]:(e,t,r)=>h(t,r,e.statements),[n.VariableStatement]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.declarationList),[n.VariableDeclaration]:(e,t,r)=>u(t,e.name)||u(t,e.exclamationToken)||u(t,e.type)||u(t,e.initializer),[n.VariableDeclarationList]:(e,t,r)=>h(t,r,e.declarations),[n.Parameter]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.dotDotDotToken)||u(t,e.name)||u(t,e.questionToken)||u(t,e.type)||u(t,e.initializer),[n.BindingElement]:(e,t,r)=>u(t,e.dotDotDotToken)||u(t,e.propertyName)||u(t,e.name)||u(t,e.initializer),[n.MissingDeclaration]:(e,t,r)=>h(t,r,e.modifiers),[n.FunctionDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.asteriskToken)||u(t,e.name)||h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type)||u(t,e.body),[n.ClassDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||h(t,r,e.typeParameters)||h(t,r,e.heritageClauses)||h(t,r,e.members),[n.ClassExpression]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||h(t,r,e.typeParameters)||h(t,r,e.heritageClauses)||h(t,r,e.members),[n.HeritageClause]:(e,t,r)=>h(t,r,e.types),[n.InterfaceDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||h(t,r,e.typeParameters)||h(t,r,e.heritageClauses)||h(t,r,e.members),[n.TypeAliasDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||h(t,r,e.typeParameters)||u(t,e.type),[n.JSTypeAliasDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||h(t,r,e.typeParameters)||u(t,e.type),[n.EnumMember]:(e,t,r)=>u(t,e.name)||u(t,e.initializer),[n.EnumDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||h(t,r,e.members),[n.ModuleBlock]:(e,t,r)=>h(t,r,e.statements),[n.ImportDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.importClause)||u(t,e.moduleSpecifier)||u(t,e.attributes),[n.JSImportDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.importClause)||u(t,e.moduleSpecifier)||u(t,e.attributes),[n.ExternalModuleReference]:(e,t,r)=>u(t,e.expression),[n.NamespaceImport]:(e,t,r)=>u(t,e.name),[n.NamedImports]:(e,t,r)=>h(t,r,e.elements),[n.ExportAssignment]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.type)||u(t,e.expression),[n.NamespaceExportDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name),[n.NamespaceExport]:(e,t,r)=>u(t,e.name),[n.NamedExports]:(e,t,r)=>h(t,r,e.elements),[n.ExportSpecifier]:(e,t,r)=>u(t,e.propertyName)||u(t,e.name),[n.CallSignature]:(e,t,r)=>h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type),[n.ConstructSignature]:(e,t,r)=>h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type),[n.Constructor]:(e,t,r)=>h(t,r,e.modifiers)||h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type)||u(t,e.body),[n.GetAccessor]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type)||u(t,e.body),[n.SetAccessor]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type)||u(t,e.body),[n.IndexSignature]:(e,t,r)=>h(t,r,e.modifiers)||h(t,r,e.parameters)||u(t,e.type),[n.MethodSignature]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||u(t,e.postfixToken)||h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type),[n.MethodDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.asteriskToken)||u(t,e.name)||u(t,e.postfixToken)||h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type)||u(t,e.body),[n.PropertySignature]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||u(t,e.postfixToken)||u(t,e.type)||u(t,e.initializer),[n.PropertyDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||u(t,e.postfixToken)||u(t,e.type)||u(t,e.initializer),[n.ClassStaticBlockDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.body),[n.BinaryExpression]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.left)||u(t,e.type)||u(t,e.operatorToken)||u(t,e.right),[n.PrefixUnaryExpression]:(e,t,r)=>u(t,e.operand),[n.PostfixUnaryExpression]:(e,t,r)=>u(t,e.operand),[n.YieldExpression]:(e,t,r)=>u(t,e.asteriskToken)||u(t,e.expression),[n.ArrowFunction]:(e,t,r)=>h(t,r,e.modifiers)||h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type)||u(t,e.equalsGreaterThanToken)||u(t,e.body),[n.FunctionExpression]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.asteriskToken)||u(t,e.name)||h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type)||u(t,e.body),[n.AsExpression]:(e,t,r)=>u(t,e.expression)||u(t,e.type),[n.SatisfiesExpression]:(e,t,r)=>u(t,e.expression)||u(t,e.type),[n.ConditionalExpression]:(e,t,r)=>u(t,e.condition)||u(t,e.questionToken)||u(t,e.whenTrue)||u(t,e.colonToken)||u(t,e.whenFalse),[n.PropertyAccessExpression]:(e,t,r)=>u(t,e.expression)||u(t,e.questionDotToken)||u(t,e.name),[n.ElementAccessExpression]:(e,t,r)=>u(t,e.expression)||u(t,e.questionDotToken)||u(t,e.argumentExpression),[n.CallExpression]:(e,t,r)=>u(t,e.expression)||u(t,e.questionDotToken)||h(t,r,e.typeArguments)||h(t,r,e.arguments),[n.NewExpression]:(e,t,r)=>u(t,e.expression)||h(t,r,e.typeArguments)||h(t,r,e.arguments),[n.MetaProperty]:(e,t,r)=>u(t,e.name),[n.NonNullExpression]:(e,t,r)=>u(t,e.expression),[n.SpreadElement]:(e,t,r)=>u(t,e.expression),[n.TemplateExpression]:(e,t,r)=>u(t,e.head)||h(t,r,e.templateSpans),[n.TemplateSpan]:(e,t,r)=>u(t,e.expression)||u(t,e.literal),[n.TaggedTemplateExpression]:(e,t,r)=>u(t,e.tag)||u(t,e.questionDotToken)||h(t,r,e.typeArguments)||u(t,e.template),[n.ParenthesizedExpression]:(e,t,r)=>u(t,e.expression),[n.ArrayLiteralExpression]:(e,t,r)=>h(t,r,e.elements),[n.ObjectLiteralExpression]:(e,t,r)=>h(t,r,e.properties),[n.SpreadAssignment]:(e,t,r)=>u(t,e.expression),[n.PropertyAssignment]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||u(t,e.postfixToken)||u(t,e.type)||u(t,e.initializer),[n.ShorthandPropertyAssignment]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||u(t,e.postfixToken)||u(t,e.type)||u(t,e.equalsToken)||u(t,e.objectAssignmentInitializer),[n.DeleteExpression]:(e,t,r)=>u(t,e.expression),[n.TypeOfExpression]:(e,t,r)=>u(t,e.expression),[n.VoidExpression]:(e,t,r)=>u(t,e.expression),[n.AwaitExpression]:(e,t,r)=>u(t,e.expression),[n.TypeAssertionExpression]:(e,t,r)=>u(t,e.type)||u(t,e.expression),[n.UnionType]:(e,t,r)=>h(t,r,e.types),[n.IntersectionType]:(e,t,r)=>h(t,r,e.types),[n.ConditionalType]:(e,t,r)=>u(t,e.checkType)||u(t,e.extendsType)||u(t,e.trueType)||u(t,e.falseType),[n.TypeOperator]:(e,t,r)=>u(t,e.type),[n.InferType]:(e,t,r)=>u(t,e.typeParameter),[n.ArrayType]:(e,t,r)=>u(t,e.elementType),[n.IndexedAccessType]:(e,t,r)=>u(t,e.objectType)||u(t,e.indexType),[n.TypeReference]:(e,t,r)=>u(t,e.typeName)||h(t,r,e.typeArguments),[n.ExpressionWithTypeArguments]:(e,t,r)=>u(t,e.expression)||h(t,r,e.typeArguments),[n.LiteralType]:(e,t,r)=>u(t,e.literal),[n.TypePredicate]:(e,t,r)=>u(t,e.assertsModifier)||u(t,e.parameterName)||u(t,e.type),[n.ImportAttribute]:(e,t,r)=>u(t,e.name)||u(t,e.value),[n.ImportAttributes]:(e,t,r)=>h(t,r,e.attributes),[n.TypeQuery]:(e,t,r)=>u(t,e.exprName)||h(t,r,e.typeArguments),[n.MappedType]:(e,t,r)=>u(t,e.readonlyToken)||u(t,e.typeParameter)||u(t,e.nameType)||u(t,e.questionToken)||u(t,e.type)||h(t,r,e.members),[n.TypeLiteral]:(e,t,r)=>h(t,r,e.members),[n.TupleType]:(e,t,r)=>h(t,r,e.elements),[n.NamedTupleMember]:(e,t,r)=>u(t,e.dotDotDotToken)||u(t,e.name)||u(t,e.questionToken)||u(t,e.type),[n.OptionalType]:(e,t,r)=>u(t,e.type),[n.RestType]:(e,t,r)=>u(t,e.type),[n.ParenthesizedType]:(e,t,r)=>u(t,e.type),[n.FunctionType]:(e,t,r)=>h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type),[n.ConstructorType]:(e,t,r)=>h(t,r,e.modifiers)||h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type),[n.TemplateLiteralType]:(e,t,r)=>u(t,e.head)||h(t,r,e.templateSpans),[n.TemplateLiteralTypeSpan]:(e,t,r)=>u(t,e.type)||u(t,e.literal),[n.SyntheticExpression]:(e,t,r)=>u(t,e.tupleNameSource),[n.PartiallyEmittedExpression]:(e,t,r)=>u(t,e.expression),[n.JsxElement]:(e,t,r)=>u(t,e.openingElement)||h(t,r,e.children)||u(t,e.closingElement),[n.JsxAttributes]:(e,t,r)=>h(t,r,e.properties),[n.JsxNamespacedName]:(e,t,r)=>u(t,e.namespace)||u(t,e.name),[n.JsxOpeningElement]:(e,t,r)=>u(t,e.tagName)||h(t,r,e.typeArguments)||u(t,e.attributes),[n.JsxSelfClosingElement]:(e,t,r)=>u(t,e.tagName)||h(t,r,e.typeArguments)||u(t,e.attributes),[n.JsxFragment]:(e,t,r)=>u(t,e.openingFragment)||h(t,r,e.children)||u(t,e.closingFragment),[n.JsxAttribute]:(e,t,r)=>u(t,e.name)||u(t,e.initializer),[n.JsxSpreadAttribute]:(e,t,r)=>u(t,e.expression),[n.JsxClosingElement]:(e,t,r)=>u(t,e.tagName),[n.JsxExpression]:(e,t,r)=>u(t,e.dotDotDotToken)||u(t,e.expression),[n.SyntaxList]:(e,t,r)=>h(t,r,e.children),[n.JSDoc]:(e,t,r)=>h(t,r,e.comment)||h(t,r,e.tags),[n.JSDocTypeExpression]:(e,t,r)=>u(t,e.type),[n.JSDocNonNullableType]:(e,t,r)=>u(t,e.type),[n.JSDocNullableType]:(e,t,r)=>u(t,e.type),[n.JSDocVariadicType]:(e,t,r)=>u(t,e.type),[n.JSDocOptionalType]:(e,t,r)=>u(t,e.type),[n.JSDocTypeTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.typeExpression)||h(t,r,e.comment),[n.JSDocUnknownTag]:(e,t,r)=>u(t,e.tagName)||h(t,r,e.comment),[n.JSDocTemplateTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.constraint)||h(t,r,e.typeParameters)||h(t,r,e.comment),[n.JSDocReturnTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.typeExpression)||h(t,r,e.comment),[n.JSDocPublicTag]:(e,t,r)=>u(t,e.tagName)||h(t,r,e.comment),[n.JSDocPrivateTag]:(e,t,r)=>u(t,e.tagName)||h(t,r,e.comment),[n.JSDocProtectedTag]:(e,t,r)=>u(t,e.tagName)||h(t,r,e.comment),[n.JSDocReadonlyTag]:(e,t,r)=>u(t,e.tagName)||h(t,r,e.comment),[n.JSDocOverrideTag]:(e,t,r)=>u(t,e.tagName)||h(t,r,e.comment),[n.JSDocDeprecatedTag]:(e,t,r)=>u(t,e.tagName)||h(t,r,e.comment),[n.JSDocSeeTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.nameExpression)||h(t,r,e.comment),[n.JSDocImplementsTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.className)||h(t,r,e.comment),[n.JSDocAugmentsTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.className)||h(t,r,e.comment),[n.JSDocSatisfiesTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.typeExpression)||h(t,r,e.comment),[n.JSDocThrowsTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.typeExpression)||h(t,r,e.comment),[n.JSDocThisTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.typeExpression)||h(t,r,e.comment),[n.JSDocImportTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.importClause)||u(t,e.moduleSpecifier)||u(t,e.attributes)||h(t,r,e.comment),[n.JSDocCallbackTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.typeExpression)||u(t,e.name)||h(t,r,e.comment),[n.JSDocOverloadTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.typeExpression)||h(t,r,e.comment),[n.JSDocTypedefTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.typeExpression)||u(t,e.name)||h(t,r,e.comment),[n.JSDocSignature]:(e,t,r)=>h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type),[n.JSDocNameReference]:(e,t,r)=>u(t,e.name),[n.ModuleDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||u(t,e.body),[n.ImportEqualsDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||u(t,e.moduleReference),[n.ExportDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.exportClause)||u(t,e.moduleSpecifier)||u(t,e.attributes),[n.ImportType]:(e,t,r)=>u(t,e.argument)||u(t,e.attributes)||u(t,e.qualifier)||h(t,r,e.typeArguments),[n.ImportClause]:(e,t,r)=>u(t,e.name)||u(t,e.namedBindings),[n.ImportSpecifier]:(e,t,r)=>u(t,e.propertyName)||u(t,e.name),[n.JSDocLink]:(e,t,r)=>u(t,e.name),[n.JSDocLinkPlain]:(e,t,r)=>u(t,e.name),[n.JSDocLinkCode]:(e,t,r)=>u(t,e.name),[n.TypeParameter]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||u(t,e.constraint)||u(t,e.expression)||u(t,e.defaultType),[n.SyntheticReferenceExpression]:(e,t,r)=>u(t,e.expression)||u(t,e.thisArg),[n.JSDocTypeLiteral]:(e,t,r)=>h(t,r,e.jsdocPropertyTags),[n.ForInStatement]:(e,t,r)=>u(t,e.awaitModifier)||u(t,e.initializer)||u(t,e.expression)||u(t,e.statement),[n.ForOfStatement]:(e,t,r)=>u(t,e.awaitModifier)||u(t,e.initializer)||u(t,e.expression)||u(t,e.statement),[n.CaseClause]:(e,t,r)=>u(t,e.expression)||h(t,r,e.statements),[n.DefaultClause]:(e,t,r)=>u(t,e.expression)||h(t,r,e.statements),[n.ObjectBindingPattern]:(e,t,r)=>h(t,r,e.elements),[n.ArrayBindingPattern]:(e,t,r)=>h(t,r,e.elements),[n.JSDocParameterTag]:Xt,[n.JSDocPropertyTag]:Xt,[n.SourceFile]:(e,t,r)=>h(t,r,e.statements)||u(t,e.endOfFileToken)};function u(e,t){return t?e(t):void 0}function h(e,t,r){if(!r)return;if(t)return t(r);for(let i of r){let s=e(i);if(s)return s}return}function il(e,t){return new f(n.QualifiedName,{left:e,right:t})}function sl(e){return new f(n.ComputedPropertyName,{expression:e})}function ol(e){return new f(n.Decorator,{expression:e})}function al(e,t,r){return new f(n.IfStatement,{expression:e,thenStatement:t,elseStatement:r})}function cl(e,t){return new f(n.DoStatement,{statement:e,expression:t})}function ul(e,t){return new f(n.WhileStatement,{expression:e,statement:t})}function pl(e,t,r,i){return new f(n.ForStatement,{initializer:e,condition:t,incrementor:r,statement:i})}function ll(e){return new f(n.BreakStatement,{label:e})}function fl(e){return new f(n.ContinueStatement,{label:e})}function ml(e){return new f(n.ReturnStatement,{expression:e})}function hl(e,t){return new f(n.WithStatement,{expression:e,statement:t})}function dl(e,t){return new f(n.SwitchStatement,{expression:e,caseBlock:t})}function Tl(e){return new f(n.CaseBlock,{clauses:m(e)})}function gl(e){return new f(n.ThrowStatement,{expression:e})}function yl(e,t,r){return new f(n.TryStatement,{tryBlock:e,catchClause:t,finallyBlock:r})}function xl(e,t){return new f(n.CatchClause,{variableDeclaration:e,block:t})}function El(e,t){return new f(n.LabeledStatement,{label:e,statement:t})}function kl(e){return new f(n.ExpressionStatement,{expression:e})}function wl(e,t){return new f(n.Block,{statements:m(e),multiLine:t})}function _l(e,t){return new f(n.VariableStatement,{modifiers:e?m(e):void 0,declarationList:t})}function Dl(e,t,r,i){return new f(n.VariableDeclaration,{name:e,exclamationToken:t,type:r,initializer:i})}function Sl(e,t){let r=new f(n.VariableDeclarationList,{declarations:m(e)});return r.flags=t,r}function Pl(e,t,r,i,s,a){return new f(n.Parameter,{modifiers:e?m(e):void 0,dotDotDotToken:t,name:r,questionToken:i,type:s,initializer:a})}function Al(e,t,r,i){return new f(n.BindingElement,{dotDotDotToken:e,propertyName:t,name:r,initializer:i})}function bl(e){return new f(n.MissingDeclaration,{modifiers:e?m(e):void 0})}function Il(e,t,r,i,s,a,p){return new f(n.FunctionDeclaration,{modifiers:e?m(e):void 0,asteriskToken:t,name:r,typeParameters:i?m(i):void 0,parameters:m(s),type:a,body:p})}function Cl(e,t,r,i,s){return new f(n.ClassDeclaration,{modifiers:e?m(e):void 0,name:t,typeParameters:r?m(r):void 0,heritageClauses:i?m(i):void 0,members:m(s)})}function Nl(e,t,r,i,s){return new f(n.ClassExpression,{modifiers:e?m(e):void 0,name:t,typeParameters:r?m(r):void 0,heritageClauses:i?m(i):void 0,members:m(s)})}function Ll(e,t){return new f(n.HeritageClause,{token:e,types:m(t)})}function Jl(e,t,r,i,s){return new f(n.InterfaceDeclaration,{modifiers:e?m(e):void 0,name:t,typeParameters:r?m(r):void 0,heritageClauses:i?m(i):void 0,members:m(s)})}function Rl(e,t,r,i){return new f(n.TypeAliasDeclaration,{modifiers:e?m(e):void 0,name:t,typeParameters:r?m(r):void 0,type:i})}function Ol(e,t){return new f(n.EnumMember,{name:e,initializer:t})}function vl(e,t,r){return new f(n.EnumDeclaration,{modifiers:e?m(e):void 0,name:t,members:m(r)})}function Ml(e){return new f(n.ModuleBlock,{statements:m(e)})}function ql(e,t,r,i){return new f(n.ImportDeclaration,{modifiers:e?m(e):void 0,importClause:t,moduleSpecifier:r,attributes:i})}function Bl(e){return new f(n.ExternalModuleReference,{expression:e})}function Ul(e){return new f(n.NamespaceImport,{name:e})}function jl(e){return new f(n.NamedImports,{elements:m(e)})}function Vl(e,t=!1,r,i){return new f(n.ExportAssignment,{modifiers:e?m(e):void 0,isExportEquals:t,type:r,expression:i})}function Wl(e,t){return new f(n.NamespaceExportDeclaration,{modifiers:e?m(e):void 0,name:t})}function zl(e){return new f(n.NamespaceExport,{name:e})}function Hl(e){return new f(n.NamedExports,{elements:m(e)})}function Gl(e=!1,t,r){return new f(n.ExportSpecifier,{isTypeOnly:e,propertyName:t,name:r})}function $l(e,t,r){return new f(n.CallSignature,{typeParameters:e?m(e):void 0,parameters:m(t),type:r})}function Fl(e,t,r){return new f(n.ConstructSignature,{typeParameters:e?m(e):void 0,parameters:m(t),type:r})}function Ql(e,t,r,i,s){return new f(n.Constructor,{modifiers:e?m(e):void 0,typeParameters:t?m(t):void 0,parameters:m(r),type:i,body:s})}function Yl(e,t,r,i,s,a){return new f(n.GetAccessor,{modifiers:e?m(e):void 0,name:t,typeParameters:r?m(r):void 0,parameters:m(i),type:s,body:a})}function Xl(e,t,r,i,s,a){return new f(n.SetAccessor,{modifiers:e?m(e):void 0,name:t,typeParameters:r?m(r):void 0,parameters:m(i),type:s,body:a})}function Zl(e,t,r){return new f(n.IndexSignature,{modifiers:e?m(e):void 0,parameters:m(t),type:r})}function Kl(e,t,r,i,s,a){return new f(n.MethodSignature,{modifiers:e?m(e):void 0,name:t,postfixToken:r,typeParameters:i?m(i):void 0,parameters:m(s),type:a})}function ef(e,t,r,i,s,a,p,T){return new f(n.MethodDeclaration,{modifiers:e?m(e):void 0,asteriskToken:t,name:r,postfixToken:i,typeParameters:s?m(s):void 0,parameters:m(a),type:p,body:T})}function tf(e,t,r,i,s){return new f(n.PropertySignature,{modifiers:e?m(e):void 0,name:t,postfixToken:r,type:i,initializer:s})}function rf(e,t,r,i,s){return new f(n.PropertyDeclaration,{modifiers:e?m(e):void 0,name:t,postfixToken:r,type:i,initializer:s})}function nf(e,t){return new f(n.ClassStaticBlockDeclaration,{modifiers:e?m(e):void 0,body:t})}function sf(e,t,r,i,s){return new f(n.BinaryExpression,{modifiers:e?m(e):void 0,left:t,type:r,operatorToken:i,right:s})}function of(e,t){return new f(n.PrefixUnaryExpression,{operator:e,operand:t})}function af(e,t){return new f(n.PostfixUnaryExpression,{operand:e,operator:t})}function cf(e,t){return new f(n.YieldExpression,{asteriskToken:e,expression:t})}function uf(e,t,r,i,s,a){return new f(n.ArrowFunction,{modifiers:e?m(e):void 0,typeParameters:t?m(t):void 0,parameters:m(r),type:i,equalsGreaterThanToken:s,body:a})}function pf(e,t,r,i,s,a,p){return new f(n.FunctionExpression,{modifiers:e?m(e):void 0,asteriskToken:t,name:r,typeParameters:i?m(i):void 0,parameters:m(s),type:a,body:p})}function lf(e,t){return new f(n.AsExpression,{expression:e,type:t})}function ff(e,t){return new f(n.SatisfiesExpression,{expression:e,type:t})}function mf(e,t,r,i,s){return new f(n.ConditionalExpression,{condition:e,questionToken:t,whenTrue:r,colonToken:i,whenFalse:s})}function hf(e,t,r,i){let s=new f(n.PropertyAccessExpression,{expression:e,questionDotToken:t,name:r});return s.flags=i,s}function df(e,t,r,i){let s=new f(n.ElementAccessExpression,{expression:e,questionDotToken:t,argumentExpression:r});return s.flags=i,s}function Tf(e,t,r,i,s){let a=new f(n.CallExpression,{expression:e,questionDotToken:t,typeArguments:r?m(r):void 0,arguments:m(i)});return a.flags=s,a}function gf(e,t,r){return new f(n.NewExpression,{expression:e,typeArguments:t?m(t):void 0,arguments:r?m(r):void 0})}function yf(e,t){return new f(n.MetaProperty,{keywordToken:e,name:t})}function xf(e,t){let r=new f(n.NonNullExpression,{expression:e});return r.flags=t,r}function Ef(e){return new f(n.SpreadElement,{expression:e})}function kf(e,t){return new f(n.TemplateExpression,{head:e,templateSpans:m(t)})}function wf(e,t){return new f(n.TemplateSpan,{expression:e,literal:t})}function _f(e,t,r,i,s){let a=new f(n.TaggedTemplateExpression,{tag:e,questionDotToken:t,typeArguments:r?m(r):void 0,template:i});return a.flags=s,a}function Df(e){return new f(n.ParenthesizedExpression,{expression:e})}function Sf(e,t){return new f(n.ArrayLiteralExpression,{elements:m(e),multiLine:t})}function Pf(e,t){return new f(n.ObjectLiteralExpression,{properties:m(e),multiLine:t})}function Af(e){return new f(n.SpreadAssignment,{expression:e})}function bf(e,t,r,i,s){return new f(n.PropertyAssignment,{modifiers:e?m(e):void 0,name:t,postfixToken:r,type:i,initializer:s})}function If(e,t,r,i,s,a){return new f(n.ShorthandPropertyAssignment,{modifiers:e?m(e):void 0,name:t,postfixToken:r,type:i,equalsToken:s,objectAssignmentInitializer:a})}function Cf(e){return new f(n.DeleteExpression,{expression:e})}function Nf(e){return new f(n.TypeOfExpression,{expression:e})}function Lf(e){return new f(n.VoidExpression,{expression:e})}function Jf(e){return new f(n.AwaitExpression,{expression:e})}function Rf(e,t){return new f(n.TypeAssertionExpression,{type:e,expression:t})}function Of(e){return new f(n.UnionType,{types:m(e)})}function vf(e){return new f(n.IntersectionType,{types:m(e)})}function Mf(e,t,r,i){return new f(n.ConditionalType,{checkType:e,extendsType:t,trueType:r,falseType:i})}function qf(e,t){return new f(n.TypeOperator,{operator:e,type:t})}function Bf(e){return new f(n.InferType,{typeParameter:e})}function Uf(e){return new f(n.ArrayType,{elementType:e})}function jf(e,t){return new f(n.IndexedAccessType,{objectType:e,indexType:t})}function Vf(e,t){return new f(n.TypeReference,{typeName:e,typeArguments:t?m(t):void 0})}function Wf(e,t){return new f(n.ExpressionWithTypeArguments,{expression:e,typeArguments:t?m(t):void 0})}function zf(e){return new f(n.LiteralType,{literal:e})}function Hf(e,t,r){return new f(n.TypePredicate,{assertsModifier:e,parameterName:t,type:r})}function Gf(e,t){return new f(n.ImportAttribute,{name:e,value:t})}function $f(e,t,r){return new f(n.ImportAttributes,{token:e,attributes:m(t),multiLine:r})}function Ff(e,t){return new f(n.TypeQuery,{exprName:e,typeArguments:t?m(t):void 0})}function Qf(e,t,r,i,s,a){return new f(n.MappedType,{readonlyToken:e,typeParameter:t,nameType:r,questionToken:i,type:s,members:a?m(a):void 0})}function Yf(e){return new f(n.TypeLiteral,{members:m(e)})}function Xf(e){return new f(n.TupleType,{elements:m(e)})}function Zf(e,t,r,i){return new f(n.NamedTupleMember,{dotDotDotToken:e,name:t,questionToken:r,type:i})}function Kf(e){return new f(n.OptionalType,{type:e})}function em(e){return new f(n.RestType,{type:e})}function tm(e){return new f(n.ParenthesizedType,{type:e})}function rm(e,t,r){return new f(n.FunctionType,{typeParameters:e?m(e):void 0,parameters:m(t),type:r})}function nm(e,t,r,i){return new f(n.ConstructorType,{modifiers:e?m(e):void 0,typeParameters:t?m(t):void 0,parameters:m(r),type:i})}function im(e,t){return new f(n.TemplateLiteralType,{head:e,templateSpans:m(t)})}function sm(e,t){return new f(n.TemplateLiteralTypeSpan,{type:e,literal:t})}function om(e,t,r){return new f(n.SyntheticExpression,{type:e,isSpread:t,tupleNameSource:r})}function am(e){return new f(n.PartiallyEmittedExpression,{expression:e})}function cm(e,t,r){return new f(n.JsxElement,{openingElement:e,children:m(t),closingElement:r})}function um(e){return new f(n.JsxAttributes,{properties:m(e)})}function pm(e,t){return new f(n.JsxNamespacedName,{namespace:e,name:t})}function lm(e,t,r){return new f(n.JsxOpeningElement,{tagName:e,typeArguments:t?m(t):void 0,attributes:r})}function fm(e,t,r){return new f(n.JsxSelfClosingElement,{tagName:e,typeArguments:t?m(t):void 0,attributes:r})}function mm(e,t,r){return new f(n.JsxFragment,{openingFragment:e,children:m(t),closingFragment:r})}function hm(e,t){return new f(n.JsxAttribute,{name:e,initializer:t})}function dm(e){return new f(n.JsxSpreadAttribute,{expression:e})}function Tm(e){return new f(n.JsxClosingElement,{tagName:e})}function gm(e,t){return new f(n.JsxExpression,{dotDotDotToken:e,expression:t})}function ym(e){return new f(n.SyntaxList,{children:e})}function xm(e,t){return new f(n.JSDoc,{comment:m(e),tags:t?m(t):void 0})}function Em(e){return new f(n.JSDocTypeExpression,{type:e})}function km(e){return new f(n.JSDocNonNullableType,{type:e})}function wm(e){return new f(n.JSDocNullableType,{type:e})}function _m(e){return new f(n.JSDocVariadicType,{type:e})}function Dm(e){return new f(n.JSDocOptionalType,{type:e})}function Sm(e,t,r){return new f(n.JSDocTypeTag,{tagName:e,typeExpression:t,comment:r?m(r):void 0})}function Pm(e,t){return new f(n.JSDocUnknownTag,{tagName:e,comment:t?m(t):void 0})}function Am(e,t,r,i){return new f(n.JSDocTemplateTag,{tagName:e,constraint:t,typeParameters:m(r),comment:i?m(i):void 0})}function bm(e,t,r){return new f(n.JSDocReturnTag,{tagName:e,typeExpression:t,comment:r?m(r):void 0})}function Im(e,t){return new f(n.JSDocPublicTag,{tagName:e,comment:t?m(t):void 0})}function Cm(e,t){return new f(n.JSDocPrivateTag,{tagName:e,comment:t?m(t):void 0})}function Nm(e,t){return new f(n.JSDocProtectedTag,{tagName:e,comment:t?m(t):void 0})}function Lm(e,t){return new f(n.JSDocReadonlyTag,{tagName:e,comment:t?m(t):void 0})}function Jm(e,t){return new f(n.JSDocOverrideTag,{tagName:e,comment:t?m(t):void 0})}function Rm(e,t){return new f(n.JSDocDeprecatedTag,{tagName:e,comment:t?m(t):void 0})}function Om(e,t,r){return new f(n.JSDocSeeTag,{tagName:e,nameExpression:t,comment:r?m(r):void 0})}function vm(e,t,r){return new f(n.JSDocImplementsTag,{tagName:e,className:t,comment:r?m(r):void 0})}function Mm(e,t,r){return new f(n.JSDocAugmentsTag,{tagName:e,className:t,comment:r?m(r):void 0})}function qm(e,t,r){return new f(n.JSDocSatisfiesTag,{tagName:e,typeExpression:t,comment:r?m(r):void 0})}function Bm(e,t,r){return new f(n.JSDocThrowsTag,{tagName:e,typeExpression:t,comment:r?m(r):void 0})}function Um(e,t,r){return new f(n.JSDocThisTag,{tagName:e,typeExpression:t,comment:r?m(r):void 0})}function jm(e,t,r,i,s){return new f(n.JSDocImportTag,{tagName:e,importClause:t,moduleSpecifier:r,attributes:i,comment:s?m(s):void 0})}function Vm(e,t,r,i){return new f(n.JSDocCallbackTag,{tagName:e,typeExpression:t,name:r,comment:i?m(i):void 0})}function Wm(e,t,r){return new f(n.JSDocOverloadTag,{tagName:e,typeExpression:t,comment:r?m(r):void 0})}function zm(e,t,r,i){return new f(n.JSDocTypedefTag,{tagName:e,typeExpression:t,name:r,comment:i?m(i):void 0})}function Hm(e,t,r){return new f(n.JSDocSignature,{typeParameters:e?m(e):void 0,parameters:m(t),type:r})}function Gm(e){return new f(n.JSDocNameReference,{name:e})}function $m(e,t,r,i){return new f(n.ModuleDeclaration,{modifiers:e?m(e):void 0,keyword:t,name:r,body:i})}function Fm(e,t=!1,r,i){return new f(n.ImportEqualsDeclaration,{modifiers:e?m(e):void 0,isTypeOnly:t,name:r,moduleReference:i})}function Qm(e,t,r,i,s){return new f(n.ExportDeclaration,{modifiers:e?m(e):void 0,isTypeOnly:t,exportClause:r,moduleSpecifier:i,attributes:s})}function Ym(e=!1,t,r,i,s){return new f(n.ImportType,{isTypeOf:e,argument:t,attributes:r,qualifier:i,typeArguments:s?m(s):void 0})}function Xm(e,t,r){return new f(n.ImportClause,{phaseModifier:e,name:t,namedBindings:r})}function Zm(e=!1,t,r){return new f(n.ImportSpecifier,{isTypeOnly:e,propertyName:t,name:r})}function Km(e,t){return new f(n.JSDocLink,{name:e,text:t})}function eh(e,t){return new f(n.JSDocLinkPlain,{name:e,text:t})}function th(e,t){return new f(n.JSDocLinkCode,{name:e,text:t})}function rh(e,t,r,i,s){return new f(n.TypeParameter,{modifiers:e?m(e):void 0,name:t,constraint:r,expression:i,defaultType:s})}function nh(e,t){return new f(n.SyntheticReferenceExpression,{expression:e,thisArg:t})}function ih(e,t){return new f(n.JSDocTypeLiteral,{jsdocPropertyTags:e,isArrayType:t})}function sh(e,t,r,i){return new f(n.ForInStatement,{awaitModifier:e,initializer:t,expression:r,statement:i})}function oh(e,t,r,i){return new f(n.ForOfStatement,{awaitModifier:e,initializer:t,expression:r,statement:i})}function ah(e,t){return new f(n.CaseClause,{expression:e,statements:m(t)})}function ch(e,t){return new f(n.DefaultClause,{expression:e,statements:m(t)})}function uh(e){return new f(n.ObjectBindingPattern,{elements:m(e)})}function ph(e){return new f(n.ArrayBindingPattern,{elements:m(e)})}function lh(e,t,r,i,s,a){return new f(n.JSDocParameterTag,{tagName:e,name:t,isBracketed:r,typeExpression:i,isNameFirst:s,comment:a?m(a):void 0})}function fh(e,t,r,i,s,a){return new f(n.JSDocPropertyTag,{tagName:e,name:t,isBracketed:r,typeExpression:i,isNameFirst:s,comment:a?m(a):void 0})}function Ai(e,t,r){return e.left!==t||e.right!==r?il(t,r):e}function bi(e,t){return e.expression!==t?sl(t):e}function Ii(e,t){return e.expression!==t?ol(t):e}function Ci(e,t,r,i){return e.expression!==t||e.thenStatement!==r||e.elseStatement!==i?al(t,r,i):e}function Ni(e,t,r){return e.statement!==t||e.expression!==r?cl(t,r):e}function Li(e,t,r){return e.expression!==t||e.statement!==r?ul(t,r):e}function Ji(e,t,r,i,s){return e.initializer!==t||e.condition!==r||e.incrementor!==i||e.statement!==s?pl(t,r,i,s):e}function Ri(e,t){return e.label!==t?ll(t):e}function Oi(e,t){return e.label!==t?fl(t):e}function vi(e,t){return e.expression!==t?ml(t):e}function Mi(e,t,r){return e.expression!==t||e.statement!==r?hl(t,r):e}function qi(e,t,r){return e.expression!==t||e.caseBlock!==r?dl(t,r):e}function Bi(e,t){return e.clauses!==t?Tl(t):e}function Ui(e,t){return e.expression!==t?gl(t):e}function ji(e,t,r,i){return e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==i?yl(t,r,i):e}function Vi(e,t,r){return e.variableDeclaration!==t||e.block!==r?xl(t,r):e}function Wi(e,t,r){return e.label!==t||e.statement!==r?El(t,r):e}function zi(e,t){return e.expression!==t?kl(t):e}function Hi(e,t){return e.statements!==t?wl(t,e.multiLine):e}function Gi(e,t,r){return e.modifiers!==t||e.declarationList!==r?_l(t,r):e}function $i(e,t,r,i,s){return e.name!==t||e.exclamationToken!==r||e.type!==i||e.initializer!==s?Dl(t,r,i,s):e}function Fi(e,t){return e.declarations!==t?Sl(t,e.flags):e}function Qi(e,t,r,i,s,a,p){return e.modifiers!==t||e.dotDotDotToken!==r||e.name!==i||e.questionToken!==s||e.type!==a||e.initializer!==p?Pl(t,r,i,s,a,p):e}function Yi(e,t,r,i,s){return e.dotDotDotToken!==t||e.propertyName!==r||e.name!==i||e.initializer!==s?Al(t,r,i,s):e}function Xi(e,t){return e.modifiers!==t?bl(t):e}function Zi(e,t,r,i,s,a,p,T){return e.modifiers!==t||e.asteriskToken!==r||e.name!==i||e.typeParameters!==s||e.parameters!==a||e.type!==p||e.body!==T?Il(t,r,i,s,a,p,T):e}function Ki(e,t,r,i,s,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.heritageClauses!==s||e.members!==a?Cl(t,r,i,s,a):e}function es(e,t,r,i,s,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.heritageClauses!==s||e.members!==a?Nl(t,r,i,s,a):e}function ts(e,t){return e.types!==t?Ll(e.token,t):e}function rs(e,t,r,i,s,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.heritageClauses!==s||e.members!==a?Jl(t,r,i,s,a):e}function ns(e,t,r,i,s){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.type!==s?Rl(t,r,i,s):e}function is(e,t,r){return e.name!==t||e.initializer!==r?Ol(t,r):e}function ss(e,t,r,i){return e.modifiers!==t||e.name!==r||e.members!==i?vl(t,r,i):e}function os(e,t){return e.statements!==t?Ml(t):e}function as(e,t,r,i,s){return e.modifiers!==t||e.importClause!==r||e.moduleSpecifier!==i||e.attributes!==s?ql(t,r,i,s):e}function cs(e,t){return e.expression!==t?Bl(t):e}function us(e,t){return e.name!==t?Ul(t):e}function ps(e,t){return e.elements!==t?jl(t):e}function ls(e,t,r,i){return e.modifiers!==t||e.type!==r||e.expression!==i?Vl(t,e.isExportEquals,r,i):e}function fs(e,t,r){return e.modifiers!==t||e.name!==r?Wl(t,r):e}function ms(e,t){return e.name!==t?zl(t):e}function hs(e,t){return e.elements!==t?Hl(t):e}function ds(e,t,r){return e.propertyName!==t||e.name!==r?Gl(e.isTypeOnly,t,r):e}function Ts(e,t,r,i){return e.typeParameters!==t||e.parameters!==r||e.type!==i?$l(t,r,i):e}function gs(e,t,r,i){return e.typeParameters!==t||e.parameters!==r||e.type!==i?Fl(t,r,i):e}function ys(e,t,r,i,s,a){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==i||e.type!==s||e.body!==a?Ql(t,r,i,s,a):e}function xs(e,t,r,i,s,a,p){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.parameters!==s||e.type!==a||e.body!==p?Yl(t,r,i,s,a,p):e}function Es(e,t,r,i,s,a,p){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.parameters!==s||e.type!==a||e.body!==p?Xl(t,r,i,s,a,p):e}function ks(e,t,r,i){return e.modifiers!==t||e.parameters!==r||e.type!==i?Zl(t,r,i):e}function ws(e,t,r,i,s,a,p){return e.modifiers!==t||e.name!==r||e.postfixToken!==i||e.typeParameters!==s||e.parameters!==a||e.type!==p?Kl(t,r,i,s,a,p):e}function _s(e,t,r,i,s,a,p,T,E){return e.modifiers!==t||e.asteriskToken!==r||e.name!==i||e.postfixToken!==s||e.typeParameters!==a||e.parameters!==p||e.type!==T||e.body!==E?ef(t,r,i,s,a,p,T,E):e}function Ds(e,t,r,i,s,a){return e.modifiers!==t||e.name!==r||e.postfixToken!==i||e.type!==s||e.initializer!==a?tf(t,r,i,s,a):e}function Ss(e,t,r,i,s,a){return e.modifiers!==t||e.name!==r||e.postfixToken!==i||e.type!==s||e.initializer!==a?rf(t,r,i,s,a):e}function Ps(e,t,r){return e.modifiers!==t||e.body!==r?nf(t,r):e}function As(e,t,r,i,s,a){return e.modifiers!==t||e.left!==r||e.type!==i||e.operatorToken!==s||e.right!==a?sf(t,r,i,s,a):e}function bs(e,t){return e.operand!==t?of(e.operator,t):e}function Is(e,t){return e.operand!==t?af(t,e.operator):e}function Cs(e,t,r){return e.asteriskToken!==t||e.expression!==r?cf(t,r):e}function Ns(e,t,r,i,s,a,p){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==i||e.type!==s||e.equalsGreaterThanToken!==a||e.body!==p?uf(t,r,i,s,a,p):e}function Ls(e,t,r,i,s,a,p,T){return e.modifiers!==t||e.asteriskToken!==r||e.name!==i||e.typeParameters!==s||e.parameters!==a||e.type!==p||e.body!==T?pf(t,r,i,s,a,p,T):e}function Js(e,t,r){return e.expression!==t||e.type!==r?lf(t,r):e}function Rs(e,t,r){return e.expression!==t||e.type!==r?ff(t,r):e}function Os(e,t,r,i,s,a){return e.condition!==t||e.questionToken!==r||e.whenTrue!==i||e.colonToken!==s||e.whenFalse!==a?mf(t,r,i,s,a):e}function vs(e,t,r,i){return e.expression!==t||e.questionDotToken!==r||e.name!==i?hf(t,r,i,e.flags):e}function Ms(e,t,r,i){return e.expression!==t||e.questionDotToken!==r||e.argumentExpression!==i?df(t,r,i,e.flags):e}function qs(e,t,r,i,s){return e.expression!==t||e.questionDotToken!==r||e.typeArguments!==i||e.arguments!==s?Tf(t,r,i,s,e.flags):e}function Bs(e,t,r,i){return e.expression!==t||e.typeArguments!==r||e.arguments!==i?gf(t,r,i):e}function Us(e,t){return e.name!==t?yf(e.keywordToken,t):e}function js(e,t){return e.expression!==t?xf(t,e.flags):e}function Vs(e,t){return e.expression!==t?Ef(t):e}function Ws(e,t,r){return e.head!==t||e.templateSpans!==r?kf(t,r):e}function zs(e,t,r){return e.expression!==t||e.literal!==r?wf(t,r):e}function Hs(e,t,r,i,s){return e.tag!==t||e.questionDotToken!==r||e.typeArguments!==i||e.template!==s?_f(t,r,i,s,e.flags):e}function Gs(e,t){return e.expression!==t?Df(t):e}function $s(e,t){return e.elements!==t?Sf(t,e.multiLine):e}function Fs(e,t){return e.properties!==t?Pf(t,e.multiLine):e}function Qs(e,t){return e.expression!==t?Af(t):e}function Ys(e,t,r,i,s,a){return e.modifiers!==t||e.name!==r||e.postfixToken!==i||e.type!==s||e.initializer!==a?bf(t,r,i,s,a):e}function Xs(e,t,r,i,s,a,p){return e.modifiers!==t||e.name!==r||e.postfixToken!==i||e.type!==s||e.equalsToken!==a||e.objectAssignmentInitializer!==p?If(t,r,i,s,a,p):e}function Zs(e,t){return e.expression!==t?Cf(t):e}function Ks(e,t){return e.expression!==t?Nf(t):e}function eo(e,t){return e.expression!==t?Lf(t):e}function to(e,t){return e.expression!==t?Jf(t):e}function ro(e,t,r){return e.type!==t||e.expression!==r?Rf(t,r):e}function no(e,t){return e.types!==t?Of(t):e}function io(e,t){return e.types!==t?vf(t):e}function so(e,t,r,i,s){return e.checkType!==t||e.extendsType!==r||e.trueType!==i||e.falseType!==s?Mf(t,r,i,s):e}function oo(e,t){return e.type!==t?qf(e.operator,t):e}function ao(e,t){return e.typeParameter!==t?Bf(t):e}function co(e,t){return e.elementType!==t?Uf(t):e}function uo(e,t,r){return e.objectType!==t||e.indexType!==r?jf(t,r):e}function po(e,t,r){return e.typeName!==t||e.typeArguments!==r?Vf(t,r):e}function lo(e,t,r){return e.expression!==t||e.typeArguments!==r?Wf(t,r):e}function fo(e,t){return e.literal!==t?zf(t):e}function mo(e,t,r,i){return e.assertsModifier!==t||e.parameterName!==r||e.type!==i?Hf(t,r,i):e}function ho(e,t,r){return e.name!==t||e.value!==r?Gf(t,r):e}function To(e,t){return e.attributes!==t?$f(e.token,t,e.multiLine):e}function go(e,t,r){return e.exprName!==t||e.typeArguments!==r?Ff(t,r):e}function yo(e,t,r,i,s,a,p){return e.readonlyToken!==t||e.typeParameter!==r||e.nameType!==i||e.questionToken!==s||e.type!==a||e.members!==p?Qf(t,r,i,s,a,p):e}function xo(e,t){return e.members!==t?Yf(t):e}function Eo(e,t){return e.elements!==t?Xf(t):e}function ko(e,t,r,i,s){return e.dotDotDotToken!==t||e.name!==r||e.questionToken!==i||e.type!==s?Zf(t,r,i,s):e}function wo(e,t){return e.type!==t?Kf(t):e}function _o(e,t){return e.type!==t?em(t):e}function Do(e,t){return e.type!==t?tm(t):e}function So(e,t,r,i){return e.typeParameters!==t||e.parameters!==r||e.type!==i?rm(t,r,i):e}function Po(e,t,r,i,s){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==i||e.type!==s?nm(t,r,i,s):e}function Ao(e,t,r){return e.head!==t||e.templateSpans!==r?im(t,r):e}function bo(e,t,r){return e.type!==t||e.literal!==r?sm(t,r):e}function Io(e,t){return e.tupleNameSource!==t?om(e.type,e.isSpread,t):e}function Co(e,t){return e.expression!==t?am(t):e}function No(e,t,r,i){return e.openingElement!==t||e.children!==r||e.closingElement!==i?cm(t,r,i):e}function Lo(e,t){return e.properties!==t?um(t):e}function Jo(e,t,r){return e.namespace!==t||e.name!==r?pm(t,r):e}function Ro(e,t,r,i){return e.tagName!==t||e.typeArguments!==r||e.attributes!==i?lm(t,r,i):e}function Oo(e,t,r,i){return e.tagName!==t||e.typeArguments!==r||e.attributes!==i?fm(t,r,i):e}function vo(e,t,r,i){return e.openingFragment!==t||e.children!==r||e.closingFragment!==i?mm(t,r,i):e}function Mo(e,t,r){return e.name!==t||e.initializer!==r?hm(t,r):e}function qo(e,t){return e.expression!==t?dm(t):e}function Bo(e,t){return e.tagName!==t?Tm(t):e}function Uo(e,t,r){return e.dotDotDotToken!==t||e.expression!==r?gm(t,r):e}function jo(e,t){return e.children!==t?ym(t):e}function Vo(e,t,r){return e.comment!==t||e.tags!==r?xm(t,r):e}function Wo(e,t){return e.type!==t?Em(t):e}function zo(e,t){return e.type!==t?km(t):e}function Ho(e,t){return e.type!==t?wm(t):e}function Go(e,t){return e.type!==t?_m(t):e}function $o(e,t){return e.type!==t?Dm(t):e}function Fo(e,t,r,i){return e.tagName!==t||e.typeExpression!==r||e.comment!==i?Sm(t,r,i):e}function Qo(e,t,r){return e.tagName!==t||e.comment!==r?Pm(t,r):e}function Yo(e,t,r,i,s){return e.tagName!==t||e.constraint!==r||e.typeParameters!==i||e.comment!==s?Am(t,r,i,s):e}function Xo(e,t,r,i){return e.tagName!==t||e.typeExpression!==r||e.comment!==i?bm(t,r,i):e}function Zo(e,t,r){return e.tagName!==t||e.comment!==r?Im(t,r):e}function Ko(e,t,r){return e.tagName!==t||e.comment!==r?Cm(t,r):e}function ea(e,t,r){return e.tagName!==t||e.comment!==r?Nm(t,r):e}function ta(e,t,r){return e.tagName!==t||e.comment!==r?Lm(t,r):e}function ra(e,t,r){return e.tagName!==t||e.comment!==r?Jm(t,r):e}function na(e,t,r){return e.tagName!==t||e.comment!==r?Rm(t,r):e}function ia(e,t,r,i){return e.tagName!==t||e.nameExpression!==r||e.comment!==i?Om(t,r,i):e}function sa(e,t,r,i){return e.tagName!==t||e.className!==r||e.comment!==i?vm(t,r,i):e}function oa(e,t,r,i){return e.tagName!==t||e.className!==r||e.comment!==i?Mm(t,r,i):e}function aa(e,t,r,i){return e.tagName!==t||e.typeExpression!==r||e.comment!==i?qm(t,r,i):e}function ca(e,t,r,i){return e.tagName!==t||e.typeExpression!==r||e.comment!==i?Bm(t,r,i):e}function ua(e,t,r,i){return e.tagName!==t||e.typeExpression!==r||e.comment!==i?Um(t,r,i):e}function pa(e,t,r,i,s,a){return e.tagName!==t||e.importClause!==r||e.moduleSpecifier!==i||e.attributes!==s||e.comment!==a?jm(t,r,i,s,a):e}function la(e,t,r,i,s){return e.tagName!==t||e.typeExpression!==r||e.name!==i||e.comment!==s?Vm(t,r,i,s):e}function fa(e,t,r,i){return e.tagName!==t||e.typeExpression!==r||e.comment!==i?Wm(t,r,i):e}function ma(e,t,r,i,s){return e.tagName!==t||e.typeExpression!==r||e.name!==i||e.comment!==s?zm(t,r,i,s):e}function ha(e,t,r,i){return e.typeParameters!==t||e.parameters!==r||e.type!==i?Hm(t,r,i):e}function da(e,t){return e.name!==t?Gm(t):e}function Ta(e,t,r,i){return e.modifiers!==t||e.name!==r||e.body!==i?$m(t,e.keyword,r,i):e}function ga(e,t,r,i){return e.modifiers!==t||e.name!==r||e.moduleReference!==i?Fm(t,e.isTypeOnly,r,i):e}function ya(e,t,r,i,s){return e.modifiers!==t||e.exportClause!==r||e.moduleSpecifier!==i||e.attributes!==s?Qm(t,e.isTypeOnly,r,i,s):e}function xa(e,t,r,i,s){return e.argument!==t||e.attributes!==r||e.qualifier!==i||e.typeArguments!==s?Ym(e.isTypeOf,t,r,i,s):e}function Ea(e,t,r){return e.name!==t||e.namedBindings!==r?Xm(e.phaseModifier,t,r):e}function ka(e,t,r){return e.propertyName!==t||e.name!==r?Zm(e.isTypeOnly,t,r):e}function wa(e,t){return e.name!==t?Km(t,e.text):e}function _a(e,t){return e.name!==t?eh(t,e.text):e}function Da(e,t){return e.name!==t?th(t,e.text):e}function Sa(e,t,r,i,s,a){return e.modifiers!==t||e.name!==r||e.constraint!==i||e.expression!==s||e.defaultType!==a?rh(t,r,i,s,a):e}function Pa(e,t,r){return e.expression!==t||e.thisArg!==r?nh(t,r):e}function Aa(e,t){return e.jsdocPropertyTags!==t?ih(t,e.isArrayType):e}function ba(e,t,r,i,s){return e.awaitModifier!==t||e.initializer!==r||e.expression!==i||e.statement!==s?sh(t,r,i,s):e}function Ia(e,t,r,i,s){return e.awaitModifier!==t||e.initializer!==r||e.expression!==i||e.statement!==s?oh(t,r,i,s):e}function Ca(e,t,r){return e.expression!==t||e.statements!==r?ah(t,r):e}function Na(e,t,r){return e.expression!==t||e.statements!==r?ch(t,r):e}function La(e,t){return e.elements!==t?uh(t):e}function Ja(e,t){return e.elements!==t?ph(t):e}function Oa(e,t,r,i,s){return e.tagName!==t||e.name!==r||e.typeExpression!==i||e.comment!==s?lh(t,r,e.isBracketed,i,e.isNameFirst,s):e}function va(e,t,r,i,s){return e.tagName!==t||e.name!==r||e.typeExpression!==i||e.comment!==s?fh(t,r,e.isBracketed,i,e.isNameFirst,s):e}function mh(e,t,r){return new f(n.SourceFile,{...Qn(e),statements:m(t),endOfFileToken:r})}function Ra(e,t,r){return e.statements!==t||e.endOfFileToken!==r?mh(e,t,r):e}var Ma={abstract:n.AbstractKeyword,accessor:n.AccessorKeyword,any:n.AnyKeyword,as:n.AsKeyword,asserts:n.AssertsKeyword,assert:n.AssertKeyword,bigint:n.BigIntKeyword,boolean:n.BooleanKeyword,break:n.BreakKeyword,case:n.CaseKeyword,catch:n.CatchKeyword,class:n.ClassKeyword,continue:n.ContinueKeyword,const:n.ConstKeyword,["constructor"]:n.ConstructorKeyword,debugger:n.DebuggerKeyword,declare:n.DeclareKeyword,default:n.DefaultKeyword,defer:n.DeferKeyword,delete:n.DeleteKeyword,do:n.DoKeyword,else:n.ElseKeyword,enum:n.EnumKeyword,export:n.ExportKeyword,extends:n.ExtendsKeyword,false:n.FalseKeyword,finally:n.FinallyKeyword,for:n.ForKeyword,from:n.FromKeyword,function:n.FunctionKeyword,get:n.GetKeyword,if:n.IfKeyword,implements:n.ImplementsKeyword,import:n.ImportKeyword,in:n.InKeyword,infer:n.InferKeyword,instanceof:n.InstanceOfKeyword,interface:n.InterfaceKeyword,intrinsic:n.IntrinsicKeyword,is:n.IsKeyword,keyof:n.KeyOfKeyword,let:n.LetKeyword,module:n.ModuleKeyword,namespace:n.NamespaceKeyword,never:n.NeverKeyword,new:n.NewKeyword,null:n.NullKeyword,number:n.NumberKeyword,object:n.ObjectKeyword,package:n.PackageKeyword,private:n.PrivateKeyword,protected:n.ProtectedKeyword,public:n.PublicKeyword,override:n.OverrideKeyword,out:n.OutKeyword,readonly:n.ReadonlyKeyword,require:n.RequireKeyword,global:n.GlobalKeyword,return:n.ReturnKeyword,satisfies:n.SatisfiesKeyword,set:n.SetKeyword,static:n.StaticKeyword,string:n.StringKeyword,super:n.SuperKeyword,switch:n.SwitchKeyword,symbol:n.SymbolKeyword,this:n.ThisKeyword,throw:n.ThrowKeyword,true:n.TrueKeyword,try:n.TryKeyword,type:n.TypeKeyword,typeof:n.TypeOfKeyword,undefined:n.UndefinedKeyword,unique:n.UniqueKeyword,unknown:n.UnknownKeyword,using:n.UsingKeyword,var:n.VarKeyword,void:n.VoidKeyword,while:n.WhileKeyword,with:n.WithKeyword,yield:n.YieldKeyword,async:n.AsyncKeyword,await:n.AwaitKeyword,of:n.OfKeyword},Xg=new Map(Object.entries(Ma)),hh=new Map(Object.entries({...Ma,"{":n.OpenBraceToken,"}":n.CloseBraceToken,"(":n.OpenParenToken,")":n.CloseParenToken,"[":n.OpenBracketToken,"]":n.CloseBracketToken,".":n.DotToken,"...":n.DotDotDotToken,";":n.SemicolonToken,",":n.CommaToken,"<":n.LessThanToken,">":n.GreaterThanToken,"<=":n.LessThanEqualsToken,">=":n.GreaterThanEqualsToken,"==":n.EqualsEqualsToken,"!=":n.ExclamationEqualsToken,"===":n.EqualsEqualsEqualsToken,"!==":n.ExclamationEqualsEqualsToken,"=>":n.EqualsGreaterThanToken,"+":n.PlusToken,"-":n.MinusToken,"**":n.AsteriskAsteriskToken,"*":n.AsteriskToken,"/":n.SlashToken,"%":n.PercentToken,"++":n.PlusPlusToken,"--":n.MinusMinusToken,"<<":n.LessThanLessThanToken,"</":n.LessThanSlashToken,">>":n.GreaterThanGreaterThanToken,">>>":n.GreaterThanGreaterThanGreaterThanToken,"&":n.AmpersandToken,"|":n.BarToken,"^":n.CaretToken,"!":n.ExclamationToken,"~":n.TildeToken,"&&":n.AmpersandAmpersandToken,"||":n.BarBarToken,"?":n.QuestionToken,"??":n.QuestionQuestionToken,"?.":n.QuestionDotToken,":":n.ColonToken,"=":n.EqualsToken,"+=":n.PlusEqualsToken,"-=":n.MinusEqualsToken,"*=":n.AsteriskEqualsToken,"**=":n.AsteriskAsteriskEqualsToken,"/=":n.SlashEqualsToken,"%=":n.PercentEqualsToken,"<<=":n.LessThanLessThanEqualsToken,">>=":n.GreaterThanGreaterThanEqualsToken,">>>=":n.GreaterThanGreaterThanGreaterThanEqualsToken,"&=":n.AmpersandEqualsToken,"|=":n.BarEqualsToken,"^=":n.CaretEqualsToken,"||=":n.BarBarEqualsToken,"&&=":n.AmpersandAmpersandEqualsToken,"??=":n.QuestionQuestionEqualsToken,"@":n.AtToken,"#":n.HashToken,"`":n.BacktickToken})),Zg=new Map([[k.d,de.HasIndices],[k.g,de.Global],[k.i,de.IgnoreCase],[k.m,de.Multiline],[k.s,de.DotAll],[k.u,de.Unicode],[k.v,de.UnicodeSets],[k.y,de.Sticky]]);function dh(e){let t=[];return e.forEach((r,i)=>{t[r]=i}),t}var Kg=dh(hh);function qa(e){let t=[],r=0,i=0;while(r<e.length){let s=e.charCodeAt(r);switch(r++,s){case k.carriageReturn:if(e.charCodeAt(r)===k.lineFeed)r++;case k.lineFeed:t.push(i),i=r;break;default:if(s>k.maxAsciiCharacter&&ct(s))t.push(i),i=r;break}}return t.push(i),t}function Th(e){return gh(e)||ct(e)}function gh(e){return e===k.space||e===k.tab||e===k.verticalTab||e===k.formFeed||e===k.nonBreakingSpace||e===k.nextLine||e===k.ogham||e>=k.enQuad&&e<=k.zeroWidthSpace||e===k.narrowNoBreakSpace||e===k.mathematicalSpace||e===k.ideographicSpace||e===k.byteOrderMark}function ct(e){return e===k.lineFeed||e===k.carriageReturn||e===k.lineSeparator||e===k.paragraphSeparator}function Vr(e,t,r,i,s){if(t<0)return t;let a=!1;while(!0){let p=e.charCodeAt(t);switch(p){case k.carriageReturn:if(e.charCodeAt(t+1)===k.lineFeed)t++;case k.lineFeed:if(t++,r)return t;a=!!s;continue;case k.tab:case k.verticalTab:case k.formFeed:case k.space:t++;continue;case k.slash:if(i)break;if(e.charCodeAt(t+1)===k.slash){t+=2;while(t<e.length){if(ct(e.charCodeAt(t)))break;t++}a=!1;continue}if(e.charCodeAt(t+1)===k.asterisk){t+=2;while(t<e.length){if(e.charCodeAt(t)===k.asterisk&&e.charCodeAt(t+1)===k.slash){t+=2;break}t++}a=!1;continue}break;case k.lessThan:case k.bar:case k.equals:case k.greaterThan:if(Ba(e,t)){t=yh(e,t),a=!1;continue}break;case k.hash:if(t===0&&xh(e,t)){t=Eh(e,t);continue}break;case k.asterisk:if(a){t++,a=!1;continue}break;default:if(p>k.maxAsciiCharacter&&Th(p)){t++;continue}break}return t}}function Ba(e,t){if(t>=e.length)return!1;let r=e.charCodeAt(t);if(t===0||ct(e.charCodeAt(t-1))){if(r===k.lessThan||r===k.greaterThan||r===k.equals){if(t+6<e.length&&e.charCodeAt(t+1)===r&&e.charCodeAt(t+2)===r&&e.charCodeAt(t+3)===r&&e.charCodeAt(t+4)===r&&e.charCodeAt(t+5)===r&&e.charCodeAt(t+6)===r)return r===k.equals||e.charCodeAt(t+7)===k.space}if(r===k.bar&&t+6<e.length&&e.charCodeAt(t+1)===r&&e.charCodeAt(t+2)===r&&e.charCodeAt(t+3)===r&&e.charCodeAt(t+4)===r&&e.charCodeAt(t+5)===r&&e.charCodeAt(t+6)===r)return!0}return!1}function yh(e,t){let r=e.charCodeAt(t),i=e.length;if(r===k.lessThan||r===k.greaterThan)while(t<i&&!ct(e.charCodeAt(t)))t++;else{t+=7;while(t<i){let s=e.charCodeAt(t);if((s===k.equals||s===k.greaterThan)&&Ba(e,t))break;t++}}return t}function xh(e,t){return t===0&&e.charCodeAt(0)===k.hash&&e.charCodeAt(1)===k.exclamation}function Eh(e,t){t+=2;while(t<e.length){if(ct(e.charCodeAt(t)))break;t++}return t}function Ct(e,t,r){if(wh(e))return e.pos;if(di(e.kind)||e.kind===n.JsxText)return Vr(t.text,e.pos,!1,!0);if(r&&e.jsDoc&&e.jsDoc.length>0)return Ct(e.jsDoc[0],t,!1);return Vr(t.text,e.pos,!1,!1,!!(e.flags&Pe.JSDoc))}function wh(e){return e.pos===e.end&&e.pos>=0&&e.kind!==n.EndOfFile}var $e={[n.QualifiedName]:["left","right"],[n.ComputedPropertyName]:["expression"],[n.Decorator]:["expression"],[n.IfStatement]:["expression","thenStatement","elseStatement"],[n.DoStatement]:["statement","expression"],[n.WhileStatement]:["expression","statement"],[n.ForStatement]:["initializer","condition","incrementor","statement"],[n.ForInStatement]:["awaitModifier","initializer","expression","statement"],[n.ForOfStatement]:["awaitModifier","initializer","expression","statement"],[n.BreakStatement]:["label"],[n.ContinueStatement]:["label"],[n.ReturnStatement]:["expression"],[n.WithStatement]:["expression","statement"],[n.SwitchStatement]:["expression","caseBlock"],[n.CaseBlock]:["clauses"],[n.CaseClause]:["expression","statements"],[n.DefaultClause]:["expression","statements"],[n.ThrowStatement]:["expression"],[n.TryStatement]:["tryBlock","catchClause","finallyBlock"],[n.CatchClause]:["variableDeclaration","block"],[n.LabeledStatement]:["label","statement"],[n.ExpressionStatement]:["expression"],[n.Block]:["statements"],[n.VariableStatement]:["modifiers","declarationList"],[n.VariableDeclaration]:["name","exclamationToken","type","initializer"],[n.VariableDeclarationList]:["declarations"],[n.ObjectBindingPattern]:["elements"],[n.ArrayBindingPattern]:["elements"],[n.Parameter]:["modifiers","dotDotDotToken","name","questionToken","type","initializer"],[n.BindingElement]:["dotDotDotToken","propertyName","name","initializer"],[n.MissingDeclaration]:["modifiers"],[n.FunctionDeclaration]:["modifiers","asteriskToken","name","typeParameters","parameters","type","body"],[n.ClassDeclaration]:["modifiers","name","typeParameters","heritageClauses","members"],[n.ClassExpression]:["modifiers","name","typeParameters","heritageClauses","members"],[n.HeritageClause]:["types"],[n.InterfaceDeclaration]:["modifiers","name","typeParameters","heritageClauses","members"],[n.TypeAliasDeclaration]:["modifiers","name","typeParameters","type"],[n.JSTypeAliasDeclaration]:["modifiers","name","typeParameters","type"],[n.EnumMember]:["name","initializer"],[n.EnumDeclaration]:["modifiers","name","members"],[n.ModuleBlock]:["statements"],[n.ImportDeclaration]:["modifiers","importClause","moduleSpecifier","attributes"],[n.JSImportDeclaration]:["modifiers","importClause","moduleSpecifier","attributes"],[n.ExternalModuleReference]:["expression"],[n.NamespaceImport]:["name"],[n.NamedImports]:["elements"],[n.ExportAssignment]:["modifiers","type","expression"],[n.NamespaceExportDeclaration]:["modifiers","name"],[n.NamespaceExport]:["name"],[n.NamedExports]:["elements"],[n.ExportSpecifier]:["propertyName","name"],[n.CallSignature]:["typeParameters","parameters","type"],[n.ConstructSignature]:["typeParameters","parameters","type"],[n.Constructor]:["modifiers","typeParameters","parameters","type","body"],[n.GetAccessor]:["modifiers","name","typeParameters","parameters","type","body"],[n.SetAccessor]:["modifiers","name","typeParameters","parameters","type","body"],[n.IndexSignature]:["modifiers","parameters","type"],[n.MethodSignature]:["modifiers","name","postfixToken","typeParameters","parameters","type"],[n.MethodDeclaration]:["modifiers","asteriskToken","name","postfixToken","typeParameters","parameters","type","body"],[n.PropertySignature]:["modifiers","name","postfixToken","type","initializer"],[n.PropertyDeclaration]:["modifiers","name","postfixToken","type","initializer"],[n.ClassStaticBlockDeclaration]:["modifiers","body"],[n.BinaryExpression]:["modifiers","left","type","operatorToken","right"],[n.PrefixUnaryExpression]:["operand"],[n.PostfixUnaryExpression]:["operand"],[n.YieldExpression]:["asteriskToken","expression"],[n.ArrowFunction]:["modifiers","typeParameters","parameters","type","equalsGreaterThanToken","body"],[n.FunctionExpression]:["modifiers","asteriskToken","name","typeParameters","parameters","type","body"],[n.AsExpression]:["expression","type"],[n.SatisfiesExpression]:["expression","type"],[n.ConditionalExpression]:["condition","questionToken","whenTrue","colonToken","whenFalse"],[n.PropertyAccessExpression]:["expression","questionDotToken","name"],[n.ElementAccessExpression]:["expression","questionDotToken","argumentExpression"],[n.CallExpression]:["expression","questionDotToken","typeArguments","arguments"],[n.NewExpression]:["expression","typeArguments","arguments"],[n.MetaProperty]:["name"],[n.NonNullExpression]:["expression"],[n.SpreadElement]:["expression"],[n.TemplateExpression]:["head","templateSpans"],[n.TemplateSpan]:["expression","literal"],[n.TaggedTemplateExpression]:["tag","questionDotToken","typeArguments","template"],[n.ParenthesizedExpression]:["expression"],[n.ArrayLiteralExpression]:["elements"],[n.ObjectLiteralExpression]:["properties"],[n.SpreadAssignment]:["expression"],[n.PropertyAssignment]:["modifiers","name","postfixToken","type","initializer"],[n.ShorthandPropertyAssignment]:["modifiers","name","postfixToken","type","equalsToken","objectAssignmentInitializer"],[n.DeleteExpression]:["expression"],[n.TypeOfExpression]:["expression"],[n.VoidExpression]:["expression"],[n.AwaitExpression]:["expression"],[n.TypeAssertionExpression]:["type","expression"],[n.UnionType]:["types"],[n.IntersectionType]:["types"],[n.ConditionalType]:["checkType","extendsType","trueType","falseType"],[n.TypeOperator]:["type"],[n.InferType]:["typeParameter"],[n.ArrayType]:["elementType"],[n.IndexedAccessType]:["objectType","indexType"],[n.TypeReference]:["typeName","typeArguments"],[n.ExpressionWithTypeArguments]:["expression","typeArguments"],[n.LiteralType]:["literal"],[n.TypePredicate]:["assertsModifier","parameterName","type"],[n.ImportAttribute]:["name","value"],[n.ImportAttributes]:["attributes"],[n.TypeQuery]:["exprName","typeArguments"],[n.MappedType]:["readonlyToken","typeParameter","nameType","questionToken","type","members"],[n.TypeLiteral]:["members"],[n.TupleType]:["elements"],[n.NamedTupleMember]:["dotDotDotToken","name","questionToken","type"],[n.OptionalType]:["type"],[n.RestType]:["type"],[n.ParenthesizedType]:["type"],[n.FunctionType]:["typeParameters","parameters","type"],[n.ConstructorType]:["modifiers","typeParameters","parameters","type"],[n.TemplateLiteralType]:["head","templateSpans"],[n.TemplateLiteralTypeSpan]:["type","literal"],[n.SyntheticExpression]:["tupleNameSource"],[n.PartiallyEmittedExpression]:["expression"],[n.JsxElement]:["openingElement","children","closingElement"],[n.JsxAttributes]:["properties"],[n.JsxNamespacedName]:["namespace","name"],[n.JsxOpeningElement]:["tagName","typeArguments","attributes"],[n.JsxSelfClosingElement]:["tagName","typeArguments","attributes"],[n.JsxFragment]:["openingFragment","children","closingFragment"],[n.JsxAttribute]:["name","initializer"],[n.JsxSpreadAttribute]:["expression"],[n.JsxClosingElement]:["tagName"],[n.JsxExpression]:["dotDotDotToken","expression"],[n.SyntaxList]:["children"],[n.JSDoc]:["comment","tags"],[n.JSDocTypeExpression]:["type"],[n.JSDocNonNullableType]:["type"],[n.JSDocNullableType]:["type"],[n.JSDocVariadicType]:["type"],[n.JSDocOptionalType]:["type"],[n.JSDocTypeTag]:["tagName","typeExpression","comment"],[n.JSDocUnknownTag]:["tagName","comment"],[n.JSDocTemplateTag]:["tagName","constraint","typeParameters","comment"],[n.JSDocReturnTag]:["tagName","typeExpression","comment"],[n.JSDocPublicTag]:["tagName","comment"],[n.JSDocPrivateTag]:["tagName","comment"],[n.JSDocProtectedTag]:["tagName","comment"],[n.JSDocReadonlyTag]:["tagName","comment"],[n.JSDocOverrideTag]:["tagName","comment"],[n.JSDocDeprecatedTag]:["tagName","comment"],[n.JSDocSeeTag]:["tagName","nameExpression","comment"],[n.JSDocImplementsTag]:["tagName","className","comment"],[n.JSDocAugmentsTag]:["tagName","className","comment"],[n.JSDocSatisfiesTag]:["tagName","typeExpression","comment"],[n.JSDocThrowsTag]:["tagName","typeExpression","comment"],[n.JSDocThisTag]:["tagName","typeExpression","comment"],[n.JSDocImportTag]:["tagName","importClause","moduleSpecifier","attributes","comment"],[n.JSDocCallbackTag]:["tagName","typeExpression","name","comment"],[n.JSDocOverloadTag]:["tagName","typeExpression","comment"],[n.JSDocTypedefTag]:["tagName","typeExpression","name","comment"],[n.JSDocSignature]:["typeParameters","parameters","type"],[n.JSDocNameReference]:["name"],[n.SourceFile]:["statements","endOfFileToken"],[n.ModuleDeclaration]:["modifiers","name","body"],[n.ImportEqualsDeclaration]:["modifiers","name","moduleReference"],[n.ExportDeclaration]:["modifiers","exportClause","moduleSpecifier","attributes"],[n.ImportType]:["argument","attributes","qualifier","typeArguments"],[n.ImportClause]:["name","namedBindings"],[n.ImportSpecifier]:["propertyName","name"],[n.JSDocLink]:["name"],[n.JSDocLinkPlain]:["name"],[n.JSDocLinkCode]:["name"],[n.TypeParameter]:["modifiers","name","constraint","expression","defaultType"],[n.SyntheticReferenceExpression]:["expression","thisArg"],[n.JSDocTypeLiteral]:["jsdocPropertyTags"],[n.JSDocParameterTag]:["tagName","name","typeExpression","comment"],[n.JSDocPropertyTag]:["tagName","name","typeExpression","comment"]},_h={[n.ComputedPropertyName]:"expression",[n.Decorator]:"expression",[n.BreakStatement]:"label",[n.ContinueStatement]:"label",[n.ReturnStatement]:"expression",[n.CaseBlock]:"clauses",[n.ThrowStatement]:"expression",[n.ExpressionStatement]:"expression",[n.Block]:"statements",[n.VariableDeclarationList]:"declarations",[n.ObjectBindingPattern]:"elements",[n.ArrayBindingPattern]:"elements",[n.MissingDeclaration]:"modifiers",[n.HeritageClause]:"types",[n.ModuleBlock]:"statements",[n.ExternalModuleReference]:"expression",[n.NamespaceImport]:"name",[n.NamedImports]:"elements",[n.NamespaceExport]:"name",[n.NamedExports]:"elements",[n.PrefixUnaryExpression]:"operand",[n.PostfixUnaryExpression]:"operand",[n.MetaProperty]:"name",[n.NonNullExpression]:"expression",[n.SpreadElement]:"expression",[n.ParenthesizedExpression]:"expression",[n.ArrayLiteralExpression]:"elements",[n.ObjectLiteralExpression]:"properties",[n.SpreadAssignment]:"expression",[n.DeleteExpression]:"expression",[n.TypeOfExpression]:"expression",[n.VoidExpression]:"expression",[n.AwaitExpression]:"expression",[n.UnionType]:"types",[n.IntersectionType]:"types",[n.TypeOperator]:"type",[n.InferType]:"typeParameter",[n.ArrayType]:"elementType",[n.LiteralType]:"literal",[n.ImportAttributes]:"attributes",[n.TypeLiteral]:"members",[n.TupleType]:"elements",[n.OptionalType]:"type",[n.RestType]:"type",[n.ParenthesizedType]:"type",[n.SyntheticExpression]:"tupleNameSource",[n.PartiallyEmittedExpression]:"expression",[n.JsxAttributes]:"properties",[n.JsxSpreadAttribute]:"expression",[n.JsxClosingElement]:"tagName",[n.SyntaxList]:"children",[n.JSDocTypeExpression]:"type",[n.JSDocNonNullableType]:"type",[n.JSDocNullableType]:"type",[n.JSDocVariadicType]:"type",[n.JSDocOptionalType]:"type",[n.JSDocNameReference]:"name",[n.JSDocLink]:"name",[n.JSDocLinkPlain]:"name",[n.JSDocLinkCode]:"name",[n.JSDocTypeLiteral]:"jsdocPropertyTags"};var Ua=5,ja=0,Va=4,Wa=8,za=12,Ha=16,Ga=20,Zt=24,Kt=28,er=32,tr=36,rr=40,Nt=44,ee=28,Fe=0,nr=4,ir=8,ut=12,Qe=16,sr=20,$a=24,Ye=4294967295,Re=0,Xe=1073741824,pt=2147483648;function Fa(e){switch(e){case n.Identifier:case n.PrivateIdentifier:case n.JsxText:case n.JSDocText:case n.JSDocLink:case n.JSDocLinkPlain:case n.JSDocLinkCode:return Xe;case n.StringLiteral:case n.NumericLiteral:case n.BigIntLiteral:case n.RegularExpressionLiteral:case n.NoSubstitutionTemplateLiteral:case n.TemplateHead:case n.TemplateMiddle:case n.TemplateTail:case n.SourceFile:return pt;default:return Re}}function Qa(e){switch(e.kind){case n.Block:return(e.multiLine?1:0)<<24;case n.HeritageClause:return(e.token===n.ImplementsKeyword?1:0)<<24;case n.ExportAssignment:return(e.isExportEquals?1:0)<<24;case n.ExportSpecifier:return(e.isTypeOnly?1:0)<<24;case n.PrefixUnaryExpression:return(e.operator===n.MinusToken?1:e.operator===n.TildeToken?2:e.operator===n.ExclamationToken?3:e.operator===n.PlusPlusToken?4:e.operator===n.MinusMinusToken?5:0)<<24;case n.PostfixUnaryExpression:return(e.operator===n.MinusMinusToken?1:0)<<24;case n.MetaProperty:return(e.keywordToken===n.NewKeyword?1:0)<<24;case n.ArrayLiteralExpression:return(e.multiLine?1:0)<<24;case n.ObjectLiteralExpression:return(e.multiLine?1:0)<<24;case n.TypeOperator:return(e.operator===n.ReadonlyKeyword?1:e.operator===n.UniqueKeyword?2:0)<<24;case n.ImportAttributes:return(e.multiLine?1:0)<<24|(e.token===n.AssertKeyword?1:0)<<25;case n.JsxText:return(e.containsOnlyTriviaWhiteSpaces?1:0)<<24;case n.ModuleDeclaration:return(e.keyword===n.NamespaceKeyword?1:0)<<24;case n.ImportEqualsDeclaration:return(e.isTypeOnly?1:0)<<24;case n.ExportDeclaration:return(e.isTypeOnly?1:0)<<24;case n.ImportType:return(e.isTypeOf?1:0)<<24;case n.ImportClause:return(e.phaseModifier===n.TypeKeyword?1:e.phaseModifier===n.DeferKeyword?2:0)<<24;case n.ImportSpecifier:return(e.isTypeOnly?1:0)<<24;case n.JSDocTypeLiteral:return(e.isArrayType?1:0)<<24;case n.JSDocParameterTag:case n.JSDocPropertyTag:return(e.isBracketed?1:0)<<24|(e.isNameFirst?1:0)<<25}return 0}import{Buffer as Dh}from"node:buffer";var Ya=237,Sh=160,Ph=191,Ah=128,bh=191;function Ih(e,t){return t+2<e.length&&e[t]===Ya&&e[t+1]>=Sh&&e[t+1]<=Ph&&e[t+2]>=Ah&&e[t+2]<=bh}function Ch(e,t){return 53248|(e[t+1]&63)<<6|e[t+2]&63}function Nh(e){return Dh.from(e.buffer,e.byteOffset,e.byteLength).indexOf(Ya)>=0}function Lh(e){if(e instanceof Uint8Array)return e;if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return new Uint8Array(e)}class Ze extends TextDecoder{decode(e,t){if(e===void 0)return super.decode(e,t);let r=Lh(e);if(!Nh(r))return super.decode(r,t);let i=[],s=0;for(let a=0;a<r.length;a++){if(!Ih(r,a))continue;if(s<a)i.push(super.decode(r.subarray(s,a),t));i.push(String.fromCharCode(Ch(r,a))),a+=2,s=a+1}if(s===0)return super.decode(r,t);if(s<r.length)i.push(super.decode(r.subarray(s),t));return i.join("")}}var Jh=new TextEncoder,Rh=new Ze;class Wr{buf;view;pos;constructor(e=256){this.buf=new Uint8Array(e),this.view=new DataView(this.buf.buffer),this.pos=0}ensure(e){if(this.pos+e>this.buf.length){let t=this.buf.length*2;while(t<this.pos+e)t*=2;let r=new Uint8Array(t);r.set(this.buf),this.buf=r,this.view=new DataView(this.buf.buffer)}}writeArrayHeader(e){if(e<=15)this.ensure(1),this.buf[this.pos++]=144|e;else if(e<=65535)this.ensure(3),this.buf[this.pos++]=220,this.view.setUint16(this.pos,e,!1),this.pos+=2;else this.ensure(5),this.buf[this.pos++]=221,this.view.setUint32(this.pos,e,!1),this.pos+=4}writeUint(e){if(e<=127)this.ensure(1),this.buf[this.pos++]=e;else if(e<=255)this.ensure(2),this.buf[this.pos++]=204,this.buf[this.pos++]=e;else if(e<=65535)this.ensure(3),this.buf[this.pos++]=205,this.view.setUint16(this.pos,e,!1),this.pos+=2;else this.ensure(5),this.buf[this.pos++]=206,this.view.setUint32(this.pos,e,!1),this.pos+=4}writeString(e){let t=Jh.encode(e),r=t.length;if(r<=31)this.ensure(1+r),this.buf[this.pos++]=160|r;else if(r<=255)this.ensure(2+r),this.buf[this.pos++]=217,this.buf[this.pos++]=r;else if(r<=65535)this.ensure(3+r),this.buf[this.pos++]=218,this.view.setUint16(this.pos,r,!1),this.pos+=2;else this.ensure(5+r),this.buf[this.pos++]=219,this.view.setUint32(this.pos,r,!1),this.pos+=4;this.buf.set(t,this.pos),this.pos+=r}writeBool(e){this.ensure(1),this.buf[this.pos++]=e?195:194}finish(){return this.buf.subarray(0,this.pos)}}class Lt{buf;view;pos;constructor(e,t=0){this.buf=e,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.pos=t}readArrayHeader(){let e=this.buf[this.pos++];if((e&240)===144)return e&15;if(e===220){let t=this.view.getUint16(this.pos,!1);return this.pos+=2,t}if(e===221){let t=this.view.getUint32(this.pos,!1);return this.pos+=4,t}throw Error(`Expected array header, got 0x${e.toString(16)}`)}readUint(){let e=this.buf[this.pos++];if(e<=127)return e;if(e===204)return this.buf[this.pos++];if(e===205){let t=this.view.getUint16(this.pos,!1);return this.pos+=2,t}if(e===206){let t=this.view.getUint32(this.pos,!1);return this.pos+=4,t}throw Error(`Expected uint, got 0x${e.toString(16)}`)}readString(){let e=this.buf[this.pos++],t;if((e&224)===160)t=e&31;else if(e===217)t=this.buf[this.pos++];else if(e===218)t=this.view.getUint16(this.pos,!1),this.pos+=2;else if(e===219)t=this.view.getUint32(this.pos,!1),this.pos+=4;else throw Error(`Expected string, got 0x${e.toString(16)}`);let r=Rh.decode(this.buf.subarray(this.pos,this.pos+t));return this.pos+=t,r}readBool(){let e=this.buf[this.pos++];if(e===195)return!0;if(e===194)return!1;throw Error(`Expected bool, got 0x${e.toString(16)}`)}}var Xa=ee/4,Za=3,or=4294967295;class tc{parts;byteLen;offsets;constructor(){this.parts=[],this.byteLen=0,this.offsets=[]}add(e){let t=this.offsets.length,i=Ka().encode(e).length,s=this.byteLen;return this.parts.push(e),this.byteLen+=i,this.offsets.push(s,s+i),t}encode(){let t=Ka().encode(this.parts.join("")),r=new Uint8Array(this.offsets.length*4),i=new DataView(r.buffer);for(let a=0;a<this.offsets.length;a++)i.setUint32(a*4,this.offsets[a],!0);let s=new Uint8Array(r.length+t.length);return s.set(r,0),s.set(t,r.length),s}stringByteLength(){return this.byteLen}offsetsCount(){return this.offsets.length}}var Oh;function Ka(){return Oh??=new TextEncoder}function vh(e){let t=e.kind,r=$e[t];if(!r)return 0;let i=e,s=0;for(let a=0;a<r.length;a++){let p=r[a];if(p!==void 0&&Mh(i[p]))s|=1<<a}return s}function Mh(e){if(e===void 0||e===null)return!1;return!0}function qh(e,t){return t.add(e.text??"")}function zr(e,t){if(!e||e.length===0)return or;let r=t.finish().length;t.writeArrayHeader(e.length);for(let i of e)t.writeArrayHeader(5),t.writeUint(i.pos),t.writeUint(i.end),t.writeString(i.fileName),t.writeUint(i.resolutionMode??0),t.writeBool(i.preserve??!1);return r}function Bh(e,t,r,i){let s=r.length*4;if(e.kind===n.SourceFile){let a=e,p=t.add(a.text),T=t.add(a.fileName),E=t.add(a.path),A=zr(a.referencedFiles,i),N=zr(a.typeReferenceDirectives,i),U=zr(a.libReferenceDirectives,i);r.push(p,T,E,a.languageVariant,a.scriptKind,A,N,U,or,or,or,0)}else if(e.kind===n.TemplateHead||e.kind===n.TemplateMiddle||e.kind===n.TemplateTail){let a=e,p=a.text??"",T=a.rawText??"",E=a.templateFlags??0,A=t.add(p),N=t.add(T);r.push(A,N,E)}else{let a=e,p=a.text??"",T=a.tokenFlags??0,E=t.add(p);r.push(E,T)}return s}function ec(e,t,r,i){let s=Fa(e.kind),a=Qa(e);switch(s){case Re:return s|a|vh(e);case Xe:return s|a|qh(e,t);case pt:return s|a|Bh(e,t,r,i);default:throw Error("unreachable")}}function Uh(e){return $e[e.kind]}function jh(e){return Array.isArray(e)&&typeof e.pos==="number"&&typeof e.end==="number"}function rc(e){let t=new tc,r=[],i=new Wr,s=[];s.push(0,0,0,0,0,0,0);let a=0,p=0,T=0;function E(J){a++;let pe=a;if(T!==0)s[T*Xa+Za]=pe;let oe=ec(J,t,r,i);s.push(J.kind,J.pos>=0?J.pos:0,J.end>=0?J.end:0,0,p,oe,J.flags);let Ne=p,Le=T;p=pe,T=0,N(J),T=pe,p=Ne}function A(J){if(!J)return;a++;let pe=a;if(T!==0)s[T*Xa+Za]=pe;s.push(Ye,J.pos>=0?J.pos:0,J.end>=0?J.end:0,0,p,J.length,0);let oe=p;p=pe,T=0;for(let Ne of J)E(Ne);T=pe,p=oe}function N(J){let pe=Uh(J),oe=J;if(pe)for(let Ne of pe){if(Ne===void 0)continue;let Le=oe[Ne];if(Le===void 0||Le===null)continue;if(jh(Le))A(Le);else E(Le)}}a++,p++;let U=ec(e,t,r,i);s.push(e.kind,e.pos>=0?e.pos:0,e.end>=0?e.end:0,0,0,U,e.flags);let M=p;T=0,p=1,N(e),p=M;let Y=new Uint8Array(r.length*4),ue=new DataView(Y.buffer);for(let J=0;J<r.length;J++)ue.setUint32(J*4,r[J],!0);let Ie=i.finish(),tt=t.encode(),Te=new Uint8Array(s.length*4),_e=new DataView(Te.buffer);for(let J=0;J<s.length;J++)_e.setUint32(J*4,s[J]>>>0,!0);let rt=Nt,Me=Nt+t.offsetsCount()*4,v=Me+t.stringByteLength(),ge=v+Y.length,H=ge+Ie.length,he=new Uint8Array(Nt),De=new DataView(he.buffer),jt=Ua<<24;De.setUint32(ja,jt,!0),De.setUint32(Zt,rt,!0),De.setUint32(Kt,Me,!0),De.setUint32(er,v,!0),De.setUint32(tr,ge,!0),De.setUint32(rr,H,!0);let Ce=new Uint8Array(he.length+tt.length+Y.length+Ie.length+Te.length);return Ce.set(he,0),Ce.set(tt,Nt),Ce.set(Y,v),Ce.set(Ie,ge),Ce.set(Te,H),Ce}function nc(e){return Buffer.from(e).toString("base64")}var ic=[0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,4,5,5,6,5,6,6,7,5,6,6,7,6,7,7,8],sc=3221225472,oc=255,ac=16777215,Ke=16777215;function Hr(e){let t=e.getUint32(Va,!0),r=e.getUint32(Wa,!0),i=e.getUint32(za,!0),s=e.getUint32(Ha,!0);return ar(s)+ar(i)+ar(r)+ar(t)}function Gr(e){return e.getUint32(Ga,!0).toString()}function ar(e){return(e>>>0).toString(16).padStart(8,"0")}function cc(e){switch(e){case n.StaticKeyword:return j.Static;case n.PublicKeyword:return j.Public;case n.ProtectedKeyword:return j.Protected;case n.PrivateKeyword:return j.Private;case n.AbstractKeyword:return j.Abstract;case n.AccessorKeyword:return j.Accessor;case n.ExportKeyword:return j.Export;case n.DeclareKeyword:return j.Ambient;case n.ConstKeyword:return j.Const;case n.DefaultKeyword:return j.Default;case n.AsyncKeyword:return j.Async;case n.ReadonlyKeyword:return j.Readonly;case n.OverrideKeyword:return j.Override;case n.InKeyword:return j.In;case n.OutKeyword:return j.Out;case n.Decorator:return j.Decorator;default:return j.None}}class cr{parent;view;index;_byteIndex;constructor(e,t,r,i){this.view=e,this.index=t,this.parent=r,this._byteIndex=i}get kind(){return this.view.getUint32(this._byteIndex+Fe,!0)}get pos(){return this.view.getInt32(this._byteIndex+nr,!0)}get end(){return this.view.getInt32(this._byteIndex+ir,!0)}get next(){return this.view.getUint32(this._byteIndex+ut,!0)}get parentIndex(){return this.view.getUint32(this._byteIndex+Qe,!0)}get data(){return this.view.getUint32(this._byteIndex+sr,!0)}get dataType(){return this.data&sc}get childMask(){if(this.dataType!==Re)return-1;return this.data&oc}getFileText(e,t){return this.sourceFile._decoder.decode(new Uint8Array(this.view.buffer,this.view.byteOffset+this.sourceFile._offsetStringTable+e,t-e))}get sourceFile(){throw Error("sourceFile not available on base")}}class lt extends Array{static get[Symbol.species](){return Array}parent;hasTrailingComma;transformFlags=0;view;index;_byteIndex;_cursorIndex=0;_cursorNodeIndex=0;get pos(){return this.view.getUint32(this._byteIndex+nr,!0)}get end(){return this.view.getUint32(this._byteIndex+ir,!0)}get next(){return this.view.getUint32(this._byteIndex+ut,!0)}get data(){return this.view.getUint32(this._byteIndex+sr,!0)}sourceFile;constructor(e,t,r,i,s){super();this.view=e,this.index=t,this.parent=r,this.sourceFile=i,this._byteIndex=s+t*ee,this.length=this.data,this._cursorNodeIndex=t+1;let a=this.length;for(let p=16;p<a;p++)Object.defineProperty(this,p,{get(){return this.at(p)}})}get 0(){return this.at(0)}get 1(){return this.at(1)}get 2(){return this.at(2)}get 3(){return this.at(3)}get 4(){return this.at(4)}get 5(){return this.at(5)}get 6(){return this.at(6)}get 7(){return this.at(7)}get 8(){return this.at(8)}get 9(){return this.at(9)}get 10(){return this.at(10)}get 11(){return this.at(11)}get 12(){return this.at(12)}get 13(){return this.at(13)}get 14(){return this.at(14)}get 15(){return this.at(15)}*[Symbol.iterator](){if(!this.length)return;let e=this.index+1;while(e){let t=this.getOrCreateChildAtNodeIndex(e);e=t.next,yield t}}forEachNode(e){if(!this.length)return;let t=this.index+1;while(t){let r=this.getOrCreateChildAtNodeIndex(t);t=r.next;let i=e(r);if(i)return i}}at(e){if(!Number.isInteger(e))return;if(e>=this.data||e<0&&-e>this.data)return;if(e<0)e=this.length+e;let t=this.sourceFile._offsetNodes,r,i;if(e>=this._cursorIndex)r=this._cursorIndex,i=this._cursorNodeIndex;else r=0,i=this.index+1;for(;r<e;r++)i=this.view.getUint32(t+i*ee+ut,!0);return this._cursorIndex=e,this._cursorNodeIndex=i,this.getOrCreateChildAtNodeIndex(i)}getOrCreateChildAtNodeIndex(e){let t=this.sourceFile.nodes[e];if(!t){if(this.view.getUint32(this.sourceFile._offsetNodes+e*ee+Fe,!0)===Ye)throw Error("NodeList cannot directly contain another NodeList");let i=this.sourceFile;t=new Ue(this.view,e,this.parent,i,i._offsetNodes),i.nodes[e]=t,i._timing?.recordMaterialization()}return t}__print(){let e=[];return e.push("kind: NodeList"),e.push(`index: ${this.index}`),e.push(`byteIndex: ${this._byteIndex}`),e.push(`length: ${this.length}`),e.join(`
5
+ ${A}`);let U=A.substr(0,N),M=A.substr(N+1).trim();p.set(e?U.toLowerCase():U,M)}return p}tryReadBody(e){if(this._totalLength<e)return;return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(e===0)return this.emptyBuffer();if(e>this._totalLength)throw Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let s=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(s)}if(this._chunks[0].byteLength>e){let s=this._chunks[0],a=this.asNative(s,e);return this._chunks[0]=s.slice(e),this._totalLength-=e,a}let t=this.allocNative(e),r=0,i=0;while(e>0){let s=this._chunks[i];if(s.byteLength>e){let a=s.slice(0,e);t.set(a,r),r+=e,this._chunks[i]=s.slice(e),this._totalLength-=e,e-=e}else t.set(s,r),r+=s.byteLength,this._chunks.shift(),this._totalLength-=s.byteLength,e-=s.byteLength}return t}}Du.AbstractMessageBuffer=_u});var Nu=o(function(b){var Hd=b&&b.__createBinding||(Object.create?function(e,t,r,i){if(i===void 0)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===void 0)i=r;e[i]=t[r]}),Gd=b&&b.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),$d=b&&b.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))i[i.length]=s;return i},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var i=e(t),s=0;s<i.length;s++)if(i[s]!=="default")Hd(r,t,i[s])}return Gd(r,t),r}}(),Fd=b&&b.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(b,"__esModule",{value:!0});b.ConnectionOptions=b.MessageStrategy=b.CancellationStrategy=b.CancellationSenderStrategy=b.CancellationReceiverStrategy=b.RequestCancellationReceiverStrategy=b.IdCancellationReceiverStrategy=b.ConnectionStrategy=b.ConnectionError=b.ConnectionErrors=b.LogTraceNotification=b.SetTraceNotification=b.TraceFormat=b.TraceValues=b.TraceValue=b.Trace=b.NullLogger=b.ProgressType=b.ProgressToken=void 0;b.createMessageConnection=Qd;var Au=Fd(je()),z=$d(ft()),C=nn(),bu=on(),vt=mt(),xn=fr(),Bt;(function(e){e.type=new C.NotificationType("$/cancelRequest")})(Bt||(Bt={}));var En;(function(e){function t(r){return typeof r==="string"||typeof r==="number"}e.is=t})(En||(b.ProgressToken=En={}));var Mt;(function(e){e.type=new C.NotificationType("$/progress")})(Mt||(Mt={}));class Cu{__;_pr;constructor(){}}b.ProgressType=Cu;var kn;(function(e){function t(r){return z.func(r)}e.is=t})(kn||(kn={}));b.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var O;(function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"})(O||(b.Trace=O={}));var wn;(function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"})(wn||(b.TraceValue=wn={}));b.TraceValues=wn;(function(e){function t(i){if(!z.string(i))return e.Off;switch(i=i.toLowerCase(),i){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 r(i){switch(i){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=r})(O||(b.Trace=O={}));var fe;(function(e){e.Text="text",e.JSON="json"})(fe||(b.TraceFormat=fe={}));(function(e){function t(r){if(!z.string(r))return e.Text;if(r=r.toLowerCase(),r==="json")return e.JSON;else return e.Text}e.fromString=t})(fe||(b.TraceFormat=fe={}));var _n;(function(e){e.type=new C.NotificationType("$/setTrace")})(_n||(b.SetTraceNotification=_n={}));var mr;(function(e){e.type=new C.NotificationType("$/logTrace")})(mr||(b.LogTraceNotification=mr={}));var qt;(function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"})(qt||(b.ConnectionErrors=qt={}));class Tt extends Error{code;constructor(e,t){super(t);this.code=e,Object.setPrototypeOf(this,Tt.prototype)}}b.ConnectionError=Tt;var Dn;(function(e){function t(r){let i=r;return i&&z.func(i.cancelUndispatched)}e.is=t})(Dn||(b.ConnectionStrategy=Dn={}));var hr;(function(e){function t(r){let i=r;return i&&(i.kind===void 0||i.kind==="id")&&z.func(i.createCancellationTokenSource)&&(i.dispose===void 0||z.func(i.dispose))}e.is=t})(hr||(b.IdCancellationReceiverStrategy=hr={}));var Sn;(function(e){function t(r){let i=r;return i&&i.kind==="request"&&z.func(i.createCancellationTokenSource)&&(i.dispose===void 0||z.func(i.dispose))}e.is=t})(Sn||(b.RequestCancellationReceiverStrategy=Sn={}));var dr;(function(e){e.Message=Object.freeze({createCancellationTokenSource(r){return new xn.CancellationTokenSource}});function t(r){return hr.is(r)||Sn.is(r)}e.is=t})(dr||(b.CancellationReceiverStrategy=dr={}));var Tr;(function(e){e.Message=Object.freeze({sendCancellation(r,i){return r.sendNotification(Bt.type,{id:i})},cleanup(r){}});function t(r){let i=r;return i&&z.func(i.sendCancellation)&&z.func(i.cleanup)}e.is=t})(Tr||(b.CancellationSenderStrategy=Tr={}));var gr;(function(e){e.Message=Object.freeze({receiver:dr.Message,sender:Tr.Message});function t(r){let i=r;return i&&dr.is(i.receiver)&&Tr.is(i.sender)}e.is=t})(gr||(b.CancellationStrategy=gr={}));var yr;(function(e){function t(r){let i=r;return i&&z.func(i.handleMessage)}e.is=t})(yr||(b.MessageStrategy=yr={}));var Iu;(function(e){function t(r){let i=r;return i&&(gr.is(i.cancellationStrategy)||Dn.is(i.connectionStrategy)||yr.is(i.messageStrategy)||z.number(i.maxParallelism))}e.is=t})(Iu||(b.ConnectionOptions=Iu={}));var ke;(function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"})(ke||(ke={}));function Qd(e,t,r,i){let s=r!==void 0?r:b.NullLogger,a=0,p=0,T=0,E="2.0",A=i?.maxParallelism??-1,N=0,U=void 0,M=new Map,Y=void 0,ue=new Map,Ie=new Map,tt,Te=new bu.LinkedMap,_e=new Map,rt=new Set,Me=new Map,v=O.Off,ge=fe.Text,H,he=ke.New,De=new vt.Emitter,jt=new vt.Emitter,Ce=new vt.Emitter,J=new vt.Emitter,pe=new vt.Emitter,oe=i&&i.cancellationStrategy?i.cancellationStrategy:gr.Message;function Ne(l){return}function Le(){return he===ke.Listening}function Un(){return he===ke.Closed}function nt(){return he===ke.Disposed}function jn(){if(he===ke.New||he===ke.Listening)he=ke.Closed,jt.fire(void 0)}function mp(l){De.fire([l,void 0,void 0])}function hp(l){De.fire(l)}e.onClose(jn),e.onError(mp),t.onClose(jn),t.onError(hp);function Vn(l){if(l===null)throw Error("Can't send requests with id null since the response can't be correlated.");return"req-"+l.toString()}function dp(l){if(l===null)return"res-unknown-"+(++T).toString();else return"res-"+l.toString()}function Tp(){return"not-"+(++p).toString()}function gp(l,y){if(C.Message.isRequest(y))l.set(Vn(y.id),y);else if(C.Message.isResponse(y))if(A===-1)l.set(dp(y.id),y);else zn(y);else l.set(Tp(),y)}function wr(){if(tt||Te.size===0)return;if(A!==-1&&N>=A)return;tt=(0,Au.default)().timer.setImmediate(async()=>{if(tt=void 0,Te.size===0)return;if(A!==-1&&N>=A)return;let l=Te.shift(),y;try{N++;let x=i?.messageStrategy;if(yr.is(x))y=x.handleMessage(l,Wn);else y=Wn(l)}catch(x){s.error(`Processing message queue failed: ${x.toString()}`)}finally{if(y instanceof Promise)y.then(()=>{N--,wr()}).catch((x)=>{s.error(`Processing message queue failed: ${x.toString()}`)});else N--;wr()}})}async function Wn(l){if(C.Message.isRequest(l))return xp(l);else if(C.Message.isNotification(l))return Ep(l);else if(C.Message.isResponse(l))return zn(l);else return kp(l)}let yp=(l)=>{try{if(C.Message.isNotification(l)&&l.method===Bt.type.method){let y=l.params.id,x=Vn(y),S=Te.get(x);if(C.Message.isRequest(S)){let W=i?.connectionStrategy,q=W&&W.cancelUndispatched?W.cancelUndispatched(S,Ne):Ne(S);if(q&&(q.error!==void 0||q.result!==void 0)){Te.delete(x),Me.delete(y),q.id=S.id,_r(q,l.method,Date.now()),t.write(q).catch(()=>s.error("Sending response for canceled message failed."));return}}let R=Me.get(y);if(R!==void 0){R.cancel(),Dr(l);return}else rt.add(y)}gp(Te,l)}finally{wr()}};async function xp(l){if(nt())return Promise.resolve();function y(K,te,G){let F={jsonrpc:E,id:l.id};if(K instanceof C.ResponseError)F.error=K.toJson();else F.result=K===void 0?null:K;return _r(F,te,G),t.write(F)}function x(K,te,G){let F={jsonrpc:E,id:l.id,error:K.toJson()};return _r(F,te,G),t.write(F)}Dp(l);let S=M.get(l.method),R,W;if(S)R=S.type,W=S.handler;let q=Date.now();if(W||U){let K=l.id??String(Date.now()),te=hr.is(oe.receiver)?oe.receiver.createCancellationTokenSource(K):oe.receiver.createCancellationTokenSource(l);if(l.id!==null&&rt.has(l.id))te.cancel();if(l.id!==null)Me.set(K,te);try{let G;if(W)if(l.params===void 0){if(R!==void 0&&R.numberOfParams!==0)return x(new C.ResponseError(C.ErrorCodes.InvalidParams,`Request ${l.method} defines ${R.numberOfParams} params but received none.`),l.method,q);G=W(te.token)}else if(Array.isArray(l.params)){if(R!==void 0&&R.parameterStructures===C.ParameterStructures.byName)return x(new C.ResponseError(C.ErrorCodes.InvalidParams,`Request ${l.method} defines parameters by name but received parameters by position`),l.method,q);G=W(...l.params,te.token)}else{if(R!==void 0&&R.parameterStructures===C.ParameterStructures.byPosition)return x(new C.ResponseError(C.ErrorCodes.InvalidParams,`Request ${l.method} defines parameters by position but received parameters by name`),l.method,q);G=W(l.params,te.token)}else if(U)G=U(l.method,l.params,te.token);let F=await G;await y(F,l.method,q)}catch(G){if(G instanceof C.ResponseError)await y(G,l.method,q);else if(G&&z.string(G.message))await x(new C.ResponseError(C.ErrorCodes.InternalError,`Request ${l.method} failed with message: ${G.message}`),l.method,q);else await x(new C.ResponseError(C.ErrorCodes.InternalError,`Request ${l.method} failed unexpectedly without providing any details.`),l.method,q)}finally{Me.delete(K)}}else await x(new C.ResponseError(C.ErrorCodes.MethodNotFound,`Unhandled method ${l.method}`),l.method,q)}function zn(l){if(nt())return;if(l.id===null)if(l.error)s.error(`Received response message without id: Error is:
6
+ ${JSON.stringify(l.error,void 0,4)}`);else s.error("Received response message without id. No further error information provided.");else{let y=l.id,x=_e.get(y);if(Sp(l,x),x!==void 0){_e.delete(y);try{if(l.error){let S=l.error;x.reject(new C.ResponseError(S.code,S.message,S.data))}else if(l.result!==void 0)x.resolve(l.result);else throw Error("Should never happen.")}catch(S){if(S.message)s.error(`Response handler '${x.method}' failed with message: ${S.message}`);else s.error(`Response handler '${x.method}' failed unexpectedly.`)}}}}async function Ep(l){if(nt())return;let y=void 0,x;if(l.method===Bt.type.method){let S=l.params.id;rt.delete(S),Dr(l);return}else{let S=ue.get(l.method);if(S)x=S.handler,y=S.type}if(x||Y)try{if(Dr(l),x)if(l.params===void 0){if(y!==void 0){if(y.numberOfParams!==0&&y.parameterStructures!==C.ParameterStructures.byName)s.error(`Notification ${l.method} defines ${y.numberOfParams} params but received none.`)}await x()}else if(Array.isArray(l.params)){let S=l.params;if(l.method===Mt.type.method&&S.length===2&&En.is(S[0]))await x({token:S[0],value:S[1]});else{if(y!==void 0){if(y.parameterStructures===C.ParameterStructures.byName)s.error(`Notification ${l.method} defines parameters by name but received parameters by position`);if(y.numberOfParams!==l.params.length)s.error(`Notification ${l.method} defines ${y.numberOfParams} params but received ${S.length} arguments`)}await x(...S)}}else{if(y!==void 0&&y.parameterStructures===C.ParameterStructures.byPosition)s.error(`Notification ${l.method} defines parameters by position but received parameters by name`);await x(l.params)}else if(Y)await Y(l.method,l.params)}catch(S){if(S.message)s.error(`Notification handler '${l.method}' failed with message: ${S.message}`);else s.error(`Notification handler '${l.method}' failed unexpectedly.`)}else Ce.fire(l)}function kp(l){if(!l){s.error("Received empty message.");return}s.error(`Received message which is neither a response nor a notification message:
7
+ ${JSON.stringify(l,null,4)}`);let y=l;if(z.string(y.id)||z.number(y.id)){let x=y.id,S=_e.get(x);if(S)S.reject(Error("The received response has neither a result nor an error property."))}}function qe(l){if(l===void 0||l===null)return;switch(v){case O.Verbose:return JSON.stringify(l,null,4);case O.Compact:return JSON.stringify(l);default:return}}function wp(l){if(v===O.Off||!H)return;if(ge===fe.Text){let y=void 0;if((v===O.Verbose||v===O.Compact)&&l.params)y=`Params: ${qe(l.params)}`;H.log(`Sending request '${l.method} - (${l.id})'.`,y)}else it("send-request",l)}function _p(l){if(v===O.Off||!H)return;if(ge===fe.Text){let y=void 0;if(v===O.Verbose||v===O.Compact)if(l.params)y=`Params: ${qe(l.params)}`;else y="No parameters provided.";H.log(`Sending notification '${l.method}'.`,y)}else it("send-notification",l)}function _r(l,y,x){if(v===O.Off||!H)return;if(ge===fe.Text){let S=void 0;if(v===O.Verbose||v===O.Compact){if(l.error&&l.error.data)S=`Error data: ${qe(l.error.data)}`;else if(l.result)S=`Result: ${qe(l.result)}`;else if(l.error===void 0)S="No result returned."}H.log(`Sending response '${y} - (${l.id})'. Processing request took ${Date.now()-x}ms`,S)}else it("send-response",l)}function Dp(l){if(v===O.Off||!H)return;if(ge===fe.Text){let y=void 0;if((v===O.Verbose||v===O.Compact)&&l.params)y=`Params: ${qe(l.params)}`;H.log(`Received request '${l.method} - (${l.id})'.`,y)}else it("receive-request",l)}function Dr(l){if(v===O.Off||!H||l.method===mr.type.method)return;if(ge===fe.Text){let y=void 0;if(v===O.Verbose||v===O.Compact)if(l.params)y=`Params: ${qe(l.params)}`;else y="No parameters provided.";H.log(`Received notification '${l.method}'.`,y)}else it("receive-notification",l)}function Sp(l,y){if(v===O.Off||!H)return;if(ge===fe.Text){let x=void 0;if(v===O.Verbose||v===O.Compact){if(l.error&&l.error.data)x=`Error data: ${qe(l.error.data)}`;else if(l.result)x=`Result: ${qe(l.result)}`;else if(l.error===void 0)x="No result returned."}if(y){let S=l.error?` Request failed: ${l.error.message} (${l.error.code}).`:"";H.log(`Received response '${y.method} - (${l.id})' in ${Date.now()-y.timerStart}ms.${S}`,x)}else H.log(`Received response ${l.id} without active response promise.`,x)}else it("receive-response",l)}function it(l,y){if(!H||v===O.Off)return;let x={isLSPMessage:!0,type:l,message:y,timestamp:Date.now()};H.log(x)}function xt(){if(Un())throw new Tt(qt.Closed,"Connection is closed.");if(nt())throw new Tt(qt.Disposed,"Connection is disposed.")}function Pp(){if(Le())throw new Tt(qt.AlreadyListening,"Connection is already listening")}function Ap(){if(!Le())throw Error("Call listen() first.")}function Et(l){if(l===void 0)return null;else return l}function Hn(l){if(l===null)return;else return l}function Gn(l){return l!==void 0&&l!==null&&!Array.isArray(l)&&typeof l==="object"}function Sr(l,y){switch(l){case C.ParameterStructures.auto:if(Gn(y))return Hn(y);else return[Et(y)];case C.ParameterStructures.byName:if(!Gn(y))throw Error("Received parameters by name but param is not an object literal.");return Hn(y);case C.ParameterStructures.byPosition:return[Et(y)];default:throw Error(`Unknown parameter structure ${l.toString()}`)}}function $n(l,y){let x,S=l.numberOfParams;switch(S){case 0:x=void 0;break;case 1:x=Sr(l.parameterStructures,y[0]);break;default:x=[];for(let R=0;R<y.length&&R<S;R++)x.push(Et(y[R]));if(y.length<S)for(let R=y.length;R<S;R++)x.push(null);break}return x}let We={sendNotification:(l,...y)=>{xt();let x,S;if(z.string(l)){x=l;let W=y[0],q=0,K=C.ParameterStructures.auto;if(C.ParameterStructures.is(W))q=1,K=W;let te=y.length,G=te-q;switch(G){case 0:S=void 0;break;case 1:S=Sr(K,y[q]);break;default:if(K===C.ParameterStructures.byName)throw Error(`Received ${G} parameters for 'by Name' notification parameter structure.`);S=y.slice(q,te).map((F)=>Et(F));break}}else{let W=y;x=l.method,S=$n(l,W)}let R={jsonrpc:E,method:x,params:S};return _p(R),t.write(R).catch((W)=>{throw s.error("Sending notification failed."),W})},onNotification:(l,y)=>{xt();let x;if(z.func(l))Y=l;else if(y)if(z.string(l))x=l,ue.set(l,{type:void 0,handler:y});else x=l.method,ue.set(l.method,{type:l,handler:y});return{dispose:()=>{if(x!==void 0){if(ue.get(x)?.handler===y)ue.delete(x)}else if(Y===l)Y=void 0}}},onProgress:(l,y,x)=>{if(Ie.has(y))throw Error(`Progress handler for token ${y} already registered`);return Ie.set(y,x),{dispose:()=>{if(Ie.get(y)===x)Ie.delete(y)}}},sendProgress:(l,y,x)=>We.sendNotification(Mt.type,{token:y,value:x}),onUnhandledProgress:J.event,sendRequest:(l,...y)=>{xt(),Ap();function x(F,ye){let Je=oe.sender.sendCancellation(F,ye);if(Je===void 0)s.log(`Received no promise from cancellation strategy when cancelling id ${ye}`);else Je.catch(()=>{s.log(`Sending cancellation messages for id ${ye} failed.`)})}let S,R,W=void 0;if(z.string(l)){S=l;let F=y[0],ye=y[y.length-1],Je=0,kt=C.ParameterStructures.auto;if(C.ParameterStructures.is(F))Je=1,kt=F;let ze=y.length;if(xn.CancellationToken.is(ye))ze=ze-1,W=ye;let Se=ze-Je;switch(Se){case 0:R=void 0;break;case 1:R=Sr(kt,y[Je]);break;default:if(kt===C.ParameterStructures.byName)throw Error(`Received ${Se} parameters for 'by Name' request parameter structure.`);R=y.slice(Je,ze).map((bp)=>Et(bp));break}}else{let F=y;S=l.method,R=$n(l,F);let ye=l.numberOfParams;W=xn.CancellationToken.is(F[ye])?F[ye]:void 0}let q=a++,K,te=!1;if(W!==void 0)if(W.isCancellationRequested)te=!0;else K=W.onCancellationRequested(()=>{x(We,q)});let G={jsonrpc:E,id:q,method:S,params:R};if(wp(G),typeof oe.sender.enableCancellation==="function")oe.sender.enableCancellation(G);return new Promise(async(F,ye)=>{let Je=(Se)=>{F(Se),oe.sender.cleanup(q),K?.dispose()},kt=(Se)=>{ye(Se),oe.sender.cleanup(q),K?.dispose()},ze={method:S,timerStart:Date.now(),resolve:Je,reject:kt};try{if(_e.set(q,ze),await t.write(G),te)x(We,q)}catch(Se){throw _e.delete(q),ze.reject(new C.ResponseError(C.ErrorCodes.MessageWriteError,Se.message?Se.message:"Unknown reason")),s.error("Sending request failed."),Se}})},onRequest:(l,y)=>{xt();let x=null;if(kn.is(l))x=void 0,U=l;else if(z.string(l)){if(x=null,y!==void 0)x=l,M.set(l,{handler:y,type:void 0})}else if(y!==void 0)x=l.method,M.set(l.method,{type:l,handler:y});return{dispose:()=>{if(x===null)return;if(x!==void 0){if(M.get(x)?.handler===y)M.delete(x)}else if(U===l)U=void 0}}},hasPendingResponse:()=>_e.size>0,trace:async(l,y,x)=>{let S=!1,R=fe.Text;if(x!==void 0)if(z.boolean(x))S=x;else S=x.sendNotification||!1,R=x.traceFormat||fe.Text;if(v=l,ge=R,v===O.Off)H=void 0;else H=y;if(S&&!Un()&&!nt())await We.sendNotification(_n.type,{value:O.toString(l)})},onError:De.event,onClose:jt.event,onUnhandledNotification:Ce.event,onDispose:pe.event,end:()=>{t.end()},dispose:()=>{if(nt())return;he=ke.Disposed,pe.fire(void 0);let l=new C.ResponseError(C.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let y of _e.values())y.reject(l);if(_e=new Map,Me=new Map,rt=new Set,Te=new bu.LinkedMap,z.func(t.dispose))t.dispose();if(z.func(e.dispose))e.dispose()},listen:()=>{xt(),Pp(),he=ke.Listening,e.listen(yp)},inspect:()=>{(0,Au.default)().console.log("inspect")}};return We.onNotification(mr.type,(l)=>{if(v===O.Off||!H)return;let y=v===O.Verbose||v===O.Compact;H.log(l.message,y?l.verbose:void 0)}),We.onNotification(Mt.type,async(l)=>{let y=Ie.get(l.token);if(y)await y(l.value);else J.fire(l)}),We}});var xr=o(function(d){var Yd=d&&d.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(d,"__esModule",{value:!0});d.ProgressType=d.ProgressToken=d.createMessageConnection=d.NullLogger=d.ConnectionOptions=d.ConnectionStrategy=d.AbstractMessageBuffer=d.WriteableStreamMessageWriter=d.AbstractMessageWriter=d.MessageWriter=d.ReadableStreamMessageReader=d.AbstractMessageReader=d.MessageReader=d.SharedArrayReceiverStrategy=d.SharedArraySenderStrategy=d.CancellationToken=d.CancellationTokenSource=d.Emitter=d.Event=d.Disposable=d.LRUCache=d.Touch=d.LinkedMap=d.ParameterStructures=d.NotificationType9=d.NotificationType8=d.NotificationType7=d.NotificationType6=d.NotificationType5=d.NotificationType4=d.NotificationType3=d.NotificationType2=d.NotificationType1=d.NotificationType0=d.NotificationType=d.ErrorCodes=d.ResponseError=d.RequestType9=d.RequestType8=d.RequestType7=d.RequestType6=d.RequestType5=d.RequestType4=d.RequestType3=d.RequestType2=d.RequestType1=d.RequestType0=d.RequestType=d.Message=d.RAL=void 0;d.MessageStrategy=d.CancellationStrategy=d.CancellationSenderStrategy=d.RequestCancellationReceiverStrategy=d.IdCancellationReceiverStrategy=d.CancellationReceiverStrategy=d.ConnectionError=d.ConnectionErrors=d.LogTraceNotification=d.SetTraceNotification=d.TraceFormat=d.TraceValues=d.TraceValue=d.Trace=void 0;var B=nn();Object.defineProperty(d,"Message",{enumerable:!0,get:function(){return B.Message}});Object.defineProperty(d,"RequestType",{enumerable:!0,get:function(){return B.RequestType}});Object.defineProperty(d,"RequestType0",{enumerable:!0,get:function(){return B.RequestType0}});Object.defineProperty(d,"RequestType1",{enumerable:!0,get:function(){return B.RequestType1}});Object.defineProperty(d,"RequestType2",{enumerable:!0,get:function(){return B.RequestType2}});Object.defineProperty(d,"RequestType3",{enumerable:!0,get:function(){return B.RequestType3}});Object.defineProperty(d,"RequestType4",{enumerable:!0,get:function(){return B.RequestType4}});Object.defineProperty(d,"RequestType5",{enumerable:!0,get:function(){return B.RequestType5}});Object.defineProperty(d,"RequestType6",{enumerable:!0,get:function(){return B.RequestType6}});Object.defineProperty(d,"RequestType7",{enumerable:!0,get:function(){return B.RequestType7}});Object.defineProperty(d,"RequestType8",{enumerable:!0,get:function(){return B.RequestType8}});Object.defineProperty(d,"RequestType9",{enumerable:!0,get:function(){return B.RequestType9}});Object.defineProperty(d,"ResponseError",{enumerable:!0,get:function(){return B.ResponseError}});Object.defineProperty(d,"ErrorCodes",{enumerable:!0,get:function(){return B.ErrorCodes}});Object.defineProperty(d,"NotificationType",{enumerable:!0,get:function(){return B.NotificationType}});Object.defineProperty(d,"NotificationType0",{enumerable:!0,get:function(){return B.NotificationType0}});Object.defineProperty(d,"NotificationType1",{enumerable:!0,get:function(){return B.NotificationType1}});Object.defineProperty(d,"NotificationType2",{enumerable:!0,get:function(){return B.NotificationType2}});Object.defineProperty(d,"NotificationType3",{enumerable:!0,get:function(){return B.NotificationType3}});Object.defineProperty(d,"NotificationType4",{enumerable:!0,get:function(){return B.NotificationType4}});Object.defineProperty(d,"NotificationType5",{enumerable:!0,get:function(){return B.NotificationType5}});Object.defineProperty(d,"NotificationType6",{enumerable:!0,get:function(){return B.NotificationType6}});Object.defineProperty(d,"NotificationType7",{enumerable:!0,get:function(){return B.NotificationType7}});Object.defineProperty(d,"NotificationType8",{enumerable:!0,get:function(){return B.NotificationType8}});Object.defineProperty(d,"NotificationType9",{enumerable:!0,get:function(){return B.NotificationType9}});Object.defineProperty(d,"ParameterStructures",{enumerable:!0,get:function(){return B.ParameterStructures}});var Pn=on();Object.defineProperty(d,"LinkedMap",{enumerable:!0,get:function(){return Pn.LinkedMap}});Object.defineProperty(d,"LRUCache",{enumerable:!0,get:function(){return Pn.LRUCache}});Object.defineProperty(d,"Touch",{enumerable:!0,get:function(){return Pn.Touch}});var Xd=tu();Object.defineProperty(d,"Disposable",{enumerable:!0,get:function(){return Xd.Disposable}});var Lu=mt();Object.defineProperty(d,"Event",{enumerable:!0,get:function(){return Lu.Event}});Object.defineProperty(d,"Emitter",{enumerable:!0,get:function(){return Lu.Emitter}});var Ju=fr();Object.defineProperty(d,"CancellationTokenSource",{enumerable:!0,get:function(){return Ju.CancellationTokenSource}});Object.defineProperty(d,"CancellationToken",{enumerable:!0,get:function(){return Ju.CancellationToken}});var Ru=fu();Object.defineProperty(d,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return Ru.SharedArraySenderStrategy}});Object.defineProperty(d,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return Ru.SharedArrayReceiverStrategy}});var An=Tu();Object.defineProperty(d,"MessageReader",{enumerable:!0,get:function(){return An.MessageReader}});Object.defineProperty(d,"AbstractMessageReader",{enumerable:!0,get:function(){return An.AbstractMessageReader}});Object.defineProperty(d,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return An.ReadableStreamMessageReader}});var bn=wu();Object.defineProperty(d,"MessageWriter",{enumerable:!0,get:function(){return bn.MessageWriter}});Object.defineProperty(d,"AbstractMessageWriter",{enumerable:!0,get:function(){return bn.AbstractMessageWriter}});Object.defineProperty(d,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return bn.WriteableStreamMessageWriter}});var Zd=Pu();Object.defineProperty(d,"AbstractMessageBuffer",{enumerable:!0,get:function(){return Zd.AbstractMessageBuffer}});var Z=Nu();Object.defineProperty(d,"ConnectionStrategy",{enumerable:!0,get:function(){return Z.ConnectionStrategy}});Object.defineProperty(d,"ConnectionOptions",{enumerable:!0,get:function(){return Z.ConnectionOptions}});Object.defineProperty(d,"NullLogger",{enumerable:!0,get:function(){return Z.NullLogger}});Object.defineProperty(d,"createMessageConnection",{enumerable:!0,get:function(){return Z.createMessageConnection}});Object.defineProperty(d,"ProgressToken",{enumerable:!0,get:function(){return Z.ProgressToken}});Object.defineProperty(d,"ProgressType",{enumerable:!0,get:function(){return Z.ProgressType}});Object.defineProperty(d,"Trace",{enumerable:!0,get:function(){return Z.Trace}});Object.defineProperty(d,"TraceValue",{enumerable:!0,get:function(){return Z.TraceValue}});Object.defineProperty(d,"TraceFormat",{enumerable:!0,get:function(){return Z.TraceFormat}});Object.defineProperty(d,"SetTraceNotification",{enumerable:!0,get:function(){return Z.SetTraceNotification}});Object.defineProperty(d,"LogTraceNotification",{enumerable:!0,get:function(){return Z.LogTraceNotification}});Object.defineProperty(d,"ConnectionErrors",{enumerable:!0,get:function(){return Z.ConnectionErrors}});Object.defineProperty(d,"ConnectionError",{enumerable:!0,get:function(){return Z.ConnectionError}});Object.defineProperty(d,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Z.CancellationReceiverStrategy}});Object.defineProperty(d,"IdCancellationReceiverStrategy",{enumerable:!0,get:function(){return Z.IdCancellationReceiverStrategy}});Object.defineProperty(d,"RequestCancellationReceiverStrategy",{enumerable:!0,get:function(){return Z.RequestCancellationReceiverStrategy}});Object.defineProperty(d,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Z.CancellationSenderStrategy}});Object.defineProperty(d,"CancellationStrategy",{enumerable:!0,get:function(){return Z.CancellationStrategy}});Object.defineProperty(d,"MessageStrategy",{enumerable:!0,get:function(){return Z.MessageStrategy}});Object.defineProperty(d,"TraceValues",{enumerable:!0,get:function(){return Z.TraceValues}});var Kd=Yd(je());d.RAL=Kd.default});var Uu=o(function(Bu){Object.defineProperty(Bu,"__esModule",{value:!0});var Ou=w("util"),Oe=xr();class Cn extends Oe.AbstractMessageBuffer{static emptyBuffer=Buffer.allocUnsafe(0);constructor(e="utf-8"){super(e)}emptyBuffer(){return Cn.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,t){if(e instanceof Buffer)return e.toString(t);else return new Ou.TextDecoder(t).decode(e)}asNative(e,t){if(t===void 0)return e instanceof Buffer?e:Buffer.from(e);else return e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}}class vu{stream;constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),Oe.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),Oe.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),Oe.Disposable.create(()=>this.stream.off("end",e))}onData(e){return this.stream.on("data",e),Oe.Disposable.create(()=>this.stream.off("data",e))}}class Mu{stream;constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),Oe.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),Oe.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),Oe.Disposable.create(()=>this.stream.off("end",e))}write(e,t){return new Promise((r,i)=>{let s=(a)=>{if(a===void 0||a===null)r();else i(a)};if(typeof e==="string")this.stream.write(e,t,s);else this.stream.write(e,s)})}end(){this.stream.end()}}var qu=Object.freeze({messageBuffer:Object.freeze({create:(e)=>new Cn(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(e,void 0,0),t.charset))}catch(r){return Promise.reject(r)}}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{try{if(e instanceof Buffer)return Promise.resolve(JSON.parse(e.toString(t.charset)));else return Promise.resolve(JSON.parse(new Ou.TextDecoder(t.charset).decode(e)))}catch(r){return Promise.reject(r)}}})}),stream:Object.freeze({asReadableStream:(e)=>new vu(e),asWritableStream:(e)=>new Mu(e)}),console,timer:Object.freeze({setTimeout(e,t,...r){let i=setTimeout(e,t,...r);return{dispose:()=>clearTimeout(i)}},setImmediate(e,...t){let r=setImmediate(e,...t);return{dispose:()=>clearImmediate(r)}},setInterval(e,t,...r){let i=setInterval(e,t,...r);return{dispose:()=>clearInterval(i)}}})});function In(){return qu}(function(e){function t(){Oe.RAL.install(qu)}e.install=t})(In||(In={}));Bu.default=In});var $u=o(function(L){var Vu=L&&L.__createBinding||(Object.create?function(e,t,r,i){if(i===void 0)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===void 0)i=r;e[i]=t[r]}),tT=L&&L.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Nn=L&&L.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))i[i.length]=s;return i},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var i=e(t),s=0;s<i.length;s++)if(i[s]!=="default")Vu(r,t,i[s])}return tT(r,t),r}}(),rT=L&&L.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))Vu(t,e,r)},nT=L&&L.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(L,"__esModule",{value:!0});L.StreamMessageWriter=L.StreamMessageReader=L.SocketMessageWriter=L.SocketMessageReader=L.PortMessageWriter=L.PortMessageReader=L.IPCMessageWriter=L.IPCMessageReader=void 0;L.generateRandomPipeName=uT;L.createClientPipeTransport=pT;L.createServerPipeTransport=lT;L.createClientSocketTransport=fT;L.createServerSocketTransport=mT;L.createMessageConnection=TT;var Ut=nT(Uu());Ut.default.install();var iT=Nn(w("path")),sT=Nn(w("os")),oT=Nn(w("fs")),ju=w("crypto"),Er=w("net"),me=xr();rT(xr(),L);class Wu extends me.AbstractMessageReader{process;constructor(e){super();this.process=e;let t=this.process;t.on("error",(r)=>this.fireError(r)),t.on("close",()=>this.fireClose())}listen(e){return this.process.on("message",e),me.Disposable.create(()=>this.process.off("message",e))}}L.IPCMessageReader=Wu;class zu extends me.AbstractMessageWriter{process;errorCount;constructor(e){super();this.process=e,this.errorCount=0;let t=this.process;t.on("error",(r)=>this.fireError(r)),t.on("close",()=>this.fireClose)}write(e){try{if(typeof this.process.send==="function")this.process.send(e,void 0,void 0,(t)=>{if(t)this.errorCount++,this.handleError(t,e);else this.errorCount=0});return Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}L.IPCMessageWriter=zu;class Hu extends me.AbstractMessageReader{onData;constructor(e){super();this.onData=new me.Emitter,e.on("close",()=>this.fireClose),e.on("error",(t)=>this.fireError(t)),e.on("message",(t)=>{this.onData.fire(t)})}listen(e){return this.onData.event(e)}}L.PortMessageReader=Hu;class Gu extends me.AbstractMessageWriter{port;errorCount;constructor(e){super();this.port=e,this.errorCount=0,e.on("close",()=>this.fireClose()),e.on("error",(t)=>this.fireError(t))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}L.PortMessageWriter=Gu;class gt extends me.ReadableStreamMessageReader{constructor(e,t="utf-8"){super((0,Ut.default)().stream.asReadableStream(e),t)}}L.SocketMessageReader=gt;class yt extends me.WriteableStreamMessageWriter{socket;constructor(e,t){super((0,Ut.default)().stream.asWritableStream(e),t);this.socket=e}dispose(){super.dispose(),this.socket.destroy()}}L.SocketMessageWriter=yt;class Ln extends me.ReadableStreamMessageReader{constructor(e,t){super((0,Ut.default)().stream.asReadableStream(e),t)}}L.StreamMessageReader=Ln;class Jn extends me.WriteableStreamMessageWriter{constructor(e,t){super((0,Ut.default)().stream.asWritableStream(e),t)}}L.StreamMessageWriter=Jn;var aT=process.env.XDG_RUNTIME_DIR,cT=new Map([["linux",107],["darwin",103]]);function uT(){if(process.platform==="win32")return`\\\\.\\pipe\\lsp-${ju.randomBytes(16).toString("hex")}-sock`;let e=32,t=10,r=oT.realpathSync(aT??sT.tmpdir()),i=cT.get(process.platform);if(i!==void 0)e=Math.min(i-r.length-t,e);if(e<16)throw Error(`Unable to generate a random pipe name with ${e} characters.`);let s=ju.randomBytes(Math.floor(e/2)).toString("hex");return iT.join(r,`lsp-${s}.sock`)}function pT(e,t="utf-8"){let r,i=new Promise((s,a)=>{r=s});return new Promise((s,a)=>{let p=Er.createServer((T)=>{p.close(),r([new gt(T,t),new yt(T,t)])});p.on("error",a),p.listen(e,()=>{p.removeListener("error",a),s({onConnected:()=>i})})})}function lT(e,t="utf-8"){let r=Er.createConnection(e);return[new gt(r,t),new yt(r,t)]}function fT(e,t="utf-8"){let r,i=new Promise((s,a)=>{r=s});return new Promise((s,a)=>{let p=Er.createServer((T)=>{p.close(),r([new gt(T,t),new yt(T,t)])});p.on("error",a),p.listen(e,"127.0.0.1",()=>{p.removeListener("error",a),s({onConnected:()=>i})})})}function mT(e,t="utf-8"){let r=Er.createConnection(e,"127.0.0.1");return[new gt(r,t),new yt(r,t)]}function hT(e){let t=e;return t.read!==void 0&&t.addListener!==void 0}function dT(e){let t=e;return t.write!==void 0&&t.addListener!==void 0}function TT(e,t,r,i){if(!r)r=me.NullLogger;let s=hT(e)?new Ln(e):e,a=dT(t)?new Jn(t):t;if(me.ConnectionStrategy.is(i))i={connectionStrategy:i};return me.createMessageConnection(s,a,r,i)}});var Pr;(function(e){e[e.Text=1]="Text",e[e.Method=2]="Method",e[e.Function=3]="Function",e[e.Constructor=4]="Constructor",e[e.Field=5]="Field",e[e.Variable=6]="Variable",e[e.Class=7]="Class",e[e.Interface=8]="Interface",e[e.Module=9]="Module",e[e.Property=10]="Property",e[e.Unit=11]="Unit",e[e.Value=12]="Value",e[e.Enum=13]="Enum",e[e.Keyword=14]="Keyword",e[e.Snippet=15]="Snippet",e[e.Color=16]="Color",e[e.File=17]="File",e[e.Reference=18]="Reference",e[e.Folder=19]="Folder",e[e.EnumMember=20]="EnumMember",e[e.Constant=21]="Constant",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(Pr||(Pr={}));var Ar;(function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"})(Ar||(Ar={}));var br;(function(e){e[e.None=0]="None",e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest"})(br||(br={}));var Ir;(function(e){e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.Node18=101]="Node18",e[e.Node20=102]="Node20",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve"})(Ir||(Ir={}));var Cr;(function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.UseInstantiationExpressions=1073741824]="UseInstantiationExpressions",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.WriteCallStyleSignature=134217728]="WriteCallStyleSignature",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName"})(Cr||(Cr={}));var st;(function(e){e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.MembersResolved=2097152]="MembersResolved",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.InstantiationExpressionType=16777216]="InstantiationExpressionType",e[e.SingleSignatureType=33554432]="SingleSignatureType",e[e.ObjectTypeKindMask=50332991]="ObjectTypeKindMask",e[e.ContainsSpread=4194304]="ContainsSpread",e[e.ObjectRestType=8388608]="ObjectRestType",e[e.IsClassInstanceClone=67108864]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=134217728]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=268435456]="IdenticalBaseTypeExists",e[e.UnresolvedMembers=536870912]="UnresolvedMembers",e[e.FromTypeNode=1073741824]="FromTypeNode",e[e.IsGenericTypeComputed=4194304]="IsGenericTypeComputed",e[e.IsGenericObjectType=8388608]="IsGenericObjectType",e[e.IsGenericIndexType=16777216]="IsGenericIndexType",e[e.IsGenericType=25165824]="IsGenericType",e[e.ContainsIntersections=33554432]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=67108864]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=134217728]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=33554432]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=67108864]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=134217728]="IsConstrainedTypeVariable"})(st||(st={}));var ot;(function(e){e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Construct=4]="Construct",e[e.Abstract=8]="Abstract",e[e.IsInnerCallChain=16]="IsInnerCallChain",e[e.IsOuterCallChain=32]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=64]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=128]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=256]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=335]="PropagatingFlags",e[e.CallChainFlags=48]="CallChainFlags"})(ot||(ot={}));var Nr;(function(e){e[e.Call=0]="Call",e[e.Construct=1]="Construct"})(Nr||(Nr={}));var wt;(function(e){e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.ConstEnumOnlyModule=268435456]="ConstEnumOnlyModule",e[e.ReplaceableByMethod=536870912]="ReplaceableByMethod",e[e.GlobalLookup=1073741824]="GlobalLookup",e[e.All=536870912]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=13243]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46011]="GetAccessorExcludes",e[e.SetAccessorExcludes=78779]="SetAccessorExcludes",e[e.AccessorExcludes=111547]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer"})(wt||(wt={}));var Q;(function(e){e[e.None=0]="None",e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.Undefined=4]="Undefined",e[e.Null=8]="Null",e[e.Void=16]="Void",e[e.String=32]="String",e[e.Number=64]="Number",e[e.BigInt=128]="BigInt",e[e.Boolean=256]="Boolean",e[e.ESSymbol=512]="ESSymbol",e[e.StringLiteral=1024]="StringLiteral",e[e.NumberLiteral=2048]="NumberLiteral",e[e.BigIntLiteral=4096]="BigIntLiteral",e[e.BooleanLiteral=8192]="BooleanLiteral",e[e.UniqueESSymbol=16384]="UniqueESSymbol",e[e.EnumLiteral=32768]="EnumLiteral",e[e.Enum=65536]="Enum",e[e.NonPrimitive=131072]="NonPrimitive",e[e.Never=262144]="Never",e[e.TypeParameter=524288]="TypeParameter",e[e.Object=1048576]="Object",e[e.Index=2097152]="Index",e[e.TemplateLiteral=4194304]="TemplateLiteral",e[e.StringMapping=8388608]="StringMapping",e[e.Substitution=16777216]="Substitution",e[e.IndexedAccess=33554432]="IndexedAccess",e[e.Conditional=67108864]="Conditional",e[e.Union=134217728]="Union",e[e.Intersection=268435456]="Intersection",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.Reserved3=-2147483648]="Reserved3",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=12]="Nullable",e[e.Literal=15360]="Literal",e[e.Unit=97292]="Unit",e[e.Freshable=80896]="Freshable",e[e.StringOrNumberLiteral=3072]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=19456]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=15388]="DefinitelyFalsy",e[e.PossiblyFalsy=15868]="PossiblyFalsy",e[e.Intrinsic=393983]="Intrinsic",e[e.StringLike=12583968]="StringLike",e[e.NumberLike=67648]="NumberLike",e[e.BigIntLike=4224]="BigIntLike",e[e.BooleanLike=8448]="BooleanLike",e[e.EnumLike=98304]="EnumLike",e[e.ESSymbolLike=16896]="ESSymbolLike",e[e.VoidLike=20]="VoidLike",e[e.Primitive=12713980]="Primitive",e[e.DefinitelyNonNullable=13893600]="DefinitelyNonNullable",e[e.DisjointDomains=12812284]="DisjointDomains",e[e.UnionOrIntersection=402653184]="UnionOrIntersection",e[e.StructuredType=403701760]="StructuredType",e[e.TypeVariable=34078720]="TypeVariable",e[e.InstantiableNonPrimitive=117964800]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=14680064]="InstantiablePrimitive",e[e.Instantiable=132644864]="Instantiable",e[e.StructuredOrInstantiable=536346624]="StructuredOrInstantiable",e[e.ObjectFlagsType=403963917]="ObjectFlagsType",e[e.Simplifiable=102760448]="Simplifiable",e[e.Singleton=394239]="Singleton",e[e.Narrowable=536575971]="Narrowable",e[e.IncludesMask=416808959]="IncludesMask",e[e.IncludesMissingType=524288]="IncludesMissingType",e[e.IncludesNonWideningType=2097152]="IncludesNonWideningType",e[e.IncludesWildcard=33554432]="IncludesWildcard",e[e.IncludesEmptyObject=67108864]="IncludesEmptyObject",e[e.IncludesInstantiable=16777216]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=286523411]="NotPrimitiveUnion"})(Q||(Q={}));var Lr;(function(e){e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier"})(Lr||(Lr={}));var k;(function(e){e[e.EOF=-1]="EOF",e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5765]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"})(k||(k={}));var Vt;(function(e){e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore"})(Vt||(Vt={}));var Jr;(function(e){e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.AssignmentDeclaration="__assignment",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e.ExportEquals="export=",e.Default="default",e.This="this",e.ModuleExports="module.exports"})(Jr||(Jr={}));var Wt;(function(e){e[e.Standard=0]="Standard",e[e.JSX=1]="JSX"})(Wt||(Wt={}));var j;(function(e){e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e[e.JavaScript=3872]="JavaScript"})(j||(j={}));var Pe;(function(e){e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.Reparsed=8]="Reparsed",e[e.Synthesized=16]="Synthesized",e[e.OptionalChain=32]="OptionalChain",e[e.ExportContext=64]="ExportContext",e[e.ContainsThis=128]="ContainsThis",e[e.HasImplicitReturn=256]="HasImplicitReturn",e[e.HasExplicitReturn=512]="HasExplicitReturn",e[e.DisallowInContext=1024]="DisallowInContext",e[e.YieldContext=2048]="YieldContext",e[e.DecoratorContext=4096]="DecoratorContext",e[e.AwaitContext=8192]="AwaitContext",e[e.DisallowConditionalTypesContext=16384]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=32768]="ThisNodeHasError",e[e.JavaScriptFile=65536]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=131072]="ThisNodeOrAnySubNodesHasError",e[e.HasAsyncFunctions=262144]="HasAsyncFunctions",e[e.PossiblyContainsDynamicImport=524288]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=1048576]="PossiblyContainsImportMeta",e[e.HasJSDoc=2097152]="HasJSDoc",e[e.JSDoc=4194304]="JSDoc",e[e.Ambient=8388608]="Ambient",e[e.InWithStatement=16777216]="InWithStatement",e[e.JsonFile=33554432]="JsonFile",e[e.PossiblyContainsDeprecatedTag=67108864]="PossiblyContainsDeprecatedTag",e[e.Unreachable=134217728]="Unreachable",e[e.ReparserTransformedLiteral=268435456]="ReparserTransformedLiteral",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.AwaitUsing=6]="AwaitUsing",e[e.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=262912]="ReachabilityAndEmitFlags",e[e.ContextFlags=25263104]="ContextFlags",e[e.TypeExcludesFlags=10240]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=1572864]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=128]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=262144]="IdentifierIsInJSDocNamespace",e[e.NestedNamespace=32]="NestedNamespace"})(Pe||(Pe={}));var de;(function(e){e[e.None=0]="None",e[e.HasIndices=1]="HasIndices",e[e.Global=2]="Global",e[e.IgnoreCase=4]="IgnoreCase",e[e.Multiline=8]="Multiline",e[e.DotAll=16]="DotAll",e[e.Unicode=32]="Unicode",e[e.UnicodeSets=64]="UnicodeSets",e[e.Sticky=128]="Sticky",e[e.AnyUnicodeMode=96]="AnyUnicodeMode"})(de||(de={}));var at;(function(e){e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred"})(at||(at={}));var zt;(function(e){e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ES2025=12]="ES2025",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest"})(zt||(zt={}));var n;(function(e){e[e.Unknown=0]="Unknown",e[e.EndOfFile=1]="EndOfFile",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ConflictMarkerTrivia=6]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=7]="NonTextFileMarkerTrivia",e[e.NumericLiteral=8]="NumericLiteral",e[e.BigIntLiteral=9]="BigIntLiteral",e[e.StringLiteral=10]="StringLiteral",e[e.JsxText=11]="JsxText",e[e.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=13]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=15]="TemplateHead",e[e.TemplateMiddle=16]="TemplateMiddle",e[e.TemplateTail=17]="TemplateTail",e[e.OpenBraceToken=18]="OpenBraceToken",e[e.CloseBraceToken=19]="CloseBraceToken",e[e.OpenParenToken=20]="OpenParenToken",e[e.CloseParenToken=21]="CloseParenToken",e[e.OpenBracketToken=22]="OpenBracketToken",e[e.CloseBracketToken=23]="CloseBracketToken",e[e.DotToken=24]="DotToken",e[e.DotDotDotToken=25]="DotDotDotToken",e[e.SemicolonToken=26]="SemicolonToken",e[e.CommaToken=27]="CommaToken",e[e.QuestionDotToken=28]="QuestionDotToken",e[e.LessThanToken=29]="LessThanToken",e[e.LessThanSlashToken=30]="LessThanSlashToken",e[e.GreaterThanToken=31]="GreaterThanToken",e[e.LessThanEqualsToken=32]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=34]="EqualsEqualsToken",e[e.ExclamationEqualsToken=35]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",e[e.PlusToken=39]="PlusToken",e[e.MinusToken=40]="MinusToken",e[e.AsteriskToken=41]="AsteriskToken",e[e.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",e[e.SlashToken=43]="SlashToken",e[e.PercentToken=44]="PercentToken",e[e.PlusPlusToken=45]="PlusPlusToken",e[e.MinusMinusToken=46]="MinusMinusToken",e[e.LessThanLessThanToken=47]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=50]="AmpersandToken",e[e.BarToken=51]="BarToken",e[e.CaretToken=52]="CaretToken",e[e.ExclamationToken=53]="ExclamationToken",e[e.TildeToken=54]="TildeToken",e[e.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",e[e.BarBarToken=56]="BarBarToken",e[e.QuestionToken=57]="QuestionToken",e[e.ColonToken=58]="ColonToken",e[e.AtToken=59]="AtToken",e[e.QuestionQuestionToken=60]="QuestionQuestionToken",e[e.BacktickToken=61]="BacktickToken",e[e.HashToken=62]="HashToken",e[e.EqualsToken=63]="EqualsToken",e[e.PlusEqualsToken=64]="PlusEqualsToken",e[e.MinusEqualsToken=65]="MinusEqualsToken",e[e.AsteriskEqualsToken=66]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=68]="SlashEqualsToken",e[e.PercentEqualsToken=69]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=73]="AmpersandEqualsToken",e[e.BarEqualsToken=74]="BarEqualsToken",e[e.BarBarEqualsToken=75]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=78]="CaretEqualsToken",e[e.Identifier=79]="Identifier",e[e.PrivateIdentifier=80]="PrivateIdentifier",e[e.JSDocCommentTextToken=81]="JSDocCommentTextToken",e[e.BreakKeyword=82]="BreakKeyword",e[e.CaseKeyword=83]="CaseKeyword",e[e.CatchKeyword=84]="CatchKeyword",e[e.ClassKeyword=85]="ClassKeyword",e[e.ConstKeyword=86]="ConstKeyword",e[e.ContinueKeyword=87]="ContinueKeyword",e[e.DebuggerKeyword=88]="DebuggerKeyword",e[e.DefaultKeyword=89]="DefaultKeyword",e[e.DeleteKeyword=90]="DeleteKeyword",e[e.DoKeyword=91]="DoKeyword",e[e.ElseKeyword=92]="ElseKeyword",e[e.EnumKeyword=93]="EnumKeyword",e[e.ExportKeyword=94]="ExportKeyword",e[e.ExtendsKeyword=95]="ExtendsKeyword",e[e.FalseKeyword=96]="FalseKeyword",e[e.FinallyKeyword=97]="FinallyKeyword",e[e.ForKeyword=98]="ForKeyword",e[e.FunctionKeyword=99]="FunctionKeyword",e[e.IfKeyword=100]="IfKeyword",e[e.ImportKeyword=101]="ImportKeyword",e[e.InKeyword=102]="InKeyword",e[e.InstanceOfKeyword=103]="InstanceOfKeyword",e[e.NewKeyword=104]="NewKeyword",e[e.NullKeyword=105]="NullKeyword",e[e.ReturnKeyword=106]="ReturnKeyword",e[e.SuperKeyword=107]="SuperKeyword",e[e.SwitchKeyword=108]="SwitchKeyword",e[e.ThisKeyword=109]="ThisKeyword",e[e.ThrowKeyword=110]="ThrowKeyword",e[e.TrueKeyword=111]="TrueKeyword",e[e.TryKeyword=112]="TryKeyword",e[e.TypeOfKeyword=113]="TypeOfKeyword",e[e.VarKeyword=114]="VarKeyword",e[e.VoidKeyword=115]="VoidKeyword",e[e.WhileKeyword=116]="WhileKeyword",e[e.WithKeyword=117]="WithKeyword",e[e.ImplementsKeyword=118]="ImplementsKeyword",e[e.InterfaceKeyword=119]="InterfaceKeyword",e[e.LetKeyword=120]="LetKeyword",e[e.PackageKeyword=121]="PackageKeyword",e[e.PrivateKeyword=122]="PrivateKeyword",e[e.ProtectedKeyword=123]="ProtectedKeyword",e[e.PublicKeyword=124]="PublicKeyword",e[e.StaticKeyword=125]="StaticKeyword",e[e.YieldKeyword=126]="YieldKeyword",e[e.AbstractKeyword=127]="AbstractKeyword",e[e.AccessorKeyword=128]="AccessorKeyword",e[e.AsKeyword=129]="AsKeyword",e[e.AssertsKeyword=130]="AssertsKeyword",e[e.AssertKeyword=131]="AssertKeyword",e[e.AnyKeyword=132]="AnyKeyword",e[e.AsyncKeyword=133]="AsyncKeyword",e[e.AwaitKeyword=134]="AwaitKeyword",e[e.BooleanKeyword=135]="BooleanKeyword",e[e.ConstructorKeyword=136]="ConstructorKeyword",e[e.DeclareKeyword=137]="DeclareKeyword",e[e.GetKeyword=138]="GetKeyword",e[e.ImmediateKeyword=139]="ImmediateKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.DeferKeyword=166]="DeferKeyword",e[e.QualifiedName=167]="QualifiedName",e[e.ComputedPropertyName=168]="ComputedPropertyName",e[e.TypeParameter=169]="TypeParameter",e[e.Parameter=170]="Parameter",e[e.Decorator=171]="Decorator",e[e.PropertySignature=172]="PropertySignature",e[e.PropertyDeclaration=173]="PropertyDeclaration",e[e.MethodSignature=174]="MethodSignature",e[e.MethodDeclaration=175]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",e[e.Constructor=177]="Constructor",e[e.GetAccessor=178]="GetAccessor",e[e.SetAccessor=179]="SetAccessor",e[e.CallSignature=180]="CallSignature",e[e.ConstructSignature=181]="ConstructSignature",e[e.IndexSignature=182]="IndexSignature",e[e.TypePredicate=183]="TypePredicate",e[e.TypeReference=184]="TypeReference",e[e.FunctionType=185]="FunctionType",e[e.ConstructorType=186]="ConstructorType",e[e.TypeQuery=187]="TypeQuery",e[e.TypeLiteral=188]="TypeLiteral",e[e.ArrayType=189]="ArrayType",e[e.TupleType=190]="TupleType",e[e.OptionalType=191]="OptionalType",e[e.RestType=192]="RestType",e[e.UnionType=193]="UnionType",e[e.IntersectionType=194]="IntersectionType",e[e.ConditionalType=195]="ConditionalType",e[e.InferType=196]="InferType",e[e.ParenthesizedType=197]="ParenthesizedType",e[e.ThisType=198]="ThisType",e[e.TypeOperator=199]="TypeOperator",e[e.IndexedAccessType=200]="IndexedAccessType",e[e.MappedType=201]="MappedType",e[e.LiteralType=202]="LiteralType",e[e.NamedTupleMember=203]="NamedTupleMember",e[e.TemplateLiteralType=204]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",e[e.ImportType=206]="ImportType",e[e.ObjectBindingPattern=207]="ObjectBindingPattern",e[e.ArrayBindingPattern=208]="ArrayBindingPattern",e[e.BindingElement=209]="BindingElement",e[e.ArrayLiteralExpression=210]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=211]="ObjectLiteralExpression",e[e.PropertyAccessExpression=212]="PropertyAccessExpression",e[e.ElementAccessExpression=213]="ElementAccessExpression",e[e.CallExpression=214]="CallExpression",e[e.NewExpression=215]="NewExpression",e[e.TaggedTemplateExpression=216]="TaggedTemplateExpression",e[e.TypeAssertionExpression=217]="TypeAssertionExpression",e[e.ParenthesizedExpression=218]="ParenthesizedExpression",e[e.FunctionExpression=219]="FunctionExpression",e[e.ArrowFunction=220]="ArrowFunction",e[e.DeleteExpression=221]="DeleteExpression",e[e.TypeOfExpression=222]="TypeOfExpression",e[e.VoidExpression=223]="VoidExpression",e[e.AwaitExpression=224]="AwaitExpression",e[e.PrefixUnaryExpression=225]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=226]="PostfixUnaryExpression",e[e.BinaryExpression=227]="BinaryExpression",e[e.ConditionalExpression=228]="ConditionalExpression",e[e.TemplateExpression=229]="TemplateExpression",e[e.YieldExpression=230]="YieldExpression",e[e.SpreadElement=231]="SpreadElement",e[e.ClassExpression=232]="ClassExpression",e[e.OmittedExpression=233]="OmittedExpression",e[e.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",e[e.AsExpression=235]="AsExpression",e[e.NonNullExpression=236]="NonNullExpression",e[e.MetaProperty=237]="MetaProperty",e[e.SyntheticExpression=238]="SyntheticExpression",e[e.SatisfiesExpression=239]="SatisfiesExpression",e[e.TemplateSpan=240]="TemplateSpan",e[e.SemicolonClassElement=241]="SemicolonClassElement",e[e.Block=242]="Block",e[e.EmptyStatement=243]="EmptyStatement",e[e.VariableStatement=244]="VariableStatement",e[e.ExpressionStatement=245]="ExpressionStatement",e[e.IfStatement=246]="IfStatement",e[e.DoStatement=247]="DoStatement",e[e.WhileStatement=248]="WhileStatement",e[e.ForStatement=249]="ForStatement",e[e.ForInStatement=250]="ForInStatement",e[e.ForOfStatement=251]="ForOfStatement",e[e.ContinueStatement=252]="ContinueStatement",e[e.BreakStatement=253]="BreakStatement",e[e.ReturnStatement=254]="ReturnStatement",e[e.WithStatement=255]="WithStatement",e[e.SwitchStatement=256]="SwitchStatement",e[e.LabeledStatement=257]="LabeledStatement",e[e.ThrowStatement=258]="ThrowStatement",e[e.TryStatement=259]="TryStatement",e[e.DebuggerStatement=260]="DebuggerStatement",e[e.VariableDeclaration=261]="VariableDeclaration",e[e.VariableDeclarationList=262]="VariableDeclarationList",e[e.FunctionDeclaration=263]="FunctionDeclaration",e[e.ClassDeclaration=264]="ClassDeclaration",e[e.InterfaceDeclaration=265]="InterfaceDeclaration",e[e.TypeAliasDeclaration=266]="TypeAliasDeclaration",e[e.EnumDeclaration=267]="EnumDeclaration",e[e.ModuleDeclaration=268]="ModuleDeclaration",e[e.ModuleBlock=269]="ModuleBlock",e[e.CaseBlock=270]="CaseBlock",e[e.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",e[e.ImportDeclaration=273]="ImportDeclaration",e[e.ImportClause=274]="ImportClause",e[e.NamespaceImport=275]="NamespaceImport",e[e.NamedImports=276]="NamedImports",e[e.ImportSpecifier=277]="ImportSpecifier",e[e.ExportAssignment=278]="ExportAssignment",e[e.ExportDeclaration=279]="ExportDeclaration",e[e.NamedExports=280]="NamedExports",e[e.NamespaceExport=281]="NamespaceExport",e[e.ExportSpecifier=282]="ExportSpecifier",e[e.MissingDeclaration=283]="MissingDeclaration",e[e.ExternalModuleReference=284]="ExternalModuleReference",e[e.JsxElement=285]="JsxElement",e[e.JsxSelfClosingElement=286]="JsxSelfClosingElement",e[e.JsxOpeningElement=287]="JsxOpeningElement",e[e.JsxClosingElement=288]="JsxClosingElement",e[e.JsxFragment=289]="JsxFragment",e[e.JsxOpeningFragment=290]="JsxOpeningFragment",e[e.JsxClosingFragment=291]="JsxClosingFragment",e[e.JsxAttribute=292]="JsxAttribute",e[e.JsxAttributes=293]="JsxAttributes",e[e.JsxSpreadAttribute=294]="JsxSpreadAttribute",e[e.JsxExpression=295]="JsxExpression",e[e.JsxNamespacedName=296]="JsxNamespacedName",e[e.CaseClause=297]="CaseClause",e[e.DefaultClause=298]="DefaultClause",e[e.HeritageClause=299]="HeritageClause",e[e.CatchClause=300]="CatchClause",e[e.ImportAttributes=301]="ImportAttributes",e[e.ImportAttribute=302]="ImportAttribute",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.JSDocTypeExpression=308]="JSDocTypeExpression",e[e.JSDocNameReference=309]="JSDocNameReference",e[e.JSDocAllType=310]="JSDocAllType",e[e.JSDocNullableType=311]="JSDocNullableType",e[e.JSDocNonNullableType=312]="JSDocNonNullableType",e[e.JSDocOptionalType=313]="JSDocOptionalType",e[e.JSDocVariadicType=314]="JSDocVariadicType",e[e.JSDoc=315]="JSDoc",e[e.JSDocText=316]="JSDocText",e[e.JSDocTypeLiteral=317]="JSDocTypeLiteral",e[e.JSDocSignature=318]="JSDocSignature",e[e.JSDocLink=319]="JSDocLink",e[e.JSDocLinkCode=320]="JSDocLinkCode",e[e.JSDocLinkPlain=321]="JSDocLinkPlain",e[e.JSDocUnknownTag=322]="JSDocUnknownTag",e[e.JSDocAugmentsTag=323]="JSDocAugmentsTag",e[e.JSDocImplementsTag=324]="JSDocImplementsTag",e[e.JSDocDeprecatedTag=325]="JSDocDeprecatedTag",e[e.JSDocPublicTag=326]="JSDocPublicTag",e[e.JSDocPrivateTag=327]="JSDocPrivateTag",e[e.JSDocProtectedTag=328]="JSDocProtectedTag",e[e.JSDocReadonlyTag=329]="JSDocReadonlyTag",e[e.JSDocOverrideTag=330]="JSDocOverrideTag",e[e.JSDocCallbackTag=331]="JSDocCallbackTag",e[e.JSDocOverloadTag=332]="JSDocOverloadTag",e[e.JSDocParameterTag=333]="JSDocParameterTag",e[e.JSDocReturnTag=334]="JSDocReturnTag",e[e.JSDocThisTag=335]="JSDocThisTag",e[e.JSDocTypeTag=336]="JSDocTypeTag",e[e.JSDocTemplateTag=337]="JSDocTemplateTag",e[e.JSDocTypedefTag=338]="JSDocTypedefTag",e[e.JSDocSeeTag=339]="JSDocSeeTag",e[e.JSDocPropertyTag=340]="JSDocPropertyTag",e[e.JSDocThrowsTag=341]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=342]="JSDocSatisfiesTag",e[e.JSDocImportTag=343]="JSDocImportTag",e[e.SyntaxList=344]="SyntaxList",e[e.JSTypeAliasDeclaration=345]="JSTypeAliasDeclaration",e[e.JSImportDeclaration=346]="JSImportDeclaration",e[e.NotEmittedStatement=347]="NotEmittedStatement",e[e.PartiallyEmittedExpression=348]="PartiallyEmittedExpression",e[e.SyntheticReferenceExpression=349]="SyntheticReferenceExpression",e[e.NotEmittedTypeElement=350]="NotEmittedTypeElement",e[e.Count=351]="Count",e[e.FirstAssignment=63]="FirstAssignment",e[e.LastAssignment=78]="LastAssignment",e[e.FirstCompoundAssignment=64]="FirstCompoundAssignment",e[e.LastCompoundAssignment=78]="LastCompoundAssignment",e[e.FirstReservedWord=82]="FirstReservedWord",e[e.LastReservedWord=117]="LastReservedWord",e[e.FirstKeyword=82]="FirstKeyword",e[e.LastKeyword=166]="LastKeyword",e[e.FirstFutureReservedWord=118]="FirstFutureReservedWord",e[e.LastFutureReservedWord=126]="LastFutureReservedWord",e[e.FirstTypeNode=183]="FirstTypeNode",e[e.LastTypeNode=206]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=78]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=166]="LastToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=14]="LastLiteralToken",e[e.FirstTemplateToken=14]="FirstTemplateToken",e[e.LastTemplateToken=17]="LastTemplateToken",e[e.FirstBinaryOperator=29]="FirstBinaryOperator",e[e.LastBinaryOperator=78]="LastBinaryOperator",e[e.FirstStatement=244]="FirstStatement",e[e.LastStatement=260]="LastStatement",e[e.FirstNode=167]="FirstNode",e[e.FirstJSDocNode=308]="FirstJSDocNode",e[e.LastJSDocNode=343]="LastJSDocNode",e[e.FirstJSDocTagNode=322]="FirstJSDocTagNode",e[e.LastJSDocTagNode=343]="LastJSDocTagNode",e[e.FirstContextualKeyword=127]="FirstContextualKeyword",e[e.LastContextualKeyword=166]="LastContextualKeyword",e[e.LastUnaryOperator=54]="LastUnaryOperator",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=6]="LastTriviaToken"})(n||(n={}));var Be;(function(e){e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",e[e.SingleQuote=65536]="SingleQuote",e[e.PrecedingJSDocWithDeprecated=131072]="PrecedingJSDocWithDeprecated",e[e.PrecedingJSDocWithSeeOrLink=262144]="PrecedingJSDocWithSeeOrLink",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=72716]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7180]="TemplateLiteralLikeFlags",e[e.RegularExpressionLiteralFlags=4]="RegularExpressionLiteralFlags",e[e.IsInvalid=26656]="IsInvalid"})(Be||(Be={}));function Fn(e){let t=e;return t.length>=3&&t.charCodeAt(0)===k._&&t.charCodeAt(1)===k._&&t.charCodeAt(2)===k._?t.slice(1):t}function Qn(e){return{statements:e.statements,endOfFileToken:e.endOfFileToken,text:e.text,fileName:e.fileName,path:e.path,languageVariant:e.languageVariant,scriptKind:e.scriptKind,isDeclarationFile:e.isDeclarationFile,referencedFiles:e.referencedFiles,typeReferenceDirectives:e.typeReferenceDirectives,libReferenceDirectives:e.libReferenceDirectives,imports:e.imports,moduleAugmentations:e.moduleAugmentations,ambientModuleNames:e.ambientModuleNames,externalModuleIndicator:e.externalModuleIndicator,tokenCache:void 0}}var ae;(function(e){e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",e[e.Satisfies=32]="Satisfies",e[e.ExcludeJSDocTypeAssertion=64]="ExcludeJSDocTypeAssertion",e[e.Assignments=128]="Assignments",e[e.Comma=256]="Comma",e[e.Assertions=38]="Assertions",e[e.All=63]="All",e[e.AllExceptAssertionsOrExpressionsWithTypeArguments=9]="AllExceptAssertionsOrExpressionsWithTypeArguments",e[e.ExpressionTypePassthrough=385]="ExpressionTypePassthrough"})(ae||(ae={}));function I(e){return e.kind===n.Identifier}function Yn(e){return e.kind===n.CaseBlock}function Xn(e){return e.kind===n.CatchClause}function _t(e){return e.kind===n.Block}function Zn(e){return e.kind===n.VariableDeclaration}function Kn(e){return e.kind===n.VariableDeclarationList}function Rr(e){return e.kind===n.ExpressionWithTypeArguments}function Dt(e){return e.kind===n.ImportAttributes}function Or(e){return e.kind===n.TemplateHead}function vr(e){return e.kind===n.JsxAttributes}function ei(e){return e.kind===n.JsxOpeningElement}function ti(e){return e.kind===n.JsxOpeningFragment}function ri(e){return e.kind===n.JsxClosingFragment}function ni(e){return e.kind===n.JsxClosingElement}function Mr(e){return e.kind===n.ImportClause}function qr(e){return e.kind===n.TypeParameter}function ii(e){return e.kind===n.Identifier||e.kind===n.StringLiteral}function St(e){return e.kind===n.Identifier||e.kind===n.StringLiteral}function xe(e){let t=e.kind;return t===n.Identifier||t===n.StringLiteral||t===n.NoSubstitutionTemplateLiteral||t===n.NumericLiteral||t===n.ComputedPropertyName||t===n.PrivateIdentifier||t===n.BigIntLiteral}function si(e){return e.kind===n.ModuleBlock||e.kind===n.ModuleDeclaration}function Br(e){return e.kind===n.Identifier||e.kind===n.ModuleDeclaration}function oi(e){return e.kind===n.Identifier||e.kind===n.QualifiedName||e.kind===n.ExternalModuleReference}function ai(e){return e.kind===n.NamespaceImport||e.kind===n.NamedImports}function ci(e){return e.kind===n.NamespaceExport||e.kind===n.NamedExports}function ui(e){return e.kind===n.Identifier||e.kind===n.PrivateIdentifier}function Ee(e){return e.kind===n.Identifier||e.kind===n.QualifiedName}function Ht(e){return e.kind===n.Identifier||e.kind===n.ObjectBindingPattern||e.kind===n.ArrayBindingPattern}function pi(e){return e.kind===n.Identifier||e.kind===n.JsxNamespacedName}function li(e){let t=e.kind;return t===n.StringLiteral||t===n.JsxExpression||t===n.JsxElement||t===n.JsxSelfClosingElement||t===n.JsxFragment}function Ur(e){return e.kind===n.TemplateMiddle||e.kind===n.TemplateTail}function fi(e){return e.kind===n.TemplateExpression||e.kind===n.NoSubstitutionTemplateLiteral}function mi(e){return e.kind===n.Identifier||e.kind===n.ThisType}function hi(e){return e.kind===n.Identifier||e.kind===n.StringLiteral}function He(e){return e.kind===n.Block}function Ip(e){return e===n.EqualsToken||Gp(e)}function Cp(e){return $p(e)||e===n.CommaToken}function Np(e){return e===n.AsteriskAsteriskToken}function Lp(e){return e===n.AsteriskToken||e===n.SlashToken||e===n.PercentToken}function Jp(e){return Np(e)||Lp(e)}function Rp(e){return e===n.PlusToken||e===n.MinusToken}function Op(e){return Jp(e)||Rp(e)}function vp(e){return e===n.LessThanLessThanToken||e===n.GreaterThanGreaterThanToken||e===n.GreaterThanGreaterThanGreaterThanToken}function Mp(e){return Op(e)||vp(e)}function qp(e){return e===n.LessThanToken||e===n.LessThanEqualsToken||e===n.GreaterThanToken||e===n.GreaterThanEqualsToken||e===n.InstanceOfKeyword||e===n.InKeyword}function Bp(e){return Mp(e)||qp(e)}function Up(e){return e===n.EqualsEqualsToken||e===n.EqualsEqualsEqualsToken||e===n.ExclamationEqualsEqualsToken||e===n.ExclamationEqualsToken}function jp(e){return Bp(e)||Up(e)}function Vp(e){return e===n.AmpersandToken||e===n.BarToken||e===n.CaretToken}function Wp(e){return jp(e)||Vp(e)}function zp(e){return e===n.AmpersandAmpersandToken||e===n.BarBarToken}function Hp(e){return Wp(e)||zp(e)}function Gp(e){return e===n.PlusEqualsToken||e===n.MinusEqualsToken||e===n.AsteriskAsteriskEqualsToken||e===n.AsteriskEqualsToken||e===n.SlashEqualsToken||e===n.PercentEqualsToken||e===n.AmpersandEqualsToken||e===n.BarEqualsToken||e===n.CaretEqualsToken||e===n.LessThanLessThanEqualsToken||e===n.GreaterThanGreaterThanGreaterThanEqualsToken||e===n.GreaterThanGreaterThanEqualsToken||e===n.BarBarEqualsToken||e===n.AmpersandAmpersandEqualsToken||e===n.QuestionQuestionEqualsToken}function $p(e){return e===n.QuestionQuestionToken||Hp(e)||Ip(e)}function di(e){return e>=n.FirstJSDocNode&&e<=n.LastJSDocNode}function Ti(e){return e.kind===n.EndOfFile}function Pt(e){return e.kind===n.DotDotDotToken}function Gt(e){return e.kind===n.QuestionToken}function gi(e){return e.kind===n.ExclamationToken}function yi(e){return e.kind===n.ColonToken}function xi(e){return e.kind===n.EqualsToken}function At(e){return e.kind===n.AsteriskToken}function Ei(e){return e.kind===n.EqualsGreaterThanToken}function bt(e){return e.kind===n.QuestionDotToken}function ki(e){return e.kind===n.AssertsKeyword}function jr(e){return e.kind===n.AwaitKeyword}function wi(e){return Cp(e.kind)}function P(e){return Fp(e.kind)}function Fp(e){return e>=n.FirstTypeNode&&e<=n.LastTypeNode||e===n.AnyKeyword||e===n.UnknownKeyword||e===n.NumberKeyword||e===n.BigIntKeyword||e===n.ObjectKeyword||e===n.BooleanKeyword||e===n.StringKeyword||e===n.SymbolKeyword||e===n.VoidKeyword||e===n.UndefinedKeyword||e===n.NeverKeyword||e===n.IntrinsicKeyword||e===n.ExpressionWithTypeArguments||e===n.JSDocAllType||e===n.JSDocNullableType||e===n.JSDocNonNullableType||e===n.JSDocOptionalType||e===n.JSDocVariadicType||e===n.JSDocTypeExpression||e===n.JSDocTypeLiteral||e===n.JSDocSignature}function Ae(e){let t=e.kind;return t===n.VariableStatement||t===n.EmptyStatement||t===n.ExpressionStatement||t===n.IfStatement||t===n.DoStatement||t===n.WhileStatement||t===n.ForStatement||t===n.ForInStatement||t===n.ForOfStatement||t===n.ContinueStatement||t===n.BreakStatement||t===n.ReturnStatement||t===n.WithStatement||t===n.SwitchStatement||t===n.LabeledStatement||t===n.ThrowStatement||t===n.TryStatement||t===n.DebuggerStatement||t===n.InterfaceDeclaration||t===n.TypeAliasDeclaration||t===n.EnumDeclaration||t===n.ModuleDeclaration||t===n.ImportDeclaration||t===n.ImportEqualsDeclaration||t===n.ExportDeclaration||t===n.ExportAssignment||t===n.NamespaceExportDeclaration||t===n.FunctionDeclaration||t===n.ClassDeclaration||t===n.MissingDeclaration||t===n.NotEmittedStatement||t===n.Block}function _(e){let t=e.kind;return t===n.ConditionalExpression||t===n.YieldExpression||t===n.ArrowFunction||t===n.BinaryExpression||t===n.SpreadElement||t===n.AsExpression||t===n.OmittedExpression||t===n.SatisfiesExpression||t===n.PrefixUnaryExpression||t===n.PostfixUnaryExpression||t===n.DeleteExpression||t===n.TypeOfExpression||t===n.VoidExpression||t===n.AwaitExpression||t===n.TypeAssertionExpression||t===n.CallExpression||t===n.NewExpression||t===n.TaggedTemplateExpression||t===n.NonNullExpression||t===n.MetaProperty||t===n.JsxExpression||t===n.PropertyAccessExpression||t===n.ElementAccessExpression||t===n.FunctionExpression||t===n.ClassExpression||t===n.ParenthesizedExpression||t===n.ArrayLiteralExpression||t===n.ObjectLiteralExpression||t===n.TemplateExpression||t===n.Identifier||t===n.PrivateIdentifier||t===n.NumericLiteral||t===n.BigIntLiteral||t===n.StringLiteral||t===n.RegularExpressionLiteral||t===n.NoSubstitutionTemplateLiteral||t===n.JsxElement||t===n.JsxSelfClosingElement||t===n.JsxFragment||t===n.NullKeyword||t===n.TrueKeyword||t===n.FalseKeyword||t===n.ThisKeyword||t===n.SuperKeyword||t===n.ImportKeyword||t===n.ExpressionWithTypeArguments}function _i(e){return Yp(Qp(e).kind)}function Qp(e){return Zp(e,ae.PartiallyEmittedExpressions)}function Yp(e){switch(e){case n.PropertyAccessExpression:case n.ElementAccessExpression:case n.NewExpression:case n.CallExpression:case n.JsxElement:case n.JsxSelfClosingElement:case n.JsxFragment:case n.TaggedTemplateExpression:case n.ArrayLiteralExpression:case n.ParenthesizedExpression:case n.ObjectLiteralExpression:case n.ClassExpression:case n.FunctionExpression:case n.Identifier:case n.PrivateIdentifier:case n.RegularExpressionLiteral:case n.NumericLiteral:case n.BigIntLiteral:case n.StringLiteral:case n.NoSubstitutionTemplateLiteral:case n.TemplateExpression:case n.FalseKeyword:case n.NullKeyword:case n.ThisKeyword:case n.TrueKeyword:case n.SuperKeyword:case n.NonNullExpression:case n.ExpressionWithTypeArguments:case n.MetaProperty:case n.ImportKeyword:case n.MissingDeclaration:return!0;default:return!1}}function Xp(e,t=ae.All){switch(e.kind){case n.ParenthesizedExpression:if(t&ae.ExcludeJSDocTypeAssertion&&Kp(e))return!1;return(t&ae.Parentheses)!==0;case n.TypeAssertionExpression:case n.AsExpression:return(t&ae.TypeAssertions)!==0;case n.SatisfiesExpression:return(t&(ae.ExpressionsWithTypeArguments|ae.Satisfies))!==0;case n.ExpressionWithTypeArguments:return(t&ae.ExpressionsWithTypeArguments)!==0;case n.NonNullExpression:return(t&ae.NonNullAssertions)!==0;case n.PartiallyEmittedExpression:return(t&ae.PartiallyEmittedExpressions)!==0}return!1}function Zp(e,t=ae.All){while(Xp(e,t))e=e.expression;return e}function Kp(e){let t=e.getSourceFile();if(t.scriptKind!==at.JS&&t.scriptKind!==at.JSX)return!1;let r=e.expression;if(r.kind!==n.AsExpression)return!1;let i=r;return!!i.type&&(i.type.flags&Pe.Reparsed)!==0}function Di(e){return e.kind===n.Block||_(e)}function $t(e){return e.kind===n.VariableDeclarationList||_(e)}function Ge(e){return e.kind===n.QuestionToken||e.kind===n.ExclamationToken}function Si(e){return e.kind===n.ReadonlyKeyword||e.kind===n.PlusToken||e.kind===n.MinusToken}function Pi(e){return e.kind===n.QuestionToken||e.kind===n.PlusToken||e.kind===n.MinusToken}function Ft(e){let t=e.kind;return t===n.ThisKeyword||t===n.Identifier||t===n.PropertyAccessExpression||t===n.JsxNamespacedName}function c(e,t,r){if(e===void 0)return;let i=t(e);if(i!==void 0&&r!==void 0&&!r(i))throw Error("Visited node failed test assertion.");return i}function g(e,t){if(e===void 0)return;let r=Qt(e,t);if(r===e)return e;return m(r,e.pos,e.end)}function Qt(e,t){if(e===void 0)return;let r;for(let i=0;i<e.length;i++){let s=e[i],a=t(s);if(r){if(a)r.push(a)}else if(a!==s){r=[];for(let p=0;p<i;p++)r.push(e[p]);if(a)r.push(a)}}return r??e}var Ig={[n.QualifiedName]:(e,t)=>{let r=c(e.left,t,Ee),i=c(e.right,t,I);return Ai(e,r,i)},[n.ComputedPropertyName]:(e,t)=>{let r=c(e.expression,t,_);return bi(e,r)},[n.Decorator]:(e,t)=>{let r=c(e.expression,t,_i);return Ii(e,r)},[n.IfStatement]:(e,t)=>{let r=c(e.expression,t,_),i=c(e.thenStatement,t,Ae),s=c(e.elseStatement,t,Ae);return Ci(e,r,i,s)},[n.DoStatement]:(e,t)=>{let r=c(e.statement,t,Ae),i=c(e.expression,t,_);return Ni(e,r,i)},[n.WhileStatement]:(e,t)=>{let r=c(e.expression,t,_),i=c(e.statement,t,Ae);return Li(e,r,i)},[n.ForStatement]:(e,t)=>{let r=c(e.initializer,t,$t),i=c(e.condition,t,_),s=c(e.incrementor,t,_),a=c(e.statement,t,Ae);return Ji(e,r,i,s,a)},[n.BreakStatement]:(e,t)=>{let r=c(e.label,t,I);return Ri(e,r)},[n.ContinueStatement]:(e,t)=>{let r=c(e.label,t,I);return Oi(e,r)},[n.ReturnStatement]:(e,t)=>{let r=c(e.expression,t,_);return vi(e,r)},[n.WithStatement]:(e,t)=>{let r=c(e.expression,t,_),i=c(e.statement,t,Ae);return Mi(e,r,i)},[n.SwitchStatement]:(e,t)=>{let r=c(e.expression,t,_),i=c(e.caseBlock,t,Yn);return qi(e,r,i)},[n.CaseBlock]:(e,t)=>{let r=g(e.clauses,t);return Bi(e,r)},[n.ThrowStatement]:(e,t)=>{let r=c(e.expression,t,_);return Ui(e,r)},[n.TryStatement]:(e,t)=>{let r=c(e.tryBlock,t,_t),i=c(e.catchClause,t,Xn),s=c(e.finallyBlock,t,_t);return ji(e,r,i,s)},[n.CatchClause]:(e,t)=>{let r=c(e.variableDeclaration,t,Zn),i=c(e.block,t,_t);return Vi(e,r,i)},[n.LabeledStatement]:(e,t)=>{let r=c(e.label,t,I),i=c(e.statement,t,Ae);return Wi(e,r,i)},[n.ExpressionStatement]:(e,t)=>{let r=c(e.expression,t,_);return zi(e,r)},[n.Block]:(e,t)=>{let r=g(e.statements,t);return Hi(e,r)},[n.VariableStatement]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.declarationList,t,Kn);return Gi(e,r,i)},[n.VariableDeclaration]:(e,t)=>{let r=c(e.name,t,Ht),i=c(e.exclamationToken,t,gi),s=c(e.type,t,P),a=c(e.initializer,t,_);return $i(e,r,i,s,a)},[n.VariableDeclarationList]:(e,t)=>{let r=g(e.declarations,t);return Fi(e,r)},[n.Parameter]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.dotDotDotToken,t,Pt),s=c(e.name,t,Ht),a=c(e.questionToken,t,Gt),p=c(e.type,t,P),T=c(e.initializer,t,_);return Qi(e,r,i,s,a,p,T)},[n.BindingElement]:(e,t)=>{let r=c(e.dotDotDotToken,t,Pt),i=c(e.propertyName,t,xe),s=c(e.name,t,Ht),a=c(e.initializer,t,_);return Yi(e,r,i,s,a)},[n.MissingDeclaration]:(e,t)=>{let r=g(e.modifiers,t);return Xi(e,r)},[n.FunctionDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.asteriskToken,t,At),s=c(e.name,t,I),a=g(e.typeParameters,t),p=g(e.parameters,t),T=c(e.type,t,P),E=c(e.body,t,He);return Zi(e,r,i,s,a,p,T,E)},[n.ClassDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,I),s=g(e.typeParameters,t),a=g(e.heritageClauses,t),p=g(e.members,t);return Ki(e,r,i,s,a,p)},[n.ClassExpression]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,I),s=g(e.typeParameters,t),a=g(e.heritageClauses,t),p=g(e.members,t);return es(e,r,i,s,a,p)},[n.HeritageClause]:(e,t)=>{let r=g(e.types,t);return ts(e,r)},[n.InterfaceDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,I),s=g(e.typeParameters,t),a=g(e.heritageClauses,t),p=g(e.members,t);return rs(e,r,i,s,a,p)},[n.TypeAliasDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,I),s=g(e.typeParameters,t),a=c(e.type,t,P);return ns(e,r,i,s,a)},[n.EnumMember]:(e,t)=>{let r=c(e.name,t,xe),i=c(e.initializer,t,_);return is(e,r,i)},[n.EnumDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,I),s=g(e.members,t);return ss(e,r,i,s)},[n.ModuleBlock]:(e,t)=>{let r=g(e.statements,t);return os(e,r)},[n.ImportDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.importClause,t,Mr),s=c(e.moduleSpecifier,t,_),a=c(e.attributes,t,Dt);return as(e,r,i,s,a)},[n.ExternalModuleReference]:(e,t)=>{let r=c(e.expression,t,_);return cs(e,r)},[n.NamespaceImport]:(e,t)=>{let r=c(e.name,t,I);return us(e,r)},[n.NamedImports]:(e,t)=>{let r=g(e.elements,t);return ps(e,r)},[n.ExportAssignment]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.type,t,P),s=c(e.expression,t,_);return ls(e,r,i,s)},[n.NamespaceExportDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,I);return fs(e,r,i)},[n.NamespaceExport]:(e,t)=>{let r=c(e.name,t,St);return ms(e,r)},[n.NamedExports]:(e,t)=>{let r=g(e.elements,t);return hs(e,r)},[n.ExportSpecifier]:(e,t)=>{let r=c(e.propertyName,t,St),i=c(e.name,t,St);return ds(e,r,i)},[n.CallSignature]:(e,t)=>{let r=g(e.typeParameters,t),i=g(e.parameters,t),s=c(e.type,t,P);return Ts(e,r,i,s)},[n.ConstructSignature]:(e,t)=>{let r=g(e.typeParameters,t),i=g(e.parameters,t),s=c(e.type,t,P);return gs(e,r,i,s)},[n.Constructor]:(e,t)=>{let r=g(e.modifiers,t),i=g(e.typeParameters,t),s=g(e.parameters,t),a=c(e.type,t,P),p=c(e.body,t,He);return ys(e,r,i,s,a,p)},[n.GetAccessor]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,xe),s=g(e.typeParameters,t),a=g(e.parameters,t),p=c(e.type,t,P),T=c(e.body,t,He);return xs(e,r,i,s,a,p,T)},[n.SetAccessor]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,xe),s=g(e.typeParameters,t),a=g(e.parameters,t),p=c(e.type,t,P),T=c(e.body,t,He);return Es(e,r,i,s,a,p,T)},[n.IndexSignature]:(e,t)=>{let r=g(e.modifiers,t),i=g(e.parameters,t),s=c(e.type,t,P);return ks(e,r,i,s)},[n.MethodSignature]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,xe),s=c(e.postfixToken,t,Ge),a=g(e.typeParameters,t),p=g(e.parameters,t),T=c(e.type,t,P);return ws(e,r,i,s,a,p,T)},[n.MethodDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.asteriskToken,t,At),s=c(e.name,t,xe),a=c(e.postfixToken,t,Ge),p=g(e.typeParameters,t),T=g(e.parameters,t),E=c(e.type,t,P),A=c(e.body,t,He);return _s(e,r,i,s,a,p,T,E,A)},[n.PropertySignature]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,xe),s=c(e.postfixToken,t,Ge),a=c(e.type,t,P),p=c(e.initializer,t,_);return Ds(e,r,i,s,a,p)},[n.PropertyDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,xe),s=c(e.postfixToken,t,Ge),a=c(e.type,t,P),p=c(e.initializer,t,_);return Ss(e,r,i,s,a,p)},[n.ClassStaticBlockDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.body,t,_t);return Ps(e,r,i)},[n.BinaryExpression]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.left,t,_),s=c(e.type,t,P),a=c(e.operatorToken,t,wi),p=c(e.right,t,_);return As(e,r,i,s,a,p)},[n.PrefixUnaryExpression]:(e,t)=>{let r=c(e.operand,t,_);return bs(e,r)},[n.PostfixUnaryExpression]:(e,t)=>{let r=c(e.operand,t,_);return Is(e,r)},[n.YieldExpression]:(e,t)=>{let r=c(e.asteriskToken,t,At),i=c(e.expression,t,_);return Cs(e,r,i)},[n.ArrowFunction]:(e,t)=>{let r=g(e.modifiers,t),i=g(e.typeParameters,t),s=g(e.parameters,t),a=c(e.type,t,P),p=c(e.equalsGreaterThanToken,t,Ei),T=c(e.body,t,Di);return Ns(e,r,i,s,a,p,T)},[n.FunctionExpression]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.asteriskToken,t,At),s=c(e.name,t,I),a=g(e.typeParameters,t),p=g(e.parameters,t),T=c(e.type,t,P),E=c(e.body,t,He);return Ls(e,r,i,s,a,p,T,E)},[n.AsExpression]:(e,t)=>{let r=c(e.expression,t,_),i=c(e.type,t,P);return Js(e,r,i)},[n.SatisfiesExpression]:(e,t)=>{let r=c(e.expression,t,_),i=c(e.type,t,P);return Rs(e,r,i)},[n.ConditionalExpression]:(e,t)=>{let r=c(e.condition,t,_),i=c(e.questionToken,t,Gt),s=c(e.whenTrue,t,_),a=c(e.colonToken,t,yi),p=c(e.whenFalse,t,_);return Os(e,r,i,s,a,p)},[n.PropertyAccessExpression]:(e,t)=>{let r=c(e.expression,t,_),i=c(e.questionDotToken,t,bt),s=c(e.name,t,ui);return vs(e,r,i,s)},[n.ElementAccessExpression]:(e,t)=>{let r=c(e.expression,t,_),i=c(e.questionDotToken,t,bt),s=c(e.argumentExpression,t,_);return Ms(e,r,i,s)},[n.CallExpression]:(e,t)=>{let r=c(e.expression,t,_),i=c(e.questionDotToken,t,bt),s=g(e.typeArguments,t),a=g(e.arguments,t);return qs(e,r,i,s,a)},[n.NewExpression]:(e,t)=>{let r=c(e.expression,t,_),i=g(e.typeArguments,t),s=g(e.arguments,t);return Bs(e,r,i,s)},[n.MetaProperty]:(e,t)=>{let r=c(e.name,t,I);return Us(e,r)},[n.NonNullExpression]:(e,t)=>{let r=c(e.expression,t,_);return js(e,r)},[n.SpreadElement]:(e,t)=>{let r=c(e.expression,t,_);return Vs(e,r)},[n.TemplateExpression]:(e,t)=>{let r=c(e.head,t,Or),i=g(e.templateSpans,t);return Ws(e,r,i)},[n.TemplateSpan]:(e,t)=>{let r=c(e.expression,t,_),i=c(e.literal,t,Ur);return zs(e,r,i)},[n.TaggedTemplateExpression]:(e,t)=>{let r=c(e.tag,t,_),i=c(e.questionDotToken,t,bt),s=g(e.typeArguments,t),a=c(e.template,t,fi);return Hs(e,r,i,s,a)},[n.ParenthesizedExpression]:(e,t)=>{let r=c(e.expression,t,_);return Gs(e,r)},[n.ArrayLiteralExpression]:(e,t)=>{let r=g(e.elements,t);return $s(e,r)},[n.ObjectLiteralExpression]:(e,t)=>{let r=g(e.properties,t);return Fs(e,r)},[n.SpreadAssignment]:(e,t)=>{let r=c(e.expression,t,_);return Qs(e,r)},[n.PropertyAssignment]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,xe),s=c(e.postfixToken,t,Ge),a=c(e.type,t,P),p=c(e.initializer,t,_);return Ys(e,r,i,s,a,p)},[n.ShorthandPropertyAssignment]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,xe),s=c(e.postfixToken,t,Ge),a=c(e.type,t,P),p=c(e.equalsToken,t,xi),T=c(e.objectAssignmentInitializer,t,_);return Xs(e,r,i,s,a,p,T)},[n.DeleteExpression]:(e,t)=>{let r=c(e.expression,t,_);return Zs(e,r)},[n.TypeOfExpression]:(e,t)=>{let r=c(e.expression,t,_);return Ks(e,r)},[n.VoidExpression]:(e,t)=>{let r=c(e.expression,t,_);return eo(e,r)},[n.AwaitExpression]:(e,t)=>{let r=c(e.expression,t,_);return to(e,r)},[n.TypeAssertionExpression]:(e,t)=>{let r=c(e.type,t,P),i=c(e.expression,t,_);return ro(e,r,i)},[n.UnionType]:(e,t)=>{let r=g(e.types,t);return no(e,r)},[n.IntersectionType]:(e,t)=>{let r=g(e.types,t);return io(e,r)},[n.ConditionalType]:(e,t)=>{let r=c(e.checkType,t,P),i=c(e.extendsType,t,P),s=c(e.trueType,t,P),a=c(e.falseType,t,P);return so(e,r,i,s,a)},[n.TypeOperator]:(e,t)=>{let r=c(e.type,t,P);return oo(e,r)},[n.InferType]:(e,t)=>{let r=c(e.typeParameter,t,qr);return ao(e,r)},[n.ArrayType]:(e,t)=>{let r=c(e.elementType,t,P);return co(e,r)},[n.IndexedAccessType]:(e,t)=>{let r=c(e.objectType,t,P),i=c(e.indexType,t,P);return uo(e,r,i)},[n.TypeReference]:(e,t)=>{let r=c(e.typeName,t,Ee),i=g(e.typeArguments,t);return po(e,r,i)},[n.ExpressionWithTypeArguments]:(e,t)=>{let r=c(e.expression,t,_),i=g(e.typeArguments,t);return lo(e,r,i)},[n.LiteralType]:(e,t)=>{let r=c(e.literal,t);return fo(e,r)},[n.TypePredicate]:(e,t)=>{let r=c(e.assertsModifier,t,ki),i=c(e.parameterName,t,mi),s=c(e.type,t,P);return mo(e,r,i,s)},[n.ImportAttribute]:(e,t)=>{let r=c(e.name,t,hi),i=c(e.value,t,_);return ho(e,r,i)},[n.ImportAttributes]:(e,t)=>{let r=g(e.attributes,t);return To(e,r)},[n.TypeQuery]:(e,t)=>{let r=c(e.exprName,t,Ee),i=g(e.typeArguments,t);return go(e,r,i)},[n.MappedType]:(e,t)=>{let r=c(e.readonlyToken,t,Si),i=c(e.typeParameter,t,qr),s=c(e.nameType,t,P),a=c(e.questionToken,t,Pi),p=c(e.type,t,P),T=g(e.members,t);return yo(e,r,i,s,a,p,T)},[n.TypeLiteral]:(e,t)=>{let r=g(e.members,t);return xo(e,r)},[n.TupleType]:(e,t)=>{let r=g(e.elements,t);return Eo(e,r)},[n.NamedTupleMember]:(e,t)=>{let r=c(e.dotDotDotToken,t,Pt),i=c(e.name,t,I),s=c(e.questionToken,t,Gt),a=c(e.type,t,P);return ko(e,r,i,s,a)},[n.OptionalType]:(e,t)=>{let r=c(e.type,t,P);return wo(e,r)},[n.RestType]:(e,t)=>{let r=c(e.type,t,P);return _o(e,r)},[n.ParenthesizedType]:(e,t)=>{let r=c(e.type,t,P);return Do(e,r)},[n.FunctionType]:(e,t)=>{let r=g(e.typeParameters,t),i=g(e.parameters,t),s=c(e.type,t,P);return So(e,r,i,s)},[n.ConstructorType]:(e,t)=>{let r=g(e.modifiers,t),i=g(e.typeParameters,t),s=g(e.parameters,t),a=c(e.type,t,P);return Po(e,r,i,s,a)},[n.TemplateLiteralType]:(e,t)=>{let r=c(e.head,t,Or),i=g(e.templateSpans,t);return Ao(e,r,i)},[n.TemplateLiteralTypeSpan]:(e,t)=>{let r=c(e.type,t,P),i=c(e.literal,t,Ur);return bo(e,r,i)},[n.SyntheticExpression]:(e,t)=>{let r=c(e.tupleNameSource,t);return Io(e,r)},[n.PartiallyEmittedExpression]:(e,t)=>{let r=c(e.expression,t,_);return Co(e,r)},[n.JsxElement]:(e,t)=>{let r=c(e.openingElement,t,ei),i=g(e.children,t),s=c(e.closingElement,t,ni);return No(e,r,i,s)},[n.JsxAttributes]:(e,t)=>{let r=g(e.properties,t);return Lo(e,r)},[n.JsxNamespacedName]:(e,t)=>{let r=c(e.namespace,t,I),i=c(e.name,t,I);return Jo(e,r,i)},[n.JsxOpeningElement]:(e,t)=>{let r=c(e.tagName,t,Ft),i=g(e.typeArguments,t),s=c(e.attributes,t,vr);return Ro(e,r,i,s)},[n.JsxSelfClosingElement]:(e,t)=>{let r=c(e.tagName,t,Ft),i=g(e.typeArguments,t),s=c(e.attributes,t,vr);return Oo(e,r,i,s)},[n.JsxFragment]:(e,t)=>{let r=c(e.openingFragment,t,ti),i=g(e.children,t),s=c(e.closingFragment,t,ri);return vo(e,r,i,s)},[n.JsxAttribute]:(e,t)=>{let r=c(e.name,t,pi),i=c(e.initializer,t,li);return Mo(e,r,i)},[n.JsxSpreadAttribute]:(e,t)=>{let r=c(e.expression,t,_);return qo(e,r)},[n.JsxClosingElement]:(e,t)=>{let r=c(e.tagName,t,Ft);return Bo(e,r)},[n.JsxExpression]:(e,t)=>{let r=c(e.dotDotDotToken,t,Pt),i=c(e.expression,t,_);return Uo(e,r,i)},[n.SyntaxList]:(e,t)=>{let r=Qt(e.children,t);return jo(e,r)},[n.JSDoc]:(e,t)=>{let r=g(e.comment,t),i=g(e.tags,t);return Vo(e,r,i)},[n.JSDocTypeExpression]:(e,t)=>{let r=c(e.type,t,P);return Wo(e,r)},[n.JSDocNonNullableType]:(e,t)=>{let r=c(e.type,t,P);return zo(e,r)},[n.JSDocNullableType]:(e,t)=>{let r=c(e.type,t,P);return Ho(e,r)},[n.JSDocVariadicType]:(e,t)=>{let r=c(e.type,t,P);return Go(e,r)},[n.JSDocOptionalType]:(e,t)=>{let r=c(e.type,t,P);return $o(e,r)},[n.JSDocTypeTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.typeExpression,t),s=g(e.comment,t);return Fo(e,r,i,s)},[n.JSDocUnknownTag]:(e,t)=>{let r=c(e.tagName,t,I),i=g(e.comment,t);return Qo(e,r,i)},[n.JSDocTemplateTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.constraint,t),s=g(e.typeParameters,t),a=g(e.comment,t);return Yo(e,r,i,s,a)},[n.JSDocReturnTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.typeExpression,t,P),s=g(e.comment,t);return Xo(e,r,i,s)},[n.JSDocPublicTag]:(e,t)=>{let r=c(e.tagName,t,I),i=g(e.comment,t);return Zo(e,r,i)},[n.JSDocPrivateTag]:(e,t)=>{let r=c(e.tagName,t,I),i=g(e.comment,t);return Ko(e,r,i)},[n.JSDocProtectedTag]:(e,t)=>{let r=c(e.tagName,t,I),i=g(e.comment,t);return ea(e,r,i)},[n.JSDocReadonlyTag]:(e,t)=>{let r=c(e.tagName,t,I),i=g(e.comment,t);return ta(e,r,i)},[n.JSDocOverrideTag]:(e,t)=>{let r=c(e.tagName,t,I),i=g(e.comment,t);return ra(e,r,i)},[n.JSDocDeprecatedTag]:(e,t)=>{let r=c(e.tagName,t,I),i=g(e.comment,t);return na(e,r,i)},[n.JSDocSeeTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.nameExpression,t,P),s=g(e.comment,t);return ia(e,r,i,s)},[n.JSDocImplementsTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.className,t,Rr),s=g(e.comment,t);return sa(e,r,i,s)},[n.JSDocAugmentsTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.className,t,Rr),s=g(e.comment,t);return oa(e,r,i,s)},[n.JSDocSatisfiesTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.typeExpression,t,P),s=g(e.comment,t);return aa(e,r,i,s)},[n.JSDocThrowsTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.typeExpression,t,P),s=g(e.comment,t);return ca(e,r,i,s)},[n.JSDocThisTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.typeExpression,t,P),s=g(e.comment,t);return ua(e,r,i,s)},[n.JSDocImportTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.importClause,t,Mr),s=c(e.moduleSpecifier,t,_),a=c(e.attributes,t,Dt),p=g(e.comment,t);return pa(e,r,i,s,a,p)},[n.JSDocCallbackTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.typeExpression,t,P),s=c(e.name,t,Br),a=g(e.comment,t);return la(e,r,i,s,a)},[n.JSDocOverloadTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.typeExpression,t,P),s=g(e.comment,t);return fa(e,r,i,s)},[n.JSDocTypedefTag]:(e,t)=>{let r=c(e.tagName,t,I),i=c(e.typeExpression,t),s=c(e.name,t,Br),a=g(e.comment,t);return ma(e,r,i,s,a)},[n.JSDocSignature]:(e,t)=>{let r=g(e.typeParameters,t),i=g(e.parameters,t),s=c(e.type,t,P);return ha(e,r,i,s)},[n.JSDocNameReference]:(e,t)=>{let r=c(e.name,t,Ee);return da(e,r)},[n.SourceFile]:(e,t)=>{let r=g(e.statements,t),i=c(e.endOfFileToken,t,Ti);return Ra(e,r,i)},[n.ModuleDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,ii),s=c(e.body,t,si);return Ta(e,r,i,s)},[n.ImportEqualsDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,I),s=c(e.moduleReference,t,oi);return ga(e,r,i,s)},[n.ExportDeclaration]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.exportClause,t,ci),s=c(e.moduleSpecifier,t,_),a=c(e.attributes,t,Dt);return ya(e,r,i,s,a)},[n.ImportType]:(e,t)=>{let r=c(e.argument,t,P),i=c(e.attributes,t,Dt),s=c(e.qualifier,t,Ee),a=g(e.typeArguments,t);return xa(e,r,i,s,a)},[n.ImportClause]:(e,t)=>{let r=c(e.name,t,I),i=c(e.namedBindings,t,ai);return Ea(e,r,i)},[n.ImportSpecifier]:(e,t)=>{let r=c(e.propertyName,t,St),i=c(e.name,t,I);return ka(e,r,i)},[n.JSDocLink]:(e,t)=>{let r=c(e.name,t,Ee);return wa(e,r)},[n.JSDocLinkPlain]:(e,t)=>{let r=c(e.name,t,Ee);return _a(e,r)},[n.JSDocLinkCode]:(e,t)=>{let r=c(e.name,t,Ee);return Da(e,r)},[n.TypeParameter]:(e,t)=>{let r=g(e.modifiers,t),i=c(e.name,t,I),s=c(e.constraint,t,P),a=c(e.expression,t,_),p=c(e.defaultType,t,P);return Sa(e,r,i,s,a,p)},[n.SyntheticReferenceExpression]:(e,t)=>{let r=c(e.expression,t,_),i=c(e.thisArg,t,_);return Pa(e,r,i)},[n.JSDocTypeLiteral]:(e,t)=>{let r=Qt(e.jsdocPropertyTags,t);return Aa(e,r)},[n.ForInStatement]:(e,t)=>{let r=c(e.awaitModifier,t,jr),i=c(e.initializer,t,$t),s=c(e.expression,t,_),a=c(e.statement,t,Ae);return ba(e,r,i,s,a)},[n.ForOfStatement]:(e,t)=>{let r=c(e.awaitModifier,t,jr),i=c(e.initializer,t,$t),s=c(e.expression,t,_),a=c(e.statement,t,Ae);return Ia(e,r,i,s,a)},[n.CaseClause]:(e,t)=>{let r=c(e.expression,t,_),i=g(e.statements,t);return Ca(e,r,i)},[n.DefaultClause]:(e,t)=>{let r=c(e.expression,t,_),i=g(e.statements,t);return Na(e,r,i)},[n.ObjectBindingPattern]:(e,t)=>{let r=g(e.elements,t);return La(e,r)},[n.ArrayBindingPattern]:(e,t)=>{let r=g(e.elements,t);return Ja(e,r)},[n.JSDocParameterTag]:Yt,[n.JSDocPropertyTag]:Yt};function It(e,t){return t?e(t):void 0}function tl(e,t,r){if(!r)return;if(t)return t(r);for(let i of r){let s=e(i);if(s)return s}return}function Xt(e,t,r){return It(t,e.tagName)||(e.isNameFirst?It(t,e.name)||It(t,e.typeExpression):It(t,e.typeExpression)||It(t,e.name))||tl(t,r,e.comment)}function Yt(e,t){let r=c(e.tagName,t,I),i=c(e.name,t,Ee),s=c(e.typeExpression,t,P),a=g(e.comment,t);return e.kind===n.JSDocParameterTag?Oa(e,r,i,s,a):va(e,r,i,s,a)}class f{kind;flags=0;pos=-1;end=-1;parent=void 0;_data;constructor(e,t){this.kind=e,this._data=t}get ambientModuleNames(){return this._data?.ambientModuleNames}get argument(){return this._data?.argument}get argumentExpression(){return this._data?.argumentExpression}get arguments(){return this._data?.arguments}get assertsModifier(){return this._data?.assertsModifier}get asteriskToken(){return this._data?.asteriskToken}get attributes(){return this._data?.attributes}get awaitModifier(){return this._data?.awaitModifier}get block(){return this._data?.block}get body(){return this._data?.body}get caseBlock(){return this._data?.caseBlock}get catchClause(){return this._data?.catchClause}get checkType(){return this._data?.checkType}get children(){return this._data?.children}get className(){return this._data?.className}get clauses(){return this._data?.clauses}get closingElement(){return this._data?.closingElement}get closingFragment(){return this._data?.closingFragment}get colonToken(){return this._data?.colonToken}get comment(){return this._data?.comment}get condition(){return this._data?.condition}get constraint(){return this._data?.constraint}get containsOnlyTriviaWhiteSpaces(){return this._data?.containsOnlyTriviaWhiteSpaces}get declarationList(){return this._data?.declarationList}get declarations(){return this._data?.declarations}get defaultType(){return this._data?.defaultType}get dotDotDotToken(){return this._data?.dotDotDotToken}get elementType(){return this._data?.elementType}get elements(){return this._data?.elements}get elseStatement(){return this._data?.elseStatement}get endOfFileToken(){return this._data?.endOfFileToken}get equalsGreaterThanToken(){return this._data?.equalsGreaterThanToken}get equalsToken(){return this._data?.equalsToken}get exclamationToken(){return this._data?.exclamationToken}get exportClause(){return this._data?.exportClause}get exprName(){return this._data?.exprName}get expression(){return this._data?.expression}get extendsType(){return this._data?.extendsType}get externalModuleIndicator(){return this._data?.externalModuleIndicator}get falseType(){return this._data?.falseType}get fileName(){return this._data?.fileName}get finallyBlock(){return this._data?.finallyBlock}get head(){return this._data?.head}get heritageClauses(){return this._data?.heritageClauses}get importClause(){return this._data?.importClause}get imports(){return this._data?.imports}get incrementor(){return this._data?.incrementor}get indexType(){return this._data?.indexType}get initializer(){return this._data?.initializer}get isArrayType(){return this._data?.isArrayType}get isBracketed(){return this._data?.isBracketed}get isDeclarationFile(){return this._data?.isDeclarationFile}get isExportEquals(){return this._data?.isExportEquals}get isNameFirst(){return this._data?.isNameFirst}get isSpread(){return this._data?.isSpread}get isTypeOf(){return this._data?.isTypeOf}get isTypeOnly(){return this._data?.isTypeOnly}get jsdocPropertyTags(){return this._data?.jsdocPropertyTags}get keyword(){return this._data?.keyword}get keywordToken(){return this._data?.keywordToken}get label(){return this._data?.label}get languageVariant(){return this._data?.languageVariant}get left(){return this._data?.left}get libReferenceDirectives(){return this._data?.libReferenceDirectives}get literal(){return this._data?.literal}get members(){return this._data?.members}get modifiers(){return this._data?.modifiers}get moduleAugmentations(){return this._data?.moduleAugmentations}get moduleReference(){return this._data?.moduleReference}get moduleSpecifier(){return this._data?.moduleSpecifier}get multiLine(){return this._data?.multiLine}get name(){return this._data?.name}get nameExpression(){return this._data?.nameExpression}get nameType(){return this._data?.nameType}get namedBindings(){return this._data?.namedBindings}get namespace(){return this._data?.namespace}get objectAssignmentInitializer(){return this._data?.objectAssignmentInitializer}get objectType(){return this._data?.objectType}get openingElement(){return this._data?.openingElement}get openingFragment(){return this._data?.openingFragment}get operand(){return this._data?.operand}get operator(){return this._data?.operator}get operatorToken(){return this._data?.operatorToken}get parameterName(){return this._data?.parameterName}get parameters(){return this._data?.parameters}get path(){return this._data?.path}get phaseModifier(){return this._data?.phaseModifier}get postfixToken(){return this._data?.postfixToken}get properties(){return this._data?.properties}get propertyName(){return this._data?.propertyName}get qualifier(){return this._data?.qualifier}get questionDotToken(){return this._data?.questionDotToken}get questionToken(){return this._data?.questionToken}get rawText(){return this._data?.rawText}get readonlyToken(){return this._data?.readonlyToken}get referencedFiles(){return this._data?.referencedFiles}get right(){return this._data?.right}get scriptKind(){return this._data?.scriptKind}get statement(){return this._data?.statement}get statements(){return this._data?.statements}get tag(){return this._data?.tag}get tagName(){return this._data?.tagName}get tags(){return this._data?.tags}get template(){return this._data?.template}get templateFlags(){return this._data?.templateFlags}get templateSpans(){return this._data?.templateSpans}get text(){return this._data?.text}get thenStatement(){return this._data?.thenStatement}get thisArg(){return this._data?.thisArg}get token(){return this._data?.token}get tokenCache(){return this._data?.tokenCache}get tokenFlags(){return this._data?.tokenFlags}get trueType(){return this._data?.trueType}get tryBlock(){return this._data?.tryBlock}get tupleNameSource(){return this._data?.tupleNameSource}get type(){return this._data?.type}get typeArguments(){return this._data?.typeArguments}get typeExpression(){return this._data?.typeExpression}get typeName(){return this._data?.typeName}get typeParameter(){return this._data?.typeParameter}get typeParameters(){return this._data?.typeParameters}get typeReferenceDirectives(){return this._data?.typeReferenceDirectives}get types(){return this._data?.types}get value(){return this._data?.value}get variableDeclaration(){return this._data?.variableDeclaration}get whenFalse(){return this._data?.whenFalse}get whenTrue(){return this._data?.whenTrue}forEachChild(e,t){let r=nl[this.kind];return r?r(this._data,e,t):void 0}getSourceFile(){let e=this;while(e.parent)e=e.parent;return e}getStart(e,t){return Ct(this,e??this.getSourceFile(),t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e??this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e??=this.getSourceFile(),e.text.substring(this.getStart(e),this.end)}}function rl(e){return"pos"in e&&"end"in e}function m(e,t=-1,r=-1){if(rl(e))return e;let i=e.slice();return i.pos=t,i.end=r,i}var nl={[n.QualifiedName]:(e,t,r)=>u(t,e.left)||u(t,e.right),[n.ComputedPropertyName]:(e,t,r)=>u(t,e.expression),[n.Decorator]:(e,t,r)=>u(t,e.expression),[n.IfStatement]:(e,t,r)=>u(t,e.expression)||u(t,e.thenStatement)||u(t,e.elseStatement),[n.DoStatement]:(e,t,r)=>u(t,e.statement)||u(t,e.expression),[n.WhileStatement]:(e,t,r)=>u(t,e.expression)||u(t,e.statement),[n.ForStatement]:(e,t,r)=>u(t,e.initializer)||u(t,e.condition)||u(t,e.incrementor)||u(t,e.statement),[n.BreakStatement]:(e,t,r)=>u(t,e.label),[n.ContinueStatement]:(e,t,r)=>u(t,e.label),[n.ReturnStatement]:(e,t,r)=>u(t,e.expression),[n.WithStatement]:(e,t,r)=>u(t,e.expression)||u(t,e.statement),[n.SwitchStatement]:(e,t,r)=>u(t,e.expression)||u(t,e.caseBlock),[n.CaseBlock]:(e,t,r)=>h(t,r,e.clauses),[n.ThrowStatement]:(e,t,r)=>u(t,e.expression),[n.TryStatement]:(e,t,r)=>u(t,e.tryBlock)||u(t,e.catchClause)||u(t,e.finallyBlock),[n.CatchClause]:(e,t,r)=>u(t,e.variableDeclaration)||u(t,e.block),[n.LabeledStatement]:(e,t,r)=>u(t,e.label)||u(t,e.statement),[n.ExpressionStatement]:(e,t,r)=>u(t,e.expression),[n.Block]:(e,t,r)=>h(t,r,e.statements),[n.VariableStatement]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.declarationList),[n.VariableDeclaration]:(e,t,r)=>u(t,e.name)||u(t,e.exclamationToken)||u(t,e.type)||u(t,e.initializer),[n.VariableDeclarationList]:(e,t,r)=>h(t,r,e.declarations),[n.Parameter]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.dotDotDotToken)||u(t,e.name)||u(t,e.questionToken)||u(t,e.type)||u(t,e.initializer),[n.BindingElement]:(e,t,r)=>u(t,e.dotDotDotToken)||u(t,e.propertyName)||u(t,e.name)||u(t,e.initializer),[n.MissingDeclaration]:(e,t,r)=>h(t,r,e.modifiers),[n.FunctionDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.asteriskToken)||u(t,e.name)||h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type)||u(t,e.body),[n.ClassDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||h(t,r,e.typeParameters)||h(t,r,e.heritageClauses)||h(t,r,e.members),[n.ClassExpression]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||h(t,r,e.typeParameters)||h(t,r,e.heritageClauses)||h(t,r,e.members),[n.HeritageClause]:(e,t,r)=>h(t,r,e.types),[n.InterfaceDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||h(t,r,e.typeParameters)||h(t,r,e.heritageClauses)||h(t,r,e.members),[n.TypeAliasDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||h(t,r,e.typeParameters)||u(t,e.type),[n.JSTypeAliasDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||h(t,r,e.typeParameters)||u(t,e.type),[n.EnumMember]:(e,t,r)=>u(t,e.name)||u(t,e.initializer),[n.EnumDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||h(t,r,e.members),[n.ModuleBlock]:(e,t,r)=>h(t,r,e.statements),[n.ImportDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.importClause)||u(t,e.moduleSpecifier)||u(t,e.attributes),[n.JSImportDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.importClause)||u(t,e.moduleSpecifier)||u(t,e.attributes),[n.ExternalModuleReference]:(e,t,r)=>u(t,e.expression),[n.NamespaceImport]:(e,t,r)=>u(t,e.name),[n.NamedImports]:(e,t,r)=>h(t,r,e.elements),[n.ExportAssignment]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.type)||u(t,e.expression),[n.NamespaceExportDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name),[n.NamespaceExport]:(e,t,r)=>u(t,e.name),[n.NamedExports]:(e,t,r)=>h(t,r,e.elements),[n.ExportSpecifier]:(e,t,r)=>u(t,e.propertyName)||u(t,e.name),[n.CallSignature]:(e,t,r)=>h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type),[n.ConstructSignature]:(e,t,r)=>h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type),[n.Constructor]:(e,t,r)=>h(t,r,e.modifiers)||h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type)||u(t,e.body),[n.GetAccessor]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type)||u(t,e.body),[n.SetAccessor]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type)||u(t,e.body),[n.IndexSignature]:(e,t,r)=>h(t,r,e.modifiers)||h(t,r,e.parameters)||u(t,e.type),[n.MethodSignature]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||u(t,e.postfixToken)||h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type),[n.MethodDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.asteriskToken)||u(t,e.name)||u(t,e.postfixToken)||h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type)||u(t,e.body),[n.PropertySignature]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||u(t,e.postfixToken)||u(t,e.type)||u(t,e.initializer),[n.PropertyDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||u(t,e.postfixToken)||u(t,e.type)||u(t,e.initializer),[n.ClassStaticBlockDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.body),[n.BinaryExpression]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.left)||u(t,e.type)||u(t,e.operatorToken)||u(t,e.right),[n.PrefixUnaryExpression]:(e,t,r)=>u(t,e.operand),[n.PostfixUnaryExpression]:(e,t,r)=>u(t,e.operand),[n.YieldExpression]:(e,t,r)=>u(t,e.asteriskToken)||u(t,e.expression),[n.ArrowFunction]:(e,t,r)=>h(t,r,e.modifiers)||h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type)||u(t,e.equalsGreaterThanToken)||u(t,e.body),[n.FunctionExpression]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.asteriskToken)||u(t,e.name)||h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type)||u(t,e.body),[n.AsExpression]:(e,t,r)=>u(t,e.expression)||u(t,e.type),[n.SatisfiesExpression]:(e,t,r)=>u(t,e.expression)||u(t,e.type),[n.ConditionalExpression]:(e,t,r)=>u(t,e.condition)||u(t,e.questionToken)||u(t,e.whenTrue)||u(t,e.colonToken)||u(t,e.whenFalse),[n.PropertyAccessExpression]:(e,t,r)=>u(t,e.expression)||u(t,e.questionDotToken)||u(t,e.name),[n.ElementAccessExpression]:(e,t,r)=>u(t,e.expression)||u(t,e.questionDotToken)||u(t,e.argumentExpression),[n.CallExpression]:(e,t,r)=>u(t,e.expression)||u(t,e.questionDotToken)||h(t,r,e.typeArguments)||h(t,r,e.arguments),[n.NewExpression]:(e,t,r)=>u(t,e.expression)||h(t,r,e.typeArguments)||h(t,r,e.arguments),[n.MetaProperty]:(e,t,r)=>u(t,e.name),[n.NonNullExpression]:(e,t,r)=>u(t,e.expression),[n.SpreadElement]:(e,t,r)=>u(t,e.expression),[n.TemplateExpression]:(e,t,r)=>u(t,e.head)||h(t,r,e.templateSpans),[n.TemplateSpan]:(e,t,r)=>u(t,e.expression)||u(t,e.literal),[n.TaggedTemplateExpression]:(e,t,r)=>u(t,e.tag)||u(t,e.questionDotToken)||h(t,r,e.typeArguments)||u(t,e.template),[n.ParenthesizedExpression]:(e,t,r)=>u(t,e.expression),[n.ArrayLiteralExpression]:(e,t,r)=>h(t,r,e.elements),[n.ObjectLiteralExpression]:(e,t,r)=>h(t,r,e.properties),[n.SpreadAssignment]:(e,t,r)=>u(t,e.expression),[n.PropertyAssignment]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||u(t,e.postfixToken)||u(t,e.type)||u(t,e.initializer),[n.ShorthandPropertyAssignment]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||u(t,e.postfixToken)||u(t,e.type)||u(t,e.equalsToken)||u(t,e.objectAssignmentInitializer),[n.DeleteExpression]:(e,t,r)=>u(t,e.expression),[n.TypeOfExpression]:(e,t,r)=>u(t,e.expression),[n.VoidExpression]:(e,t,r)=>u(t,e.expression),[n.AwaitExpression]:(e,t,r)=>u(t,e.expression),[n.TypeAssertionExpression]:(e,t,r)=>u(t,e.type)||u(t,e.expression),[n.UnionType]:(e,t,r)=>h(t,r,e.types),[n.IntersectionType]:(e,t,r)=>h(t,r,e.types),[n.ConditionalType]:(e,t,r)=>u(t,e.checkType)||u(t,e.extendsType)||u(t,e.trueType)||u(t,e.falseType),[n.TypeOperator]:(e,t,r)=>u(t,e.type),[n.InferType]:(e,t,r)=>u(t,e.typeParameter),[n.ArrayType]:(e,t,r)=>u(t,e.elementType),[n.IndexedAccessType]:(e,t,r)=>u(t,e.objectType)||u(t,e.indexType),[n.TypeReference]:(e,t,r)=>u(t,e.typeName)||h(t,r,e.typeArguments),[n.ExpressionWithTypeArguments]:(e,t,r)=>u(t,e.expression)||h(t,r,e.typeArguments),[n.LiteralType]:(e,t,r)=>u(t,e.literal),[n.TypePredicate]:(e,t,r)=>u(t,e.assertsModifier)||u(t,e.parameterName)||u(t,e.type),[n.ImportAttribute]:(e,t,r)=>u(t,e.name)||u(t,e.value),[n.ImportAttributes]:(e,t,r)=>h(t,r,e.attributes),[n.TypeQuery]:(e,t,r)=>u(t,e.exprName)||h(t,r,e.typeArguments),[n.MappedType]:(e,t,r)=>u(t,e.readonlyToken)||u(t,e.typeParameter)||u(t,e.nameType)||u(t,e.questionToken)||u(t,e.type)||h(t,r,e.members),[n.TypeLiteral]:(e,t,r)=>h(t,r,e.members),[n.TupleType]:(e,t,r)=>h(t,r,e.elements),[n.NamedTupleMember]:(e,t,r)=>u(t,e.dotDotDotToken)||u(t,e.name)||u(t,e.questionToken)||u(t,e.type),[n.OptionalType]:(e,t,r)=>u(t,e.type),[n.RestType]:(e,t,r)=>u(t,e.type),[n.ParenthesizedType]:(e,t,r)=>u(t,e.type),[n.FunctionType]:(e,t,r)=>h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type),[n.ConstructorType]:(e,t,r)=>h(t,r,e.modifiers)||h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type),[n.TemplateLiteralType]:(e,t,r)=>u(t,e.head)||h(t,r,e.templateSpans),[n.TemplateLiteralTypeSpan]:(e,t,r)=>u(t,e.type)||u(t,e.literal),[n.SyntheticExpression]:(e,t,r)=>u(t,e.tupleNameSource),[n.PartiallyEmittedExpression]:(e,t,r)=>u(t,e.expression),[n.JsxElement]:(e,t,r)=>u(t,e.openingElement)||h(t,r,e.children)||u(t,e.closingElement),[n.JsxAttributes]:(e,t,r)=>h(t,r,e.properties),[n.JsxNamespacedName]:(e,t,r)=>u(t,e.namespace)||u(t,e.name),[n.JsxOpeningElement]:(e,t,r)=>u(t,e.tagName)||h(t,r,e.typeArguments)||u(t,e.attributes),[n.JsxSelfClosingElement]:(e,t,r)=>u(t,e.tagName)||h(t,r,e.typeArguments)||u(t,e.attributes),[n.JsxFragment]:(e,t,r)=>u(t,e.openingFragment)||h(t,r,e.children)||u(t,e.closingFragment),[n.JsxAttribute]:(e,t,r)=>u(t,e.name)||u(t,e.initializer),[n.JsxSpreadAttribute]:(e,t,r)=>u(t,e.expression),[n.JsxClosingElement]:(e,t,r)=>u(t,e.tagName),[n.JsxExpression]:(e,t,r)=>u(t,e.dotDotDotToken)||u(t,e.expression),[n.SyntaxList]:(e,t,r)=>h(t,r,e.children),[n.JSDoc]:(e,t,r)=>h(t,r,e.comment)||h(t,r,e.tags),[n.JSDocTypeExpression]:(e,t,r)=>u(t,e.type),[n.JSDocNonNullableType]:(e,t,r)=>u(t,e.type),[n.JSDocNullableType]:(e,t,r)=>u(t,e.type),[n.JSDocVariadicType]:(e,t,r)=>u(t,e.type),[n.JSDocOptionalType]:(e,t,r)=>u(t,e.type),[n.JSDocTypeTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.typeExpression)||h(t,r,e.comment),[n.JSDocUnknownTag]:(e,t,r)=>u(t,e.tagName)||h(t,r,e.comment),[n.JSDocTemplateTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.constraint)||h(t,r,e.typeParameters)||h(t,r,e.comment),[n.JSDocReturnTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.typeExpression)||h(t,r,e.comment),[n.JSDocPublicTag]:(e,t,r)=>u(t,e.tagName)||h(t,r,e.comment),[n.JSDocPrivateTag]:(e,t,r)=>u(t,e.tagName)||h(t,r,e.comment),[n.JSDocProtectedTag]:(e,t,r)=>u(t,e.tagName)||h(t,r,e.comment),[n.JSDocReadonlyTag]:(e,t,r)=>u(t,e.tagName)||h(t,r,e.comment),[n.JSDocOverrideTag]:(e,t,r)=>u(t,e.tagName)||h(t,r,e.comment),[n.JSDocDeprecatedTag]:(e,t,r)=>u(t,e.tagName)||h(t,r,e.comment),[n.JSDocSeeTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.nameExpression)||h(t,r,e.comment),[n.JSDocImplementsTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.className)||h(t,r,e.comment),[n.JSDocAugmentsTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.className)||h(t,r,e.comment),[n.JSDocSatisfiesTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.typeExpression)||h(t,r,e.comment),[n.JSDocThrowsTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.typeExpression)||h(t,r,e.comment),[n.JSDocThisTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.typeExpression)||h(t,r,e.comment),[n.JSDocImportTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.importClause)||u(t,e.moduleSpecifier)||u(t,e.attributes)||h(t,r,e.comment),[n.JSDocCallbackTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.typeExpression)||u(t,e.name)||h(t,r,e.comment),[n.JSDocOverloadTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.typeExpression)||h(t,r,e.comment),[n.JSDocTypedefTag]:(e,t,r)=>u(t,e.tagName)||u(t,e.typeExpression)||u(t,e.name)||h(t,r,e.comment),[n.JSDocSignature]:(e,t,r)=>h(t,r,e.typeParameters)||h(t,r,e.parameters)||u(t,e.type),[n.JSDocNameReference]:(e,t,r)=>u(t,e.name),[n.ModuleDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||u(t,e.body),[n.ImportEqualsDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||u(t,e.moduleReference),[n.ExportDeclaration]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.exportClause)||u(t,e.moduleSpecifier)||u(t,e.attributes),[n.ImportType]:(e,t,r)=>u(t,e.argument)||u(t,e.attributes)||u(t,e.qualifier)||h(t,r,e.typeArguments),[n.ImportClause]:(e,t,r)=>u(t,e.name)||u(t,e.namedBindings),[n.ImportSpecifier]:(e,t,r)=>u(t,e.propertyName)||u(t,e.name),[n.JSDocLink]:(e,t,r)=>u(t,e.name),[n.JSDocLinkPlain]:(e,t,r)=>u(t,e.name),[n.JSDocLinkCode]:(e,t,r)=>u(t,e.name),[n.TypeParameter]:(e,t,r)=>h(t,r,e.modifiers)||u(t,e.name)||u(t,e.constraint)||u(t,e.expression)||u(t,e.defaultType),[n.SyntheticReferenceExpression]:(e,t,r)=>u(t,e.expression)||u(t,e.thisArg),[n.JSDocTypeLiteral]:(e,t,r)=>h(t,r,e.jsdocPropertyTags),[n.ForInStatement]:(e,t,r)=>u(t,e.awaitModifier)||u(t,e.initializer)||u(t,e.expression)||u(t,e.statement),[n.ForOfStatement]:(e,t,r)=>u(t,e.awaitModifier)||u(t,e.initializer)||u(t,e.expression)||u(t,e.statement),[n.CaseClause]:(e,t,r)=>u(t,e.expression)||h(t,r,e.statements),[n.DefaultClause]:(e,t,r)=>u(t,e.expression)||h(t,r,e.statements),[n.ObjectBindingPattern]:(e,t,r)=>h(t,r,e.elements),[n.ArrayBindingPattern]:(e,t,r)=>h(t,r,e.elements),[n.JSDocParameterTag]:Xt,[n.JSDocPropertyTag]:Xt,[n.SourceFile]:(e,t,r)=>h(t,r,e.statements)||u(t,e.endOfFileToken)};function u(e,t){return t?e(t):void 0}function h(e,t,r){if(!r)return;if(t)return t(r);for(let i of r){let s=e(i);if(s)return s}return}function il(e,t){return new f(n.QualifiedName,{left:e,right:t})}function sl(e){return new f(n.ComputedPropertyName,{expression:e})}function ol(e){return new f(n.Decorator,{expression:e})}function al(e,t,r){return new f(n.IfStatement,{expression:e,thenStatement:t,elseStatement:r})}function cl(e,t){return new f(n.DoStatement,{statement:e,expression:t})}function ul(e,t){return new f(n.WhileStatement,{expression:e,statement:t})}function pl(e,t,r,i){return new f(n.ForStatement,{initializer:e,condition:t,incrementor:r,statement:i})}function ll(e){return new f(n.BreakStatement,{label:e})}function fl(e){return new f(n.ContinueStatement,{label:e})}function ml(e){return new f(n.ReturnStatement,{expression:e})}function hl(e,t){return new f(n.WithStatement,{expression:e,statement:t})}function dl(e,t){return new f(n.SwitchStatement,{expression:e,caseBlock:t})}function Tl(e){return new f(n.CaseBlock,{clauses:m(e)})}function gl(e){return new f(n.ThrowStatement,{expression:e})}function yl(e,t,r){return new f(n.TryStatement,{tryBlock:e,catchClause:t,finallyBlock:r})}function xl(e,t){return new f(n.CatchClause,{variableDeclaration:e,block:t})}function El(e,t){return new f(n.LabeledStatement,{label:e,statement:t})}function kl(e){return new f(n.ExpressionStatement,{expression:e})}function wl(e,t){return new f(n.Block,{statements:m(e),multiLine:t})}function _l(e,t){return new f(n.VariableStatement,{modifiers:e?m(e):void 0,declarationList:t})}function Dl(e,t,r,i){return new f(n.VariableDeclaration,{name:e,exclamationToken:t,type:r,initializer:i})}function Sl(e,t){let r=new f(n.VariableDeclarationList,{declarations:m(e)});return r.flags=t,r}function Pl(e,t,r,i,s,a){return new f(n.Parameter,{modifiers:e?m(e):void 0,dotDotDotToken:t,name:r,questionToken:i,type:s,initializer:a})}function Al(e,t,r,i){return new f(n.BindingElement,{dotDotDotToken:e,propertyName:t,name:r,initializer:i})}function bl(e){return new f(n.MissingDeclaration,{modifiers:e?m(e):void 0})}function Il(e,t,r,i,s,a,p){return new f(n.FunctionDeclaration,{modifiers:e?m(e):void 0,asteriskToken:t,name:r,typeParameters:i?m(i):void 0,parameters:m(s),type:a,body:p})}function Cl(e,t,r,i,s){return new f(n.ClassDeclaration,{modifiers:e?m(e):void 0,name:t,typeParameters:r?m(r):void 0,heritageClauses:i?m(i):void 0,members:m(s)})}function Nl(e,t,r,i,s){return new f(n.ClassExpression,{modifiers:e?m(e):void 0,name:t,typeParameters:r?m(r):void 0,heritageClauses:i?m(i):void 0,members:m(s)})}function Ll(e,t){return new f(n.HeritageClause,{token:e,types:m(t)})}function Jl(e,t,r,i,s){return new f(n.InterfaceDeclaration,{modifiers:e?m(e):void 0,name:t,typeParameters:r?m(r):void 0,heritageClauses:i?m(i):void 0,members:m(s)})}function Rl(e,t,r,i){return new f(n.TypeAliasDeclaration,{modifiers:e?m(e):void 0,name:t,typeParameters:r?m(r):void 0,type:i})}function Ol(e,t){return new f(n.EnumMember,{name:e,initializer:t})}function vl(e,t,r){return new f(n.EnumDeclaration,{modifiers:e?m(e):void 0,name:t,members:m(r)})}function Ml(e){return new f(n.ModuleBlock,{statements:m(e)})}function ql(e,t,r,i){return new f(n.ImportDeclaration,{modifiers:e?m(e):void 0,importClause:t,moduleSpecifier:r,attributes:i})}function Bl(e){return new f(n.ExternalModuleReference,{expression:e})}function Ul(e){return new f(n.NamespaceImport,{name:e})}function jl(e){return new f(n.NamedImports,{elements:m(e)})}function Vl(e,t=!1,r,i){return new f(n.ExportAssignment,{modifiers:e?m(e):void 0,isExportEquals:t,type:r,expression:i})}function Wl(e,t){return new f(n.NamespaceExportDeclaration,{modifiers:e?m(e):void 0,name:t})}function zl(e){return new f(n.NamespaceExport,{name:e})}function Hl(e){return new f(n.NamedExports,{elements:m(e)})}function Gl(e=!1,t,r){return new f(n.ExportSpecifier,{isTypeOnly:e,propertyName:t,name:r})}function $l(e,t,r){return new f(n.CallSignature,{typeParameters:e?m(e):void 0,parameters:m(t),type:r})}function Fl(e,t,r){return new f(n.ConstructSignature,{typeParameters:e?m(e):void 0,parameters:m(t),type:r})}function Ql(e,t,r,i,s){return new f(n.Constructor,{modifiers:e?m(e):void 0,typeParameters:t?m(t):void 0,parameters:m(r),type:i,body:s})}function Yl(e,t,r,i,s,a){return new f(n.GetAccessor,{modifiers:e?m(e):void 0,name:t,typeParameters:r?m(r):void 0,parameters:m(i),type:s,body:a})}function Xl(e,t,r,i,s,a){return new f(n.SetAccessor,{modifiers:e?m(e):void 0,name:t,typeParameters:r?m(r):void 0,parameters:m(i),type:s,body:a})}function Zl(e,t,r){return new f(n.IndexSignature,{modifiers:e?m(e):void 0,parameters:m(t),type:r})}function Kl(e,t,r,i,s,a){return new f(n.MethodSignature,{modifiers:e?m(e):void 0,name:t,postfixToken:r,typeParameters:i?m(i):void 0,parameters:m(s),type:a})}function ef(e,t,r,i,s,a,p,T){return new f(n.MethodDeclaration,{modifiers:e?m(e):void 0,asteriskToken:t,name:r,postfixToken:i,typeParameters:s?m(s):void 0,parameters:m(a),type:p,body:T})}function tf(e,t,r,i,s){return new f(n.PropertySignature,{modifiers:e?m(e):void 0,name:t,postfixToken:r,type:i,initializer:s})}function rf(e,t,r,i,s){return new f(n.PropertyDeclaration,{modifiers:e?m(e):void 0,name:t,postfixToken:r,type:i,initializer:s})}function nf(e,t){return new f(n.ClassStaticBlockDeclaration,{modifiers:e?m(e):void 0,body:t})}function sf(e,t,r,i,s){return new f(n.BinaryExpression,{modifiers:e?m(e):void 0,left:t,type:r,operatorToken:i,right:s})}function of(e,t){return new f(n.PrefixUnaryExpression,{operator:e,operand:t})}function af(e,t){return new f(n.PostfixUnaryExpression,{operand:e,operator:t})}function cf(e,t){return new f(n.YieldExpression,{asteriskToken:e,expression:t})}function uf(e,t,r,i,s,a){return new f(n.ArrowFunction,{modifiers:e?m(e):void 0,typeParameters:t?m(t):void 0,parameters:m(r),type:i,equalsGreaterThanToken:s,body:a})}function pf(e,t,r,i,s,a,p){return new f(n.FunctionExpression,{modifiers:e?m(e):void 0,asteriskToken:t,name:r,typeParameters:i?m(i):void 0,parameters:m(s),type:a,body:p})}function lf(e,t){return new f(n.AsExpression,{expression:e,type:t})}function ff(e,t){return new f(n.SatisfiesExpression,{expression:e,type:t})}function mf(e,t,r,i,s){return new f(n.ConditionalExpression,{condition:e,questionToken:t,whenTrue:r,colonToken:i,whenFalse:s})}function hf(e,t,r,i){let s=new f(n.PropertyAccessExpression,{expression:e,questionDotToken:t,name:r});return s.flags=i,s}function df(e,t,r,i){let s=new f(n.ElementAccessExpression,{expression:e,questionDotToken:t,argumentExpression:r});return s.flags=i,s}function Tf(e,t,r,i,s){let a=new f(n.CallExpression,{expression:e,questionDotToken:t,typeArguments:r?m(r):void 0,arguments:m(i)});return a.flags=s,a}function gf(e,t,r){return new f(n.NewExpression,{expression:e,typeArguments:t?m(t):void 0,arguments:r?m(r):void 0})}function yf(e,t){return new f(n.MetaProperty,{keywordToken:e,name:t})}function xf(e,t){let r=new f(n.NonNullExpression,{expression:e});return r.flags=t,r}function Ef(e){return new f(n.SpreadElement,{expression:e})}function kf(e,t){return new f(n.TemplateExpression,{head:e,templateSpans:m(t)})}function wf(e,t){return new f(n.TemplateSpan,{expression:e,literal:t})}function _f(e,t,r,i,s){let a=new f(n.TaggedTemplateExpression,{tag:e,questionDotToken:t,typeArguments:r?m(r):void 0,template:i});return a.flags=s,a}function Df(e){return new f(n.ParenthesizedExpression,{expression:e})}function Sf(e,t){return new f(n.ArrayLiteralExpression,{elements:m(e),multiLine:t})}function Pf(e,t){return new f(n.ObjectLiteralExpression,{properties:m(e),multiLine:t})}function Af(e){return new f(n.SpreadAssignment,{expression:e})}function bf(e,t,r,i,s){return new f(n.PropertyAssignment,{modifiers:e?m(e):void 0,name:t,postfixToken:r,type:i,initializer:s})}function If(e,t,r,i,s,a){return new f(n.ShorthandPropertyAssignment,{modifiers:e?m(e):void 0,name:t,postfixToken:r,type:i,equalsToken:s,objectAssignmentInitializer:a})}function Cf(e){return new f(n.DeleteExpression,{expression:e})}function Nf(e){return new f(n.TypeOfExpression,{expression:e})}function Lf(e){return new f(n.VoidExpression,{expression:e})}function Jf(e){return new f(n.AwaitExpression,{expression:e})}function Rf(e,t){return new f(n.TypeAssertionExpression,{type:e,expression:t})}function Of(e){return new f(n.UnionType,{types:m(e)})}function vf(e){return new f(n.IntersectionType,{types:m(e)})}function Mf(e,t,r,i){return new f(n.ConditionalType,{checkType:e,extendsType:t,trueType:r,falseType:i})}function qf(e,t){return new f(n.TypeOperator,{operator:e,type:t})}function Bf(e){return new f(n.InferType,{typeParameter:e})}function Uf(e){return new f(n.ArrayType,{elementType:e})}function jf(e,t){return new f(n.IndexedAccessType,{objectType:e,indexType:t})}function Vf(e,t){return new f(n.TypeReference,{typeName:e,typeArguments:t?m(t):void 0})}function Wf(e,t){return new f(n.ExpressionWithTypeArguments,{expression:e,typeArguments:t?m(t):void 0})}function zf(e){return new f(n.LiteralType,{literal:e})}function Hf(e,t,r){return new f(n.TypePredicate,{assertsModifier:e,parameterName:t,type:r})}function Gf(e,t){return new f(n.ImportAttribute,{name:e,value:t})}function $f(e,t,r){return new f(n.ImportAttributes,{token:e,attributes:m(t),multiLine:r})}function Ff(e,t){return new f(n.TypeQuery,{exprName:e,typeArguments:t?m(t):void 0})}function Qf(e,t,r,i,s,a){return new f(n.MappedType,{readonlyToken:e,typeParameter:t,nameType:r,questionToken:i,type:s,members:a?m(a):void 0})}function Yf(e){return new f(n.TypeLiteral,{members:m(e)})}function Xf(e){return new f(n.TupleType,{elements:m(e)})}function Zf(e,t,r,i){return new f(n.NamedTupleMember,{dotDotDotToken:e,name:t,questionToken:r,type:i})}function Kf(e){return new f(n.OptionalType,{type:e})}function em(e){return new f(n.RestType,{type:e})}function tm(e){return new f(n.ParenthesizedType,{type:e})}function rm(e,t,r){return new f(n.FunctionType,{typeParameters:e?m(e):void 0,parameters:m(t),type:r})}function nm(e,t,r,i){return new f(n.ConstructorType,{modifiers:e?m(e):void 0,typeParameters:t?m(t):void 0,parameters:m(r),type:i})}function im(e,t){return new f(n.TemplateLiteralType,{head:e,templateSpans:m(t)})}function sm(e,t){return new f(n.TemplateLiteralTypeSpan,{type:e,literal:t})}function om(e,t,r){return new f(n.SyntheticExpression,{type:e,isSpread:t,tupleNameSource:r})}function am(e){return new f(n.PartiallyEmittedExpression,{expression:e})}function cm(e,t,r){return new f(n.JsxElement,{openingElement:e,children:m(t),closingElement:r})}function um(e){return new f(n.JsxAttributes,{properties:m(e)})}function pm(e,t){return new f(n.JsxNamespacedName,{namespace:e,name:t})}function lm(e,t,r){return new f(n.JsxOpeningElement,{tagName:e,typeArguments:t?m(t):void 0,attributes:r})}function fm(e,t,r){return new f(n.JsxSelfClosingElement,{tagName:e,typeArguments:t?m(t):void 0,attributes:r})}function mm(e,t,r){return new f(n.JsxFragment,{openingFragment:e,children:m(t),closingFragment:r})}function hm(e,t){return new f(n.JsxAttribute,{name:e,initializer:t})}function dm(e){return new f(n.JsxSpreadAttribute,{expression:e})}function Tm(e){return new f(n.JsxClosingElement,{tagName:e})}function gm(e,t){return new f(n.JsxExpression,{dotDotDotToken:e,expression:t})}function ym(e){return new f(n.SyntaxList,{children:e})}function xm(e,t){return new f(n.JSDoc,{comment:m(e),tags:t?m(t):void 0})}function Em(e){return new f(n.JSDocTypeExpression,{type:e})}function km(e){return new f(n.JSDocNonNullableType,{type:e})}function wm(e){return new f(n.JSDocNullableType,{type:e})}function _m(e){return new f(n.JSDocVariadicType,{type:e})}function Dm(e){return new f(n.JSDocOptionalType,{type:e})}function Sm(e,t,r){return new f(n.JSDocTypeTag,{tagName:e,typeExpression:t,comment:r?m(r):void 0})}function Pm(e,t){return new f(n.JSDocUnknownTag,{tagName:e,comment:t?m(t):void 0})}function Am(e,t,r,i){return new f(n.JSDocTemplateTag,{tagName:e,constraint:t,typeParameters:m(r),comment:i?m(i):void 0})}function bm(e,t,r){return new f(n.JSDocReturnTag,{tagName:e,typeExpression:t,comment:r?m(r):void 0})}function Im(e,t){return new f(n.JSDocPublicTag,{tagName:e,comment:t?m(t):void 0})}function Cm(e,t){return new f(n.JSDocPrivateTag,{tagName:e,comment:t?m(t):void 0})}function Nm(e,t){return new f(n.JSDocProtectedTag,{tagName:e,comment:t?m(t):void 0})}function Lm(e,t){return new f(n.JSDocReadonlyTag,{tagName:e,comment:t?m(t):void 0})}function Jm(e,t){return new f(n.JSDocOverrideTag,{tagName:e,comment:t?m(t):void 0})}function Rm(e,t){return new f(n.JSDocDeprecatedTag,{tagName:e,comment:t?m(t):void 0})}function Om(e,t,r){return new f(n.JSDocSeeTag,{tagName:e,nameExpression:t,comment:r?m(r):void 0})}function vm(e,t,r){return new f(n.JSDocImplementsTag,{tagName:e,className:t,comment:r?m(r):void 0})}function Mm(e,t,r){return new f(n.JSDocAugmentsTag,{tagName:e,className:t,comment:r?m(r):void 0})}function qm(e,t,r){return new f(n.JSDocSatisfiesTag,{tagName:e,typeExpression:t,comment:r?m(r):void 0})}function Bm(e,t,r){return new f(n.JSDocThrowsTag,{tagName:e,typeExpression:t,comment:r?m(r):void 0})}function Um(e,t,r){return new f(n.JSDocThisTag,{tagName:e,typeExpression:t,comment:r?m(r):void 0})}function jm(e,t,r,i,s){return new f(n.JSDocImportTag,{tagName:e,importClause:t,moduleSpecifier:r,attributes:i,comment:s?m(s):void 0})}function Vm(e,t,r,i){return new f(n.JSDocCallbackTag,{tagName:e,typeExpression:t,name:r,comment:i?m(i):void 0})}function Wm(e,t,r){return new f(n.JSDocOverloadTag,{tagName:e,typeExpression:t,comment:r?m(r):void 0})}function zm(e,t,r,i){return new f(n.JSDocTypedefTag,{tagName:e,typeExpression:t,name:r,comment:i?m(i):void 0})}function Hm(e,t,r){return new f(n.JSDocSignature,{typeParameters:e?m(e):void 0,parameters:m(t),type:r})}function Gm(e){return new f(n.JSDocNameReference,{name:e})}function $m(e,t,r,i){return new f(n.ModuleDeclaration,{modifiers:e?m(e):void 0,keyword:t,name:r,body:i})}function Fm(e,t=!1,r,i){return new f(n.ImportEqualsDeclaration,{modifiers:e?m(e):void 0,isTypeOnly:t,name:r,moduleReference:i})}function Qm(e,t,r,i,s){return new f(n.ExportDeclaration,{modifiers:e?m(e):void 0,isTypeOnly:t,exportClause:r,moduleSpecifier:i,attributes:s})}function Ym(e=!1,t,r,i,s){return new f(n.ImportType,{isTypeOf:e,argument:t,attributes:r,qualifier:i,typeArguments:s?m(s):void 0})}function Xm(e,t,r){return new f(n.ImportClause,{phaseModifier:e,name:t,namedBindings:r})}function Zm(e=!1,t,r){return new f(n.ImportSpecifier,{isTypeOnly:e,propertyName:t,name:r})}function Km(e,t){return new f(n.JSDocLink,{name:e,text:t})}function eh(e,t){return new f(n.JSDocLinkPlain,{name:e,text:t})}function th(e,t){return new f(n.JSDocLinkCode,{name:e,text:t})}function rh(e,t,r,i,s){return new f(n.TypeParameter,{modifiers:e?m(e):void 0,name:t,constraint:r,expression:i,defaultType:s})}function nh(e,t){return new f(n.SyntheticReferenceExpression,{expression:e,thisArg:t})}function ih(e,t){return new f(n.JSDocTypeLiteral,{jsdocPropertyTags:e,isArrayType:t})}function sh(e,t,r,i){return new f(n.ForInStatement,{awaitModifier:e,initializer:t,expression:r,statement:i})}function oh(e,t,r,i){return new f(n.ForOfStatement,{awaitModifier:e,initializer:t,expression:r,statement:i})}function ah(e,t){return new f(n.CaseClause,{expression:e,statements:m(t)})}function ch(e,t){return new f(n.DefaultClause,{expression:e,statements:m(t)})}function uh(e){return new f(n.ObjectBindingPattern,{elements:m(e)})}function ph(e){return new f(n.ArrayBindingPattern,{elements:m(e)})}function lh(e,t,r,i,s,a){return new f(n.JSDocParameterTag,{tagName:e,name:t,isBracketed:r,typeExpression:i,isNameFirst:s,comment:a?m(a):void 0})}function fh(e,t,r,i,s,a){return new f(n.JSDocPropertyTag,{tagName:e,name:t,isBracketed:r,typeExpression:i,isNameFirst:s,comment:a?m(a):void 0})}function Ai(e,t,r){return e.left!==t||e.right!==r?il(t,r):e}function bi(e,t){return e.expression!==t?sl(t):e}function Ii(e,t){return e.expression!==t?ol(t):e}function Ci(e,t,r,i){return e.expression!==t||e.thenStatement!==r||e.elseStatement!==i?al(t,r,i):e}function Ni(e,t,r){return e.statement!==t||e.expression!==r?cl(t,r):e}function Li(e,t,r){return e.expression!==t||e.statement!==r?ul(t,r):e}function Ji(e,t,r,i,s){return e.initializer!==t||e.condition!==r||e.incrementor!==i||e.statement!==s?pl(t,r,i,s):e}function Ri(e,t){return e.label!==t?ll(t):e}function Oi(e,t){return e.label!==t?fl(t):e}function vi(e,t){return e.expression!==t?ml(t):e}function Mi(e,t,r){return e.expression!==t||e.statement!==r?hl(t,r):e}function qi(e,t,r){return e.expression!==t||e.caseBlock!==r?dl(t,r):e}function Bi(e,t){return e.clauses!==t?Tl(t):e}function Ui(e,t){return e.expression!==t?gl(t):e}function ji(e,t,r,i){return e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==i?yl(t,r,i):e}function Vi(e,t,r){return e.variableDeclaration!==t||e.block!==r?xl(t,r):e}function Wi(e,t,r){return e.label!==t||e.statement!==r?El(t,r):e}function zi(e,t){return e.expression!==t?kl(t):e}function Hi(e,t){return e.statements!==t?wl(t,e.multiLine):e}function Gi(e,t,r){return e.modifiers!==t||e.declarationList!==r?_l(t,r):e}function $i(e,t,r,i,s){return e.name!==t||e.exclamationToken!==r||e.type!==i||e.initializer!==s?Dl(t,r,i,s):e}function Fi(e,t){return e.declarations!==t?Sl(t,e.flags):e}function Qi(e,t,r,i,s,a,p){return e.modifiers!==t||e.dotDotDotToken!==r||e.name!==i||e.questionToken!==s||e.type!==a||e.initializer!==p?Pl(t,r,i,s,a,p):e}function Yi(e,t,r,i,s){return e.dotDotDotToken!==t||e.propertyName!==r||e.name!==i||e.initializer!==s?Al(t,r,i,s):e}function Xi(e,t){return e.modifiers!==t?bl(t):e}function Zi(e,t,r,i,s,a,p,T){return e.modifiers!==t||e.asteriskToken!==r||e.name!==i||e.typeParameters!==s||e.parameters!==a||e.type!==p||e.body!==T?Il(t,r,i,s,a,p,T):e}function Ki(e,t,r,i,s,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.heritageClauses!==s||e.members!==a?Cl(t,r,i,s,a):e}function es(e,t,r,i,s,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.heritageClauses!==s||e.members!==a?Nl(t,r,i,s,a):e}function ts(e,t){return e.types!==t?Ll(e.token,t):e}function rs(e,t,r,i,s,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.heritageClauses!==s||e.members!==a?Jl(t,r,i,s,a):e}function ns(e,t,r,i,s){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.type!==s?Rl(t,r,i,s):e}function is(e,t,r){return e.name!==t||e.initializer!==r?Ol(t,r):e}function ss(e,t,r,i){return e.modifiers!==t||e.name!==r||e.members!==i?vl(t,r,i):e}function os(e,t){return e.statements!==t?Ml(t):e}function as(e,t,r,i,s){return e.modifiers!==t||e.importClause!==r||e.moduleSpecifier!==i||e.attributes!==s?ql(t,r,i,s):e}function cs(e,t){return e.expression!==t?Bl(t):e}function us(e,t){return e.name!==t?Ul(t):e}function ps(e,t){return e.elements!==t?jl(t):e}function ls(e,t,r,i){return e.modifiers!==t||e.type!==r||e.expression!==i?Vl(t,e.isExportEquals,r,i):e}function fs(e,t,r){return e.modifiers!==t||e.name!==r?Wl(t,r):e}function ms(e,t){return e.name!==t?zl(t):e}function hs(e,t){return e.elements!==t?Hl(t):e}function ds(e,t,r){return e.propertyName!==t||e.name!==r?Gl(e.isTypeOnly,t,r):e}function Ts(e,t,r,i){return e.typeParameters!==t||e.parameters!==r||e.type!==i?$l(t,r,i):e}function gs(e,t,r,i){return e.typeParameters!==t||e.parameters!==r||e.type!==i?Fl(t,r,i):e}function ys(e,t,r,i,s,a){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==i||e.type!==s||e.body!==a?Ql(t,r,i,s,a):e}function xs(e,t,r,i,s,a,p){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.parameters!==s||e.type!==a||e.body!==p?Yl(t,r,i,s,a,p):e}function Es(e,t,r,i,s,a,p){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.parameters!==s||e.type!==a||e.body!==p?Xl(t,r,i,s,a,p):e}function ks(e,t,r,i){return e.modifiers!==t||e.parameters!==r||e.type!==i?Zl(t,r,i):e}function ws(e,t,r,i,s,a,p){return e.modifiers!==t||e.name!==r||e.postfixToken!==i||e.typeParameters!==s||e.parameters!==a||e.type!==p?Kl(t,r,i,s,a,p):e}function _s(e,t,r,i,s,a,p,T,E){return e.modifiers!==t||e.asteriskToken!==r||e.name!==i||e.postfixToken!==s||e.typeParameters!==a||e.parameters!==p||e.type!==T||e.body!==E?ef(t,r,i,s,a,p,T,E):e}function Ds(e,t,r,i,s,a){return e.modifiers!==t||e.name!==r||e.postfixToken!==i||e.type!==s||e.initializer!==a?tf(t,r,i,s,a):e}function Ss(e,t,r,i,s,a){return e.modifiers!==t||e.name!==r||e.postfixToken!==i||e.type!==s||e.initializer!==a?rf(t,r,i,s,a):e}function Ps(e,t,r){return e.modifiers!==t||e.body!==r?nf(t,r):e}function As(e,t,r,i,s,a){return e.modifiers!==t||e.left!==r||e.type!==i||e.operatorToken!==s||e.right!==a?sf(t,r,i,s,a):e}function bs(e,t){return e.operand!==t?of(e.operator,t):e}function Is(e,t){return e.operand!==t?af(t,e.operator):e}function Cs(e,t,r){return e.asteriskToken!==t||e.expression!==r?cf(t,r):e}function Ns(e,t,r,i,s,a,p){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==i||e.type!==s||e.equalsGreaterThanToken!==a||e.body!==p?uf(t,r,i,s,a,p):e}function Ls(e,t,r,i,s,a,p,T){return e.modifiers!==t||e.asteriskToken!==r||e.name!==i||e.typeParameters!==s||e.parameters!==a||e.type!==p||e.body!==T?pf(t,r,i,s,a,p,T):e}function Js(e,t,r){return e.expression!==t||e.type!==r?lf(t,r):e}function Rs(e,t,r){return e.expression!==t||e.type!==r?ff(t,r):e}function Os(e,t,r,i,s,a){return e.condition!==t||e.questionToken!==r||e.whenTrue!==i||e.colonToken!==s||e.whenFalse!==a?mf(t,r,i,s,a):e}function vs(e,t,r,i){return e.expression!==t||e.questionDotToken!==r||e.name!==i?hf(t,r,i,e.flags):e}function Ms(e,t,r,i){return e.expression!==t||e.questionDotToken!==r||e.argumentExpression!==i?df(t,r,i,e.flags):e}function qs(e,t,r,i,s){return e.expression!==t||e.questionDotToken!==r||e.typeArguments!==i||e.arguments!==s?Tf(t,r,i,s,e.flags):e}function Bs(e,t,r,i){return e.expression!==t||e.typeArguments!==r||e.arguments!==i?gf(t,r,i):e}function Us(e,t){return e.name!==t?yf(e.keywordToken,t):e}function js(e,t){return e.expression!==t?xf(t,e.flags):e}function Vs(e,t){return e.expression!==t?Ef(t):e}function Ws(e,t,r){return e.head!==t||e.templateSpans!==r?kf(t,r):e}function zs(e,t,r){return e.expression!==t||e.literal!==r?wf(t,r):e}function Hs(e,t,r,i,s){return e.tag!==t||e.questionDotToken!==r||e.typeArguments!==i||e.template!==s?_f(t,r,i,s,e.flags):e}function Gs(e,t){return e.expression!==t?Df(t):e}function $s(e,t){return e.elements!==t?Sf(t,e.multiLine):e}function Fs(e,t){return e.properties!==t?Pf(t,e.multiLine):e}function Qs(e,t){return e.expression!==t?Af(t):e}function Ys(e,t,r,i,s,a){return e.modifiers!==t||e.name!==r||e.postfixToken!==i||e.type!==s||e.initializer!==a?bf(t,r,i,s,a):e}function Xs(e,t,r,i,s,a,p){return e.modifiers!==t||e.name!==r||e.postfixToken!==i||e.type!==s||e.equalsToken!==a||e.objectAssignmentInitializer!==p?If(t,r,i,s,a,p):e}function Zs(e,t){return e.expression!==t?Cf(t):e}function Ks(e,t){return e.expression!==t?Nf(t):e}function eo(e,t){return e.expression!==t?Lf(t):e}function to(e,t){return e.expression!==t?Jf(t):e}function ro(e,t,r){return e.type!==t||e.expression!==r?Rf(t,r):e}function no(e,t){return e.types!==t?Of(t):e}function io(e,t){return e.types!==t?vf(t):e}function so(e,t,r,i,s){return e.checkType!==t||e.extendsType!==r||e.trueType!==i||e.falseType!==s?Mf(t,r,i,s):e}function oo(e,t){return e.type!==t?qf(e.operator,t):e}function ao(e,t){return e.typeParameter!==t?Bf(t):e}function co(e,t){return e.elementType!==t?Uf(t):e}function uo(e,t,r){return e.objectType!==t||e.indexType!==r?jf(t,r):e}function po(e,t,r){return e.typeName!==t||e.typeArguments!==r?Vf(t,r):e}function lo(e,t,r){return e.expression!==t||e.typeArguments!==r?Wf(t,r):e}function fo(e,t){return e.literal!==t?zf(t):e}function mo(e,t,r,i){return e.assertsModifier!==t||e.parameterName!==r||e.type!==i?Hf(t,r,i):e}function ho(e,t,r){return e.name!==t||e.value!==r?Gf(t,r):e}function To(e,t){return e.attributes!==t?$f(e.token,t,e.multiLine):e}function go(e,t,r){return e.exprName!==t||e.typeArguments!==r?Ff(t,r):e}function yo(e,t,r,i,s,a,p){return e.readonlyToken!==t||e.typeParameter!==r||e.nameType!==i||e.questionToken!==s||e.type!==a||e.members!==p?Qf(t,r,i,s,a,p):e}function xo(e,t){return e.members!==t?Yf(t):e}function Eo(e,t){return e.elements!==t?Xf(t):e}function ko(e,t,r,i,s){return e.dotDotDotToken!==t||e.name!==r||e.questionToken!==i||e.type!==s?Zf(t,r,i,s):e}function wo(e,t){return e.type!==t?Kf(t):e}function _o(e,t){return e.type!==t?em(t):e}function Do(e,t){return e.type!==t?tm(t):e}function So(e,t,r,i){return e.typeParameters!==t||e.parameters!==r||e.type!==i?rm(t,r,i):e}function Po(e,t,r,i,s){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==i||e.type!==s?nm(t,r,i,s):e}function Ao(e,t,r){return e.head!==t||e.templateSpans!==r?im(t,r):e}function bo(e,t,r){return e.type!==t||e.literal!==r?sm(t,r):e}function Io(e,t){return e.tupleNameSource!==t?om(e.type,e.isSpread,t):e}function Co(e,t){return e.expression!==t?am(t):e}function No(e,t,r,i){return e.openingElement!==t||e.children!==r||e.closingElement!==i?cm(t,r,i):e}function Lo(e,t){return e.properties!==t?um(t):e}function Jo(e,t,r){return e.namespace!==t||e.name!==r?pm(t,r):e}function Ro(e,t,r,i){return e.tagName!==t||e.typeArguments!==r||e.attributes!==i?lm(t,r,i):e}function Oo(e,t,r,i){return e.tagName!==t||e.typeArguments!==r||e.attributes!==i?fm(t,r,i):e}function vo(e,t,r,i){return e.openingFragment!==t||e.children!==r||e.closingFragment!==i?mm(t,r,i):e}function Mo(e,t,r){return e.name!==t||e.initializer!==r?hm(t,r):e}function qo(e,t){return e.expression!==t?dm(t):e}function Bo(e,t){return e.tagName!==t?Tm(t):e}function Uo(e,t,r){return e.dotDotDotToken!==t||e.expression!==r?gm(t,r):e}function jo(e,t){return e.children!==t?ym(t):e}function Vo(e,t,r){return e.comment!==t||e.tags!==r?xm(t,r):e}function Wo(e,t){return e.type!==t?Em(t):e}function zo(e,t){return e.type!==t?km(t):e}function Ho(e,t){return e.type!==t?wm(t):e}function Go(e,t){return e.type!==t?_m(t):e}function $o(e,t){return e.type!==t?Dm(t):e}function Fo(e,t,r,i){return e.tagName!==t||e.typeExpression!==r||e.comment!==i?Sm(t,r,i):e}function Qo(e,t,r){return e.tagName!==t||e.comment!==r?Pm(t,r):e}function Yo(e,t,r,i,s){return e.tagName!==t||e.constraint!==r||e.typeParameters!==i||e.comment!==s?Am(t,r,i,s):e}function Xo(e,t,r,i){return e.tagName!==t||e.typeExpression!==r||e.comment!==i?bm(t,r,i):e}function Zo(e,t,r){return e.tagName!==t||e.comment!==r?Im(t,r):e}function Ko(e,t,r){return e.tagName!==t||e.comment!==r?Cm(t,r):e}function ea(e,t,r){return e.tagName!==t||e.comment!==r?Nm(t,r):e}function ta(e,t,r){return e.tagName!==t||e.comment!==r?Lm(t,r):e}function ra(e,t,r){return e.tagName!==t||e.comment!==r?Jm(t,r):e}function na(e,t,r){return e.tagName!==t||e.comment!==r?Rm(t,r):e}function ia(e,t,r,i){return e.tagName!==t||e.nameExpression!==r||e.comment!==i?Om(t,r,i):e}function sa(e,t,r,i){return e.tagName!==t||e.className!==r||e.comment!==i?vm(t,r,i):e}function oa(e,t,r,i){return e.tagName!==t||e.className!==r||e.comment!==i?Mm(t,r,i):e}function aa(e,t,r,i){return e.tagName!==t||e.typeExpression!==r||e.comment!==i?qm(t,r,i):e}function ca(e,t,r,i){return e.tagName!==t||e.typeExpression!==r||e.comment!==i?Bm(t,r,i):e}function ua(e,t,r,i){return e.tagName!==t||e.typeExpression!==r||e.comment!==i?Um(t,r,i):e}function pa(e,t,r,i,s,a){return e.tagName!==t||e.importClause!==r||e.moduleSpecifier!==i||e.attributes!==s||e.comment!==a?jm(t,r,i,s,a):e}function la(e,t,r,i,s){return e.tagName!==t||e.typeExpression!==r||e.name!==i||e.comment!==s?Vm(t,r,i,s):e}function fa(e,t,r,i){return e.tagName!==t||e.typeExpression!==r||e.comment!==i?Wm(t,r,i):e}function ma(e,t,r,i,s){return e.tagName!==t||e.typeExpression!==r||e.name!==i||e.comment!==s?zm(t,r,i,s):e}function ha(e,t,r,i){return e.typeParameters!==t||e.parameters!==r||e.type!==i?Hm(t,r,i):e}function da(e,t){return e.name!==t?Gm(t):e}function Ta(e,t,r,i){return e.modifiers!==t||e.name!==r||e.body!==i?$m(t,e.keyword,r,i):e}function ga(e,t,r,i){return e.modifiers!==t||e.name!==r||e.moduleReference!==i?Fm(t,e.isTypeOnly,r,i):e}function ya(e,t,r,i,s){return e.modifiers!==t||e.exportClause!==r||e.moduleSpecifier!==i||e.attributes!==s?Qm(t,e.isTypeOnly,r,i,s):e}function xa(e,t,r,i,s){return e.argument!==t||e.attributes!==r||e.qualifier!==i||e.typeArguments!==s?Ym(e.isTypeOf,t,r,i,s):e}function Ea(e,t,r){return e.name!==t||e.namedBindings!==r?Xm(e.phaseModifier,t,r):e}function ka(e,t,r){return e.propertyName!==t||e.name!==r?Zm(e.isTypeOnly,t,r):e}function wa(e,t){return e.name!==t?Km(t,e.text):e}function _a(e,t){return e.name!==t?eh(t,e.text):e}function Da(e,t){return e.name!==t?th(t,e.text):e}function Sa(e,t,r,i,s,a){return e.modifiers!==t||e.name!==r||e.constraint!==i||e.expression!==s||e.defaultType!==a?rh(t,r,i,s,a):e}function Pa(e,t,r){return e.expression!==t||e.thisArg!==r?nh(t,r):e}function Aa(e,t){return e.jsdocPropertyTags!==t?ih(t,e.isArrayType):e}function ba(e,t,r,i,s){return e.awaitModifier!==t||e.initializer!==r||e.expression!==i||e.statement!==s?sh(t,r,i,s):e}function Ia(e,t,r,i,s){return e.awaitModifier!==t||e.initializer!==r||e.expression!==i||e.statement!==s?oh(t,r,i,s):e}function Ca(e,t,r){return e.expression!==t||e.statements!==r?ah(t,r):e}function Na(e,t,r){return e.expression!==t||e.statements!==r?ch(t,r):e}function La(e,t){return e.elements!==t?uh(t):e}function Ja(e,t){return e.elements!==t?ph(t):e}function Oa(e,t,r,i,s){return e.tagName!==t||e.name!==r||e.typeExpression!==i||e.comment!==s?lh(t,r,e.isBracketed,i,e.isNameFirst,s):e}function va(e,t,r,i,s){return e.tagName!==t||e.name!==r||e.typeExpression!==i||e.comment!==s?fh(t,r,e.isBracketed,i,e.isNameFirst,s):e}function mh(e,t,r){return new f(n.SourceFile,{...Qn(e),statements:m(t),endOfFileToken:r})}function Ra(e,t,r){return e.statements!==t||e.endOfFileToken!==r?mh(e,t,r):e}var Ma={abstract:n.AbstractKeyword,accessor:n.AccessorKeyword,any:n.AnyKeyword,as:n.AsKeyword,asserts:n.AssertsKeyword,assert:n.AssertKeyword,bigint:n.BigIntKeyword,boolean:n.BooleanKeyword,break:n.BreakKeyword,case:n.CaseKeyword,catch:n.CatchKeyword,class:n.ClassKeyword,continue:n.ContinueKeyword,const:n.ConstKeyword,["constructor"]:n.ConstructorKeyword,debugger:n.DebuggerKeyword,declare:n.DeclareKeyword,default:n.DefaultKeyword,defer:n.DeferKeyword,delete:n.DeleteKeyword,do:n.DoKeyword,else:n.ElseKeyword,enum:n.EnumKeyword,export:n.ExportKeyword,extends:n.ExtendsKeyword,false:n.FalseKeyword,finally:n.FinallyKeyword,for:n.ForKeyword,from:n.FromKeyword,function:n.FunctionKeyword,get:n.GetKeyword,if:n.IfKeyword,implements:n.ImplementsKeyword,import:n.ImportKeyword,in:n.InKeyword,infer:n.InferKeyword,instanceof:n.InstanceOfKeyword,interface:n.InterfaceKeyword,intrinsic:n.IntrinsicKeyword,is:n.IsKeyword,keyof:n.KeyOfKeyword,let:n.LetKeyword,module:n.ModuleKeyword,namespace:n.NamespaceKeyword,never:n.NeverKeyword,new:n.NewKeyword,null:n.NullKeyword,number:n.NumberKeyword,object:n.ObjectKeyword,package:n.PackageKeyword,private:n.PrivateKeyword,protected:n.ProtectedKeyword,public:n.PublicKeyword,override:n.OverrideKeyword,out:n.OutKeyword,readonly:n.ReadonlyKeyword,require:n.RequireKeyword,global:n.GlobalKeyword,return:n.ReturnKeyword,satisfies:n.SatisfiesKeyword,set:n.SetKeyword,static:n.StaticKeyword,string:n.StringKeyword,super:n.SuperKeyword,switch:n.SwitchKeyword,symbol:n.SymbolKeyword,this:n.ThisKeyword,throw:n.ThrowKeyword,true:n.TrueKeyword,try:n.TryKeyword,type:n.TypeKeyword,typeof:n.TypeOfKeyword,undefined:n.UndefinedKeyword,unique:n.UniqueKeyword,unknown:n.UnknownKeyword,using:n.UsingKeyword,var:n.VarKeyword,void:n.VoidKeyword,while:n.WhileKeyword,with:n.WithKeyword,yield:n.YieldKeyword,async:n.AsyncKeyword,await:n.AwaitKeyword,of:n.OfKeyword},Xg=new Map(Object.entries(Ma)),hh=new Map(Object.entries({...Ma,"{":n.OpenBraceToken,"}":n.CloseBraceToken,"(":n.OpenParenToken,")":n.CloseParenToken,"[":n.OpenBracketToken,"]":n.CloseBracketToken,".":n.DotToken,"...":n.DotDotDotToken,";":n.SemicolonToken,",":n.CommaToken,"<":n.LessThanToken,">":n.GreaterThanToken,"<=":n.LessThanEqualsToken,">=":n.GreaterThanEqualsToken,"==":n.EqualsEqualsToken,"!=":n.ExclamationEqualsToken,"===":n.EqualsEqualsEqualsToken,"!==":n.ExclamationEqualsEqualsToken,"=>":n.EqualsGreaterThanToken,"+":n.PlusToken,"-":n.MinusToken,"**":n.AsteriskAsteriskToken,"*":n.AsteriskToken,"/":n.SlashToken,"%":n.PercentToken,"++":n.PlusPlusToken,"--":n.MinusMinusToken,"<<":n.LessThanLessThanToken,"</":n.LessThanSlashToken,">>":n.GreaterThanGreaterThanToken,">>>":n.GreaterThanGreaterThanGreaterThanToken,"&":n.AmpersandToken,"|":n.BarToken,"^":n.CaretToken,"!":n.ExclamationToken,"~":n.TildeToken,"&&":n.AmpersandAmpersandToken,"||":n.BarBarToken,"?":n.QuestionToken,"??":n.QuestionQuestionToken,"?.":n.QuestionDotToken,":":n.ColonToken,"=":n.EqualsToken,"+=":n.PlusEqualsToken,"-=":n.MinusEqualsToken,"*=":n.AsteriskEqualsToken,"**=":n.AsteriskAsteriskEqualsToken,"/=":n.SlashEqualsToken,"%=":n.PercentEqualsToken,"<<=":n.LessThanLessThanEqualsToken,">>=":n.GreaterThanGreaterThanEqualsToken,">>>=":n.GreaterThanGreaterThanGreaterThanEqualsToken,"&=":n.AmpersandEqualsToken,"|=":n.BarEqualsToken,"^=":n.CaretEqualsToken,"||=":n.BarBarEqualsToken,"&&=":n.AmpersandAmpersandEqualsToken,"??=":n.QuestionQuestionEqualsToken,"@":n.AtToken,"#":n.HashToken,"`":n.BacktickToken})),Zg=new Map([[k.d,de.HasIndices],[k.g,de.Global],[k.i,de.IgnoreCase],[k.m,de.Multiline],[k.s,de.DotAll],[k.u,de.Unicode],[k.v,de.UnicodeSets],[k.y,de.Sticky]]);function dh(e){let t=[];return e.forEach((r,i)=>{t[r]=i}),t}var Kg=dh(hh);function qa(e){let t=[],r=0,i=0;while(r<e.length){let s=e.charCodeAt(r);switch(r++,s){case k.carriageReturn:if(e.charCodeAt(r)===k.lineFeed)r++;case k.lineFeed:t.push(i),i=r;break;default:if(s>k.maxAsciiCharacter&&ct(s))t.push(i),i=r;break}}return t.push(i),t}function Th(e){return gh(e)||ct(e)}function gh(e){return e===k.space||e===k.tab||e===k.verticalTab||e===k.formFeed||e===k.nonBreakingSpace||e===k.nextLine||e===k.ogham||e>=k.enQuad&&e<=k.zeroWidthSpace||e===k.narrowNoBreakSpace||e===k.mathematicalSpace||e===k.ideographicSpace||e===k.byteOrderMark}function ct(e){return e===k.lineFeed||e===k.carriageReturn||e===k.lineSeparator||e===k.paragraphSeparator}function Vr(e,t,r,i,s){if(t<0)return t;let a=!1;while(!0){let p=e.charCodeAt(t);switch(p){case k.carriageReturn:if(e.charCodeAt(t+1)===k.lineFeed)t++;case k.lineFeed:if(t++,r)return t;a=!!s;continue;case k.tab:case k.verticalTab:case k.formFeed:case k.space:t++;continue;case k.slash:if(i)break;if(e.charCodeAt(t+1)===k.slash){t+=2;while(t<e.length){if(ct(e.charCodeAt(t)))break;t++}a=!1;continue}if(e.charCodeAt(t+1)===k.asterisk){t+=2;while(t<e.length){if(e.charCodeAt(t)===k.asterisk&&e.charCodeAt(t+1)===k.slash){t+=2;break}t++}a=!1;continue}break;case k.lessThan:case k.bar:case k.equals:case k.greaterThan:if(Ba(e,t)){t=yh(e,t),a=!1;continue}break;case k.hash:if(t===0&&xh(e,t)){t=Eh(e,t);continue}break;case k.asterisk:if(a){t++,a=!1;continue}break;default:if(p>k.maxAsciiCharacter&&Th(p)){t++;continue}break}return t}}function Ba(e,t){if(t>=e.length)return!1;let r=e.charCodeAt(t);if(t===0||ct(e.charCodeAt(t-1))){if(r===k.lessThan||r===k.greaterThan||r===k.equals){if(t+6<e.length&&e.charCodeAt(t+1)===r&&e.charCodeAt(t+2)===r&&e.charCodeAt(t+3)===r&&e.charCodeAt(t+4)===r&&e.charCodeAt(t+5)===r&&e.charCodeAt(t+6)===r)return r===k.equals||e.charCodeAt(t+7)===k.space}if(r===k.bar&&t+6<e.length&&e.charCodeAt(t+1)===r&&e.charCodeAt(t+2)===r&&e.charCodeAt(t+3)===r&&e.charCodeAt(t+4)===r&&e.charCodeAt(t+5)===r&&e.charCodeAt(t+6)===r)return!0}return!1}function yh(e,t){let r=e.charCodeAt(t),i=e.length;if(r===k.lessThan||r===k.greaterThan)while(t<i&&!ct(e.charCodeAt(t)))t++;else{t+=7;while(t<i){let s=e.charCodeAt(t);if((s===k.equals||s===k.greaterThan)&&Ba(e,t))break;t++}}return t}function xh(e,t){return t===0&&e.charCodeAt(0)===k.hash&&e.charCodeAt(1)===k.exclamation}function Eh(e,t){t+=2;while(t<e.length){if(ct(e.charCodeAt(t)))break;t++}return t}function Ct(e,t,r){if(wh(e))return e.pos;if(di(e.kind)||e.kind===n.JsxText)return Vr(t.text,e.pos,!1,!0);if(r&&e.jsDoc&&e.jsDoc.length>0)return Ct(e.jsDoc[0],t,!1);return Vr(t.text,e.pos,!1,!1,!!(e.flags&Pe.JSDoc))}function wh(e){return e.pos===e.end&&e.pos>=0&&e.kind!==n.EndOfFile}var $e={[n.QualifiedName]:["left","right"],[n.ComputedPropertyName]:["expression"],[n.Decorator]:["expression"],[n.IfStatement]:["expression","thenStatement","elseStatement"],[n.DoStatement]:["statement","expression"],[n.WhileStatement]:["expression","statement"],[n.ForStatement]:["initializer","condition","incrementor","statement"],[n.ForInStatement]:["awaitModifier","initializer","expression","statement"],[n.ForOfStatement]:["awaitModifier","initializer","expression","statement"],[n.BreakStatement]:["label"],[n.ContinueStatement]:["label"],[n.ReturnStatement]:["expression"],[n.WithStatement]:["expression","statement"],[n.SwitchStatement]:["expression","caseBlock"],[n.CaseBlock]:["clauses"],[n.CaseClause]:["expression","statements"],[n.DefaultClause]:["expression","statements"],[n.ThrowStatement]:["expression"],[n.TryStatement]:["tryBlock","catchClause","finallyBlock"],[n.CatchClause]:["variableDeclaration","block"],[n.LabeledStatement]:["label","statement"],[n.ExpressionStatement]:["expression"],[n.Block]:["statements"],[n.VariableStatement]:["modifiers","declarationList"],[n.VariableDeclaration]:["name","exclamationToken","type","initializer"],[n.VariableDeclarationList]:["declarations"],[n.ObjectBindingPattern]:["elements"],[n.ArrayBindingPattern]:["elements"],[n.Parameter]:["modifiers","dotDotDotToken","name","questionToken","type","initializer"],[n.BindingElement]:["dotDotDotToken","propertyName","name","initializer"],[n.MissingDeclaration]:["modifiers"],[n.FunctionDeclaration]:["modifiers","asteriskToken","name","typeParameters","parameters","type","body"],[n.ClassDeclaration]:["modifiers","name","typeParameters","heritageClauses","members"],[n.ClassExpression]:["modifiers","name","typeParameters","heritageClauses","members"],[n.HeritageClause]:["types"],[n.InterfaceDeclaration]:["modifiers","name","typeParameters","heritageClauses","members"],[n.TypeAliasDeclaration]:["modifiers","name","typeParameters","type"],[n.JSTypeAliasDeclaration]:["modifiers","name","typeParameters","type"],[n.EnumMember]:["name","initializer"],[n.EnumDeclaration]:["modifiers","name","members"],[n.ModuleBlock]:["statements"],[n.ImportDeclaration]:["modifiers","importClause","moduleSpecifier","attributes"],[n.JSImportDeclaration]:["modifiers","importClause","moduleSpecifier","attributes"],[n.ExternalModuleReference]:["expression"],[n.NamespaceImport]:["name"],[n.NamedImports]:["elements"],[n.ExportAssignment]:["modifiers","type","expression"],[n.NamespaceExportDeclaration]:["modifiers","name"],[n.NamespaceExport]:["name"],[n.NamedExports]:["elements"],[n.ExportSpecifier]:["propertyName","name"],[n.CallSignature]:["typeParameters","parameters","type"],[n.ConstructSignature]:["typeParameters","parameters","type"],[n.Constructor]:["modifiers","typeParameters","parameters","type","body"],[n.GetAccessor]:["modifiers","name","typeParameters","parameters","type","body"],[n.SetAccessor]:["modifiers","name","typeParameters","parameters","type","body"],[n.IndexSignature]:["modifiers","parameters","type"],[n.MethodSignature]:["modifiers","name","postfixToken","typeParameters","parameters","type"],[n.MethodDeclaration]:["modifiers","asteriskToken","name","postfixToken","typeParameters","parameters","type","body"],[n.PropertySignature]:["modifiers","name","postfixToken","type","initializer"],[n.PropertyDeclaration]:["modifiers","name","postfixToken","type","initializer"],[n.ClassStaticBlockDeclaration]:["modifiers","body"],[n.BinaryExpression]:["modifiers","left","type","operatorToken","right"],[n.PrefixUnaryExpression]:["operand"],[n.PostfixUnaryExpression]:["operand"],[n.YieldExpression]:["asteriskToken","expression"],[n.ArrowFunction]:["modifiers","typeParameters","parameters","type","equalsGreaterThanToken","body"],[n.FunctionExpression]:["modifiers","asteriskToken","name","typeParameters","parameters","type","body"],[n.AsExpression]:["expression","type"],[n.SatisfiesExpression]:["expression","type"],[n.ConditionalExpression]:["condition","questionToken","whenTrue","colonToken","whenFalse"],[n.PropertyAccessExpression]:["expression","questionDotToken","name"],[n.ElementAccessExpression]:["expression","questionDotToken","argumentExpression"],[n.CallExpression]:["expression","questionDotToken","typeArguments","arguments"],[n.NewExpression]:["expression","typeArguments","arguments"],[n.MetaProperty]:["name"],[n.NonNullExpression]:["expression"],[n.SpreadElement]:["expression"],[n.TemplateExpression]:["head","templateSpans"],[n.TemplateSpan]:["expression","literal"],[n.TaggedTemplateExpression]:["tag","questionDotToken","typeArguments","template"],[n.ParenthesizedExpression]:["expression"],[n.ArrayLiteralExpression]:["elements"],[n.ObjectLiteralExpression]:["properties"],[n.SpreadAssignment]:["expression"],[n.PropertyAssignment]:["modifiers","name","postfixToken","type","initializer"],[n.ShorthandPropertyAssignment]:["modifiers","name","postfixToken","type","equalsToken","objectAssignmentInitializer"],[n.DeleteExpression]:["expression"],[n.TypeOfExpression]:["expression"],[n.VoidExpression]:["expression"],[n.AwaitExpression]:["expression"],[n.TypeAssertionExpression]:["type","expression"],[n.UnionType]:["types"],[n.IntersectionType]:["types"],[n.ConditionalType]:["checkType","extendsType","trueType","falseType"],[n.TypeOperator]:["type"],[n.InferType]:["typeParameter"],[n.ArrayType]:["elementType"],[n.IndexedAccessType]:["objectType","indexType"],[n.TypeReference]:["typeName","typeArguments"],[n.ExpressionWithTypeArguments]:["expression","typeArguments"],[n.LiteralType]:["literal"],[n.TypePredicate]:["assertsModifier","parameterName","type"],[n.ImportAttribute]:["name","value"],[n.ImportAttributes]:["attributes"],[n.TypeQuery]:["exprName","typeArguments"],[n.MappedType]:["readonlyToken","typeParameter","nameType","questionToken","type","members"],[n.TypeLiteral]:["members"],[n.TupleType]:["elements"],[n.NamedTupleMember]:["dotDotDotToken","name","questionToken","type"],[n.OptionalType]:["type"],[n.RestType]:["type"],[n.ParenthesizedType]:["type"],[n.FunctionType]:["typeParameters","parameters","type"],[n.ConstructorType]:["modifiers","typeParameters","parameters","type"],[n.TemplateLiteralType]:["head","templateSpans"],[n.TemplateLiteralTypeSpan]:["type","literal"],[n.SyntheticExpression]:["tupleNameSource"],[n.PartiallyEmittedExpression]:["expression"],[n.JsxElement]:["openingElement","children","closingElement"],[n.JsxAttributes]:["properties"],[n.JsxNamespacedName]:["namespace","name"],[n.JsxOpeningElement]:["tagName","typeArguments","attributes"],[n.JsxSelfClosingElement]:["tagName","typeArguments","attributes"],[n.JsxFragment]:["openingFragment","children","closingFragment"],[n.JsxAttribute]:["name","initializer"],[n.JsxSpreadAttribute]:["expression"],[n.JsxClosingElement]:["tagName"],[n.JsxExpression]:["dotDotDotToken","expression"],[n.SyntaxList]:["children"],[n.JSDoc]:["comment","tags"],[n.JSDocTypeExpression]:["type"],[n.JSDocNonNullableType]:["type"],[n.JSDocNullableType]:["type"],[n.JSDocVariadicType]:["type"],[n.JSDocOptionalType]:["type"],[n.JSDocTypeTag]:["tagName","typeExpression","comment"],[n.JSDocUnknownTag]:["tagName","comment"],[n.JSDocTemplateTag]:["tagName","constraint","typeParameters","comment"],[n.JSDocReturnTag]:["tagName","typeExpression","comment"],[n.JSDocPublicTag]:["tagName","comment"],[n.JSDocPrivateTag]:["tagName","comment"],[n.JSDocProtectedTag]:["tagName","comment"],[n.JSDocReadonlyTag]:["tagName","comment"],[n.JSDocOverrideTag]:["tagName","comment"],[n.JSDocDeprecatedTag]:["tagName","comment"],[n.JSDocSeeTag]:["tagName","nameExpression","comment"],[n.JSDocImplementsTag]:["tagName","className","comment"],[n.JSDocAugmentsTag]:["tagName","className","comment"],[n.JSDocSatisfiesTag]:["tagName","typeExpression","comment"],[n.JSDocThrowsTag]:["tagName","typeExpression","comment"],[n.JSDocThisTag]:["tagName","typeExpression","comment"],[n.JSDocImportTag]:["tagName","importClause","moduleSpecifier","attributes","comment"],[n.JSDocCallbackTag]:["tagName","typeExpression","name","comment"],[n.JSDocOverloadTag]:["tagName","typeExpression","comment"],[n.JSDocTypedefTag]:["tagName","typeExpression","name","comment"],[n.JSDocSignature]:["typeParameters","parameters","type"],[n.JSDocNameReference]:["name"],[n.SourceFile]:["statements","endOfFileToken"],[n.ModuleDeclaration]:["modifiers","name","body"],[n.ImportEqualsDeclaration]:["modifiers","name","moduleReference"],[n.ExportDeclaration]:["modifiers","exportClause","moduleSpecifier","attributes"],[n.ImportType]:["argument","attributes","qualifier","typeArguments"],[n.ImportClause]:["name","namedBindings"],[n.ImportSpecifier]:["propertyName","name"],[n.JSDocLink]:["name"],[n.JSDocLinkPlain]:["name"],[n.JSDocLinkCode]:["name"],[n.TypeParameter]:["modifiers","name","constraint","expression","defaultType"],[n.SyntheticReferenceExpression]:["expression","thisArg"],[n.JSDocTypeLiteral]:["jsdocPropertyTags"],[n.JSDocParameterTag]:["tagName","name","typeExpression","comment"],[n.JSDocPropertyTag]:["tagName","name","typeExpression","comment"]},_h={[n.ComputedPropertyName]:"expression",[n.Decorator]:"expression",[n.BreakStatement]:"label",[n.ContinueStatement]:"label",[n.ReturnStatement]:"expression",[n.CaseBlock]:"clauses",[n.ThrowStatement]:"expression",[n.ExpressionStatement]:"expression",[n.Block]:"statements",[n.VariableDeclarationList]:"declarations",[n.ObjectBindingPattern]:"elements",[n.ArrayBindingPattern]:"elements",[n.MissingDeclaration]:"modifiers",[n.HeritageClause]:"types",[n.ModuleBlock]:"statements",[n.ExternalModuleReference]:"expression",[n.NamespaceImport]:"name",[n.NamedImports]:"elements",[n.NamespaceExport]:"name",[n.NamedExports]:"elements",[n.PrefixUnaryExpression]:"operand",[n.PostfixUnaryExpression]:"operand",[n.MetaProperty]:"name",[n.NonNullExpression]:"expression",[n.SpreadElement]:"expression",[n.ParenthesizedExpression]:"expression",[n.ArrayLiteralExpression]:"elements",[n.ObjectLiteralExpression]:"properties",[n.SpreadAssignment]:"expression",[n.DeleteExpression]:"expression",[n.TypeOfExpression]:"expression",[n.VoidExpression]:"expression",[n.AwaitExpression]:"expression",[n.UnionType]:"types",[n.IntersectionType]:"types",[n.TypeOperator]:"type",[n.InferType]:"typeParameter",[n.ArrayType]:"elementType",[n.LiteralType]:"literal",[n.ImportAttributes]:"attributes",[n.TypeLiteral]:"members",[n.TupleType]:"elements",[n.OptionalType]:"type",[n.RestType]:"type",[n.ParenthesizedType]:"type",[n.SyntheticExpression]:"tupleNameSource",[n.PartiallyEmittedExpression]:"expression",[n.JsxAttributes]:"properties",[n.JsxSpreadAttribute]:"expression",[n.JsxClosingElement]:"tagName",[n.SyntaxList]:"children",[n.JSDocTypeExpression]:"type",[n.JSDocNonNullableType]:"type",[n.JSDocNullableType]:"type",[n.JSDocVariadicType]:"type",[n.JSDocOptionalType]:"type",[n.JSDocNameReference]:"name",[n.JSDocLink]:"name",[n.JSDocLinkPlain]:"name",[n.JSDocLinkCode]:"name",[n.JSDocTypeLiteral]:"jsdocPropertyTags"};var Ua=5,ja=0,Va=4,Wa=8,za=12,Ha=16,Ga=20,Zt=24,Kt=28,er=32,tr=36,rr=40,Nt=44,ee=28,Fe=0,nr=4,ir=8,ut=12,Qe=16,sr=20,$a=24,Ye=4294967295,Re=0,Xe=1073741824,pt=2147483648;function Fa(e){switch(e){case n.Identifier:case n.PrivateIdentifier:case n.JsxText:case n.JSDocText:case n.JSDocLink:case n.JSDocLinkPlain:case n.JSDocLinkCode:return Xe;case n.StringLiteral:case n.NumericLiteral:case n.BigIntLiteral:case n.RegularExpressionLiteral:case n.NoSubstitutionTemplateLiteral:case n.TemplateHead:case n.TemplateMiddle:case n.TemplateTail:case n.SourceFile:return pt;default:return Re}}function Qa(e){switch(e.kind){case n.Block:return(e.multiLine?1:0)<<24;case n.HeritageClause:return(e.token===n.ImplementsKeyword?1:0)<<24;case n.ExportAssignment:return(e.isExportEquals?1:0)<<24;case n.ExportSpecifier:return(e.isTypeOnly?1:0)<<24;case n.PrefixUnaryExpression:return(e.operator===n.MinusToken?1:e.operator===n.TildeToken?2:e.operator===n.ExclamationToken?3:e.operator===n.PlusPlusToken?4:e.operator===n.MinusMinusToken?5:0)<<24;case n.PostfixUnaryExpression:return(e.operator===n.MinusMinusToken?1:0)<<24;case n.MetaProperty:return(e.keywordToken===n.NewKeyword?1:0)<<24;case n.ArrayLiteralExpression:return(e.multiLine?1:0)<<24;case n.ObjectLiteralExpression:return(e.multiLine?1:0)<<24;case n.TypeOperator:return(e.operator===n.ReadonlyKeyword?1:e.operator===n.UniqueKeyword?2:0)<<24;case n.ImportAttributes:return(e.multiLine?1:0)<<24|(e.token===n.AssertKeyword?1:0)<<25;case n.JsxText:return(e.containsOnlyTriviaWhiteSpaces?1:0)<<24;case n.ModuleDeclaration:return(e.keyword===n.NamespaceKeyword?1:0)<<24;case n.ImportEqualsDeclaration:return(e.isTypeOnly?1:0)<<24;case n.ExportDeclaration:return(e.isTypeOnly?1:0)<<24;case n.ImportType:return(e.isTypeOf?1:0)<<24;case n.ImportClause:return(e.phaseModifier===n.TypeKeyword?1:e.phaseModifier===n.DeferKeyword?2:0)<<24;case n.ImportSpecifier:return(e.isTypeOnly?1:0)<<24;case n.JSDocTypeLiteral:return(e.isArrayType?1:0)<<24;case n.JSDocParameterTag:case n.JSDocPropertyTag:return(e.isBracketed?1:0)<<24|(e.isNameFirst?1:0)<<25}return 0}import{Buffer as Dh}from"node:buffer";var Ya=237,Sh=160,Ph=191,Ah=128,bh=191;function Ih(e,t){return t+2<e.length&&e[t]===Ya&&e[t+1]>=Sh&&e[t+1]<=Ph&&e[t+2]>=Ah&&e[t+2]<=bh}function Ch(e,t){return 53248|(e[t+1]&63)<<6|e[t+2]&63}function Nh(e){return Dh.from(e.buffer,e.byteOffset,e.byteLength).indexOf(Ya)>=0}function Lh(e){if(e instanceof Uint8Array)return e;if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return new Uint8Array(e)}class Ze extends TextDecoder{decode(e,t){if(e===void 0)return super.decode(e,t);let r=Lh(e);if(!Nh(r))return super.decode(r,t);let i=[],s=0;for(let a=0;a<r.length;a++){if(!Ih(r,a))continue;if(s<a)i.push(super.decode(r.subarray(s,a),t));i.push(String.fromCharCode(Ch(r,a))),a+=2,s=a+1}if(s===0)return super.decode(r,t);if(s<r.length)i.push(super.decode(r.subarray(s),t));return i.join("")}}var Jh=new TextEncoder,Rh=new Ze;class Wr{buf;view;pos;constructor(e=256){this.buf=new Uint8Array(e),this.view=new DataView(this.buf.buffer),this.pos=0}ensure(e){if(this.pos+e>this.buf.length){let t=this.buf.length*2;while(t<this.pos+e)t*=2;let r=new Uint8Array(t);r.set(this.buf),this.buf=r,this.view=new DataView(this.buf.buffer)}}writeArrayHeader(e){if(e<=15)this.ensure(1),this.buf[this.pos++]=144|e;else if(e<=65535)this.ensure(3),this.buf[this.pos++]=220,this.view.setUint16(this.pos,e,!1),this.pos+=2;else this.ensure(5),this.buf[this.pos++]=221,this.view.setUint32(this.pos,e,!1),this.pos+=4}writeUint(e){if(e<=127)this.ensure(1),this.buf[this.pos++]=e;else if(e<=255)this.ensure(2),this.buf[this.pos++]=204,this.buf[this.pos++]=e;else if(e<=65535)this.ensure(3),this.buf[this.pos++]=205,this.view.setUint16(this.pos,e,!1),this.pos+=2;else this.ensure(5),this.buf[this.pos++]=206,this.view.setUint32(this.pos,e,!1),this.pos+=4}writeString(e){let t=Jh.encode(e),r=t.length;if(r<=31)this.ensure(1+r),this.buf[this.pos++]=160|r;else if(r<=255)this.ensure(2+r),this.buf[this.pos++]=217,this.buf[this.pos++]=r;else if(r<=65535)this.ensure(3+r),this.buf[this.pos++]=218,this.view.setUint16(this.pos,r,!1),this.pos+=2;else this.ensure(5+r),this.buf[this.pos++]=219,this.view.setUint32(this.pos,r,!1),this.pos+=4;this.buf.set(t,this.pos),this.pos+=r}writeBool(e){this.ensure(1),this.buf[this.pos++]=e?195:194}finish(){return this.buf.subarray(0,this.pos)}}class Lt{buf;view;pos;constructor(e,t=0){this.buf=e,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.pos=t}readArrayHeader(){let e=this.buf[this.pos++];if((e&240)===144)return e&15;if(e===220){let t=this.view.getUint16(this.pos,!1);return this.pos+=2,t}if(e===221){let t=this.view.getUint32(this.pos,!1);return this.pos+=4,t}throw Error(`Expected array header, got 0x${e.toString(16)}`)}readUint(){let e=this.buf[this.pos++];if(e<=127)return e;if(e===204)return this.buf[this.pos++];if(e===205){let t=this.view.getUint16(this.pos,!1);return this.pos+=2,t}if(e===206){let t=this.view.getUint32(this.pos,!1);return this.pos+=4,t}throw Error(`Expected uint, got 0x${e.toString(16)}`)}readString(){let e=this.buf[this.pos++],t;if((e&224)===160)t=e&31;else if(e===217)t=this.buf[this.pos++];else if(e===218)t=this.view.getUint16(this.pos,!1),this.pos+=2;else if(e===219)t=this.view.getUint32(this.pos,!1),this.pos+=4;else throw Error(`Expected string, got 0x${e.toString(16)}`);let r=Rh.decode(this.buf.subarray(this.pos,this.pos+t));return this.pos+=t,r}readBool(){let e=this.buf[this.pos++];if(e===195)return!0;if(e===194)return!1;throw Error(`Expected bool, got 0x${e.toString(16)}`)}}var Xa=ee/4,Za=3,or=4294967295;class tc{parts;byteLen;offsets;constructor(){this.parts=[],this.byteLen=0,this.offsets=[]}add(e){let t=this.offsets.length,i=Ka().encode(e).length,s=this.byteLen;return this.parts.push(e),this.byteLen+=i,this.offsets.push(s,s+i),t}encode(){let t=Ka().encode(this.parts.join("")),r=new Uint8Array(this.offsets.length*4),i=new DataView(r.buffer);for(let a=0;a<this.offsets.length;a++)i.setUint32(a*4,this.offsets[a],!0);let s=new Uint8Array(r.length+t.length);return s.set(r,0),s.set(t,r.length),s}stringByteLength(){return this.byteLen}offsetsCount(){return this.offsets.length}}var Oh;function Ka(){return Oh??=new TextEncoder}function vh(e){let t=e.kind,r=$e[t];if(!r)return 0;let i=e,s=0;for(let a=0;a<r.length;a++){let p=r[a];if(p!==void 0&&Mh(i[p]))s|=1<<a}return s}function Mh(e){if(e===void 0||e===null)return!1;return!0}function qh(e,t){return t.add(e.text??"")}function zr(e,t){if(!e||e.length===0)return or;let r=t.finish().length;t.writeArrayHeader(e.length);for(let i of e)t.writeArrayHeader(5),t.writeUint(i.pos),t.writeUint(i.end),t.writeString(i.fileName),t.writeUint(i.resolutionMode??0),t.writeBool(i.preserve??!1);return r}function Bh(e,t,r,i){let s=r.length*4;if(e.kind===n.SourceFile){let a=e,p=t.add(a.text),T=t.add(a.fileName),E=t.add(a.path),A=zr(a.referencedFiles,i),N=zr(a.typeReferenceDirectives,i),U=zr(a.libReferenceDirectives,i);r.push(p,T,E,a.languageVariant,a.scriptKind,A,N,U,or,or,or,0)}else if(e.kind===n.TemplateHead||e.kind===n.TemplateMiddle||e.kind===n.TemplateTail){let a=e,p=a.text??"",T=a.rawText??"",E=a.templateFlags??0,A=t.add(p),N=t.add(T);r.push(A,N,E)}else{let a=e,p=a.text??"",T=a.tokenFlags??0,E=t.add(p);r.push(E,T)}return s}function ec(e,t,r,i){let s=Fa(e.kind),a=Qa(e);switch(s){case Re:return s|a|vh(e);case Xe:return s|a|qh(e,t);case pt:return s|a|Bh(e,t,r,i);default:throw Error("unreachable")}}function Uh(e){return $e[e.kind]}function jh(e){return Array.isArray(e)&&typeof e.pos==="number"&&typeof e.end==="number"}function rc(e){let t=new tc,r=[],i=new Wr,s=[];s.push(0,0,0,0,0,0,0);let a=0,p=0,T=0;function E(J){a++;let pe=a;if(T!==0)s[T*Xa+Za]=pe;let oe=ec(J,t,r,i);s.push(J.kind,J.pos>=0?J.pos:0,J.end>=0?J.end:0,0,p,oe,J.flags);let Ne=p,Le=T;p=pe,T=0,N(J),T=pe,p=Ne}function A(J){if(!J)return;a++;let pe=a;if(T!==0)s[T*Xa+Za]=pe;s.push(Ye,J.pos>=0?J.pos:0,J.end>=0?J.end:0,0,p,J.length,0);let oe=p;p=pe,T=0;for(let Ne of J)E(Ne);T=pe,p=oe}function N(J){let pe=Uh(J),oe=J;if(pe)for(let Ne of pe){if(Ne===void 0)continue;let Le=oe[Ne];if(Le===void 0||Le===null)continue;if(jh(Le))A(Le);else E(Le)}}a++,p++;let U=ec(e,t,r,i);s.push(e.kind,e.pos>=0?e.pos:0,e.end>=0?e.end:0,0,0,U,e.flags);let M=p;T=0,p=1,N(e),p=M;let Y=new Uint8Array(r.length*4),ue=new DataView(Y.buffer);for(let J=0;J<r.length;J++)ue.setUint32(J*4,r[J],!0);let Ie=i.finish(),tt=t.encode(),Te=new Uint8Array(s.length*4),_e=new DataView(Te.buffer);for(let J=0;J<s.length;J++)_e.setUint32(J*4,s[J]>>>0,!0);let rt=Nt,Me=Nt+t.offsetsCount()*4,v=Me+t.stringByteLength(),ge=v+Y.length,H=ge+Ie.length,he=new Uint8Array(Nt),De=new DataView(he.buffer),jt=Ua<<24;De.setUint32(ja,jt,!0),De.setUint32(Zt,rt,!0),De.setUint32(Kt,Me,!0),De.setUint32(er,v,!0),De.setUint32(tr,ge,!0),De.setUint32(rr,H,!0);let Ce=new Uint8Array(he.length+tt.length+Y.length+Ie.length+Te.length);return Ce.set(he,0),Ce.set(tt,Nt),Ce.set(Y,v),Ce.set(Ie,ge),Ce.set(Te,H),Ce}function nc(e){return Buffer.from(e).toString("base64")}var ic=[0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,4,5,5,6,5,6,6,7,5,6,6,7,6,7,7,8],sc=3221225472,oc=255,ac=16777215,Ke=16777215;function Hr(e){let t=e.getUint32(Va,!0),r=e.getUint32(Wa,!0),i=e.getUint32(za,!0),s=e.getUint32(Ha,!0);return ar(s)+ar(i)+ar(r)+ar(t)}function Gr(e){return e.getUint32(Ga,!0).toString()}function ar(e){return(e>>>0).toString(16).padStart(8,"0")}function cc(e){switch(e){case n.StaticKeyword:return j.Static;case n.PublicKeyword:return j.Public;case n.ProtectedKeyword:return j.Protected;case n.PrivateKeyword:return j.Private;case n.AbstractKeyword:return j.Abstract;case n.AccessorKeyword:return j.Accessor;case n.ExportKeyword:return j.Export;case n.DeclareKeyword:return j.Ambient;case n.ConstKeyword:return j.Const;case n.DefaultKeyword:return j.Default;case n.AsyncKeyword:return j.Async;case n.ReadonlyKeyword:return j.Readonly;case n.OverrideKeyword:return j.Override;case n.InKeyword:return j.In;case n.OutKeyword:return j.Out;case n.Decorator:return j.Decorator;default:return j.None}}class cr{parent;view;index;_byteIndex;constructor(e,t,r,i){this.view=e,this.index=t,this.parent=r,this._byteIndex=i}get kind(){return this.view.getUint32(this._byteIndex+Fe,!0)}get pos(){return this.view.getInt32(this._byteIndex+nr,!0)}get end(){return this.view.getInt32(this._byteIndex+ir,!0)}get next(){return this.view.getUint32(this._byteIndex+ut,!0)}get parentIndex(){return this.view.getUint32(this._byteIndex+Qe,!0)}get data(){return this.view.getUint32(this._byteIndex+sr,!0)}get dataType(){return this.data&sc}get childMask(){if(this.dataType!==Re)return-1;return this.data&oc}getFileText(e,t){return this.sourceFile._decoder.decode(new Uint8Array(this.view.buffer,this.view.byteOffset+this.sourceFile._offsetStringTable+e,t-e))}get sourceFile(){throw Error("sourceFile not available on base")}}class lt extends Array{static get[Symbol.species](){return Array}parent;hasTrailingComma;transformFlags=0;view;index;_byteIndex;_cursorIndex=0;_cursorNodeIndex=0;get pos(){return this.view.getUint32(this._byteIndex+nr,!0)}get end(){return this.view.getUint32(this._byteIndex+ir,!0)}get next(){return this.view.getUint32(this._byteIndex+ut,!0)}get data(){return this.view.getUint32(this._byteIndex+sr,!0)}sourceFile;constructor(e,t,r,i,s){super();this.view=e,this.index=t,this.parent=r,this.sourceFile=i,this._byteIndex=s+t*ee,this.length=this.data,this._cursorNodeIndex=t+1;let a=this.length;for(let p=16;p<a;p++)Object.defineProperty(this,p,{get(){return this.at(p)}})}get 0(){return this.at(0)}get 1(){return this.at(1)}get 2(){return this.at(2)}get 3(){return this.at(3)}get 4(){return this.at(4)}get 5(){return this.at(5)}get 6(){return this.at(6)}get 7(){return this.at(7)}get 8(){return this.at(8)}get 9(){return this.at(9)}get 10(){return this.at(10)}get 11(){return this.at(11)}get 12(){return this.at(12)}get 13(){return this.at(13)}get 14(){return this.at(14)}get 15(){return this.at(15)}*[Symbol.iterator](){if(!this.length)return;let e=this.index+1;while(e){let t=this.getOrCreateChildAtNodeIndex(e);e=t.next,yield t}}forEachNode(e){if(!this.length)return;let t=this.index+1;while(t){let r=this.getOrCreateChildAtNodeIndex(t);t=r.next;let i=e(r);if(i)return i}}at(e){if(!Number.isInteger(e))return;if(e>=this.data||e<0&&-e>this.data)return;if(e<0)e=this.length+e;let t=this.sourceFile._offsetNodes,r,i;if(e>=this._cursorIndex)r=this._cursorIndex,i=this._cursorNodeIndex;else r=0,i=this.index+1;for(;r<e;r++)i=this.view.getUint32(t+i*ee+ut,!0);return this._cursorIndex=e,this._cursorNodeIndex=i,this.getOrCreateChildAtNodeIndex(i)}getOrCreateChildAtNodeIndex(e){let t=this.sourceFile.nodes[e];if(!t){if(this.view.getUint32(this.sourceFile._offsetNodes+e*ee+Fe,!0)===Ye)throw Error("NodeList cannot directly contain another NodeList");let i=this.sourceFile;t=new Ue(this.view,e,this.parent,i,i._offsetNodes),i.nodes[e]=t,i._timing?.recordMaterialization()}return t}__print(){let e=[];return e.push("kind: NodeList"),e.push(`index: ${this.index}`),e.push(`byteIndex: ${this._byteIndex}`),e.push(`length: ${this.length}`),e.join(`
8
8
  `)}}class Ue extends cr{static NODE_LEN=ee;get sourceFile(){return this._sourceFile}_sourceFile;get id(){return`${this.index}.${this.kind}.${this.sourceFile.path}`}constructor(e,t,r,i,s){super(e,t,r,s+t*ee);this._sourceFile=i}forEachChild(e,t){if(this.hasChildren()){let r=this.index+1;do{let i=this.getOrCreateChildAtNodeIndex(r);if(i instanceof lt)if(t){let s=t(i);if(s)return s}else{let s=i.forEachNode(e);if(s)return s}else if(i.kind!==n.JSDoc){let s=e(i);if(s)return s}r=i.next}while(r)}}get jsDoc(){if(!this.hasChildren())return;let e,t=this.index+1;do{let r=this.getOrCreateChildAtNodeIndex(t);if(!(r instanceof lt)&&r.kind===n.JSDoc)(e??=[]).push(r);t=r.next}while(t);return e}getSourceFile(){return this.sourceFile}getStart(e,t){return Ct(this,e??this.getSourceFile(),t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e??this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e??=this.getSourceFile(),e.text.substring(this.getStart(e),this.end)}getString(e){let t=this.sourceFile._offsetStringTableOffsets,r=this.view.getUint32(t+e*4,!0),i=this.view.getUint32(t+(e+1)*4,!0),s=this.sourceFile._offsetStringTable,a=new Uint8Array(this.view.buffer,this.view.byteOffset+s+r,i-r);return this.sourceFile._decoder.decode(a)}getOrCreateChildAtNodeIndex(e){let t=this.sourceFile.nodes[e];if(!t){let r=this.sourceFile,i=r._offsetNodes;t=this.view.getUint32(i+e*ee+Fe,!0)===Ye?new lt(this.view,e,this,r,i):new Ue(this.view,e,this,r,i),r.nodes[e]=t,r._timing?.recordMaterialization()}return t}hasChildren(){if(this._byteIndex>=this.view.byteLength-ee)return!1;return this.view.getUint32(this.sourceFile._offsetNodes+(this.index+1)*ee+Qe,!0)===this.index}getNamedChild(e){let t=this.kind,r=$e[t];if(!r)return;let i=r.indexOf(e);if(i===-1)return;return this.getChildAtOrder(i)}getChildAtOrder(e){let t=this.childMask;if(!(t&1<<e))return;let r=e-ic[~(t|255<<e&255)&255],i=this.index+1;for(let s=0;s<r;s++)i=this.view.getUint32(this.sourceFile._offsetNodes+i*ee+ut,!0);return this.getOrCreateChildAtNodeIndex(i)}__print(){let e=[];e.push(`index: ${this.index}`),e.push(`byteIndex: ${this._byteIndex}`),e.push(`kind: ${n[this.kind]}`),e.push(`pos: ${this.pos}`),e.push(`end: ${this.end}`),e.push(`next: ${this.next}`),e.push(`parent: ${this.parentIndex}`),e.push(`data: ${this.data.toString(2).padStart(32,"0")}`);let t=this.dataType===Re?"children":this.dataType===Xe?"string":"extended";if(e.push(`dataType: ${t}`),this.dataType===Re)e.push(`childMask: ${this.childMask.toString(2).padStart(8,"0")}`),e.push(`childProperties: ${$e[this.kind]?.join(", ")}`);return e.join(`
9
9
  `)}__printChildren(){let e=[],t=this.index+1;while(t){let r=this.getOrCreateChildAtNodeIndex(t);t=r.next,e.push(r.__print())}return e.join(`
10
10